configure 848 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975
  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. PKG_CONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. PKG_CONFIG_LIBDIR
  642. PKG_CONFIG_PATH
  643. PKG_CONFIG
  644. SET_MAKE
  645. INSTALL_DATA
  646. INSTALL_SCRIPT
  647. INSTALL_PROGRAM
  648. CXXCPP
  649. ac_ct_CXX
  650. CXXFLAGS
  651. CXX
  652. LT_AGE
  653. LT_REVISION
  654. LT_CURRENT
  655. LT_RELEASE
  656. RC
  657. CPP
  658. OTOOL64
  659. OTOOL
  660. LIPO
  661. NMEDIT
  662. DSYMUTIL
  663. MANIFEST_TOOL
  664. AWK
  665. RANLIB
  666. STRIP
  667. ac_ct_AR
  668. AR
  669. LN_S
  670. NM
  671. ac_ct_DUMPBIN
  672. DUMPBIN
  673. LD
  674. FGREP
  675. EGREP
  676. GREP
  677. SED
  678. OBJEXT
  679. EXEEXT
  680. ac_ct_CC
  681. CPPFLAGS
  682. LDFLAGS
  683. CFLAGS
  684. CC
  685. host_os
  686. host_vendor
  687. host_cpu
  688. host
  689. build_os
  690. build_vendor
  691. build_cpu
  692. build
  693. LIBTOOL
  694. OBJDUMP
  695. DLLTOOL
  696. AS
  697. SDL_VERSION
  698. SDL_BINARY_AGE
  699. SDL_INTERFACE_AGE
  700. SDL_MICRO_VERSION
  701. SDL_MINOR_VERSION
  702. SDL_MAJOR_VERSION
  703. target_alias
  704. host_alias
  705. build_alias
  706. LIBS
  707. ECHO_T
  708. ECHO_N
  709. ECHO_C
  710. DEFS
  711. mandir
  712. localedir
  713. libdir
  714. psdir
  715. pdfdir
  716. dvidir
  717. htmldir
  718. infodir
  719. docdir
  720. oldincludedir
  721. includedir
  722. localstatedir
  723. sharedstatedir
  724. sysconfdir
  725. datadir
  726. datarootdir
  727. libexecdir
  728. sbindir
  729. bindir
  730. program_transform_name
  731. prefix
  732. exec_prefix
  733. PACKAGE_URL
  734. PACKAGE_BUGREPORT
  735. PACKAGE_STRING
  736. PACKAGE_VERSION
  737. PACKAGE_TARNAME
  738. PACKAGE_NAME
  739. PATH_SEPARATOR
  740. SHELL'
  741. ac_subst_files=''
  742. ac_user_opts='
  743. enable_option_checking
  744. enable_shared
  745. enable_static
  746. with_pic
  747. enable_fast_install
  748. with_gnu_ld
  749. with_sysroot
  750. enable_libtool_lock
  751. enable_assertions
  752. enable_dependency_tracking
  753. enable_libc
  754. enable_gcc_atomics
  755. enable_atomic
  756. enable_audio
  757. enable_video
  758. enable_render
  759. enable_events
  760. enable_joystick
  761. enable_haptic
  762. enable_sensor
  763. enable_power
  764. enable_filesystem
  765. enable_threads
  766. enable_timers
  767. enable_file
  768. enable_loadso
  769. enable_cpuinfo
  770. enable_assembly
  771. enable_ssemath
  772. enable_mmx
  773. enable_3dnow
  774. enable_sse
  775. enable_sse2
  776. enable_sse3
  777. enable_altivec
  778. enable_oss
  779. enable_alsa
  780. with_alsa_prefix
  781. with_alsa_inc_prefix
  782. enable_alsatest
  783. enable_alsa_shared
  784. enable_jack
  785. enable_jack_shared
  786. enable_esd
  787. with_esd_prefix
  788. with_esd_exec_prefix
  789. enable_esdtest
  790. enable_esd_shared
  791. enable_pipewire
  792. enable_pipewire_shared
  793. enable_pulseaudio
  794. enable_pulseaudio_shared
  795. enable_arts
  796. enable_arts_shared
  797. enable_nas
  798. enable_nas_shared
  799. enable_sndio
  800. enable_sndio_shared
  801. enable_fusionsound
  802. enable_fusionsound_shared
  803. enable_diskaudio
  804. enable_dummyaudio
  805. enable_libsamplerate
  806. enable_libsamplerate_shared
  807. enable_arm_simd
  808. enable_arm_neon
  809. enable_video_wayland
  810. enable_video_wayland_qt_touch
  811. enable_wayland_shared
  812. enable_video_rpi
  813. enable_video_x11
  814. with_x
  815. enable_x11_shared
  816. enable_video_x11_xcursor
  817. enable_video_x11_xdbe
  818. enable_video_x11_xinerama
  819. enable_video_x11_xinput
  820. enable_video_x11_xrandr
  821. enable_video_x11_scrnsaver
  822. enable_video_x11_xshape
  823. enable_video_x11_vm
  824. enable_video_vivante
  825. enable_video_cocoa
  826. enable_video_metal
  827. enable_render_metal
  828. enable_video_directfb
  829. enable_directfb_shared
  830. enable_video_kmsdrm
  831. enable_kmsdrm_shared
  832. enable_video_dummy
  833. enable_video_opengl
  834. enable_video_opengles
  835. enable_video_opengles1
  836. enable_video_opengles2
  837. enable_video_vulkan
  838. enable_libudev
  839. enable_dbus
  840. enable_ime
  841. enable_ibus
  842. enable_fcitx
  843. enable_joystick_mfi
  844. enable_pthreads
  845. enable_pthread_sem
  846. enable_directx
  847. enable_xinput
  848. enable_wasapi
  849. enable_sdl_dlopen
  850. enable_hidapi
  851. enable_hidapi_libusb
  852. enable_clock_gettime
  853. enable_rpath
  854. enable_backgrounding_signal
  855. enable_foregrounding_signal
  856. enable_joystick_virtual
  857. enable_render_d3d
  858. enable_sdl2_config
  859. '
  860. ac_precious_vars='build_alias
  861. host_alias
  862. target_alias
  863. CC
  864. CFLAGS
  865. LDFLAGS
  866. LIBS
  867. CPPFLAGS
  868. CPP
  869. CXX
  870. CXXFLAGS
  871. CCC
  872. CXXCPP
  873. PKG_CONFIG
  874. PKG_CONFIG_PATH
  875. PKG_CONFIG_LIBDIR
  876. JACK_CFLAGS
  877. JACK_LIBS
  878. PIPEWIRE_CFLAGS
  879. PIPEWIRE_LIBS
  880. PULSEAUDIO_CFLAGS
  881. PULSEAUDIO_LIBS
  882. FUSIONSOUND_CFLAGS
  883. FUSIONSOUND_LIBS
  884. RPI_CFLAGS
  885. RPI_LIBS
  886. XMKMF
  887. DIRECTFB_CFLAGS
  888. DIRECTFB_LIBS
  889. LIBDRM_CFLAGS
  890. LIBDRM_LIBS
  891. LIBGBM_CFLAGS
  892. LIBGBM_LIBS
  893. DBUS_CFLAGS
  894. DBUS_LIBS
  895. IBUS_CFLAGS
  896. IBUS_LIBS
  897. LIBUSB_CFLAGS
  898. LIBUSB_LIBS'
  899. # Initialize some variables set by options.
  900. ac_init_help=
  901. ac_init_version=false
  902. ac_unrecognized_opts=
  903. ac_unrecognized_sep=
  904. # The variables have the same names as the options, with
  905. # dashes changed to underlines.
  906. cache_file=/dev/null
  907. exec_prefix=NONE
  908. no_create=
  909. no_recursion=
  910. prefix=NONE
  911. program_prefix=NONE
  912. program_suffix=NONE
  913. program_transform_name=s,x,x,
  914. silent=
  915. site=
  916. srcdir=
  917. verbose=
  918. x_includes=NONE
  919. x_libraries=NONE
  920. # Installation directory options.
  921. # These are left unexpanded so users can "make install exec_prefix=/foo"
  922. # and all the variables that are supposed to be based on exec_prefix
  923. # by default will actually change.
  924. # Use braces instead of parens because sh, perl, etc. also accept them.
  925. # (The list follows the same order as the GNU Coding Standards.)
  926. bindir='${exec_prefix}/bin'
  927. sbindir='${exec_prefix}/sbin'
  928. libexecdir='${exec_prefix}/libexec'
  929. datarootdir='${prefix}/share'
  930. datadir='${datarootdir}'
  931. sysconfdir='${prefix}/etc'
  932. sharedstatedir='${prefix}/com'
  933. localstatedir='${prefix}/var'
  934. includedir='${prefix}/include'
  935. oldincludedir='/usr/include'
  936. docdir='${datarootdir}/doc/${PACKAGE}'
  937. infodir='${datarootdir}/info'
  938. htmldir='${docdir}'
  939. dvidir='${docdir}'
  940. pdfdir='${docdir}'
  941. psdir='${docdir}'
  942. libdir='${exec_prefix}/lib'
  943. localedir='${datarootdir}/locale'
  944. mandir='${datarootdir}/man'
  945. ac_prev=
  946. ac_dashdash=
  947. for ac_option
  948. do
  949. # If the previous option needs an argument, assign it.
  950. if test -n "$ac_prev"; then
  951. eval $ac_prev=\$ac_option
  952. ac_prev=
  953. continue
  954. fi
  955. case $ac_option in
  956. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  957. *=) ac_optarg= ;;
  958. *) ac_optarg=yes ;;
  959. esac
  960. # Accept the important Cygnus configure options, so we can diagnose typos.
  961. case $ac_dashdash$ac_option in
  962. --)
  963. ac_dashdash=yes ;;
  964. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  965. ac_prev=bindir ;;
  966. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  967. bindir=$ac_optarg ;;
  968. -build | --build | --buil | --bui | --bu)
  969. ac_prev=build_alias ;;
  970. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  971. build_alias=$ac_optarg ;;
  972. -cache-file | --cache-file | --cache-fil | --cache-fi \
  973. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  974. ac_prev=cache_file ;;
  975. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  976. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  977. cache_file=$ac_optarg ;;
  978. --config-cache | -C)
  979. cache_file=config.cache ;;
  980. -datadir | --datadir | --datadi | --datad)
  981. ac_prev=datadir ;;
  982. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  983. datadir=$ac_optarg ;;
  984. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  985. | --dataroo | --dataro | --datar)
  986. ac_prev=datarootdir ;;
  987. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  988. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  989. datarootdir=$ac_optarg ;;
  990. -disable-* | --disable-*)
  991. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  994. as_fn_error $? "invalid feature name: $ac_useropt"
  995. ac_useropt_orig=$ac_useropt
  996. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  997. case $ac_user_opts in
  998. *"
  999. "enable_$ac_useropt"
  1000. "*) ;;
  1001. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1002. ac_unrecognized_sep=', ';;
  1003. esac
  1004. eval enable_$ac_useropt=no ;;
  1005. -docdir | --docdir | --docdi | --doc | --do)
  1006. ac_prev=docdir ;;
  1007. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1008. docdir=$ac_optarg ;;
  1009. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1010. ac_prev=dvidir ;;
  1011. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1012. dvidir=$ac_optarg ;;
  1013. -enable-* | --enable-*)
  1014. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1015. # Reject names that are not valid shell variable names.
  1016. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1017. as_fn_error $? "invalid feature name: $ac_useropt"
  1018. ac_useropt_orig=$ac_useropt
  1019. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1020. case $ac_user_opts in
  1021. *"
  1022. "enable_$ac_useropt"
  1023. "*) ;;
  1024. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1025. ac_unrecognized_sep=', ';;
  1026. esac
  1027. eval enable_$ac_useropt=\$ac_optarg ;;
  1028. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1029. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1030. | --exec | --exe | --ex)
  1031. ac_prev=exec_prefix ;;
  1032. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1033. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1034. | --exec=* | --exe=* | --ex=*)
  1035. exec_prefix=$ac_optarg ;;
  1036. -gas | --gas | --ga | --g)
  1037. # Obsolete; use --with-gas.
  1038. with_gas=yes ;;
  1039. -help | --help | --hel | --he | -h)
  1040. ac_init_help=long ;;
  1041. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1042. ac_init_help=recursive ;;
  1043. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1044. ac_init_help=short ;;
  1045. -host | --host | --hos | --ho)
  1046. ac_prev=host_alias ;;
  1047. -host=* | --host=* | --hos=* | --ho=*)
  1048. host_alias=$ac_optarg ;;
  1049. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1050. ac_prev=htmldir ;;
  1051. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1052. | --ht=*)
  1053. htmldir=$ac_optarg ;;
  1054. -includedir | --includedir | --includedi | --included | --include \
  1055. | --includ | --inclu | --incl | --inc)
  1056. ac_prev=includedir ;;
  1057. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1058. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1059. includedir=$ac_optarg ;;
  1060. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1061. ac_prev=infodir ;;
  1062. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1063. infodir=$ac_optarg ;;
  1064. -libdir | --libdir | --libdi | --libd)
  1065. ac_prev=libdir ;;
  1066. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1067. libdir=$ac_optarg ;;
  1068. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1069. | --libexe | --libex | --libe)
  1070. ac_prev=libexecdir ;;
  1071. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1072. | --libexe=* | --libex=* | --libe=*)
  1073. libexecdir=$ac_optarg ;;
  1074. -localedir | --localedir | --localedi | --localed | --locale)
  1075. ac_prev=localedir ;;
  1076. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1077. localedir=$ac_optarg ;;
  1078. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1079. | --localstate | --localstat | --localsta | --localst | --locals)
  1080. ac_prev=localstatedir ;;
  1081. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1082. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1083. localstatedir=$ac_optarg ;;
  1084. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1085. ac_prev=mandir ;;
  1086. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1087. mandir=$ac_optarg ;;
  1088. -nfp | --nfp | --nf)
  1089. # Obsolete; use --without-fp.
  1090. with_fp=no ;;
  1091. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1092. | --no-cr | --no-c | -n)
  1093. no_create=yes ;;
  1094. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1095. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1096. no_recursion=yes ;;
  1097. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1098. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1099. | --oldin | --oldi | --old | --ol | --o)
  1100. ac_prev=oldincludedir ;;
  1101. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1102. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1103. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1104. oldincludedir=$ac_optarg ;;
  1105. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1106. ac_prev=prefix ;;
  1107. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1108. prefix=$ac_optarg ;;
  1109. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1110. | --program-pre | --program-pr | --program-p)
  1111. ac_prev=program_prefix ;;
  1112. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1113. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1114. program_prefix=$ac_optarg ;;
  1115. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1116. | --program-suf | --program-su | --program-s)
  1117. ac_prev=program_suffix ;;
  1118. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1119. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1120. program_suffix=$ac_optarg ;;
  1121. -program-transform-name | --program-transform-name \
  1122. | --program-transform-nam | --program-transform-na \
  1123. | --program-transform-n | --program-transform- \
  1124. | --program-transform | --program-transfor \
  1125. | --program-transfo | --program-transf \
  1126. | --program-trans | --program-tran \
  1127. | --progr-tra | --program-tr | --program-t)
  1128. ac_prev=program_transform_name ;;
  1129. -program-transform-name=* | --program-transform-name=* \
  1130. | --program-transform-nam=* | --program-transform-na=* \
  1131. | --program-transform-n=* | --program-transform-=* \
  1132. | --program-transform=* | --program-transfor=* \
  1133. | --program-transfo=* | --program-transf=* \
  1134. | --program-trans=* | --program-tran=* \
  1135. | --progr-tra=* | --program-tr=* | --program-t=*)
  1136. program_transform_name=$ac_optarg ;;
  1137. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1138. ac_prev=pdfdir ;;
  1139. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1140. pdfdir=$ac_optarg ;;
  1141. -psdir | --psdir | --psdi | --psd | --ps)
  1142. ac_prev=psdir ;;
  1143. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1144. psdir=$ac_optarg ;;
  1145. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1146. | -silent | --silent | --silen | --sile | --sil)
  1147. silent=yes ;;
  1148. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1149. ac_prev=sbindir ;;
  1150. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1151. | --sbi=* | --sb=*)
  1152. sbindir=$ac_optarg ;;
  1153. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1154. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1155. | --sharedst | --shareds | --shared | --share | --shar \
  1156. | --sha | --sh)
  1157. ac_prev=sharedstatedir ;;
  1158. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1159. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1160. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1161. | --sha=* | --sh=*)
  1162. sharedstatedir=$ac_optarg ;;
  1163. -site | --site | --sit)
  1164. ac_prev=site ;;
  1165. -site=* | --site=* | --sit=*)
  1166. site=$ac_optarg ;;
  1167. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1168. ac_prev=srcdir ;;
  1169. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1170. srcdir=$ac_optarg ;;
  1171. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1172. | --syscon | --sysco | --sysc | --sys | --sy)
  1173. ac_prev=sysconfdir ;;
  1174. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1175. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1176. sysconfdir=$ac_optarg ;;
  1177. -target | --target | --targe | --targ | --tar | --ta | --t)
  1178. ac_prev=target_alias ;;
  1179. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1180. target_alias=$ac_optarg ;;
  1181. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1182. verbose=yes ;;
  1183. -version | --version | --versio | --versi | --vers | -V)
  1184. ac_init_version=: ;;
  1185. -with-* | --with-*)
  1186. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1187. # Reject names that are not valid shell variable names.
  1188. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1189. as_fn_error $? "invalid package name: $ac_useropt"
  1190. ac_useropt_orig=$ac_useropt
  1191. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1192. case $ac_user_opts in
  1193. *"
  1194. "with_$ac_useropt"
  1195. "*) ;;
  1196. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1197. ac_unrecognized_sep=', ';;
  1198. esac
  1199. eval with_$ac_useropt=\$ac_optarg ;;
  1200. -without-* | --without-*)
  1201. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1202. # Reject names that are not valid shell variable names.
  1203. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1204. as_fn_error $? "invalid package name: $ac_useropt"
  1205. ac_useropt_orig=$ac_useropt
  1206. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1207. case $ac_user_opts in
  1208. *"
  1209. "with_$ac_useropt"
  1210. "*) ;;
  1211. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1212. ac_unrecognized_sep=', ';;
  1213. esac
  1214. eval with_$ac_useropt=no ;;
  1215. --x)
  1216. # Obsolete; use --with-x.
  1217. with_x=yes ;;
  1218. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1219. | --x-incl | --x-inc | --x-in | --x-i)
  1220. ac_prev=x_includes ;;
  1221. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1222. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1223. x_includes=$ac_optarg ;;
  1224. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1225. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1226. ac_prev=x_libraries ;;
  1227. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1228. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1229. x_libraries=$ac_optarg ;;
  1230. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1231. Try \`$0 --help' for more information"
  1232. ;;
  1233. *=*)
  1234. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1235. # Reject names that are not valid shell variable names.
  1236. case $ac_envvar in #(
  1237. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1238. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1239. esac
  1240. eval $ac_envvar=\$ac_optarg
  1241. export $ac_envvar ;;
  1242. *)
  1243. # FIXME: should be removed in autoconf 3.0.
  1244. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1245. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1246. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1247. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1248. ;;
  1249. esac
  1250. done
  1251. if test -n "$ac_prev"; then
  1252. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1253. as_fn_error $? "missing argument to $ac_option"
  1254. fi
  1255. if test -n "$ac_unrecognized_opts"; then
  1256. case $enable_option_checking in
  1257. no) ;;
  1258. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1259. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1260. esac
  1261. fi
  1262. # Check all directory arguments for consistency.
  1263. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1264. datadir sysconfdir sharedstatedir localstatedir includedir \
  1265. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1266. libdir localedir mandir
  1267. do
  1268. eval ac_val=\$$ac_var
  1269. # Remove trailing slashes.
  1270. case $ac_val in
  1271. */ )
  1272. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1273. eval $ac_var=\$ac_val;;
  1274. esac
  1275. # Be sure to have absolute directory names.
  1276. case $ac_val in
  1277. [\\/$]* | ?:[\\/]* ) continue;;
  1278. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1279. esac
  1280. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1281. done
  1282. # There might be people who depend on the old broken behavior: `$host'
  1283. # used to hold the argument of --host etc.
  1284. # FIXME: To remove some day.
  1285. build=$build_alias
  1286. host=$host_alias
  1287. target=$target_alias
  1288. # FIXME: To remove some day.
  1289. if test "x$host_alias" != x; then
  1290. if test "x$build_alias" = x; then
  1291. cross_compiling=maybe
  1292. elif test "x$build_alias" != "x$host_alias"; then
  1293. cross_compiling=yes
  1294. fi
  1295. fi
  1296. ac_tool_prefix=
  1297. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1298. test "$silent" = yes && exec 6>/dev/null
  1299. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1300. ac_ls_di=`ls -di .` &&
  1301. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1302. as_fn_error $? "working directory cannot be determined"
  1303. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1304. as_fn_error $? "pwd does not report name of working directory"
  1305. # Find the source files, if location was not specified.
  1306. if test -z "$srcdir"; then
  1307. ac_srcdir_defaulted=yes
  1308. # Try the directory containing this script, then the parent directory.
  1309. ac_confdir=`$as_dirname -- "$as_myself" ||
  1310. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1311. X"$as_myself" : 'X\(//\)[^/]' \| \
  1312. X"$as_myself" : 'X\(//\)$' \| \
  1313. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1314. $as_echo X"$as_myself" |
  1315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1316. s//\1/
  1317. q
  1318. }
  1319. /^X\(\/\/\)[^/].*/{
  1320. s//\1/
  1321. q
  1322. }
  1323. /^X\(\/\/\)$/{
  1324. s//\1/
  1325. q
  1326. }
  1327. /^X\(\/\).*/{
  1328. s//\1/
  1329. q
  1330. }
  1331. s/.*/./; q'`
  1332. srcdir=$ac_confdir
  1333. if test ! -r "$srcdir/$ac_unique_file"; then
  1334. srcdir=..
  1335. fi
  1336. else
  1337. ac_srcdir_defaulted=no
  1338. fi
  1339. if test ! -r "$srcdir/$ac_unique_file"; then
  1340. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1341. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1342. fi
  1343. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1344. ac_abs_confdir=`(
  1345. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1346. pwd)`
  1347. # When building in place, set srcdir=.
  1348. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1349. srcdir=.
  1350. fi
  1351. # Remove unnecessary trailing slashes from srcdir.
  1352. # Double slashes in file names in object file debugging info
  1353. # mess up M-x gdb in Emacs.
  1354. case $srcdir in
  1355. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1356. esac
  1357. for ac_var in $ac_precious_vars; do
  1358. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1359. eval ac_env_${ac_var}_value=\$${ac_var}
  1360. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1361. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1362. done
  1363. #
  1364. # Report the --help message.
  1365. #
  1366. if test "$ac_init_help" = "long"; then
  1367. # Omit some internal or obsolete options to make the list less imposing.
  1368. # This message is too long to be a string in the A/UX 3.1 sh.
  1369. cat <<_ACEOF
  1370. \`configure' configures this package to adapt to many kinds of systems.
  1371. Usage: $0 [OPTION]... [VAR=VALUE]...
  1372. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1373. VAR=VALUE. See below for descriptions of some of the useful variables.
  1374. Defaults for the options are specified in brackets.
  1375. Configuration:
  1376. -h, --help display this help and exit
  1377. --help=short display options specific to this package
  1378. --help=recursive display the short help of all the included packages
  1379. -V, --version display version information and exit
  1380. -q, --quiet, --silent do not print \`checking ...' messages
  1381. --cache-file=FILE cache test results in FILE [disabled]
  1382. -C, --config-cache alias for \`--cache-file=config.cache'
  1383. -n, --no-create do not create output files
  1384. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1385. Installation directories:
  1386. --prefix=PREFIX install architecture-independent files in PREFIX
  1387. [$ac_default_prefix]
  1388. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1389. [PREFIX]
  1390. By default, \`make install' will install all the files in
  1391. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1392. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1393. for instance \`--prefix=\$HOME'.
  1394. For better control, use the options below.
  1395. Fine tuning of the installation directories:
  1396. --bindir=DIR user executables [EPREFIX/bin]
  1397. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1398. --libexecdir=DIR program executables [EPREFIX/libexec]
  1399. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1400. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1401. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1402. --libdir=DIR object code libraries [EPREFIX/lib]
  1403. --includedir=DIR C header files [PREFIX/include]
  1404. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1405. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1406. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1407. --infodir=DIR info documentation [DATAROOTDIR/info]
  1408. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1409. --mandir=DIR man documentation [DATAROOTDIR/man]
  1410. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1411. --htmldir=DIR html documentation [DOCDIR]
  1412. --dvidir=DIR dvi documentation [DOCDIR]
  1413. --pdfdir=DIR pdf documentation [DOCDIR]
  1414. --psdir=DIR ps documentation [DOCDIR]
  1415. _ACEOF
  1416. cat <<\_ACEOF
  1417. X features:
  1418. --x-includes=DIR X include files are in DIR
  1419. --x-libraries=DIR X library files are in DIR
  1420. System types:
  1421. --build=BUILD configure for building on BUILD [guessed]
  1422. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1423. _ACEOF
  1424. fi
  1425. if test -n "$ac_init_help"; then
  1426. cat <<\_ACEOF
  1427. Optional Features:
  1428. --disable-option-checking ignore unrecognized --enable/--with options
  1429. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1430. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1431. --enable-shared[=PKGS] build shared libraries [default=yes]
  1432. --enable-static[=PKGS] build static libraries [default=yes]
  1433. --enable-fast-install[=PKGS]
  1434. optimize for fast installation [default=yes]
  1435. --disable-libtool-lock avoid locking (might break parallel builds)
  1436. --enable-assertions Enable internal sanity checks
  1437. (auto/disabled/release/enabled/paranoid)
  1438. [default=auto]
  1439. --enable-dependency-tracking
  1440. Use gcc -MMD -MT dependency tracking [default=yes]
  1441. --enable-libc Use the system C library [default=yes]
  1442. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1443. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1444. --enable-audio Enable the audio subsystem [default=yes]
  1445. --enable-video Enable the video subsystem [default=yes]
  1446. --enable-render Enable the render subsystem [default=yes]
  1447. --enable-events Enable the events subsystem [default=yes]
  1448. --enable-joystick Enable the joystick subsystem [default=yes]
  1449. --enable-haptic Enable the haptic (force feedback) subsystem
  1450. [default=yes]
  1451. --enable-sensor Enable the sensor subsystem [default=yes]
  1452. --enable-power Enable the power subsystem [default=yes]
  1453. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1454. --enable-threads Enable the threading subsystem [default=yes]
  1455. --enable-timers Enable the timer subsystem [default=yes]
  1456. --enable-file Enable the file subsystem [default=yes]
  1457. --enable-loadso Enable the shared object loading subsystem
  1458. [default=yes]
  1459. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1460. --enable-assembly Enable assembly routines [default=yes]
  1461. --enable-ssemath Allow GCC to use SSE floating point math
  1462. [default=maybe]
  1463. --enable-mmx use MMX assembly routines [default=yes]
  1464. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1465. --enable-sse use SSE assembly routines [default=yes]
  1466. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1467. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1468. --enable-altivec use Altivec assembly routines [default=yes]
  1469. --enable-oss support the OSS audio API [default=maybe]
  1470. --enable-alsa support the ALSA audio API [default=yes]
  1471. --disable-alsatest Do not try to compile and run a test Alsa program
  1472. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1473. --enable-jack use JACK audio [default=yes]
  1474. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1475. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1476. --disable-esdtest Do not try to compile and run a test ESD program
  1477. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1478. --enable-pipewire use Pipewire audio [default=yes]
  1479. --enable-pipewire-shared
  1480. dynamically load Pipewire support [default=yes]
  1481. --enable-pulseaudio use PulseAudio [default=yes]
  1482. --enable-pulseaudio-shared
  1483. dynamically load PulseAudio support [default=yes]
  1484. --enable-arts support the Analog Real Time Synthesizer
  1485. [default=yes]
  1486. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1487. --enable-nas support the NAS audio API [default=yes]
  1488. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1489. --enable-sndio support the sndio audio API [default=yes]
  1490. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1491. --enable-fusionsound use FusionSound audio driver [default=no]
  1492. --enable-fusionsound-shared
  1493. dynamically load fusionsound audio support
  1494. [default=yes]
  1495. --enable-diskaudio support the disk writer audio driver [default=yes]
  1496. --enable-dummyaudio support the dummy audio driver [default=yes]
  1497. --enable-libsamplerate use libsamplerate for audio rate conversion
  1498. [default=yes]
  1499. --enable-libsamplerate-shared
  1500. dynamically load libsamplerate [default=yes]
  1501. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1502. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1503. --enable-video-wayland use Wayland video driver [default=yes]
  1504. --enable-video-wayland-qt-touch
  1505. QtWayland server support for Wayland video driver
  1506. [default=yes]
  1507. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1508. --enable-video-rpi use Raspberry Pi video driver [default=yes]
  1509. --enable-video-x11 use X11 video driver [default=yes]
  1510. --enable-x11-shared dynamically load X11 support [default=maybe]
  1511. --enable-video-x11-xcursor
  1512. enable X11 Xcursor support [default=yes]
  1513. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1514. --enable-video-x11-xinerama
  1515. enable X11 Xinerama support [default=yes]
  1516. --enable-video-x11-xinput
  1517. enable X11 XInput extension for manymouse, tablets,
  1518. etc [default=yes]
  1519. --enable-video-x11-xrandr
  1520. enable X11 Xrandr extension for fullscreen
  1521. [default=yes]
  1522. --enable-video-x11-scrnsaver
  1523. enable X11 screensaver extension [default=yes]
  1524. --enable-video-x11-xshape
  1525. enable X11 XShape support [default=yes]
  1526. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1527. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1528. --enable-video-cocoa use Cocoa video driver [default=yes]
  1529. --enable-video-metal include Metal support [default=yes]
  1530. --enable-render-metal enable the Metal render driver [default=yes]
  1531. --enable-video-directfb use DirectFB video driver [default=no]
  1532. --enable-directfb-shared
  1533. dynamically load directfb support [default=yes]
  1534. --enable-video-kmsdrm use KMSDRM video driver [default=no]
  1535. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1536. --enable-video-dummy use dummy video driver [default=yes]
  1537. --enable-video-opengl include OpenGL support [default=yes]
  1538. --enable-video-opengles include OpenGL ES support [default=yes]
  1539. --enable-video-opengles1
  1540. include OpenGL ES 1.1 support [default=yes]
  1541. --enable-video-opengles2
  1542. include OpenGL ES 2.0 support [default=yes]
  1543. --enable-video-vulkan include Vulkan support [default=yes]
  1544. --enable-libudev enable libudev support [default=yes]
  1545. --enable-dbus enable D-Bus support [default=yes]
  1546. --enable-ime enable IME support [default=yes]
  1547. --enable-ibus enable IBus support [default=yes]
  1548. --enable-fcitx enable fcitx support [default=yes]
  1549. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1550. --enable-pthreads use POSIX threads for multi-threading [default=yes]
  1551. --enable-pthread-sem use pthread semaphores [default=yes]
  1552. --enable-directx use DirectX for Windows audio/video [default=yes]
  1553. --enable-xinput use Xinput for Windows [default=yes]
  1554. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1555. --enable-sdl-dlopen use dlopen for shared object loading [default=yes]
  1556. --enable-hidapi use HIDAPI for low level joystick drivers
  1557. [default=yes]
  1558. --enable-hidapi-libusb use libusb for low level joystick drivers
  1559. [default=maybe]
  1560. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1561. UNIX [default=yes]
  1562. --enable-rpath use an rpath when linking SDL [default=yes]
  1563. --enable-backgrounding-signal
  1564. number to use for magic backgrounding signal or 'no'
  1565. [default=no]
  1566. --enable-foregrounding-signal
  1567. number to use for magic foregrounding signal or 'no'
  1568. [default=no]
  1569. --enable-joystick-virtual
  1570. enable virtual joystick APIs [default=yes]
  1571. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1572. --enable-sdl2-config Install sdl2-config [default=yes]
  1573. Optional Packages:
  1574. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1575. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1576. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1577. both]
  1578. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1579. --with-sysroot=DIR Search for dependent libraries within DIR
  1580. (or the compiler's sysroot if not specified).
  1581. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1582. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1583. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1584. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1585. --with-x use the X Window System
  1586. Some influential environment variables:
  1587. CC C compiler command
  1588. CFLAGS C compiler flags
  1589. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1590. nonstandard directory <lib dir>
  1591. LIBS libraries to pass to the linker, e.g. -l<library>
  1592. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1593. you have headers in a nonstandard directory <include dir>
  1594. CPP C preprocessor
  1595. CXX C++ compiler command
  1596. CXXFLAGS C++ compiler flags
  1597. CXXCPP C++ preprocessor
  1598. PKG_CONFIG path to pkg-config utility
  1599. PKG_CONFIG_PATH
  1600. directories to add to pkg-config's search path
  1601. PKG_CONFIG_LIBDIR
  1602. path overriding pkg-config's built-in search path
  1603. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1604. JACK_LIBS linker flags for JACK, overriding pkg-config
  1605. PIPEWIRE_CFLAGS
  1606. C compiler flags for PIPEWIRE, overriding pkg-config
  1607. PIPEWIRE_LIBS
  1608. linker flags for PIPEWIRE, overriding pkg-config
  1609. PULSEAUDIO_CFLAGS
  1610. C compiler flags for PULSEAUDIO, overriding pkg-config
  1611. PULSEAUDIO_LIBS
  1612. linker flags for PULSEAUDIO, overriding pkg-config
  1613. FUSIONSOUND_CFLAGS
  1614. C compiler flags for FUSIONSOUND, overriding pkg-config
  1615. FUSIONSOUND_LIBS
  1616. linker flags for FUSIONSOUND, overriding pkg-config
  1617. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1618. RPI_LIBS linker flags for RPI, overriding pkg-config
  1619. XMKMF Path to xmkmf, Makefile generator for X Window System
  1620. DIRECTFB_CFLAGS
  1621. C compiler flags for DIRECTFB, overriding pkg-config
  1622. DIRECTFB_LIBS
  1623. linker flags for DIRECTFB, overriding pkg-config
  1624. LIBDRM_CFLAGS
  1625. C compiler flags for LIBDRM, overriding pkg-config
  1626. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1627. LIBGBM_CFLAGS
  1628. C compiler flags for LIBGBM, overriding pkg-config
  1629. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1630. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1631. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1632. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1633. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1634. LIBUSB_CFLAGS
  1635. C compiler flags for LIBUSB, overriding pkg-config
  1636. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1637. Use these variables to override the choices made by `configure' or to help
  1638. it to find libraries and programs with nonstandard names/locations.
  1639. Report bugs to the package provider.
  1640. _ACEOF
  1641. ac_status=$?
  1642. fi
  1643. if test "$ac_init_help" = "recursive"; then
  1644. # If there are subdirs, report their specific --help.
  1645. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1646. test -d "$ac_dir" ||
  1647. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1648. continue
  1649. ac_builddir=.
  1650. case "$ac_dir" in
  1651. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1652. *)
  1653. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1654. # A ".." for each directory in $ac_dir_suffix.
  1655. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1656. case $ac_top_builddir_sub in
  1657. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1658. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1659. esac ;;
  1660. esac
  1661. ac_abs_top_builddir=$ac_pwd
  1662. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1663. # for backward compatibility:
  1664. ac_top_builddir=$ac_top_build_prefix
  1665. case $srcdir in
  1666. .) # We are building in place.
  1667. ac_srcdir=.
  1668. ac_top_srcdir=$ac_top_builddir_sub
  1669. ac_abs_top_srcdir=$ac_pwd ;;
  1670. [\\/]* | ?:[\\/]* ) # Absolute name.
  1671. ac_srcdir=$srcdir$ac_dir_suffix;
  1672. ac_top_srcdir=$srcdir
  1673. ac_abs_top_srcdir=$srcdir ;;
  1674. *) # Relative name.
  1675. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1676. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1677. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1678. esac
  1679. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1680. cd "$ac_dir" || { ac_status=$?; continue; }
  1681. # Check for guested configure.
  1682. if test -f "$ac_srcdir/configure.gnu"; then
  1683. echo &&
  1684. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1685. elif test -f "$ac_srcdir/configure"; then
  1686. echo &&
  1687. $SHELL "$ac_srcdir/configure" --help=recursive
  1688. else
  1689. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1690. fi || ac_status=$?
  1691. cd "$ac_pwd" || { ac_status=$?; break; }
  1692. done
  1693. fi
  1694. test -n "$ac_init_help" && exit $ac_status
  1695. if $ac_init_version; then
  1696. cat <<\_ACEOF
  1697. configure
  1698. generated by GNU Autoconf 2.69
  1699. Copyright (C) 2012 Free Software Foundation, Inc.
  1700. This configure script is free software; the Free Software Foundation
  1701. gives unlimited permission to copy, distribute and modify it.
  1702. _ACEOF
  1703. exit
  1704. fi
  1705. ## ------------------------ ##
  1706. ## Autoconf initialization. ##
  1707. ## ------------------------ ##
  1708. # ac_fn_c_try_compile LINENO
  1709. # --------------------------
  1710. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1711. ac_fn_c_try_compile ()
  1712. {
  1713. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1714. rm -f conftest.$ac_objext
  1715. if { { ac_try="$ac_compile"
  1716. case "(($ac_try" in
  1717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1718. *) ac_try_echo=$ac_try;;
  1719. esac
  1720. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1721. $as_echo "$ac_try_echo"; } >&5
  1722. (eval "$ac_compile") 2>conftest.err
  1723. ac_status=$?
  1724. if test -s conftest.err; then
  1725. grep -v '^ *+' conftest.err >conftest.er1
  1726. cat conftest.er1 >&5
  1727. mv -f conftest.er1 conftest.err
  1728. fi
  1729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1730. test $ac_status = 0; } && {
  1731. test -z "$ac_c_werror_flag" ||
  1732. test ! -s conftest.err
  1733. } && test -s conftest.$ac_objext; then :
  1734. ac_retval=0
  1735. else
  1736. $as_echo "$as_me: failed program was:" >&5
  1737. sed 's/^/| /' conftest.$ac_ext >&5
  1738. ac_retval=1
  1739. fi
  1740. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1741. as_fn_set_status $ac_retval
  1742. } # ac_fn_c_try_compile
  1743. # ac_fn_c_try_link LINENO
  1744. # -----------------------
  1745. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1746. ac_fn_c_try_link ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. rm -f conftest.$ac_objext conftest$ac_exeext
  1750. if { { ac_try="$ac_link"
  1751. case "(($ac_try" in
  1752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1753. *) ac_try_echo=$ac_try;;
  1754. esac
  1755. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1756. $as_echo "$ac_try_echo"; } >&5
  1757. (eval "$ac_link") 2>conftest.err
  1758. ac_status=$?
  1759. if test -s conftest.err; then
  1760. grep -v '^ *+' conftest.err >conftest.er1
  1761. cat conftest.er1 >&5
  1762. mv -f conftest.er1 conftest.err
  1763. fi
  1764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1765. test $ac_status = 0; } && {
  1766. test -z "$ac_c_werror_flag" ||
  1767. test ! -s conftest.err
  1768. } && test -s conftest$ac_exeext && {
  1769. test "$cross_compiling" = yes ||
  1770. test -x conftest$ac_exeext
  1771. }; then :
  1772. ac_retval=0
  1773. else
  1774. $as_echo "$as_me: failed program was:" >&5
  1775. sed 's/^/| /' conftest.$ac_ext >&5
  1776. ac_retval=1
  1777. fi
  1778. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1779. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1780. # interfere with the next link command; also delete a directory that is
  1781. # left behind by Apple's compiler. We do this before executing the actions.
  1782. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1783. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1784. as_fn_set_status $ac_retval
  1785. } # ac_fn_c_try_link
  1786. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1787. # -------------------------------------------------------
  1788. # Tests whether HEADER exists and can be compiled using the include files in
  1789. # INCLUDES, setting the cache variable VAR accordingly.
  1790. ac_fn_c_check_header_compile ()
  1791. {
  1792. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1794. $as_echo_n "checking for $2... " >&6; }
  1795. if eval \${$3+:} false; then :
  1796. $as_echo_n "(cached) " >&6
  1797. else
  1798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1799. /* end confdefs.h. */
  1800. $4
  1801. #include <$2>
  1802. _ACEOF
  1803. if ac_fn_c_try_compile "$LINENO"; then :
  1804. eval "$3=yes"
  1805. else
  1806. eval "$3=no"
  1807. fi
  1808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1809. fi
  1810. eval ac_res=\$$3
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1812. $as_echo "$ac_res" >&6; }
  1813. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1814. } # ac_fn_c_check_header_compile
  1815. # ac_fn_c_try_cpp LINENO
  1816. # ----------------------
  1817. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1818. ac_fn_c_try_cpp ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1822. case "(($ac_try" in
  1823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1824. *) ac_try_echo=$ac_try;;
  1825. esac
  1826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1827. $as_echo "$ac_try_echo"; } >&5
  1828. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1829. ac_status=$?
  1830. if test -s conftest.err; then
  1831. grep -v '^ *+' conftest.err >conftest.er1
  1832. cat conftest.er1 >&5
  1833. mv -f conftest.er1 conftest.err
  1834. fi
  1835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1836. test $ac_status = 0; } > conftest.i && {
  1837. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1838. test ! -s conftest.err
  1839. }; then :
  1840. ac_retval=0
  1841. else
  1842. $as_echo "$as_me: failed program was:" >&5
  1843. sed 's/^/| /' conftest.$ac_ext >&5
  1844. ac_retval=1
  1845. fi
  1846. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1847. as_fn_set_status $ac_retval
  1848. } # ac_fn_c_try_cpp
  1849. # ac_fn_c_try_run LINENO
  1850. # ----------------------
  1851. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1852. # that executables *can* be run.
  1853. ac_fn_c_try_run ()
  1854. {
  1855. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1856. if { { ac_try="$ac_link"
  1857. case "(($ac_try" in
  1858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1859. *) ac_try_echo=$ac_try;;
  1860. esac
  1861. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1862. $as_echo "$ac_try_echo"; } >&5
  1863. (eval "$ac_link") 2>&5
  1864. ac_status=$?
  1865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1866. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1867. { { case "(($ac_try" in
  1868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1869. *) ac_try_echo=$ac_try;;
  1870. esac
  1871. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1872. $as_echo "$ac_try_echo"; } >&5
  1873. (eval "$ac_try") 2>&5
  1874. ac_status=$?
  1875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1876. test $ac_status = 0; }; }; then :
  1877. ac_retval=0
  1878. else
  1879. $as_echo "$as_me: program exited with status $ac_status" >&5
  1880. $as_echo "$as_me: failed program was:" >&5
  1881. sed 's/^/| /' conftest.$ac_ext >&5
  1882. ac_retval=$ac_status
  1883. fi
  1884. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1885. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886. as_fn_set_status $ac_retval
  1887. } # ac_fn_c_try_run
  1888. # ac_fn_c_check_func LINENO FUNC VAR
  1889. # ----------------------------------
  1890. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1891. ac_fn_c_check_func ()
  1892. {
  1893. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1895. $as_echo_n "checking for $2... " >&6; }
  1896. if eval \${$3+:} false; then :
  1897. $as_echo_n "(cached) " >&6
  1898. else
  1899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1900. /* end confdefs.h. */
  1901. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1902. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1903. #define $2 innocuous_$2
  1904. /* System header to define __stub macros and hopefully few prototypes,
  1905. which can conflict with char $2 (); below.
  1906. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1907. <limits.h> exists even on freestanding compilers. */
  1908. #ifdef __STDC__
  1909. # include <limits.h>
  1910. #else
  1911. # include <assert.h>
  1912. #endif
  1913. #undef $2
  1914. /* Override any GCC internal prototype to avoid an error.
  1915. Use char because int might match the return type of a GCC
  1916. builtin and then its argument prototype would still apply. */
  1917. #ifdef __cplusplus
  1918. extern "C"
  1919. #endif
  1920. char $2 ();
  1921. /* The GNU C library defines this for functions which it implements
  1922. to always fail with ENOSYS. Some functions are actually named
  1923. something starting with __ and the normal name is an alias. */
  1924. #if defined __stub_$2 || defined __stub___$2
  1925. choke me
  1926. #endif
  1927. int
  1928. main ()
  1929. {
  1930. return $2 ();
  1931. ;
  1932. return 0;
  1933. }
  1934. _ACEOF
  1935. if ac_fn_c_try_link "$LINENO"; then :
  1936. eval "$3=yes"
  1937. else
  1938. eval "$3=no"
  1939. fi
  1940. rm -f core conftest.err conftest.$ac_objext \
  1941. conftest$ac_exeext conftest.$ac_ext
  1942. fi
  1943. eval ac_res=\$$3
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1945. $as_echo "$ac_res" >&6; }
  1946. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1947. } # ac_fn_c_check_func
  1948. # ac_fn_cxx_try_compile LINENO
  1949. # ----------------------------
  1950. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1951. ac_fn_cxx_try_compile ()
  1952. {
  1953. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1954. rm -f conftest.$ac_objext
  1955. if { { ac_try="$ac_compile"
  1956. case "(($ac_try" in
  1957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1958. *) ac_try_echo=$ac_try;;
  1959. esac
  1960. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1961. $as_echo "$ac_try_echo"; } >&5
  1962. (eval "$ac_compile") 2>conftest.err
  1963. ac_status=$?
  1964. if test -s conftest.err; then
  1965. grep -v '^ *+' conftest.err >conftest.er1
  1966. cat conftest.er1 >&5
  1967. mv -f conftest.er1 conftest.err
  1968. fi
  1969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1970. test $ac_status = 0; } && {
  1971. test -z "$ac_cxx_werror_flag" ||
  1972. test ! -s conftest.err
  1973. } && test -s conftest.$ac_objext; then :
  1974. ac_retval=0
  1975. else
  1976. $as_echo "$as_me: failed program was:" >&5
  1977. sed 's/^/| /' conftest.$ac_ext >&5
  1978. ac_retval=1
  1979. fi
  1980. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1981. as_fn_set_status $ac_retval
  1982. } # ac_fn_cxx_try_compile
  1983. # ac_fn_cxx_try_cpp LINENO
  1984. # ------------------------
  1985. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1986. ac_fn_cxx_try_cpp ()
  1987. {
  1988. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1989. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1990. case "(($ac_try" in
  1991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1992. *) ac_try_echo=$ac_try;;
  1993. esac
  1994. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1995. $as_echo "$ac_try_echo"; } >&5
  1996. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1997. ac_status=$?
  1998. if test -s conftest.err; then
  1999. grep -v '^ *+' conftest.err >conftest.er1
  2000. cat conftest.er1 >&5
  2001. mv -f conftest.er1 conftest.err
  2002. fi
  2003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2004. test $ac_status = 0; } > conftest.i && {
  2005. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2006. test ! -s conftest.err
  2007. }; then :
  2008. ac_retval=0
  2009. else
  2010. $as_echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. ac_retval=1
  2013. fi
  2014. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2015. as_fn_set_status $ac_retval
  2016. } # ac_fn_cxx_try_cpp
  2017. # ac_fn_cxx_try_link LINENO
  2018. # -------------------------
  2019. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2020. ac_fn_cxx_try_link ()
  2021. {
  2022. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2023. rm -f conftest.$ac_objext conftest$ac_exeext
  2024. if { { ac_try="$ac_link"
  2025. case "(($ac_try" in
  2026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2027. *) ac_try_echo=$ac_try;;
  2028. esac
  2029. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2030. $as_echo "$ac_try_echo"; } >&5
  2031. (eval "$ac_link") 2>conftest.err
  2032. ac_status=$?
  2033. if test -s conftest.err; then
  2034. grep -v '^ *+' conftest.err >conftest.er1
  2035. cat conftest.er1 >&5
  2036. mv -f conftest.er1 conftest.err
  2037. fi
  2038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2039. test $ac_status = 0; } && {
  2040. test -z "$ac_cxx_werror_flag" ||
  2041. test ! -s conftest.err
  2042. } && test -s conftest$ac_exeext && {
  2043. test "$cross_compiling" = yes ||
  2044. test -x conftest$ac_exeext
  2045. }; then :
  2046. ac_retval=0
  2047. else
  2048. $as_echo "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. ac_retval=1
  2051. fi
  2052. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2053. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2054. # interfere with the next link command; also delete a directory that is
  2055. # left behind by Apple's compiler. We do this before executing the actions.
  2056. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2057. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2058. as_fn_set_status $ac_retval
  2059. } # ac_fn_cxx_try_link
  2060. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2061. # -------------------------------------------------------
  2062. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2063. # the include files in INCLUDES and setting the cache variable VAR
  2064. # accordingly.
  2065. ac_fn_c_check_header_mongrel ()
  2066. {
  2067. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2068. if eval \${$3+:} false; then :
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2070. $as_echo_n "checking for $2... " >&6; }
  2071. if eval \${$3+:} false; then :
  2072. $as_echo_n "(cached) " >&6
  2073. fi
  2074. eval ac_res=\$$3
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2076. $as_echo "$ac_res" >&6; }
  2077. else
  2078. # Is the header compilable?
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2080. $as_echo_n "checking $2 usability... " >&6; }
  2081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2082. /* end confdefs.h. */
  2083. $4
  2084. #include <$2>
  2085. _ACEOF
  2086. if ac_fn_c_try_compile "$LINENO"; then :
  2087. ac_header_compiler=yes
  2088. else
  2089. ac_header_compiler=no
  2090. fi
  2091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2093. $as_echo "$ac_header_compiler" >&6; }
  2094. # Is the header present?
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2096. $as_echo_n "checking $2 presence... " >&6; }
  2097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2098. /* end confdefs.h. */
  2099. #include <$2>
  2100. _ACEOF
  2101. if ac_fn_c_try_cpp "$LINENO"; then :
  2102. ac_header_preproc=yes
  2103. else
  2104. ac_header_preproc=no
  2105. fi
  2106. rm -f conftest.err conftest.i conftest.$ac_ext
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2108. $as_echo "$ac_header_preproc" >&6; }
  2109. # So? What about this header?
  2110. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2111. yes:no: )
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2113. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2115. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2116. ;;
  2117. no:yes:* )
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2119. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2121. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2123. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2125. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2127. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2128. ;;
  2129. esac
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2131. $as_echo_n "checking for $2... " >&6; }
  2132. if eval \${$3+:} false; then :
  2133. $as_echo_n "(cached) " >&6
  2134. else
  2135. eval "$3=\$ac_header_compiler"
  2136. fi
  2137. eval ac_res=\$$3
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2139. $as_echo "$ac_res" >&6; }
  2140. fi
  2141. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2142. } # ac_fn_c_check_header_mongrel
  2143. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2144. # -------------------------------------------
  2145. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2146. # variable VAR accordingly.
  2147. ac_fn_c_check_type ()
  2148. {
  2149. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2151. $as_echo_n "checking for $2... " >&6; }
  2152. if eval \${$3+:} false; then :
  2153. $as_echo_n "(cached) " >&6
  2154. else
  2155. eval "$3=no"
  2156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2157. /* end confdefs.h. */
  2158. $4
  2159. int
  2160. main ()
  2161. {
  2162. if (sizeof ($2))
  2163. return 0;
  2164. ;
  2165. return 0;
  2166. }
  2167. _ACEOF
  2168. if ac_fn_c_try_compile "$LINENO"; then :
  2169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2170. /* end confdefs.h. */
  2171. $4
  2172. int
  2173. main ()
  2174. {
  2175. if (sizeof (($2)))
  2176. return 0;
  2177. ;
  2178. return 0;
  2179. }
  2180. _ACEOF
  2181. if ac_fn_c_try_compile "$LINENO"; then :
  2182. else
  2183. eval "$3=yes"
  2184. fi
  2185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2186. fi
  2187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2188. fi
  2189. eval ac_res=\$$3
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2191. $as_echo "$ac_res" >&6; }
  2192. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2193. } # ac_fn_c_check_type
  2194. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2195. # ----------------------------------------------------
  2196. # Tries to find if the field MEMBER exists in type AGGR, after including
  2197. # INCLUDES, setting cache variable VAR accordingly.
  2198. ac_fn_c_check_member ()
  2199. {
  2200. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2202. $as_echo_n "checking for $2.$3... " >&6; }
  2203. if eval \${$4+:} false; then :
  2204. $as_echo_n "(cached) " >&6
  2205. else
  2206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2207. /* end confdefs.h. */
  2208. $5
  2209. int
  2210. main ()
  2211. {
  2212. static $2 ac_aggr;
  2213. if (ac_aggr.$3)
  2214. return 0;
  2215. ;
  2216. return 0;
  2217. }
  2218. _ACEOF
  2219. if ac_fn_c_try_compile "$LINENO"; then :
  2220. eval "$4=yes"
  2221. else
  2222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2223. /* end confdefs.h. */
  2224. $5
  2225. int
  2226. main ()
  2227. {
  2228. static $2 ac_aggr;
  2229. if (sizeof ac_aggr.$3)
  2230. return 0;
  2231. ;
  2232. return 0;
  2233. }
  2234. _ACEOF
  2235. if ac_fn_c_try_compile "$LINENO"; then :
  2236. eval "$4=yes"
  2237. else
  2238. eval "$4=no"
  2239. fi
  2240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2241. fi
  2242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2243. fi
  2244. eval ac_res=\$$4
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2246. $as_echo "$ac_res" >&6; }
  2247. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2248. } # ac_fn_c_check_member
  2249. cat >config.log <<_ACEOF
  2250. This file contains any messages produced by compilers while
  2251. running configure, to aid debugging if configure makes a mistake.
  2252. It was created by $as_me, which was
  2253. generated by GNU Autoconf 2.69. Invocation command line was
  2254. $ $0 $@
  2255. _ACEOF
  2256. exec 5>>config.log
  2257. {
  2258. cat <<_ASUNAME
  2259. ## --------- ##
  2260. ## Platform. ##
  2261. ## --------- ##
  2262. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2263. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2264. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2265. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2266. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2267. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2268. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2269. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2270. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2271. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2272. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2273. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2274. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2275. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2276. _ASUNAME
  2277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2278. for as_dir in $PATH
  2279. do
  2280. IFS=$as_save_IFS
  2281. test -z "$as_dir" && as_dir=.
  2282. $as_echo "PATH: $as_dir"
  2283. done
  2284. IFS=$as_save_IFS
  2285. } >&5
  2286. cat >&5 <<_ACEOF
  2287. ## ----------- ##
  2288. ## Core tests. ##
  2289. ## ----------- ##
  2290. _ACEOF
  2291. # Keep a trace of the command line.
  2292. # Strip out --no-create and --no-recursion so they do not pile up.
  2293. # Strip out --silent because we don't want to record it for future runs.
  2294. # Also quote any args containing shell meta-characters.
  2295. # Make two passes to allow for proper duplicate-argument suppression.
  2296. ac_configure_args=
  2297. ac_configure_args0=
  2298. ac_configure_args1=
  2299. ac_must_keep_next=false
  2300. for ac_pass in 1 2
  2301. do
  2302. for ac_arg
  2303. do
  2304. case $ac_arg in
  2305. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2306. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2307. | -silent | --silent | --silen | --sile | --sil)
  2308. continue ;;
  2309. *\'*)
  2310. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2311. esac
  2312. case $ac_pass in
  2313. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2314. 2)
  2315. as_fn_append ac_configure_args1 " '$ac_arg'"
  2316. if test $ac_must_keep_next = true; then
  2317. ac_must_keep_next=false # Got value, back to normal.
  2318. else
  2319. case $ac_arg in
  2320. *=* | --config-cache | -C | -disable-* | --disable-* \
  2321. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2322. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2323. | -with-* | --with-* | -without-* | --without-* | --x)
  2324. case "$ac_configure_args0 " in
  2325. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2326. esac
  2327. ;;
  2328. -* ) ac_must_keep_next=true ;;
  2329. esac
  2330. fi
  2331. as_fn_append ac_configure_args " '$ac_arg'"
  2332. ;;
  2333. esac
  2334. done
  2335. done
  2336. { ac_configure_args0=; unset ac_configure_args0;}
  2337. { ac_configure_args1=; unset ac_configure_args1;}
  2338. # When interrupted or exit'd, cleanup temporary files, and complete
  2339. # config.log. We remove comments because anyway the quotes in there
  2340. # would cause problems or look ugly.
  2341. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2342. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2343. trap 'exit_status=$?
  2344. # Save into config.log some information that might help in debugging.
  2345. {
  2346. echo
  2347. $as_echo "## ---------------- ##
  2348. ## Cache variables. ##
  2349. ## ---------------- ##"
  2350. echo
  2351. # The following way of writing the cache mishandles newlines in values,
  2352. (
  2353. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2354. eval ac_val=\$$ac_var
  2355. case $ac_val in #(
  2356. *${as_nl}*)
  2357. case $ac_var in #(
  2358. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2359. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2360. esac
  2361. case $ac_var in #(
  2362. _ | IFS | as_nl) ;; #(
  2363. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2364. *) { eval $ac_var=; unset $ac_var;} ;;
  2365. esac ;;
  2366. esac
  2367. done
  2368. (set) 2>&1 |
  2369. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2370. *${as_nl}ac_space=\ *)
  2371. sed -n \
  2372. "s/'\''/'\''\\\\'\'''\''/g;
  2373. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2374. ;; #(
  2375. *)
  2376. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2377. ;;
  2378. esac |
  2379. sort
  2380. )
  2381. echo
  2382. $as_echo "## ----------------- ##
  2383. ## Output variables. ##
  2384. ## ----------------- ##"
  2385. echo
  2386. for ac_var in $ac_subst_vars
  2387. do
  2388. eval ac_val=\$$ac_var
  2389. case $ac_val in
  2390. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2391. esac
  2392. $as_echo "$ac_var='\''$ac_val'\''"
  2393. done | sort
  2394. echo
  2395. if test -n "$ac_subst_files"; then
  2396. $as_echo "## ------------------- ##
  2397. ## File substitutions. ##
  2398. ## ------------------- ##"
  2399. echo
  2400. for ac_var in $ac_subst_files
  2401. do
  2402. eval ac_val=\$$ac_var
  2403. case $ac_val in
  2404. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2405. esac
  2406. $as_echo "$ac_var='\''$ac_val'\''"
  2407. done | sort
  2408. echo
  2409. fi
  2410. if test -s confdefs.h; then
  2411. $as_echo "## ----------- ##
  2412. ## confdefs.h. ##
  2413. ## ----------- ##"
  2414. echo
  2415. cat confdefs.h
  2416. echo
  2417. fi
  2418. test "$ac_signal" != 0 &&
  2419. $as_echo "$as_me: caught signal $ac_signal"
  2420. $as_echo "$as_me: exit $exit_status"
  2421. } >&5
  2422. rm -f core *.core core.conftest.* &&
  2423. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2424. exit $exit_status
  2425. ' 0
  2426. for ac_signal in 1 2 13 15; do
  2427. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2428. done
  2429. ac_signal=0
  2430. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2431. rm -f -r conftest* confdefs.h
  2432. $as_echo "/* confdefs.h */" > confdefs.h
  2433. # Predefined preprocessor variables.
  2434. cat >>confdefs.h <<_ACEOF
  2435. #define PACKAGE_NAME "$PACKAGE_NAME"
  2436. _ACEOF
  2437. cat >>confdefs.h <<_ACEOF
  2438. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2439. _ACEOF
  2440. cat >>confdefs.h <<_ACEOF
  2441. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2442. _ACEOF
  2443. cat >>confdefs.h <<_ACEOF
  2444. #define PACKAGE_STRING "$PACKAGE_STRING"
  2445. _ACEOF
  2446. cat >>confdefs.h <<_ACEOF
  2447. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2448. _ACEOF
  2449. cat >>confdefs.h <<_ACEOF
  2450. #define PACKAGE_URL "$PACKAGE_URL"
  2451. _ACEOF
  2452. # Let the site file select an alternate cache file if it wants to.
  2453. # Prefer an explicitly selected file to automatically selected ones.
  2454. ac_site_file1=NONE
  2455. ac_site_file2=NONE
  2456. if test -n "$CONFIG_SITE"; then
  2457. # We do not want a PATH search for config.site.
  2458. case $CONFIG_SITE in #((
  2459. -*) ac_site_file1=./$CONFIG_SITE;;
  2460. */*) ac_site_file1=$CONFIG_SITE;;
  2461. *) ac_site_file1=./$CONFIG_SITE;;
  2462. esac
  2463. elif test "x$prefix" != xNONE; then
  2464. ac_site_file1=$prefix/share/config.site
  2465. ac_site_file2=$prefix/etc/config.site
  2466. else
  2467. ac_site_file1=$ac_default_prefix/share/config.site
  2468. ac_site_file2=$ac_default_prefix/etc/config.site
  2469. fi
  2470. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2471. do
  2472. test "x$ac_site_file" = xNONE && continue
  2473. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2475. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2476. sed 's/^/| /' "$ac_site_file" >&5
  2477. . "$ac_site_file" \
  2478. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2480. as_fn_error $? "failed to load site script $ac_site_file
  2481. See \`config.log' for more details" "$LINENO" 5; }
  2482. fi
  2483. done
  2484. if test -r "$cache_file"; then
  2485. # Some versions of bash will fail to source /dev/null (special files
  2486. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2487. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2489. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2490. case $cache_file in
  2491. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2492. *) . "./$cache_file";;
  2493. esac
  2494. fi
  2495. else
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2497. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2498. >$cache_file
  2499. fi
  2500. # Check that the precious variables saved in the cache have kept the same
  2501. # value.
  2502. ac_cache_corrupted=false
  2503. for ac_var in $ac_precious_vars; do
  2504. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2505. eval ac_new_set=\$ac_env_${ac_var}_set
  2506. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2507. eval ac_new_val=\$ac_env_${ac_var}_value
  2508. case $ac_old_set,$ac_new_set in
  2509. set,)
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2511. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2512. ac_cache_corrupted=: ;;
  2513. ,set)
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2515. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2516. ac_cache_corrupted=: ;;
  2517. ,);;
  2518. *)
  2519. if test "x$ac_old_val" != "x$ac_new_val"; then
  2520. # differences in whitespace do not lead to failure.
  2521. ac_old_val_w=`echo x $ac_old_val`
  2522. ac_new_val_w=`echo x $ac_new_val`
  2523. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2525. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2526. ac_cache_corrupted=:
  2527. else
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2529. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2530. eval $ac_var=\$ac_old_val
  2531. fi
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2533. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2535. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2536. fi;;
  2537. esac
  2538. # Pass precious variables to config.status.
  2539. if test "$ac_new_set" = set; then
  2540. case $ac_new_val in
  2541. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2542. *) ac_arg=$ac_var=$ac_new_val ;;
  2543. esac
  2544. case " $ac_configure_args " in
  2545. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2546. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2547. esac
  2548. fi
  2549. done
  2550. if $ac_cache_corrupted; then
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2552. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2554. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2555. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2556. fi
  2557. ## -------------------- ##
  2558. ## Main body of script. ##
  2559. ## -------------------- ##
  2560. ac_ext=c
  2561. ac_cpp='$CPP $CPPFLAGS'
  2562. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2563. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2564. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2565. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2566. ac_aux_dir=
  2567. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2568. if test -f "$ac_dir/install-sh"; then
  2569. ac_aux_dir=$ac_dir
  2570. ac_install_sh="$ac_aux_dir/install-sh -c"
  2571. break
  2572. elif test -f "$ac_dir/install.sh"; then
  2573. ac_aux_dir=$ac_dir
  2574. ac_install_sh="$ac_aux_dir/install.sh -c"
  2575. break
  2576. elif test -f "$ac_dir/shtool"; then
  2577. ac_aux_dir=$ac_dir
  2578. ac_install_sh="$ac_aux_dir/shtool install -c"
  2579. break
  2580. fi
  2581. done
  2582. if test -z "$ac_aux_dir"; then
  2583. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2584. fi
  2585. # These three variables are undocumented and unsupported,
  2586. # and are intended to be withdrawn in a future Autoconf release.
  2587. # They can cause serious problems if a builder's source tree is in a directory
  2588. # whose full name contains unusual characters.
  2589. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2590. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2591. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2592. orig_CFLAGS="$CFLAGS"
  2593. #
  2594. # Making releases:
  2595. # Edit include/SDL_version.h and change the version, then:
  2596. # SDL_MICRO_VERSION += 1;
  2597. # SDL_INTERFACE_AGE += 1;
  2598. # SDL_BINARY_AGE += 1;
  2599. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2600. # if backwards compatibility has been broken,
  2601. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2602. #
  2603. SDL_MAJOR_VERSION=2
  2604. SDL_MINOR_VERSION=0
  2605. SDL_MICRO_VERSION=15
  2606. SDL_INTERFACE_AGE=1
  2607. SDL_BINARY_AGE=15
  2608. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2609. # libtool versioning
  2610. case `pwd` in
  2611. *\ * | *\ *)
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2613. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2614. esac
  2615. macro_version='2.4.2'
  2616. macro_revision='1.3337'
  2617. ltmain="$ac_aux_dir/ltmain.sh"
  2618. # Make sure we can run config.sub.
  2619. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2620. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2622. $as_echo_n "checking build system type... " >&6; }
  2623. if ${ac_cv_build+:} false; then :
  2624. $as_echo_n "(cached) " >&6
  2625. else
  2626. ac_build_alias=$build_alias
  2627. test "x$ac_build_alias" = x &&
  2628. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2629. test "x$ac_build_alias" = x &&
  2630. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2631. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2632. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2633. fi
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2635. $as_echo "$ac_cv_build" >&6; }
  2636. case $ac_cv_build in
  2637. *-*-*) ;;
  2638. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2639. esac
  2640. build=$ac_cv_build
  2641. ac_save_IFS=$IFS; IFS='-'
  2642. set x $ac_cv_build
  2643. shift
  2644. build_cpu=$1
  2645. build_vendor=$2
  2646. shift; shift
  2647. # Remember, the first character of IFS is used to create $*,
  2648. # except with old shells:
  2649. build_os=$*
  2650. IFS=$ac_save_IFS
  2651. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2653. $as_echo_n "checking host system type... " >&6; }
  2654. if ${ac_cv_host+:} false; then :
  2655. $as_echo_n "(cached) " >&6
  2656. else
  2657. if test "x$host_alias" = x; then
  2658. ac_cv_host=$ac_cv_build
  2659. else
  2660. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2661. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2662. fi
  2663. fi
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2665. $as_echo "$ac_cv_host" >&6; }
  2666. case $ac_cv_host in
  2667. *-*-*) ;;
  2668. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2669. esac
  2670. host=$ac_cv_host
  2671. ac_save_IFS=$IFS; IFS='-'
  2672. set x $ac_cv_host
  2673. shift
  2674. host_cpu=$1
  2675. host_vendor=$2
  2676. shift; shift
  2677. # Remember, the first character of IFS is used to create $*,
  2678. # except with old shells:
  2679. host_os=$*
  2680. IFS=$ac_save_IFS
  2681. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2682. # Backslashify metacharacters that are still active within
  2683. # double-quoted strings.
  2684. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2685. # Same as above, but do not quote variable references.
  2686. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2687. # Sed substitution to delay expansion of an escaped shell variable in a
  2688. # double_quote_subst'ed string.
  2689. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2690. # Sed substitution to delay expansion of an escaped single quote.
  2691. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2692. # Sed substitution to avoid accidental globbing in evaled expressions
  2693. no_glob_subst='s/\*/\\\*/g'
  2694. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2695. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2696. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2698. $as_echo_n "checking how to print strings... " >&6; }
  2699. # Test print first, because it will be a builtin if present.
  2700. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2701. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2702. ECHO='print -r --'
  2703. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2704. ECHO='printf %s\n'
  2705. else
  2706. # Use this function as a fallback that always works.
  2707. func_fallback_echo ()
  2708. {
  2709. eval 'cat <<_LTECHO_EOF
  2710. $1
  2711. _LTECHO_EOF'
  2712. }
  2713. ECHO='func_fallback_echo'
  2714. fi
  2715. # func_echo_all arg...
  2716. # Invoke $ECHO with all args, space-separated.
  2717. func_echo_all ()
  2718. {
  2719. $ECHO ""
  2720. }
  2721. case "$ECHO" in
  2722. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2723. $as_echo "printf" >&6; } ;;
  2724. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2725. $as_echo "print -r" >&6; } ;;
  2726. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2727. $as_echo "cat" >&6; } ;;
  2728. esac
  2729. ac_ext=c
  2730. ac_cpp='$CPP $CPPFLAGS'
  2731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2734. if test -n "$ac_tool_prefix"; then
  2735. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2736. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2738. $as_echo_n "checking for $ac_word... " >&6; }
  2739. if ${ac_cv_prog_CC+:} false; then :
  2740. $as_echo_n "(cached) " >&6
  2741. else
  2742. if test -n "$CC"; then
  2743. ac_cv_prog_CC="$CC" # Let the user override the test.
  2744. else
  2745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2746. for as_dir in $PATH
  2747. do
  2748. IFS=$as_save_IFS
  2749. test -z "$as_dir" && as_dir=.
  2750. for ac_exec_ext in '' $ac_executable_extensions; do
  2751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2752. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2754. break 2
  2755. fi
  2756. done
  2757. done
  2758. IFS=$as_save_IFS
  2759. fi
  2760. fi
  2761. CC=$ac_cv_prog_CC
  2762. if test -n "$CC"; then
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2764. $as_echo "$CC" >&6; }
  2765. else
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2767. $as_echo "no" >&6; }
  2768. fi
  2769. fi
  2770. if test -z "$ac_cv_prog_CC"; then
  2771. ac_ct_CC=$CC
  2772. # Extract the first word of "gcc", so it can be a program name with args.
  2773. set dummy gcc; ac_word=$2
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2775. $as_echo_n "checking for $ac_word... " >&6; }
  2776. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2777. $as_echo_n "(cached) " >&6
  2778. else
  2779. if test -n "$ac_ct_CC"; then
  2780. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2781. else
  2782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2783. for as_dir in $PATH
  2784. do
  2785. IFS=$as_save_IFS
  2786. test -z "$as_dir" && as_dir=.
  2787. for ac_exec_ext in '' $ac_executable_extensions; do
  2788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2789. ac_cv_prog_ac_ct_CC="gcc"
  2790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2791. break 2
  2792. fi
  2793. done
  2794. done
  2795. IFS=$as_save_IFS
  2796. fi
  2797. fi
  2798. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2799. if test -n "$ac_ct_CC"; then
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2801. $as_echo "$ac_ct_CC" >&6; }
  2802. else
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2804. $as_echo "no" >&6; }
  2805. fi
  2806. if test "x$ac_ct_CC" = x; then
  2807. CC=""
  2808. else
  2809. case $cross_compiling:$ac_tool_warned in
  2810. yes:)
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2812. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2813. ac_tool_warned=yes ;;
  2814. esac
  2815. CC=$ac_ct_CC
  2816. fi
  2817. else
  2818. CC="$ac_cv_prog_CC"
  2819. fi
  2820. if test -z "$CC"; then
  2821. if test -n "$ac_tool_prefix"; then
  2822. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2823. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2825. $as_echo_n "checking for $ac_word... " >&6; }
  2826. if ${ac_cv_prog_CC+:} false; then :
  2827. $as_echo_n "(cached) " >&6
  2828. else
  2829. if test -n "$CC"; then
  2830. ac_cv_prog_CC="$CC" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. IFS=$as_save_IFS
  2846. fi
  2847. fi
  2848. CC=$ac_cv_prog_CC
  2849. if test -n "$CC"; then
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2851. $as_echo "$CC" >&6; }
  2852. else
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2854. $as_echo "no" >&6; }
  2855. fi
  2856. fi
  2857. fi
  2858. if test -z "$CC"; then
  2859. # Extract the first word of "cc", so it can be a program name with args.
  2860. set dummy cc; ac_word=$2
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2862. $as_echo_n "checking for $ac_word... " >&6; }
  2863. if ${ac_cv_prog_CC+:} false; then :
  2864. $as_echo_n "(cached) " >&6
  2865. else
  2866. if test -n "$CC"; then
  2867. ac_cv_prog_CC="$CC" # Let the user override the test.
  2868. else
  2869. ac_prog_rejected=no
  2870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2871. for as_dir in $PATH
  2872. do
  2873. IFS=$as_save_IFS
  2874. test -z "$as_dir" && as_dir=.
  2875. for ac_exec_ext in '' $ac_executable_extensions; do
  2876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2877. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2878. ac_prog_rejected=yes
  2879. continue
  2880. fi
  2881. ac_cv_prog_CC="cc"
  2882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2883. break 2
  2884. fi
  2885. done
  2886. done
  2887. IFS=$as_save_IFS
  2888. if test $ac_prog_rejected = yes; then
  2889. # We found a bogon in the path, so make sure we never use it.
  2890. set dummy $ac_cv_prog_CC
  2891. shift
  2892. if test $# != 0; then
  2893. # We chose a different compiler from the bogus one.
  2894. # However, it has the same basename, so the bogon will be chosen
  2895. # first if we set CC to just the basename; use the full file name.
  2896. shift
  2897. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2898. fi
  2899. fi
  2900. fi
  2901. fi
  2902. CC=$ac_cv_prog_CC
  2903. if test -n "$CC"; then
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2905. $as_echo "$CC" >&6; }
  2906. else
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2908. $as_echo "no" >&6; }
  2909. fi
  2910. fi
  2911. if test -z "$CC"; then
  2912. if test -n "$ac_tool_prefix"; then
  2913. for ac_prog in cl.exe
  2914. do
  2915. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2916. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2918. $as_echo_n "checking for $ac_word... " >&6; }
  2919. if ${ac_cv_prog_CC+:} false; then :
  2920. $as_echo_n "(cached) " >&6
  2921. else
  2922. if test -n "$CC"; then
  2923. ac_cv_prog_CC="$CC" # Let the user override the test.
  2924. else
  2925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2926. for as_dir in $PATH
  2927. do
  2928. IFS=$as_save_IFS
  2929. test -z "$as_dir" && as_dir=.
  2930. for ac_exec_ext in '' $ac_executable_extensions; do
  2931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2932. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2934. break 2
  2935. fi
  2936. done
  2937. done
  2938. IFS=$as_save_IFS
  2939. fi
  2940. fi
  2941. CC=$ac_cv_prog_CC
  2942. if test -n "$CC"; then
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2944. $as_echo "$CC" >&6; }
  2945. else
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2947. $as_echo "no" >&6; }
  2948. fi
  2949. test -n "$CC" && break
  2950. done
  2951. fi
  2952. if test -z "$CC"; then
  2953. ac_ct_CC=$CC
  2954. for ac_prog in cl.exe
  2955. do
  2956. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2957. set dummy $ac_prog; ac_word=$2
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2959. $as_echo_n "checking for $ac_word... " >&6; }
  2960. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2961. $as_echo_n "(cached) " >&6
  2962. else
  2963. if test -n "$ac_ct_CC"; then
  2964. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2965. else
  2966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2967. for as_dir in $PATH
  2968. do
  2969. IFS=$as_save_IFS
  2970. test -z "$as_dir" && as_dir=.
  2971. for ac_exec_ext in '' $ac_executable_extensions; do
  2972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2973. ac_cv_prog_ac_ct_CC="$ac_prog"
  2974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2975. break 2
  2976. fi
  2977. done
  2978. done
  2979. IFS=$as_save_IFS
  2980. fi
  2981. fi
  2982. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2983. if test -n "$ac_ct_CC"; then
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2985. $as_echo "$ac_ct_CC" >&6; }
  2986. else
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2988. $as_echo "no" >&6; }
  2989. fi
  2990. test -n "$ac_ct_CC" && break
  2991. done
  2992. if test "x$ac_ct_CC" = x; then
  2993. CC=""
  2994. else
  2995. case $cross_compiling:$ac_tool_warned in
  2996. yes:)
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2998. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2999. ac_tool_warned=yes ;;
  3000. esac
  3001. CC=$ac_ct_CC
  3002. fi
  3003. fi
  3004. fi
  3005. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3006. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3007. as_fn_error $? "no acceptable C compiler found in \$PATH
  3008. See \`config.log' for more details" "$LINENO" 5; }
  3009. # Provide some information about the compiler.
  3010. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3011. set X $ac_compile
  3012. ac_compiler=$2
  3013. for ac_option in --version -v -V -qversion; do
  3014. { { ac_try="$ac_compiler $ac_option >&5"
  3015. case "(($ac_try" in
  3016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3017. *) ac_try_echo=$ac_try;;
  3018. esac
  3019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3020. $as_echo "$ac_try_echo"; } >&5
  3021. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3022. ac_status=$?
  3023. if test -s conftest.err; then
  3024. sed '10a\
  3025. ... rest of stderr output deleted ...
  3026. 10q' conftest.err >conftest.er1
  3027. cat conftest.er1 >&5
  3028. fi
  3029. rm -f conftest.er1 conftest.err
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3031. test $ac_status = 0; }
  3032. done
  3033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3034. /* end confdefs.h. */
  3035. int
  3036. main ()
  3037. {
  3038. ;
  3039. return 0;
  3040. }
  3041. _ACEOF
  3042. ac_clean_files_save=$ac_clean_files
  3043. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3044. # Try to create an executable without -o first, disregard a.out.
  3045. # It will help us diagnose broken compilers, and finding out an intuition
  3046. # of exeext.
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3048. $as_echo_n "checking whether the C compiler works... " >&6; }
  3049. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3050. # The possible output files:
  3051. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3052. ac_rmfiles=
  3053. for ac_file in $ac_files
  3054. do
  3055. case $ac_file in
  3056. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3057. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3058. esac
  3059. done
  3060. rm -f $ac_rmfiles
  3061. if { { ac_try="$ac_link_default"
  3062. case "(($ac_try" in
  3063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3064. *) ac_try_echo=$ac_try;;
  3065. esac
  3066. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3067. $as_echo "$ac_try_echo"; } >&5
  3068. (eval "$ac_link_default") 2>&5
  3069. ac_status=$?
  3070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3071. test $ac_status = 0; }; then :
  3072. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3073. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3074. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3075. # so that the user can short-circuit this test for compilers unknown to
  3076. # Autoconf.
  3077. for ac_file in $ac_files ''
  3078. do
  3079. test -f "$ac_file" || continue
  3080. case $ac_file in
  3081. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3082. ;;
  3083. [ab].out )
  3084. # We found the default executable, but exeext='' is most
  3085. # certainly right.
  3086. break;;
  3087. *.* )
  3088. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3089. then :; else
  3090. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3091. fi
  3092. # We set ac_cv_exeext here because the later test for it is not
  3093. # safe: cross compilers may not add the suffix if given an `-o'
  3094. # argument, so we may need to know it at that point already.
  3095. # Even if this section looks crufty: it has the advantage of
  3096. # actually working.
  3097. break;;
  3098. * )
  3099. break;;
  3100. esac
  3101. done
  3102. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3103. else
  3104. ac_file=''
  3105. fi
  3106. if test -z "$ac_file"; then :
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3108. $as_echo "no" >&6; }
  3109. $as_echo "$as_me: failed program was:" >&5
  3110. sed 's/^/| /' conftest.$ac_ext >&5
  3111. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3112. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3113. as_fn_error 77 "C compiler cannot create executables
  3114. See \`config.log' for more details" "$LINENO" 5; }
  3115. else
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3117. $as_echo "yes" >&6; }
  3118. fi
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3120. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3122. $as_echo "$ac_file" >&6; }
  3123. ac_exeext=$ac_cv_exeext
  3124. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3125. ac_clean_files=$ac_clean_files_save
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3127. $as_echo_n "checking for suffix of executables... " >&6; }
  3128. if { { ac_try="$ac_link"
  3129. case "(($ac_try" in
  3130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3131. *) ac_try_echo=$ac_try;;
  3132. esac
  3133. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3134. $as_echo "$ac_try_echo"; } >&5
  3135. (eval "$ac_link") 2>&5
  3136. ac_status=$?
  3137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3138. test $ac_status = 0; }; then :
  3139. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3140. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3141. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3142. # `rm'.
  3143. for ac_file in conftest.exe conftest conftest.*; do
  3144. test -f "$ac_file" || continue
  3145. case $ac_file in
  3146. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3147. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3148. break;;
  3149. * ) break;;
  3150. esac
  3151. done
  3152. else
  3153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3155. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3156. See \`config.log' for more details" "$LINENO" 5; }
  3157. fi
  3158. rm -f conftest conftest$ac_cv_exeext
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3160. $as_echo "$ac_cv_exeext" >&6; }
  3161. rm -f conftest.$ac_ext
  3162. EXEEXT=$ac_cv_exeext
  3163. ac_exeext=$EXEEXT
  3164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3165. /* end confdefs.h. */
  3166. #include <stdio.h>
  3167. int
  3168. main ()
  3169. {
  3170. FILE *f = fopen ("conftest.out", "w");
  3171. return ferror (f) || fclose (f) != 0;
  3172. ;
  3173. return 0;
  3174. }
  3175. _ACEOF
  3176. ac_clean_files="$ac_clean_files conftest.out"
  3177. # Check that the compiler produces executables we can run. If not, either
  3178. # the compiler is broken, or we cross compile.
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3180. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3181. if test "$cross_compiling" != yes; then
  3182. { { ac_try="$ac_link"
  3183. case "(($ac_try" in
  3184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3185. *) ac_try_echo=$ac_try;;
  3186. esac
  3187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3188. $as_echo "$ac_try_echo"; } >&5
  3189. (eval "$ac_link") 2>&5
  3190. ac_status=$?
  3191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3192. test $ac_status = 0; }
  3193. if { ac_try='./conftest$ac_cv_exeext'
  3194. { { case "(($ac_try" in
  3195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3196. *) ac_try_echo=$ac_try;;
  3197. esac
  3198. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3199. $as_echo "$ac_try_echo"; } >&5
  3200. (eval "$ac_try") 2>&5
  3201. ac_status=$?
  3202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3203. test $ac_status = 0; }; }; then
  3204. cross_compiling=no
  3205. else
  3206. if test "$cross_compiling" = maybe; then
  3207. cross_compiling=yes
  3208. else
  3209. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3210. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3211. as_fn_error $? "cannot run C compiled programs.
  3212. If you meant to cross compile, use \`--host'.
  3213. See \`config.log' for more details" "$LINENO" 5; }
  3214. fi
  3215. fi
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3218. $as_echo "$cross_compiling" >&6; }
  3219. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3220. ac_clean_files=$ac_clean_files_save
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3222. $as_echo_n "checking for suffix of object files... " >&6; }
  3223. if ${ac_cv_objext+:} false; then :
  3224. $as_echo_n "(cached) " >&6
  3225. else
  3226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3227. /* end confdefs.h. */
  3228. int
  3229. main ()
  3230. {
  3231. ;
  3232. return 0;
  3233. }
  3234. _ACEOF
  3235. rm -f conftest.o conftest.obj
  3236. if { { ac_try="$ac_compile"
  3237. case "(($ac_try" in
  3238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3239. *) ac_try_echo=$ac_try;;
  3240. esac
  3241. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3242. $as_echo "$ac_try_echo"; } >&5
  3243. (eval "$ac_compile") 2>&5
  3244. ac_status=$?
  3245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3246. test $ac_status = 0; }; then :
  3247. for ac_file in conftest.o conftest.obj conftest.*; do
  3248. test -f "$ac_file" || continue;
  3249. case $ac_file in
  3250. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3251. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3252. break;;
  3253. esac
  3254. done
  3255. else
  3256. $as_echo "$as_me: failed program was:" >&5
  3257. sed 's/^/| /' conftest.$ac_ext >&5
  3258. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3259. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3260. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3261. See \`config.log' for more details" "$LINENO" 5; }
  3262. fi
  3263. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3264. fi
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3266. $as_echo "$ac_cv_objext" >&6; }
  3267. OBJEXT=$ac_cv_objext
  3268. ac_objext=$OBJEXT
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3270. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3271. if ${ac_cv_c_compiler_gnu+:} false; then :
  3272. $as_echo_n "(cached) " >&6
  3273. else
  3274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3275. /* end confdefs.h. */
  3276. int
  3277. main ()
  3278. {
  3279. #ifndef __GNUC__
  3280. choke me
  3281. #endif
  3282. ;
  3283. return 0;
  3284. }
  3285. _ACEOF
  3286. if ac_fn_c_try_compile "$LINENO"; then :
  3287. ac_compiler_gnu=yes
  3288. else
  3289. ac_compiler_gnu=no
  3290. fi
  3291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3292. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3293. fi
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3295. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3296. if test $ac_compiler_gnu = yes; then
  3297. GCC=yes
  3298. else
  3299. GCC=
  3300. fi
  3301. ac_test_CFLAGS=${CFLAGS+set}
  3302. ac_save_CFLAGS=$CFLAGS
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3304. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3305. if ${ac_cv_prog_cc_g+:} false; then :
  3306. $as_echo_n "(cached) " >&6
  3307. else
  3308. ac_save_c_werror_flag=$ac_c_werror_flag
  3309. ac_c_werror_flag=yes
  3310. ac_cv_prog_cc_g=no
  3311. CFLAGS="-g"
  3312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3313. /* end confdefs.h. */
  3314. int
  3315. main ()
  3316. {
  3317. ;
  3318. return 0;
  3319. }
  3320. _ACEOF
  3321. if ac_fn_c_try_compile "$LINENO"; then :
  3322. ac_cv_prog_cc_g=yes
  3323. else
  3324. CFLAGS=""
  3325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3326. /* end confdefs.h. */
  3327. int
  3328. main ()
  3329. {
  3330. ;
  3331. return 0;
  3332. }
  3333. _ACEOF
  3334. if ac_fn_c_try_compile "$LINENO"; then :
  3335. else
  3336. ac_c_werror_flag=$ac_save_c_werror_flag
  3337. CFLAGS="-g"
  3338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3339. /* end confdefs.h. */
  3340. int
  3341. main ()
  3342. {
  3343. ;
  3344. return 0;
  3345. }
  3346. _ACEOF
  3347. if ac_fn_c_try_compile "$LINENO"; then :
  3348. ac_cv_prog_cc_g=yes
  3349. fi
  3350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3351. fi
  3352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3353. fi
  3354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3355. ac_c_werror_flag=$ac_save_c_werror_flag
  3356. fi
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3358. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3359. if test "$ac_test_CFLAGS" = set; then
  3360. CFLAGS=$ac_save_CFLAGS
  3361. elif test $ac_cv_prog_cc_g = yes; then
  3362. if test "$GCC" = yes; then
  3363. CFLAGS="-g -O2"
  3364. else
  3365. CFLAGS="-g"
  3366. fi
  3367. else
  3368. if test "$GCC" = yes; then
  3369. CFLAGS="-O2"
  3370. else
  3371. CFLAGS=
  3372. fi
  3373. fi
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3375. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3376. if ${ac_cv_prog_cc_c89+:} false; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. ac_cv_prog_cc_c89=no
  3380. ac_save_CC=$CC
  3381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3382. /* end confdefs.h. */
  3383. #include <stdarg.h>
  3384. #include <stdio.h>
  3385. struct stat;
  3386. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3387. struct buf { int x; };
  3388. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3389. static char *e (p, i)
  3390. char **p;
  3391. int i;
  3392. {
  3393. return p[i];
  3394. }
  3395. static char *f (char * (*g) (char **, int), char **p, ...)
  3396. {
  3397. char *s;
  3398. va_list v;
  3399. va_start (v,p);
  3400. s = g (p, va_arg (v,int));
  3401. va_end (v);
  3402. return s;
  3403. }
  3404. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3405. function prototypes and stuff, but not '\xHH' hex character constants.
  3406. These don't provoke an error unfortunately, instead are silently treated
  3407. as 'x'. The following induces an error, until -std is added to get
  3408. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3409. array size at least. It's necessary to write '\x00'==0 to get something
  3410. that's true only with -std. */
  3411. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3412. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3413. inside strings and character constants. */
  3414. #define FOO(x) 'x'
  3415. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3416. int test (int i, double x);
  3417. struct s1 {int (*f) (int a);};
  3418. struct s2 {int (*f) (double a);};
  3419. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3420. int argc;
  3421. char **argv;
  3422. int
  3423. main ()
  3424. {
  3425. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3426. ;
  3427. return 0;
  3428. }
  3429. _ACEOF
  3430. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3431. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3432. do
  3433. CC="$ac_save_CC $ac_arg"
  3434. if ac_fn_c_try_compile "$LINENO"; then :
  3435. ac_cv_prog_cc_c89=$ac_arg
  3436. fi
  3437. rm -f core conftest.err conftest.$ac_objext
  3438. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3439. done
  3440. rm -f conftest.$ac_ext
  3441. CC=$ac_save_CC
  3442. fi
  3443. # AC_CACHE_VAL
  3444. case "x$ac_cv_prog_cc_c89" in
  3445. x)
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3447. $as_echo "none needed" >&6; } ;;
  3448. xno)
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3450. $as_echo "unsupported" >&6; } ;;
  3451. *)
  3452. CC="$CC $ac_cv_prog_cc_c89"
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3454. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3455. esac
  3456. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3457. fi
  3458. ac_ext=c
  3459. ac_cpp='$CPP $CPPFLAGS'
  3460. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3461. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3462. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3464. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3465. if ${ac_cv_path_SED+:} false; then :
  3466. $as_echo_n "(cached) " >&6
  3467. else
  3468. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3469. for ac_i in 1 2 3 4 5 6 7; do
  3470. ac_script="$ac_script$as_nl$ac_script"
  3471. done
  3472. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3473. { ac_script=; unset ac_script;}
  3474. if test -z "$SED"; then
  3475. ac_path_SED_found=false
  3476. # Loop through the user's path and test for each of PROGNAME-LIST
  3477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3478. for as_dir in $PATH
  3479. do
  3480. IFS=$as_save_IFS
  3481. test -z "$as_dir" && as_dir=.
  3482. for ac_prog in sed gsed; do
  3483. for ac_exec_ext in '' $ac_executable_extensions; do
  3484. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3485. as_fn_executable_p "$ac_path_SED" || continue
  3486. # Check for GNU ac_path_SED and select it if it is found.
  3487. # Check for GNU $ac_path_SED
  3488. case `"$ac_path_SED" --version 2>&1` in
  3489. *GNU*)
  3490. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3491. *)
  3492. ac_count=0
  3493. $as_echo_n 0123456789 >"conftest.in"
  3494. while :
  3495. do
  3496. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3497. mv "conftest.tmp" "conftest.in"
  3498. cp "conftest.in" "conftest.nl"
  3499. $as_echo '' >> "conftest.nl"
  3500. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3501. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3502. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3503. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3504. # Best one so far, save it but keep looking for a better one
  3505. ac_cv_path_SED="$ac_path_SED"
  3506. ac_path_SED_max=$ac_count
  3507. fi
  3508. # 10*(2^10) chars as input seems more than enough
  3509. test $ac_count -gt 10 && break
  3510. done
  3511. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3512. esac
  3513. $ac_path_SED_found && break 3
  3514. done
  3515. done
  3516. done
  3517. IFS=$as_save_IFS
  3518. if test -z "$ac_cv_path_SED"; then
  3519. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3520. fi
  3521. else
  3522. ac_cv_path_SED=$SED
  3523. fi
  3524. fi
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3526. $as_echo "$ac_cv_path_SED" >&6; }
  3527. SED="$ac_cv_path_SED"
  3528. rm -f conftest.sed
  3529. test -z "$SED" && SED=sed
  3530. Xsed="$SED -e 1s/^X//"
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3532. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3533. if ${ac_cv_path_GREP+:} false; then :
  3534. $as_echo_n "(cached) " >&6
  3535. else
  3536. if test -z "$GREP"; then
  3537. ac_path_GREP_found=false
  3538. # Loop through the user's path and test for each of PROGNAME-LIST
  3539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3540. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3541. do
  3542. IFS=$as_save_IFS
  3543. test -z "$as_dir" && as_dir=.
  3544. for ac_prog in grep ggrep; do
  3545. for ac_exec_ext in '' $ac_executable_extensions; do
  3546. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3547. as_fn_executable_p "$ac_path_GREP" || continue
  3548. # Check for GNU ac_path_GREP and select it if it is found.
  3549. # Check for GNU $ac_path_GREP
  3550. case `"$ac_path_GREP" --version 2>&1` in
  3551. *GNU*)
  3552. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3553. *)
  3554. ac_count=0
  3555. $as_echo_n 0123456789 >"conftest.in"
  3556. while :
  3557. do
  3558. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3559. mv "conftest.tmp" "conftest.in"
  3560. cp "conftest.in" "conftest.nl"
  3561. $as_echo 'GREP' >> "conftest.nl"
  3562. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3563. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3564. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3565. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3566. # Best one so far, save it but keep looking for a better one
  3567. ac_cv_path_GREP="$ac_path_GREP"
  3568. ac_path_GREP_max=$ac_count
  3569. fi
  3570. # 10*(2^10) chars as input seems more than enough
  3571. test $ac_count -gt 10 && break
  3572. done
  3573. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3574. esac
  3575. $ac_path_GREP_found && break 3
  3576. done
  3577. done
  3578. done
  3579. IFS=$as_save_IFS
  3580. if test -z "$ac_cv_path_GREP"; then
  3581. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3582. fi
  3583. else
  3584. ac_cv_path_GREP=$GREP
  3585. fi
  3586. fi
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3588. $as_echo "$ac_cv_path_GREP" >&6; }
  3589. GREP="$ac_cv_path_GREP"
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3591. $as_echo_n "checking for egrep... " >&6; }
  3592. if ${ac_cv_path_EGREP+:} false; then :
  3593. $as_echo_n "(cached) " >&6
  3594. else
  3595. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3596. then ac_cv_path_EGREP="$GREP -E"
  3597. else
  3598. if test -z "$EGREP"; then
  3599. ac_path_EGREP_found=false
  3600. # Loop through the user's path and test for each of PROGNAME-LIST
  3601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3602. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3603. do
  3604. IFS=$as_save_IFS
  3605. test -z "$as_dir" && as_dir=.
  3606. for ac_prog in egrep; do
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3609. as_fn_executable_p "$ac_path_EGREP" || continue
  3610. # Check for GNU ac_path_EGREP and select it if it is found.
  3611. # Check for GNU $ac_path_EGREP
  3612. case `"$ac_path_EGREP" --version 2>&1` in
  3613. *GNU*)
  3614. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3615. *)
  3616. ac_count=0
  3617. $as_echo_n 0123456789 >"conftest.in"
  3618. while :
  3619. do
  3620. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3621. mv "conftest.tmp" "conftest.in"
  3622. cp "conftest.in" "conftest.nl"
  3623. $as_echo 'EGREP' >> "conftest.nl"
  3624. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3625. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3626. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3627. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3628. # Best one so far, save it but keep looking for a better one
  3629. ac_cv_path_EGREP="$ac_path_EGREP"
  3630. ac_path_EGREP_max=$ac_count
  3631. fi
  3632. # 10*(2^10) chars as input seems more than enough
  3633. test $ac_count -gt 10 && break
  3634. done
  3635. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3636. esac
  3637. $ac_path_EGREP_found && break 3
  3638. done
  3639. done
  3640. done
  3641. IFS=$as_save_IFS
  3642. if test -z "$ac_cv_path_EGREP"; then
  3643. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3644. fi
  3645. else
  3646. ac_cv_path_EGREP=$EGREP
  3647. fi
  3648. fi
  3649. fi
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3651. $as_echo "$ac_cv_path_EGREP" >&6; }
  3652. EGREP="$ac_cv_path_EGREP"
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3654. $as_echo_n "checking for fgrep... " >&6; }
  3655. if ${ac_cv_path_FGREP+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3659. then ac_cv_path_FGREP="$GREP -F"
  3660. else
  3661. if test -z "$FGREP"; then
  3662. ac_path_FGREP_found=false
  3663. # Loop through the user's path and test for each of PROGNAME-LIST
  3664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3665. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3666. do
  3667. IFS=$as_save_IFS
  3668. test -z "$as_dir" && as_dir=.
  3669. for ac_prog in fgrep; do
  3670. for ac_exec_ext in '' $ac_executable_extensions; do
  3671. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3672. as_fn_executable_p "$ac_path_FGREP" || continue
  3673. # Check for GNU ac_path_FGREP and select it if it is found.
  3674. # Check for GNU $ac_path_FGREP
  3675. case `"$ac_path_FGREP" --version 2>&1` in
  3676. *GNU*)
  3677. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3678. *)
  3679. ac_count=0
  3680. $as_echo_n 0123456789 >"conftest.in"
  3681. while :
  3682. do
  3683. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3684. mv "conftest.tmp" "conftest.in"
  3685. cp "conftest.in" "conftest.nl"
  3686. $as_echo 'FGREP' >> "conftest.nl"
  3687. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3688. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3689. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3690. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3691. # Best one so far, save it but keep looking for a better one
  3692. ac_cv_path_FGREP="$ac_path_FGREP"
  3693. ac_path_FGREP_max=$ac_count
  3694. fi
  3695. # 10*(2^10) chars as input seems more than enough
  3696. test $ac_count -gt 10 && break
  3697. done
  3698. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3699. esac
  3700. $ac_path_FGREP_found && break 3
  3701. done
  3702. done
  3703. done
  3704. IFS=$as_save_IFS
  3705. if test -z "$ac_cv_path_FGREP"; then
  3706. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3707. fi
  3708. else
  3709. ac_cv_path_FGREP=$FGREP
  3710. fi
  3711. fi
  3712. fi
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3714. $as_echo "$ac_cv_path_FGREP" >&6; }
  3715. FGREP="$ac_cv_path_FGREP"
  3716. test -z "$GREP" && GREP=grep
  3717. # Check whether --with-gnu-ld was given.
  3718. if test "${with_gnu_ld+set}" = set; then :
  3719. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3720. else
  3721. with_gnu_ld=no
  3722. fi
  3723. ac_prog=ld
  3724. if test "$GCC" = yes; then
  3725. # Check if gcc -print-prog-name=ld gives a path.
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3727. $as_echo_n "checking for ld used by $CC... " >&6; }
  3728. case $host in
  3729. *-*-mingw*)
  3730. # gcc leaves a trailing carriage return which upsets mingw
  3731. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3732. *)
  3733. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3734. esac
  3735. case $ac_prog in
  3736. # Accept absolute paths.
  3737. [\\/]* | ?:[\\/]*)
  3738. re_direlt='/[^/][^/]*/\.\./'
  3739. # Canonicalize the pathname of ld
  3740. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3741. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3742. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3743. done
  3744. test -z "$LD" && LD="$ac_prog"
  3745. ;;
  3746. "")
  3747. # If it fails, then pretend we aren't using GCC.
  3748. ac_prog=ld
  3749. ;;
  3750. *)
  3751. # If it is relative, then search for the first ld in PATH.
  3752. with_gnu_ld=unknown
  3753. ;;
  3754. esac
  3755. elif test "$with_gnu_ld" = yes; then
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3757. $as_echo_n "checking for GNU ld... " >&6; }
  3758. else
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3760. $as_echo_n "checking for non-GNU ld... " >&6; }
  3761. fi
  3762. if ${lt_cv_path_LD+:} false; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. if test -z "$LD"; then
  3766. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3767. for ac_dir in $PATH; do
  3768. IFS="$lt_save_ifs"
  3769. test -z "$ac_dir" && ac_dir=.
  3770. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3771. lt_cv_path_LD="$ac_dir/$ac_prog"
  3772. # Check to see if the program is GNU ld. I'd rather use --version,
  3773. # but apparently some variants of GNU ld only accept -v.
  3774. # Break only if it was the GNU/non-GNU ld that we prefer.
  3775. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3776. *GNU* | *'with BFD'*)
  3777. test "$with_gnu_ld" != no && break
  3778. ;;
  3779. *)
  3780. test "$with_gnu_ld" != yes && break
  3781. ;;
  3782. esac
  3783. fi
  3784. done
  3785. IFS="$lt_save_ifs"
  3786. else
  3787. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3788. fi
  3789. fi
  3790. LD="$lt_cv_path_LD"
  3791. if test -n "$LD"; then
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3793. $as_echo "$LD" >&6; }
  3794. else
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3796. $as_echo "no" >&6; }
  3797. fi
  3798. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3800. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3801. if ${lt_cv_prog_gnu_ld+:} false; then :
  3802. $as_echo_n "(cached) " >&6
  3803. else
  3804. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3805. case `$LD -v 2>&1 </dev/null` in
  3806. *GNU* | *'with BFD'*)
  3807. lt_cv_prog_gnu_ld=yes
  3808. ;;
  3809. *)
  3810. lt_cv_prog_gnu_ld=no
  3811. ;;
  3812. esac
  3813. fi
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3815. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3816. with_gnu_ld=$lt_cv_prog_gnu_ld
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3818. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3819. if ${lt_cv_path_NM+:} false; then :
  3820. $as_echo_n "(cached) " >&6
  3821. else
  3822. if test -n "$NM"; then
  3823. # Let the user override the test.
  3824. lt_cv_path_NM="$NM"
  3825. else
  3826. lt_nm_to_check="${ac_tool_prefix}nm"
  3827. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3828. lt_nm_to_check="$lt_nm_to_check nm"
  3829. fi
  3830. for lt_tmp_nm in $lt_nm_to_check; do
  3831. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3832. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3833. IFS="$lt_save_ifs"
  3834. test -z "$ac_dir" && ac_dir=.
  3835. tmp_nm="$ac_dir/$lt_tmp_nm"
  3836. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3837. # Check to see if the nm accepts a BSD-compat flag.
  3838. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3839. # nm: unknown option "B" ignored
  3840. # Tru64's nm complains that /dev/null is an invalid object file
  3841. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3842. */dev/null* | *'Invalid file or object type'*)
  3843. lt_cv_path_NM="$tmp_nm -B"
  3844. break
  3845. ;;
  3846. *)
  3847. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3848. */dev/null*)
  3849. lt_cv_path_NM="$tmp_nm -p"
  3850. break
  3851. ;;
  3852. *)
  3853. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3854. continue # so that we can try to find one that supports BSD flags
  3855. ;;
  3856. esac
  3857. ;;
  3858. esac
  3859. fi
  3860. done
  3861. IFS="$lt_save_ifs"
  3862. done
  3863. : ${lt_cv_path_NM=no}
  3864. fi
  3865. fi
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3867. $as_echo "$lt_cv_path_NM" >&6; }
  3868. if test "$lt_cv_path_NM" != "no"; then
  3869. NM="$lt_cv_path_NM"
  3870. else
  3871. # Didn't find any BSD compatible name lister, look for dumpbin.
  3872. if test -n "$DUMPBIN"; then :
  3873. # Let the user override the test.
  3874. else
  3875. if test -n "$ac_tool_prefix"; then
  3876. for ac_prog in dumpbin "link -dump"
  3877. do
  3878. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3879. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3881. $as_echo_n "checking for $ac_word... " >&6; }
  3882. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3883. $as_echo_n "(cached) " >&6
  3884. else
  3885. if test -n "$DUMPBIN"; then
  3886. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3887. else
  3888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3889. for as_dir in $PATH
  3890. do
  3891. IFS=$as_save_IFS
  3892. test -z "$as_dir" && as_dir=.
  3893. for ac_exec_ext in '' $ac_executable_extensions; do
  3894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3895. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3897. break 2
  3898. fi
  3899. done
  3900. done
  3901. IFS=$as_save_IFS
  3902. fi
  3903. fi
  3904. DUMPBIN=$ac_cv_prog_DUMPBIN
  3905. if test -n "$DUMPBIN"; then
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3907. $as_echo "$DUMPBIN" >&6; }
  3908. else
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3910. $as_echo "no" >&6; }
  3911. fi
  3912. test -n "$DUMPBIN" && break
  3913. done
  3914. fi
  3915. if test -z "$DUMPBIN"; then
  3916. ac_ct_DUMPBIN=$DUMPBIN
  3917. for ac_prog in dumpbin "link -dump"
  3918. do
  3919. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3920. set dummy $ac_prog; ac_word=$2
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3922. $as_echo_n "checking for $ac_word... " >&6; }
  3923. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. if test -n "$ac_ct_DUMPBIN"; then
  3927. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3928. else
  3929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3930. for as_dir in $PATH
  3931. do
  3932. IFS=$as_save_IFS
  3933. test -z "$as_dir" && as_dir=.
  3934. for ac_exec_ext in '' $ac_executable_extensions; do
  3935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3936. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3938. break 2
  3939. fi
  3940. done
  3941. done
  3942. IFS=$as_save_IFS
  3943. fi
  3944. fi
  3945. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3946. if test -n "$ac_ct_DUMPBIN"; then
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3948. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3949. else
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3951. $as_echo "no" >&6; }
  3952. fi
  3953. test -n "$ac_ct_DUMPBIN" && break
  3954. done
  3955. if test "x$ac_ct_DUMPBIN" = x; then
  3956. DUMPBIN=":"
  3957. else
  3958. case $cross_compiling:$ac_tool_warned in
  3959. yes:)
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3961. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3962. ac_tool_warned=yes ;;
  3963. esac
  3964. DUMPBIN=$ac_ct_DUMPBIN
  3965. fi
  3966. fi
  3967. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3968. *COFF*)
  3969. DUMPBIN="$DUMPBIN -symbols"
  3970. ;;
  3971. *)
  3972. DUMPBIN=:
  3973. ;;
  3974. esac
  3975. fi
  3976. if test "$DUMPBIN" != ":"; then
  3977. NM="$DUMPBIN"
  3978. fi
  3979. fi
  3980. test -z "$NM" && NM=nm
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3982. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3983. if ${lt_cv_nm_interface+:} false; then :
  3984. $as_echo_n "(cached) " >&6
  3985. else
  3986. lt_cv_nm_interface="BSD nm"
  3987. echo "int some_variable = 0;" > conftest.$ac_ext
  3988. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3989. (eval "$ac_compile" 2>conftest.err)
  3990. cat conftest.err >&5
  3991. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3992. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3993. cat conftest.err >&5
  3994. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3995. cat conftest.out >&5
  3996. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3997. lt_cv_nm_interface="MS dumpbin"
  3998. fi
  3999. rm -f conftest*
  4000. fi
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4002. $as_echo "$lt_cv_nm_interface" >&6; }
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4004. $as_echo_n "checking whether ln -s works... " >&6; }
  4005. LN_S=$as_ln_s
  4006. if test "$LN_S" = "ln -s"; then
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4008. $as_echo "yes" >&6; }
  4009. else
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4011. $as_echo "no, using $LN_S" >&6; }
  4012. fi
  4013. # find the maximum length of command line arguments
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4015. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4016. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4017. $as_echo_n "(cached) " >&6
  4018. else
  4019. i=0
  4020. teststring="ABCD"
  4021. case $build_os in
  4022. msdosdjgpp*)
  4023. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4024. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4025. # during glob expansion). Even if it were fixed, the result of this
  4026. # check would be larger than it should be.
  4027. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4028. ;;
  4029. gnu*)
  4030. # Under GNU Hurd, this test is not required because there is
  4031. # no limit to the length of command line arguments.
  4032. # Libtool will interpret -1 as no limit whatsoever
  4033. lt_cv_sys_max_cmd_len=-1;
  4034. ;;
  4035. cygwin* | mingw* | cegcc*)
  4036. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4037. # about 5 minutes as the teststring grows exponentially.
  4038. # Worse, since 9x/ME are not pre-emptively multitasking,
  4039. # you end up with a "frozen" computer, even though with patience
  4040. # the test eventually succeeds (with a max line length of 256k).
  4041. # Instead, let's just punt: use the minimum linelength reported by
  4042. # all of the supported platforms: 8192 (on NT/2K/XP).
  4043. lt_cv_sys_max_cmd_len=8192;
  4044. ;;
  4045. mint*)
  4046. # On MiNT this can take a long time and run out of memory.
  4047. lt_cv_sys_max_cmd_len=8192;
  4048. ;;
  4049. amigaos*)
  4050. # On AmigaOS with pdksh, this test takes hours, literally.
  4051. # So we just punt and use a minimum line length of 8192.
  4052. lt_cv_sys_max_cmd_len=8192;
  4053. ;;
  4054. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4055. # This has been around since 386BSD, at least. Likely further.
  4056. if test -x /sbin/sysctl; then
  4057. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4058. elif test -x /usr/sbin/sysctl; then
  4059. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4060. else
  4061. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4062. fi
  4063. # And add a safety zone
  4064. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4065. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4066. ;;
  4067. interix*)
  4068. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4069. lt_cv_sys_max_cmd_len=196608
  4070. ;;
  4071. os2*)
  4072. # The test takes a long time on OS/2.
  4073. lt_cv_sys_max_cmd_len=8192
  4074. ;;
  4075. osf*)
  4076. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4077. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4078. # nice to cause kernel panics so lets avoid the loop below.
  4079. # First set a reasonable default.
  4080. lt_cv_sys_max_cmd_len=16384
  4081. #
  4082. if test -x /sbin/sysconfig; then
  4083. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4084. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4085. esac
  4086. fi
  4087. ;;
  4088. sco3.2v5*)
  4089. lt_cv_sys_max_cmd_len=102400
  4090. ;;
  4091. sysv5* | sco5v6* | sysv4.2uw2*)
  4092. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4093. if test -n "$kargmax"; then
  4094. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4095. else
  4096. lt_cv_sys_max_cmd_len=32768
  4097. fi
  4098. ;;
  4099. *)
  4100. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4101. if test -n "$lt_cv_sys_max_cmd_len"; then
  4102. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4103. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4104. else
  4105. # Make teststring a little bigger before we do anything with it.
  4106. # a 1K string should be a reasonable start.
  4107. for i in 1 2 3 4 5 6 7 8 ; do
  4108. teststring=$teststring$teststring
  4109. done
  4110. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4111. # If test is not a shell built-in, we'll probably end up computing a
  4112. # maximum length that is only half of the actual maximum length, but
  4113. # we can't tell.
  4114. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4115. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4116. test $i != 17 # 1/2 MB should be enough
  4117. do
  4118. i=`expr $i + 1`
  4119. teststring=$teststring$teststring
  4120. done
  4121. # Only check the string length outside the loop.
  4122. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4123. teststring=
  4124. # Add a significant safety factor because C++ compilers can tack on
  4125. # massive amounts of additional arguments before passing them to the
  4126. # linker. It appears as though 1/2 is a usable value.
  4127. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4128. fi
  4129. ;;
  4130. esac
  4131. fi
  4132. if test -n $lt_cv_sys_max_cmd_len ; then
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4134. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4135. else
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4137. $as_echo "none" >&6; }
  4138. fi
  4139. max_cmd_len=$lt_cv_sys_max_cmd_len
  4140. : ${CP="cp -f"}
  4141. : ${MV="mv -f"}
  4142. : ${RM="rm -f"}
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4144. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4145. # Try some XSI features
  4146. xsi_shell=no
  4147. ( _lt_dummy="a/b/c"
  4148. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4149. = c,a/b,b/c, \
  4150. && eval 'test $(( 1 + 1 )) -eq 2 \
  4151. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4152. && xsi_shell=yes
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4154. $as_echo "$xsi_shell" >&6; }
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4156. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4157. lt_shell_append=no
  4158. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4159. >/dev/null 2>&1 \
  4160. && lt_shell_append=yes
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4162. $as_echo "$lt_shell_append" >&6; }
  4163. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4164. lt_unset=unset
  4165. else
  4166. lt_unset=false
  4167. fi
  4168. # test EBCDIC or ASCII
  4169. case `echo X|tr X '\101'` in
  4170. A) # ASCII based system
  4171. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4172. lt_SP2NL='tr \040 \012'
  4173. lt_NL2SP='tr \015\012 \040\040'
  4174. ;;
  4175. *) # EBCDIC based system
  4176. lt_SP2NL='tr \100 \n'
  4177. lt_NL2SP='tr \r\n \100\100'
  4178. ;;
  4179. esac
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4181. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4182. if ${lt_cv_to_host_file_cmd+:} false; then :
  4183. $as_echo_n "(cached) " >&6
  4184. else
  4185. case $host in
  4186. *-*-mingw* )
  4187. case $build in
  4188. *-*-mingw* ) # actually msys
  4189. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4190. ;;
  4191. *-*-cygwin* )
  4192. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4193. ;;
  4194. * ) # otherwise, assume *nix
  4195. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4196. ;;
  4197. esac
  4198. ;;
  4199. *-*-cygwin* )
  4200. case $build in
  4201. *-*-mingw* ) # actually msys
  4202. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4203. ;;
  4204. *-*-cygwin* )
  4205. lt_cv_to_host_file_cmd=func_convert_file_noop
  4206. ;;
  4207. * ) # otherwise, assume *nix
  4208. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4209. ;;
  4210. esac
  4211. ;;
  4212. * ) # unhandled hosts (and "normal" native builds)
  4213. lt_cv_to_host_file_cmd=func_convert_file_noop
  4214. ;;
  4215. esac
  4216. fi
  4217. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4219. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4221. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4222. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4223. $as_echo_n "(cached) " >&6
  4224. else
  4225. #assume ordinary cross tools, or native build.
  4226. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4227. case $host in
  4228. *-*-mingw* )
  4229. case $build in
  4230. *-*-mingw* ) # actually msys
  4231. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4232. ;;
  4233. esac
  4234. ;;
  4235. esac
  4236. fi
  4237. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4239. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4241. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4242. if ${lt_cv_ld_reload_flag+:} false; then :
  4243. $as_echo_n "(cached) " >&6
  4244. else
  4245. lt_cv_ld_reload_flag='-r'
  4246. fi
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4248. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4249. reload_flag=$lt_cv_ld_reload_flag
  4250. case $reload_flag in
  4251. "" | " "*) ;;
  4252. *) reload_flag=" $reload_flag" ;;
  4253. esac
  4254. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4255. case $host_os in
  4256. cygwin* | mingw* | pw32* | cegcc*)
  4257. if test "$GCC" != yes; then
  4258. reload_cmds=false
  4259. fi
  4260. ;;
  4261. darwin*)
  4262. if test "$GCC" = yes; then
  4263. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4264. else
  4265. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4266. fi
  4267. ;;
  4268. esac
  4269. if test -n "$ac_tool_prefix"; then
  4270. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4271. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4273. $as_echo_n "checking for $ac_word... " >&6; }
  4274. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4275. $as_echo_n "(cached) " >&6
  4276. else
  4277. if test -n "$OBJDUMP"; then
  4278. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4279. else
  4280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4281. for as_dir in $PATH
  4282. do
  4283. IFS=$as_save_IFS
  4284. test -z "$as_dir" && as_dir=.
  4285. for ac_exec_ext in '' $ac_executable_extensions; do
  4286. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4287. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4289. break 2
  4290. fi
  4291. done
  4292. done
  4293. IFS=$as_save_IFS
  4294. fi
  4295. fi
  4296. OBJDUMP=$ac_cv_prog_OBJDUMP
  4297. if test -n "$OBJDUMP"; then
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4299. $as_echo "$OBJDUMP" >&6; }
  4300. else
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4302. $as_echo "no" >&6; }
  4303. fi
  4304. fi
  4305. if test -z "$ac_cv_prog_OBJDUMP"; then
  4306. ac_ct_OBJDUMP=$OBJDUMP
  4307. # Extract the first word of "objdump", so it can be a program name with args.
  4308. set dummy objdump; ac_word=$2
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4310. $as_echo_n "checking for $ac_word... " >&6; }
  4311. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4312. $as_echo_n "(cached) " >&6
  4313. else
  4314. if test -n "$ac_ct_OBJDUMP"; then
  4315. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4316. else
  4317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4318. for as_dir in $PATH
  4319. do
  4320. IFS=$as_save_IFS
  4321. test -z "$as_dir" && as_dir=.
  4322. for ac_exec_ext in '' $ac_executable_extensions; do
  4323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4324. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4326. break 2
  4327. fi
  4328. done
  4329. done
  4330. IFS=$as_save_IFS
  4331. fi
  4332. fi
  4333. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4334. if test -n "$ac_ct_OBJDUMP"; then
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4336. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4337. else
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4339. $as_echo "no" >&6; }
  4340. fi
  4341. if test "x$ac_ct_OBJDUMP" = x; then
  4342. OBJDUMP="false"
  4343. else
  4344. case $cross_compiling:$ac_tool_warned in
  4345. yes:)
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4348. ac_tool_warned=yes ;;
  4349. esac
  4350. OBJDUMP=$ac_ct_OBJDUMP
  4351. fi
  4352. else
  4353. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4354. fi
  4355. test -z "$OBJDUMP" && OBJDUMP=objdump
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4357. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4358. if ${lt_cv_deplibs_check_method+:} false; then :
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4362. lt_cv_file_magic_test_file=
  4363. lt_cv_deplibs_check_method='unknown'
  4364. # Need to set the preceding variable on all platforms that support
  4365. # interlibrary dependencies.
  4366. # 'none' -- dependencies not supported.
  4367. # `unknown' -- same as none, but documents that we really don't know.
  4368. # 'pass_all' -- all dependencies passed with no checks.
  4369. # 'test_compile' -- check by making test program.
  4370. # 'file_magic [[regex]]' -- check by looking for files in library path
  4371. # which responds to the $file_magic_cmd with a given extended regex.
  4372. # If you have `file' or equivalent on your system and you're not sure
  4373. # whether `pass_all' will *always* work, you probably want this one.
  4374. case $host_os in
  4375. aix[4-9]*)
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. beos*)
  4379. lt_cv_deplibs_check_method=pass_all
  4380. ;;
  4381. bsdi[45]*)
  4382. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4383. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4384. lt_cv_file_magic_test_file=/shlib/libc.so
  4385. ;;
  4386. cygwin*)
  4387. # func_win32_libid is a shell function defined in ltmain.sh
  4388. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4389. lt_cv_file_magic_cmd='func_win32_libid'
  4390. lt_cv_deplibs_check_method=pass_all
  4391. ;;
  4392. mingw* | pw32*)
  4393. # Base MSYS/MinGW do not provide the 'file' command needed by
  4394. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4395. # unless we find 'file', for example because we are cross-compiling.
  4396. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4397. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4398. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4399. lt_cv_file_magic_cmd='func_win32_libid'
  4400. else
  4401. # Keep this pattern in sync with the one in func_win32_libid.
  4402. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4403. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4404. fi
  4405. lt_cv_deplibs_check_method=pass_all
  4406. ;;
  4407. cegcc*)
  4408. # use the weaker test based on 'objdump'. See mingw*.
  4409. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4410. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4411. ;;
  4412. darwin* | rhapsody*)
  4413. lt_cv_deplibs_check_method=pass_all
  4414. ;;
  4415. freebsd* | dragonfly*)
  4416. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4417. case $host_cpu in
  4418. i*86 )
  4419. # Not sure whether the presence of OpenBSD here was a mistake.
  4420. # Let's accept both of them until this is cleared up.
  4421. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4422. lt_cv_file_magic_cmd=/usr/bin/file
  4423. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4424. ;;
  4425. esac
  4426. else
  4427. lt_cv_deplibs_check_method=pass_all
  4428. fi
  4429. ;;
  4430. gnu*)
  4431. lt_cv_deplibs_check_method=pass_all
  4432. ;;
  4433. haiku*)
  4434. lt_cv_deplibs_check_method=pass_all
  4435. ;;
  4436. hpux10.20* | hpux11*)
  4437. lt_cv_file_magic_cmd=/usr/bin/file
  4438. case $host_cpu in
  4439. ia64*)
  4440. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4441. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4442. ;;
  4443. hppa*64*)
  4444. 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]'
  4445. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4446. ;;
  4447. *)
  4448. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4449. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4450. ;;
  4451. esac
  4452. ;;
  4453. interix[3-9]*)
  4454. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4455. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4456. ;;
  4457. irix5* | irix6* | nonstopux*)
  4458. case $LD in
  4459. *-32|*"-32 ") libmagic=32-bit;;
  4460. *-n32|*"-n32 ") libmagic=N32;;
  4461. *-64|*"-64 ") libmagic=64-bit;;
  4462. *) libmagic=never-match;;
  4463. esac
  4464. lt_cv_deplibs_check_method=pass_all
  4465. ;;
  4466. # This must be glibc/ELF.
  4467. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4468. lt_cv_deplibs_check_method=pass_all
  4469. ;;
  4470. netbsd*)
  4471. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4472. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4473. else
  4474. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4475. fi
  4476. ;;
  4477. newos6*)
  4478. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4479. lt_cv_file_magic_cmd=/usr/bin/file
  4480. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4481. ;;
  4482. *nto* | *qnx*)
  4483. lt_cv_deplibs_check_method=pass_all
  4484. ;;
  4485. openbsd*)
  4486. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4487. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4488. else
  4489. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4490. fi
  4491. ;;
  4492. osf3* | osf4* | osf5*)
  4493. lt_cv_deplibs_check_method=pass_all
  4494. ;;
  4495. rdos*)
  4496. lt_cv_deplibs_check_method=pass_all
  4497. ;;
  4498. solaris*)
  4499. lt_cv_deplibs_check_method=pass_all
  4500. ;;
  4501. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4502. lt_cv_deplibs_check_method=pass_all
  4503. ;;
  4504. sysv4 | sysv4.3*)
  4505. case $host_vendor in
  4506. motorola)
  4507. 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]'
  4508. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4509. ;;
  4510. ncr)
  4511. lt_cv_deplibs_check_method=pass_all
  4512. ;;
  4513. sequent)
  4514. lt_cv_file_magic_cmd='/bin/file'
  4515. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4516. ;;
  4517. sni)
  4518. lt_cv_file_magic_cmd='/bin/file'
  4519. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4520. lt_cv_file_magic_test_file=/lib/libc.so
  4521. ;;
  4522. siemens)
  4523. lt_cv_deplibs_check_method=pass_all
  4524. ;;
  4525. pc)
  4526. lt_cv_deplibs_check_method=pass_all
  4527. ;;
  4528. esac
  4529. ;;
  4530. tpf*)
  4531. lt_cv_deplibs_check_method=pass_all
  4532. ;;
  4533. esac
  4534. fi
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4536. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4537. file_magic_glob=
  4538. want_nocaseglob=no
  4539. if test "$build" = "$host"; then
  4540. case $host_os in
  4541. mingw* | pw32*)
  4542. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4543. want_nocaseglob=yes
  4544. else
  4545. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4546. fi
  4547. ;;
  4548. esac
  4549. fi
  4550. file_magic_cmd=$lt_cv_file_magic_cmd
  4551. deplibs_check_method=$lt_cv_deplibs_check_method
  4552. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4553. if test -n "$ac_tool_prefix"; then
  4554. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4555. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4557. $as_echo_n "checking for $ac_word... " >&6; }
  4558. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. if test -n "$DLLTOOL"; then
  4562. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4563. else
  4564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4565. for as_dir in $PATH
  4566. do
  4567. IFS=$as_save_IFS
  4568. test -z "$as_dir" && as_dir=.
  4569. for ac_exec_ext in '' $ac_executable_extensions; do
  4570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4571. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4573. break 2
  4574. fi
  4575. done
  4576. done
  4577. IFS=$as_save_IFS
  4578. fi
  4579. fi
  4580. DLLTOOL=$ac_cv_prog_DLLTOOL
  4581. if test -n "$DLLTOOL"; then
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4583. $as_echo "$DLLTOOL" >&6; }
  4584. else
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4586. $as_echo "no" >&6; }
  4587. fi
  4588. fi
  4589. if test -z "$ac_cv_prog_DLLTOOL"; then
  4590. ac_ct_DLLTOOL=$DLLTOOL
  4591. # Extract the first word of "dlltool", so it can be a program name with args.
  4592. set dummy dlltool; ac_word=$2
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4594. $as_echo_n "checking for $ac_word... " >&6; }
  4595. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4596. $as_echo_n "(cached) " >&6
  4597. else
  4598. if test -n "$ac_ct_DLLTOOL"; then
  4599. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4600. else
  4601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4602. for as_dir in $PATH
  4603. do
  4604. IFS=$as_save_IFS
  4605. test -z "$as_dir" && as_dir=.
  4606. for ac_exec_ext in '' $ac_executable_extensions; do
  4607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4608. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4610. break 2
  4611. fi
  4612. done
  4613. done
  4614. IFS=$as_save_IFS
  4615. fi
  4616. fi
  4617. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4618. if test -n "$ac_ct_DLLTOOL"; then
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4620. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4621. else
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4623. $as_echo "no" >&6; }
  4624. fi
  4625. if test "x$ac_ct_DLLTOOL" = x; then
  4626. DLLTOOL="false"
  4627. else
  4628. case $cross_compiling:$ac_tool_warned in
  4629. yes:)
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4632. ac_tool_warned=yes ;;
  4633. esac
  4634. DLLTOOL=$ac_ct_DLLTOOL
  4635. fi
  4636. else
  4637. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4638. fi
  4639. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4641. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4642. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4643. $as_echo_n "(cached) " >&6
  4644. else
  4645. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4646. case $host_os in
  4647. cygwin* | mingw* | pw32* | cegcc*)
  4648. # two different shell functions defined in ltmain.sh
  4649. # decide which to use based on capabilities of $DLLTOOL
  4650. case `$DLLTOOL --help 2>&1` in
  4651. *--identify-strict*)
  4652. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4653. ;;
  4654. *)
  4655. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4656. ;;
  4657. esac
  4658. ;;
  4659. *)
  4660. # fallback: assume linklib IS sharedlib
  4661. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4662. ;;
  4663. esac
  4664. fi
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4666. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4667. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4668. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4669. if test -n "$ac_tool_prefix"; then
  4670. for ac_prog in ar
  4671. do
  4672. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4673. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4675. $as_echo_n "checking for $ac_word... " >&6; }
  4676. if ${ac_cv_prog_AR+:} false; then :
  4677. $as_echo_n "(cached) " >&6
  4678. else
  4679. if test -n "$AR"; then
  4680. ac_cv_prog_AR="$AR" # Let the user override the test.
  4681. else
  4682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4683. for as_dir in $PATH
  4684. do
  4685. IFS=$as_save_IFS
  4686. test -z "$as_dir" && as_dir=.
  4687. for ac_exec_ext in '' $ac_executable_extensions; do
  4688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4689. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4691. break 2
  4692. fi
  4693. done
  4694. done
  4695. IFS=$as_save_IFS
  4696. fi
  4697. fi
  4698. AR=$ac_cv_prog_AR
  4699. if test -n "$AR"; then
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4701. $as_echo "$AR" >&6; }
  4702. else
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4704. $as_echo "no" >&6; }
  4705. fi
  4706. test -n "$AR" && break
  4707. done
  4708. fi
  4709. if test -z "$AR"; then
  4710. ac_ct_AR=$AR
  4711. for ac_prog in ar
  4712. do
  4713. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4714. set dummy $ac_prog; ac_word=$2
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4716. $as_echo_n "checking for $ac_word... " >&6; }
  4717. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4718. $as_echo_n "(cached) " >&6
  4719. else
  4720. if test -n "$ac_ct_AR"; then
  4721. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4722. else
  4723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4724. for as_dir in $PATH
  4725. do
  4726. IFS=$as_save_IFS
  4727. test -z "$as_dir" && as_dir=.
  4728. for ac_exec_ext in '' $ac_executable_extensions; do
  4729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4730. ac_cv_prog_ac_ct_AR="$ac_prog"
  4731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4732. break 2
  4733. fi
  4734. done
  4735. done
  4736. IFS=$as_save_IFS
  4737. fi
  4738. fi
  4739. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4740. if test -n "$ac_ct_AR"; then
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4742. $as_echo "$ac_ct_AR" >&6; }
  4743. else
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4745. $as_echo "no" >&6; }
  4746. fi
  4747. test -n "$ac_ct_AR" && break
  4748. done
  4749. if test "x$ac_ct_AR" = x; then
  4750. AR="false"
  4751. else
  4752. case $cross_compiling:$ac_tool_warned in
  4753. yes:)
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4755. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4756. ac_tool_warned=yes ;;
  4757. esac
  4758. AR=$ac_ct_AR
  4759. fi
  4760. fi
  4761. : ${AR=ar}
  4762. : ${AR_FLAGS=cru}
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4764. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4765. if ${lt_cv_ar_at_file+:} false; then :
  4766. $as_echo_n "(cached) " >&6
  4767. else
  4768. lt_cv_ar_at_file=no
  4769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4770. /* end confdefs.h. */
  4771. int
  4772. main ()
  4773. {
  4774. ;
  4775. return 0;
  4776. }
  4777. _ACEOF
  4778. if ac_fn_c_try_compile "$LINENO"; then :
  4779. echo conftest.$ac_objext > conftest.lst
  4780. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4781. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4782. (eval $lt_ar_try) 2>&5
  4783. ac_status=$?
  4784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4785. test $ac_status = 0; }
  4786. if test "$ac_status" -eq 0; then
  4787. # Ensure the archiver fails upon bogus file names.
  4788. rm -f conftest.$ac_objext libconftest.a
  4789. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4790. (eval $lt_ar_try) 2>&5
  4791. ac_status=$?
  4792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4793. test $ac_status = 0; }
  4794. if test "$ac_status" -ne 0; then
  4795. lt_cv_ar_at_file=@
  4796. fi
  4797. fi
  4798. rm -f conftest.* libconftest.a
  4799. fi
  4800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4801. fi
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4803. $as_echo "$lt_cv_ar_at_file" >&6; }
  4804. if test "x$lt_cv_ar_at_file" = xno; then
  4805. archiver_list_spec=
  4806. else
  4807. archiver_list_spec=$lt_cv_ar_at_file
  4808. fi
  4809. if test -n "$ac_tool_prefix"; then
  4810. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4811. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4813. $as_echo_n "checking for $ac_word... " >&6; }
  4814. if ${ac_cv_prog_STRIP+:} false; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. if test -n "$STRIP"; then
  4818. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4819. else
  4820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4821. for as_dir in $PATH
  4822. do
  4823. IFS=$as_save_IFS
  4824. test -z "$as_dir" && as_dir=.
  4825. for ac_exec_ext in '' $ac_executable_extensions; do
  4826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4827. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4829. break 2
  4830. fi
  4831. done
  4832. done
  4833. IFS=$as_save_IFS
  4834. fi
  4835. fi
  4836. STRIP=$ac_cv_prog_STRIP
  4837. if test -n "$STRIP"; then
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4839. $as_echo "$STRIP" >&6; }
  4840. else
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4842. $as_echo "no" >&6; }
  4843. fi
  4844. fi
  4845. if test -z "$ac_cv_prog_STRIP"; then
  4846. ac_ct_STRIP=$STRIP
  4847. # Extract the first word of "strip", so it can be a program name with args.
  4848. set dummy strip; ac_word=$2
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4850. $as_echo_n "checking for $ac_word... " >&6; }
  4851. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4852. $as_echo_n "(cached) " >&6
  4853. else
  4854. if test -n "$ac_ct_STRIP"; then
  4855. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4856. else
  4857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4858. for as_dir in $PATH
  4859. do
  4860. IFS=$as_save_IFS
  4861. test -z "$as_dir" && as_dir=.
  4862. for ac_exec_ext in '' $ac_executable_extensions; do
  4863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4864. ac_cv_prog_ac_ct_STRIP="strip"
  4865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4866. break 2
  4867. fi
  4868. done
  4869. done
  4870. IFS=$as_save_IFS
  4871. fi
  4872. fi
  4873. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4874. if test -n "$ac_ct_STRIP"; then
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4876. $as_echo "$ac_ct_STRIP" >&6; }
  4877. else
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4879. $as_echo "no" >&6; }
  4880. fi
  4881. if test "x$ac_ct_STRIP" = x; then
  4882. STRIP=":"
  4883. else
  4884. case $cross_compiling:$ac_tool_warned in
  4885. yes:)
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4888. ac_tool_warned=yes ;;
  4889. esac
  4890. STRIP=$ac_ct_STRIP
  4891. fi
  4892. else
  4893. STRIP="$ac_cv_prog_STRIP"
  4894. fi
  4895. test -z "$STRIP" && STRIP=:
  4896. if test -n "$ac_tool_prefix"; then
  4897. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4898. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4900. $as_echo_n "checking for $ac_word... " >&6; }
  4901. if ${ac_cv_prog_RANLIB+:} false; then :
  4902. $as_echo_n "(cached) " >&6
  4903. else
  4904. if test -n "$RANLIB"; then
  4905. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4906. else
  4907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4908. for as_dir in $PATH
  4909. do
  4910. IFS=$as_save_IFS
  4911. test -z "$as_dir" && as_dir=.
  4912. for ac_exec_ext in '' $ac_executable_extensions; do
  4913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4914. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4916. break 2
  4917. fi
  4918. done
  4919. done
  4920. IFS=$as_save_IFS
  4921. fi
  4922. fi
  4923. RANLIB=$ac_cv_prog_RANLIB
  4924. if test -n "$RANLIB"; then
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4926. $as_echo "$RANLIB" >&6; }
  4927. else
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4929. $as_echo "no" >&6; }
  4930. fi
  4931. fi
  4932. if test -z "$ac_cv_prog_RANLIB"; then
  4933. ac_ct_RANLIB=$RANLIB
  4934. # Extract the first word of "ranlib", so it can be a program name with args.
  4935. set dummy ranlib; ac_word=$2
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4937. $as_echo_n "checking for $ac_word... " >&6; }
  4938. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4939. $as_echo_n "(cached) " >&6
  4940. else
  4941. if test -n "$ac_ct_RANLIB"; then
  4942. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4943. else
  4944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4945. for as_dir in $PATH
  4946. do
  4947. IFS=$as_save_IFS
  4948. test -z "$as_dir" && as_dir=.
  4949. for ac_exec_ext in '' $ac_executable_extensions; do
  4950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4951. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4953. break 2
  4954. fi
  4955. done
  4956. done
  4957. IFS=$as_save_IFS
  4958. fi
  4959. fi
  4960. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4961. if test -n "$ac_ct_RANLIB"; then
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4963. $as_echo "$ac_ct_RANLIB" >&6; }
  4964. else
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4966. $as_echo "no" >&6; }
  4967. fi
  4968. if test "x$ac_ct_RANLIB" = x; then
  4969. RANLIB=":"
  4970. else
  4971. case $cross_compiling:$ac_tool_warned in
  4972. yes:)
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4974. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4975. ac_tool_warned=yes ;;
  4976. esac
  4977. RANLIB=$ac_ct_RANLIB
  4978. fi
  4979. else
  4980. RANLIB="$ac_cv_prog_RANLIB"
  4981. fi
  4982. test -z "$RANLIB" && RANLIB=:
  4983. # Determine commands to create old-style static archives.
  4984. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4985. old_postinstall_cmds='chmod 644 $oldlib'
  4986. old_postuninstall_cmds=
  4987. if test -n "$RANLIB"; then
  4988. case $host_os in
  4989. openbsd*)
  4990. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4991. ;;
  4992. *)
  4993. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4994. ;;
  4995. esac
  4996. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4997. fi
  4998. case $host_os in
  4999. darwin*)
  5000. lock_old_archive_extraction=yes ;;
  5001. *)
  5002. lock_old_archive_extraction=no ;;
  5003. esac
  5004. for ac_prog in gawk mawk nawk awk
  5005. do
  5006. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5007. set dummy $ac_prog; ac_word=$2
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5009. $as_echo_n "checking for $ac_word... " >&6; }
  5010. if ${ac_cv_prog_AWK+:} false; then :
  5011. $as_echo_n "(cached) " >&6
  5012. else
  5013. if test -n "$AWK"; then
  5014. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5015. else
  5016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5017. for as_dir in $PATH
  5018. do
  5019. IFS=$as_save_IFS
  5020. test -z "$as_dir" && as_dir=.
  5021. for ac_exec_ext in '' $ac_executable_extensions; do
  5022. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5023. ac_cv_prog_AWK="$ac_prog"
  5024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5025. break 2
  5026. fi
  5027. done
  5028. done
  5029. IFS=$as_save_IFS
  5030. fi
  5031. fi
  5032. AWK=$ac_cv_prog_AWK
  5033. if test -n "$AWK"; then
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5035. $as_echo "$AWK" >&6; }
  5036. else
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5038. $as_echo "no" >&6; }
  5039. fi
  5040. test -n "$AWK" && break
  5041. done
  5042. # If no C compiler was specified, use CC.
  5043. LTCC=${LTCC-"$CC"}
  5044. # If no C compiler flags were specified, use CFLAGS.
  5045. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5046. # Allow CC to be a program name with arguments.
  5047. compiler=$CC
  5048. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5050. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5051. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5052. $as_echo_n "(cached) " >&6
  5053. else
  5054. # These are sane defaults that work on at least a few old systems.
  5055. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5056. # Character class describing NM global symbol codes.
  5057. symcode='[BCDEGRST]'
  5058. # Regexp to match symbols that can be accessed directly from C.
  5059. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5060. # Define system-specific variables.
  5061. case $host_os in
  5062. aix*)
  5063. symcode='[BCDT]'
  5064. ;;
  5065. cygwin* | mingw* | pw32* | cegcc*)
  5066. symcode='[ABCDGISTW]'
  5067. ;;
  5068. hpux*)
  5069. if test "$host_cpu" = ia64; then
  5070. symcode='[ABCDEGRST]'
  5071. fi
  5072. ;;
  5073. irix* | nonstopux*)
  5074. symcode='[BCDEGRST]'
  5075. ;;
  5076. osf*)
  5077. symcode='[BCDEGQRST]'
  5078. ;;
  5079. solaris*)
  5080. symcode='[BDRT]'
  5081. ;;
  5082. sco3.2v5*)
  5083. symcode='[DT]'
  5084. ;;
  5085. sysv4.2uw2*)
  5086. symcode='[DT]'
  5087. ;;
  5088. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5089. symcode='[ABDT]'
  5090. ;;
  5091. sysv4)
  5092. symcode='[DFNSTU]'
  5093. ;;
  5094. esac
  5095. # If we're using GNU nm, then use its standard symbol codes.
  5096. case `$NM -V 2>&1` in
  5097. *GNU* | *'with BFD'*)
  5098. symcode='[ABCDGIRSTW]' ;;
  5099. esac
  5100. # Transform an extracted symbol line into a proper C declaration.
  5101. # Some systems (esp. on ia64) link data and code symbols differently,
  5102. # so use this general approach.
  5103. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5104. # Transform an extracted symbol line into symbol name and symbol address
  5105. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5106. 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'"
  5107. # Handle CRLF in mingw tool chain
  5108. opt_cr=
  5109. case $build_os in
  5110. mingw*)
  5111. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5112. ;;
  5113. esac
  5114. # Try without a prefix underscore, then with it.
  5115. for ac_symprfx in "" "_"; do
  5116. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5117. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5118. # Write the raw and C identifiers.
  5119. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5120. # Fake it for dumpbin and say T for any non-static function
  5121. # and D for any global variable.
  5122. # Also find C++ and __fastcall symbols from MSVC++,
  5123. # which start with @ or ?.
  5124. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5125. " {last_section=section; section=\$ 3};"\
  5126. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5127. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5128. " \$ 0!~/External *\|/{next};"\
  5129. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5130. " {if(hide[section]) next};"\
  5131. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5132. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5133. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5134. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5135. " ' prfx=^$ac_symprfx"
  5136. else
  5137. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5138. fi
  5139. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5140. # Check to see that the pipe works correctly.
  5141. pipe_works=no
  5142. rm -f conftest*
  5143. cat > conftest.$ac_ext <<_LT_EOF
  5144. #ifdef __cplusplus
  5145. extern "C" {
  5146. #endif
  5147. char nm_test_var;
  5148. void nm_test_func(void);
  5149. void nm_test_func(void){}
  5150. #ifdef __cplusplus
  5151. }
  5152. #endif
  5153. int main(){nm_test_var='a';nm_test_func();return(0);}
  5154. _LT_EOF
  5155. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5156. (eval $ac_compile) 2>&5
  5157. ac_status=$?
  5158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5159. test $ac_status = 0; }; then
  5160. # Now try to grab the symbols.
  5161. nlist=conftest.nm
  5162. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5163. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5164. ac_status=$?
  5165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5166. test $ac_status = 0; } && test -s "$nlist"; then
  5167. # Try sorting and uniquifying the output.
  5168. if sort "$nlist" | uniq > "$nlist"T; then
  5169. mv -f "$nlist"T "$nlist"
  5170. else
  5171. rm -f "$nlist"T
  5172. fi
  5173. # Make sure that we snagged all the symbols we need.
  5174. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5175. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5176. cat <<_LT_EOF > conftest.$ac_ext
  5177. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5178. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5179. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5180. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5181. # define LT_DLSYM_CONST
  5182. #elif defined(__osf__)
  5183. /* This system does not cope well with relocations in const data. */
  5184. # define LT_DLSYM_CONST
  5185. #else
  5186. # define LT_DLSYM_CONST const
  5187. #endif
  5188. #ifdef __cplusplus
  5189. extern "C" {
  5190. #endif
  5191. _LT_EOF
  5192. # Now generate the symbol file.
  5193. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5194. cat <<_LT_EOF >> conftest.$ac_ext
  5195. /* The mapping between symbol names and symbols. */
  5196. LT_DLSYM_CONST struct {
  5197. const char *name;
  5198. void *address;
  5199. }
  5200. lt__PROGRAM__LTX_preloaded_symbols[] =
  5201. {
  5202. { "@PROGRAM@", (void *) 0 },
  5203. _LT_EOF
  5204. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5205. cat <<\_LT_EOF >> conftest.$ac_ext
  5206. {0, (void *) 0}
  5207. };
  5208. /* This works around a problem in FreeBSD linker */
  5209. #ifdef FREEBSD_WORKAROUND
  5210. static const void *lt_preloaded_setup() {
  5211. return lt__PROGRAM__LTX_preloaded_symbols;
  5212. }
  5213. #endif
  5214. #ifdef __cplusplus
  5215. }
  5216. #endif
  5217. _LT_EOF
  5218. # Now try linking the two files.
  5219. mv conftest.$ac_objext conftstm.$ac_objext
  5220. lt_globsym_save_LIBS=$LIBS
  5221. lt_globsym_save_CFLAGS=$CFLAGS
  5222. LIBS="conftstm.$ac_objext"
  5223. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5224. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5225. (eval $ac_link) 2>&5
  5226. ac_status=$?
  5227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5228. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5229. pipe_works=yes
  5230. fi
  5231. LIBS=$lt_globsym_save_LIBS
  5232. CFLAGS=$lt_globsym_save_CFLAGS
  5233. else
  5234. echo "cannot find nm_test_func in $nlist" >&5
  5235. fi
  5236. else
  5237. echo "cannot find nm_test_var in $nlist" >&5
  5238. fi
  5239. else
  5240. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5241. fi
  5242. else
  5243. echo "$progname: failed program was:" >&5
  5244. cat conftest.$ac_ext >&5
  5245. fi
  5246. rm -rf conftest* conftst*
  5247. # Do not use the global_symbol_pipe unless it works.
  5248. if test "$pipe_works" = yes; then
  5249. break
  5250. else
  5251. lt_cv_sys_global_symbol_pipe=
  5252. fi
  5253. done
  5254. fi
  5255. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5256. lt_cv_sys_global_symbol_to_cdecl=
  5257. fi
  5258. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5260. $as_echo "failed" >&6; }
  5261. else
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5263. $as_echo "ok" >&6; }
  5264. fi
  5265. # Response file support.
  5266. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5267. nm_file_list_spec='@'
  5268. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5269. nm_file_list_spec='@'
  5270. fi
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5272. $as_echo_n "checking for sysroot... " >&6; }
  5273. # Check whether --with-sysroot was given.
  5274. if test "${with_sysroot+set}" = set; then :
  5275. withval=$with_sysroot;
  5276. else
  5277. with_sysroot=no
  5278. fi
  5279. lt_sysroot=
  5280. case ${with_sysroot} in #(
  5281. yes)
  5282. if test "$GCC" = yes; then
  5283. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5284. fi
  5285. ;; #(
  5286. /*)
  5287. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5288. ;; #(
  5289. no|'')
  5290. ;; #(
  5291. *)
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5293. $as_echo "${with_sysroot}" >&6; }
  5294. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5295. ;;
  5296. esac
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5298. $as_echo "${lt_sysroot:-no}" >&6; }
  5299. # Check whether --enable-libtool-lock was given.
  5300. if test "${enable_libtool_lock+set}" = set; then :
  5301. enableval=$enable_libtool_lock;
  5302. fi
  5303. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5304. # Some flags need to be propagated to the compiler or linker for good
  5305. # libtool support.
  5306. case $host in
  5307. ia64-*-hpux*)
  5308. # Find out which ABI we are using.
  5309. echo 'int i;' > conftest.$ac_ext
  5310. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5311. (eval $ac_compile) 2>&5
  5312. ac_status=$?
  5313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5314. test $ac_status = 0; }; then
  5315. case `/usr/bin/file conftest.$ac_objext` in
  5316. *ELF-32*)
  5317. HPUX_IA64_MODE="32"
  5318. ;;
  5319. *ELF-64*)
  5320. HPUX_IA64_MODE="64"
  5321. ;;
  5322. esac
  5323. fi
  5324. rm -rf conftest*
  5325. ;;
  5326. *-*-irix6*)
  5327. # Find out which ABI we are using.
  5328. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5329. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5330. (eval $ac_compile) 2>&5
  5331. ac_status=$?
  5332. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5333. test $ac_status = 0; }; then
  5334. if test "$lt_cv_prog_gnu_ld" = yes; then
  5335. case `/usr/bin/file conftest.$ac_objext` in
  5336. *32-bit*)
  5337. LD="${LD-ld} -melf32bsmip"
  5338. ;;
  5339. *N32*)
  5340. LD="${LD-ld} -melf32bmipn32"
  5341. ;;
  5342. *64-bit*)
  5343. LD="${LD-ld} -melf64bmip"
  5344. ;;
  5345. esac
  5346. else
  5347. case `/usr/bin/file conftest.$ac_objext` in
  5348. *32-bit*)
  5349. LD="${LD-ld} -32"
  5350. ;;
  5351. *N32*)
  5352. LD="${LD-ld} -n32"
  5353. ;;
  5354. *64-bit*)
  5355. LD="${LD-ld} -64"
  5356. ;;
  5357. esac
  5358. fi
  5359. fi
  5360. rm -rf conftest*
  5361. ;;
  5362. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5363. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5364. # Find out which ABI we are using.
  5365. echo 'int i;' > conftest.$ac_ext
  5366. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5367. (eval $ac_compile) 2>&5
  5368. ac_status=$?
  5369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5370. test $ac_status = 0; }; then
  5371. case `/usr/bin/file conftest.o` in
  5372. *32-bit*)
  5373. case $host in
  5374. x86_64-*kfreebsd*-gnu)
  5375. LD="${LD-ld} -m elf_i386_fbsd"
  5376. ;;
  5377. x86_64-*linux*)
  5378. LD="${LD-ld} -m elf_i386"
  5379. ;;
  5380. ppc64-*linux*|powerpc64-*linux*)
  5381. LD="${LD-ld} -m elf32ppclinux"
  5382. ;;
  5383. s390x-*linux*)
  5384. LD="${LD-ld} -m elf_s390"
  5385. ;;
  5386. sparc64-*linux*)
  5387. LD="${LD-ld} -m elf32_sparc"
  5388. ;;
  5389. esac
  5390. ;;
  5391. *64-bit*)
  5392. case $host in
  5393. x86_64-*kfreebsd*-gnu)
  5394. LD="${LD-ld} -m elf_x86_64_fbsd"
  5395. ;;
  5396. x86_64-*linux*)
  5397. LD="${LD-ld} -m elf_x86_64"
  5398. ;;
  5399. powerpc64le-*linux*)
  5400. LD="${LD-ld} -m elf64lppc"
  5401. ;;
  5402. powerpc64-*linux*)
  5403. LD="${LD-ld} -m elf64ppc"
  5404. ;;
  5405. s390*-*linux*|s390*-*tpf*)
  5406. LD="${LD-ld} -m elf64_s390"
  5407. ;;
  5408. sparc*-*linux*)
  5409. LD="${LD-ld} -m elf64_sparc"
  5410. ;;
  5411. esac
  5412. ;;
  5413. esac
  5414. fi
  5415. rm -rf conftest*
  5416. ;;
  5417. *-*-sco3.2v5*)
  5418. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5419. SAVE_CFLAGS="$CFLAGS"
  5420. CFLAGS="$CFLAGS -belf"
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5422. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5423. if ${lt_cv_cc_needs_belf+:} false; then :
  5424. $as_echo_n "(cached) " >&6
  5425. else
  5426. ac_ext=c
  5427. ac_cpp='$CPP $CPPFLAGS'
  5428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5432. /* end confdefs.h. */
  5433. int
  5434. main ()
  5435. {
  5436. ;
  5437. return 0;
  5438. }
  5439. _ACEOF
  5440. if ac_fn_c_try_link "$LINENO"; then :
  5441. lt_cv_cc_needs_belf=yes
  5442. else
  5443. lt_cv_cc_needs_belf=no
  5444. fi
  5445. rm -f core conftest.err conftest.$ac_objext \
  5446. conftest$ac_exeext conftest.$ac_ext
  5447. ac_ext=c
  5448. ac_cpp='$CPP $CPPFLAGS'
  5449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5452. fi
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5454. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5455. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5456. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5457. CFLAGS="$SAVE_CFLAGS"
  5458. fi
  5459. ;;
  5460. *-*solaris*)
  5461. # Find out which ABI we are using.
  5462. echo 'int i;' > conftest.$ac_ext
  5463. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5464. (eval $ac_compile) 2>&5
  5465. ac_status=$?
  5466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5467. test $ac_status = 0; }; then
  5468. case `/usr/bin/file conftest.o` in
  5469. *64-bit*)
  5470. case $lt_cv_prog_gnu_ld in
  5471. yes*)
  5472. case $host in
  5473. i?86-*-solaris*)
  5474. LD="${LD-ld} -m elf_x86_64"
  5475. ;;
  5476. sparc*-*-solaris*)
  5477. LD="${LD-ld} -m elf64_sparc"
  5478. ;;
  5479. esac
  5480. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5481. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5482. LD="${LD-ld}_sol2"
  5483. fi
  5484. ;;
  5485. *)
  5486. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5487. LD="${LD-ld} -64"
  5488. fi
  5489. ;;
  5490. esac
  5491. ;;
  5492. esac
  5493. fi
  5494. rm -rf conftest*
  5495. ;;
  5496. esac
  5497. need_locks="$enable_libtool_lock"
  5498. if test -n "$ac_tool_prefix"; then
  5499. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5500. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5502. $as_echo_n "checking for $ac_word... " >&6; }
  5503. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5504. $as_echo_n "(cached) " >&6
  5505. else
  5506. if test -n "$MANIFEST_TOOL"; then
  5507. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5508. else
  5509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5510. for as_dir in $PATH
  5511. do
  5512. IFS=$as_save_IFS
  5513. test -z "$as_dir" && as_dir=.
  5514. for ac_exec_ext in '' $ac_executable_extensions; do
  5515. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5516. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5518. break 2
  5519. fi
  5520. done
  5521. done
  5522. IFS=$as_save_IFS
  5523. fi
  5524. fi
  5525. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5526. if test -n "$MANIFEST_TOOL"; then
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5528. $as_echo "$MANIFEST_TOOL" >&6; }
  5529. else
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5531. $as_echo "no" >&6; }
  5532. fi
  5533. fi
  5534. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5535. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5536. # Extract the first word of "mt", so it can be a program name with args.
  5537. set dummy mt; ac_word=$2
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5539. $as_echo_n "checking for $ac_word... " >&6; }
  5540. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5541. $as_echo_n "(cached) " >&6
  5542. else
  5543. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5544. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5545. else
  5546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5547. for as_dir in $PATH
  5548. do
  5549. IFS=$as_save_IFS
  5550. test -z "$as_dir" && as_dir=.
  5551. for ac_exec_ext in '' $ac_executable_extensions; do
  5552. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5553. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5555. break 2
  5556. fi
  5557. done
  5558. done
  5559. IFS=$as_save_IFS
  5560. fi
  5561. fi
  5562. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5563. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5565. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5566. else
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5568. $as_echo "no" >&6; }
  5569. fi
  5570. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5571. MANIFEST_TOOL=":"
  5572. else
  5573. case $cross_compiling:$ac_tool_warned in
  5574. yes:)
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5576. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5577. ac_tool_warned=yes ;;
  5578. esac
  5579. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5580. fi
  5581. else
  5582. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5583. fi
  5584. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5586. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5587. if ${lt_cv_path_mainfest_tool+:} false; then :
  5588. $as_echo_n "(cached) " >&6
  5589. else
  5590. lt_cv_path_mainfest_tool=no
  5591. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5592. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5593. cat conftest.err >&5
  5594. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5595. lt_cv_path_mainfest_tool=yes
  5596. fi
  5597. rm -f conftest*
  5598. fi
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5600. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5601. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5602. MANIFEST_TOOL=:
  5603. fi
  5604. case $host_os in
  5605. rhapsody* | darwin*)
  5606. if test -n "$ac_tool_prefix"; then
  5607. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5608. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5610. $as_echo_n "checking for $ac_word... " >&6; }
  5611. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. if test -n "$DSYMUTIL"; then
  5615. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5616. else
  5617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5618. for as_dir in $PATH
  5619. do
  5620. IFS=$as_save_IFS
  5621. test -z "$as_dir" && as_dir=.
  5622. for ac_exec_ext in '' $ac_executable_extensions; do
  5623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5624. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5626. break 2
  5627. fi
  5628. done
  5629. done
  5630. IFS=$as_save_IFS
  5631. fi
  5632. fi
  5633. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5634. if test -n "$DSYMUTIL"; then
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5636. $as_echo "$DSYMUTIL" >&6; }
  5637. else
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5639. $as_echo "no" >&6; }
  5640. fi
  5641. fi
  5642. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5643. ac_ct_DSYMUTIL=$DSYMUTIL
  5644. # Extract the first word of "dsymutil", so it can be a program name with args.
  5645. set dummy dsymutil; ac_word=$2
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5647. $as_echo_n "checking for $ac_word... " >&6; }
  5648. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5649. $as_echo_n "(cached) " >&6
  5650. else
  5651. if test -n "$ac_ct_DSYMUTIL"; then
  5652. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5653. else
  5654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5655. for as_dir in $PATH
  5656. do
  5657. IFS=$as_save_IFS
  5658. test -z "$as_dir" && as_dir=.
  5659. for ac_exec_ext in '' $ac_executable_extensions; do
  5660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5661. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5663. break 2
  5664. fi
  5665. done
  5666. done
  5667. IFS=$as_save_IFS
  5668. fi
  5669. fi
  5670. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5671. if test -n "$ac_ct_DSYMUTIL"; then
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5673. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5674. else
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5676. $as_echo "no" >&6; }
  5677. fi
  5678. if test "x$ac_ct_DSYMUTIL" = x; then
  5679. DSYMUTIL=":"
  5680. else
  5681. case $cross_compiling:$ac_tool_warned in
  5682. yes:)
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5685. ac_tool_warned=yes ;;
  5686. esac
  5687. DSYMUTIL=$ac_ct_DSYMUTIL
  5688. fi
  5689. else
  5690. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5691. fi
  5692. if test -n "$ac_tool_prefix"; then
  5693. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5694. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5696. $as_echo_n "checking for $ac_word... " >&6; }
  5697. if ${ac_cv_prog_NMEDIT+:} false; then :
  5698. $as_echo_n "(cached) " >&6
  5699. else
  5700. if test -n "$NMEDIT"; then
  5701. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5702. else
  5703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5704. for as_dir in $PATH
  5705. do
  5706. IFS=$as_save_IFS
  5707. test -z "$as_dir" && as_dir=.
  5708. for ac_exec_ext in '' $ac_executable_extensions; do
  5709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5710. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5712. break 2
  5713. fi
  5714. done
  5715. done
  5716. IFS=$as_save_IFS
  5717. fi
  5718. fi
  5719. NMEDIT=$ac_cv_prog_NMEDIT
  5720. if test -n "$NMEDIT"; then
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5722. $as_echo "$NMEDIT" >&6; }
  5723. else
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5725. $as_echo "no" >&6; }
  5726. fi
  5727. fi
  5728. if test -z "$ac_cv_prog_NMEDIT"; then
  5729. ac_ct_NMEDIT=$NMEDIT
  5730. # Extract the first word of "nmedit", so it can be a program name with args.
  5731. set dummy nmedit; ac_word=$2
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5733. $as_echo_n "checking for $ac_word... " >&6; }
  5734. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5735. $as_echo_n "(cached) " >&6
  5736. else
  5737. if test -n "$ac_ct_NMEDIT"; then
  5738. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5739. else
  5740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5741. for as_dir in $PATH
  5742. do
  5743. IFS=$as_save_IFS
  5744. test -z "$as_dir" && as_dir=.
  5745. for ac_exec_ext in '' $ac_executable_extensions; do
  5746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5747. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5749. break 2
  5750. fi
  5751. done
  5752. done
  5753. IFS=$as_save_IFS
  5754. fi
  5755. fi
  5756. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5757. if test -n "$ac_ct_NMEDIT"; then
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5759. $as_echo "$ac_ct_NMEDIT" >&6; }
  5760. else
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5762. $as_echo "no" >&6; }
  5763. fi
  5764. if test "x$ac_ct_NMEDIT" = x; then
  5765. NMEDIT=":"
  5766. else
  5767. case $cross_compiling:$ac_tool_warned in
  5768. yes:)
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5771. ac_tool_warned=yes ;;
  5772. esac
  5773. NMEDIT=$ac_ct_NMEDIT
  5774. fi
  5775. else
  5776. NMEDIT="$ac_cv_prog_NMEDIT"
  5777. fi
  5778. if test -n "$ac_tool_prefix"; then
  5779. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5780. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5782. $as_echo_n "checking for $ac_word... " >&6; }
  5783. if ${ac_cv_prog_LIPO+:} false; then :
  5784. $as_echo_n "(cached) " >&6
  5785. else
  5786. if test -n "$LIPO"; then
  5787. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5788. else
  5789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5790. for as_dir in $PATH
  5791. do
  5792. IFS=$as_save_IFS
  5793. test -z "$as_dir" && as_dir=.
  5794. for ac_exec_ext in '' $ac_executable_extensions; do
  5795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5796. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5798. break 2
  5799. fi
  5800. done
  5801. done
  5802. IFS=$as_save_IFS
  5803. fi
  5804. fi
  5805. LIPO=$ac_cv_prog_LIPO
  5806. if test -n "$LIPO"; then
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5808. $as_echo "$LIPO" >&6; }
  5809. else
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5811. $as_echo "no" >&6; }
  5812. fi
  5813. fi
  5814. if test -z "$ac_cv_prog_LIPO"; then
  5815. ac_ct_LIPO=$LIPO
  5816. # Extract the first word of "lipo", so it can be a program name with args.
  5817. set dummy lipo; ac_word=$2
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5819. $as_echo_n "checking for $ac_word... " >&6; }
  5820. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5821. $as_echo_n "(cached) " >&6
  5822. else
  5823. if test -n "$ac_ct_LIPO"; then
  5824. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5825. else
  5826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5827. for as_dir in $PATH
  5828. do
  5829. IFS=$as_save_IFS
  5830. test -z "$as_dir" && as_dir=.
  5831. for ac_exec_ext in '' $ac_executable_extensions; do
  5832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5833. ac_cv_prog_ac_ct_LIPO="lipo"
  5834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5835. break 2
  5836. fi
  5837. done
  5838. done
  5839. IFS=$as_save_IFS
  5840. fi
  5841. fi
  5842. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5843. if test -n "$ac_ct_LIPO"; then
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5845. $as_echo "$ac_ct_LIPO" >&6; }
  5846. else
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5848. $as_echo "no" >&6; }
  5849. fi
  5850. if test "x$ac_ct_LIPO" = x; then
  5851. LIPO=":"
  5852. else
  5853. case $cross_compiling:$ac_tool_warned in
  5854. yes:)
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5857. ac_tool_warned=yes ;;
  5858. esac
  5859. LIPO=$ac_ct_LIPO
  5860. fi
  5861. else
  5862. LIPO="$ac_cv_prog_LIPO"
  5863. fi
  5864. if test -n "$ac_tool_prefix"; then
  5865. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5866. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5868. $as_echo_n "checking for $ac_word... " >&6; }
  5869. if ${ac_cv_prog_OTOOL+:} false; then :
  5870. $as_echo_n "(cached) " >&6
  5871. else
  5872. if test -n "$OTOOL"; then
  5873. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5874. else
  5875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5876. for as_dir in $PATH
  5877. do
  5878. IFS=$as_save_IFS
  5879. test -z "$as_dir" && as_dir=.
  5880. for ac_exec_ext in '' $ac_executable_extensions; do
  5881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5882. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5884. break 2
  5885. fi
  5886. done
  5887. done
  5888. IFS=$as_save_IFS
  5889. fi
  5890. fi
  5891. OTOOL=$ac_cv_prog_OTOOL
  5892. if test -n "$OTOOL"; then
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5894. $as_echo "$OTOOL" >&6; }
  5895. else
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5897. $as_echo "no" >&6; }
  5898. fi
  5899. fi
  5900. if test -z "$ac_cv_prog_OTOOL"; then
  5901. ac_ct_OTOOL=$OTOOL
  5902. # Extract the first word of "otool", so it can be a program name with args.
  5903. set dummy otool; ac_word=$2
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5905. $as_echo_n "checking for $ac_word... " >&6; }
  5906. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. if test -n "$ac_ct_OTOOL"; then
  5910. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5911. else
  5912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5913. for as_dir in $PATH
  5914. do
  5915. IFS=$as_save_IFS
  5916. test -z "$as_dir" && as_dir=.
  5917. for ac_exec_ext in '' $ac_executable_extensions; do
  5918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5919. ac_cv_prog_ac_ct_OTOOL="otool"
  5920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5921. break 2
  5922. fi
  5923. done
  5924. done
  5925. IFS=$as_save_IFS
  5926. fi
  5927. fi
  5928. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5929. if test -n "$ac_ct_OTOOL"; then
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5931. $as_echo "$ac_ct_OTOOL" >&6; }
  5932. else
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5934. $as_echo "no" >&6; }
  5935. fi
  5936. if test "x$ac_ct_OTOOL" = x; then
  5937. OTOOL=":"
  5938. else
  5939. case $cross_compiling:$ac_tool_warned in
  5940. yes:)
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5942. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5943. ac_tool_warned=yes ;;
  5944. esac
  5945. OTOOL=$ac_ct_OTOOL
  5946. fi
  5947. else
  5948. OTOOL="$ac_cv_prog_OTOOL"
  5949. fi
  5950. if test -n "$ac_tool_prefix"; then
  5951. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5952. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5954. $as_echo_n "checking for $ac_word... " >&6; }
  5955. if ${ac_cv_prog_OTOOL64+:} false; then :
  5956. $as_echo_n "(cached) " >&6
  5957. else
  5958. if test -n "$OTOOL64"; then
  5959. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5960. else
  5961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5962. for as_dir in $PATH
  5963. do
  5964. IFS=$as_save_IFS
  5965. test -z "$as_dir" && as_dir=.
  5966. for ac_exec_ext in '' $ac_executable_extensions; do
  5967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5968. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5970. break 2
  5971. fi
  5972. done
  5973. done
  5974. IFS=$as_save_IFS
  5975. fi
  5976. fi
  5977. OTOOL64=$ac_cv_prog_OTOOL64
  5978. if test -n "$OTOOL64"; then
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5980. $as_echo "$OTOOL64" >&6; }
  5981. else
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5983. $as_echo "no" >&6; }
  5984. fi
  5985. fi
  5986. if test -z "$ac_cv_prog_OTOOL64"; then
  5987. ac_ct_OTOOL64=$OTOOL64
  5988. # Extract the first word of "otool64", so it can be a program name with args.
  5989. set dummy otool64; ac_word=$2
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5991. $as_echo_n "checking for $ac_word... " >&6; }
  5992. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5993. $as_echo_n "(cached) " >&6
  5994. else
  5995. if test -n "$ac_ct_OTOOL64"; then
  5996. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5997. else
  5998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5999. for as_dir in $PATH
  6000. do
  6001. IFS=$as_save_IFS
  6002. test -z "$as_dir" && as_dir=.
  6003. for ac_exec_ext in '' $ac_executable_extensions; do
  6004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6005. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6007. break 2
  6008. fi
  6009. done
  6010. done
  6011. IFS=$as_save_IFS
  6012. fi
  6013. fi
  6014. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6015. if test -n "$ac_ct_OTOOL64"; then
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6017. $as_echo "$ac_ct_OTOOL64" >&6; }
  6018. else
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6020. $as_echo "no" >&6; }
  6021. fi
  6022. if test "x$ac_ct_OTOOL64" = x; then
  6023. OTOOL64=":"
  6024. else
  6025. case $cross_compiling:$ac_tool_warned in
  6026. yes:)
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6028. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6029. ac_tool_warned=yes ;;
  6030. esac
  6031. OTOOL64=$ac_ct_OTOOL64
  6032. fi
  6033. else
  6034. OTOOL64="$ac_cv_prog_OTOOL64"
  6035. fi
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6037. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6038. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6039. $as_echo_n "(cached) " >&6
  6040. else
  6041. lt_cv_apple_cc_single_mod=no
  6042. if test -z "${LT_MULTI_MODULE}"; then
  6043. # By default we will add the -single_module flag. You can override
  6044. # by either setting the environment variable LT_MULTI_MODULE
  6045. # non-empty at configure time, or by adding -multi_module to the
  6046. # link flags.
  6047. rm -rf libconftest.dylib*
  6048. echo "int foo(void){return 1;}" > conftest.c
  6049. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6050. -dynamiclib -Wl,-single_module conftest.c" >&5
  6051. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6052. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6053. _lt_result=$?
  6054. # If there is a non-empty error log, and "single_module"
  6055. # appears in it, assume the flag caused a linker warning
  6056. if test -s conftest.err && $GREP single_module conftest.err; then
  6057. cat conftest.err >&5
  6058. # Otherwise, if the output was created with a 0 exit code from
  6059. # the compiler, it worked.
  6060. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6061. lt_cv_apple_cc_single_mod=yes
  6062. else
  6063. cat conftest.err >&5
  6064. fi
  6065. rm -rf libconftest.dylib*
  6066. rm -f conftest.*
  6067. fi
  6068. fi
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6070. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6072. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6073. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. lt_cv_ld_exported_symbols_list=no
  6077. save_LDFLAGS=$LDFLAGS
  6078. echo "_main" > conftest.sym
  6079. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6081. /* end confdefs.h. */
  6082. int
  6083. main ()
  6084. {
  6085. ;
  6086. return 0;
  6087. }
  6088. _ACEOF
  6089. if ac_fn_c_try_link "$LINENO"; then :
  6090. lt_cv_ld_exported_symbols_list=yes
  6091. else
  6092. lt_cv_ld_exported_symbols_list=no
  6093. fi
  6094. rm -f core conftest.err conftest.$ac_objext \
  6095. conftest$ac_exeext conftest.$ac_ext
  6096. LDFLAGS="$save_LDFLAGS"
  6097. fi
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6099. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6101. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6102. if ${lt_cv_ld_force_load+:} false; then :
  6103. $as_echo_n "(cached) " >&6
  6104. else
  6105. lt_cv_ld_force_load=no
  6106. cat > conftest.c << _LT_EOF
  6107. int forced_loaded() { return 2;}
  6108. _LT_EOF
  6109. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6110. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6111. echo "$AR cru libconftest.a conftest.o" >&5
  6112. $AR cru libconftest.a conftest.o 2>&5
  6113. echo "$RANLIB libconftest.a" >&5
  6114. $RANLIB libconftest.a 2>&5
  6115. cat > conftest.c << _LT_EOF
  6116. int main() { return 0;}
  6117. _LT_EOF
  6118. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6119. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6120. _lt_result=$?
  6121. if test -s conftest.err && $GREP force_load conftest.err; then
  6122. cat conftest.err >&5
  6123. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6124. lt_cv_ld_force_load=yes
  6125. else
  6126. cat conftest.err >&5
  6127. fi
  6128. rm -f conftest.err libconftest.a conftest conftest.c
  6129. rm -rf conftest.dSYM
  6130. fi
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6132. $as_echo "$lt_cv_ld_force_load" >&6; }
  6133. case $host_os in
  6134. rhapsody* | darwin1.[012])
  6135. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6136. darwin1.*)
  6137. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6138. darwin*)
  6139. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6140. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6141. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6142. *)
  6143. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6144. esac
  6145. ;;
  6146. esac
  6147. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6148. _lt_dar_single_mod='$single_module'
  6149. fi
  6150. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6151. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6152. else
  6153. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6154. fi
  6155. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6156. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6157. else
  6158. _lt_dsymutil=
  6159. fi
  6160. ;;
  6161. esac
  6162. ac_ext=c
  6163. ac_cpp='$CPP $CPPFLAGS'
  6164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6168. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6169. # On Suns, sometimes $CPP names a directory.
  6170. if test -n "$CPP" && test -d "$CPP"; then
  6171. CPP=
  6172. fi
  6173. if test -z "$CPP"; then
  6174. if ${ac_cv_prog_CPP+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. # Double quotes because CPP needs to be expanded
  6178. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6179. do
  6180. ac_preproc_ok=false
  6181. for ac_c_preproc_warn_flag in '' yes
  6182. do
  6183. # Use a header file that comes with gcc, so configuring glibc
  6184. # with a fresh cross-compiler works.
  6185. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6186. # <limits.h> exists even on freestanding compilers.
  6187. # On the NeXT, cc -E runs the code through the compiler's parser,
  6188. # not just through cpp. "Syntax error" is here to catch this case.
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. #ifdef __STDC__
  6192. # include <limits.h>
  6193. #else
  6194. # include <assert.h>
  6195. #endif
  6196. Syntax error
  6197. _ACEOF
  6198. if ac_fn_c_try_cpp "$LINENO"; then :
  6199. else
  6200. # Broken: fails on valid input.
  6201. continue
  6202. fi
  6203. rm -f conftest.err conftest.i conftest.$ac_ext
  6204. # OK, works on sane cases. Now check whether nonexistent headers
  6205. # can be detected and how.
  6206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6207. /* end confdefs.h. */
  6208. #include <ac_nonexistent.h>
  6209. _ACEOF
  6210. if ac_fn_c_try_cpp "$LINENO"; then :
  6211. # Broken: success on invalid input.
  6212. continue
  6213. else
  6214. # Passes both tests.
  6215. ac_preproc_ok=:
  6216. break
  6217. fi
  6218. rm -f conftest.err conftest.i conftest.$ac_ext
  6219. done
  6220. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6221. rm -f conftest.i conftest.err conftest.$ac_ext
  6222. if $ac_preproc_ok; then :
  6223. break
  6224. fi
  6225. done
  6226. ac_cv_prog_CPP=$CPP
  6227. fi
  6228. CPP=$ac_cv_prog_CPP
  6229. else
  6230. ac_cv_prog_CPP=$CPP
  6231. fi
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6233. $as_echo "$CPP" >&6; }
  6234. ac_preproc_ok=false
  6235. for ac_c_preproc_warn_flag in '' yes
  6236. do
  6237. # Use a header file that comes with gcc, so configuring glibc
  6238. # with a fresh cross-compiler works.
  6239. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6240. # <limits.h> exists even on freestanding compilers.
  6241. # On the NeXT, cc -E runs the code through the compiler's parser,
  6242. # not just through cpp. "Syntax error" is here to catch this case.
  6243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6244. /* end confdefs.h. */
  6245. #ifdef __STDC__
  6246. # include <limits.h>
  6247. #else
  6248. # include <assert.h>
  6249. #endif
  6250. Syntax error
  6251. _ACEOF
  6252. if ac_fn_c_try_cpp "$LINENO"; then :
  6253. else
  6254. # Broken: fails on valid input.
  6255. continue
  6256. fi
  6257. rm -f conftest.err conftest.i conftest.$ac_ext
  6258. # OK, works on sane cases. Now check whether nonexistent headers
  6259. # can be detected and how.
  6260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6261. /* end confdefs.h. */
  6262. #include <ac_nonexistent.h>
  6263. _ACEOF
  6264. if ac_fn_c_try_cpp "$LINENO"; then :
  6265. # Broken: success on invalid input.
  6266. continue
  6267. else
  6268. # Passes both tests.
  6269. ac_preproc_ok=:
  6270. break
  6271. fi
  6272. rm -f conftest.err conftest.i conftest.$ac_ext
  6273. done
  6274. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6275. rm -f conftest.i conftest.err conftest.$ac_ext
  6276. if $ac_preproc_ok; then :
  6277. else
  6278. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6279. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6280. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6281. See \`config.log' for more details" "$LINENO" 5; }
  6282. fi
  6283. ac_ext=c
  6284. ac_cpp='$CPP $CPPFLAGS'
  6285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6289. $as_echo_n "checking for ANSI C header files... " >&6; }
  6290. if ${ac_cv_header_stdc+:} false; then :
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6294. /* end confdefs.h. */
  6295. #include <stdlib.h>
  6296. #include <stdarg.h>
  6297. #include <string.h>
  6298. #include <float.h>
  6299. int
  6300. main ()
  6301. {
  6302. ;
  6303. return 0;
  6304. }
  6305. _ACEOF
  6306. if ac_fn_c_try_compile "$LINENO"; then :
  6307. ac_cv_header_stdc=yes
  6308. else
  6309. ac_cv_header_stdc=no
  6310. fi
  6311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6312. if test $ac_cv_header_stdc = yes; then
  6313. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end confdefs.h. */
  6316. #include <string.h>
  6317. _ACEOF
  6318. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6319. $EGREP "memchr" >/dev/null 2>&1; then :
  6320. else
  6321. ac_cv_header_stdc=no
  6322. fi
  6323. rm -f conftest*
  6324. fi
  6325. if test $ac_cv_header_stdc = yes; then
  6326. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6328. /* end confdefs.h. */
  6329. #include <stdlib.h>
  6330. _ACEOF
  6331. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6332. $EGREP "free" >/dev/null 2>&1; then :
  6333. else
  6334. ac_cv_header_stdc=no
  6335. fi
  6336. rm -f conftest*
  6337. fi
  6338. if test $ac_cv_header_stdc = yes; then
  6339. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6340. if test "$cross_compiling" = yes; then :
  6341. :
  6342. else
  6343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6344. /* end confdefs.h. */
  6345. #include <ctype.h>
  6346. #include <stdlib.h>
  6347. #if ((' ' & 0x0FF) == 0x020)
  6348. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6349. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6350. #else
  6351. # define ISLOWER(c) \
  6352. (('a' <= (c) && (c) <= 'i') \
  6353. || ('j' <= (c) && (c) <= 'r') \
  6354. || ('s' <= (c) && (c) <= 'z'))
  6355. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6356. #endif
  6357. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6358. int
  6359. main ()
  6360. {
  6361. int i;
  6362. for (i = 0; i < 256; i++)
  6363. if (XOR (islower (i), ISLOWER (i))
  6364. || toupper (i) != TOUPPER (i))
  6365. return 2;
  6366. return 0;
  6367. }
  6368. _ACEOF
  6369. if ac_fn_c_try_run "$LINENO"; then :
  6370. else
  6371. ac_cv_header_stdc=no
  6372. fi
  6373. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6374. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6375. fi
  6376. fi
  6377. fi
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6379. $as_echo "$ac_cv_header_stdc" >&6; }
  6380. if test $ac_cv_header_stdc = yes; then
  6381. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6382. fi
  6383. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6384. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6385. inttypes.h stdint.h unistd.h
  6386. do :
  6387. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6388. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6389. "
  6390. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6391. cat >>confdefs.h <<_ACEOF
  6392. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6393. _ACEOF
  6394. fi
  6395. done
  6396. for ac_header in dlfcn.h
  6397. do :
  6398. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6399. "
  6400. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6401. cat >>confdefs.h <<_ACEOF
  6402. #define HAVE_DLFCN_H 1
  6403. _ACEOF
  6404. fi
  6405. done
  6406. # Set options
  6407. enable_win32_dll=yes
  6408. case $host in
  6409. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6410. if test -n "$ac_tool_prefix"; then
  6411. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6412. set dummy ${ac_tool_prefix}as; ac_word=$2
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6414. $as_echo_n "checking for $ac_word... " >&6; }
  6415. if ${ac_cv_prog_AS+:} false; then :
  6416. $as_echo_n "(cached) " >&6
  6417. else
  6418. if test -n "$AS"; then
  6419. ac_cv_prog_AS="$AS" # Let the user override the test.
  6420. else
  6421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6422. for as_dir in $PATH
  6423. do
  6424. IFS=$as_save_IFS
  6425. test -z "$as_dir" && as_dir=.
  6426. for ac_exec_ext in '' $ac_executable_extensions; do
  6427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6428. ac_cv_prog_AS="${ac_tool_prefix}as"
  6429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6430. break 2
  6431. fi
  6432. done
  6433. done
  6434. IFS=$as_save_IFS
  6435. fi
  6436. fi
  6437. AS=$ac_cv_prog_AS
  6438. if test -n "$AS"; then
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6440. $as_echo "$AS" >&6; }
  6441. else
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6443. $as_echo "no" >&6; }
  6444. fi
  6445. fi
  6446. if test -z "$ac_cv_prog_AS"; then
  6447. ac_ct_AS=$AS
  6448. # Extract the first word of "as", so it can be a program name with args.
  6449. set dummy as; ac_word=$2
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6451. $as_echo_n "checking for $ac_word... " >&6; }
  6452. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6453. $as_echo_n "(cached) " >&6
  6454. else
  6455. if test -n "$ac_ct_AS"; then
  6456. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6457. else
  6458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6459. for as_dir in $PATH
  6460. do
  6461. IFS=$as_save_IFS
  6462. test -z "$as_dir" && as_dir=.
  6463. for ac_exec_ext in '' $ac_executable_extensions; do
  6464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6465. ac_cv_prog_ac_ct_AS="as"
  6466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6467. break 2
  6468. fi
  6469. done
  6470. done
  6471. IFS=$as_save_IFS
  6472. fi
  6473. fi
  6474. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6475. if test -n "$ac_ct_AS"; then
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6477. $as_echo "$ac_ct_AS" >&6; }
  6478. else
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6480. $as_echo "no" >&6; }
  6481. fi
  6482. if test "x$ac_ct_AS" = x; then
  6483. AS="false"
  6484. else
  6485. case $cross_compiling:$ac_tool_warned in
  6486. yes:)
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6488. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6489. ac_tool_warned=yes ;;
  6490. esac
  6491. AS=$ac_ct_AS
  6492. fi
  6493. else
  6494. AS="$ac_cv_prog_AS"
  6495. fi
  6496. if test -n "$ac_tool_prefix"; then
  6497. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6498. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6500. $as_echo_n "checking for $ac_word... " >&6; }
  6501. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6502. $as_echo_n "(cached) " >&6
  6503. else
  6504. if test -n "$DLLTOOL"; then
  6505. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6506. else
  6507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6508. for as_dir in $PATH
  6509. do
  6510. IFS=$as_save_IFS
  6511. test -z "$as_dir" && as_dir=.
  6512. for ac_exec_ext in '' $ac_executable_extensions; do
  6513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6514. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6516. break 2
  6517. fi
  6518. done
  6519. done
  6520. IFS=$as_save_IFS
  6521. fi
  6522. fi
  6523. DLLTOOL=$ac_cv_prog_DLLTOOL
  6524. if test -n "$DLLTOOL"; then
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6526. $as_echo "$DLLTOOL" >&6; }
  6527. else
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6529. $as_echo "no" >&6; }
  6530. fi
  6531. fi
  6532. if test -z "$ac_cv_prog_DLLTOOL"; then
  6533. ac_ct_DLLTOOL=$DLLTOOL
  6534. # Extract the first word of "dlltool", so it can be a program name with args.
  6535. set dummy dlltool; ac_word=$2
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6537. $as_echo_n "checking for $ac_word... " >&6; }
  6538. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6539. $as_echo_n "(cached) " >&6
  6540. else
  6541. if test -n "$ac_ct_DLLTOOL"; then
  6542. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6543. else
  6544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6545. for as_dir in $PATH
  6546. do
  6547. IFS=$as_save_IFS
  6548. test -z "$as_dir" && as_dir=.
  6549. for ac_exec_ext in '' $ac_executable_extensions; do
  6550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6551. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6553. break 2
  6554. fi
  6555. done
  6556. done
  6557. IFS=$as_save_IFS
  6558. fi
  6559. fi
  6560. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6561. if test -n "$ac_ct_DLLTOOL"; then
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6563. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6564. else
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6566. $as_echo "no" >&6; }
  6567. fi
  6568. if test "x$ac_ct_DLLTOOL" = x; then
  6569. DLLTOOL="false"
  6570. else
  6571. case $cross_compiling:$ac_tool_warned in
  6572. yes:)
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6574. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6575. ac_tool_warned=yes ;;
  6576. esac
  6577. DLLTOOL=$ac_ct_DLLTOOL
  6578. fi
  6579. else
  6580. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6581. fi
  6582. if test -n "$ac_tool_prefix"; then
  6583. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6584. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6586. $as_echo_n "checking for $ac_word... " >&6; }
  6587. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6588. $as_echo_n "(cached) " >&6
  6589. else
  6590. if test -n "$OBJDUMP"; then
  6591. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6592. else
  6593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6594. for as_dir in $PATH
  6595. do
  6596. IFS=$as_save_IFS
  6597. test -z "$as_dir" && as_dir=.
  6598. for ac_exec_ext in '' $ac_executable_extensions; do
  6599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6600. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6602. break 2
  6603. fi
  6604. done
  6605. done
  6606. IFS=$as_save_IFS
  6607. fi
  6608. fi
  6609. OBJDUMP=$ac_cv_prog_OBJDUMP
  6610. if test -n "$OBJDUMP"; then
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6612. $as_echo "$OBJDUMP" >&6; }
  6613. else
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6615. $as_echo "no" >&6; }
  6616. fi
  6617. fi
  6618. if test -z "$ac_cv_prog_OBJDUMP"; then
  6619. ac_ct_OBJDUMP=$OBJDUMP
  6620. # Extract the first word of "objdump", so it can be a program name with args.
  6621. set dummy objdump; ac_word=$2
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6623. $as_echo_n "checking for $ac_word... " >&6; }
  6624. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6625. $as_echo_n "(cached) " >&6
  6626. else
  6627. if test -n "$ac_ct_OBJDUMP"; then
  6628. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6629. else
  6630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6631. for as_dir in $PATH
  6632. do
  6633. IFS=$as_save_IFS
  6634. test -z "$as_dir" && as_dir=.
  6635. for ac_exec_ext in '' $ac_executable_extensions; do
  6636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6637. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6639. break 2
  6640. fi
  6641. done
  6642. done
  6643. IFS=$as_save_IFS
  6644. fi
  6645. fi
  6646. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6647. if test -n "$ac_ct_OBJDUMP"; then
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6649. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6650. else
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6652. $as_echo "no" >&6; }
  6653. fi
  6654. if test "x$ac_ct_OBJDUMP" = x; then
  6655. OBJDUMP="false"
  6656. else
  6657. case $cross_compiling:$ac_tool_warned in
  6658. yes:)
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6660. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6661. ac_tool_warned=yes ;;
  6662. esac
  6663. OBJDUMP=$ac_ct_OBJDUMP
  6664. fi
  6665. else
  6666. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6667. fi
  6668. ;;
  6669. esac
  6670. test -z "$AS" && AS=as
  6671. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6672. test -z "$OBJDUMP" && OBJDUMP=objdump
  6673. enable_dlopen=no
  6674. # Check whether --enable-shared was given.
  6675. if test "${enable_shared+set}" = set; then :
  6676. enableval=$enable_shared; p=${PACKAGE-default}
  6677. case $enableval in
  6678. yes) enable_shared=yes ;;
  6679. no) enable_shared=no ;;
  6680. *)
  6681. enable_shared=no
  6682. # Look at the argument we got. We use all the common list separators.
  6683. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6684. for pkg in $enableval; do
  6685. IFS="$lt_save_ifs"
  6686. if test "X$pkg" = "X$p"; then
  6687. enable_shared=yes
  6688. fi
  6689. done
  6690. IFS="$lt_save_ifs"
  6691. ;;
  6692. esac
  6693. else
  6694. enable_shared=yes
  6695. fi
  6696. # Check whether --enable-static was given.
  6697. if test "${enable_static+set}" = set; then :
  6698. enableval=$enable_static; p=${PACKAGE-default}
  6699. case $enableval in
  6700. yes) enable_static=yes ;;
  6701. no) enable_static=no ;;
  6702. *)
  6703. enable_static=no
  6704. # Look at the argument we got. We use all the common list separators.
  6705. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6706. for pkg in $enableval; do
  6707. IFS="$lt_save_ifs"
  6708. if test "X$pkg" = "X$p"; then
  6709. enable_static=yes
  6710. fi
  6711. done
  6712. IFS="$lt_save_ifs"
  6713. ;;
  6714. esac
  6715. else
  6716. enable_static=yes
  6717. fi
  6718. # Check whether --with-pic was given.
  6719. if test "${with_pic+set}" = set; then :
  6720. withval=$with_pic; lt_p=${PACKAGE-default}
  6721. case $withval in
  6722. yes|no) pic_mode=$withval ;;
  6723. *)
  6724. pic_mode=default
  6725. # Look at the argument we got. We use all the common list separators.
  6726. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6727. for lt_pkg in $withval; do
  6728. IFS="$lt_save_ifs"
  6729. if test "X$lt_pkg" = "X$lt_p"; then
  6730. pic_mode=yes
  6731. fi
  6732. done
  6733. IFS="$lt_save_ifs"
  6734. ;;
  6735. esac
  6736. else
  6737. pic_mode=default
  6738. fi
  6739. test -z "$pic_mode" && pic_mode=default
  6740. # Check whether --enable-fast-install was given.
  6741. if test "${enable_fast_install+set}" = set; then :
  6742. enableval=$enable_fast_install; p=${PACKAGE-default}
  6743. case $enableval in
  6744. yes) enable_fast_install=yes ;;
  6745. no) enable_fast_install=no ;;
  6746. *)
  6747. enable_fast_install=no
  6748. # Look at the argument we got. We use all the common list separators.
  6749. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6750. for pkg in $enableval; do
  6751. IFS="$lt_save_ifs"
  6752. if test "X$pkg" = "X$p"; then
  6753. enable_fast_install=yes
  6754. fi
  6755. done
  6756. IFS="$lt_save_ifs"
  6757. ;;
  6758. esac
  6759. else
  6760. enable_fast_install=yes
  6761. fi
  6762. # This can be used to rebuild libtool when needed
  6763. LIBTOOL_DEPS="$ltmain"
  6764. # Always use our own libtool.
  6765. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6766. test -z "$LN_S" && LN_S="ln -s"
  6767. if test -n "${ZSH_VERSION+set}" ; then
  6768. setopt NO_GLOB_SUBST
  6769. fi
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6771. $as_echo_n "checking for objdir... " >&6; }
  6772. if ${lt_cv_objdir+:} false; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. rm -f .libs 2>/dev/null
  6776. mkdir .libs 2>/dev/null
  6777. if test -d .libs; then
  6778. lt_cv_objdir=.libs
  6779. else
  6780. # MS-DOS does not allow filenames that begin with a dot.
  6781. lt_cv_objdir=_libs
  6782. fi
  6783. rmdir .libs 2>/dev/null
  6784. fi
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6786. $as_echo "$lt_cv_objdir" >&6; }
  6787. objdir=$lt_cv_objdir
  6788. cat >>confdefs.h <<_ACEOF
  6789. #define LT_OBJDIR "$lt_cv_objdir/"
  6790. _ACEOF
  6791. case $host_os in
  6792. aix3*)
  6793. # AIX sometimes has problems with the GCC collect2 program. For some
  6794. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6795. # vanish in a puff of smoke.
  6796. if test "X${COLLECT_NAMES+set}" != Xset; then
  6797. COLLECT_NAMES=
  6798. export COLLECT_NAMES
  6799. fi
  6800. ;;
  6801. esac
  6802. # Global variables:
  6803. ofile=libtool
  6804. can_build_shared=yes
  6805. # All known linkers require a `.a' archive for static linking (except MSVC,
  6806. # which needs '.lib').
  6807. libext=a
  6808. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6809. old_CC="$CC"
  6810. old_CFLAGS="$CFLAGS"
  6811. # Set sane defaults for various variables
  6812. test -z "$CC" && CC=cc
  6813. test -z "$LTCC" && LTCC=$CC
  6814. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6815. test -z "$LD" && LD=ld
  6816. test -z "$ac_objext" && ac_objext=o
  6817. for cc_temp in $compiler""; do
  6818. case $cc_temp in
  6819. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6820. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6821. \-*) ;;
  6822. *) break;;
  6823. esac
  6824. done
  6825. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6826. # Only perform the check for file, if the check method requires it
  6827. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6828. case $deplibs_check_method in
  6829. file_magic*)
  6830. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6832. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6833. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6834. $as_echo_n "(cached) " >&6
  6835. else
  6836. case $MAGIC_CMD in
  6837. [\\/*] | ?:[\\/]*)
  6838. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6839. ;;
  6840. *)
  6841. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6842. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6843. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6844. for ac_dir in $ac_dummy; do
  6845. IFS="$lt_save_ifs"
  6846. test -z "$ac_dir" && ac_dir=.
  6847. if test -f $ac_dir/${ac_tool_prefix}file; then
  6848. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6849. if test -n "$file_magic_test_file"; then
  6850. case $deplibs_check_method in
  6851. "file_magic "*)
  6852. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6853. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6854. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6855. $EGREP "$file_magic_regex" > /dev/null; then
  6856. :
  6857. else
  6858. cat <<_LT_EOF 1>&2
  6859. *** Warning: the command libtool uses to detect shared libraries,
  6860. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6861. *** The result is that libtool may fail to recognize shared libraries
  6862. *** as such. This will affect the creation of libtool libraries that
  6863. *** depend on shared libraries, but programs linked with such libtool
  6864. *** libraries will work regardless of this problem. Nevertheless, you
  6865. *** may want to report the problem to your system manager and/or to
  6866. *** bug-libtool@gnu.org
  6867. _LT_EOF
  6868. fi ;;
  6869. esac
  6870. fi
  6871. break
  6872. fi
  6873. done
  6874. IFS="$lt_save_ifs"
  6875. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6876. ;;
  6877. esac
  6878. fi
  6879. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6880. if test -n "$MAGIC_CMD"; then
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6882. $as_echo "$MAGIC_CMD" >&6; }
  6883. else
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6885. $as_echo "no" >&6; }
  6886. fi
  6887. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6888. if test -n "$ac_tool_prefix"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6890. $as_echo_n "checking for file... " >&6; }
  6891. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6892. $as_echo_n "(cached) " >&6
  6893. else
  6894. case $MAGIC_CMD in
  6895. [\\/*] | ?:[\\/]*)
  6896. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6897. ;;
  6898. *)
  6899. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6900. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6901. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6902. for ac_dir in $ac_dummy; do
  6903. IFS="$lt_save_ifs"
  6904. test -z "$ac_dir" && ac_dir=.
  6905. if test -f $ac_dir/file; then
  6906. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6907. if test -n "$file_magic_test_file"; then
  6908. case $deplibs_check_method in
  6909. "file_magic "*)
  6910. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6911. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6912. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6913. $EGREP "$file_magic_regex" > /dev/null; then
  6914. :
  6915. else
  6916. cat <<_LT_EOF 1>&2
  6917. *** Warning: the command libtool uses to detect shared libraries,
  6918. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6919. *** The result is that libtool may fail to recognize shared libraries
  6920. *** as such. This will affect the creation of libtool libraries that
  6921. *** depend on shared libraries, but programs linked with such libtool
  6922. *** libraries will work regardless of this problem. Nevertheless, you
  6923. *** may want to report the problem to your system manager and/or to
  6924. *** bug-libtool@gnu.org
  6925. _LT_EOF
  6926. fi ;;
  6927. esac
  6928. fi
  6929. break
  6930. fi
  6931. done
  6932. IFS="$lt_save_ifs"
  6933. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6934. ;;
  6935. esac
  6936. fi
  6937. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6938. if test -n "$MAGIC_CMD"; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6940. $as_echo "$MAGIC_CMD" >&6; }
  6941. else
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6943. $as_echo "no" >&6; }
  6944. fi
  6945. else
  6946. MAGIC_CMD=:
  6947. fi
  6948. fi
  6949. fi
  6950. ;;
  6951. esac
  6952. # Use C for the default configuration in the libtool script
  6953. lt_save_CC="$CC"
  6954. ac_ext=c
  6955. ac_cpp='$CPP $CPPFLAGS'
  6956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6959. # Source file extension for C test sources.
  6960. ac_ext=c
  6961. # Object file extension for compiled C test sources.
  6962. objext=o
  6963. objext=$objext
  6964. # Code to be used in simple compile tests
  6965. lt_simple_compile_test_code="int some_variable = 0;"
  6966. # Code to be used in simple link tests
  6967. lt_simple_link_test_code='int main(){return(0);}'
  6968. # If no C compiler was specified, use CC.
  6969. LTCC=${LTCC-"$CC"}
  6970. # If no C compiler flags were specified, use CFLAGS.
  6971. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6972. # Allow CC to be a program name with arguments.
  6973. compiler=$CC
  6974. # Save the default compiler, since it gets overwritten when the other
  6975. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6976. compiler_DEFAULT=$CC
  6977. # save warnings/boilerplate of simple test code
  6978. ac_outfile=conftest.$ac_objext
  6979. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6980. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6981. _lt_compiler_boilerplate=`cat conftest.err`
  6982. $RM conftest*
  6983. ac_outfile=conftest.$ac_objext
  6984. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6985. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6986. _lt_linker_boilerplate=`cat conftest.err`
  6987. $RM -r conftest*
  6988. ## CAVEAT EMPTOR:
  6989. ## There is no encapsulation within the following macros, do not change
  6990. ## the running order or otherwise move them around unless you know exactly
  6991. ## what you are doing...
  6992. if test -n "$compiler"; then
  6993. lt_prog_compiler_no_builtin_flag=
  6994. if test "$GCC" = yes; then
  6995. case $cc_basename in
  6996. nvcc*)
  6997. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6998. *)
  6999. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7000. esac
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7002. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7003. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7004. $as_echo_n "(cached) " >&6
  7005. else
  7006. lt_cv_prog_compiler_rtti_exceptions=no
  7007. ac_outfile=conftest.$ac_objext
  7008. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7009. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7010. # Insert the option either (1) after the last *FLAGS variable, or
  7011. # (2) before a word containing "conftest.", or (3) at the end.
  7012. # Note that $ac_compile itself does not contain backslashes and begins
  7013. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7014. # The option is referenced via a variable to avoid confusing sed.
  7015. lt_compile=`echo "$ac_compile" | $SED \
  7016. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7017. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7018. -e 's:$: $lt_compiler_flag:'`
  7019. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7020. (eval "$lt_compile" 2>conftest.err)
  7021. ac_status=$?
  7022. cat conftest.err >&5
  7023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7024. if (exit $ac_status) && test -s "$ac_outfile"; then
  7025. # The compiler can only warn and ignore the option if not recognized
  7026. # So say no if there are warnings other than the usual output.
  7027. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7028. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7029. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7030. lt_cv_prog_compiler_rtti_exceptions=yes
  7031. fi
  7032. fi
  7033. $RM conftest*
  7034. fi
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7036. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7037. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7038. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7039. else
  7040. :
  7041. fi
  7042. fi
  7043. lt_prog_compiler_wl=
  7044. lt_prog_compiler_pic=
  7045. lt_prog_compiler_static=
  7046. if test "$GCC" = yes; then
  7047. lt_prog_compiler_wl='-Wl,'
  7048. lt_prog_compiler_static='-static'
  7049. case $host_os in
  7050. aix*)
  7051. # All AIX code is PIC.
  7052. if test "$host_cpu" = ia64; then
  7053. # AIX 5 now supports IA64 processor
  7054. lt_prog_compiler_static='-Bstatic'
  7055. fi
  7056. ;;
  7057. amigaos*)
  7058. case $host_cpu in
  7059. powerpc)
  7060. # see comment about AmigaOS4 .so support
  7061. lt_prog_compiler_pic='-fPIC'
  7062. ;;
  7063. m68k)
  7064. # FIXME: we need at least 68020 code to build shared libraries, but
  7065. # adding the `-m68020' flag to GCC prevents building anything better,
  7066. # like `-m68040'.
  7067. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7068. ;;
  7069. esac
  7070. ;;
  7071. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7072. # PIC is the default for these OSes.
  7073. ;;
  7074. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7075. # This hack is so that the source file can tell whether it is being
  7076. # built for inclusion in a dll (and should export symbols for example).
  7077. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7078. # (--disable-auto-import) libraries
  7079. lt_prog_compiler_pic='-DDLL_EXPORT'
  7080. ;;
  7081. darwin* | rhapsody*)
  7082. # PIC is the default on this platform
  7083. # Common symbols not allowed in MH_DYLIB files
  7084. lt_prog_compiler_pic='-fno-common'
  7085. ;;
  7086. haiku*)
  7087. # PIC is the default for Haiku.
  7088. # The "-static" flag exists, but is broken.
  7089. lt_prog_compiler_static=
  7090. ;;
  7091. hpux*)
  7092. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7093. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7094. # sets the default TLS model and affects inlining.
  7095. case $host_cpu in
  7096. hppa*64*)
  7097. # +Z the default
  7098. ;;
  7099. *)
  7100. lt_prog_compiler_pic='-fPIC'
  7101. ;;
  7102. esac
  7103. ;;
  7104. interix[3-9]*)
  7105. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7106. # Instead, we relocate shared libraries at runtime.
  7107. ;;
  7108. msdosdjgpp*)
  7109. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7110. # on systems that don't support them.
  7111. lt_prog_compiler_can_build_shared=no
  7112. enable_shared=no
  7113. ;;
  7114. *nto* | *qnx*)
  7115. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7116. # it will coredump.
  7117. lt_prog_compiler_pic='-fPIC -shared'
  7118. ;;
  7119. sysv4*MP*)
  7120. if test -d /usr/nec; then
  7121. lt_prog_compiler_pic=-Kconform_pic
  7122. fi
  7123. ;;
  7124. *)
  7125. lt_prog_compiler_pic='-fPIC'
  7126. ;;
  7127. esac
  7128. case $cc_basename in
  7129. nvcc*) # Cuda Compiler Driver 2.2
  7130. lt_prog_compiler_wl='-Xlinker '
  7131. if test -n "$lt_prog_compiler_pic"; then
  7132. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7133. fi
  7134. ;;
  7135. esac
  7136. else
  7137. # PORTME Check for flag to pass linker flags through the system compiler.
  7138. case $host_os in
  7139. aix*)
  7140. lt_prog_compiler_wl='-Wl,'
  7141. if test "$host_cpu" = ia64; then
  7142. # AIX 5 now supports IA64 processor
  7143. lt_prog_compiler_static='-Bstatic'
  7144. else
  7145. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7146. fi
  7147. ;;
  7148. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7149. # This hack is so that the source file can tell whether it is being
  7150. # built for inclusion in a dll (and should export symbols for example).
  7151. lt_prog_compiler_pic='-DDLL_EXPORT'
  7152. ;;
  7153. hpux9* | hpux10* | hpux11*)
  7154. lt_prog_compiler_wl='-Wl,'
  7155. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7156. # not for PA HP-UX.
  7157. case $host_cpu in
  7158. hppa*64*|ia64*)
  7159. # +Z the default
  7160. ;;
  7161. *)
  7162. lt_prog_compiler_pic='+Z'
  7163. ;;
  7164. esac
  7165. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7166. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7167. ;;
  7168. irix5* | irix6* | nonstopux*)
  7169. lt_prog_compiler_wl='-Wl,'
  7170. # PIC (with -KPIC) is the default.
  7171. lt_prog_compiler_static='-non_shared'
  7172. ;;
  7173. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7174. case $cc_basename in
  7175. # old Intel for x86_64 which still supported -KPIC.
  7176. ecc*)
  7177. lt_prog_compiler_wl='-Wl,'
  7178. lt_prog_compiler_pic='-KPIC'
  7179. lt_prog_compiler_static='-static'
  7180. ;;
  7181. # icc used to be incompatible with GCC.
  7182. # ICC 10 doesn't accept -KPIC any more.
  7183. icc* | ifort*)
  7184. lt_prog_compiler_wl='-Wl,'
  7185. lt_prog_compiler_pic='-fPIC'
  7186. lt_prog_compiler_static='-static'
  7187. ;;
  7188. # Lahey Fortran 8.1.
  7189. lf95*)
  7190. lt_prog_compiler_wl='-Wl,'
  7191. lt_prog_compiler_pic='--shared'
  7192. lt_prog_compiler_static='--static'
  7193. ;;
  7194. nagfor*)
  7195. # NAG Fortran compiler
  7196. lt_prog_compiler_wl='-Wl,-Wl,,'
  7197. lt_prog_compiler_pic='-PIC'
  7198. lt_prog_compiler_static='-Bstatic'
  7199. ;;
  7200. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7201. # Portland Group compilers (*not* the Pentium gcc compiler,
  7202. # which looks to be a dead project)
  7203. lt_prog_compiler_wl='-Wl,'
  7204. lt_prog_compiler_pic='-fpic'
  7205. lt_prog_compiler_static='-Bstatic'
  7206. ;;
  7207. ccc*)
  7208. lt_prog_compiler_wl='-Wl,'
  7209. # All Alpha code is PIC.
  7210. lt_prog_compiler_static='-non_shared'
  7211. ;;
  7212. xl* | bgxl* | bgf* | mpixl*)
  7213. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7214. lt_prog_compiler_wl='-Wl,'
  7215. lt_prog_compiler_pic='-qpic'
  7216. lt_prog_compiler_static='-qstaticlink'
  7217. ;;
  7218. *)
  7219. case `$CC -V 2>&1 | sed 5q` in
  7220. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7221. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7222. lt_prog_compiler_pic='-KPIC'
  7223. lt_prog_compiler_static='-Bstatic'
  7224. lt_prog_compiler_wl=''
  7225. ;;
  7226. *Sun\ F* | *Sun*Fortran*)
  7227. lt_prog_compiler_pic='-KPIC'
  7228. lt_prog_compiler_static='-Bstatic'
  7229. lt_prog_compiler_wl='-Qoption ld '
  7230. ;;
  7231. *Sun\ C*)
  7232. # Sun C 5.9
  7233. lt_prog_compiler_pic='-KPIC'
  7234. lt_prog_compiler_static='-Bstatic'
  7235. lt_prog_compiler_wl='-Wl,'
  7236. ;;
  7237. *Intel*\ [CF]*Compiler*)
  7238. lt_prog_compiler_wl='-Wl,'
  7239. lt_prog_compiler_pic='-fPIC'
  7240. lt_prog_compiler_static='-static'
  7241. ;;
  7242. *Portland\ Group*)
  7243. lt_prog_compiler_wl='-Wl,'
  7244. lt_prog_compiler_pic='-fpic'
  7245. lt_prog_compiler_static='-Bstatic'
  7246. ;;
  7247. esac
  7248. ;;
  7249. esac
  7250. ;;
  7251. newsos6)
  7252. lt_prog_compiler_pic='-KPIC'
  7253. lt_prog_compiler_static='-Bstatic'
  7254. ;;
  7255. *nto* | *qnx*)
  7256. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7257. # it will coredump.
  7258. lt_prog_compiler_pic='-fPIC -shared'
  7259. ;;
  7260. osf3* | osf4* | osf5*)
  7261. lt_prog_compiler_wl='-Wl,'
  7262. # All OSF/1 code is PIC.
  7263. lt_prog_compiler_static='-non_shared'
  7264. ;;
  7265. rdos*)
  7266. lt_prog_compiler_static='-non_shared'
  7267. ;;
  7268. solaris*)
  7269. lt_prog_compiler_pic='-KPIC'
  7270. lt_prog_compiler_static='-Bstatic'
  7271. case $cc_basename in
  7272. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7273. lt_prog_compiler_wl='-Qoption ld ';;
  7274. *)
  7275. lt_prog_compiler_wl='-Wl,';;
  7276. esac
  7277. ;;
  7278. sunos4*)
  7279. lt_prog_compiler_wl='-Qoption ld '
  7280. lt_prog_compiler_pic='-PIC'
  7281. lt_prog_compiler_static='-Bstatic'
  7282. ;;
  7283. sysv4 | sysv4.2uw2* | sysv4.3*)
  7284. lt_prog_compiler_wl='-Wl,'
  7285. lt_prog_compiler_pic='-KPIC'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. ;;
  7288. sysv4*MP*)
  7289. if test -d /usr/nec ;then
  7290. lt_prog_compiler_pic='-Kconform_pic'
  7291. lt_prog_compiler_static='-Bstatic'
  7292. fi
  7293. ;;
  7294. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7295. lt_prog_compiler_wl='-Wl,'
  7296. lt_prog_compiler_pic='-KPIC'
  7297. lt_prog_compiler_static='-Bstatic'
  7298. ;;
  7299. unicos*)
  7300. lt_prog_compiler_wl='-Wl,'
  7301. lt_prog_compiler_can_build_shared=no
  7302. ;;
  7303. uts4*)
  7304. lt_prog_compiler_pic='-pic'
  7305. lt_prog_compiler_static='-Bstatic'
  7306. ;;
  7307. *)
  7308. lt_prog_compiler_can_build_shared=no
  7309. ;;
  7310. esac
  7311. fi
  7312. case $host_os in
  7313. # For platforms which do not support PIC, -DPIC is meaningless:
  7314. *djgpp*)
  7315. lt_prog_compiler_pic=
  7316. ;;
  7317. *)
  7318. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7319. ;;
  7320. esac
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7322. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7323. if ${lt_cv_prog_compiler_pic+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7327. fi
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7329. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7330. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7331. #
  7332. # Check to make sure the PIC flag actually works.
  7333. #
  7334. if test -n "$lt_prog_compiler_pic"; then
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7336. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7337. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7338. $as_echo_n "(cached) " >&6
  7339. else
  7340. lt_cv_prog_compiler_pic_works=no
  7341. ac_outfile=conftest.$ac_objext
  7342. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7343. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7344. # Insert the option either (1) after the last *FLAGS variable, or
  7345. # (2) before a word containing "conftest.", or (3) at the end.
  7346. # Note that $ac_compile itself does not contain backslashes and begins
  7347. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7348. # The option is referenced via a variable to avoid confusing sed.
  7349. lt_compile=`echo "$ac_compile" | $SED \
  7350. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7351. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7352. -e 's:$: $lt_compiler_flag:'`
  7353. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7354. (eval "$lt_compile" 2>conftest.err)
  7355. ac_status=$?
  7356. cat conftest.err >&5
  7357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. if (exit $ac_status) && test -s "$ac_outfile"; then
  7359. # The compiler can only warn and ignore the option if not recognized
  7360. # So say no if there are warnings other than the usual output.
  7361. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7362. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7363. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7364. lt_cv_prog_compiler_pic_works=yes
  7365. fi
  7366. fi
  7367. $RM conftest*
  7368. fi
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7370. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7371. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7372. case $lt_prog_compiler_pic in
  7373. "" | " "*) ;;
  7374. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7375. esac
  7376. else
  7377. lt_prog_compiler_pic=
  7378. lt_prog_compiler_can_build_shared=no
  7379. fi
  7380. fi
  7381. #
  7382. # Check to make sure the static flag actually works.
  7383. #
  7384. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7386. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7387. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7388. $as_echo_n "(cached) " >&6
  7389. else
  7390. lt_cv_prog_compiler_static_works=no
  7391. save_LDFLAGS="$LDFLAGS"
  7392. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7393. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7394. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7395. # The linker can only warn and ignore the option if not recognized
  7396. # So say no if there are warnings
  7397. if test -s conftest.err; then
  7398. # Append any errors to the config.log.
  7399. cat conftest.err 1>&5
  7400. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7401. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7402. if diff conftest.exp conftest.er2 >/dev/null; then
  7403. lt_cv_prog_compiler_static_works=yes
  7404. fi
  7405. else
  7406. lt_cv_prog_compiler_static_works=yes
  7407. fi
  7408. fi
  7409. $RM -r conftest*
  7410. LDFLAGS="$save_LDFLAGS"
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7413. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7414. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7415. :
  7416. else
  7417. lt_prog_compiler_static=
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7420. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7421. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7422. $as_echo_n "(cached) " >&6
  7423. else
  7424. lt_cv_prog_compiler_c_o=no
  7425. $RM -r conftest 2>/dev/null
  7426. mkdir conftest
  7427. cd conftest
  7428. mkdir out
  7429. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7430. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7431. # Insert the option either (1) after the last *FLAGS variable, or
  7432. # (2) before a word containing "conftest.", or (3) at the end.
  7433. # Note that $ac_compile itself does not contain backslashes and begins
  7434. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7435. lt_compile=`echo "$ac_compile" | $SED \
  7436. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7437. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7438. -e 's:$: $lt_compiler_flag:'`
  7439. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7440. (eval "$lt_compile" 2>out/conftest.err)
  7441. ac_status=$?
  7442. cat out/conftest.err >&5
  7443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7444. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7445. then
  7446. # The compiler can only warn and ignore the option if not recognized
  7447. # So say no if there are warnings
  7448. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7449. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7450. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7451. lt_cv_prog_compiler_c_o=yes
  7452. fi
  7453. fi
  7454. chmod u+w . 2>&5
  7455. $RM conftest*
  7456. # SGI C++ compiler will create directory out/ii_files/ for
  7457. # template instantiation
  7458. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7459. $RM out/* && rmdir out
  7460. cd ..
  7461. $RM -r conftest
  7462. $RM conftest*
  7463. fi
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7465. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7467. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7468. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7469. $as_echo_n "(cached) " >&6
  7470. else
  7471. lt_cv_prog_compiler_c_o=no
  7472. $RM -r conftest 2>/dev/null
  7473. mkdir conftest
  7474. cd conftest
  7475. mkdir out
  7476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7477. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7478. # Insert the option either (1) after the last *FLAGS variable, or
  7479. # (2) before a word containing "conftest.", or (3) at the end.
  7480. # Note that $ac_compile itself does not contain backslashes and begins
  7481. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7482. lt_compile=`echo "$ac_compile" | $SED \
  7483. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7484. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7485. -e 's:$: $lt_compiler_flag:'`
  7486. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7487. (eval "$lt_compile" 2>out/conftest.err)
  7488. ac_status=$?
  7489. cat out/conftest.err >&5
  7490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7491. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7492. then
  7493. # The compiler can only warn and ignore the option if not recognized
  7494. # So say no if there are warnings
  7495. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7496. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7497. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7498. lt_cv_prog_compiler_c_o=yes
  7499. fi
  7500. fi
  7501. chmod u+w . 2>&5
  7502. $RM conftest*
  7503. # SGI C++ compiler will create directory out/ii_files/ for
  7504. # template instantiation
  7505. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7506. $RM out/* && rmdir out
  7507. cd ..
  7508. $RM -r conftest
  7509. $RM conftest*
  7510. fi
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7512. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7513. hard_links="nottested"
  7514. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7515. # do not overwrite the value of need_locks provided by the user
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7517. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7518. hard_links=yes
  7519. $RM conftest*
  7520. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7521. touch conftest.a
  7522. ln conftest.a conftest.b 2>&5 || hard_links=no
  7523. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7525. $as_echo "$hard_links" >&6; }
  7526. if test "$hard_links" = no; then
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7528. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7529. need_locks=warn
  7530. fi
  7531. else
  7532. need_locks=no
  7533. fi
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7535. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7536. runpath_var=
  7537. allow_undefined_flag=
  7538. always_export_symbols=no
  7539. archive_cmds=
  7540. archive_expsym_cmds=
  7541. compiler_needs_object=no
  7542. enable_shared_with_static_runtimes=no
  7543. export_dynamic_flag_spec=
  7544. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7545. hardcode_automatic=no
  7546. hardcode_direct=no
  7547. hardcode_direct_absolute=no
  7548. hardcode_libdir_flag_spec=
  7549. hardcode_libdir_separator=
  7550. hardcode_minus_L=no
  7551. hardcode_shlibpath_var=unsupported
  7552. inherit_rpath=no
  7553. link_all_deplibs=unknown
  7554. module_cmds=
  7555. module_expsym_cmds=
  7556. old_archive_from_new_cmds=
  7557. old_archive_from_expsyms_cmds=
  7558. thread_safe_flag_spec=
  7559. whole_archive_flag_spec=
  7560. # include_expsyms should be a list of space-separated symbols to be *always*
  7561. # included in the symbol list
  7562. include_expsyms=
  7563. # exclude_expsyms can be an extended regexp of symbols to exclude
  7564. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7565. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7566. # as well as any symbol that contains `d'.
  7567. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7568. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7569. # platforms (ab)use it in PIC code, but their linkers get confused if
  7570. # the symbol is explicitly referenced. Since portable code cannot
  7571. # rely on this symbol name, it's probably fine to never include it in
  7572. # preloaded symbol tables.
  7573. # Exclude shared library initialization/finalization symbols.
  7574. extract_expsyms_cmds=
  7575. case $host_os in
  7576. cygwin* | mingw* | pw32* | cegcc*)
  7577. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7578. # When not using gcc, we currently assume that we are using
  7579. # Microsoft Visual C++.
  7580. if test "$GCC" != yes; then
  7581. with_gnu_ld=no
  7582. fi
  7583. ;;
  7584. interix*)
  7585. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7586. with_gnu_ld=yes
  7587. ;;
  7588. openbsd*)
  7589. with_gnu_ld=no
  7590. ;;
  7591. esac
  7592. ld_shlibs=yes
  7593. # On some targets, GNU ld is compatible enough with the native linker
  7594. # that we're better off using the native interface for both.
  7595. lt_use_gnu_ld_interface=no
  7596. if test "$with_gnu_ld" = yes; then
  7597. case $host_os in
  7598. aix*)
  7599. # The AIX port of GNU ld has always aspired to compatibility
  7600. # with the native linker. However, as the warning in the GNU ld
  7601. # block says, versions before 2.19.5* couldn't really create working
  7602. # shared libraries, regardless of the interface used.
  7603. case `$LD -v 2>&1` in
  7604. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7605. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7606. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7607. *)
  7608. lt_use_gnu_ld_interface=yes
  7609. ;;
  7610. esac
  7611. ;;
  7612. *)
  7613. lt_use_gnu_ld_interface=yes
  7614. ;;
  7615. esac
  7616. fi
  7617. if test "$lt_use_gnu_ld_interface" = yes; then
  7618. # If archive_cmds runs LD, not CC, wlarc should be empty
  7619. wlarc='${wl}'
  7620. # Set some defaults for GNU ld with shared library support. These
  7621. # are reset later if shared libraries are not supported. Putting them
  7622. # here allows them to be overridden if necessary.
  7623. runpath_var=LD_RUN_PATH
  7624. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7625. export_dynamic_flag_spec='${wl}--export-dynamic'
  7626. # ancient GNU ld didn't support --whole-archive et. al.
  7627. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7628. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7629. else
  7630. whole_archive_flag_spec=
  7631. fi
  7632. supports_anon_versioning=no
  7633. case `$LD -v 2>&1` in
  7634. *GNU\ gold*) supports_anon_versioning=yes ;;
  7635. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7636. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7637. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7638. *\ 2.11.*) ;; # other 2.11 versions
  7639. *) supports_anon_versioning=yes ;;
  7640. esac
  7641. # See if GNU ld supports shared libraries.
  7642. case $host_os in
  7643. aix[3-9]*)
  7644. # On AIX/PPC, the GNU linker is very broken
  7645. if test "$host_cpu" != ia64; then
  7646. ld_shlibs=no
  7647. cat <<_LT_EOF 1>&2
  7648. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7649. *** to be unable to reliably create shared libraries on AIX.
  7650. *** Therefore, libtool is disabling shared libraries support. If you
  7651. *** really care for shared libraries, you may want to install binutils
  7652. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7653. *** You will then need to restart the configuration process.
  7654. _LT_EOF
  7655. fi
  7656. ;;
  7657. amigaos*)
  7658. case $host_cpu in
  7659. powerpc)
  7660. # see comment about AmigaOS4 .so support
  7661. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7662. archive_expsym_cmds=''
  7663. ;;
  7664. m68k)
  7665. 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)'
  7666. hardcode_libdir_flag_spec='-L$libdir'
  7667. hardcode_minus_L=yes
  7668. ;;
  7669. esac
  7670. ;;
  7671. beos*)
  7672. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7673. allow_undefined_flag=unsupported
  7674. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7675. # support --undefined. This deserves some investigation. FIXME
  7676. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7677. else
  7678. ld_shlibs=no
  7679. fi
  7680. ;;
  7681. cygwin* | mingw* | pw32* | cegcc*)
  7682. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7683. # as there is no search path for DLLs.
  7684. hardcode_libdir_flag_spec='-L$libdir'
  7685. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7686. allow_undefined_flag=unsupported
  7687. always_export_symbols=no
  7688. enable_shared_with_static_runtimes=yes
  7689. 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'
  7690. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7691. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7692. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7693. # If the export-symbols file already is a .def file (1st line
  7694. # is EXPORTS), use it as is; otherwise, prepend...
  7695. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7696. cp $export_symbols $output_objdir/$soname.def;
  7697. else
  7698. echo EXPORTS > $output_objdir/$soname.def;
  7699. cat $export_symbols >> $output_objdir/$soname.def;
  7700. fi~
  7701. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7702. else
  7703. ld_shlibs=no
  7704. fi
  7705. ;;
  7706. haiku*)
  7707. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7708. link_all_deplibs=yes
  7709. ;;
  7710. interix[3-9]*)
  7711. hardcode_direct=no
  7712. hardcode_shlibpath_var=no
  7713. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7714. export_dynamic_flag_spec='${wl}-E'
  7715. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7716. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7717. # default) and relocated if they conflict, which is a slow very memory
  7718. # consuming and fragmenting process. To avoid this, we pick a random,
  7719. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7720. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7721. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7722. 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'
  7723. ;;
  7724. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7725. tmp_diet=no
  7726. if test "$host_os" = linux-dietlibc; then
  7727. case $cc_basename in
  7728. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7729. esac
  7730. fi
  7731. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7732. && test "$tmp_diet" = no
  7733. then
  7734. tmp_addflag=' $pic_flag'
  7735. tmp_sharedflag='-shared'
  7736. case $cc_basename,$host_cpu in
  7737. pgcc*) # Portland Group C compiler
  7738. 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'
  7739. tmp_addflag=' $pic_flag'
  7740. ;;
  7741. pgf77* | pgf90* | pgf95* | pgfortran*)
  7742. # Portland Group f77 and f90 compilers
  7743. 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'
  7744. tmp_addflag=' $pic_flag -Mnomain' ;;
  7745. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7746. tmp_addflag=' -i_dynamic' ;;
  7747. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7748. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7749. ifc* | ifort*) # Intel Fortran compiler
  7750. tmp_addflag=' -nofor_main' ;;
  7751. lf95*) # Lahey Fortran 8.1
  7752. whole_archive_flag_spec=
  7753. tmp_sharedflag='--shared' ;;
  7754. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7755. tmp_sharedflag='-qmkshrobj'
  7756. tmp_addflag= ;;
  7757. nvcc*) # Cuda Compiler Driver 2.2
  7758. 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'
  7759. compiler_needs_object=yes
  7760. ;;
  7761. esac
  7762. case `$CC -V 2>&1 | sed 5q` in
  7763. *Sun\ C*) # Sun C 5.9
  7764. 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'
  7765. compiler_needs_object=yes
  7766. tmp_sharedflag='-G' ;;
  7767. *Sun\ F*) # Sun Fortran 8.3
  7768. tmp_sharedflag='-G' ;;
  7769. esac
  7770. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7771. if test "x$supports_anon_versioning" = xyes; then
  7772. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7773. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7774. echo "local: *; };" >> $output_objdir/$libname.ver~
  7775. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7776. fi
  7777. case $cc_basename in
  7778. xlf* | bgf* | bgxlf* | mpixlf*)
  7779. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7780. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7781. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7782. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7783. if test "x$supports_anon_versioning" = xyes; then
  7784. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7785. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7786. echo "local: *; };" >> $output_objdir/$libname.ver~
  7787. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7788. fi
  7789. ;;
  7790. esac
  7791. else
  7792. ld_shlibs=no
  7793. fi
  7794. ;;
  7795. netbsd*)
  7796. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7797. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7798. wlarc=
  7799. else
  7800. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7801. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7802. fi
  7803. ;;
  7804. solaris*)
  7805. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7806. ld_shlibs=no
  7807. cat <<_LT_EOF 1>&2
  7808. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7809. *** create shared libraries on Solaris systems. Therefore, libtool
  7810. *** is disabling shared libraries support. We urge you to upgrade GNU
  7811. *** binutils to release 2.9.1 or newer. Another option is to modify
  7812. *** your PATH or compiler configuration so that the native linker is
  7813. *** used, and then restart.
  7814. _LT_EOF
  7815. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7816. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7817. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7818. else
  7819. ld_shlibs=no
  7820. fi
  7821. ;;
  7822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7823. case `$LD -v 2>&1` in
  7824. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7825. ld_shlibs=no
  7826. cat <<_LT_EOF 1>&2
  7827. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7828. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7829. *** is disabling shared libraries support. We urge you to upgrade GNU
  7830. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7831. *** your PATH or compiler configuration so that the native linker is
  7832. *** used, and then restart.
  7833. _LT_EOF
  7834. ;;
  7835. *)
  7836. # For security reasons, it is highly recommended that you always
  7837. # use absolute paths for naming shared libraries, and exclude the
  7838. # DT_RUNPATH tag from executables and libraries. But doing so
  7839. # requires that you compile everything twice, which is a pain.
  7840. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7841. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7842. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7843. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7844. else
  7845. ld_shlibs=no
  7846. fi
  7847. ;;
  7848. esac
  7849. ;;
  7850. sunos4*)
  7851. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7852. wlarc=
  7853. hardcode_direct=yes
  7854. hardcode_shlibpath_var=no
  7855. ;;
  7856. *)
  7857. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7858. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7859. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7860. else
  7861. ld_shlibs=no
  7862. fi
  7863. ;;
  7864. esac
  7865. if test "$ld_shlibs" = no; then
  7866. runpath_var=
  7867. hardcode_libdir_flag_spec=
  7868. export_dynamic_flag_spec=
  7869. whole_archive_flag_spec=
  7870. fi
  7871. else
  7872. # PORTME fill in a description of your system's linker (not GNU ld)
  7873. case $host_os in
  7874. aix3*)
  7875. allow_undefined_flag=unsupported
  7876. always_export_symbols=yes
  7877. 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'
  7878. # Note: this linker hardcodes the directories in LIBPATH if there
  7879. # are no directories specified by -L.
  7880. hardcode_minus_L=yes
  7881. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7882. # Neither direct hardcoding nor static linking is supported with a
  7883. # broken collect2.
  7884. hardcode_direct=unsupported
  7885. fi
  7886. ;;
  7887. aix[4-9]*)
  7888. if test "$host_cpu" = ia64; then
  7889. # On IA64, the linker does run time linking by default, so we don't
  7890. # have to do anything special.
  7891. aix_use_runtimelinking=no
  7892. exp_sym_flag='-Bexport'
  7893. no_entry_flag=""
  7894. else
  7895. # If we're using GNU nm, then we don't want the "-C" option.
  7896. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7897. # Also, AIX nm treats weak defined symbols like other global
  7898. # defined symbols, whereas GNU nm marks them as "W".
  7899. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7900. 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'
  7901. else
  7902. 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'
  7903. fi
  7904. aix_use_runtimelinking=no
  7905. # Test if we are trying to use run time linking or normal
  7906. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7907. # need to do runtime linking.
  7908. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7909. for ld_flag in $LDFLAGS; do
  7910. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7911. aix_use_runtimelinking=yes
  7912. break
  7913. fi
  7914. done
  7915. ;;
  7916. esac
  7917. exp_sym_flag='-bexport'
  7918. no_entry_flag='-bnoentry'
  7919. fi
  7920. # When large executables or shared objects are built, AIX ld can
  7921. # have problems creating the table of contents. If linking a library
  7922. # or program results in "error TOC overflow" add -mminimal-toc to
  7923. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7924. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7925. archive_cmds=''
  7926. hardcode_direct=yes
  7927. hardcode_direct_absolute=yes
  7928. hardcode_libdir_separator=':'
  7929. link_all_deplibs=yes
  7930. file_list_spec='${wl}-f,'
  7931. if test "$GCC" = yes; then
  7932. case $host_os in aix4.[012]|aix4.[012].*)
  7933. # We only want to do this on AIX 4.2 and lower, the check
  7934. # below for broken collect2 doesn't work under 4.3+
  7935. collect2name=`${CC} -print-prog-name=collect2`
  7936. if test -f "$collect2name" &&
  7937. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7938. then
  7939. # We have reworked collect2
  7940. :
  7941. else
  7942. # We have old collect2
  7943. hardcode_direct=unsupported
  7944. # It fails to find uninstalled libraries when the uninstalled
  7945. # path is not listed in the libpath. Setting hardcode_minus_L
  7946. # to unsupported forces relinking
  7947. hardcode_minus_L=yes
  7948. hardcode_libdir_flag_spec='-L$libdir'
  7949. hardcode_libdir_separator=
  7950. fi
  7951. ;;
  7952. esac
  7953. shared_flag='-shared'
  7954. if test "$aix_use_runtimelinking" = yes; then
  7955. shared_flag="$shared_flag "'${wl}-G'
  7956. fi
  7957. else
  7958. # not using gcc
  7959. if test "$host_cpu" = ia64; then
  7960. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7961. # chokes on -Wl,-G. The following line is correct:
  7962. shared_flag='-G'
  7963. else
  7964. if test "$aix_use_runtimelinking" = yes; then
  7965. shared_flag='${wl}-G'
  7966. else
  7967. shared_flag='${wl}-bM:SRE'
  7968. fi
  7969. fi
  7970. fi
  7971. export_dynamic_flag_spec='${wl}-bexpall'
  7972. # It seems that -bexpall does not export symbols beginning with
  7973. # underscore (_), so it is better to generate a list of symbols to export.
  7974. always_export_symbols=yes
  7975. if test "$aix_use_runtimelinking" = yes; then
  7976. # Warning - without using the other runtime loading flags (-brtl),
  7977. # -berok will link without error, but may produce a broken library.
  7978. allow_undefined_flag='-berok'
  7979. # Determine the default libpath from the value encoded in an
  7980. # empty executable.
  7981. if test "${lt_cv_aix_libpath+set}" = set; then
  7982. aix_libpath=$lt_cv_aix_libpath
  7983. else
  7984. if ${lt_cv_aix_libpath_+:} false; then :
  7985. $as_echo_n "(cached) " >&6
  7986. else
  7987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7988. /* end confdefs.h. */
  7989. int
  7990. main ()
  7991. {
  7992. ;
  7993. return 0;
  7994. }
  7995. _ACEOF
  7996. if ac_fn_c_try_link "$LINENO"; then :
  7997. lt_aix_libpath_sed='
  7998. /Import File Strings/,/^$/ {
  7999. /^0/ {
  8000. s/^0 *\([^ ]*\) *$/\1/
  8001. p
  8002. }
  8003. }'
  8004. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8005. # Check for a 64-bit object if we didn't find anything.
  8006. if test -z "$lt_cv_aix_libpath_"; then
  8007. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8008. fi
  8009. fi
  8010. rm -f core conftest.err conftest.$ac_objext \
  8011. conftest$ac_exeext conftest.$ac_ext
  8012. if test -z "$lt_cv_aix_libpath_"; then
  8013. lt_cv_aix_libpath_="/usr/lib:/lib"
  8014. fi
  8015. fi
  8016. aix_libpath=$lt_cv_aix_libpath_
  8017. fi
  8018. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8019. 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"
  8020. else
  8021. if test "$host_cpu" = ia64; then
  8022. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8023. allow_undefined_flag="-z nodefs"
  8024. 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"
  8025. else
  8026. # Determine the default libpath from the value encoded in an
  8027. # empty executable.
  8028. if test "${lt_cv_aix_libpath+set}" = set; then
  8029. aix_libpath=$lt_cv_aix_libpath
  8030. else
  8031. if ${lt_cv_aix_libpath_+:} false; then :
  8032. $as_echo_n "(cached) " >&6
  8033. else
  8034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8035. /* end confdefs.h. */
  8036. int
  8037. main ()
  8038. {
  8039. ;
  8040. return 0;
  8041. }
  8042. _ACEOF
  8043. if ac_fn_c_try_link "$LINENO"; then :
  8044. lt_aix_libpath_sed='
  8045. /Import File Strings/,/^$/ {
  8046. /^0/ {
  8047. s/^0 *\([^ ]*\) *$/\1/
  8048. p
  8049. }
  8050. }'
  8051. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8052. # Check for a 64-bit object if we didn't find anything.
  8053. if test -z "$lt_cv_aix_libpath_"; then
  8054. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8055. fi
  8056. fi
  8057. rm -f core conftest.err conftest.$ac_objext \
  8058. conftest$ac_exeext conftest.$ac_ext
  8059. if test -z "$lt_cv_aix_libpath_"; then
  8060. lt_cv_aix_libpath_="/usr/lib:/lib"
  8061. fi
  8062. fi
  8063. aix_libpath=$lt_cv_aix_libpath_
  8064. fi
  8065. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8066. # Warning - without using the other run time loading flags,
  8067. # -berok will link without error, but may produce a broken library.
  8068. no_undefined_flag=' ${wl}-bernotok'
  8069. allow_undefined_flag=' ${wl}-berok'
  8070. if test "$with_gnu_ld" = yes; then
  8071. # We only use this code for GNU lds that support --whole-archive.
  8072. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8073. else
  8074. # Exported symbols can be pulled into shared objects from archives
  8075. whole_archive_flag_spec='$convenience'
  8076. fi
  8077. archive_cmds_need_lc=yes
  8078. # This is similar to how AIX traditionally builds its shared libraries.
  8079. 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'
  8080. fi
  8081. fi
  8082. ;;
  8083. amigaos*)
  8084. case $host_cpu in
  8085. powerpc)
  8086. # see comment about AmigaOS4 .so support
  8087. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8088. archive_expsym_cmds=''
  8089. ;;
  8090. m68k)
  8091. 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)'
  8092. hardcode_libdir_flag_spec='-L$libdir'
  8093. hardcode_minus_L=yes
  8094. ;;
  8095. esac
  8096. ;;
  8097. bsdi[45]*)
  8098. export_dynamic_flag_spec=-rdynamic
  8099. ;;
  8100. cygwin* | mingw* | pw32* | cegcc*)
  8101. # When not using gcc, we currently assume that we are using
  8102. # Microsoft Visual C++.
  8103. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8104. # no search path for DLLs.
  8105. case $cc_basename in
  8106. cl*)
  8107. # Native MSVC
  8108. hardcode_libdir_flag_spec=' '
  8109. allow_undefined_flag=unsupported
  8110. always_export_symbols=yes
  8111. file_list_spec='@'
  8112. # Tell ltmain to make .lib files, not .a files.
  8113. libext=lib
  8114. # Tell ltmain to make .dll files, not .so files.
  8115. shrext_cmds=".dll"
  8116. # FIXME: Setting linknames here is a bad hack.
  8117. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8118. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8119. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8120. else
  8121. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8122. fi~
  8123. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8124. linknames='
  8125. # The linker will not automatically build a static lib if we build a DLL.
  8126. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8127. enable_shared_with_static_runtimes=yes
  8128. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8129. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8130. # Don't use ranlib
  8131. old_postinstall_cmds='chmod 644 $oldlib'
  8132. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8133. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8134. case $lt_outputfile in
  8135. *.exe|*.EXE) ;;
  8136. *)
  8137. lt_outputfile="$lt_outputfile.exe"
  8138. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8139. ;;
  8140. esac~
  8141. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8142. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8143. $RM "$lt_outputfile.manifest";
  8144. fi'
  8145. ;;
  8146. *)
  8147. # Assume MSVC wrapper
  8148. hardcode_libdir_flag_spec=' '
  8149. allow_undefined_flag=unsupported
  8150. # Tell ltmain to make .lib files, not .a files.
  8151. libext=lib
  8152. # Tell ltmain to make .dll files, not .so files.
  8153. shrext_cmds=".dll"
  8154. # FIXME: Setting linknames here is a bad hack.
  8155. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8156. # The linker will automatically build a .lib file if we build a DLL.
  8157. old_archive_from_new_cmds='true'
  8158. # FIXME: Should let the user specify the lib program.
  8159. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8160. enable_shared_with_static_runtimes=yes
  8161. ;;
  8162. esac
  8163. ;;
  8164. darwin* | rhapsody*)
  8165. archive_cmds_need_lc=no
  8166. hardcode_direct=no
  8167. hardcode_automatic=yes
  8168. hardcode_shlibpath_var=unsupported
  8169. if test "$lt_cv_ld_force_load" = "yes"; then
  8170. 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\"`'
  8171. else
  8172. whole_archive_flag_spec=''
  8173. fi
  8174. link_all_deplibs=yes
  8175. allow_undefined_flag="$_lt_dar_allow_undefined"
  8176. case $cc_basename in
  8177. ifort*) _lt_dar_can_shared=yes ;;
  8178. *) _lt_dar_can_shared=$GCC ;;
  8179. esac
  8180. if test "$_lt_dar_can_shared" = "yes"; then
  8181. output_verbose_link_cmd=func_echo_all
  8182. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8183. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8184. 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}"
  8185. 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}"
  8186. else
  8187. ld_shlibs=no
  8188. fi
  8189. ;;
  8190. dgux*)
  8191. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8192. hardcode_libdir_flag_spec='-L$libdir'
  8193. hardcode_shlibpath_var=no
  8194. ;;
  8195. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8196. # support. Future versions do this automatically, but an explicit c++rt0.o
  8197. # does not break anything, and helps significantly (at the cost of a little
  8198. # extra space).
  8199. freebsd2.2*)
  8200. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8201. hardcode_libdir_flag_spec='-R$libdir'
  8202. hardcode_direct=yes
  8203. hardcode_shlibpath_var=no
  8204. ;;
  8205. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8206. freebsd2.*)
  8207. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8208. hardcode_direct=yes
  8209. hardcode_minus_L=yes
  8210. hardcode_shlibpath_var=no
  8211. ;;
  8212. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8213. freebsd* | dragonfly*)
  8214. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8215. hardcode_libdir_flag_spec='-R$libdir'
  8216. hardcode_direct=yes
  8217. hardcode_shlibpath_var=no
  8218. ;;
  8219. hpux9*)
  8220. if test "$GCC" = yes; then
  8221. 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'
  8222. else
  8223. 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'
  8224. fi
  8225. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8226. hardcode_libdir_separator=:
  8227. hardcode_direct=yes
  8228. # hardcode_minus_L: Not really in the search PATH,
  8229. # but as the default location of the library.
  8230. hardcode_minus_L=yes
  8231. export_dynamic_flag_spec='${wl}-E'
  8232. ;;
  8233. hpux10*)
  8234. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8235. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8236. else
  8237. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8238. fi
  8239. if test "$with_gnu_ld" = no; then
  8240. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8241. hardcode_libdir_separator=:
  8242. hardcode_direct=yes
  8243. hardcode_direct_absolute=yes
  8244. export_dynamic_flag_spec='${wl}-E'
  8245. # hardcode_minus_L: Not really in the search PATH,
  8246. # but as the default location of the library.
  8247. hardcode_minus_L=yes
  8248. fi
  8249. ;;
  8250. hpux11*)
  8251. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8252. case $host_cpu in
  8253. hppa*64*)
  8254. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8255. ;;
  8256. ia64*)
  8257. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8258. ;;
  8259. *)
  8260. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8261. ;;
  8262. esac
  8263. else
  8264. case $host_cpu in
  8265. hppa*64*)
  8266. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8267. ;;
  8268. ia64*)
  8269. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8270. ;;
  8271. *)
  8272. # Older versions of the 11.00 compiler do not understand -b yet
  8273. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8275. $as_echo_n "checking if $CC understands -b... " >&6; }
  8276. if ${lt_cv_prog_compiler__b+:} false; then :
  8277. $as_echo_n "(cached) " >&6
  8278. else
  8279. lt_cv_prog_compiler__b=no
  8280. save_LDFLAGS="$LDFLAGS"
  8281. LDFLAGS="$LDFLAGS -b"
  8282. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8283. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8284. # The linker can only warn and ignore the option if not recognized
  8285. # So say no if there are warnings
  8286. if test -s conftest.err; then
  8287. # Append any errors to the config.log.
  8288. cat conftest.err 1>&5
  8289. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8290. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8291. if diff conftest.exp conftest.er2 >/dev/null; then
  8292. lt_cv_prog_compiler__b=yes
  8293. fi
  8294. else
  8295. lt_cv_prog_compiler__b=yes
  8296. fi
  8297. fi
  8298. $RM -r conftest*
  8299. LDFLAGS="$save_LDFLAGS"
  8300. fi
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8302. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8303. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8304. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8305. else
  8306. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8307. fi
  8308. ;;
  8309. esac
  8310. fi
  8311. if test "$with_gnu_ld" = no; then
  8312. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8313. hardcode_libdir_separator=:
  8314. case $host_cpu in
  8315. hppa*64*|ia64*)
  8316. hardcode_direct=no
  8317. hardcode_shlibpath_var=no
  8318. ;;
  8319. *)
  8320. hardcode_direct=yes
  8321. hardcode_direct_absolute=yes
  8322. export_dynamic_flag_spec='${wl}-E'
  8323. # hardcode_minus_L: Not really in the search PATH,
  8324. # but as the default location of the library.
  8325. hardcode_minus_L=yes
  8326. ;;
  8327. esac
  8328. fi
  8329. ;;
  8330. irix5* | irix6* | nonstopux*)
  8331. if test "$GCC" = yes; then
  8332. 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'
  8333. # Try to use the -exported_symbol ld option, if it does not
  8334. # work, assume that -exports_file does not work either and
  8335. # implicitly export all symbols.
  8336. # This should be the same for all languages, so no per-tag cache variable.
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8338. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8339. if ${lt_cv_irix_exported_symbol+:} false; then :
  8340. $as_echo_n "(cached) " >&6
  8341. else
  8342. save_LDFLAGS="$LDFLAGS"
  8343. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8345. /* end confdefs.h. */
  8346. int foo (void) { return 0; }
  8347. _ACEOF
  8348. if ac_fn_c_try_link "$LINENO"; then :
  8349. lt_cv_irix_exported_symbol=yes
  8350. else
  8351. lt_cv_irix_exported_symbol=no
  8352. fi
  8353. rm -f core conftest.err conftest.$ac_objext \
  8354. conftest$ac_exeext conftest.$ac_ext
  8355. LDFLAGS="$save_LDFLAGS"
  8356. fi
  8357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8358. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8359. if test "$lt_cv_irix_exported_symbol" = yes; then
  8360. 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'
  8361. fi
  8362. else
  8363. 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'
  8364. 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'
  8365. fi
  8366. archive_cmds_need_lc='no'
  8367. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8368. hardcode_libdir_separator=:
  8369. inherit_rpath=yes
  8370. link_all_deplibs=yes
  8371. ;;
  8372. netbsd*)
  8373. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8374. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8375. else
  8376. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8377. fi
  8378. hardcode_libdir_flag_spec='-R$libdir'
  8379. hardcode_direct=yes
  8380. hardcode_shlibpath_var=no
  8381. ;;
  8382. newsos6)
  8383. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8384. hardcode_direct=yes
  8385. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8386. hardcode_libdir_separator=:
  8387. hardcode_shlibpath_var=no
  8388. ;;
  8389. *nto* | *qnx*)
  8390. ;;
  8391. openbsd*)
  8392. if test -f /usr/libexec/ld.so; then
  8393. hardcode_direct=yes
  8394. hardcode_shlibpath_var=no
  8395. hardcode_direct_absolute=yes
  8396. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8397. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8398. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8399. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8400. export_dynamic_flag_spec='${wl}-E'
  8401. else
  8402. case $host_os in
  8403. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8404. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8405. hardcode_libdir_flag_spec='-R$libdir'
  8406. ;;
  8407. *)
  8408. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8409. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8410. ;;
  8411. esac
  8412. fi
  8413. else
  8414. ld_shlibs=no
  8415. fi
  8416. ;;
  8417. os2*)
  8418. hardcode_libdir_flag_spec='-L$libdir'
  8419. hardcode_minus_L=yes
  8420. allow_undefined_flag=unsupported
  8421. 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'
  8422. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8423. ;;
  8424. osf3*)
  8425. if test "$GCC" = yes; then
  8426. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8427. 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'
  8428. else
  8429. allow_undefined_flag=' -expect_unresolved \*'
  8430. 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'
  8431. fi
  8432. archive_cmds_need_lc='no'
  8433. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8434. hardcode_libdir_separator=:
  8435. ;;
  8436. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8437. if test "$GCC" = yes; then
  8438. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8439. 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'
  8440. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8441. else
  8442. allow_undefined_flag=' -expect_unresolved \*'
  8443. 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'
  8444. 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~
  8445. $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'
  8446. # Both c and cxx compiler support -rpath directly
  8447. hardcode_libdir_flag_spec='-rpath $libdir'
  8448. fi
  8449. archive_cmds_need_lc='no'
  8450. hardcode_libdir_separator=:
  8451. ;;
  8452. solaris*)
  8453. no_undefined_flag=' -z defs'
  8454. if test "$GCC" = yes; then
  8455. wlarc='${wl}'
  8456. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8457. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8458. $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'
  8459. else
  8460. case `$CC -V 2>&1` in
  8461. *"Compilers 5.0"*)
  8462. wlarc=''
  8463. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8464. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8465. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8466. ;;
  8467. *)
  8468. wlarc='${wl}'
  8469. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8471. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8472. ;;
  8473. esac
  8474. fi
  8475. hardcode_libdir_flag_spec='-R$libdir'
  8476. hardcode_shlibpath_var=no
  8477. case $host_os in
  8478. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8479. *)
  8480. # The compiler driver will combine and reorder linker options,
  8481. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8482. # but is careful enough not to reorder.
  8483. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8484. if test "$GCC" = yes; then
  8485. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8486. else
  8487. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8488. fi
  8489. ;;
  8490. esac
  8491. link_all_deplibs=yes
  8492. ;;
  8493. sunos4*)
  8494. if test "x$host_vendor" = xsequent; then
  8495. # Use $CC to link under sequent, because it throws in some extra .o
  8496. # files that make .init and .fini sections work.
  8497. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8498. else
  8499. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8500. fi
  8501. hardcode_libdir_flag_spec='-L$libdir'
  8502. hardcode_direct=yes
  8503. hardcode_minus_L=yes
  8504. hardcode_shlibpath_var=no
  8505. ;;
  8506. sysv4)
  8507. case $host_vendor in
  8508. sni)
  8509. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8510. hardcode_direct=yes # is this really true???
  8511. ;;
  8512. siemens)
  8513. ## LD is ld it makes a PLAMLIB
  8514. ## CC just makes a GrossModule.
  8515. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8516. reload_cmds='$CC -r -o $output$reload_objs'
  8517. hardcode_direct=no
  8518. ;;
  8519. motorola)
  8520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8521. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8522. ;;
  8523. esac
  8524. runpath_var='LD_RUN_PATH'
  8525. hardcode_shlibpath_var=no
  8526. ;;
  8527. sysv4.3*)
  8528. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8529. hardcode_shlibpath_var=no
  8530. export_dynamic_flag_spec='-Bexport'
  8531. ;;
  8532. sysv4*MP*)
  8533. if test -d /usr/nec; then
  8534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8535. hardcode_shlibpath_var=no
  8536. runpath_var=LD_RUN_PATH
  8537. hardcode_runpath_var=yes
  8538. ld_shlibs=yes
  8539. fi
  8540. ;;
  8541. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8542. no_undefined_flag='${wl}-z,text'
  8543. archive_cmds_need_lc=no
  8544. hardcode_shlibpath_var=no
  8545. runpath_var='LD_RUN_PATH'
  8546. if test "$GCC" = yes; then
  8547. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8548. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8549. else
  8550. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8551. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8552. fi
  8553. ;;
  8554. sysv5* | sco3.2v5* | sco5v6*)
  8555. # Note: We can NOT use -z defs as we might desire, because we do not
  8556. # link with -lc, and that would cause any symbols used from libc to
  8557. # always be unresolved, which means just about no library would
  8558. # ever link correctly. If we're not using GNU ld we use -z text
  8559. # though, which does catch some bad symbols but isn't as heavy-handed
  8560. # as -z defs.
  8561. no_undefined_flag='${wl}-z,text'
  8562. allow_undefined_flag='${wl}-z,nodefs'
  8563. archive_cmds_need_lc=no
  8564. hardcode_shlibpath_var=no
  8565. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8566. hardcode_libdir_separator=':'
  8567. link_all_deplibs=yes
  8568. export_dynamic_flag_spec='${wl}-Bexport'
  8569. runpath_var='LD_RUN_PATH'
  8570. if test "$GCC" = yes; then
  8571. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8572. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8573. else
  8574. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8575. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8576. fi
  8577. ;;
  8578. uts4*)
  8579. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8580. hardcode_libdir_flag_spec='-L$libdir'
  8581. hardcode_shlibpath_var=no
  8582. ;;
  8583. *)
  8584. ld_shlibs=no
  8585. ;;
  8586. esac
  8587. if test x$host_vendor = xsni; then
  8588. case $host in
  8589. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8590. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8591. ;;
  8592. esac
  8593. fi
  8594. fi
  8595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8596. $as_echo "$ld_shlibs" >&6; }
  8597. test "$ld_shlibs" = no && can_build_shared=no
  8598. with_gnu_ld=$with_gnu_ld
  8599. #
  8600. # Do we need to explicitly link libc?
  8601. #
  8602. case "x$archive_cmds_need_lc" in
  8603. x|xyes)
  8604. # Assume -lc should be added
  8605. archive_cmds_need_lc=yes
  8606. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8607. case $archive_cmds in
  8608. *'~'*)
  8609. # FIXME: we may have to deal with multi-command sequences.
  8610. ;;
  8611. '$CC '*)
  8612. # Test whether the compiler implicitly links with -lc since on some
  8613. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8614. # to ld, don't add -lc before -lgcc.
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8616. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8617. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8618. $as_echo_n "(cached) " >&6
  8619. else
  8620. $RM conftest*
  8621. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8622. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8623. (eval $ac_compile) 2>&5
  8624. ac_status=$?
  8625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8626. test $ac_status = 0; } 2>conftest.err; then
  8627. soname=conftest
  8628. lib=conftest
  8629. libobjs=conftest.$ac_objext
  8630. deplibs=
  8631. wl=$lt_prog_compiler_wl
  8632. pic_flag=$lt_prog_compiler_pic
  8633. compiler_flags=-v
  8634. linker_flags=-v
  8635. verstring=
  8636. output_objdir=.
  8637. libname=conftest
  8638. lt_save_allow_undefined_flag=$allow_undefined_flag
  8639. allow_undefined_flag=
  8640. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8641. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8642. ac_status=$?
  8643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8644. test $ac_status = 0; }
  8645. then
  8646. lt_cv_archive_cmds_need_lc=no
  8647. else
  8648. lt_cv_archive_cmds_need_lc=yes
  8649. fi
  8650. allow_undefined_flag=$lt_save_allow_undefined_flag
  8651. else
  8652. cat conftest.err 1>&5
  8653. fi
  8654. $RM conftest*
  8655. fi
  8656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8657. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8658. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8659. ;;
  8660. esac
  8661. fi
  8662. ;;
  8663. esac
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8665. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8666. if test "$GCC" = yes; then
  8667. case $host_os in
  8668. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8669. *) lt_awk_arg="/^libraries:/" ;;
  8670. esac
  8671. case $host_os in
  8672. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8673. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8674. esac
  8675. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8676. case $lt_search_path_spec in
  8677. *\;*)
  8678. # if the path contains ";" then we assume it to be the separator
  8679. # otherwise default to the standard path separator (i.e. ":") - it is
  8680. # assumed that no part of a normal pathname contains ";" but that should
  8681. # okay in the real world where ";" in dirpaths is itself problematic.
  8682. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8683. ;;
  8684. *)
  8685. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8686. ;;
  8687. esac
  8688. # Ok, now we have the path, separated by spaces, we can step through it
  8689. # and add multilib dir if necessary...
  8690. lt_tmp_lt_search_path_spec=
  8691. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8692. # ...but if some path already ends with the multilib dir we assume
  8693. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8694. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8695. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8696. lt_multi_os_dir=
  8697. ;;
  8698. esac
  8699. for lt_sys_path in $lt_search_path_spec; do
  8700. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8701. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8702. elif test -n "$lt_multi_os_dir"; then
  8703. test -d "$lt_sys_path" && \
  8704. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8705. fi
  8706. done
  8707. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8708. BEGIN {RS=" "; FS="/|\n";} {
  8709. lt_foo="";
  8710. lt_count=0;
  8711. for (lt_i = NF; lt_i > 0; lt_i--) {
  8712. if ($lt_i != "" && $lt_i != ".") {
  8713. if ($lt_i == "..") {
  8714. lt_count++;
  8715. } else {
  8716. if (lt_count == 0) {
  8717. lt_foo="/" $lt_i lt_foo;
  8718. } else {
  8719. lt_count--;
  8720. }
  8721. }
  8722. }
  8723. }
  8724. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8725. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8726. }'`
  8727. # AWK program above erroneously prepends '/' to C:/dos/paths
  8728. # for these hosts.
  8729. case $host_os in
  8730. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8731. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8732. esac
  8733. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8734. else
  8735. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8736. fi
  8737. library_names_spec=
  8738. libname_spec='lib$name'
  8739. soname_spec=
  8740. shrext_cmds=".so"
  8741. postinstall_cmds=
  8742. postuninstall_cmds=
  8743. finish_cmds=
  8744. finish_eval=
  8745. shlibpath_var=
  8746. shlibpath_overrides_runpath=unknown
  8747. version_type=none
  8748. dynamic_linker="$host_os ld.so"
  8749. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8750. need_lib_prefix=unknown
  8751. hardcode_into_libs=no
  8752. # when you set need_version to no, make sure it does not cause -set_version
  8753. # flags to be left without arguments
  8754. need_version=unknown
  8755. case $host_os in
  8756. aix3*)
  8757. version_type=linux # correct to gnu/linux during the next big refactor
  8758. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8759. shlibpath_var=LIBPATH
  8760. # AIX 3 has no versioning support, so we append a major version to the name.
  8761. soname_spec='${libname}${release}${shared_ext}$major'
  8762. ;;
  8763. aix[4-9]*)
  8764. version_type=linux # correct to gnu/linux during the next big refactor
  8765. need_lib_prefix=no
  8766. need_version=no
  8767. hardcode_into_libs=yes
  8768. if test "$host_cpu" = ia64; then
  8769. # AIX 5 supports IA64
  8770. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8771. shlibpath_var=LD_LIBRARY_PATH
  8772. else
  8773. # With GCC up to 2.95.x, collect2 would create an import file
  8774. # for dependence libraries. The import file would start with
  8775. # the line `#! .'. This would cause the generated library to
  8776. # depend on `.', always an invalid library. This was fixed in
  8777. # development snapshots of GCC prior to 3.0.
  8778. case $host_os in
  8779. aix4 | aix4.[01] | aix4.[01].*)
  8780. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8781. echo ' yes '
  8782. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8783. :
  8784. else
  8785. can_build_shared=no
  8786. fi
  8787. ;;
  8788. esac
  8789. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8790. # soname into executable. Probably we can add versioning support to
  8791. # collect2, so additional links can be useful in future.
  8792. if test "$aix_use_runtimelinking" = yes; then
  8793. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8794. # instead of lib<name>.a to let people know that these are not
  8795. # typical AIX shared libraries.
  8796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8797. else
  8798. # We preserve .a as extension for shared libraries through AIX4.2
  8799. # and later when we are not doing run time linking.
  8800. library_names_spec='${libname}${release}.a $libname.a'
  8801. soname_spec='${libname}${release}${shared_ext}$major'
  8802. fi
  8803. shlibpath_var=LIBPATH
  8804. fi
  8805. ;;
  8806. amigaos*)
  8807. case $host_cpu in
  8808. powerpc)
  8809. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8810. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8812. ;;
  8813. m68k)
  8814. library_names_spec='$libname.ixlibrary $libname.a'
  8815. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8816. 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'
  8817. ;;
  8818. esac
  8819. ;;
  8820. beos*)
  8821. library_names_spec='${libname}${shared_ext}'
  8822. dynamic_linker="$host_os ld.so"
  8823. shlibpath_var=LIBRARY_PATH
  8824. ;;
  8825. bsdi[45]*)
  8826. version_type=linux # correct to gnu/linux during the next big refactor
  8827. need_version=no
  8828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8829. soname_spec='${libname}${release}${shared_ext}$major'
  8830. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8831. shlibpath_var=LD_LIBRARY_PATH
  8832. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8833. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8834. # the default ld.so.conf also contains /usr/contrib/lib and
  8835. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8836. # libtool to hard-code these into programs
  8837. ;;
  8838. cygwin* | mingw* | pw32* | cegcc*)
  8839. version_type=windows
  8840. shrext_cmds=".dll"
  8841. need_version=no
  8842. need_lib_prefix=no
  8843. case $GCC,$cc_basename in
  8844. yes,*)
  8845. # gcc
  8846. library_names_spec='$libname.dll.a'
  8847. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8848. postinstall_cmds='base_file=`basename \${file}`~
  8849. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8850. dldir=$destdir/`dirname \$dlpath`~
  8851. test -d \$dldir || mkdir -p \$dldir~
  8852. $install_prog $dir/$dlname \$dldir/$dlname~
  8853. chmod a+x \$dldir/$dlname~
  8854. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8855. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8856. fi'
  8857. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8858. dlpath=$dir/\$dldll~
  8859. $RM \$dlpath'
  8860. shlibpath_overrides_runpath=yes
  8861. case $host_os in
  8862. cygwin*)
  8863. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8864. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8865. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8866. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8867. ;;
  8868. mingw* | cegcc*)
  8869. # MinGW DLLs use traditional 'lib' prefix
  8870. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8871. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8872. ;;
  8873. pw32*)
  8874. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8875. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8876. ;;
  8877. esac
  8878. dynamic_linker='Win32 ld.exe'
  8879. ;;
  8880. *,cl*)
  8881. # Native MSVC
  8882. libname_spec='$name'
  8883. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8884. library_names_spec='${libname}.dll.lib'
  8885. case $build_os in
  8886. mingw*)
  8887. sys_lib_search_path_spec=
  8888. lt_save_ifs=$IFS
  8889. IFS=';'
  8890. for lt_path in $LIB
  8891. do
  8892. IFS=$lt_save_ifs
  8893. # Let DOS variable expansion print the short 8.3 style file name.
  8894. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8895. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8896. done
  8897. IFS=$lt_save_ifs
  8898. # Convert to MSYS style.
  8899. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8900. ;;
  8901. cygwin*)
  8902. # Convert to unix form, then to dos form, then back to unix form
  8903. # but this time dos style (no spaces!) so that the unix form looks
  8904. # like /cygdrive/c/PROGRA~1:/cygdr...
  8905. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8906. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8907. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8908. ;;
  8909. *)
  8910. sys_lib_search_path_spec="$LIB"
  8911. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8912. # It is most probably a Windows format PATH.
  8913. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8914. else
  8915. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8916. fi
  8917. # FIXME: find the short name or the path components, as spaces are
  8918. # common. (e.g. "Program Files" -> "PROGRA~1")
  8919. ;;
  8920. esac
  8921. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8922. postinstall_cmds='base_file=`basename \${file}`~
  8923. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8924. dldir=$destdir/`dirname \$dlpath`~
  8925. test -d \$dldir || mkdir -p \$dldir~
  8926. $install_prog $dir/$dlname \$dldir/$dlname'
  8927. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8928. dlpath=$dir/\$dldll~
  8929. $RM \$dlpath'
  8930. shlibpath_overrides_runpath=yes
  8931. dynamic_linker='Win32 link.exe'
  8932. ;;
  8933. *)
  8934. # Assume MSVC wrapper
  8935. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8936. dynamic_linker='Win32 ld.exe'
  8937. ;;
  8938. esac
  8939. # FIXME: first we should search . and the directory the executable is in
  8940. shlibpath_var=PATH
  8941. ;;
  8942. darwin* | rhapsody*)
  8943. dynamic_linker="$host_os dyld"
  8944. version_type=darwin
  8945. need_lib_prefix=no
  8946. need_version=no
  8947. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8948. soname_spec='${libname}${release}${major}$shared_ext'
  8949. shlibpath_overrides_runpath=yes
  8950. shlibpath_var=DYLD_LIBRARY_PATH
  8951. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8952. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8953. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8954. ;;
  8955. dgux*)
  8956. version_type=linux # correct to gnu/linux during the next big refactor
  8957. need_lib_prefix=no
  8958. need_version=no
  8959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8960. soname_spec='${libname}${release}${shared_ext}$major'
  8961. shlibpath_var=LD_LIBRARY_PATH
  8962. ;;
  8963. freebsd* | dragonfly*)
  8964. # DragonFly does not have aout. When/if they implement a new
  8965. # versioning mechanism, adjust this.
  8966. if test -x /usr/bin/objformat; then
  8967. objformat=`/usr/bin/objformat`
  8968. else
  8969. case $host_os in
  8970. freebsd[23].*) objformat=aout ;;
  8971. *) objformat=elf ;;
  8972. esac
  8973. fi
  8974. version_type=freebsd-$objformat
  8975. case $version_type in
  8976. freebsd-elf*)
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8978. need_version=no
  8979. need_lib_prefix=no
  8980. ;;
  8981. freebsd-*)
  8982. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8983. need_version=yes
  8984. ;;
  8985. esac
  8986. shlibpath_var=LD_LIBRARY_PATH
  8987. case $host_os in
  8988. freebsd2.*)
  8989. shlibpath_overrides_runpath=yes
  8990. ;;
  8991. freebsd3.[01]* | freebsdelf3.[01]*)
  8992. shlibpath_overrides_runpath=yes
  8993. hardcode_into_libs=yes
  8994. ;;
  8995. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8996. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8997. shlibpath_overrides_runpath=no
  8998. hardcode_into_libs=yes
  8999. ;;
  9000. *) # from 4.6 on, and DragonFly
  9001. shlibpath_overrides_runpath=yes
  9002. hardcode_into_libs=yes
  9003. ;;
  9004. esac
  9005. ;;
  9006. gnu*)
  9007. version_type=linux # correct to gnu/linux during the next big refactor
  9008. need_lib_prefix=no
  9009. need_version=no
  9010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9011. soname_spec='${libname}${release}${shared_ext}$major'
  9012. shlibpath_var=LD_LIBRARY_PATH
  9013. shlibpath_overrides_runpath=no
  9014. hardcode_into_libs=yes
  9015. ;;
  9016. haiku*)
  9017. version_type=linux # correct to gnu/linux during the next big refactor
  9018. need_lib_prefix=no
  9019. need_version=no
  9020. dynamic_linker="$host_os runtime_loader"
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9022. soname_spec='${libname}${release}${shared_ext}$major'
  9023. shlibpath_var=LIBRARY_PATH
  9024. shlibpath_overrides_runpath=yes
  9025. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9026. hardcode_into_libs=yes
  9027. ;;
  9028. hpux9* | hpux10* | hpux11*)
  9029. # Give a soname corresponding to the major version so that dld.sl refuses to
  9030. # link against other versions.
  9031. version_type=sunos
  9032. need_lib_prefix=no
  9033. need_version=no
  9034. case $host_cpu in
  9035. ia64*)
  9036. shrext_cmds='.so'
  9037. hardcode_into_libs=yes
  9038. dynamic_linker="$host_os dld.so"
  9039. shlibpath_var=LD_LIBRARY_PATH
  9040. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9042. soname_spec='${libname}${release}${shared_ext}$major'
  9043. if test "X$HPUX_IA64_MODE" = X32; then
  9044. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9045. else
  9046. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9047. fi
  9048. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9049. ;;
  9050. hppa*64*)
  9051. shrext_cmds='.sl'
  9052. hardcode_into_libs=yes
  9053. dynamic_linker="$host_os dld.sl"
  9054. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9055. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9057. soname_spec='${libname}${release}${shared_ext}$major'
  9058. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9059. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9060. ;;
  9061. *)
  9062. shrext_cmds='.sl'
  9063. dynamic_linker="$host_os dld.sl"
  9064. shlibpath_var=SHLIB_PATH
  9065. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9067. soname_spec='${libname}${release}${shared_ext}$major'
  9068. ;;
  9069. esac
  9070. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9071. postinstall_cmds='chmod 555 $lib'
  9072. # or fails outright, so override atomically:
  9073. install_override_mode=555
  9074. ;;
  9075. interix[3-9]*)
  9076. version_type=linux # correct to gnu/linux during the next big refactor
  9077. need_lib_prefix=no
  9078. need_version=no
  9079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9080. soname_spec='${libname}${release}${shared_ext}$major'
  9081. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9082. shlibpath_var=LD_LIBRARY_PATH
  9083. shlibpath_overrides_runpath=no
  9084. hardcode_into_libs=yes
  9085. ;;
  9086. irix5* | irix6* | nonstopux*)
  9087. case $host_os in
  9088. nonstopux*) version_type=nonstopux ;;
  9089. *)
  9090. if test "$lt_cv_prog_gnu_ld" = yes; then
  9091. version_type=linux # correct to gnu/linux during the next big refactor
  9092. else
  9093. version_type=irix
  9094. fi ;;
  9095. esac
  9096. need_lib_prefix=no
  9097. need_version=no
  9098. soname_spec='${libname}${release}${shared_ext}$major'
  9099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9100. case $host_os in
  9101. irix5* | nonstopux*)
  9102. libsuff= shlibsuff=
  9103. ;;
  9104. *)
  9105. case $LD in # libtool.m4 will add one of these switches to LD
  9106. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9107. libsuff= shlibsuff= libmagic=32-bit;;
  9108. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9109. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9110. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9111. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9112. *) libsuff= shlibsuff= libmagic=never-match;;
  9113. esac
  9114. ;;
  9115. esac
  9116. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9117. shlibpath_overrides_runpath=no
  9118. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9119. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9120. hardcode_into_libs=yes
  9121. ;;
  9122. # No shared lib support for Linux oldld, aout, or coff.
  9123. linux*oldld* | linux*aout* | linux*coff*)
  9124. dynamic_linker=no
  9125. ;;
  9126. # This must be glibc/ELF.
  9127. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9128. version_type=linux # correct to gnu/linux during the next big refactor
  9129. need_lib_prefix=no
  9130. need_version=no
  9131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9132. soname_spec='${libname}${release}${shared_ext}$major'
  9133. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9134. shlibpath_var=LD_LIBRARY_PATH
  9135. shlibpath_overrides_runpath=no
  9136. # Some binutils ld are patched to set DT_RUNPATH
  9137. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9138. $as_echo_n "(cached) " >&6
  9139. else
  9140. lt_cv_shlibpath_overrides_runpath=no
  9141. save_LDFLAGS=$LDFLAGS
  9142. save_libdir=$libdir
  9143. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9144. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9146. /* end confdefs.h. */
  9147. int
  9148. main ()
  9149. {
  9150. ;
  9151. return 0;
  9152. }
  9153. _ACEOF
  9154. if ac_fn_c_try_link "$LINENO"; then :
  9155. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9156. lt_cv_shlibpath_overrides_runpath=yes
  9157. fi
  9158. fi
  9159. rm -f core conftest.err conftest.$ac_objext \
  9160. conftest$ac_exeext conftest.$ac_ext
  9161. LDFLAGS=$save_LDFLAGS
  9162. libdir=$save_libdir
  9163. fi
  9164. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9165. # This implies no fast_install, which is unacceptable.
  9166. # Some rework will be needed to allow for fast_install
  9167. # before this can be enabled.
  9168. hardcode_into_libs=yes
  9169. # Append ld.so.conf contents to the search path
  9170. if test -f /etc/ld.so.conf; then
  9171. 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' ' '`
  9172. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9173. fi
  9174. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9175. # powerpc, because MkLinux only supported shared libraries with the
  9176. # GNU dynamic linker. Since this was broken with cross compilers,
  9177. # most powerpc-linux boxes support dynamic linking these days and
  9178. # people can always --disable-shared, the test was removed, and we
  9179. # assume the GNU/Linux dynamic linker is in use.
  9180. dynamic_linker='GNU/Linux ld.so'
  9181. ;;
  9182. netbsd*)
  9183. version_type=sunos
  9184. need_lib_prefix=no
  9185. need_version=no
  9186. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9188. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9189. dynamic_linker='NetBSD (a.out) ld.so'
  9190. else
  9191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9192. soname_spec='${libname}${release}${shared_ext}$major'
  9193. dynamic_linker='NetBSD ld.elf_so'
  9194. fi
  9195. shlibpath_var=LD_LIBRARY_PATH
  9196. shlibpath_overrides_runpath=yes
  9197. hardcode_into_libs=yes
  9198. ;;
  9199. newsos6)
  9200. version_type=linux # correct to gnu/linux during the next big refactor
  9201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. shlibpath_overrides_runpath=yes
  9204. ;;
  9205. *nto* | *qnx*)
  9206. version_type=qnx
  9207. need_lib_prefix=no
  9208. need_version=no
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9210. soname_spec='${libname}${release}${shared_ext}$major'
  9211. shlibpath_var=LD_LIBRARY_PATH
  9212. shlibpath_overrides_runpath=no
  9213. hardcode_into_libs=yes
  9214. dynamic_linker='ldqnx.so'
  9215. ;;
  9216. openbsd*)
  9217. version_type=sunos
  9218. sys_lib_dlsearch_path_spec="/usr/lib"
  9219. need_lib_prefix=no
  9220. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9221. case $host_os in
  9222. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9223. *) need_version=no ;;
  9224. esac
  9225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9226. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9227. shlibpath_var=LD_LIBRARY_PATH
  9228. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9229. case $host_os in
  9230. openbsd2.[89] | openbsd2.[89].*)
  9231. shlibpath_overrides_runpath=no
  9232. ;;
  9233. *)
  9234. shlibpath_overrides_runpath=yes
  9235. ;;
  9236. esac
  9237. else
  9238. shlibpath_overrides_runpath=yes
  9239. fi
  9240. ;;
  9241. os2*)
  9242. libname_spec='$name'
  9243. shrext_cmds=".dll"
  9244. need_lib_prefix=no
  9245. library_names_spec='$libname${shared_ext} $libname.a'
  9246. dynamic_linker='OS/2 ld.exe'
  9247. shlibpath_var=LIBPATH
  9248. ;;
  9249. osf3* | osf4* | osf5*)
  9250. version_type=osf
  9251. need_lib_prefix=no
  9252. need_version=no
  9253. soname_spec='${libname}${release}${shared_ext}$major'
  9254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9255. shlibpath_var=LD_LIBRARY_PATH
  9256. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9257. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9258. ;;
  9259. rdos*)
  9260. dynamic_linker=no
  9261. ;;
  9262. solaris*)
  9263. version_type=linux # correct to gnu/linux during the next big refactor
  9264. need_lib_prefix=no
  9265. need_version=no
  9266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9267. soname_spec='${libname}${release}${shared_ext}$major'
  9268. shlibpath_var=LD_LIBRARY_PATH
  9269. shlibpath_overrides_runpath=yes
  9270. hardcode_into_libs=yes
  9271. # ldd complains unless libraries are executable
  9272. postinstall_cmds='chmod +x $lib'
  9273. ;;
  9274. sunos4*)
  9275. version_type=sunos
  9276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9277. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9278. shlibpath_var=LD_LIBRARY_PATH
  9279. shlibpath_overrides_runpath=yes
  9280. if test "$with_gnu_ld" = yes; then
  9281. need_lib_prefix=no
  9282. fi
  9283. need_version=yes
  9284. ;;
  9285. sysv4 | sysv4.3*)
  9286. version_type=linux # correct to gnu/linux during the next big refactor
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9288. soname_spec='${libname}${release}${shared_ext}$major'
  9289. shlibpath_var=LD_LIBRARY_PATH
  9290. case $host_vendor in
  9291. sni)
  9292. shlibpath_overrides_runpath=no
  9293. need_lib_prefix=no
  9294. runpath_var=LD_RUN_PATH
  9295. ;;
  9296. siemens)
  9297. need_lib_prefix=no
  9298. ;;
  9299. motorola)
  9300. need_lib_prefix=no
  9301. need_version=no
  9302. shlibpath_overrides_runpath=no
  9303. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9304. ;;
  9305. esac
  9306. ;;
  9307. sysv4*MP*)
  9308. if test -d /usr/nec ;then
  9309. version_type=linux # correct to gnu/linux during the next big refactor
  9310. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9311. soname_spec='$libname${shared_ext}.$major'
  9312. shlibpath_var=LD_LIBRARY_PATH
  9313. fi
  9314. ;;
  9315. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9316. version_type=freebsd-elf
  9317. need_lib_prefix=no
  9318. need_version=no
  9319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9320. soname_spec='${libname}${release}${shared_ext}$major'
  9321. shlibpath_var=LD_LIBRARY_PATH
  9322. shlibpath_overrides_runpath=yes
  9323. hardcode_into_libs=yes
  9324. if test "$with_gnu_ld" = yes; then
  9325. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9326. else
  9327. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9328. case $host_os in
  9329. sco3.2v5*)
  9330. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9331. ;;
  9332. esac
  9333. fi
  9334. sys_lib_dlsearch_path_spec='/usr/lib'
  9335. ;;
  9336. tpf*)
  9337. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9338. version_type=linux # correct to gnu/linux during the next big refactor
  9339. need_lib_prefix=no
  9340. need_version=no
  9341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9342. shlibpath_var=LD_LIBRARY_PATH
  9343. shlibpath_overrides_runpath=no
  9344. hardcode_into_libs=yes
  9345. ;;
  9346. uts4*)
  9347. version_type=linux # correct to gnu/linux during the next big refactor
  9348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9349. soname_spec='${libname}${release}${shared_ext}$major'
  9350. shlibpath_var=LD_LIBRARY_PATH
  9351. ;;
  9352. *)
  9353. dynamic_linker=no
  9354. ;;
  9355. esac
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9357. $as_echo "$dynamic_linker" >&6; }
  9358. test "$dynamic_linker" = no && can_build_shared=no
  9359. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9360. if test "$GCC" = yes; then
  9361. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9362. fi
  9363. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9364. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9365. fi
  9366. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9367. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9368. fi
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9370. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9371. hardcode_action=
  9372. if test -n "$hardcode_libdir_flag_spec" ||
  9373. test -n "$runpath_var" ||
  9374. test "X$hardcode_automatic" = "Xyes" ; then
  9375. # We can hardcode non-existent directories.
  9376. if test "$hardcode_direct" != no &&
  9377. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9378. # have to relink, otherwise we might link with an installed library
  9379. # when we should be linking with a yet-to-be-installed one
  9380. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9381. test "$hardcode_minus_L" != no; then
  9382. # Linking always hardcodes the temporary library directory.
  9383. hardcode_action=relink
  9384. else
  9385. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9386. hardcode_action=immediate
  9387. fi
  9388. else
  9389. # We cannot hardcode anything, or else we can only hardcode existing
  9390. # directories.
  9391. hardcode_action=unsupported
  9392. fi
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9394. $as_echo "$hardcode_action" >&6; }
  9395. if test "$hardcode_action" = relink ||
  9396. test "$inherit_rpath" = yes; then
  9397. # Fast installation is not supported
  9398. enable_fast_install=no
  9399. elif test "$shlibpath_overrides_runpath" = yes ||
  9400. test "$enable_shared" = no; then
  9401. # Fast installation is not necessary
  9402. enable_fast_install=needless
  9403. fi
  9404. if test "x$enable_dlopen" != xyes; then
  9405. enable_dlopen=unknown
  9406. enable_dlopen_self=unknown
  9407. enable_dlopen_self_static=unknown
  9408. else
  9409. lt_cv_dlopen=no
  9410. lt_cv_dlopen_libs=
  9411. case $host_os in
  9412. beos*)
  9413. lt_cv_dlopen="load_add_on"
  9414. lt_cv_dlopen_libs=
  9415. lt_cv_dlopen_self=yes
  9416. ;;
  9417. mingw* | pw32* | cegcc*)
  9418. lt_cv_dlopen="LoadLibrary"
  9419. lt_cv_dlopen_libs=
  9420. ;;
  9421. cygwin*)
  9422. lt_cv_dlopen="dlopen"
  9423. lt_cv_dlopen_libs=
  9424. ;;
  9425. darwin*)
  9426. # if libdl is installed we need to link against it
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9428. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9429. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9430. $as_echo_n "(cached) " >&6
  9431. else
  9432. ac_check_lib_save_LIBS=$LIBS
  9433. LIBS="-ldl $LIBS"
  9434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9435. /* end confdefs.h. */
  9436. /* Override any GCC internal prototype to avoid an error.
  9437. Use char because int might match the return type of a GCC
  9438. builtin and then its argument prototype would still apply. */
  9439. #ifdef __cplusplus
  9440. extern "C"
  9441. #endif
  9442. char dlopen ();
  9443. int
  9444. main ()
  9445. {
  9446. return dlopen ();
  9447. ;
  9448. return 0;
  9449. }
  9450. _ACEOF
  9451. if ac_fn_c_try_link "$LINENO"; then :
  9452. ac_cv_lib_dl_dlopen=yes
  9453. else
  9454. ac_cv_lib_dl_dlopen=no
  9455. fi
  9456. rm -f core conftest.err conftest.$ac_objext \
  9457. conftest$ac_exeext conftest.$ac_ext
  9458. LIBS=$ac_check_lib_save_LIBS
  9459. fi
  9460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9461. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9462. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9463. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9464. else
  9465. lt_cv_dlopen="dyld"
  9466. lt_cv_dlopen_libs=
  9467. lt_cv_dlopen_self=yes
  9468. fi
  9469. ;;
  9470. *)
  9471. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9472. if test "x$ac_cv_func_shl_load" = xyes; then :
  9473. lt_cv_dlopen="shl_load"
  9474. else
  9475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9476. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9477. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9478. $as_echo_n "(cached) " >&6
  9479. else
  9480. ac_check_lib_save_LIBS=$LIBS
  9481. LIBS="-ldld $LIBS"
  9482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9483. /* end confdefs.h. */
  9484. /* Override any GCC internal prototype to avoid an error.
  9485. Use char because int might match the return type of a GCC
  9486. builtin and then its argument prototype would still apply. */
  9487. #ifdef __cplusplus
  9488. extern "C"
  9489. #endif
  9490. char shl_load ();
  9491. int
  9492. main ()
  9493. {
  9494. return shl_load ();
  9495. ;
  9496. return 0;
  9497. }
  9498. _ACEOF
  9499. if ac_fn_c_try_link "$LINENO"; then :
  9500. ac_cv_lib_dld_shl_load=yes
  9501. else
  9502. ac_cv_lib_dld_shl_load=no
  9503. fi
  9504. rm -f core conftest.err conftest.$ac_objext \
  9505. conftest$ac_exeext conftest.$ac_ext
  9506. LIBS=$ac_check_lib_save_LIBS
  9507. fi
  9508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9509. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9510. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9511. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9512. else
  9513. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9514. if test "x$ac_cv_func_dlopen" = xyes; then :
  9515. lt_cv_dlopen="dlopen"
  9516. else
  9517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9518. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9519. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9520. $as_echo_n "(cached) " >&6
  9521. else
  9522. ac_check_lib_save_LIBS=$LIBS
  9523. LIBS="-ldl $LIBS"
  9524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9525. /* end confdefs.h. */
  9526. /* Override any GCC internal prototype to avoid an error.
  9527. Use char because int might match the return type of a GCC
  9528. builtin and then its argument prototype would still apply. */
  9529. #ifdef __cplusplus
  9530. extern "C"
  9531. #endif
  9532. char dlopen ();
  9533. int
  9534. main ()
  9535. {
  9536. return dlopen ();
  9537. ;
  9538. return 0;
  9539. }
  9540. _ACEOF
  9541. if ac_fn_c_try_link "$LINENO"; then :
  9542. ac_cv_lib_dl_dlopen=yes
  9543. else
  9544. ac_cv_lib_dl_dlopen=no
  9545. fi
  9546. rm -f core conftest.err conftest.$ac_objext \
  9547. conftest$ac_exeext conftest.$ac_ext
  9548. LIBS=$ac_check_lib_save_LIBS
  9549. fi
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9551. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9552. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9553. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9554. else
  9555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9556. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9557. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9558. $as_echo_n "(cached) " >&6
  9559. else
  9560. ac_check_lib_save_LIBS=$LIBS
  9561. LIBS="-lsvld $LIBS"
  9562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9563. /* end confdefs.h. */
  9564. /* Override any GCC internal prototype to avoid an error.
  9565. Use char because int might match the return type of a GCC
  9566. builtin and then its argument prototype would still apply. */
  9567. #ifdef __cplusplus
  9568. extern "C"
  9569. #endif
  9570. char dlopen ();
  9571. int
  9572. main ()
  9573. {
  9574. return dlopen ();
  9575. ;
  9576. return 0;
  9577. }
  9578. _ACEOF
  9579. if ac_fn_c_try_link "$LINENO"; then :
  9580. ac_cv_lib_svld_dlopen=yes
  9581. else
  9582. ac_cv_lib_svld_dlopen=no
  9583. fi
  9584. rm -f core conftest.err conftest.$ac_objext \
  9585. conftest$ac_exeext conftest.$ac_ext
  9586. LIBS=$ac_check_lib_save_LIBS
  9587. fi
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9589. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9590. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9591. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9592. else
  9593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9594. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9595. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9596. $as_echo_n "(cached) " >&6
  9597. else
  9598. ac_check_lib_save_LIBS=$LIBS
  9599. LIBS="-ldld $LIBS"
  9600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9601. /* end confdefs.h. */
  9602. /* Override any GCC internal prototype to avoid an error.
  9603. Use char because int might match the return type of a GCC
  9604. builtin and then its argument prototype would still apply. */
  9605. #ifdef __cplusplus
  9606. extern "C"
  9607. #endif
  9608. char dld_link ();
  9609. int
  9610. main ()
  9611. {
  9612. return dld_link ();
  9613. ;
  9614. return 0;
  9615. }
  9616. _ACEOF
  9617. if ac_fn_c_try_link "$LINENO"; then :
  9618. ac_cv_lib_dld_dld_link=yes
  9619. else
  9620. ac_cv_lib_dld_dld_link=no
  9621. fi
  9622. rm -f core conftest.err conftest.$ac_objext \
  9623. conftest$ac_exeext conftest.$ac_ext
  9624. LIBS=$ac_check_lib_save_LIBS
  9625. fi
  9626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9627. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9628. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9629. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9630. fi
  9631. fi
  9632. fi
  9633. fi
  9634. fi
  9635. fi
  9636. ;;
  9637. esac
  9638. if test "x$lt_cv_dlopen" != xno; then
  9639. enable_dlopen=yes
  9640. else
  9641. enable_dlopen=no
  9642. fi
  9643. case $lt_cv_dlopen in
  9644. dlopen)
  9645. save_CPPFLAGS="$CPPFLAGS"
  9646. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9647. save_LDFLAGS="$LDFLAGS"
  9648. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9649. save_LIBS="$LIBS"
  9650. LIBS="$lt_cv_dlopen_libs $LIBS"
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9652. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9653. if ${lt_cv_dlopen_self+:} false; then :
  9654. $as_echo_n "(cached) " >&6
  9655. else
  9656. if test "$cross_compiling" = yes; then :
  9657. lt_cv_dlopen_self=cross
  9658. else
  9659. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9660. lt_status=$lt_dlunknown
  9661. cat > conftest.$ac_ext <<_LT_EOF
  9662. #line $LINENO "configure"
  9663. #include "confdefs.h"
  9664. #if HAVE_DLFCN_H
  9665. #include <dlfcn.h>
  9666. #endif
  9667. #include <stdio.h>
  9668. #ifdef RTLD_GLOBAL
  9669. # define LT_DLGLOBAL RTLD_GLOBAL
  9670. #else
  9671. # ifdef DL_GLOBAL
  9672. # define LT_DLGLOBAL DL_GLOBAL
  9673. # else
  9674. # define LT_DLGLOBAL 0
  9675. # endif
  9676. #endif
  9677. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9678. find out it does not work in some platform. */
  9679. #ifndef LT_DLLAZY_OR_NOW
  9680. # ifdef RTLD_LAZY
  9681. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9682. # else
  9683. # ifdef DL_LAZY
  9684. # define LT_DLLAZY_OR_NOW DL_LAZY
  9685. # else
  9686. # ifdef RTLD_NOW
  9687. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9688. # else
  9689. # ifdef DL_NOW
  9690. # define LT_DLLAZY_OR_NOW DL_NOW
  9691. # else
  9692. # define LT_DLLAZY_OR_NOW 0
  9693. # endif
  9694. # endif
  9695. # endif
  9696. # endif
  9697. #endif
  9698. /* When -fvisbility=hidden is used, assume the code has been annotated
  9699. correspondingly for the symbols needed. */
  9700. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9701. int fnord () __attribute__((visibility("default")));
  9702. #endif
  9703. int fnord () { return 42; }
  9704. int main ()
  9705. {
  9706. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9707. int status = $lt_dlunknown;
  9708. if (self)
  9709. {
  9710. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9711. else
  9712. {
  9713. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9714. else puts (dlerror ());
  9715. }
  9716. /* dlclose (self); */
  9717. }
  9718. else
  9719. puts (dlerror ());
  9720. return status;
  9721. }
  9722. _LT_EOF
  9723. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9724. (eval $ac_link) 2>&5
  9725. ac_status=$?
  9726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9727. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9728. (./conftest; exit; ) >&5 2>/dev/null
  9729. lt_status=$?
  9730. case x$lt_status in
  9731. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9732. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9733. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9734. esac
  9735. else :
  9736. # compilation failed
  9737. lt_cv_dlopen_self=no
  9738. fi
  9739. fi
  9740. rm -fr conftest*
  9741. fi
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9743. $as_echo "$lt_cv_dlopen_self" >&6; }
  9744. if test "x$lt_cv_dlopen_self" = xyes; then
  9745. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9747. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9748. if ${lt_cv_dlopen_self_static+:} false; then :
  9749. $as_echo_n "(cached) " >&6
  9750. else
  9751. if test "$cross_compiling" = yes; then :
  9752. lt_cv_dlopen_self_static=cross
  9753. else
  9754. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9755. lt_status=$lt_dlunknown
  9756. cat > conftest.$ac_ext <<_LT_EOF
  9757. #line $LINENO "configure"
  9758. #include "confdefs.h"
  9759. #if HAVE_DLFCN_H
  9760. #include <dlfcn.h>
  9761. #endif
  9762. #include <stdio.h>
  9763. #ifdef RTLD_GLOBAL
  9764. # define LT_DLGLOBAL RTLD_GLOBAL
  9765. #else
  9766. # ifdef DL_GLOBAL
  9767. # define LT_DLGLOBAL DL_GLOBAL
  9768. # else
  9769. # define LT_DLGLOBAL 0
  9770. # endif
  9771. #endif
  9772. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9773. find out it does not work in some platform. */
  9774. #ifndef LT_DLLAZY_OR_NOW
  9775. # ifdef RTLD_LAZY
  9776. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9777. # else
  9778. # ifdef DL_LAZY
  9779. # define LT_DLLAZY_OR_NOW DL_LAZY
  9780. # else
  9781. # ifdef RTLD_NOW
  9782. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9783. # else
  9784. # ifdef DL_NOW
  9785. # define LT_DLLAZY_OR_NOW DL_NOW
  9786. # else
  9787. # define LT_DLLAZY_OR_NOW 0
  9788. # endif
  9789. # endif
  9790. # endif
  9791. # endif
  9792. #endif
  9793. /* When -fvisbility=hidden is used, assume the code has been annotated
  9794. correspondingly for the symbols needed. */
  9795. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9796. int fnord () __attribute__((visibility("default")));
  9797. #endif
  9798. int fnord () { return 42; }
  9799. int main ()
  9800. {
  9801. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9802. int status = $lt_dlunknown;
  9803. if (self)
  9804. {
  9805. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9806. else
  9807. {
  9808. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9809. else puts (dlerror ());
  9810. }
  9811. /* dlclose (self); */
  9812. }
  9813. else
  9814. puts (dlerror ());
  9815. return status;
  9816. }
  9817. _LT_EOF
  9818. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9819. (eval $ac_link) 2>&5
  9820. ac_status=$?
  9821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9822. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9823. (./conftest; exit; ) >&5 2>/dev/null
  9824. lt_status=$?
  9825. case x$lt_status in
  9826. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9827. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9828. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9829. esac
  9830. else :
  9831. # compilation failed
  9832. lt_cv_dlopen_self_static=no
  9833. fi
  9834. fi
  9835. rm -fr conftest*
  9836. fi
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9838. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9839. fi
  9840. CPPFLAGS="$save_CPPFLAGS"
  9841. LDFLAGS="$save_LDFLAGS"
  9842. LIBS="$save_LIBS"
  9843. ;;
  9844. esac
  9845. case $lt_cv_dlopen_self in
  9846. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9847. *) enable_dlopen_self=unknown ;;
  9848. esac
  9849. case $lt_cv_dlopen_self_static in
  9850. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9851. *) enable_dlopen_self_static=unknown ;;
  9852. esac
  9853. fi
  9854. striplib=
  9855. old_striplib=
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9857. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9858. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9859. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9860. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9862. $as_echo "yes" >&6; }
  9863. else
  9864. # FIXME - insert some real tests, host_os isn't really good enough
  9865. case $host_os in
  9866. darwin*)
  9867. if test -n "$STRIP" ; then
  9868. striplib="$STRIP -x"
  9869. old_striplib="$STRIP -S"
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9871. $as_echo "yes" >&6; }
  9872. else
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9874. $as_echo "no" >&6; }
  9875. fi
  9876. ;;
  9877. *)
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9879. $as_echo "no" >&6; }
  9880. ;;
  9881. esac
  9882. fi
  9883. # Report which library types will actually be built
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9885. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9887. $as_echo "$can_build_shared" >&6; }
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9889. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9890. test "$can_build_shared" = "no" && enable_shared=no
  9891. # On AIX, shared libraries and static libraries use the same namespace, and
  9892. # are all built from PIC.
  9893. case $host_os in
  9894. aix3*)
  9895. test "$enable_shared" = yes && enable_static=no
  9896. if test -n "$RANLIB"; then
  9897. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9898. postinstall_cmds='$RANLIB $lib'
  9899. fi
  9900. ;;
  9901. aix[4-9]*)
  9902. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9903. test "$enable_shared" = yes && enable_static=no
  9904. fi
  9905. ;;
  9906. esac
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9908. $as_echo "$enable_shared" >&6; }
  9909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9910. $as_echo_n "checking whether to build static libraries... " >&6; }
  9911. # Make sure either enable_shared or enable_static is yes.
  9912. test "$enable_shared" = yes || enable_static=yes
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9914. $as_echo "$enable_static" >&6; }
  9915. fi
  9916. ac_ext=c
  9917. ac_cpp='$CPP $CPPFLAGS'
  9918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9921. CC="$lt_save_CC"
  9922. ac_config_commands="$ac_config_commands libtool"
  9923. # Only expand once:
  9924. if test -n "$ac_tool_prefix"; then
  9925. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9926. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9928. $as_echo_n "checking for $ac_word... " >&6; }
  9929. if ${ac_cv_prog_RC+:} false; then :
  9930. $as_echo_n "(cached) " >&6
  9931. else
  9932. if test -n "$RC"; then
  9933. ac_cv_prog_RC="$RC" # Let the user override the test.
  9934. else
  9935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9936. for as_dir in $PATH
  9937. do
  9938. IFS=$as_save_IFS
  9939. test -z "$as_dir" && as_dir=.
  9940. for ac_exec_ext in '' $ac_executable_extensions; do
  9941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9942. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9944. break 2
  9945. fi
  9946. done
  9947. done
  9948. IFS=$as_save_IFS
  9949. fi
  9950. fi
  9951. RC=$ac_cv_prog_RC
  9952. if test -n "$RC"; then
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9954. $as_echo "$RC" >&6; }
  9955. else
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9957. $as_echo "no" >&6; }
  9958. fi
  9959. fi
  9960. if test -z "$ac_cv_prog_RC"; then
  9961. ac_ct_RC=$RC
  9962. # Extract the first word of "windres", so it can be a program name with args.
  9963. set dummy windres; ac_word=$2
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9965. $as_echo_n "checking for $ac_word... " >&6; }
  9966. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9967. $as_echo_n "(cached) " >&6
  9968. else
  9969. if test -n "$ac_ct_RC"; then
  9970. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9971. else
  9972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9973. for as_dir in $PATH
  9974. do
  9975. IFS=$as_save_IFS
  9976. test -z "$as_dir" && as_dir=.
  9977. for ac_exec_ext in '' $ac_executable_extensions; do
  9978. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9979. ac_cv_prog_ac_ct_RC="windres"
  9980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9981. break 2
  9982. fi
  9983. done
  9984. done
  9985. IFS=$as_save_IFS
  9986. fi
  9987. fi
  9988. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9989. if test -n "$ac_ct_RC"; then
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9991. $as_echo "$ac_ct_RC" >&6; }
  9992. else
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9994. $as_echo "no" >&6; }
  9995. fi
  9996. if test "x$ac_ct_RC" = x; then
  9997. RC=""
  9998. else
  9999. case $cross_compiling:$ac_tool_warned in
  10000. yes:)
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10003. ac_tool_warned=yes ;;
  10004. esac
  10005. RC=$ac_ct_RC
  10006. fi
  10007. else
  10008. RC="$ac_cv_prog_RC"
  10009. fi
  10010. # Source file extension for RC test sources.
  10011. ac_ext=rc
  10012. # Object file extension for compiled RC test sources.
  10013. objext=o
  10014. objext_RC=$objext
  10015. # Code to be used in simple compile tests
  10016. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10017. # Code to be used in simple link tests
  10018. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10019. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10020. # If no C compiler was specified, use CC.
  10021. LTCC=${LTCC-"$CC"}
  10022. # If no C compiler flags were specified, use CFLAGS.
  10023. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10024. # Allow CC to be a program name with arguments.
  10025. compiler=$CC
  10026. # save warnings/boilerplate of simple test code
  10027. ac_outfile=conftest.$ac_objext
  10028. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10029. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10030. _lt_compiler_boilerplate=`cat conftest.err`
  10031. $RM conftest*
  10032. ac_outfile=conftest.$ac_objext
  10033. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10034. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10035. _lt_linker_boilerplate=`cat conftest.err`
  10036. $RM -r conftest*
  10037. # Allow CC to be a program name with arguments.
  10038. lt_save_CC="$CC"
  10039. lt_save_CFLAGS=$CFLAGS
  10040. lt_save_GCC=$GCC
  10041. GCC=
  10042. CC=${RC-"windres"}
  10043. CFLAGS=
  10044. compiler=$CC
  10045. compiler_RC=$CC
  10046. for cc_temp in $compiler""; do
  10047. case $cc_temp in
  10048. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10049. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10050. \-*) ;;
  10051. *) break;;
  10052. esac
  10053. done
  10054. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10055. lt_cv_prog_compiler_c_o_RC=yes
  10056. if test -n "$compiler"; then
  10057. :
  10058. fi
  10059. GCC=$lt_save_GCC
  10060. ac_ext=c
  10061. ac_cpp='$CPP $CPPFLAGS'
  10062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10065. CC=$lt_save_CC
  10066. CFLAGS=$lt_save_CFLAGS
  10067. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10068. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10069. LT_REVISION=$SDL_INTERFACE_AGE
  10070. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10071. ac_ext=c
  10072. ac_cpp='$CPP $CPPFLAGS'
  10073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10076. if test -n "$ac_tool_prefix"; then
  10077. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10078. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10080. $as_echo_n "checking for $ac_word... " >&6; }
  10081. if ${ac_cv_prog_CC+:} false; then :
  10082. $as_echo_n "(cached) " >&6
  10083. else
  10084. if test -n "$CC"; then
  10085. ac_cv_prog_CC="$CC" # Let the user override the test.
  10086. else
  10087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10088. for as_dir in $PATH
  10089. do
  10090. IFS=$as_save_IFS
  10091. test -z "$as_dir" && as_dir=.
  10092. for ac_exec_ext in '' $ac_executable_extensions; do
  10093. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10094. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10095. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10096. break 2
  10097. fi
  10098. done
  10099. done
  10100. IFS=$as_save_IFS
  10101. fi
  10102. fi
  10103. CC=$ac_cv_prog_CC
  10104. if test -n "$CC"; then
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10106. $as_echo "$CC" >&6; }
  10107. else
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10109. $as_echo "no" >&6; }
  10110. fi
  10111. fi
  10112. if test -z "$ac_cv_prog_CC"; then
  10113. ac_ct_CC=$CC
  10114. # Extract the first word of "gcc", so it can be a program name with args.
  10115. set dummy gcc; ac_word=$2
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10117. $as_echo_n "checking for $ac_word... " >&6; }
  10118. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10119. $as_echo_n "(cached) " >&6
  10120. else
  10121. if test -n "$ac_ct_CC"; then
  10122. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10123. else
  10124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10125. for as_dir in $PATH
  10126. do
  10127. IFS=$as_save_IFS
  10128. test -z "$as_dir" && as_dir=.
  10129. for ac_exec_ext in '' $ac_executable_extensions; do
  10130. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10131. ac_cv_prog_ac_ct_CC="gcc"
  10132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10133. break 2
  10134. fi
  10135. done
  10136. done
  10137. IFS=$as_save_IFS
  10138. fi
  10139. fi
  10140. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10141. if test -n "$ac_ct_CC"; then
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10143. $as_echo "$ac_ct_CC" >&6; }
  10144. else
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10146. $as_echo "no" >&6; }
  10147. fi
  10148. if test "x$ac_ct_CC" = x; then
  10149. CC=""
  10150. else
  10151. case $cross_compiling:$ac_tool_warned in
  10152. yes:)
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10154. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10155. ac_tool_warned=yes ;;
  10156. esac
  10157. CC=$ac_ct_CC
  10158. fi
  10159. else
  10160. CC="$ac_cv_prog_CC"
  10161. fi
  10162. if test -z "$CC"; then
  10163. if test -n "$ac_tool_prefix"; then
  10164. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10165. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10167. $as_echo_n "checking for $ac_word... " >&6; }
  10168. if ${ac_cv_prog_CC+:} false; then :
  10169. $as_echo_n "(cached) " >&6
  10170. else
  10171. if test -n "$CC"; then
  10172. ac_cv_prog_CC="$CC" # Let the user override the test.
  10173. else
  10174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10175. for as_dir in $PATH
  10176. do
  10177. IFS=$as_save_IFS
  10178. test -z "$as_dir" && as_dir=.
  10179. for ac_exec_ext in '' $ac_executable_extensions; do
  10180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10181. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10183. break 2
  10184. fi
  10185. done
  10186. done
  10187. IFS=$as_save_IFS
  10188. fi
  10189. fi
  10190. CC=$ac_cv_prog_CC
  10191. if test -n "$CC"; then
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10193. $as_echo "$CC" >&6; }
  10194. else
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10196. $as_echo "no" >&6; }
  10197. fi
  10198. fi
  10199. fi
  10200. if test -z "$CC"; then
  10201. # Extract the first word of "cc", so it can be a program name with args.
  10202. set dummy cc; ac_word=$2
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10204. $as_echo_n "checking for $ac_word... " >&6; }
  10205. if ${ac_cv_prog_CC+:} false; then :
  10206. $as_echo_n "(cached) " >&6
  10207. else
  10208. if test -n "$CC"; then
  10209. ac_cv_prog_CC="$CC" # Let the user override the test.
  10210. else
  10211. ac_prog_rejected=no
  10212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10213. for as_dir in $PATH
  10214. do
  10215. IFS=$as_save_IFS
  10216. test -z "$as_dir" && as_dir=.
  10217. for ac_exec_ext in '' $ac_executable_extensions; do
  10218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10219. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10220. ac_prog_rejected=yes
  10221. continue
  10222. fi
  10223. ac_cv_prog_CC="cc"
  10224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10225. break 2
  10226. fi
  10227. done
  10228. done
  10229. IFS=$as_save_IFS
  10230. if test $ac_prog_rejected = yes; then
  10231. # We found a bogon in the path, so make sure we never use it.
  10232. set dummy $ac_cv_prog_CC
  10233. shift
  10234. if test $# != 0; then
  10235. # We chose a different compiler from the bogus one.
  10236. # However, it has the same basename, so the bogon will be chosen
  10237. # first if we set CC to just the basename; use the full file name.
  10238. shift
  10239. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10240. fi
  10241. fi
  10242. fi
  10243. fi
  10244. CC=$ac_cv_prog_CC
  10245. if test -n "$CC"; then
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10247. $as_echo "$CC" >&6; }
  10248. else
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10250. $as_echo "no" >&6; }
  10251. fi
  10252. fi
  10253. if test -z "$CC"; then
  10254. if test -n "$ac_tool_prefix"; then
  10255. for ac_prog in cl.exe
  10256. do
  10257. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10258. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10260. $as_echo_n "checking for $ac_word... " >&6; }
  10261. if ${ac_cv_prog_CC+:} false; then :
  10262. $as_echo_n "(cached) " >&6
  10263. else
  10264. if test -n "$CC"; then
  10265. ac_cv_prog_CC="$CC" # Let the user override the test.
  10266. else
  10267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10268. for as_dir in $PATH
  10269. do
  10270. IFS=$as_save_IFS
  10271. test -z "$as_dir" && as_dir=.
  10272. for ac_exec_ext in '' $ac_executable_extensions; do
  10273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10274. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10276. break 2
  10277. fi
  10278. done
  10279. done
  10280. IFS=$as_save_IFS
  10281. fi
  10282. fi
  10283. CC=$ac_cv_prog_CC
  10284. if test -n "$CC"; then
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10286. $as_echo "$CC" >&6; }
  10287. else
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10289. $as_echo "no" >&6; }
  10290. fi
  10291. test -n "$CC" && break
  10292. done
  10293. fi
  10294. if test -z "$CC"; then
  10295. ac_ct_CC=$CC
  10296. for ac_prog in cl.exe
  10297. do
  10298. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10299. set dummy $ac_prog; ac_word=$2
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10301. $as_echo_n "checking for $ac_word... " >&6; }
  10302. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10303. $as_echo_n "(cached) " >&6
  10304. else
  10305. if test -n "$ac_ct_CC"; then
  10306. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10307. else
  10308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10309. for as_dir in $PATH
  10310. do
  10311. IFS=$as_save_IFS
  10312. test -z "$as_dir" && as_dir=.
  10313. for ac_exec_ext in '' $ac_executable_extensions; do
  10314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10315. ac_cv_prog_ac_ct_CC="$ac_prog"
  10316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10317. break 2
  10318. fi
  10319. done
  10320. done
  10321. IFS=$as_save_IFS
  10322. fi
  10323. fi
  10324. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10325. if test -n "$ac_ct_CC"; then
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10327. $as_echo "$ac_ct_CC" >&6; }
  10328. else
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10330. $as_echo "no" >&6; }
  10331. fi
  10332. test -n "$ac_ct_CC" && break
  10333. done
  10334. if test "x$ac_ct_CC" = x; then
  10335. CC=""
  10336. else
  10337. case $cross_compiling:$ac_tool_warned in
  10338. yes:)
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10341. ac_tool_warned=yes ;;
  10342. esac
  10343. CC=$ac_ct_CC
  10344. fi
  10345. fi
  10346. fi
  10347. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10348. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10349. as_fn_error $? "no acceptable C compiler found in \$PATH
  10350. See \`config.log' for more details" "$LINENO" 5; }
  10351. # Provide some information about the compiler.
  10352. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10353. set X $ac_compile
  10354. ac_compiler=$2
  10355. for ac_option in --version -v -V -qversion; do
  10356. { { ac_try="$ac_compiler $ac_option >&5"
  10357. case "(($ac_try" in
  10358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10359. *) ac_try_echo=$ac_try;;
  10360. esac
  10361. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10362. $as_echo "$ac_try_echo"; } >&5
  10363. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10364. ac_status=$?
  10365. if test -s conftest.err; then
  10366. sed '10a\
  10367. ... rest of stderr output deleted ...
  10368. 10q' conftest.err >conftest.er1
  10369. cat conftest.er1 >&5
  10370. fi
  10371. rm -f conftest.er1 conftest.err
  10372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10373. test $ac_status = 0; }
  10374. done
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10376. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10377. if ${ac_cv_c_compiler_gnu+:} false; then :
  10378. $as_echo_n "(cached) " >&6
  10379. else
  10380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10381. /* end confdefs.h. */
  10382. int
  10383. main ()
  10384. {
  10385. #ifndef __GNUC__
  10386. choke me
  10387. #endif
  10388. ;
  10389. return 0;
  10390. }
  10391. _ACEOF
  10392. if ac_fn_c_try_compile "$LINENO"; then :
  10393. ac_compiler_gnu=yes
  10394. else
  10395. ac_compiler_gnu=no
  10396. fi
  10397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10398. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10399. fi
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10401. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10402. if test $ac_compiler_gnu = yes; then
  10403. GCC=yes
  10404. else
  10405. GCC=
  10406. fi
  10407. ac_test_CFLAGS=${CFLAGS+set}
  10408. ac_save_CFLAGS=$CFLAGS
  10409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10410. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10411. if ${ac_cv_prog_cc_g+:} false; then :
  10412. $as_echo_n "(cached) " >&6
  10413. else
  10414. ac_save_c_werror_flag=$ac_c_werror_flag
  10415. ac_c_werror_flag=yes
  10416. ac_cv_prog_cc_g=no
  10417. CFLAGS="-g"
  10418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10419. /* end confdefs.h. */
  10420. int
  10421. main ()
  10422. {
  10423. ;
  10424. return 0;
  10425. }
  10426. _ACEOF
  10427. if ac_fn_c_try_compile "$LINENO"; then :
  10428. ac_cv_prog_cc_g=yes
  10429. else
  10430. CFLAGS=""
  10431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10432. /* end confdefs.h. */
  10433. int
  10434. main ()
  10435. {
  10436. ;
  10437. return 0;
  10438. }
  10439. _ACEOF
  10440. if ac_fn_c_try_compile "$LINENO"; then :
  10441. else
  10442. ac_c_werror_flag=$ac_save_c_werror_flag
  10443. CFLAGS="-g"
  10444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10445. /* end confdefs.h. */
  10446. int
  10447. main ()
  10448. {
  10449. ;
  10450. return 0;
  10451. }
  10452. _ACEOF
  10453. if ac_fn_c_try_compile "$LINENO"; then :
  10454. ac_cv_prog_cc_g=yes
  10455. fi
  10456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10457. fi
  10458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10459. fi
  10460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10461. ac_c_werror_flag=$ac_save_c_werror_flag
  10462. fi
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10464. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10465. if test "$ac_test_CFLAGS" = set; then
  10466. CFLAGS=$ac_save_CFLAGS
  10467. elif test $ac_cv_prog_cc_g = yes; then
  10468. if test "$GCC" = yes; then
  10469. CFLAGS="-g -O2"
  10470. else
  10471. CFLAGS="-g"
  10472. fi
  10473. else
  10474. if test "$GCC" = yes; then
  10475. CFLAGS="-O2"
  10476. else
  10477. CFLAGS=
  10478. fi
  10479. fi
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10481. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10482. if ${ac_cv_prog_cc_c89+:} false; then :
  10483. $as_echo_n "(cached) " >&6
  10484. else
  10485. ac_cv_prog_cc_c89=no
  10486. ac_save_CC=$CC
  10487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10488. /* end confdefs.h. */
  10489. #include <stdarg.h>
  10490. #include <stdio.h>
  10491. struct stat;
  10492. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10493. struct buf { int x; };
  10494. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10495. static char *e (p, i)
  10496. char **p;
  10497. int i;
  10498. {
  10499. return p[i];
  10500. }
  10501. static char *f (char * (*g) (char **, int), char **p, ...)
  10502. {
  10503. char *s;
  10504. va_list v;
  10505. va_start (v,p);
  10506. s = g (p, va_arg (v,int));
  10507. va_end (v);
  10508. return s;
  10509. }
  10510. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10511. function prototypes and stuff, but not '\xHH' hex character constants.
  10512. These don't provoke an error unfortunately, instead are silently treated
  10513. as 'x'. The following induces an error, until -std is added to get
  10514. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10515. array size at least. It's necessary to write '\x00'==0 to get something
  10516. that's true only with -std. */
  10517. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10518. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10519. inside strings and character constants. */
  10520. #define FOO(x) 'x'
  10521. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10522. int test (int i, double x);
  10523. struct s1 {int (*f) (int a);};
  10524. struct s2 {int (*f) (double a);};
  10525. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10526. int argc;
  10527. char **argv;
  10528. int
  10529. main ()
  10530. {
  10531. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10532. ;
  10533. return 0;
  10534. }
  10535. _ACEOF
  10536. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10537. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10538. do
  10539. CC="$ac_save_CC $ac_arg"
  10540. if ac_fn_c_try_compile "$LINENO"; then :
  10541. ac_cv_prog_cc_c89=$ac_arg
  10542. fi
  10543. rm -f core conftest.err conftest.$ac_objext
  10544. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10545. done
  10546. rm -f conftest.$ac_ext
  10547. CC=$ac_save_CC
  10548. fi
  10549. # AC_CACHE_VAL
  10550. case "x$ac_cv_prog_cc_c89" in
  10551. x)
  10552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10553. $as_echo "none needed" >&6; } ;;
  10554. xno)
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10556. $as_echo "unsupported" >&6; } ;;
  10557. *)
  10558. CC="$CC $ac_cv_prog_cc_c89"
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10560. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10561. esac
  10562. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10563. fi
  10564. ac_ext=c
  10565. ac_cpp='$CPP $CPPFLAGS'
  10566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10569. ac_ext=cpp
  10570. ac_cpp='$CXXCPP $CPPFLAGS'
  10571. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10572. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10573. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10574. if test -z "$CXX"; then
  10575. if test -n "$CCC"; then
  10576. CXX=$CCC
  10577. else
  10578. if test -n "$ac_tool_prefix"; then
  10579. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10580. do
  10581. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10582. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10584. $as_echo_n "checking for $ac_word... " >&6; }
  10585. if ${ac_cv_prog_CXX+:} false; then :
  10586. $as_echo_n "(cached) " >&6
  10587. else
  10588. if test -n "$CXX"; then
  10589. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10590. else
  10591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10592. for as_dir in $PATH
  10593. do
  10594. IFS=$as_save_IFS
  10595. test -z "$as_dir" && as_dir=.
  10596. for ac_exec_ext in '' $ac_executable_extensions; do
  10597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10598. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10600. break 2
  10601. fi
  10602. done
  10603. done
  10604. IFS=$as_save_IFS
  10605. fi
  10606. fi
  10607. CXX=$ac_cv_prog_CXX
  10608. if test -n "$CXX"; then
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10610. $as_echo "$CXX" >&6; }
  10611. else
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10613. $as_echo "no" >&6; }
  10614. fi
  10615. test -n "$CXX" && break
  10616. done
  10617. fi
  10618. if test -z "$CXX"; then
  10619. ac_ct_CXX=$CXX
  10620. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10621. do
  10622. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10623. set dummy $ac_prog; ac_word=$2
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10625. $as_echo_n "checking for $ac_word... " >&6; }
  10626. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10627. $as_echo_n "(cached) " >&6
  10628. else
  10629. if test -n "$ac_ct_CXX"; then
  10630. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10631. else
  10632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10633. for as_dir in $PATH
  10634. do
  10635. IFS=$as_save_IFS
  10636. test -z "$as_dir" && as_dir=.
  10637. for ac_exec_ext in '' $ac_executable_extensions; do
  10638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10639. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10641. break 2
  10642. fi
  10643. done
  10644. done
  10645. IFS=$as_save_IFS
  10646. fi
  10647. fi
  10648. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10649. if test -n "$ac_ct_CXX"; then
  10650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10651. $as_echo "$ac_ct_CXX" >&6; }
  10652. else
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10654. $as_echo "no" >&6; }
  10655. fi
  10656. test -n "$ac_ct_CXX" && break
  10657. done
  10658. if test "x$ac_ct_CXX" = x; then
  10659. CXX="g++"
  10660. else
  10661. case $cross_compiling:$ac_tool_warned in
  10662. yes:)
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10664. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10665. ac_tool_warned=yes ;;
  10666. esac
  10667. CXX=$ac_ct_CXX
  10668. fi
  10669. fi
  10670. fi
  10671. fi
  10672. # Provide some information about the compiler.
  10673. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10674. set X $ac_compile
  10675. ac_compiler=$2
  10676. for ac_option in --version -v -V -qversion; do
  10677. { { ac_try="$ac_compiler $ac_option >&5"
  10678. case "(($ac_try" in
  10679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10680. *) ac_try_echo=$ac_try;;
  10681. esac
  10682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10683. $as_echo "$ac_try_echo"; } >&5
  10684. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10685. ac_status=$?
  10686. if test -s conftest.err; then
  10687. sed '10a\
  10688. ... rest of stderr output deleted ...
  10689. 10q' conftest.err >conftest.er1
  10690. cat conftest.er1 >&5
  10691. fi
  10692. rm -f conftest.er1 conftest.err
  10693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10694. test $ac_status = 0; }
  10695. done
  10696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10697. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10698. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10699. $as_echo_n "(cached) " >&6
  10700. else
  10701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10702. /* end confdefs.h. */
  10703. int
  10704. main ()
  10705. {
  10706. #ifndef __GNUC__
  10707. choke me
  10708. #endif
  10709. ;
  10710. return 0;
  10711. }
  10712. _ACEOF
  10713. if ac_fn_cxx_try_compile "$LINENO"; then :
  10714. ac_compiler_gnu=yes
  10715. else
  10716. ac_compiler_gnu=no
  10717. fi
  10718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10719. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10720. fi
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10722. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10723. if test $ac_compiler_gnu = yes; then
  10724. GXX=yes
  10725. else
  10726. GXX=
  10727. fi
  10728. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10729. ac_save_CXXFLAGS=$CXXFLAGS
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10731. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10732. if ${ac_cv_prog_cxx_g+:} false; then :
  10733. $as_echo_n "(cached) " >&6
  10734. else
  10735. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10736. ac_cxx_werror_flag=yes
  10737. ac_cv_prog_cxx_g=no
  10738. CXXFLAGS="-g"
  10739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10740. /* end confdefs.h. */
  10741. int
  10742. main ()
  10743. {
  10744. ;
  10745. return 0;
  10746. }
  10747. _ACEOF
  10748. if ac_fn_cxx_try_compile "$LINENO"; then :
  10749. ac_cv_prog_cxx_g=yes
  10750. else
  10751. CXXFLAGS=""
  10752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10753. /* end confdefs.h. */
  10754. int
  10755. main ()
  10756. {
  10757. ;
  10758. return 0;
  10759. }
  10760. _ACEOF
  10761. if ac_fn_cxx_try_compile "$LINENO"; then :
  10762. else
  10763. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10764. CXXFLAGS="-g"
  10765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10766. /* end confdefs.h. */
  10767. int
  10768. main ()
  10769. {
  10770. ;
  10771. return 0;
  10772. }
  10773. _ACEOF
  10774. if ac_fn_cxx_try_compile "$LINENO"; then :
  10775. ac_cv_prog_cxx_g=yes
  10776. fi
  10777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10778. fi
  10779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10780. fi
  10781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10782. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10783. fi
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10785. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10786. if test "$ac_test_CXXFLAGS" = set; then
  10787. CXXFLAGS=$ac_save_CXXFLAGS
  10788. elif test $ac_cv_prog_cxx_g = yes; then
  10789. if test "$GXX" = yes; then
  10790. CXXFLAGS="-g -O2"
  10791. else
  10792. CXXFLAGS="-g"
  10793. fi
  10794. else
  10795. if test "$GXX" = yes; then
  10796. CXXFLAGS="-O2"
  10797. else
  10798. CXXFLAGS=
  10799. fi
  10800. fi
  10801. ac_ext=c
  10802. ac_cpp='$CPP $CPPFLAGS'
  10803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10806. func_stripname_cnf ()
  10807. {
  10808. case ${2} in
  10809. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10810. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10811. esac
  10812. } # func_stripname_cnf
  10813. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10814. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10815. (test "X$CXX" != "Xg++"))) ; then
  10816. ac_ext=cpp
  10817. ac_cpp='$CXXCPP $CPPFLAGS'
  10818. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10819. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10820. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10822. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10823. if test -z "$CXXCPP"; then
  10824. if ${ac_cv_prog_CXXCPP+:} false; then :
  10825. $as_echo_n "(cached) " >&6
  10826. else
  10827. # Double quotes because CXXCPP needs to be expanded
  10828. for CXXCPP in "$CXX -E" "/lib/cpp"
  10829. do
  10830. ac_preproc_ok=false
  10831. for ac_cxx_preproc_warn_flag in '' yes
  10832. do
  10833. # Use a header file that comes with gcc, so configuring glibc
  10834. # with a fresh cross-compiler works.
  10835. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10836. # <limits.h> exists even on freestanding compilers.
  10837. # On the NeXT, cc -E runs the code through the compiler's parser,
  10838. # not just through cpp. "Syntax error" is here to catch this case.
  10839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10840. /* end confdefs.h. */
  10841. #ifdef __STDC__
  10842. # include <limits.h>
  10843. #else
  10844. # include <assert.h>
  10845. #endif
  10846. Syntax error
  10847. _ACEOF
  10848. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10849. else
  10850. # Broken: fails on valid input.
  10851. continue
  10852. fi
  10853. rm -f conftest.err conftest.i conftest.$ac_ext
  10854. # OK, works on sane cases. Now check whether nonexistent headers
  10855. # can be detected and how.
  10856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10857. /* end confdefs.h. */
  10858. #include <ac_nonexistent.h>
  10859. _ACEOF
  10860. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10861. # Broken: success on invalid input.
  10862. continue
  10863. else
  10864. # Passes both tests.
  10865. ac_preproc_ok=:
  10866. break
  10867. fi
  10868. rm -f conftest.err conftest.i conftest.$ac_ext
  10869. done
  10870. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10871. rm -f conftest.i conftest.err conftest.$ac_ext
  10872. if $ac_preproc_ok; then :
  10873. break
  10874. fi
  10875. done
  10876. ac_cv_prog_CXXCPP=$CXXCPP
  10877. fi
  10878. CXXCPP=$ac_cv_prog_CXXCPP
  10879. else
  10880. ac_cv_prog_CXXCPP=$CXXCPP
  10881. fi
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10883. $as_echo "$CXXCPP" >&6; }
  10884. ac_preproc_ok=false
  10885. for ac_cxx_preproc_warn_flag in '' yes
  10886. do
  10887. # Use a header file that comes with gcc, so configuring glibc
  10888. # with a fresh cross-compiler works.
  10889. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10890. # <limits.h> exists even on freestanding compilers.
  10891. # On the NeXT, cc -E runs the code through the compiler's parser,
  10892. # not just through cpp. "Syntax error" is here to catch this case.
  10893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10894. /* end confdefs.h. */
  10895. #ifdef __STDC__
  10896. # include <limits.h>
  10897. #else
  10898. # include <assert.h>
  10899. #endif
  10900. Syntax error
  10901. _ACEOF
  10902. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10903. else
  10904. # Broken: fails on valid input.
  10905. continue
  10906. fi
  10907. rm -f conftest.err conftest.i conftest.$ac_ext
  10908. # OK, works on sane cases. Now check whether nonexistent headers
  10909. # can be detected and how.
  10910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10911. /* end confdefs.h. */
  10912. #include <ac_nonexistent.h>
  10913. _ACEOF
  10914. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10915. # Broken: success on invalid input.
  10916. continue
  10917. else
  10918. # Passes both tests.
  10919. ac_preproc_ok=:
  10920. break
  10921. fi
  10922. rm -f conftest.err conftest.i conftest.$ac_ext
  10923. done
  10924. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10925. rm -f conftest.i conftest.err conftest.$ac_ext
  10926. if $ac_preproc_ok; then :
  10927. else
  10928. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10929. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10930. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10931. See \`config.log' for more details" "$LINENO" 5; }
  10932. fi
  10933. ac_ext=c
  10934. ac_cpp='$CPP $CPPFLAGS'
  10935. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10936. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10937. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10938. else
  10939. _lt_caught_CXX_error=yes
  10940. fi
  10941. ac_ext=cpp
  10942. ac_cpp='$CXXCPP $CPPFLAGS'
  10943. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10944. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10945. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10946. archive_cmds_need_lc_CXX=no
  10947. allow_undefined_flag_CXX=
  10948. always_export_symbols_CXX=no
  10949. archive_expsym_cmds_CXX=
  10950. compiler_needs_object_CXX=no
  10951. export_dynamic_flag_spec_CXX=
  10952. hardcode_direct_CXX=no
  10953. hardcode_direct_absolute_CXX=no
  10954. hardcode_libdir_flag_spec_CXX=
  10955. hardcode_libdir_separator_CXX=
  10956. hardcode_minus_L_CXX=no
  10957. hardcode_shlibpath_var_CXX=unsupported
  10958. hardcode_automatic_CXX=no
  10959. inherit_rpath_CXX=no
  10960. module_cmds_CXX=
  10961. module_expsym_cmds_CXX=
  10962. link_all_deplibs_CXX=unknown
  10963. old_archive_cmds_CXX=$old_archive_cmds
  10964. reload_flag_CXX=$reload_flag
  10965. reload_cmds_CXX=$reload_cmds
  10966. no_undefined_flag_CXX=
  10967. whole_archive_flag_spec_CXX=
  10968. enable_shared_with_static_runtimes_CXX=no
  10969. # Source file extension for C++ test sources.
  10970. ac_ext=cpp
  10971. # Object file extension for compiled C++ test sources.
  10972. objext=o
  10973. objext_CXX=$objext
  10974. # No sense in running all these tests if we already determined that
  10975. # the CXX compiler isn't working. Some variables (like enable_shared)
  10976. # are currently assumed to apply to all compilers on this platform,
  10977. # and will be corrupted by setting them based on a non-working compiler.
  10978. if test "$_lt_caught_CXX_error" != yes; then
  10979. # Code to be used in simple compile tests
  10980. lt_simple_compile_test_code="int some_variable = 0;"
  10981. # Code to be used in simple link tests
  10982. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10983. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10984. # If no C compiler was specified, use CC.
  10985. LTCC=${LTCC-"$CC"}
  10986. # If no C compiler flags were specified, use CFLAGS.
  10987. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10988. # Allow CC to be a program name with arguments.
  10989. compiler=$CC
  10990. # save warnings/boilerplate of simple test code
  10991. ac_outfile=conftest.$ac_objext
  10992. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10993. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10994. _lt_compiler_boilerplate=`cat conftest.err`
  10995. $RM conftest*
  10996. ac_outfile=conftest.$ac_objext
  10997. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10998. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10999. _lt_linker_boilerplate=`cat conftest.err`
  11000. $RM -r conftest*
  11001. # Allow CC to be a program name with arguments.
  11002. lt_save_CC=$CC
  11003. lt_save_CFLAGS=$CFLAGS
  11004. lt_save_LD=$LD
  11005. lt_save_GCC=$GCC
  11006. GCC=$GXX
  11007. lt_save_with_gnu_ld=$with_gnu_ld
  11008. lt_save_path_LD=$lt_cv_path_LD
  11009. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11010. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11011. else
  11012. $as_unset lt_cv_prog_gnu_ld
  11013. fi
  11014. if test -n "${lt_cv_path_LDCXX+set}"; then
  11015. lt_cv_path_LD=$lt_cv_path_LDCXX
  11016. else
  11017. $as_unset lt_cv_path_LD
  11018. fi
  11019. test -z "${LDCXX+set}" || LD=$LDCXX
  11020. CC=${CXX-"c++"}
  11021. CFLAGS=$CXXFLAGS
  11022. compiler=$CC
  11023. compiler_CXX=$CC
  11024. for cc_temp in $compiler""; do
  11025. case $cc_temp in
  11026. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11027. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11028. \-*) ;;
  11029. *) break;;
  11030. esac
  11031. done
  11032. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11033. if test -n "$compiler"; then
  11034. # We don't want -fno-exception when compiling C++ code, so set the
  11035. # no_builtin_flag separately
  11036. if test "$GXX" = yes; then
  11037. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11038. else
  11039. lt_prog_compiler_no_builtin_flag_CXX=
  11040. fi
  11041. if test "$GXX" = yes; then
  11042. # Set up default GNU C++ configuration
  11043. # Check whether --with-gnu-ld was given.
  11044. if test "${with_gnu_ld+set}" = set; then :
  11045. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11046. else
  11047. with_gnu_ld=no
  11048. fi
  11049. ac_prog=ld
  11050. if test "$GCC" = yes; then
  11051. # Check if gcc -print-prog-name=ld gives a path.
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11053. $as_echo_n "checking for ld used by $CC... " >&6; }
  11054. case $host in
  11055. *-*-mingw*)
  11056. # gcc leaves a trailing carriage return which upsets mingw
  11057. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11058. *)
  11059. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11060. esac
  11061. case $ac_prog in
  11062. # Accept absolute paths.
  11063. [\\/]* | ?:[\\/]*)
  11064. re_direlt='/[^/][^/]*/\.\./'
  11065. # Canonicalize the pathname of ld
  11066. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11067. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11068. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11069. done
  11070. test -z "$LD" && LD="$ac_prog"
  11071. ;;
  11072. "")
  11073. # If it fails, then pretend we aren't using GCC.
  11074. ac_prog=ld
  11075. ;;
  11076. *)
  11077. # If it is relative, then search for the first ld in PATH.
  11078. with_gnu_ld=unknown
  11079. ;;
  11080. esac
  11081. elif test "$with_gnu_ld" = yes; then
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11083. $as_echo_n "checking for GNU ld... " >&6; }
  11084. else
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11086. $as_echo_n "checking for non-GNU ld... " >&6; }
  11087. fi
  11088. if ${lt_cv_path_LD+:} false; then :
  11089. $as_echo_n "(cached) " >&6
  11090. else
  11091. if test -z "$LD"; then
  11092. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11093. for ac_dir in $PATH; do
  11094. IFS="$lt_save_ifs"
  11095. test -z "$ac_dir" && ac_dir=.
  11096. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11097. lt_cv_path_LD="$ac_dir/$ac_prog"
  11098. # Check to see if the program is GNU ld. I'd rather use --version,
  11099. # but apparently some variants of GNU ld only accept -v.
  11100. # Break only if it was the GNU/non-GNU ld that we prefer.
  11101. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11102. *GNU* | *'with BFD'*)
  11103. test "$with_gnu_ld" != no && break
  11104. ;;
  11105. *)
  11106. test "$with_gnu_ld" != yes && break
  11107. ;;
  11108. esac
  11109. fi
  11110. done
  11111. IFS="$lt_save_ifs"
  11112. else
  11113. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11114. fi
  11115. fi
  11116. LD="$lt_cv_path_LD"
  11117. if test -n "$LD"; then
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11119. $as_echo "$LD" >&6; }
  11120. else
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11122. $as_echo "no" >&6; }
  11123. fi
  11124. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11126. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11127. if ${lt_cv_prog_gnu_ld+:} false; then :
  11128. $as_echo_n "(cached) " >&6
  11129. else
  11130. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11131. case `$LD -v 2>&1 </dev/null` in
  11132. *GNU* | *'with BFD'*)
  11133. lt_cv_prog_gnu_ld=yes
  11134. ;;
  11135. *)
  11136. lt_cv_prog_gnu_ld=no
  11137. ;;
  11138. esac
  11139. fi
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11141. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11142. with_gnu_ld=$lt_cv_prog_gnu_ld
  11143. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11144. # archiving commands below assume that GNU ld is being used.
  11145. if test "$with_gnu_ld" = yes; then
  11146. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11147. 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'
  11148. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11149. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11150. # If archive_cmds runs LD, not CC, wlarc should be empty
  11151. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11152. # investigate it a little bit more. (MM)
  11153. wlarc='${wl}'
  11154. # ancient GNU ld didn't support --whole-archive et. al.
  11155. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11156. $GREP 'no-whole-archive' > /dev/null; then
  11157. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11158. else
  11159. whole_archive_flag_spec_CXX=
  11160. fi
  11161. else
  11162. with_gnu_ld=no
  11163. wlarc=
  11164. # A generic and very simple default shared library creation
  11165. # command for GNU C++ for the case where it uses the native
  11166. # linker, instead of GNU ld. If possible, this setting should
  11167. # overridden to take advantage of the native linker features on
  11168. # the platform it is being used on.
  11169. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11170. fi
  11171. # Commands to make compiler produce verbose output that lists
  11172. # what "hidden" libraries, object files and flags are used when
  11173. # linking a shared library.
  11174. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11175. else
  11176. GXX=no
  11177. with_gnu_ld=no
  11178. wlarc=
  11179. fi
  11180. # PORTME: fill in a description of your system's C++ link characteristics
  11181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11182. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11183. ld_shlibs_CXX=yes
  11184. case $host_os in
  11185. aix3*)
  11186. # FIXME: insert proper C++ library support
  11187. ld_shlibs_CXX=no
  11188. ;;
  11189. aix[4-9]*)
  11190. if test "$host_cpu" = ia64; then
  11191. # On IA64, the linker does run time linking by default, so we don't
  11192. # have to do anything special.
  11193. aix_use_runtimelinking=no
  11194. exp_sym_flag='-Bexport'
  11195. no_entry_flag=""
  11196. else
  11197. aix_use_runtimelinking=no
  11198. # Test if we are trying to use run time linking or normal
  11199. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11200. # need to do runtime linking.
  11201. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11202. for ld_flag in $LDFLAGS; do
  11203. case $ld_flag in
  11204. *-brtl*)
  11205. aix_use_runtimelinking=yes
  11206. break
  11207. ;;
  11208. esac
  11209. done
  11210. ;;
  11211. esac
  11212. exp_sym_flag='-bexport'
  11213. no_entry_flag='-bnoentry'
  11214. fi
  11215. # When large executables or shared objects are built, AIX ld can
  11216. # have problems creating the table of contents. If linking a library
  11217. # or program results in "error TOC overflow" add -mminimal-toc to
  11218. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11219. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11220. archive_cmds_CXX=''
  11221. hardcode_direct_CXX=yes
  11222. hardcode_direct_absolute_CXX=yes
  11223. hardcode_libdir_separator_CXX=':'
  11224. link_all_deplibs_CXX=yes
  11225. file_list_spec_CXX='${wl}-f,'
  11226. if test "$GXX" = yes; then
  11227. case $host_os in aix4.[012]|aix4.[012].*)
  11228. # We only want to do this on AIX 4.2 and lower, the check
  11229. # below for broken collect2 doesn't work under 4.3+
  11230. collect2name=`${CC} -print-prog-name=collect2`
  11231. if test -f "$collect2name" &&
  11232. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11233. then
  11234. # We have reworked collect2
  11235. :
  11236. else
  11237. # We have old collect2
  11238. hardcode_direct_CXX=unsupported
  11239. # It fails to find uninstalled libraries when the uninstalled
  11240. # path is not listed in the libpath. Setting hardcode_minus_L
  11241. # to unsupported forces relinking
  11242. hardcode_minus_L_CXX=yes
  11243. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11244. hardcode_libdir_separator_CXX=
  11245. fi
  11246. esac
  11247. shared_flag='-shared'
  11248. if test "$aix_use_runtimelinking" = yes; then
  11249. shared_flag="$shared_flag "'${wl}-G'
  11250. fi
  11251. else
  11252. # not using gcc
  11253. if test "$host_cpu" = ia64; then
  11254. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11255. # chokes on -Wl,-G. The following line is correct:
  11256. shared_flag='-G'
  11257. else
  11258. if test "$aix_use_runtimelinking" = yes; then
  11259. shared_flag='${wl}-G'
  11260. else
  11261. shared_flag='${wl}-bM:SRE'
  11262. fi
  11263. fi
  11264. fi
  11265. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11266. # It seems that -bexpall does not export symbols beginning with
  11267. # underscore (_), so it is better to generate a list of symbols to
  11268. # export.
  11269. always_export_symbols_CXX=yes
  11270. if test "$aix_use_runtimelinking" = yes; then
  11271. # Warning - without using the other runtime loading flags (-brtl),
  11272. # -berok will link without error, but may produce a broken library.
  11273. allow_undefined_flag_CXX='-berok'
  11274. # Determine the default libpath from the value encoded in an empty
  11275. # executable.
  11276. if test "${lt_cv_aix_libpath+set}" = set; then
  11277. aix_libpath=$lt_cv_aix_libpath
  11278. else
  11279. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11280. $as_echo_n "(cached) " >&6
  11281. else
  11282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11283. /* end confdefs.h. */
  11284. int
  11285. main ()
  11286. {
  11287. ;
  11288. return 0;
  11289. }
  11290. _ACEOF
  11291. if ac_fn_cxx_try_link "$LINENO"; then :
  11292. lt_aix_libpath_sed='
  11293. /Import File Strings/,/^$/ {
  11294. /^0/ {
  11295. s/^0 *\([^ ]*\) *$/\1/
  11296. p
  11297. }
  11298. }'
  11299. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11300. # Check for a 64-bit object if we didn't find anything.
  11301. if test -z "$lt_cv_aix_libpath__CXX"; then
  11302. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11303. fi
  11304. fi
  11305. rm -f core conftest.err conftest.$ac_objext \
  11306. conftest$ac_exeext conftest.$ac_ext
  11307. if test -z "$lt_cv_aix_libpath__CXX"; then
  11308. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11309. fi
  11310. fi
  11311. aix_libpath=$lt_cv_aix_libpath__CXX
  11312. fi
  11313. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11314. 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"
  11315. else
  11316. if test "$host_cpu" = ia64; then
  11317. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11318. allow_undefined_flag_CXX="-z nodefs"
  11319. 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"
  11320. else
  11321. # Determine the default libpath from the value encoded in an
  11322. # empty executable.
  11323. if test "${lt_cv_aix_libpath+set}" = set; then
  11324. aix_libpath=$lt_cv_aix_libpath
  11325. else
  11326. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11327. $as_echo_n "(cached) " >&6
  11328. else
  11329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11330. /* end confdefs.h. */
  11331. int
  11332. main ()
  11333. {
  11334. ;
  11335. return 0;
  11336. }
  11337. _ACEOF
  11338. if ac_fn_cxx_try_link "$LINENO"; then :
  11339. lt_aix_libpath_sed='
  11340. /Import File Strings/,/^$/ {
  11341. /^0/ {
  11342. s/^0 *\([^ ]*\) *$/\1/
  11343. p
  11344. }
  11345. }'
  11346. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11347. # Check for a 64-bit object if we didn't find anything.
  11348. if test -z "$lt_cv_aix_libpath__CXX"; then
  11349. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11350. fi
  11351. fi
  11352. rm -f core conftest.err conftest.$ac_objext \
  11353. conftest$ac_exeext conftest.$ac_ext
  11354. if test -z "$lt_cv_aix_libpath__CXX"; then
  11355. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11356. fi
  11357. fi
  11358. aix_libpath=$lt_cv_aix_libpath__CXX
  11359. fi
  11360. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11361. # Warning - without using the other run time loading flags,
  11362. # -berok will link without error, but may produce a broken library.
  11363. no_undefined_flag_CXX=' ${wl}-bernotok'
  11364. allow_undefined_flag_CXX=' ${wl}-berok'
  11365. if test "$with_gnu_ld" = yes; then
  11366. # We only use this code for GNU lds that support --whole-archive.
  11367. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11368. else
  11369. # Exported symbols can be pulled into shared objects from archives
  11370. whole_archive_flag_spec_CXX='$convenience'
  11371. fi
  11372. archive_cmds_need_lc_CXX=yes
  11373. # This is similar to how AIX traditionally builds its shared
  11374. # libraries.
  11375. 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'
  11376. fi
  11377. fi
  11378. ;;
  11379. beos*)
  11380. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11381. allow_undefined_flag_CXX=unsupported
  11382. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11383. # support --undefined. This deserves some investigation. FIXME
  11384. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11385. else
  11386. ld_shlibs_CXX=no
  11387. fi
  11388. ;;
  11389. chorus*)
  11390. case $cc_basename in
  11391. *)
  11392. # FIXME: insert proper C++ library support
  11393. ld_shlibs_CXX=no
  11394. ;;
  11395. esac
  11396. ;;
  11397. cygwin* | mingw* | pw32* | cegcc*)
  11398. case $GXX,$cc_basename in
  11399. ,cl* | no,cl*)
  11400. # Native MSVC
  11401. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11402. # no search path for DLLs.
  11403. hardcode_libdir_flag_spec_CXX=' '
  11404. allow_undefined_flag_CXX=unsupported
  11405. always_export_symbols_CXX=yes
  11406. file_list_spec_CXX='@'
  11407. # Tell ltmain to make .lib files, not .a files.
  11408. libext=lib
  11409. # Tell ltmain to make .dll files, not .so files.
  11410. shrext_cmds=".dll"
  11411. # FIXME: Setting linknames here is a bad hack.
  11412. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11413. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11414. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11415. else
  11416. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11417. fi~
  11418. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11419. linknames='
  11420. # The linker will not automatically build a static lib if we build a DLL.
  11421. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11422. enable_shared_with_static_runtimes_CXX=yes
  11423. # Don't use ranlib
  11424. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11425. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11426. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11427. case $lt_outputfile in
  11428. *.exe|*.EXE) ;;
  11429. *)
  11430. lt_outputfile="$lt_outputfile.exe"
  11431. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11432. ;;
  11433. esac~
  11434. func_to_tool_file "$lt_outputfile"~
  11435. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11436. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11437. $RM "$lt_outputfile.manifest";
  11438. fi'
  11439. ;;
  11440. *)
  11441. # g++
  11442. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11443. # as there is no search path for DLLs.
  11444. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11445. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11446. allow_undefined_flag_CXX=unsupported
  11447. always_export_symbols_CXX=no
  11448. enable_shared_with_static_runtimes_CXX=yes
  11449. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11450. 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'
  11451. # If the export-symbols file already is a .def file (1st line
  11452. # is EXPORTS), use it as is; otherwise, prepend...
  11453. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11454. cp $export_symbols $output_objdir/$soname.def;
  11455. else
  11456. echo EXPORTS > $output_objdir/$soname.def;
  11457. cat $export_symbols >> $output_objdir/$soname.def;
  11458. fi~
  11459. $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'
  11460. else
  11461. ld_shlibs_CXX=no
  11462. fi
  11463. ;;
  11464. esac
  11465. ;;
  11466. darwin* | rhapsody*)
  11467. archive_cmds_need_lc_CXX=no
  11468. hardcode_direct_CXX=no
  11469. hardcode_automatic_CXX=yes
  11470. hardcode_shlibpath_var_CXX=unsupported
  11471. if test "$lt_cv_ld_force_load" = "yes"; then
  11472. 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\"`'
  11473. else
  11474. whole_archive_flag_spec_CXX=''
  11475. fi
  11476. link_all_deplibs_CXX=yes
  11477. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11478. case $cc_basename in
  11479. ifort*) _lt_dar_can_shared=yes ;;
  11480. *) _lt_dar_can_shared=$GCC ;;
  11481. esac
  11482. if test "$_lt_dar_can_shared" = "yes"; then
  11483. output_verbose_link_cmd=func_echo_all
  11484. 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}"
  11485. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11486. 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}"
  11487. 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}"
  11488. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11489. 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}"
  11490. 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}"
  11491. fi
  11492. else
  11493. ld_shlibs_CXX=no
  11494. fi
  11495. ;;
  11496. dgux*)
  11497. case $cc_basename in
  11498. ec++*)
  11499. # FIXME: insert proper C++ library support
  11500. ld_shlibs_CXX=no
  11501. ;;
  11502. ghcx*)
  11503. # Green Hills C++ Compiler
  11504. # FIXME: insert proper C++ library support
  11505. ld_shlibs_CXX=no
  11506. ;;
  11507. *)
  11508. # FIXME: insert proper C++ library support
  11509. ld_shlibs_CXX=no
  11510. ;;
  11511. esac
  11512. ;;
  11513. freebsd2.*)
  11514. # C++ shared libraries reported to be fairly broken before
  11515. # switch to ELF
  11516. ld_shlibs_CXX=no
  11517. ;;
  11518. freebsd-elf*)
  11519. archive_cmds_need_lc_CXX=no
  11520. ;;
  11521. freebsd* | dragonfly*)
  11522. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11523. # conventions
  11524. ld_shlibs_CXX=yes
  11525. ;;
  11526. gnu*)
  11527. ;;
  11528. haiku*)
  11529. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11530. link_all_deplibs_CXX=yes
  11531. ;;
  11532. hpux9*)
  11533. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11534. hardcode_libdir_separator_CXX=:
  11535. export_dynamic_flag_spec_CXX='${wl}-E'
  11536. hardcode_direct_CXX=yes
  11537. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11538. # but as the default
  11539. # location of the library.
  11540. case $cc_basename in
  11541. CC*)
  11542. # FIXME: insert proper C++ library support
  11543. ld_shlibs_CXX=no
  11544. ;;
  11545. aCC*)
  11546. 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'
  11547. # Commands to make compiler produce verbose output that lists
  11548. # what "hidden" libraries, object files and flags are used when
  11549. # linking a shared library.
  11550. #
  11551. # There doesn't appear to be a way to prevent this compiler from
  11552. # explicitly linking system object files so we need to strip them
  11553. # from the output so that they don't get included in the library
  11554. # dependencies.
  11555. 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"'
  11556. ;;
  11557. *)
  11558. if test "$GXX" = yes; then
  11559. 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'
  11560. else
  11561. # FIXME: insert proper C++ library support
  11562. ld_shlibs_CXX=no
  11563. fi
  11564. ;;
  11565. esac
  11566. ;;
  11567. hpux10*|hpux11*)
  11568. if test $with_gnu_ld = no; then
  11569. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11570. hardcode_libdir_separator_CXX=:
  11571. case $host_cpu in
  11572. hppa*64*|ia64*)
  11573. ;;
  11574. *)
  11575. export_dynamic_flag_spec_CXX='${wl}-E'
  11576. ;;
  11577. esac
  11578. fi
  11579. case $host_cpu in
  11580. hppa*64*|ia64*)
  11581. hardcode_direct_CXX=no
  11582. hardcode_shlibpath_var_CXX=no
  11583. ;;
  11584. *)
  11585. hardcode_direct_CXX=yes
  11586. hardcode_direct_absolute_CXX=yes
  11587. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11588. # but as the default
  11589. # location of the library.
  11590. ;;
  11591. esac
  11592. case $cc_basename in
  11593. CC*)
  11594. # FIXME: insert proper C++ library support
  11595. ld_shlibs_CXX=no
  11596. ;;
  11597. aCC*)
  11598. case $host_cpu in
  11599. hppa*64*)
  11600. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11601. ;;
  11602. ia64*)
  11603. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11604. ;;
  11605. *)
  11606. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11607. ;;
  11608. esac
  11609. # Commands to make compiler produce verbose output that lists
  11610. # what "hidden" libraries, object files and flags are used when
  11611. # linking a shared library.
  11612. #
  11613. # There doesn't appear to be a way to prevent this compiler from
  11614. # explicitly linking system object files so we need to strip them
  11615. # from the output so that they don't get included in the library
  11616. # dependencies.
  11617. 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"'
  11618. ;;
  11619. *)
  11620. if test "$GXX" = yes; then
  11621. if test $with_gnu_ld = no; then
  11622. case $host_cpu in
  11623. hppa*64*)
  11624. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11625. ;;
  11626. ia64*)
  11627. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11628. ;;
  11629. *)
  11630. 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'
  11631. ;;
  11632. esac
  11633. fi
  11634. else
  11635. # FIXME: insert proper C++ library support
  11636. ld_shlibs_CXX=no
  11637. fi
  11638. ;;
  11639. esac
  11640. ;;
  11641. interix[3-9]*)
  11642. hardcode_direct_CXX=no
  11643. hardcode_shlibpath_var_CXX=no
  11644. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11645. export_dynamic_flag_spec_CXX='${wl}-E'
  11646. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11647. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11648. # default) and relocated if they conflict, which is a slow very memory
  11649. # consuming and fragmenting process. To avoid this, we pick a random,
  11650. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11651. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11652. 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'
  11653. 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'
  11654. ;;
  11655. irix5* | irix6*)
  11656. case $cc_basename in
  11657. CC*)
  11658. # SGI C++
  11659. 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'
  11660. # Archives containing C++ object files must be created using
  11661. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11662. # necessary to make sure instantiated templates are included
  11663. # in the archive.
  11664. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11665. ;;
  11666. *)
  11667. if test "$GXX" = yes; then
  11668. if test "$with_gnu_ld" = no; then
  11669. 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'
  11670. else
  11671. 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'
  11672. fi
  11673. fi
  11674. link_all_deplibs_CXX=yes
  11675. ;;
  11676. esac
  11677. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11678. hardcode_libdir_separator_CXX=:
  11679. inherit_rpath_CXX=yes
  11680. ;;
  11681. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11682. case $cc_basename in
  11683. KCC*)
  11684. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11685. # KCC will only create a shared library if the output file
  11686. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11687. # to its proper name (with version) after linking.
  11688. 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'
  11689. 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'
  11690. # Commands to make compiler produce verbose output that lists
  11691. # what "hidden" libraries, object files and flags are used when
  11692. # linking a shared library.
  11693. #
  11694. # There doesn't appear to be a way to prevent this compiler from
  11695. # explicitly linking system object files so we need to strip them
  11696. # from the output so that they don't get included in the library
  11697. # dependencies.
  11698. 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"'
  11699. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11700. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11701. # Archives containing C++ object files must be created using
  11702. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11703. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11704. ;;
  11705. icpc* | ecpc* )
  11706. # Intel C++
  11707. with_gnu_ld=yes
  11708. # version 8.0 and above of icpc choke on multiply defined symbols
  11709. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11710. # earlier do not add the objects themselves.
  11711. case `$CC -V 2>&1` in
  11712. *"Version 7."*)
  11713. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11714. 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'
  11715. ;;
  11716. *) # Version 8.0 or newer
  11717. tmp_idyn=
  11718. case $host_cpu in
  11719. ia64*) tmp_idyn=' -i_dynamic';;
  11720. esac
  11721. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11722. 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'
  11723. ;;
  11724. esac
  11725. archive_cmds_need_lc_CXX=no
  11726. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11727. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11728. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11729. ;;
  11730. pgCC* | pgcpp*)
  11731. # Portland Group C++ compiler
  11732. case `$CC -V` in
  11733. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11734. prelink_cmds_CXX='tpldir=Template.dir~
  11735. rm -rf $tpldir~
  11736. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11737. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11738. old_archive_cmds_CXX='tpldir=Template.dir~
  11739. rm -rf $tpldir~
  11740. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11741. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11742. $RANLIB $oldlib'
  11743. archive_cmds_CXX='tpldir=Template.dir~
  11744. rm -rf $tpldir~
  11745. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11746. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11747. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11748. rm -rf $tpldir~
  11749. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11750. $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'
  11751. ;;
  11752. *) # Version 6 and above use weak symbols
  11753. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11754. 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'
  11755. ;;
  11756. esac
  11757. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11758. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11759. 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'
  11760. ;;
  11761. cxx*)
  11762. # Compaq C++
  11763. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11764. 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'
  11765. runpath_var=LD_RUN_PATH
  11766. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11767. hardcode_libdir_separator_CXX=:
  11768. # Commands to make compiler produce verbose output that lists
  11769. # what "hidden" libraries, object files and flags are used when
  11770. # linking a shared library.
  11771. #
  11772. # There doesn't appear to be a way to prevent this compiler from
  11773. # explicitly linking system object files so we need to strip them
  11774. # from the output so that they don't get included in the library
  11775. # dependencies.
  11776. 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'
  11777. ;;
  11778. xl* | mpixl* | bgxl*)
  11779. # IBM XL 8.0 on PPC, with GNU ld
  11780. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11781. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11782. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11783. if test "x$supports_anon_versioning" = xyes; then
  11784. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11785. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11786. echo "local: *; };" >> $output_objdir/$libname.ver~
  11787. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11788. fi
  11789. ;;
  11790. *)
  11791. case `$CC -V 2>&1 | sed 5q` in
  11792. *Sun\ C*)
  11793. # Sun C++ 5.9
  11794. no_undefined_flag_CXX=' -zdefs'
  11795. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11796. 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'
  11797. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11798. 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'
  11799. compiler_needs_object_CXX=yes
  11800. # Not sure whether something based on
  11801. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11802. # would be better.
  11803. output_verbose_link_cmd='func_echo_all'
  11804. # Archives containing C++ object files must be created using
  11805. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11806. # necessary to make sure instantiated templates are included
  11807. # in the archive.
  11808. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11809. ;;
  11810. esac
  11811. ;;
  11812. esac
  11813. ;;
  11814. lynxos*)
  11815. # FIXME: insert proper C++ library support
  11816. ld_shlibs_CXX=no
  11817. ;;
  11818. m88k*)
  11819. # FIXME: insert proper C++ library support
  11820. ld_shlibs_CXX=no
  11821. ;;
  11822. mvs*)
  11823. case $cc_basename in
  11824. cxx*)
  11825. # FIXME: insert proper C++ library support
  11826. ld_shlibs_CXX=no
  11827. ;;
  11828. *)
  11829. # FIXME: insert proper C++ library support
  11830. ld_shlibs_CXX=no
  11831. ;;
  11832. esac
  11833. ;;
  11834. netbsd*)
  11835. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11836. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11837. wlarc=
  11838. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11839. hardcode_direct_CXX=yes
  11840. hardcode_shlibpath_var_CXX=no
  11841. fi
  11842. # Workaround some broken pre-1.5 toolchains
  11843. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11844. ;;
  11845. *nto* | *qnx*)
  11846. ld_shlibs_CXX=yes
  11847. ;;
  11848. openbsd2*)
  11849. # C++ shared libraries are fairly broken
  11850. ld_shlibs_CXX=no
  11851. ;;
  11852. openbsd*)
  11853. if test -f /usr/libexec/ld.so; then
  11854. hardcode_direct_CXX=yes
  11855. hardcode_shlibpath_var_CXX=no
  11856. hardcode_direct_absolute_CXX=yes
  11857. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11858. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11859. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11860. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11861. export_dynamic_flag_spec_CXX='${wl}-E'
  11862. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11863. fi
  11864. output_verbose_link_cmd=func_echo_all
  11865. else
  11866. ld_shlibs_CXX=no
  11867. fi
  11868. ;;
  11869. osf3* | osf4* | osf5*)
  11870. case $cc_basename in
  11871. KCC*)
  11872. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11873. # KCC will only create a shared library if the output file
  11874. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11875. # to its proper name (with version) after linking.
  11876. 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'
  11877. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11878. hardcode_libdir_separator_CXX=:
  11879. # Archives containing C++ object files must be created using
  11880. # the KAI C++ compiler.
  11881. case $host in
  11882. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11883. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11884. esac
  11885. ;;
  11886. RCC*)
  11887. # Rational C++ 2.4.1
  11888. # FIXME: insert proper C++ library support
  11889. ld_shlibs_CXX=no
  11890. ;;
  11891. cxx*)
  11892. case $host in
  11893. osf3*)
  11894. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11895. 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'
  11896. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11897. ;;
  11898. *)
  11899. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11900. 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'
  11901. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11902. echo "-hidden">> $lib.exp~
  11903. $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~
  11904. $RM $lib.exp'
  11905. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11906. ;;
  11907. esac
  11908. hardcode_libdir_separator_CXX=:
  11909. # Commands to make compiler produce verbose output that lists
  11910. # what "hidden" libraries, object files and flags are used when
  11911. # linking a shared library.
  11912. #
  11913. # There doesn't appear to be a way to prevent this compiler from
  11914. # explicitly linking system object files so we need to strip them
  11915. # from the output so that they don't get included in the library
  11916. # dependencies.
  11917. 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"'
  11918. ;;
  11919. *)
  11920. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11921. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11922. case $host in
  11923. osf3*)
  11924. 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'
  11925. ;;
  11926. *)
  11927. 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'
  11928. ;;
  11929. esac
  11930. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11931. hardcode_libdir_separator_CXX=:
  11932. # Commands to make compiler produce verbose output that lists
  11933. # what "hidden" libraries, object files and flags are used when
  11934. # linking a shared library.
  11935. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11936. else
  11937. # FIXME: insert proper C++ library support
  11938. ld_shlibs_CXX=no
  11939. fi
  11940. ;;
  11941. esac
  11942. ;;
  11943. psos*)
  11944. # FIXME: insert proper C++ library support
  11945. ld_shlibs_CXX=no
  11946. ;;
  11947. sunos4*)
  11948. case $cc_basename in
  11949. CC*)
  11950. # Sun C++ 4.x
  11951. # FIXME: insert proper C++ library support
  11952. ld_shlibs_CXX=no
  11953. ;;
  11954. lcc*)
  11955. # Lucid
  11956. # FIXME: insert proper C++ library support
  11957. ld_shlibs_CXX=no
  11958. ;;
  11959. *)
  11960. # FIXME: insert proper C++ library support
  11961. ld_shlibs_CXX=no
  11962. ;;
  11963. esac
  11964. ;;
  11965. solaris*)
  11966. case $cc_basename in
  11967. CC* | sunCC*)
  11968. # Sun C++ 4.2, 5.x and Centerline C++
  11969. archive_cmds_need_lc_CXX=yes
  11970. no_undefined_flag_CXX=' -zdefs'
  11971. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11972. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11973. $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'
  11974. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11975. hardcode_shlibpath_var_CXX=no
  11976. case $host_os in
  11977. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11978. *)
  11979. # The compiler driver will combine and reorder linker options,
  11980. # but understands `-z linker_flag'.
  11981. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11982. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11983. ;;
  11984. esac
  11985. link_all_deplibs_CXX=yes
  11986. output_verbose_link_cmd='func_echo_all'
  11987. # Archives containing C++ object files must be created using
  11988. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11989. # necessary to make sure instantiated templates are included
  11990. # in the archive.
  11991. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11992. ;;
  11993. gcx*)
  11994. # Green Hills C++ Compiler
  11995. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11996. # The C++ compiler must be used to create the archive.
  11997. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11998. ;;
  11999. *)
  12000. # GNU C++ compiler with Solaris linker
  12001. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12002. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12003. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12004. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12005. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12006. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12007. # Commands to make compiler produce verbose output that lists
  12008. # what "hidden" libraries, object files and flags are used when
  12009. # linking a shared library.
  12010. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12011. else
  12012. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12013. # platform.
  12014. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12015. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12016. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12017. # Commands to make compiler produce verbose output that lists
  12018. # what "hidden" libraries, object files and flags are used when
  12019. # linking a shared library.
  12020. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12021. fi
  12022. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12023. case $host_os in
  12024. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12025. *)
  12026. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12027. ;;
  12028. esac
  12029. fi
  12030. ;;
  12031. esac
  12032. ;;
  12033. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12034. no_undefined_flag_CXX='${wl}-z,text'
  12035. archive_cmds_need_lc_CXX=no
  12036. hardcode_shlibpath_var_CXX=no
  12037. runpath_var='LD_RUN_PATH'
  12038. case $cc_basename in
  12039. CC*)
  12040. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12041. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12042. ;;
  12043. *)
  12044. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12045. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12046. ;;
  12047. esac
  12048. ;;
  12049. sysv5* | sco3.2v5* | sco5v6*)
  12050. # Note: We can NOT use -z defs as we might desire, because we do not
  12051. # link with -lc, and that would cause any symbols used from libc to
  12052. # always be unresolved, which means just about no library would
  12053. # ever link correctly. If we're not using GNU ld we use -z text
  12054. # though, which does catch some bad symbols but isn't as heavy-handed
  12055. # as -z defs.
  12056. no_undefined_flag_CXX='${wl}-z,text'
  12057. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12058. archive_cmds_need_lc_CXX=no
  12059. hardcode_shlibpath_var_CXX=no
  12060. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12061. hardcode_libdir_separator_CXX=':'
  12062. link_all_deplibs_CXX=yes
  12063. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12064. runpath_var='LD_RUN_PATH'
  12065. case $cc_basename in
  12066. CC*)
  12067. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12068. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12069. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12070. '"$old_archive_cmds_CXX"
  12071. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12072. '"$reload_cmds_CXX"
  12073. ;;
  12074. *)
  12075. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12076. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12077. ;;
  12078. esac
  12079. ;;
  12080. tandem*)
  12081. case $cc_basename in
  12082. NCC*)
  12083. # NonStop-UX NCC 3.20
  12084. # FIXME: insert proper C++ library support
  12085. ld_shlibs_CXX=no
  12086. ;;
  12087. *)
  12088. # FIXME: insert proper C++ library support
  12089. ld_shlibs_CXX=no
  12090. ;;
  12091. esac
  12092. ;;
  12093. vxworks*)
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. ;;
  12097. *)
  12098. # FIXME: insert proper C++ library support
  12099. ld_shlibs_CXX=no
  12100. ;;
  12101. esac
  12102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12103. $as_echo "$ld_shlibs_CXX" >&6; }
  12104. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12105. GCC_CXX="$GXX"
  12106. LD_CXX="$LD"
  12107. ## CAVEAT EMPTOR:
  12108. ## There is no encapsulation within the following macros, do not change
  12109. ## the running order or otherwise move them around unless you know exactly
  12110. ## what you are doing...
  12111. # Dependencies to place before and after the object being linked:
  12112. predep_objects_CXX=
  12113. postdep_objects_CXX=
  12114. predeps_CXX=
  12115. postdeps_CXX=
  12116. compiler_lib_search_path_CXX=
  12117. cat > conftest.$ac_ext <<_LT_EOF
  12118. class Foo
  12119. {
  12120. public:
  12121. Foo (void) { a = 0; }
  12122. private:
  12123. int a;
  12124. };
  12125. _LT_EOF
  12126. _lt_libdeps_save_CFLAGS=$CFLAGS
  12127. case "$CC $CFLAGS " in #(
  12128. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12129. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12130. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12131. esac
  12132. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12133. (eval $ac_compile) 2>&5
  12134. ac_status=$?
  12135. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12136. test $ac_status = 0; }; then
  12137. # Parse the compiler output and extract the necessary
  12138. # objects, libraries and library flags.
  12139. # Sentinel used to keep track of whether or not we are before
  12140. # the conftest object file.
  12141. pre_test_object_deps_done=no
  12142. for p in `eval "$output_verbose_link_cmd"`; do
  12143. case ${prev}${p} in
  12144. -L* | -R* | -l*)
  12145. # Some compilers place space between "-{L,R}" and the path.
  12146. # Remove the space.
  12147. if test $p = "-L" ||
  12148. test $p = "-R"; then
  12149. prev=$p
  12150. continue
  12151. fi
  12152. # Expand the sysroot to ease extracting the directories later.
  12153. if test -z "$prev"; then
  12154. case $p in
  12155. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12156. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12157. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12158. esac
  12159. fi
  12160. case $p in
  12161. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12162. esac
  12163. if test "$pre_test_object_deps_done" = no; then
  12164. case ${prev} in
  12165. -L | -R)
  12166. # Internal compiler library paths should come after those
  12167. # provided the user. The postdeps already come after the
  12168. # user supplied libs so there is no need to process them.
  12169. if test -z "$compiler_lib_search_path_CXX"; then
  12170. compiler_lib_search_path_CXX="${prev}${p}"
  12171. else
  12172. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12173. fi
  12174. ;;
  12175. # The "-l" case would never come before the object being
  12176. # linked, so don't bother handling this case.
  12177. esac
  12178. else
  12179. if test -z "$postdeps_CXX"; then
  12180. postdeps_CXX="${prev}${p}"
  12181. else
  12182. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12183. fi
  12184. fi
  12185. prev=
  12186. ;;
  12187. *.lto.$objext) ;; # Ignore GCC LTO objects
  12188. *.$objext)
  12189. # This assumes that the test object file only shows up
  12190. # once in the compiler output.
  12191. if test "$p" = "conftest.$objext"; then
  12192. pre_test_object_deps_done=yes
  12193. continue
  12194. fi
  12195. if test "$pre_test_object_deps_done" = no; then
  12196. if test -z "$predep_objects_CXX"; then
  12197. predep_objects_CXX="$p"
  12198. else
  12199. predep_objects_CXX="$predep_objects_CXX $p"
  12200. fi
  12201. else
  12202. if test -z "$postdep_objects_CXX"; then
  12203. postdep_objects_CXX="$p"
  12204. else
  12205. postdep_objects_CXX="$postdep_objects_CXX $p"
  12206. fi
  12207. fi
  12208. ;;
  12209. *) ;; # Ignore the rest.
  12210. esac
  12211. done
  12212. # Clean up.
  12213. rm -f a.out a.exe
  12214. else
  12215. echo "libtool.m4: error: problem compiling CXX test program"
  12216. fi
  12217. $RM -f confest.$objext
  12218. CFLAGS=$_lt_libdeps_save_CFLAGS
  12219. # PORTME: override above test on systems where it is broken
  12220. case $host_os in
  12221. interix[3-9]*)
  12222. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12223. # hack all around it, let's just trust "g++" to DTRT.
  12224. predep_objects_CXX=
  12225. postdep_objects_CXX=
  12226. postdeps_CXX=
  12227. ;;
  12228. linux*)
  12229. case `$CC -V 2>&1 | sed 5q` in
  12230. *Sun\ C*)
  12231. # Sun C++ 5.9
  12232. # The more standards-conforming stlport4 library is
  12233. # incompatible with the Cstd library. Avoid specifying
  12234. # it if it's in CXXFLAGS. Ignore libCrun as
  12235. # -library=stlport4 depends on it.
  12236. case " $CXX $CXXFLAGS " in
  12237. *" -library=stlport4 "*)
  12238. solaris_use_stlport4=yes
  12239. ;;
  12240. esac
  12241. if test "$solaris_use_stlport4" != yes; then
  12242. postdeps_CXX='-library=Cstd -library=Crun'
  12243. fi
  12244. ;;
  12245. esac
  12246. ;;
  12247. solaris*)
  12248. case $cc_basename in
  12249. CC* | sunCC*)
  12250. # The more standards-conforming stlport4 library is
  12251. # incompatible with the Cstd library. Avoid specifying
  12252. # it if it's in CXXFLAGS. Ignore libCrun as
  12253. # -library=stlport4 depends on it.
  12254. case " $CXX $CXXFLAGS " in
  12255. *" -library=stlport4 "*)
  12256. solaris_use_stlport4=yes
  12257. ;;
  12258. esac
  12259. # Adding this requires a known-good setup of shared libraries for
  12260. # Sun compiler versions before 5.6, else PIC objects from an old
  12261. # archive will be linked into the output, leading to subtle bugs.
  12262. if test "$solaris_use_stlport4" != yes; then
  12263. postdeps_CXX='-library=Cstd -library=Crun'
  12264. fi
  12265. ;;
  12266. esac
  12267. ;;
  12268. esac
  12269. case " $postdeps_CXX " in
  12270. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12271. esac
  12272. compiler_lib_search_dirs_CXX=
  12273. if test -n "${compiler_lib_search_path_CXX}"; then
  12274. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12275. fi
  12276. lt_prog_compiler_wl_CXX=
  12277. lt_prog_compiler_pic_CXX=
  12278. lt_prog_compiler_static_CXX=
  12279. # C++ specific cases for pic, static, wl, etc.
  12280. if test "$GXX" = yes; then
  12281. lt_prog_compiler_wl_CXX='-Wl,'
  12282. lt_prog_compiler_static_CXX='-static'
  12283. case $host_os in
  12284. aix*)
  12285. # All AIX code is PIC.
  12286. if test "$host_cpu" = ia64; then
  12287. # AIX 5 now supports IA64 processor
  12288. lt_prog_compiler_static_CXX='-Bstatic'
  12289. fi
  12290. ;;
  12291. amigaos*)
  12292. case $host_cpu in
  12293. powerpc)
  12294. # see comment about AmigaOS4 .so support
  12295. lt_prog_compiler_pic_CXX='-fPIC'
  12296. ;;
  12297. m68k)
  12298. # FIXME: we need at least 68020 code to build shared libraries, but
  12299. # adding the `-m68020' flag to GCC prevents building anything better,
  12300. # like `-m68040'.
  12301. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12302. ;;
  12303. esac
  12304. ;;
  12305. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12306. # PIC is the default for these OSes.
  12307. ;;
  12308. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12309. # This hack is so that the source file can tell whether it is being
  12310. # built for inclusion in a dll (and should export symbols for example).
  12311. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12312. # (--disable-auto-import) libraries
  12313. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12314. ;;
  12315. darwin* | rhapsody*)
  12316. # PIC is the default on this platform
  12317. # Common symbols not allowed in MH_DYLIB files
  12318. lt_prog_compiler_pic_CXX='-fno-common'
  12319. ;;
  12320. *djgpp*)
  12321. # DJGPP does not support shared libraries at all
  12322. lt_prog_compiler_pic_CXX=
  12323. ;;
  12324. haiku*)
  12325. # PIC is the default for Haiku.
  12326. # The "-static" flag exists, but is broken.
  12327. lt_prog_compiler_static_CXX=
  12328. ;;
  12329. interix[3-9]*)
  12330. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12331. # Instead, we relocate shared libraries at runtime.
  12332. ;;
  12333. sysv4*MP*)
  12334. if test -d /usr/nec; then
  12335. lt_prog_compiler_pic_CXX=-Kconform_pic
  12336. fi
  12337. ;;
  12338. hpux*)
  12339. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12340. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12341. # sets the default TLS model and affects inlining.
  12342. case $host_cpu in
  12343. hppa*64*)
  12344. ;;
  12345. *)
  12346. lt_prog_compiler_pic_CXX='-fPIC'
  12347. ;;
  12348. esac
  12349. ;;
  12350. *qnx* | *nto*)
  12351. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12352. # it will coredump.
  12353. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12354. ;;
  12355. *)
  12356. lt_prog_compiler_pic_CXX='-fPIC'
  12357. ;;
  12358. esac
  12359. else
  12360. case $host_os in
  12361. aix[4-9]*)
  12362. # All AIX code is PIC.
  12363. if test "$host_cpu" = ia64; then
  12364. # AIX 5 now supports IA64 processor
  12365. lt_prog_compiler_static_CXX='-Bstatic'
  12366. else
  12367. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12368. fi
  12369. ;;
  12370. chorus*)
  12371. case $cc_basename in
  12372. cxch68*)
  12373. # Green Hills C++ Compiler
  12374. # _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"
  12375. ;;
  12376. esac
  12377. ;;
  12378. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12379. # This hack is so that the source file can tell whether it is being
  12380. # built for inclusion in a dll (and should export symbols for example).
  12381. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12382. ;;
  12383. dgux*)
  12384. case $cc_basename in
  12385. ec++*)
  12386. lt_prog_compiler_pic_CXX='-KPIC'
  12387. ;;
  12388. ghcx*)
  12389. # Green Hills C++ Compiler
  12390. lt_prog_compiler_pic_CXX='-pic'
  12391. ;;
  12392. *)
  12393. ;;
  12394. esac
  12395. ;;
  12396. freebsd* | dragonfly*)
  12397. # FreeBSD uses GNU C++
  12398. ;;
  12399. hpux9* | hpux10* | hpux11*)
  12400. case $cc_basename in
  12401. CC*)
  12402. lt_prog_compiler_wl_CXX='-Wl,'
  12403. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12404. if test "$host_cpu" != ia64; then
  12405. lt_prog_compiler_pic_CXX='+Z'
  12406. fi
  12407. ;;
  12408. aCC*)
  12409. lt_prog_compiler_wl_CXX='-Wl,'
  12410. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12411. case $host_cpu in
  12412. hppa*64*|ia64*)
  12413. # +Z the default
  12414. ;;
  12415. *)
  12416. lt_prog_compiler_pic_CXX='+Z'
  12417. ;;
  12418. esac
  12419. ;;
  12420. *)
  12421. ;;
  12422. esac
  12423. ;;
  12424. interix*)
  12425. # This is c89, which is MS Visual C++ (no shared libs)
  12426. # Anyone wants to do a port?
  12427. ;;
  12428. irix5* | irix6* | nonstopux*)
  12429. case $cc_basename in
  12430. CC*)
  12431. lt_prog_compiler_wl_CXX='-Wl,'
  12432. lt_prog_compiler_static_CXX='-non_shared'
  12433. # CC pic flag -KPIC is the default.
  12434. ;;
  12435. *)
  12436. ;;
  12437. esac
  12438. ;;
  12439. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12440. case $cc_basename in
  12441. KCC*)
  12442. # KAI C++ Compiler
  12443. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12444. lt_prog_compiler_pic_CXX='-fPIC'
  12445. ;;
  12446. ecpc* )
  12447. # old Intel C++ for x86_64 which still supported -KPIC.
  12448. lt_prog_compiler_wl_CXX='-Wl,'
  12449. lt_prog_compiler_pic_CXX='-KPIC'
  12450. lt_prog_compiler_static_CXX='-static'
  12451. ;;
  12452. icpc* )
  12453. # Intel C++, used to be incompatible with GCC.
  12454. # ICC 10 doesn't accept -KPIC any more.
  12455. lt_prog_compiler_wl_CXX='-Wl,'
  12456. lt_prog_compiler_pic_CXX='-fPIC'
  12457. lt_prog_compiler_static_CXX='-static'
  12458. ;;
  12459. pgCC* | pgcpp*)
  12460. # Portland Group C++ compiler
  12461. lt_prog_compiler_wl_CXX='-Wl,'
  12462. lt_prog_compiler_pic_CXX='-fpic'
  12463. lt_prog_compiler_static_CXX='-Bstatic'
  12464. ;;
  12465. cxx*)
  12466. # Compaq C++
  12467. # Make sure the PIC flag is empty. It appears that all Alpha
  12468. # Linux and Compaq Tru64 Unix objects are PIC.
  12469. lt_prog_compiler_pic_CXX=
  12470. lt_prog_compiler_static_CXX='-non_shared'
  12471. ;;
  12472. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12473. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12474. lt_prog_compiler_wl_CXX='-Wl,'
  12475. lt_prog_compiler_pic_CXX='-qpic'
  12476. lt_prog_compiler_static_CXX='-qstaticlink'
  12477. ;;
  12478. *)
  12479. case `$CC -V 2>&1 | sed 5q` in
  12480. *Sun\ C*)
  12481. # Sun C++ 5.9
  12482. lt_prog_compiler_pic_CXX='-KPIC'
  12483. lt_prog_compiler_static_CXX='-Bstatic'
  12484. lt_prog_compiler_wl_CXX='-Qoption ld '
  12485. ;;
  12486. esac
  12487. ;;
  12488. esac
  12489. ;;
  12490. lynxos*)
  12491. ;;
  12492. m88k*)
  12493. ;;
  12494. mvs*)
  12495. case $cc_basename in
  12496. cxx*)
  12497. lt_prog_compiler_pic_CXX='-W c,exportall'
  12498. ;;
  12499. *)
  12500. ;;
  12501. esac
  12502. ;;
  12503. netbsd*)
  12504. ;;
  12505. *qnx* | *nto*)
  12506. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12507. # it will coredump.
  12508. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12509. ;;
  12510. osf3* | osf4* | osf5*)
  12511. case $cc_basename in
  12512. KCC*)
  12513. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12514. ;;
  12515. RCC*)
  12516. # Rational C++ 2.4.1
  12517. lt_prog_compiler_pic_CXX='-pic'
  12518. ;;
  12519. cxx*)
  12520. # Digital/Compaq C++
  12521. lt_prog_compiler_wl_CXX='-Wl,'
  12522. # Make sure the PIC flag is empty. It appears that all Alpha
  12523. # Linux and Compaq Tru64 Unix objects are PIC.
  12524. lt_prog_compiler_pic_CXX=
  12525. lt_prog_compiler_static_CXX='-non_shared'
  12526. ;;
  12527. *)
  12528. ;;
  12529. esac
  12530. ;;
  12531. psos*)
  12532. ;;
  12533. solaris*)
  12534. case $cc_basename in
  12535. CC* | sunCC*)
  12536. # Sun C++ 4.2, 5.x and Centerline C++
  12537. lt_prog_compiler_pic_CXX='-KPIC'
  12538. lt_prog_compiler_static_CXX='-Bstatic'
  12539. lt_prog_compiler_wl_CXX='-Qoption ld '
  12540. ;;
  12541. gcx*)
  12542. # Green Hills C++ Compiler
  12543. lt_prog_compiler_pic_CXX='-PIC'
  12544. ;;
  12545. *)
  12546. ;;
  12547. esac
  12548. ;;
  12549. sunos4*)
  12550. case $cc_basename in
  12551. CC*)
  12552. # Sun C++ 4.x
  12553. lt_prog_compiler_pic_CXX='-pic'
  12554. lt_prog_compiler_static_CXX='-Bstatic'
  12555. ;;
  12556. lcc*)
  12557. # Lucid
  12558. lt_prog_compiler_pic_CXX='-pic'
  12559. ;;
  12560. *)
  12561. ;;
  12562. esac
  12563. ;;
  12564. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12565. case $cc_basename in
  12566. CC*)
  12567. lt_prog_compiler_wl_CXX='-Wl,'
  12568. lt_prog_compiler_pic_CXX='-KPIC'
  12569. lt_prog_compiler_static_CXX='-Bstatic'
  12570. ;;
  12571. esac
  12572. ;;
  12573. tandem*)
  12574. case $cc_basename in
  12575. NCC*)
  12576. # NonStop-UX NCC 3.20
  12577. lt_prog_compiler_pic_CXX='-KPIC'
  12578. ;;
  12579. *)
  12580. ;;
  12581. esac
  12582. ;;
  12583. vxworks*)
  12584. ;;
  12585. *)
  12586. lt_prog_compiler_can_build_shared_CXX=no
  12587. ;;
  12588. esac
  12589. fi
  12590. case $host_os in
  12591. # For platforms which do not support PIC, -DPIC is meaningless:
  12592. *djgpp*)
  12593. lt_prog_compiler_pic_CXX=
  12594. ;;
  12595. *)
  12596. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12597. ;;
  12598. esac
  12599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12600. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12601. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12602. $as_echo_n "(cached) " >&6
  12603. else
  12604. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12605. fi
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12607. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12608. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12609. #
  12610. # Check to make sure the PIC flag actually works.
  12611. #
  12612. if test -n "$lt_prog_compiler_pic_CXX"; then
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12614. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12615. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. lt_cv_prog_compiler_pic_works_CXX=no
  12619. ac_outfile=conftest.$ac_objext
  12620. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12621. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12622. # Insert the option either (1) after the last *FLAGS variable, or
  12623. # (2) before a word containing "conftest.", or (3) at the end.
  12624. # Note that $ac_compile itself does not contain backslashes and begins
  12625. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12626. # The option is referenced via a variable to avoid confusing sed.
  12627. lt_compile=`echo "$ac_compile" | $SED \
  12628. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12629. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12630. -e 's:$: $lt_compiler_flag:'`
  12631. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12632. (eval "$lt_compile" 2>conftest.err)
  12633. ac_status=$?
  12634. cat conftest.err >&5
  12635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12636. if (exit $ac_status) && test -s "$ac_outfile"; then
  12637. # The compiler can only warn and ignore the option if not recognized
  12638. # So say no if there are warnings other than the usual output.
  12639. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12640. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12641. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12642. lt_cv_prog_compiler_pic_works_CXX=yes
  12643. fi
  12644. fi
  12645. $RM conftest*
  12646. fi
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12648. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12649. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12650. case $lt_prog_compiler_pic_CXX in
  12651. "" | " "*) ;;
  12652. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12653. esac
  12654. else
  12655. lt_prog_compiler_pic_CXX=
  12656. lt_prog_compiler_can_build_shared_CXX=no
  12657. fi
  12658. fi
  12659. #
  12660. # Check to make sure the static flag actually works.
  12661. #
  12662. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12664. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12665. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12666. $as_echo_n "(cached) " >&6
  12667. else
  12668. lt_cv_prog_compiler_static_works_CXX=no
  12669. save_LDFLAGS="$LDFLAGS"
  12670. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12671. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12672. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12673. # The linker can only warn and ignore the option if not recognized
  12674. # So say no if there are warnings
  12675. if test -s conftest.err; then
  12676. # Append any errors to the config.log.
  12677. cat conftest.err 1>&5
  12678. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12679. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12680. if diff conftest.exp conftest.er2 >/dev/null; then
  12681. lt_cv_prog_compiler_static_works_CXX=yes
  12682. fi
  12683. else
  12684. lt_cv_prog_compiler_static_works_CXX=yes
  12685. fi
  12686. fi
  12687. $RM -r conftest*
  12688. LDFLAGS="$save_LDFLAGS"
  12689. fi
  12690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12691. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12692. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12693. :
  12694. else
  12695. lt_prog_compiler_static_CXX=
  12696. fi
  12697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12698. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12699. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12700. $as_echo_n "(cached) " >&6
  12701. else
  12702. lt_cv_prog_compiler_c_o_CXX=no
  12703. $RM -r conftest 2>/dev/null
  12704. mkdir conftest
  12705. cd conftest
  12706. mkdir out
  12707. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12708. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12709. # Insert the option either (1) after the last *FLAGS variable, or
  12710. # (2) before a word containing "conftest.", or (3) at the end.
  12711. # Note that $ac_compile itself does not contain backslashes and begins
  12712. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12713. lt_compile=`echo "$ac_compile" | $SED \
  12714. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12715. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12716. -e 's:$: $lt_compiler_flag:'`
  12717. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12718. (eval "$lt_compile" 2>out/conftest.err)
  12719. ac_status=$?
  12720. cat out/conftest.err >&5
  12721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12722. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12723. then
  12724. # The compiler can only warn and ignore the option if not recognized
  12725. # So say no if there are warnings
  12726. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12727. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12728. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12729. lt_cv_prog_compiler_c_o_CXX=yes
  12730. fi
  12731. fi
  12732. chmod u+w . 2>&5
  12733. $RM conftest*
  12734. # SGI C++ compiler will create directory out/ii_files/ for
  12735. # template instantiation
  12736. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12737. $RM out/* && rmdir out
  12738. cd ..
  12739. $RM -r conftest
  12740. $RM conftest*
  12741. fi
  12742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12743. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12745. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12746. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12747. $as_echo_n "(cached) " >&6
  12748. else
  12749. lt_cv_prog_compiler_c_o_CXX=no
  12750. $RM -r conftest 2>/dev/null
  12751. mkdir conftest
  12752. cd conftest
  12753. mkdir out
  12754. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12755. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12756. # Insert the option either (1) after the last *FLAGS variable, or
  12757. # (2) before a word containing "conftest.", or (3) at the end.
  12758. # Note that $ac_compile itself does not contain backslashes and begins
  12759. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12760. lt_compile=`echo "$ac_compile" | $SED \
  12761. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12762. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12763. -e 's:$: $lt_compiler_flag:'`
  12764. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12765. (eval "$lt_compile" 2>out/conftest.err)
  12766. ac_status=$?
  12767. cat out/conftest.err >&5
  12768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12769. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12770. then
  12771. # The compiler can only warn and ignore the option if not recognized
  12772. # So say no if there are warnings
  12773. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12774. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12775. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12776. lt_cv_prog_compiler_c_o_CXX=yes
  12777. fi
  12778. fi
  12779. chmod u+w . 2>&5
  12780. $RM conftest*
  12781. # SGI C++ compiler will create directory out/ii_files/ for
  12782. # template instantiation
  12783. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12784. $RM out/* && rmdir out
  12785. cd ..
  12786. $RM -r conftest
  12787. $RM conftest*
  12788. fi
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12790. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12791. hard_links="nottested"
  12792. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12793. # do not overwrite the value of need_locks provided by the user
  12794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12795. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12796. hard_links=yes
  12797. $RM conftest*
  12798. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12799. touch conftest.a
  12800. ln conftest.a conftest.b 2>&5 || hard_links=no
  12801. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12803. $as_echo "$hard_links" >&6; }
  12804. if test "$hard_links" = no; then
  12805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12806. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12807. need_locks=warn
  12808. fi
  12809. else
  12810. need_locks=no
  12811. fi
  12812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12813. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12814. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12815. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12816. case $host_os in
  12817. aix[4-9]*)
  12818. # If we're using GNU nm, then we don't want the "-C" option.
  12819. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12820. # Also, AIX nm treats weak defined symbols like other global defined
  12821. # symbols, whereas GNU nm marks them as "W".
  12822. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12823. 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'
  12824. else
  12825. 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'
  12826. fi
  12827. ;;
  12828. pw32*)
  12829. export_symbols_cmds_CXX="$ltdll_cmds"
  12830. ;;
  12831. cygwin* | mingw* | cegcc*)
  12832. case $cc_basename in
  12833. cl*)
  12834. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12835. ;;
  12836. *)
  12837. 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'
  12838. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12839. ;;
  12840. esac
  12841. ;;
  12842. *)
  12843. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12844. ;;
  12845. esac
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12847. $as_echo "$ld_shlibs_CXX" >&6; }
  12848. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12849. with_gnu_ld_CXX=$with_gnu_ld
  12850. #
  12851. # Do we need to explicitly link libc?
  12852. #
  12853. case "x$archive_cmds_need_lc_CXX" in
  12854. x|xyes)
  12855. # Assume -lc should be added
  12856. archive_cmds_need_lc_CXX=yes
  12857. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12858. case $archive_cmds_CXX in
  12859. *'~'*)
  12860. # FIXME: we may have to deal with multi-command sequences.
  12861. ;;
  12862. '$CC '*)
  12863. # Test whether the compiler implicitly links with -lc since on some
  12864. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12865. # to ld, don't add -lc before -lgcc.
  12866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12867. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12868. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12869. $as_echo_n "(cached) " >&6
  12870. else
  12871. $RM conftest*
  12872. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12873. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12874. (eval $ac_compile) 2>&5
  12875. ac_status=$?
  12876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12877. test $ac_status = 0; } 2>conftest.err; then
  12878. soname=conftest
  12879. lib=conftest
  12880. libobjs=conftest.$ac_objext
  12881. deplibs=
  12882. wl=$lt_prog_compiler_wl_CXX
  12883. pic_flag=$lt_prog_compiler_pic_CXX
  12884. compiler_flags=-v
  12885. linker_flags=-v
  12886. verstring=
  12887. output_objdir=.
  12888. libname=conftest
  12889. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12890. allow_undefined_flag_CXX=
  12891. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12892. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12893. ac_status=$?
  12894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12895. test $ac_status = 0; }
  12896. then
  12897. lt_cv_archive_cmds_need_lc_CXX=no
  12898. else
  12899. lt_cv_archive_cmds_need_lc_CXX=yes
  12900. fi
  12901. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12902. else
  12903. cat conftest.err 1>&5
  12904. fi
  12905. $RM conftest*
  12906. fi
  12907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12908. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12909. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12910. ;;
  12911. esac
  12912. fi
  12913. ;;
  12914. esac
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12916. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12917. library_names_spec=
  12918. libname_spec='lib$name'
  12919. soname_spec=
  12920. shrext_cmds=".so"
  12921. postinstall_cmds=
  12922. postuninstall_cmds=
  12923. finish_cmds=
  12924. finish_eval=
  12925. shlibpath_var=
  12926. shlibpath_overrides_runpath=unknown
  12927. version_type=none
  12928. dynamic_linker="$host_os ld.so"
  12929. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12930. need_lib_prefix=unknown
  12931. hardcode_into_libs=no
  12932. # when you set need_version to no, make sure it does not cause -set_version
  12933. # flags to be left without arguments
  12934. need_version=unknown
  12935. case $host_os in
  12936. aix3*)
  12937. version_type=linux # correct to gnu/linux during the next big refactor
  12938. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12939. shlibpath_var=LIBPATH
  12940. # AIX 3 has no versioning support, so we append a major version to the name.
  12941. soname_spec='${libname}${release}${shared_ext}$major'
  12942. ;;
  12943. aix[4-9]*)
  12944. version_type=linux # correct to gnu/linux during the next big refactor
  12945. need_lib_prefix=no
  12946. need_version=no
  12947. hardcode_into_libs=yes
  12948. if test "$host_cpu" = ia64; then
  12949. # AIX 5 supports IA64
  12950. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12951. shlibpath_var=LD_LIBRARY_PATH
  12952. else
  12953. # With GCC up to 2.95.x, collect2 would create an import file
  12954. # for dependence libraries. The import file would start with
  12955. # the line `#! .'. This would cause the generated library to
  12956. # depend on `.', always an invalid library. This was fixed in
  12957. # development snapshots of GCC prior to 3.0.
  12958. case $host_os in
  12959. aix4 | aix4.[01] | aix4.[01].*)
  12960. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12961. echo ' yes '
  12962. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12963. :
  12964. else
  12965. can_build_shared=no
  12966. fi
  12967. ;;
  12968. esac
  12969. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12970. # soname into executable. Probably we can add versioning support to
  12971. # collect2, so additional links can be useful in future.
  12972. if test "$aix_use_runtimelinking" = yes; then
  12973. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12974. # instead of lib<name>.a to let people know that these are not
  12975. # typical AIX shared libraries.
  12976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12977. else
  12978. # We preserve .a as extension for shared libraries through AIX4.2
  12979. # and later when we are not doing run time linking.
  12980. library_names_spec='${libname}${release}.a $libname.a'
  12981. soname_spec='${libname}${release}${shared_ext}$major'
  12982. fi
  12983. shlibpath_var=LIBPATH
  12984. fi
  12985. ;;
  12986. amigaos*)
  12987. case $host_cpu in
  12988. powerpc)
  12989. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12990. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12992. ;;
  12993. m68k)
  12994. library_names_spec='$libname.ixlibrary $libname.a'
  12995. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12996. 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'
  12997. ;;
  12998. esac
  12999. ;;
  13000. beos*)
  13001. library_names_spec='${libname}${shared_ext}'
  13002. dynamic_linker="$host_os ld.so"
  13003. shlibpath_var=LIBRARY_PATH
  13004. ;;
  13005. bsdi[45]*)
  13006. version_type=linux # correct to gnu/linux during the next big refactor
  13007. need_version=no
  13008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13009. soname_spec='${libname}${release}${shared_ext}$major'
  13010. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13011. shlibpath_var=LD_LIBRARY_PATH
  13012. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13013. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13014. # the default ld.so.conf also contains /usr/contrib/lib and
  13015. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13016. # libtool to hard-code these into programs
  13017. ;;
  13018. cygwin* | mingw* | pw32* | cegcc*)
  13019. version_type=windows
  13020. shrext_cmds=".dll"
  13021. need_version=no
  13022. need_lib_prefix=no
  13023. case $GCC,$cc_basename in
  13024. yes,*)
  13025. # gcc
  13026. library_names_spec='$libname.dll.a'
  13027. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13028. postinstall_cmds='base_file=`basename \${file}`~
  13029. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13030. dldir=$destdir/`dirname \$dlpath`~
  13031. test -d \$dldir || mkdir -p \$dldir~
  13032. $install_prog $dir/$dlname \$dldir/$dlname~
  13033. chmod a+x \$dldir/$dlname~
  13034. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13035. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13036. fi'
  13037. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13038. dlpath=$dir/\$dldll~
  13039. $RM \$dlpath'
  13040. shlibpath_overrides_runpath=yes
  13041. case $host_os in
  13042. cygwin*)
  13043. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13044. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13045. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13046. ;;
  13047. mingw* | cegcc*)
  13048. # MinGW DLLs use traditional 'lib' prefix
  13049. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13050. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13051. ;;
  13052. pw32*)
  13053. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13054. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13055. ;;
  13056. esac
  13057. dynamic_linker='Win32 ld.exe'
  13058. ;;
  13059. *,cl*)
  13060. # Native MSVC
  13061. libname_spec='$name'
  13062. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13063. library_names_spec='${libname}.dll.lib'
  13064. case $build_os in
  13065. mingw*)
  13066. sys_lib_search_path_spec=
  13067. lt_save_ifs=$IFS
  13068. IFS=';'
  13069. for lt_path in $LIB
  13070. do
  13071. IFS=$lt_save_ifs
  13072. # Let DOS variable expansion print the short 8.3 style file name.
  13073. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13074. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13075. done
  13076. IFS=$lt_save_ifs
  13077. # Convert to MSYS style.
  13078. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13079. ;;
  13080. cygwin*)
  13081. # Convert to unix form, then to dos form, then back to unix form
  13082. # but this time dos style (no spaces!) so that the unix form looks
  13083. # like /cygdrive/c/PROGRA~1:/cygdr...
  13084. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13085. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13086. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13087. ;;
  13088. *)
  13089. sys_lib_search_path_spec="$LIB"
  13090. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13091. # It is most probably a Windows format PATH.
  13092. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13093. else
  13094. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13095. fi
  13096. # FIXME: find the short name or the path components, as spaces are
  13097. # common. (e.g. "Program Files" -> "PROGRA~1")
  13098. ;;
  13099. esac
  13100. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13101. postinstall_cmds='base_file=`basename \${file}`~
  13102. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13103. dldir=$destdir/`dirname \$dlpath`~
  13104. test -d \$dldir || mkdir -p \$dldir~
  13105. $install_prog $dir/$dlname \$dldir/$dlname'
  13106. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13107. dlpath=$dir/\$dldll~
  13108. $RM \$dlpath'
  13109. shlibpath_overrides_runpath=yes
  13110. dynamic_linker='Win32 link.exe'
  13111. ;;
  13112. *)
  13113. # Assume MSVC wrapper
  13114. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13115. dynamic_linker='Win32 ld.exe'
  13116. ;;
  13117. esac
  13118. # FIXME: first we should search . and the directory the executable is in
  13119. shlibpath_var=PATH
  13120. ;;
  13121. darwin* | rhapsody*)
  13122. dynamic_linker="$host_os dyld"
  13123. version_type=darwin
  13124. need_lib_prefix=no
  13125. need_version=no
  13126. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13127. soname_spec='${libname}${release}${major}$shared_ext'
  13128. shlibpath_overrides_runpath=yes
  13129. shlibpath_var=DYLD_LIBRARY_PATH
  13130. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13131. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13132. ;;
  13133. dgux*)
  13134. version_type=linux # correct to gnu/linux during the next big refactor
  13135. need_lib_prefix=no
  13136. need_version=no
  13137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13138. soname_spec='${libname}${release}${shared_ext}$major'
  13139. shlibpath_var=LD_LIBRARY_PATH
  13140. ;;
  13141. freebsd* | dragonfly*)
  13142. # DragonFly does not have aout. When/if they implement a new
  13143. # versioning mechanism, adjust this.
  13144. if test -x /usr/bin/objformat; then
  13145. objformat=`/usr/bin/objformat`
  13146. else
  13147. case $host_os in
  13148. freebsd[23].*) objformat=aout ;;
  13149. *) objformat=elf ;;
  13150. esac
  13151. fi
  13152. version_type=freebsd-$objformat
  13153. case $version_type in
  13154. freebsd-elf*)
  13155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13156. need_version=no
  13157. need_lib_prefix=no
  13158. ;;
  13159. freebsd-*)
  13160. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13161. need_version=yes
  13162. ;;
  13163. esac
  13164. shlibpath_var=LD_LIBRARY_PATH
  13165. case $host_os in
  13166. freebsd2.*)
  13167. shlibpath_overrides_runpath=yes
  13168. ;;
  13169. freebsd3.[01]* | freebsdelf3.[01]*)
  13170. shlibpath_overrides_runpath=yes
  13171. hardcode_into_libs=yes
  13172. ;;
  13173. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13174. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13175. shlibpath_overrides_runpath=no
  13176. hardcode_into_libs=yes
  13177. ;;
  13178. *) # from 4.6 on, and DragonFly
  13179. shlibpath_overrides_runpath=yes
  13180. hardcode_into_libs=yes
  13181. ;;
  13182. esac
  13183. ;;
  13184. gnu*)
  13185. version_type=linux # correct to gnu/linux during the next big refactor
  13186. need_lib_prefix=no
  13187. need_version=no
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. shlibpath_overrides_runpath=no
  13192. hardcode_into_libs=yes
  13193. ;;
  13194. haiku*)
  13195. version_type=linux # correct to gnu/linux during the next big refactor
  13196. need_lib_prefix=no
  13197. need_version=no
  13198. dynamic_linker="$host_os runtime_loader"
  13199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13200. soname_spec='${libname}${release}${shared_ext}$major'
  13201. shlibpath_var=LIBRARY_PATH
  13202. shlibpath_overrides_runpath=yes
  13203. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13204. hardcode_into_libs=yes
  13205. ;;
  13206. hpux9* | hpux10* | hpux11*)
  13207. # Give a soname corresponding to the major version so that dld.sl refuses to
  13208. # link against other versions.
  13209. version_type=sunos
  13210. need_lib_prefix=no
  13211. need_version=no
  13212. case $host_cpu in
  13213. ia64*)
  13214. shrext_cmds='.so'
  13215. hardcode_into_libs=yes
  13216. dynamic_linker="$host_os dld.so"
  13217. shlibpath_var=LD_LIBRARY_PATH
  13218. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13220. soname_spec='${libname}${release}${shared_ext}$major'
  13221. if test "X$HPUX_IA64_MODE" = X32; then
  13222. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13223. else
  13224. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13225. fi
  13226. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13227. ;;
  13228. hppa*64*)
  13229. shrext_cmds='.sl'
  13230. hardcode_into_libs=yes
  13231. dynamic_linker="$host_os dld.sl"
  13232. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13233. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13235. soname_spec='${libname}${release}${shared_ext}$major'
  13236. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13237. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13238. ;;
  13239. *)
  13240. shrext_cmds='.sl'
  13241. dynamic_linker="$host_os dld.sl"
  13242. shlibpath_var=SHLIB_PATH
  13243. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13245. soname_spec='${libname}${release}${shared_ext}$major'
  13246. ;;
  13247. esac
  13248. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13249. postinstall_cmds='chmod 555 $lib'
  13250. # or fails outright, so override atomically:
  13251. install_override_mode=555
  13252. ;;
  13253. interix[3-9]*)
  13254. version_type=linux # correct to gnu/linux during the next big refactor
  13255. need_lib_prefix=no
  13256. need_version=no
  13257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13258. soname_spec='${libname}${release}${shared_ext}$major'
  13259. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13260. shlibpath_var=LD_LIBRARY_PATH
  13261. shlibpath_overrides_runpath=no
  13262. hardcode_into_libs=yes
  13263. ;;
  13264. irix5* | irix6* | nonstopux*)
  13265. case $host_os in
  13266. nonstopux*) version_type=nonstopux ;;
  13267. *)
  13268. if test "$lt_cv_prog_gnu_ld" = yes; then
  13269. version_type=linux # correct to gnu/linux during the next big refactor
  13270. else
  13271. version_type=irix
  13272. fi ;;
  13273. esac
  13274. need_lib_prefix=no
  13275. need_version=no
  13276. soname_spec='${libname}${release}${shared_ext}$major'
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13278. case $host_os in
  13279. irix5* | nonstopux*)
  13280. libsuff= shlibsuff=
  13281. ;;
  13282. *)
  13283. case $LD in # libtool.m4 will add one of these switches to LD
  13284. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13285. libsuff= shlibsuff= libmagic=32-bit;;
  13286. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13287. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13288. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13289. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13290. *) libsuff= shlibsuff= libmagic=never-match;;
  13291. esac
  13292. ;;
  13293. esac
  13294. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13295. shlibpath_overrides_runpath=no
  13296. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13297. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13298. hardcode_into_libs=yes
  13299. ;;
  13300. # No shared lib support for Linux oldld, aout, or coff.
  13301. linux*oldld* | linux*aout* | linux*coff*)
  13302. dynamic_linker=no
  13303. ;;
  13304. # This must be glibc/ELF.
  13305. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13306. version_type=linux # correct to gnu/linux during the next big refactor
  13307. need_lib_prefix=no
  13308. need_version=no
  13309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13310. soname_spec='${libname}${release}${shared_ext}$major'
  13311. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13312. shlibpath_var=LD_LIBRARY_PATH
  13313. shlibpath_overrides_runpath=no
  13314. # Some binutils ld are patched to set DT_RUNPATH
  13315. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13316. $as_echo_n "(cached) " >&6
  13317. else
  13318. lt_cv_shlibpath_overrides_runpath=no
  13319. save_LDFLAGS=$LDFLAGS
  13320. save_libdir=$libdir
  13321. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13322. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13324. /* end confdefs.h. */
  13325. int
  13326. main ()
  13327. {
  13328. ;
  13329. return 0;
  13330. }
  13331. _ACEOF
  13332. if ac_fn_cxx_try_link "$LINENO"; then :
  13333. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13334. lt_cv_shlibpath_overrides_runpath=yes
  13335. fi
  13336. fi
  13337. rm -f core conftest.err conftest.$ac_objext \
  13338. conftest$ac_exeext conftest.$ac_ext
  13339. LDFLAGS=$save_LDFLAGS
  13340. libdir=$save_libdir
  13341. fi
  13342. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13343. # This implies no fast_install, which is unacceptable.
  13344. # Some rework will be needed to allow for fast_install
  13345. # before this can be enabled.
  13346. hardcode_into_libs=yes
  13347. # Append ld.so.conf contents to the search path
  13348. if test -f /etc/ld.so.conf; then
  13349. 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' ' '`
  13350. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13351. fi
  13352. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13353. # powerpc, because MkLinux only supported shared libraries with the
  13354. # GNU dynamic linker. Since this was broken with cross compilers,
  13355. # most powerpc-linux boxes support dynamic linking these days and
  13356. # people can always --disable-shared, the test was removed, and we
  13357. # assume the GNU/Linux dynamic linker is in use.
  13358. dynamic_linker='GNU/Linux ld.so'
  13359. ;;
  13360. netbsd*)
  13361. version_type=sunos
  13362. need_lib_prefix=no
  13363. need_version=no
  13364. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13366. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13367. dynamic_linker='NetBSD (a.out) ld.so'
  13368. else
  13369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13370. soname_spec='${libname}${release}${shared_ext}$major'
  13371. dynamic_linker='NetBSD ld.elf_so'
  13372. fi
  13373. shlibpath_var=LD_LIBRARY_PATH
  13374. shlibpath_overrides_runpath=yes
  13375. hardcode_into_libs=yes
  13376. ;;
  13377. newsos6)
  13378. version_type=linux # correct to gnu/linux during the next big refactor
  13379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13380. shlibpath_var=LD_LIBRARY_PATH
  13381. shlibpath_overrides_runpath=yes
  13382. ;;
  13383. *nto* | *qnx*)
  13384. version_type=qnx
  13385. need_lib_prefix=no
  13386. need_version=no
  13387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13388. soname_spec='${libname}${release}${shared_ext}$major'
  13389. shlibpath_var=LD_LIBRARY_PATH
  13390. shlibpath_overrides_runpath=no
  13391. hardcode_into_libs=yes
  13392. dynamic_linker='ldqnx.so'
  13393. ;;
  13394. openbsd*)
  13395. version_type=sunos
  13396. sys_lib_dlsearch_path_spec="/usr/lib"
  13397. need_lib_prefix=no
  13398. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13399. case $host_os in
  13400. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13401. *) need_version=no ;;
  13402. esac
  13403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13404. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13405. shlibpath_var=LD_LIBRARY_PATH
  13406. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13407. case $host_os in
  13408. openbsd2.[89] | openbsd2.[89].*)
  13409. shlibpath_overrides_runpath=no
  13410. ;;
  13411. *)
  13412. shlibpath_overrides_runpath=yes
  13413. ;;
  13414. esac
  13415. else
  13416. shlibpath_overrides_runpath=yes
  13417. fi
  13418. ;;
  13419. os2*)
  13420. libname_spec='$name'
  13421. shrext_cmds=".dll"
  13422. need_lib_prefix=no
  13423. library_names_spec='$libname${shared_ext} $libname.a'
  13424. dynamic_linker='OS/2 ld.exe'
  13425. shlibpath_var=LIBPATH
  13426. ;;
  13427. osf3* | osf4* | osf5*)
  13428. version_type=osf
  13429. need_lib_prefix=no
  13430. need_version=no
  13431. soname_spec='${libname}${release}${shared_ext}$major'
  13432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13433. shlibpath_var=LD_LIBRARY_PATH
  13434. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13435. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13436. ;;
  13437. rdos*)
  13438. dynamic_linker=no
  13439. ;;
  13440. solaris*)
  13441. version_type=linux # correct to gnu/linux during the next big refactor
  13442. need_lib_prefix=no
  13443. need_version=no
  13444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13445. soname_spec='${libname}${release}${shared_ext}$major'
  13446. shlibpath_var=LD_LIBRARY_PATH
  13447. shlibpath_overrides_runpath=yes
  13448. hardcode_into_libs=yes
  13449. # ldd complains unless libraries are executable
  13450. postinstall_cmds='chmod +x $lib'
  13451. ;;
  13452. sunos4*)
  13453. version_type=sunos
  13454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13455. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13456. shlibpath_var=LD_LIBRARY_PATH
  13457. shlibpath_overrides_runpath=yes
  13458. if test "$with_gnu_ld" = yes; then
  13459. need_lib_prefix=no
  13460. fi
  13461. need_version=yes
  13462. ;;
  13463. sysv4 | sysv4.3*)
  13464. version_type=linux # correct to gnu/linux during the next big refactor
  13465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13466. soname_spec='${libname}${release}${shared_ext}$major'
  13467. shlibpath_var=LD_LIBRARY_PATH
  13468. case $host_vendor in
  13469. sni)
  13470. shlibpath_overrides_runpath=no
  13471. need_lib_prefix=no
  13472. runpath_var=LD_RUN_PATH
  13473. ;;
  13474. siemens)
  13475. need_lib_prefix=no
  13476. ;;
  13477. motorola)
  13478. need_lib_prefix=no
  13479. need_version=no
  13480. shlibpath_overrides_runpath=no
  13481. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13482. ;;
  13483. esac
  13484. ;;
  13485. sysv4*MP*)
  13486. if test -d /usr/nec ;then
  13487. version_type=linux # correct to gnu/linux during the next big refactor
  13488. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13489. soname_spec='$libname${shared_ext}.$major'
  13490. shlibpath_var=LD_LIBRARY_PATH
  13491. fi
  13492. ;;
  13493. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13494. version_type=freebsd-elf
  13495. need_lib_prefix=no
  13496. need_version=no
  13497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13498. soname_spec='${libname}${release}${shared_ext}$major'
  13499. shlibpath_var=LD_LIBRARY_PATH
  13500. shlibpath_overrides_runpath=yes
  13501. hardcode_into_libs=yes
  13502. if test "$with_gnu_ld" = yes; then
  13503. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13504. else
  13505. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13506. case $host_os in
  13507. sco3.2v5*)
  13508. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13509. ;;
  13510. esac
  13511. fi
  13512. sys_lib_dlsearch_path_spec='/usr/lib'
  13513. ;;
  13514. tpf*)
  13515. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13516. version_type=linux # correct to gnu/linux during the next big refactor
  13517. need_lib_prefix=no
  13518. need_version=no
  13519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13520. shlibpath_var=LD_LIBRARY_PATH
  13521. shlibpath_overrides_runpath=no
  13522. hardcode_into_libs=yes
  13523. ;;
  13524. uts4*)
  13525. version_type=linux # correct to gnu/linux during the next big refactor
  13526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13527. soname_spec='${libname}${release}${shared_ext}$major'
  13528. shlibpath_var=LD_LIBRARY_PATH
  13529. ;;
  13530. *)
  13531. dynamic_linker=no
  13532. ;;
  13533. esac
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13535. $as_echo "$dynamic_linker" >&6; }
  13536. test "$dynamic_linker" = no && can_build_shared=no
  13537. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13538. if test "$GCC" = yes; then
  13539. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13540. fi
  13541. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13542. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13543. fi
  13544. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13545. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13546. fi
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13548. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13549. hardcode_action_CXX=
  13550. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13551. test -n "$runpath_var_CXX" ||
  13552. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13553. # We can hardcode non-existent directories.
  13554. if test "$hardcode_direct_CXX" != no &&
  13555. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13556. # have to relink, otherwise we might link with an installed library
  13557. # when we should be linking with a yet-to-be-installed one
  13558. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13559. test "$hardcode_minus_L_CXX" != no; then
  13560. # Linking always hardcodes the temporary library directory.
  13561. hardcode_action_CXX=relink
  13562. else
  13563. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13564. hardcode_action_CXX=immediate
  13565. fi
  13566. else
  13567. # We cannot hardcode anything, or else we can only hardcode existing
  13568. # directories.
  13569. hardcode_action_CXX=unsupported
  13570. fi
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13572. $as_echo "$hardcode_action_CXX" >&6; }
  13573. if test "$hardcode_action_CXX" = relink ||
  13574. test "$inherit_rpath_CXX" = yes; then
  13575. # Fast installation is not supported
  13576. enable_fast_install=no
  13577. elif test "$shlibpath_overrides_runpath" = yes ||
  13578. test "$enable_shared" = no; then
  13579. # Fast installation is not necessary
  13580. enable_fast_install=needless
  13581. fi
  13582. fi # test -n "$compiler"
  13583. CC=$lt_save_CC
  13584. CFLAGS=$lt_save_CFLAGS
  13585. LDCXX=$LD
  13586. LD=$lt_save_LD
  13587. GCC=$lt_save_GCC
  13588. with_gnu_ld=$lt_save_with_gnu_ld
  13589. lt_cv_path_LDCXX=$lt_cv_path_LD
  13590. lt_cv_path_LD=$lt_save_path_LD
  13591. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13592. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13593. fi # test "$_lt_caught_CXX_error" != yes
  13594. ac_ext=c
  13595. ac_cpp='$CPP $CPPFLAGS'
  13596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13599. # Find a good install program. We prefer a C program (faster),
  13600. # so one script is as good as another. But avoid the broken or
  13601. # incompatible versions:
  13602. # SysV /etc/install, /usr/sbin/install
  13603. # SunOS /usr/etc/install
  13604. # IRIX /sbin/install
  13605. # AIX /bin/install
  13606. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13607. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13608. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13609. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13610. # OS/2's system install, which has a completely different semantic
  13611. # ./install, which can be erroneously created by make from ./install.sh.
  13612. # Reject install programs that cannot install multiple files.
  13613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13614. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13615. if test -z "$INSTALL"; then
  13616. if ${ac_cv_path_install+:} false; then :
  13617. $as_echo_n "(cached) " >&6
  13618. else
  13619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13620. for as_dir in $PATH
  13621. do
  13622. IFS=$as_save_IFS
  13623. test -z "$as_dir" && as_dir=.
  13624. # Account for people who put trailing slashes in PATH elements.
  13625. case $as_dir/ in #((
  13626. ./ | .// | /[cC]/* | \
  13627. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13628. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13629. /usr/ucb/* ) ;;
  13630. *)
  13631. # OSF1 and SCO ODT 3.0 have their own names for install.
  13632. # Don't use installbsd from OSF since it installs stuff as root
  13633. # by default.
  13634. for ac_prog in ginstall scoinst install; do
  13635. for ac_exec_ext in '' $ac_executable_extensions; do
  13636. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13637. if test $ac_prog = install &&
  13638. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13639. # AIX install. It has an incompatible calling convention.
  13640. :
  13641. elif test $ac_prog = install &&
  13642. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13643. # program-specific install script used by HP pwplus--don't use.
  13644. :
  13645. else
  13646. rm -rf conftest.one conftest.two conftest.dir
  13647. echo one > conftest.one
  13648. echo two > conftest.two
  13649. mkdir conftest.dir
  13650. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13651. test -s conftest.one && test -s conftest.two &&
  13652. test -s conftest.dir/conftest.one &&
  13653. test -s conftest.dir/conftest.two
  13654. then
  13655. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13656. break 3
  13657. fi
  13658. fi
  13659. fi
  13660. done
  13661. done
  13662. ;;
  13663. esac
  13664. done
  13665. IFS=$as_save_IFS
  13666. rm -rf conftest.one conftest.two conftest.dir
  13667. fi
  13668. if test "${ac_cv_path_install+set}" = set; then
  13669. INSTALL=$ac_cv_path_install
  13670. else
  13671. # As a last resort, use the slow shell script. Don't cache a
  13672. # value for INSTALL within a source directory, because that will
  13673. # break other packages using the cache if that directory is
  13674. # removed, or if the value is a relative name.
  13675. INSTALL=$ac_install_sh
  13676. fi
  13677. fi
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13679. $as_echo "$INSTALL" >&6; }
  13680. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13681. # It thinks the first close brace ends the variable substitution.
  13682. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13683. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13684. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13686. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13687. set x ${MAKE-make}
  13688. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13689. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13690. $as_echo_n "(cached) " >&6
  13691. else
  13692. cat >conftest.make <<\_ACEOF
  13693. SHELL = /bin/sh
  13694. all:
  13695. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13696. _ACEOF
  13697. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13698. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13699. *@@@%%%=?*=@@@%%%*)
  13700. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13701. *)
  13702. eval ac_cv_prog_make_${ac_make}_set=no;;
  13703. esac
  13704. rm -f conftest.make
  13705. fi
  13706. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13708. $as_echo "yes" >&6; }
  13709. SET_MAKE=
  13710. else
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13712. $as_echo "no" >&6; }
  13713. SET_MAKE="MAKE=${MAKE-make}"
  13714. fi
  13715. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13716. if test -n "$ac_tool_prefix"; then
  13717. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13718. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13720. $as_echo_n "checking for $ac_word... " >&6; }
  13721. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13722. $as_echo_n "(cached) " >&6
  13723. else
  13724. case $PKG_CONFIG in
  13725. [\\/]* | ?:[\\/]*)
  13726. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13727. ;;
  13728. *)
  13729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13730. for as_dir in $PATH
  13731. do
  13732. IFS=$as_save_IFS
  13733. test -z "$as_dir" && as_dir=.
  13734. for ac_exec_ext in '' $ac_executable_extensions; do
  13735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13736. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13738. break 2
  13739. fi
  13740. done
  13741. done
  13742. IFS=$as_save_IFS
  13743. ;;
  13744. esac
  13745. fi
  13746. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13747. if test -n "$PKG_CONFIG"; then
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13749. $as_echo "$PKG_CONFIG" >&6; }
  13750. else
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13752. $as_echo "no" >&6; }
  13753. fi
  13754. fi
  13755. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13756. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13757. # Extract the first word of "pkg-config", so it can be a program name with args.
  13758. set dummy pkg-config; ac_word=$2
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13760. $as_echo_n "checking for $ac_word... " >&6; }
  13761. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13762. $as_echo_n "(cached) " >&6
  13763. else
  13764. case $ac_pt_PKG_CONFIG in
  13765. [\\/]* | ?:[\\/]*)
  13766. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13767. ;;
  13768. *)
  13769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13770. for as_dir in $PATH
  13771. do
  13772. IFS=$as_save_IFS
  13773. test -z "$as_dir" && as_dir=.
  13774. for ac_exec_ext in '' $ac_executable_extensions; do
  13775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13776. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13778. break 2
  13779. fi
  13780. done
  13781. done
  13782. IFS=$as_save_IFS
  13783. ;;
  13784. esac
  13785. fi
  13786. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13787. if test -n "$ac_pt_PKG_CONFIG"; then
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13789. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13790. else
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13792. $as_echo "no" >&6; }
  13793. fi
  13794. if test "x$ac_pt_PKG_CONFIG" = x; then
  13795. PKG_CONFIG=""
  13796. else
  13797. case $cross_compiling:$ac_tool_warned in
  13798. yes:)
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13800. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13801. ac_tool_warned=yes ;;
  13802. esac
  13803. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13804. fi
  13805. else
  13806. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13807. fi
  13808. fi
  13809. if test -n "$PKG_CONFIG"; then
  13810. _pkg_min_version=0.9.0
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13812. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13813. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13815. $as_echo "yes" >&6; }
  13816. else
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13818. $as_echo "no" >&6; }
  13819. PKG_CONFIG=""
  13820. fi
  13821. fi
  13822. case "$host" in
  13823. *-*-mingw*)
  13824. # Except on msys, where make can't handle full pathnames (bug 1972)
  13825. ;;
  13826. *)
  13827. srcdir=`cd $srcdir && pwd`
  13828. ;;
  13829. esac
  13830. INCLUDE="-I$srcdir/include"
  13831. case "$host" in
  13832. *-*-nto-qnx*)
  13833. ;;
  13834. *)
  13835. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13836. ;;
  13837. esac
  13838. if test x$srcdir != x.; then
  13839. INCLUDE="-Iinclude $INCLUDE"
  13840. elif test -d .git; then
  13841. as_fn_error $? "
  13842. *** When building from a git clone you should configure and build in a
  13843. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13844. " "$LINENO" 5
  13845. fi
  13846. BASE_CFLAGS=""
  13847. BASE_LDFLAGS=""
  13848. case "$host" in
  13849. *-*-cygwin*)
  13850. # We build SDL on cygwin without the UNIX emulation layer
  13851. save_CFLAGS="$CFLAGS"
  13852. have_no_cygwin=no
  13853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13854. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13855. CFLAGS="$save_CFLAGS -mno-cygwin"
  13856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13857. /* end confdefs.h. */
  13858. int
  13859. main ()
  13860. {
  13861. ;
  13862. return 0;
  13863. }
  13864. _ACEOF
  13865. if ac_fn_c_try_compile "$LINENO"; then :
  13866. have_no_cygwin=yes
  13867. fi
  13868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13870. $as_echo "$have_no_cygwin" >&6; }
  13871. CFLAGS="$save_CFLAGS"
  13872. if test x$have_no_cygwin = xyes; then
  13873. BASE_CFLAGS="-mno-cygwin"
  13874. BASE_LDFLAGS="-mno-cygwin"
  13875. fi
  13876. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13877. ;;
  13878. esac
  13879. # Uncomment the following line if you want to force SDL and applications
  13880. # built with it to be compiled for a particular architecture.
  13881. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13882. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13883. # The default optimization for SDL is -O3 (Bug #31)
  13884. if test "x$orig_CFLAGS" = x; then
  13885. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13886. fi
  13887. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13888. BUILD_LDFLAGS="$LDFLAGS"
  13889. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13890. ## These are common directories to find software packages
  13891. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13892. # if test -d $path/include; then
  13893. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13894. # fi
  13895. # if test -d $path/lib; then
  13896. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13897. # fi
  13898. #done
  13899. SDL_CFLAGS="$BASE_CFLAGS"
  13900. SDL_LIBS="-lSDL2"
  13901. if test "x$BASE_LDFLAGS" != x; then
  13902. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13903. fi
  13904. if test "x$EXTRA_CFLAGS" != x; then
  13905. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13906. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13907. fi
  13908. if test "x$EXTRA_LDFLAGS" != x; then
  13909. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13910. fi
  13911. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13912. find_lib()
  13913. {
  13914. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13915. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13916. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13917. if test "$cross_compiling" = yes; then
  13918. host_lib_path=""
  13919. else
  13920. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13921. fi
  13922. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13923. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13924. if test x$lib != x; then
  13925. echo $lib
  13926. return
  13927. fi
  13928. done
  13929. # Try again, this time allowing more than one version digit after the .so
  13930. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13931. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13932. if test x$lib != x; then
  13933. echo $lib
  13934. return
  13935. fi
  13936. done
  13937. }
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13939. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13940. if ${ac_cv_c_const+:} false; then :
  13941. $as_echo_n "(cached) " >&6
  13942. else
  13943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13944. /* end confdefs.h. */
  13945. int
  13946. main ()
  13947. {
  13948. #ifndef __cplusplus
  13949. /* Ultrix mips cc rejects this sort of thing. */
  13950. typedef int charset[2];
  13951. const charset cs = { 0, 0 };
  13952. /* SunOS 4.1.1 cc rejects this. */
  13953. char const *const *pcpcc;
  13954. char **ppc;
  13955. /* NEC SVR4.0.2 mips cc rejects this. */
  13956. struct point {int x, y;};
  13957. static struct point const zero = {0,0};
  13958. /* AIX XL C 1.02.0.0 rejects this.
  13959. It does not let you subtract one const X* pointer from another in
  13960. an arm of an if-expression whose if-part is not a constant
  13961. expression */
  13962. const char *g = "string";
  13963. pcpcc = &g + (g ? g-g : 0);
  13964. /* HPUX 7.0 cc rejects these. */
  13965. ++pcpcc;
  13966. ppc = (char**) pcpcc;
  13967. pcpcc = (char const *const *) ppc;
  13968. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13969. char tx;
  13970. char *t = &tx;
  13971. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13972. *t++ = 0;
  13973. if (s) return 0;
  13974. }
  13975. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13976. int x[] = {25, 17};
  13977. const int *foo = &x[0];
  13978. ++foo;
  13979. }
  13980. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13981. typedef const int *iptr;
  13982. iptr p = 0;
  13983. ++p;
  13984. }
  13985. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13986. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13987. struct s { int j; const int *ap[3]; } bx;
  13988. struct s *b = &bx; b->j = 5;
  13989. }
  13990. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13991. const int foo = 10;
  13992. if (!foo) return 0;
  13993. }
  13994. return !cs[0] && !zero.x;
  13995. #endif
  13996. ;
  13997. return 0;
  13998. }
  13999. _ACEOF
  14000. if ac_fn_c_try_compile "$LINENO"; then :
  14001. ac_cv_c_const=yes
  14002. else
  14003. ac_cv_c_const=no
  14004. fi
  14005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14006. fi
  14007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14008. $as_echo "$ac_cv_c_const" >&6; }
  14009. if test $ac_cv_c_const = no; then
  14010. $as_echo "#define const /**/" >>confdefs.h
  14011. fi
  14012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14013. $as_echo_n "checking for inline... " >&6; }
  14014. if ${ac_cv_c_inline+:} false; then :
  14015. $as_echo_n "(cached) " >&6
  14016. else
  14017. ac_cv_c_inline=no
  14018. for ac_kw in inline __inline__ __inline; do
  14019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14020. /* end confdefs.h. */
  14021. #ifndef __cplusplus
  14022. typedef int foo_t;
  14023. static $ac_kw foo_t static_foo () {return 0; }
  14024. $ac_kw foo_t foo () {return 0; }
  14025. #endif
  14026. _ACEOF
  14027. if ac_fn_c_try_compile "$LINENO"; then :
  14028. ac_cv_c_inline=$ac_kw
  14029. fi
  14030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14031. test "$ac_cv_c_inline" != no && break
  14032. done
  14033. fi
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14035. $as_echo "$ac_cv_c_inline" >&6; }
  14036. case $ac_cv_c_inline in
  14037. inline | yes) ;;
  14038. *)
  14039. case $ac_cv_c_inline in
  14040. no) ac_val=;;
  14041. *) ac_val=$ac_cv_c_inline;;
  14042. esac
  14043. cat >>confdefs.h <<_ACEOF
  14044. #ifndef __cplusplus
  14045. #define inline $ac_val
  14046. #endif
  14047. _ACEOF
  14048. ;;
  14049. esac
  14050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14051. $as_echo_n "checking for working volatile... " >&6; }
  14052. if ${ac_cv_c_volatile+:} false; then :
  14053. $as_echo_n "(cached) " >&6
  14054. else
  14055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14056. /* end confdefs.h. */
  14057. int
  14058. main ()
  14059. {
  14060. volatile int x;
  14061. int * volatile y = (int *) 0;
  14062. return !x && !y;
  14063. ;
  14064. return 0;
  14065. }
  14066. _ACEOF
  14067. if ac_fn_c_try_compile "$LINENO"; then :
  14068. ac_cv_c_volatile=yes
  14069. else
  14070. ac_cv_c_volatile=no
  14071. fi
  14072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14073. fi
  14074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14075. $as_echo "$ac_cv_c_volatile" >&6; }
  14076. if test $ac_cv_c_volatile = no; then
  14077. $as_echo "#define volatile /**/" >>confdefs.h
  14078. fi
  14079. # Check whether --enable-assertions was given.
  14080. if test "${enable_assertions+set}" = set; then :
  14081. enableval=$enable_assertions;
  14082. else
  14083. enable_assertions=auto
  14084. fi
  14085. case "$enable_assertions" in
  14086. auto) # Use optimization settings to determine assertion level
  14087. ;;
  14088. disabled)
  14089. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14090. ;;
  14091. release)
  14092. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14093. ;;
  14094. enabled)
  14095. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14096. ;;
  14097. paranoid)
  14098. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14099. ;;
  14100. *)
  14101. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14102. ;;
  14103. esac
  14104. # Check whether --enable-dependency-tracking was given.
  14105. if test "${enable_dependency_tracking+set}" = set; then :
  14106. enableval=$enable_dependency_tracking;
  14107. else
  14108. enable_dependency_tracking=yes
  14109. fi
  14110. if test x$enable_dependency_tracking = xyes; then
  14111. have_gcc_mmd_mt=no
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14113. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14115. /* end confdefs.h. */
  14116. #if !defined(__GNUC__) || __GNUC__ < 3
  14117. #error Dependency tracking requires GCC 3.0 or newer
  14118. #endif
  14119. int
  14120. main ()
  14121. {
  14122. ;
  14123. return 0;
  14124. }
  14125. _ACEOF
  14126. if ac_fn_c_try_compile "$LINENO"; then :
  14127. have_gcc_mmd_mt=yes
  14128. fi
  14129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14131. $as_echo "$have_gcc_mmd_mt" >&6; }
  14132. if test x$have_gcc_mmd_mt = xyes; then
  14133. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14134. fi
  14135. fi
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14137. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14138. have_no_undefined=no
  14139. case "$host" in
  14140. *-*-openbsd*)
  14141. ;;
  14142. *)
  14143. save_LDFLAGS="$LDFLAGS"
  14144. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14146. /* end confdefs.h. */
  14147. int
  14148. main ()
  14149. {
  14150. ;
  14151. return 0;
  14152. }
  14153. _ACEOF
  14154. if ac_fn_c_try_link "$LINENO"; then :
  14155. have_no_undefined=yes
  14156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14157. fi
  14158. rm -f core conftest.err conftest.$ac_objext \
  14159. conftest$ac_exeext conftest.$ac_ext
  14160. LDFLAGS="$save_LDFLAGS"
  14161. ;;
  14162. esac
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14164. $as_echo "$have_no_undefined" >&6; }
  14165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14166. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14167. have_dynamicbase=no
  14168. case "$host" in
  14169. *)
  14170. save_LDFLAGS="$LDFLAGS"
  14171. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14173. /* end confdefs.h. */
  14174. int
  14175. main ()
  14176. {
  14177. ;
  14178. return 0;
  14179. }
  14180. _ACEOF
  14181. if ac_fn_c_try_link "$LINENO"; then :
  14182. have_dynamicbase=yes
  14183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14184. fi
  14185. rm -f core conftest.err conftest.$ac_objext \
  14186. conftest$ac_exeext conftest.$ac_ext
  14187. LDFLAGS="$save_LDFLAGS"
  14188. ;;
  14189. esac
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14191. $as_echo "$have_dynamicbase" >&6; }
  14192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14193. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14194. have_nxcompat=no
  14195. case "$host" in
  14196. *)
  14197. save_LDFLAGS="$LDFLAGS"
  14198. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14200. /* end confdefs.h. */
  14201. int
  14202. main ()
  14203. {
  14204. ;
  14205. return 0;
  14206. }
  14207. _ACEOF
  14208. if ac_fn_c_try_link "$LINENO"; then :
  14209. have_nxcompat=yes
  14210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14211. fi
  14212. rm -f core conftest.err conftest.$ac_objext \
  14213. conftest$ac_exeext conftest.$ac_ext
  14214. LDFLAGS="$save_LDFLAGS"
  14215. ;;
  14216. esac
  14217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14218. $as_echo "$have_nxcompat" >&6; }
  14219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14220. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14221. have_high_entropy_va=no
  14222. case "$host" in
  14223. *)
  14224. save_LDFLAGS="$LDFLAGS"
  14225. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14227. /* end confdefs.h. */
  14228. int
  14229. main ()
  14230. {
  14231. ;
  14232. return 0;
  14233. }
  14234. _ACEOF
  14235. if ac_fn_c_try_link "$LINENO"; then :
  14236. have_high_entropy_va=yes
  14237. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14238. fi
  14239. rm -f core conftest.err conftest.$ac_objext \
  14240. conftest$ac_exeext conftest.$ac_ext
  14241. LDFLAGS="$save_LDFLAGS"
  14242. ;;
  14243. esac
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14245. $as_echo "$have_high_entropy_va" >&6; }
  14246. # Check whether --enable-libc was given.
  14247. if test "${enable_libc+set}" = set; then :
  14248. enableval=$enable_libc;
  14249. else
  14250. enable_libc=yes
  14251. fi
  14252. if test x$enable_libc = xyes; then
  14253. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14255. $as_echo_n "checking for ANSI C header files... " >&6; }
  14256. if ${ac_cv_header_stdc+:} false; then :
  14257. $as_echo_n "(cached) " >&6
  14258. else
  14259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14260. /* end confdefs.h. */
  14261. #include <stdlib.h>
  14262. #include <stdarg.h>
  14263. #include <string.h>
  14264. #include <float.h>
  14265. int
  14266. main ()
  14267. {
  14268. ;
  14269. return 0;
  14270. }
  14271. _ACEOF
  14272. if ac_fn_c_try_compile "$LINENO"; then :
  14273. ac_cv_header_stdc=yes
  14274. else
  14275. ac_cv_header_stdc=no
  14276. fi
  14277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14278. if test $ac_cv_header_stdc = yes; then
  14279. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14281. /* end confdefs.h. */
  14282. #include <string.h>
  14283. _ACEOF
  14284. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14285. $EGREP "memchr" >/dev/null 2>&1; then :
  14286. else
  14287. ac_cv_header_stdc=no
  14288. fi
  14289. rm -f conftest*
  14290. fi
  14291. if test $ac_cv_header_stdc = yes; then
  14292. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14294. /* end confdefs.h. */
  14295. #include <stdlib.h>
  14296. _ACEOF
  14297. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14298. $EGREP "free" >/dev/null 2>&1; then :
  14299. else
  14300. ac_cv_header_stdc=no
  14301. fi
  14302. rm -f conftest*
  14303. fi
  14304. if test $ac_cv_header_stdc = yes; then
  14305. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14306. if test "$cross_compiling" = yes; then :
  14307. :
  14308. else
  14309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14310. /* end confdefs.h. */
  14311. #include <ctype.h>
  14312. #include <stdlib.h>
  14313. #if ((' ' & 0x0FF) == 0x020)
  14314. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14315. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14316. #else
  14317. # define ISLOWER(c) \
  14318. (('a' <= (c) && (c) <= 'i') \
  14319. || ('j' <= (c) && (c) <= 'r') \
  14320. || ('s' <= (c) && (c) <= 'z'))
  14321. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14322. #endif
  14323. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14324. int
  14325. main ()
  14326. {
  14327. int i;
  14328. for (i = 0; i < 256; i++)
  14329. if (XOR (islower (i), ISLOWER (i))
  14330. || toupper (i) != TOUPPER (i))
  14331. return 2;
  14332. return 0;
  14333. }
  14334. _ACEOF
  14335. if ac_fn_c_try_run "$LINENO"; then :
  14336. else
  14337. ac_cv_header_stdc=no
  14338. fi
  14339. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14340. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14341. fi
  14342. fi
  14343. fi
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14345. $as_echo "$ac_cv_header_stdc" >&6; }
  14346. if test $ac_cv_header_stdc = yes; then
  14347. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14348. fi
  14349. 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
  14350. do :
  14351. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14352. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14353. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14354. cat >>confdefs.h <<_ACEOF
  14355. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14356. _ACEOF
  14357. fi
  14358. done
  14359. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14360. if test "x$ac_cv_type_size_t" = xyes; then :
  14361. else
  14362. cat >>confdefs.h <<_ACEOF
  14363. #define size_t unsigned int
  14364. _ACEOF
  14365. fi
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14367. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14368. if ${ac_cv_define_M_PI+:} false; then :
  14369. $as_echo_n "(cached) " >&6
  14370. else
  14371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14372. /* end confdefs.h. */
  14373. #include <math.h>
  14374. #ifdef M_PI
  14375. YES_IS_DEFINED
  14376. #endif
  14377. _ACEOF
  14378. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14379. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14380. ac_cv_define_M_PI=yes
  14381. else
  14382. ac_cv_define_M_PI=no
  14383. fi
  14384. rm -f conftest*
  14385. fi
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14387. $as_echo "$ac_cv_define_M_PI" >&6; }
  14388. if test "$ac_cv_define_M_PI" = "yes" ; then
  14389. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14390. fi
  14391. case "$host" in
  14392. *-*-cygwin* | *-*-mingw*)
  14393. ;;
  14394. *)
  14395. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14396. # for constant arguments. Useless!
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14398. $as_echo_n "checking for working alloca.h... " >&6; }
  14399. if ${ac_cv_working_alloca_h+:} false; then :
  14400. $as_echo_n "(cached) " >&6
  14401. else
  14402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14403. /* end confdefs.h. */
  14404. #include <alloca.h>
  14405. int
  14406. main ()
  14407. {
  14408. char *p = (char *) alloca (2 * sizeof (int));
  14409. if (p) return 0;
  14410. ;
  14411. return 0;
  14412. }
  14413. _ACEOF
  14414. if ac_fn_c_try_link "$LINENO"; then :
  14415. ac_cv_working_alloca_h=yes
  14416. else
  14417. ac_cv_working_alloca_h=no
  14418. fi
  14419. rm -f core conftest.err conftest.$ac_objext \
  14420. conftest$ac_exeext conftest.$ac_ext
  14421. fi
  14422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14423. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14424. if test $ac_cv_working_alloca_h = yes; then
  14425. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14426. fi
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14428. $as_echo_n "checking for alloca... " >&6; }
  14429. if ${ac_cv_func_alloca_works+:} false; then :
  14430. $as_echo_n "(cached) " >&6
  14431. else
  14432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14433. /* end confdefs.h. */
  14434. #ifdef __GNUC__
  14435. # define alloca __builtin_alloca
  14436. #else
  14437. # ifdef _MSC_VER
  14438. # include <malloc.h>
  14439. # define alloca _alloca
  14440. # else
  14441. # ifdef HAVE_ALLOCA_H
  14442. # include <alloca.h>
  14443. # else
  14444. # ifdef _AIX
  14445. #pragma alloca
  14446. # else
  14447. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14448. void *alloca (size_t);
  14449. # endif
  14450. # endif
  14451. # endif
  14452. # endif
  14453. #endif
  14454. int
  14455. main ()
  14456. {
  14457. char *p = (char *) alloca (1);
  14458. if (p) return 0;
  14459. ;
  14460. return 0;
  14461. }
  14462. _ACEOF
  14463. if ac_fn_c_try_link "$LINENO"; then :
  14464. ac_cv_func_alloca_works=yes
  14465. else
  14466. ac_cv_func_alloca_works=no
  14467. fi
  14468. rm -f core conftest.err conftest.$ac_objext \
  14469. conftest$ac_exeext conftest.$ac_ext
  14470. fi
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14472. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14473. if test $ac_cv_func_alloca_works = yes; then
  14474. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14475. else
  14476. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14477. # that cause trouble. Some versions do not even contain alloca or
  14478. # contain a buggy version. If you still want to use their alloca,
  14479. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14480. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14481. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14483. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14484. if ${ac_cv_os_cray+:} false; then :
  14485. $as_echo_n "(cached) " >&6
  14486. else
  14487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14488. /* end confdefs.h. */
  14489. #if defined CRAY && ! defined CRAY2
  14490. webecray
  14491. #else
  14492. wenotbecray
  14493. #endif
  14494. _ACEOF
  14495. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14496. $EGREP "webecray" >/dev/null 2>&1; then :
  14497. ac_cv_os_cray=yes
  14498. else
  14499. ac_cv_os_cray=no
  14500. fi
  14501. rm -f conftest*
  14502. fi
  14503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14504. $as_echo "$ac_cv_os_cray" >&6; }
  14505. if test $ac_cv_os_cray = yes; then
  14506. for ac_func in _getb67 GETB67 getb67; do
  14507. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14508. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14509. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14510. cat >>confdefs.h <<_ACEOF
  14511. #define CRAY_STACKSEG_END $ac_func
  14512. _ACEOF
  14513. break
  14514. fi
  14515. done
  14516. fi
  14517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14518. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14519. if ${ac_cv_c_stack_direction+:} false; then :
  14520. $as_echo_n "(cached) " >&6
  14521. else
  14522. if test "$cross_compiling" = yes; then :
  14523. ac_cv_c_stack_direction=0
  14524. else
  14525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14526. /* end confdefs.h. */
  14527. $ac_includes_default
  14528. int
  14529. find_stack_direction (int *addr, int depth)
  14530. {
  14531. int dir, dummy = 0;
  14532. if (! addr)
  14533. addr = &dummy;
  14534. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14535. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14536. return dir + dummy;
  14537. }
  14538. int
  14539. main (int argc, char **argv)
  14540. {
  14541. return find_stack_direction (0, argc + !argv + 20) < 0;
  14542. }
  14543. _ACEOF
  14544. if ac_fn_c_try_run "$LINENO"; then :
  14545. ac_cv_c_stack_direction=1
  14546. else
  14547. ac_cv_c_stack_direction=-1
  14548. fi
  14549. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14550. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14551. fi
  14552. fi
  14553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14554. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14555. cat >>confdefs.h <<_ACEOF
  14556. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14557. _ACEOF
  14558. fi
  14559. ;;
  14560. esac
  14561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14562. $as_echo_n "checking for working memcmp... " >&6; }
  14563. if ${ac_cv_func_memcmp_working+:} false; then :
  14564. $as_echo_n "(cached) " >&6
  14565. else
  14566. if test "$cross_compiling" = yes; then :
  14567. ac_cv_func_memcmp_working=no
  14568. else
  14569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14570. /* end confdefs.h. */
  14571. $ac_includes_default
  14572. int
  14573. main ()
  14574. {
  14575. /* Some versions of memcmp are not 8-bit clean. */
  14576. char c0 = '\100', c1 = '\200', c2 = '\201';
  14577. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14578. return 1;
  14579. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14580. or more and with at least one buffer not starting on a 4-byte boundary.
  14581. William Lewis provided this test program. */
  14582. {
  14583. char foo[21];
  14584. char bar[21];
  14585. int i;
  14586. for (i = 0; i < 4; i++)
  14587. {
  14588. char *a = foo + i;
  14589. char *b = bar + i;
  14590. strcpy (a, "--------01111111");
  14591. strcpy (b, "--------10000000");
  14592. if (memcmp (a, b, 16) >= 0)
  14593. return 1;
  14594. }
  14595. return 0;
  14596. }
  14597. ;
  14598. return 0;
  14599. }
  14600. _ACEOF
  14601. if ac_fn_c_try_run "$LINENO"; then :
  14602. ac_cv_func_memcmp_working=yes
  14603. else
  14604. ac_cv_func_memcmp_working=no
  14605. fi
  14606. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14607. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14608. fi
  14609. fi
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14611. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14612. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14613. *" memcmp.$ac_objext "* ) ;;
  14614. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14615. ;;
  14616. esac
  14617. if test x$ac_cv_func_memcmp_working = xyes; then
  14618. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14619. fi
  14620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14621. $as_echo_n "checking for working strtod... " >&6; }
  14622. if ${ac_cv_func_strtod+:} false; then :
  14623. $as_echo_n "(cached) " >&6
  14624. else
  14625. if test "$cross_compiling" = yes; then :
  14626. ac_cv_func_strtod=no
  14627. else
  14628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14629. /* end confdefs.h. */
  14630. $ac_includes_default
  14631. #ifndef strtod
  14632. double strtod ();
  14633. #endif
  14634. int
  14635. main()
  14636. {
  14637. {
  14638. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14639. char *string = " +69";
  14640. char *term;
  14641. double value;
  14642. value = strtod (string, &term);
  14643. if (value != 69 || term != (string + 4))
  14644. return 1;
  14645. }
  14646. {
  14647. /* Under Solaris 2.4, strtod returns the wrong value for the
  14648. terminating character under some conditions. */
  14649. char *string = "NaN";
  14650. char *term;
  14651. strtod (string, &term);
  14652. if (term != string && *(term - 1) == 0)
  14653. return 1;
  14654. }
  14655. return 0;
  14656. }
  14657. _ACEOF
  14658. if ac_fn_c_try_run "$LINENO"; then :
  14659. ac_cv_func_strtod=yes
  14660. else
  14661. ac_cv_func_strtod=no
  14662. fi
  14663. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14664. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14665. fi
  14666. fi
  14667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14668. $as_echo "$ac_cv_func_strtod" >&6; }
  14669. if test $ac_cv_func_strtod = no; then
  14670. case " $LIBOBJS " in
  14671. *" strtod.$ac_objext "* ) ;;
  14672. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14673. ;;
  14674. esac
  14675. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14676. if test "x$ac_cv_func_pow" = xyes; then :
  14677. fi
  14678. if test $ac_cv_func_pow = no; then
  14679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14680. $as_echo_n "checking for pow in -lm... " >&6; }
  14681. if ${ac_cv_lib_m_pow+:} false; then :
  14682. $as_echo_n "(cached) " >&6
  14683. else
  14684. ac_check_lib_save_LIBS=$LIBS
  14685. LIBS="-lm $LIBS"
  14686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14687. /* end confdefs.h. */
  14688. /* Override any GCC internal prototype to avoid an error.
  14689. Use char because int might match the return type of a GCC
  14690. builtin and then its argument prototype would still apply. */
  14691. #ifdef __cplusplus
  14692. extern "C"
  14693. #endif
  14694. char pow ();
  14695. int
  14696. main ()
  14697. {
  14698. return pow ();
  14699. ;
  14700. return 0;
  14701. }
  14702. _ACEOF
  14703. if ac_fn_c_try_link "$LINENO"; then :
  14704. ac_cv_lib_m_pow=yes
  14705. else
  14706. ac_cv_lib_m_pow=no
  14707. fi
  14708. rm -f core conftest.err conftest.$ac_objext \
  14709. conftest$ac_exeext conftest.$ac_ext
  14710. LIBS=$ac_check_lib_save_LIBS
  14711. fi
  14712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14713. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14714. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14715. POW_LIB=-lm
  14716. else
  14717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14718. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14719. fi
  14720. fi
  14721. fi
  14722. if test x$ac_cv_func_strtod = xyes; then
  14723. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14724. fi
  14725. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14726. if test "x$ac_cv_func_mprotect" = xyes; then :
  14727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14728. /* end confdefs.h. */
  14729. #include <sys/types.h>
  14730. #include <sys/mman.h>
  14731. int
  14732. main ()
  14733. {
  14734. ;
  14735. return 0;
  14736. }
  14737. _ACEOF
  14738. if ac_fn_c_try_compile "$LINENO"; then :
  14739. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14740. fi
  14741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14742. fi
  14743. 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
  14744. do :
  14745. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14746. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14747. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14748. cat >>confdefs.h <<_ACEOF
  14749. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14750. _ACEOF
  14751. fi
  14752. done
  14753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14754. $as_echo_n "checking for pow in -lm... " >&6; }
  14755. if ${ac_cv_lib_m_pow+:} false; then :
  14756. $as_echo_n "(cached) " >&6
  14757. else
  14758. ac_check_lib_save_LIBS=$LIBS
  14759. LIBS="-lm $LIBS"
  14760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14761. /* end confdefs.h. */
  14762. /* Override any GCC internal prototype to avoid an error.
  14763. Use char because int might match the return type of a GCC
  14764. builtin and then its argument prototype would still apply. */
  14765. #ifdef __cplusplus
  14766. extern "C"
  14767. #endif
  14768. char pow ();
  14769. int
  14770. main ()
  14771. {
  14772. return pow ();
  14773. ;
  14774. return 0;
  14775. }
  14776. _ACEOF
  14777. if ac_fn_c_try_link "$LINENO"; then :
  14778. ac_cv_lib_m_pow=yes
  14779. else
  14780. ac_cv_lib_m_pow=no
  14781. fi
  14782. rm -f core conftest.err conftest.$ac_objext \
  14783. conftest$ac_exeext conftest.$ac_ext
  14784. LIBS=$ac_check_lib_save_LIBS
  14785. fi
  14786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14787. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14788. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14789. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14790. fi
  14791. 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
  14792. do :
  14793. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14794. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14795. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14796. cat >>confdefs.h <<_ACEOF
  14797. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14798. _ACEOF
  14799. fi
  14800. done
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14802. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14803. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14804. $as_echo_n "(cached) " >&6
  14805. else
  14806. ac_check_lib_save_LIBS=$LIBS
  14807. LIBS="-liconv $LIBS"
  14808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14809. /* end confdefs.h. */
  14810. /* Override any GCC internal prototype to avoid an error.
  14811. Use char because int might match the return type of a GCC
  14812. builtin and then its argument prototype would still apply. */
  14813. #ifdef __cplusplus
  14814. extern "C"
  14815. #endif
  14816. char iconv_open ();
  14817. int
  14818. main ()
  14819. {
  14820. return iconv_open ();
  14821. ;
  14822. return 0;
  14823. }
  14824. _ACEOF
  14825. if ac_fn_c_try_link "$LINENO"; then :
  14826. ac_cv_lib_iconv_iconv_open=yes
  14827. else
  14828. ac_cv_lib_iconv_iconv_open=no
  14829. fi
  14830. rm -f core conftest.err conftest.$ac_objext \
  14831. conftest$ac_exeext conftest.$ac_ext
  14832. LIBS=$ac_check_lib_save_LIBS
  14833. fi
  14834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14835. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14836. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14837. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14838. fi
  14839. for ac_func in iconv
  14840. do :
  14841. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14842. if test "x$ac_cv_func_iconv" = xyes; then :
  14843. cat >>confdefs.h <<_ACEOF
  14844. #define HAVE_ICONV 1
  14845. _ACEOF
  14846. fi
  14847. done
  14848. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14849. "
  14850. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14851. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14852. fi
  14853. for ac_header in libunwind.h
  14854. do :
  14855. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14856. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14857. cat >>confdefs.h <<_ACEOF
  14858. #define HAVE_LIBUNWIND_H 1
  14859. _ACEOF
  14860. fi
  14861. done
  14862. fi
  14863. # Check whether --enable-gcc-atomics was given.
  14864. if test "${enable_gcc_atomics+set}" = set; then :
  14865. enableval=$enable_gcc_atomics;
  14866. else
  14867. enable_gcc_atomics=yes
  14868. fi
  14869. if test x$enable_gcc_atomics = xyes; then
  14870. have_gcc_atomics=no
  14871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14872. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14874. /* end confdefs.h. */
  14875. int
  14876. main ()
  14877. {
  14878. int a;
  14879. void *x, *y, *z;
  14880. __sync_lock_test_and_set(&a, 4);
  14881. __sync_lock_test_and_set(&x, y);
  14882. __sync_fetch_and_add(&a, 1);
  14883. __sync_bool_compare_and_swap(&a, 5, 10);
  14884. __sync_bool_compare_and_swap(&x, y, z);
  14885. ;
  14886. return 0;
  14887. }
  14888. _ACEOF
  14889. if ac_fn_c_try_link "$LINENO"; then :
  14890. have_gcc_atomics=yes
  14891. fi
  14892. rm -f core conftest.err conftest.$ac_objext \
  14893. conftest$ac_exeext conftest.$ac_ext
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14895. $as_echo "$have_gcc_atomics" >&6; }
  14896. if test x$have_gcc_atomics = xyes; then
  14897. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14898. else
  14899. # See if we have the minimum operation needed for GCC atomics
  14900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14901. /* end confdefs.h. */
  14902. int
  14903. main ()
  14904. {
  14905. int a;
  14906. __sync_lock_test_and_set(&a, 1);
  14907. __sync_lock_release(&a);
  14908. ;
  14909. return 0;
  14910. }
  14911. _ACEOF
  14912. if ac_fn_c_try_link "$LINENO"; then :
  14913. have_gcc_sync_lock_test_and_set=yes
  14914. fi
  14915. rm -f core conftest.err conftest.$ac_objext \
  14916. conftest$ac_exeext conftest.$ac_ext
  14917. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14918. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14919. fi
  14920. fi
  14921. fi
  14922. # Standard C sources
  14923. SOURCES="$SOURCES $srcdir/src/*.c"
  14924. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14933. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14934. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14935. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14936. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14937. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14938. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14939. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14940. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14942. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14943. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14944. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14945. # Check whether --enable-atomic was given.
  14946. if test "${enable_atomic+set}" = set; then :
  14947. enableval=$enable_atomic;
  14948. else
  14949. enable_atomic=yes
  14950. fi
  14951. if test x$enable_atomic != xyes; then
  14952. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14953. else
  14954. SUMMARY_modules="${SUMMARY_modules} atomic"
  14955. fi
  14956. # Check whether --enable-audio was given.
  14957. if test "${enable_audio+set}" = set; then :
  14958. enableval=$enable_audio;
  14959. else
  14960. enable_audio=yes
  14961. fi
  14962. if test x$enable_audio != xyes; then
  14963. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14964. else
  14965. SUMMARY_modules="${SUMMARY_modules} audio"
  14966. fi
  14967. # Check whether --enable-video was given.
  14968. if test "${enable_video+set}" = set; then :
  14969. enableval=$enable_video;
  14970. else
  14971. enable_video=yes
  14972. fi
  14973. if test x$enable_video != xyes; then
  14974. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14975. else
  14976. SUMMARY_modules="${SUMMARY_modules} video"
  14977. fi
  14978. # Check whether --enable-render was given.
  14979. if test "${enable_render+set}" = set; then :
  14980. enableval=$enable_render;
  14981. else
  14982. enable_render=yes
  14983. fi
  14984. if test x$enable_render != xyes; then
  14985. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14986. else
  14987. SUMMARY_modules="${SUMMARY_modules} render"
  14988. fi
  14989. # Check whether --enable-events was given.
  14990. if test "${enable_events+set}" = set; then :
  14991. enableval=$enable_events;
  14992. else
  14993. enable_events=yes
  14994. fi
  14995. if test x$enable_events != xyes; then
  14996. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14997. else
  14998. SUMMARY_modules="${SUMMARY_modules} events"
  14999. fi
  15000. # Check whether --enable-joystick was given.
  15001. if test "${enable_joystick+set}" = set; then :
  15002. enableval=$enable_joystick;
  15003. else
  15004. enable_joystick=yes
  15005. fi
  15006. if test x$enable_joystick != xyes; then
  15007. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15008. else
  15009. SUMMARY_modules="${SUMMARY_modules} joystick"
  15010. fi
  15011. # Check whether --enable-haptic was given.
  15012. if test "${enable_haptic+set}" = set; then :
  15013. enableval=$enable_haptic;
  15014. else
  15015. enable_haptic=yes
  15016. fi
  15017. if test x$enable_haptic != xyes; then
  15018. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15019. else
  15020. SUMMARY_modules="${SUMMARY_modules} haptic"
  15021. fi
  15022. # Check whether --enable-sensor was given.
  15023. if test "${enable_sensor+set}" = set; then :
  15024. enableval=$enable_sensor;
  15025. else
  15026. enable_sensor=yes
  15027. fi
  15028. if test x$enable_sensor != xyes; then
  15029. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15030. else
  15031. SUMMARY_modules="${SUMMARY_modules} sensor"
  15032. fi
  15033. # Check whether --enable-power was given.
  15034. if test "${enable_power+set}" = set; then :
  15035. enableval=$enable_power;
  15036. else
  15037. enable_power=yes
  15038. fi
  15039. if test x$enable_power != xyes; then
  15040. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15041. else
  15042. SUMMARY_modules="${SUMMARY_modules} power"
  15043. fi
  15044. # Check whether --enable-filesystem was given.
  15045. if test "${enable_filesystem+set}" = set; then :
  15046. enableval=$enable_filesystem;
  15047. else
  15048. enable_filesystem=yes
  15049. fi
  15050. if test x$enable_filesystem != xyes; then
  15051. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15052. else
  15053. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15054. fi
  15055. # Check whether --enable-threads was given.
  15056. if test "${enable_threads+set}" = set; then :
  15057. enableval=$enable_threads;
  15058. else
  15059. enable_threads=yes
  15060. fi
  15061. if test x$enable_threads != xyes; then
  15062. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15063. else
  15064. SUMMARY_modules="${SUMMARY_modules} threads"
  15065. fi
  15066. # Check whether --enable-timers was given.
  15067. if test "${enable_timers+set}" = set; then :
  15068. enableval=$enable_timers;
  15069. else
  15070. enable_timers=yes
  15071. fi
  15072. if test x$enable_timers != xyes; then
  15073. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15074. else
  15075. SUMMARY_modules="${SUMMARY_modules} timers"
  15076. fi
  15077. # Check whether --enable-file was given.
  15078. if test "${enable_file+set}" = set; then :
  15079. enableval=$enable_file;
  15080. else
  15081. enable_file=yes
  15082. fi
  15083. if test x$enable_file != xyes; then
  15084. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15085. else
  15086. SUMMARY_modules="${SUMMARY_modules} file"
  15087. fi
  15088. # Check whether --enable-loadso was given.
  15089. if test "${enable_loadso+set}" = set; then :
  15090. enableval=$enable_loadso;
  15091. else
  15092. enable_loadso=yes
  15093. fi
  15094. if test x$enable_loadso != xyes; then
  15095. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15096. else
  15097. SUMMARY_modules="${SUMMARY_modules} loadso"
  15098. fi
  15099. # Check whether --enable-cpuinfo was given.
  15100. if test "${enable_cpuinfo+set}" = set; then :
  15101. enableval=$enable_cpuinfo;
  15102. else
  15103. enable_cpuinfo=yes
  15104. fi
  15105. if test x$enable_cpuinfo != xyes; then
  15106. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15107. else
  15108. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15109. fi
  15110. # Check whether --enable-assembly was given.
  15111. if test "${enable_assembly+set}" = set; then :
  15112. enableval=$enable_assembly;
  15113. else
  15114. enable_assembly=yes
  15115. fi
  15116. if test x$enable_assembly = xyes; then
  15117. SUMMARY_modules="${SUMMARY_modules} assembly"
  15118. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15119. # Make sure that we don't generate floating point code that would
  15120. # cause illegal instruction exceptions on older processors
  15121. case "$host" in
  15122. *-*-darwin*)
  15123. # Don't need to worry about Apple hardware, it's all SSE capable
  15124. default_ssemath=yes
  15125. ;;
  15126. *64-*-*)
  15127. # x86 64-bit architectures all have SSE instructions
  15128. default_ssemath=yes
  15129. ;;
  15130. *)
  15131. default_ssemath=no
  15132. ;;
  15133. esac
  15134. # Check whether --enable-ssemath was given.
  15135. if test "${enable_ssemath+set}" = set; then :
  15136. enableval=$enable_ssemath;
  15137. else
  15138. enable_ssemath=$default_ssemath
  15139. fi
  15140. if test x$enable_ssemath = xno; then
  15141. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15142. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15143. fi
  15144. fi
  15145. # Check whether --enable-mmx was given.
  15146. if test "${enable_mmx+set}" = set; then :
  15147. enableval=$enable_mmx;
  15148. else
  15149. enable_mmx=yes
  15150. fi
  15151. if test x$enable_mmx = xyes; then
  15152. save_CFLAGS="$CFLAGS"
  15153. have_gcc_mmx=no
  15154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15155. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15156. mmx_CFLAGS="-mmmx"
  15157. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15159. /* end confdefs.h. */
  15160. #ifdef __MINGW32__
  15161. #include <_mingw.h>
  15162. #ifdef __MINGW64_VERSION_MAJOR
  15163. #include <intrin.h>
  15164. #else
  15165. #include <mmintrin.h>
  15166. #endif
  15167. #else
  15168. #include <mmintrin.h>
  15169. #endif
  15170. #ifndef __MMX__
  15171. #error Assembler CPP flag not enabled
  15172. #endif
  15173. int
  15174. main ()
  15175. {
  15176. ;
  15177. return 0;
  15178. }
  15179. _ACEOF
  15180. if ac_fn_c_try_compile "$LINENO"; then :
  15181. have_gcc_mmx=yes
  15182. fi
  15183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15185. $as_echo "$have_gcc_mmx" >&6; }
  15186. CFLAGS="$save_CFLAGS"
  15187. if test x$have_gcc_mmx = xyes; then
  15188. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15189. SUMMARY_math="${SUMMARY_math} mmx"
  15190. fi
  15191. fi
  15192. # Check whether --enable-3dnow was given.
  15193. if test "${enable_3dnow+set}" = set; then :
  15194. enableval=$enable_3dnow;
  15195. else
  15196. enable_3dnow=yes
  15197. fi
  15198. if test x$enable_3dnow = xyes; then
  15199. save_CFLAGS="$CFLAGS"
  15200. have_gcc_3dnow=no
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15202. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15203. amd3dnow_CFLAGS="-m3dnow"
  15204. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15206. /* end confdefs.h. */
  15207. #include <mm3dnow.h>
  15208. #ifndef __3dNOW__
  15209. #error Assembler CPP flag not enabled
  15210. #endif
  15211. int
  15212. main ()
  15213. {
  15214. void *p = 0;
  15215. _m_prefetch(p);
  15216. ;
  15217. return 0;
  15218. }
  15219. _ACEOF
  15220. if ac_fn_c_try_link "$LINENO"; then :
  15221. have_gcc_3dnow=yes
  15222. fi
  15223. rm -f core conftest.err conftest.$ac_objext \
  15224. conftest$ac_exeext conftest.$ac_ext
  15225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15226. $as_echo "$have_gcc_3dnow" >&6; }
  15227. CFLAGS="$save_CFLAGS"
  15228. if test x$have_gcc_3dnow = xyes; then
  15229. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15230. SUMMARY_math="${SUMMARY_math} 3dnow"
  15231. fi
  15232. fi
  15233. # Check whether --enable-sse was given.
  15234. if test "${enable_sse+set}" = set; then :
  15235. enableval=$enable_sse;
  15236. else
  15237. enable_sse=yes
  15238. fi
  15239. if test x$enable_sse = xyes; then
  15240. save_CFLAGS="$CFLAGS"
  15241. have_gcc_sse=no
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15243. $as_echo_n "checking for GCC -msse option... " >&6; }
  15244. sse_CFLAGS="-msse"
  15245. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15247. /* end confdefs.h. */
  15248. #ifdef __MINGW32__
  15249. #include <_mingw.h>
  15250. #ifdef __MINGW64_VERSION_MAJOR
  15251. #include <intrin.h>
  15252. #else
  15253. #include <xmmintrin.h>
  15254. #endif
  15255. #else
  15256. #include <xmmintrin.h>
  15257. #endif
  15258. #ifndef __SSE__
  15259. #error Assembler CPP flag not enabled
  15260. #endif
  15261. int
  15262. main ()
  15263. {
  15264. ;
  15265. return 0;
  15266. }
  15267. _ACEOF
  15268. if ac_fn_c_try_compile "$LINENO"; then :
  15269. have_gcc_sse=yes
  15270. fi
  15271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15273. $as_echo "$have_gcc_sse" >&6; }
  15274. CFLAGS="$save_CFLAGS"
  15275. if test x$have_gcc_sse = xyes; then
  15276. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15277. SUMMARY_math="${SUMMARY_math} sse"
  15278. fi
  15279. fi
  15280. # Check whether --enable-sse2 was given.
  15281. if test "${enable_sse2+set}" = set; then :
  15282. enableval=$enable_sse2;
  15283. else
  15284. enable_sse2=$default_ssemath
  15285. fi
  15286. if test x$enable_sse2 = xyes; then
  15287. save_CFLAGS="$CFLAGS"
  15288. have_gcc_sse2=no
  15289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15290. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15291. sse2_CFLAGS="-msse2"
  15292. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15294. /* end confdefs.h. */
  15295. #ifdef __MINGW32__
  15296. #include <_mingw.h>
  15297. #ifdef __MINGW64_VERSION_MAJOR
  15298. #include <intrin.h>
  15299. #else
  15300. #include <emmintrin.h>
  15301. #endif
  15302. #else
  15303. #include <emmintrin.h>
  15304. #endif
  15305. #ifndef __SSE2__
  15306. #error Assembler CPP flag not enabled
  15307. #endif
  15308. int
  15309. main ()
  15310. {
  15311. ;
  15312. return 0;
  15313. }
  15314. _ACEOF
  15315. if ac_fn_c_try_compile "$LINENO"; then :
  15316. have_gcc_sse2=yes
  15317. fi
  15318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15320. $as_echo "$have_gcc_sse2" >&6; }
  15321. CFLAGS="$save_CFLAGS"
  15322. if test x$have_gcc_sse2 = xyes; then
  15323. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15324. SUMMARY_math="${SUMMARY_math} sse2"
  15325. fi
  15326. fi
  15327. # Check whether --enable-sse3 was given.
  15328. if test "${enable_sse3+set}" = set; then :
  15329. enableval=$enable_sse3;
  15330. else
  15331. enable_sse3=$default_ssemath
  15332. fi
  15333. if test x$enable_sse3 = xyes; then
  15334. save_CFLAGS="$CFLAGS"
  15335. have_gcc_sse3=no
  15336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15337. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15338. sse3_CFLAGS="-msse3"
  15339. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15341. /* end confdefs.h. */
  15342. #ifdef __MINGW32__
  15343. #include <_mingw.h>
  15344. #ifdef __MINGW64_VERSION_MAJOR
  15345. #include <intrin.h>
  15346. #else
  15347. #include <pmmintrin.h>
  15348. #endif
  15349. #else
  15350. #include <pmmintrin.h>
  15351. #endif
  15352. #ifndef __SSE2__
  15353. #error Assembler CPP flag not enabled
  15354. #endif
  15355. int
  15356. main ()
  15357. {
  15358. ;
  15359. return 0;
  15360. }
  15361. _ACEOF
  15362. if ac_fn_c_try_compile "$LINENO"; then :
  15363. have_gcc_sse3=yes
  15364. fi
  15365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15367. $as_echo "$have_gcc_sse3" >&6; }
  15368. CFLAGS="$save_CFLAGS"
  15369. if test x$have_gcc_sse3 = xyes; then
  15370. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15371. SUMMARY_math="${SUMMARY_math} sse3"
  15372. fi
  15373. fi
  15374. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15375. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15376. have_immintrin_h_hdr=yes
  15377. else
  15378. have_immintrin_h_hdr=no
  15379. fi
  15380. if test x$have_immintrin_h_hdr = xyes; then
  15381. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15382. fi
  15383. # Check whether --enable-altivec was given.
  15384. if test "${enable_altivec+set}" = set; then :
  15385. enableval=$enable_altivec;
  15386. else
  15387. enable_altivec=yes
  15388. fi
  15389. if test x$enable_altivec = xyes; then
  15390. save_CFLAGS="$CFLAGS"
  15391. have_gcc_altivec=no
  15392. have_altivec_h_hdr=no
  15393. altivec_CFLAGS="-maltivec"
  15394. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15396. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15398. /* end confdefs.h. */
  15399. #include <altivec.h>
  15400. vector unsigned int vzero() {
  15401. return vec_splat_u32(0);
  15402. }
  15403. int
  15404. main ()
  15405. {
  15406. ;
  15407. return 0;
  15408. }
  15409. _ACEOF
  15410. if ac_fn_c_try_compile "$LINENO"; then :
  15411. have_gcc_altivec=yes
  15412. have_altivec_h_hdr=yes
  15413. fi
  15414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15416. $as_echo "$have_gcc_altivec" >&6; }
  15417. if test x$have_gcc_altivec = xno; then
  15418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15419. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15421. /* end confdefs.h. */
  15422. vector unsigned int vzero() {
  15423. return vec_splat_u32(0);
  15424. }
  15425. int
  15426. main ()
  15427. {
  15428. ;
  15429. return 0;
  15430. }
  15431. _ACEOF
  15432. if ac_fn_c_try_compile "$LINENO"; then :
  15433. have_gcc_altivec=yes
  15434. fi
  15435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15437. $as_echo "$have_gcc_altivec" >&6; }
  15438. fi
  15439. if test x$have_gcc_altivec = xno; then
  15440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15441. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15442. altivec_CFLAGS="-faltivec"
  15443. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15445. /* end confdefs.h. */
  15446. #include <altivec.h>
  15447. vector unsigned int vzero() {
  15448. return vec_splat_u32(0);
  15449. }
  15450. int
  15451. main ()
  15452. {
  15453. ;
  15454. return 0;
  15455. }
  15456. _ACEOF
  15457. if ac_fn_c_try_compile "$LINENO"; then :
  15458. have_gcc_altivec=yes
  15459. have_altivec_h_hdr=yes
  15460. fi
  15461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15463. $as_echo "$have_gcc_altivec" >&6; }
  15464. fi
  15465. if test x$have_gcc_altivec = xno; then
  15466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15467. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15469. /* end confdefs.h. */
  15470. vector unsigned int vzero() {
  15471. return vec_splat_u32(0);
  15472. }
  15473. int
  15474. main ()
  15475. {
  15476. ;
  15477. return 0;
  15478. }
  15479. _ACEOF
  15480. if ac_fn_c_try_compile "$LINENO"; then :
  15481. have_gcc_altivec=yes
  15482. fi
  15483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15485. $as_echo "$have_gcc_altivec" >&6; }
  15486. fi
  15487. CFLAGS="$save_CFLAGS"
  15488. if test x$have_gcc_altivec = xyes; then
  15489. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15490. if test x$have_altivec_h_hdr = xyes; then
  15491. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15492. fi
  15493. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15494. SUMMARY_math="${SUMMARY_math} altivec"
  15495. fi
  15496. fi
  15497. fi
  15498. CheckOSS()
  15499. {
  15500. # Check whether --enable-oss was given.
  15501. if test "${enable_oss+set}" = set; then :
  15502. enableval=$enable_oss;
  15503. else
  15504. enable_oss=maybe
  15505. fi
  15506. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15507. # use sndio instead. So on there, we default to disabled. You can force
  15508. # it on if you really want, though.
  15509. if test x$enable_oss = xmaybe; then
  15510. enable_oss=yes
  15511. case "$host" in
  15512. *-*-openbsd*)
  15513. enable_oss=no;;
  15514. esac
  15515. fi
  15516. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15518. $as_echo_n "checking for OSS audio support... " >&6; }
  15519. have_oss=no
  15520. if test x$have_oss != xyes; then
  15521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15522. /* end confdefs.h. */
  15523. #include <sys/soundcard.h>
  15524. int
  15525. main ()
  15526. {
  15527. int arg = SNDCTL_DSP_SETFRAGMENT;
  15528. ;
  15529. return 0;
  15530. }
  15531. _ACEOF
  15532. if ac_fn_c_try_compile "$LINENO"; then :
  15533. have_oss=yes
  15534. fi
  15535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15536. fi
  15537. if test x$have_oss != xyes; then
  15538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15539. /* end confdefs.h. */
  15540. #include <soundcard.h>
  15541. int
  15542. main ()
  15543. {
  15544. int arg = SNDCTL_DSP_SETFRAGMENT;
  15545. ;
  15546. return 0;
  15547. }
  15548. _ACEOF
  15549. if ac_fn_c_try_compile "$LINENO"; then :
  15550. have_oss=yes
  15551. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15552. fi
  15553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15554. fi
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15556. $as_echo "$have_oss" >&6; }
  15557. if test x$have_oss = xyes; then
  15558. SUMMARY_audio="${SUMMARY_audio} oss"
  15559. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15560. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15561. have_audio=yes
  15562. # We may need to link with ossaudio emulation library
  15563. case "$host" in
  15564. *-*-openbsd*|*-*-netbsd*)
  15565. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15566. esac
  15567. fi
  15568. fi
  15569. }
  15570. CheckALSA()
  15571. {
  15572. # Check whether --enable-alsa was given.
  15573. if test "${enable_alsa+set}" = set; then :
  15574. enableval=$enable_alsa;
  15575. else
  15576. enable_alsa=yes
  15577. fi
  15578. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15579. alsa_save_CFLAGS="$CFLAGS"
  15580. alsa_save_LDFLAGS="$LDFLAGS"
  15581. alsa_save_LIBS="$LIBS"
  15582. alsa_found=yes
  15583. # Check whether --with-alsa-prefix was given.
  15584. if test "${with_alsa_prefix+set}" = set; then :
  15585. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15586. else
  15587. alsa_prefix=""
  15588. fi
  15589. # Check whether --with-alsa-inc-prefix was given.
  15590. if test "${with_alsa_inc_prefix+set}" = set; then :
  15591. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15592. else
  15593. alsa_inc_prefix=""
  15594. fi
  15595. # Check whether --enable-alsatest was given.
  15596. if test "${enable_alsatest+set}" = set; then :
  15597. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15598. else
  15599. enable_alsatest=yes
  15600. fi
  15601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15602. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15603. if test "$alsa_inc_prefix" != "" ; then
  15604. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15605. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15606. fi
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15608. $as_echo "$ALSA_CFLAGS" >&6; }
  15609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15610. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15611. if test "$alsa_prefix" != "" ; then
  15612. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15613. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15614. fi
  15615. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15616. LIBS=`echo $LIBS | sed 's/-lm//'`
  15617. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15618. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15619. LIBS=`echo $LIBS | sed 's/ //'`
  15620. LIBS="$ALSA_LIBS $LIBS"
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15622. $as_echo "$ALSA_LIBS" >&6; }
  15623. min_alsa_version=1.0.11
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15625. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15626. no_alsa=""
  15627. alsa_min_major_version=`echo $min_alsa_version | \
  15628. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15629. alsa_min_minor_version=`echo $min_alsa_version | \
  15630. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15631. alsa_min_micro_version=`echo $min_alsa_version | \
  15632. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15633. ac_ext=c
  15634. ac_cpp='$CPP $CPPFLAGS'
  15635. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15636. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15637. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15639. /* end confdefs.h. */
  15640. #include <alsa/asoundlib.h>
  15641. int
  15642. main ()
  15643. {
  15644. /* ensure backward compatibility */
  15645. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15646. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15647. #endif
  15648. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15649. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15650. #endif
  15651. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15652. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15653. #endif
  15654. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15655. exit(0);
  15656. # else
  15657. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15658. # error not present
  15659. # endif
  15660. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15661. exit(0);
  15662. # else
  15663. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15664. # error not present
  15665. # endif
  15666. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15667. # error not present
  15668. # endif
  15669. # endif
  15670. # endif
  15671. exit(0);
  15672. ;
  15673. return 0;
  15674. }
  15675. _ACEOF
  15676. if ac_fn_c_try_compile "$LINENO"; then :
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15678. $as_echo "found." >&6; }
  15679. else
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15681. $as_echo "not present." >&6; }
  15682. alsa_found=no
  15683. fi
  15684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15685. ac_ext=c
  15686. ac_cpp='$CPP $CPPFLAGS'
  15687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15690. if test "x$enable_alsatest" = "xyes"; then
  15691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15692. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15693. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15694. $as_echo_n "(cached) " >&6
  15695. else
  15696. ac_check_lib_save_LIBS=$LIBS
  15697. LIBS="-lasound $LIBS"
  15698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15699. /* end confdefs.h. */
  15700. /* Override any GCC internal prototype to avoid an error.
  15701. Use char because int might match the return type of a GCC
  15702. builtin and then its argument prototype would still apply. */
  15703. #ifdef __cplusplus
  15704. extern "C"
  15705. #endif
  15706. char snd_ctl_open ();
  15707. int
  15708. main ()
  15709. {
  15710. return snd_ctl_open ();
  15711. ;
  15712. return 0;
  15713. }
  15714. _ACEOF
  15715. if ac_fn_c_try_link "$LINENO"; then :
  15716. ac_cv_lib_asound_snd_ctl_open=yes
  15717. else
  15718. ac_cv_lib_asound_snd_ctl_open=no
  15719. fi
  15720. rm -f core conftest.err conftest.$ac_objext \
  15721. conftest$ac_exeext conftest.$ac_ext
  15722. LIBS=$ac_check_lib_save_LIBS
  15723. fi
  15724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15725. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15726. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15727. cat >>confdefs.h <<_ACEOF
  15728. #define HAVE_LIBASOUND 1
  15729. _ACEOF
  15730. LIBS="-lasound $LIBS"
  15731. else
  15732. alsa_found=no
  15733. fi
  15734. fi
  15735. if test "x$alsa_found" = "xyes" ; then
  15736. have_alsa=yes
  15737. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15738. LIBS=`echo $LIBS | sed 's/ //'`
  15739. LIBS="-lasound $LIBS"
  15740. fi
  15741. if test "x$alsa_found" = "xno" ; then
  15742. have_alsa=no
  15743. CFLAGS="$alsa_save_CFLAGS"
  15744. LDFLAGS="$alsa_save_LDFLAGS"
  15745. LIBS="$alsa_save_LIBS"
  15746. ALSA_CFLAGS=""
  15747. ALSA_LIBS=""
  15748. fi
  15749. # Restore all flags from before the ALSA detection runs
  15750. CFLAGS="$alsa_save_CFLAGS"
  15751. LDFLAGS="$alsa_save_LDFLAGS"
  15752. LIBS="$alsa_save_LIBS"
  15753. if test x$have_alsa = xyes; then
  15754. # Check whether --enable-alsa-shared was given.
  15755. if test "${enable_alsa_shared+set}" = set; then :
  15756. enableval=$enable_alsa_shared;
  15757. else
  15758. enable_alsa_shared=yes
  15759. fi
  15760. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15761. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15762. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15763. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15764. if test x$have_loadso != xyes && \
  15765. test x$enable_alsa_shared = xyes; then
  15766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15767. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15768. fi
  15769. if test x$have_loadso = xyes && \
  15770. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15771. echo "-- dynamic libasound -> $alsa_lib"
  15772. cat >>confdefs.h <<_ACEOF
  15773. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15774. _ACEOF
  15775. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15776. else
  15777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15778. SUMMARY_audio="${SUMMARY_audio} alsa"
  15779. fi
  15780. have_audio=yes
  15781. fi
  15782. fi
  15783. }
  15784. CheckJACK()
  15785. {
  15786. # Check whether --enable-jack was given.
  15787. if test "${enable_jack+set}" = set; then :
  15788. enableval=$enable_jack;
  15789. else
  15790. enable_jack=yes
  15791. fi
  15792. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15793. pkg_failed=no
  15794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15795. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15796. if test -n "$JACK_CFLAGS"; then
  15797. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15798. elif test -n "$PKG_CONFIG"; then
  15799. if test -n "$PKG_CONFIG" && \
  15800. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15801. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15802. ac_status=$?
  15803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15804. test $ac_status = 0; }; then
  15805. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15806. test "x$?" != "x0" && pkg_failed=yes
  15807. else
  15808. pkg_failed=yes
  15809. fi
  15810. else
  15811. pkg_failed=untried
  15812. fi
  15813. if test -n "$JACK_LIBS"; then
  15814. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15815. elif test -n "$PKG_CONFIG"; then
  15816. if test -n "$PKG_CONFIG" && \
  15817. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15818. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15819. ac_status=$?
  15820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15821. test $ac_status = 0; }; then
  15822. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15823. test "x$?" != "x0" && pkg_failed=yes
  15824. else
  15825. pkg_failed=yes
  15826. fi
  15827. else
  15828. pkg_failed=untried
  15829. fi
  15830. if test $pkg_failed = yes; then
  15831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15832. $as_echo "no" >&6; }
  15833. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15834. _pkg_short_errors_supported=yes
  15835. else
  15836. _pkg_short_errors_supported=no
  15837. fi
  15838. if test $_pkg_short_errors_supported = yes; then
  15839. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15840. else
  15841. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15842. fi
  15843. # Put the nasty error message in config.log where it belongs
  15844. echo "$JACK_PKG_ERRORS" >&5
  15845. audio_jack=no
  15846. elif test $pkg_failed = untried; then
  15847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15848. $as_echo "no" >&6; }
  15849. audio_jack=no
  15850. else
  15851. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15852. JACK_LIBS=$pkg_cv_JACK_LIBS
  15853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15854. $as_echo "yes" >&6; }
  15855. audio_jack=yes
  15856. fi
  15857. if test x$audio_jack = xyes; then
  15858. # Check whether --enable-jack-shared was given.
  15859. if test "${enable_jack_shared+set}" = set; then :
  15860. enableval=$enable_jack_shared;
  15861. else
  15862. enable_jack_shared=yes
  15863. fi
  15864. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15865. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15866. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15867. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15868. if test x$have_loadso != xyes && \
  15869. test x$enable_jack_shared = xyes; then
  15870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15871. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15872. fi
  15873. if test x$have_loadso = xyes && \
  15874. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15875. echo "-- dynamic libjack -> $jack_lib"
  15876. cat >>confdefs.h <<_ACEOF
  15877. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15878. _ACEOF
  15879. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15880. case "$host" in
  15881. # On Solaris, jack must be linked deferred explicitly
  15882. # to prevent undefined symbol failures.
  15883. *-*-solaris*)
  15884. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15885. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15886. esac
  15887. else
  15888. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15889. SUMMARY_audio="${SUMMARY_audio} jack"
  15890. fi
  15891. have_audio=yes
  15892. fi
  15893. fi
  15894. }
  15895. CheckESD()
  15896. {
  15897. # Check whether --enable-esd was given.
  15898. if test "${enable_esd+set}" = set; then :
  15899. enableval=$enable_esd;
  15900. else
  15901. enable_esd=yes
  15902. fi
  15903. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15904. # Check whether --with-esd-prefix was given.
  15905. if test "${with_esd_prefix+set}" = set; then :
  15906. withval=$with_esd_prefix; esd_prefix="$withval"
  15907. else
  15908. esd_prefix=""
  15909. fi
  15910. # Check whether --with-esd-exec-prefix was given.
  15911. if test "${with_esd_exec_prefix+set}" = set; then :
  15912. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15913. else
  15914. esd_exec_prefix=""
  15915. fi
  15916. # Check whether --enable-esdtest was given.
  15917. if test "${enable_esdtest+set}" = set; then :
  15918. enableval=$enable_esdtest;
  15919. else
  15920. enable_esdtest=yes
  15921. fi
  15922. if test x$esd_exec_prefix != x ; then
  15923. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15924. if test x${ESD_CONFIG+set} != xset ; then
  15925. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15926. fi
  15927. fi
  15928. if test x$esd_prefix != x ; then
  15929. esd_args="$esd_args --prefix=$esd_prefix"
  15930. if test x${ESD_CONFIG+set} != xset ; then
  15931. ESD_CONFIG=$esd_prefix/bin/esd-config
  15932. fi
  15933. fi
  15934. # Extract the first word of "esd-config", so it can be a program name with args.
  15935. set dummy esd-config; ac_word=$2
  15936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15937. $as_echo_n "checking for $ac_word... " >&6; }
  15938. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15939. $as_echo_n "(cached) " >&6
  15940. else
  15941. case $ESD_CONFIG in
  15942. [\\/]* | ?:[\\/]*)
  15943. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15944. ;;
  15945. *)
  15946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15947. for as_dir in $PATH
  15948. do
  15949. IFS=$as_save_IFS
  15950. test -z "$as_dir" && as_dir=.
  15951. for ac_exec_ext in '' $ac_executable_extensions; do
  15952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15953. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15955. break 2
  15956. fi
  15957. done
  15958. done
  15959. IFS=$as_save_IFS
  15960. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15961. ;;
  15962. esac
  15963. fi
  15964. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15965. if test -n "$ESD_CONFIG"; then
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15967. $as_echo "$ESD_CONFIG" >&6; }
  15968. else
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15970. $as_echo "no" >&6; }
  15971. fi
  15972. min_esd_version=0.2.8
  15973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15974. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15975. no_esd=""
  15976. if test "$ESD_CONFIG" = "no" ; then
  15977. no_esd=yes
  15978. else
  15979. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15980. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15981. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15982. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15983. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15984. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15985. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15986. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15987. if test "x$enable_esdtest" = "xyes" ; then
  15988. ac_ext=c
  15989. ac_cpp='$CPP $CPPFLAGS'
  15990. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15991. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15992. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15993. ac_save_CFLAGS="$CFLAGS"
  15994. ac_save_LIBS="$LIBS"
  15995. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15996. LIBS="$LIBS $ESD_LIBS"
  15997. rm -f conf.esdtest
  15998. if test "$cross_compiling" = yes; then :
  15999. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16000. else
  16001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16002. /* end confdefs.h. */
  16003. #include <stdio.h>
  16004. #include <stdlib.h>
  16005. #include <esd.h>
  16006. int main (void)
  16007. {
  16008. int major, minor, micro;
  16009. FILE *fp = fopen("conf.esdtest", "w");
  16010. if (fp) fclose(fp);
  16011. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16012. printf("%s, bad version string\n", "$min_esd_version");
  16013. exit(1);
  16014. }
  16015. if (($esd_major_version > major) ||
  16016. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16017. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16018. {
  16019. return 0;
  16020. }
  16021. else
  16022. {
  16023. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16024. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16025. printf("*** best to upgrade to the required version.\n");
  16026. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16027. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16028. printf("*** config.cache before re-running configure\n");
  16029. return 1;
  16030. }
  16031. }
  16032. _ACEOF
  16033. if ac_fn_c_try_run "$LINENO"; then :
  16034. else
  16035. no_esd=yes
  16036. fi
  16037. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16038. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16039. fi
  16040. CFLAGS="$ac_save_CFLAGS"
  16041. LIBS="$ac_save_LIBS"
  16042. ac_ext=c
  16043. ac_cpp='$CPP $CPPFLAGS'
  16044. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16045. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16046. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16047. fi
  16048. fi
  16049. if test "x$no_esd" = x ; then
  16050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16051. $as_echo "yes" >&6; }
  16052. have_esd=yes
  16053. else
  16054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16055. $as_echo "no" >&6; }
  16056. if test "$ESD_CONFIG" = "no" ; then
  16057. echo "*** The esd-config script installed by ESD could not be found"
  16058. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16059. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16060. echo "*** full path to esd-config."
  16061. else
  16062. if test -f conf.esdtest ; then
  16063. :
  16064. else
  16065. echo "*** Could not run ESD test program, checking why..."
  16066. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16067. LIBS="$LIBS $ESD_LIBS"
  16068. ac_ext=c
  16069. ac_cpp='$CPP $CPPFLAGS'
  16070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16074. /* end confdefs.h. */
  16075. #include <stdio.h>
  16076. #include <esd.h>
  16077. int
  16078. main ()
  16079. {
  16080. return 0;
  16081. ;
  16082. return 0;
  16083. }
  16084. _ACEOF
  16085. if ac_fn_c_try_link "$LINENO"; then :
  16086. echo "*** The test program compiled, but did not run. This usually means"
  16087. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16088. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16089. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16090. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16091. echo "*** is required on your system"
  16092. echo "***"
  16093. echo "*** If you have an old version installed, it is best to remove it, although"
  16094. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16095. else
  16096. echo "*** The test program failed to compile or link. See the file config.log for the"
  16097. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16098. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16099. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16100. fi
  16101. rm -f core conftest.err conftest.$ac_objext \
  16102. conftest$ac_exeext conftest.$ac_ext
  16103. CFLAGS="$ac_save_CFLAGS"
  16104. LIBS="$ac_save_LIBS"
  16105. ac_ext=c
  16106. ac_cpp='$CPP $CPPFLAGS'
  16107. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16108. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16109. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16110. fi
  16111. fi
  16112. ESD_CFLAGS=""
  16113. ESD_LIBS=""
  16114. have_esd=no
  16115. fi
  16116. rm -f conf.esdtest
  16117. if test x$have_esd = xyes; then
  16118. # Check whether --enable-esd-shared was given.
  16119. if test "${enable_esd_shared+set}" = set; then :
  16120. enableval=$enable_esd_shared;
  16121. else
  16122. enable_esd_shared=yes
  16123. fi
  16124. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16125. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16126. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16127. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16128. if test x$have_loadso != xyes && \
  16129. test x$enable_esd_shared = xyes; then
  16130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16131. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16132. fi
  16133. if test x$have_loadso = xyes && \
  16134. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16135. echo "-- dynamic libesd -> $esd_lib"
  16136. cat >>confdefs.h <<_ACEOF
  16137. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16138. _ACEOF
  16139. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16140. else
  16141. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16142. SUMMARY_audio="${SUMMARY_audio} esd"
  16143. fi
  16144. have_audio=yes
  16145. fi
  16146. fi
  16147. }
  16148. CheckPipewire()
  16149. {
  16150. # Check whether --enable-pipewire was given.
  16151. if test "${enable_pipewire+set}" = set; then :
  16152. enableval=$enable_pipewire;
  16153. else
  16154. enable_pipewire=yes
  16155. fi
  16156. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16157. pkg_failed=no
  16158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16159. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16160. if test -n "$PIPEWIRE_CFLAGS"; then
  16161. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16162. elif test -n "$PKG_CONFIG"; then
  16163. if test -n "$PKG_CONFIG" && \
  16164. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16165. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16166. ac_status=$?
  16167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16168. test $ac_status = 0; }; then
  16169. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16170. test "x$?" != "x0" && pkg_failed=yes
  16171. else
  16172. pkg_failed=yes
  16173. fi
  16174. else
  16175. pkg_failed=untried
  16176. fi
  16177. if test -n "$PIPEWIRE_LIBS"; then
  16178. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16179. elif test -n "$PKG_CONFIG"; then
  16180. if test -n "$PKG_CONFIG" && \
  16181. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16182. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16183. ac_status=$?
  16184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16185. test $ac_status = 0; }; then
  16186. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16187. test "x$?" != "x0" && pkg_failed=yes
  16188. else
  16189. pkg_failed=yes
  16190. fi
  16191. else
  16192. pkg_failed=untried
  16193. fi
  16194. if test $pkg_failed = yes; then
  16195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16196. $as_echo "no" >&6; }
  16197. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16198. _pkg_short_errors_supported=yes
  16199. else
  16200. _pkg_short_errors_supported=no
  16201. fi
  16202. if test $_pkg_short_errors_supported = yes; then
  16203. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16204. else
  16205. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16206. fi
  16207. # Put the nasty error message in config.log where it belongs
  16208. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16209. audio_pipewire=no
  16210. elif test $pkg_failed = untried; then
  16211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16212. $as_echo "no" >&6; }
  16213. audio_pipewire=no
  16214. else
  16215. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16216. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16218. $as_echo "yes" >&6; }
  16219. audio_pipewire=yes
  16220. fi
  16221. if test x$audio_pipewire = xyes; then
  16222. # Check whether --enable-pipewire-shared was given.
  16223. if test "${enable_pipewire_shared+set}" = set; then :
  16224. enableval=$enable_pipewire_shared;
  16225. else
  16226. enable_pipewire_shared=yes
  16227. fi
  16228. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16229. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16230. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16231. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16232. if test x$have_loadso != xyes && \
  16233. test x$enable_pipewire_shared = xyes; then
  16234. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16235. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16236. fi
  16237. if test x$have_loadso = xyes && \
  16238. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16239. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16240. cat >>confdefs.h <<_ACEOF
  16241. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16242. _ACEOF
  16243. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16244. else
  16245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16246. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16247. fi
  16248. have_audio=yes
  16249. fi
  16250. fi
  16251. }
  16252. CheckPulseAudio()
  16253. {
  16254. # Check whether --enable-pulseaudio was given.
  16255. if test "${enable_pulseaudio+set}" = set; then :
  16256. enableval=$enable_pulseaudio;
  16257. else
  16258. enable_pulseaudio=yes
  16259. fi
  16260. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16261. pkg_failed=no
  16262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16263. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16264. if test -n "$PULSEAUDIO_CFLAGS"; then
  16265. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16266. elif test -n "$PKG_CONFIG"; then
  16267. if test -n "$PKG_CONFIG" && \
  16268. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16269. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16270. ac_status=$?
  16271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16272. test $ac_status = 0; }; then
  16273. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16274. test "x$?" != "x0" && pkg_failed=yes
  16275. else
  16276. pkg_failed=yes
  16277. fi
  16278. else
  16279. pkg_failed=untried
  16280. fi
  16281. if test -n "$PULSEAUDIO_LIBS"; then
  16282. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16283. elif test -n "$PKG_CONFIG"; then
  16284. if test -n "$PKG_CONFIG" && \
  16285. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16286. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16287. ac_status=$?
  16288. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16289. test $ac_status = 0; }; then
  16290. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16291. test "x$?" != "x0" && pkg_failed=yes
  16292. else
  16293. pkg_failed=yes
  16294. fi
  16295. else
  16296. pkg_failed=untried
  16297. fi
  16298. if test $pkg_failed = yes; then
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16300. $as_echo "no" >&6; }
  16301. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16302. _pkg_short_errors_supported=yes
  16303. else
  16304. _pkg_short_errors_supported=no
  16305. fi
  16306. if test $_pkg_short_errors_supported = yes; then
  16307. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16308. else
  16309. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16310. fi
  16311. # Put the nasty error message in config.log where it belongs
  16312. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16313. audio_pulseaudio=no
  16314. elif test $pkg_failed = untried; then
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16316. $as_echo "no" >&6; }
  16317. audio_pulseaudio=no
  16318. else
  16319. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16320. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16322. $as_echo "yes" >&6; }
  16323. audio_pulseaudio=yes
  16324. fi
  16325. if test x$audio_pulseaudio = xyes; then
  16326. # Check whether --enable-pulseaudio-shared was given.
  16327. if test "${enable_pulseaudio_shared+set}" = set; then :
  16328. enableval=$enable_pulseaudio_shared;
  16329. else
  16330. enable_pulseaudio_shared=yes
  16331. fi
  16332. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16333. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16334. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16335. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16336. if test x$have_loadso != xyes && \
  16337. test x$enable_pulseaudio_shared = xyes; then
  16338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16339. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16340. fi
  16341. if test x$have_loadso = xyes && \
  16342. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16343. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16344. cat >>confdefs.h <<_ACEOF
  16345. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16346. _ACEOF
  16347. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16348. case "$host" in
  16349. # On Solaris, pulseaudio must be linked deferred explicitly
  16350. # to prevent undefined symbol failures.
  16351. *-*-solaris*)
  16352. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16353. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16354. esac
  16355. else
  16356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16357. SUMMARY_audio="${SUMMARY_audio} pulse"
  16358. fi
  16359. have_audio=yes
  16360. fi
  16361. fi
  16362. }
  16363. CheckARTSC()
  16364. {
  16365. # Check whether --enable-arts was given.
  16366. if test "${enable_arts+set}" = set; then :
  16367. enableval=$enable_arts;
  16368. else
  16369. enable_arts=yes
  16370. fi
  16371. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16372. # Extract the first word of "artsc-config", so it can be a program name with args.
  16373. set dummy artsc-config; ac_word=$2
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16375. $as_echo_n "checking for $ac_word... " >&6; }
  16376. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16377. $as_echo_n "(cached) " >&6
  16378. else
  16379. case $ARTSCONFIG in
  16380. [\\/]* | ?:[\\/]*)
  16381. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16382. ;;
  16383. *)
  16384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16385. for as_dir in $PATH
  16386. do
  16387. IFS=$as_save_IFS
  16388. test -z "$as_dir" && as_dir=.
  16389. for ac_exec_ext in '' $ac_executable_extensions; do
  16390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16391. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16393. break 2
  16394. fi
  16395. done
  16396. done
  16397. IFS=$as_save_IFS
  16398. ;;
  16399. esac
  16400. fi
  16401. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16402. if test -n "$ARTSCONFIG"; then
  16403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16404. $as_echo "$ARTSCONFIG" >&6; }
  16405. else
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16407. $as_echo "no" >&6; }
  16408. fi
  16409. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16410. : # arts isn't installed
  16411. else
  16412. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16413. ARTS_LIBS=`$ARTSCONFIG --libs`
  16414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16415. $as_echo_n "checking for aRts development environment... " >&6; }
  16416. audio_arts=no
  16417. save_CFLAGS="$CFLAGS"
  16418. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16420. /* end confdefs.h. */
  16421. #include <artsc.h>
  16422. int
  16423. main ()
  16424. {
  16425. arts_stream_t stream;
  16426. ;
  16427. return 0;
  16428. }
  16429. _ACEOF
  16430. if ac_fn_c_try_compile "$LINENO"; then :
  16431. audio_arts=yes
  16432. fi
  16433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16434. CFLAGS="$save_CFLAGS"
  16435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16436. $as_echo "$audio_arts" >&6; }
  16437. if test x$audio_arts = xyes; then
  16438. # Check whether --enable-arts-shared was given.
  16439. if test "${enable_arts_shared+set}" = set; then :
  16440. enableval=$enable_arts_shared;
  16441. else
  16442. enable_arts_shared=yes
  16443. fi
  16444. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16445. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16446. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16447. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16448. if test x$have_loadso != xyes && \
  16449. test x$enable_arts_shared = xyes; then
  16450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16451. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16452. fi
  16453. if test x$have_loadso = xyes && \
  16454. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16455. echo "-- dynamic libartsc -> $arts_lib"
  16456. cat >>confdefs.h <<_ACEOF
  16457. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16458. _ACEOF
  16459. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16460. else
  16461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16462. SUMMARY_audio="${SUMMARY_audio} arts"
  16463. fi
  16464. have_audio=yes
  16465. fi
  16466. fi
  16467. fi
  16468. }
  16469. CheckNAS()
  16470. {
  16471. # Check whether --enable-nas was given.
  16472. if test "${enable_nas+set}" = set; then :
  16473. enableval=$enable_nas;
  16474. else
  16475. enable_nas=yes
  16476. fi
  16477. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16478. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16479. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16480. have_nas_hdr=yes
  16481. fi
  16482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16483. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16484. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16485. $as_echo_n "(cached) " >&6
  16486. else
  16487. ac_check_lib_save_LIBS=$LIBS
  16488. LIBS="-laudio $LIBS"
  16489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16490. /* end confdefs.h. */
  16491. /* Override any GCC internal prototype to avoid an error.
  16492. Use char because int might match the return type of a GCC
  16493. builtin and then its argument prototype would still apply. */
  16494. #ifdef __cplusplus
  16495. extern "C"
  16496. #endif
  16497. char AuOpenServer ();
  16498. int
  16499. main ()
  16500. {
  16501. return AuOpenServer ();
  16502. ;
  16503. return 0;
  16504. }
  16505. _ACEOF
  16506. if ac_fn_c_try_link "$LINENO"; then :
  16507. ac_cv_lib_audio_AuOpenServer=yes
  16508. else
  16509. ac_cv_lib_audio_AuOpenServer=no
  16510. fi
  16511. rm -f core conftest.err conftest.$ac_objext \
  16512. conftest$ac_exeext conftest.$ac_ext
  16513. LIBS=$ac_check_lib_save_LIBS
  16514. fi
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16516. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16517. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16518. have_nas_lib=yes
  16519. fi
  16520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16521. $as_echo_n "checking for NAS audio support... " >&6; }
  16522. have_nas=no
  16523. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16524. have_nas=yes
  16525. NAS_LIBS="-laudio"
  16526. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16527. have_nas=yes
  16528. NAS_CFLAGS="-I/usr/X11R6/include/"
  16529. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16530. fi
  16531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16532. $as_echo "$have_nas" >&6; }
  16533. if test x$have_nas = xyes; then
  16534. # Check whether --enable-nas-shared was given.
  16535. if test "${enable_nas_shared+set}" = set; then :
  16536. enableval=$enable_nas_shared;
  16537. else
  16538. enable_nas_shared=yes
  16539. fi
  16540. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16541. if test x$have_loadso != xyes && \
  16542. test x$enable_nas_shared = xyes; then
  16543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16544. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16545. fi
  16546. if test x$have_loadso = xyes && \
  16547. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16548. echo "-- dynamic libaudio -> $nas_lib"
  16549. cat >>confdefs.h <<_ACEOF
  16550. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16551. _ACEOF
  16552. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16553. else
  16554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16555. SUMMARY_audio="${SUMMARY_audio} nas"
  16556. fi
  16557. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16558. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16559. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16560. have_audio=yes
  16561. fi
  16562. fi
  16563. }
  16564. CheckSNDIO()
  16565. {
  16566. # Check whether --enable-sndio was given.
  16567. if test "${enable_sndio+set}" = set; then :
  16568. enableval=$enable_sndio;
  16569. else
  16570. enable_sndio=yes
  16571. fi
  16572. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16573. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16574. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16575. have_sndio_hdr=yes
  16576. fi
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16578. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16579. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16580. $as_echo_n "(cached) " >&6
  16581. else
  16582. ac_check_lib_save_LIBS=$LIBS
  16583. LIBS="-lsndio $LIBS"
  16584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16585. /* end confdefs.h. */
  16586. /* Override any GCC internal prototype to avoid an error.
  16587. Use char because int might match the return type of a GCC
  16588. builtin and then its argument prototype would still apply. */
  16589. #ifdef __cplusplus
  16590. extern "C"
  16591. #endif
  16592. char sio_open ();
  16593. int
  16594. main ()
  16595. {
  16596. return sio_open ();
  16597. ;
  16598. return 0;
  16599. }
  16600. _ACEOF
  16601. if ac_fn_c_try_link "$LINENO"; then :
  16602. ac_cv_lib_sndio_sio_open=yes
  16603. else
  16604. ac_cv_lib_sndio_sio_open=no
  16605. fi
  16606. rm -f core conftest.err conftest.$ac_objext \
  16607. conftest$ac_exeext conftest.$ac_ext
  16608. LIBS=$ac_check_lib_save_LIBS
  16609. fi
  16610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16611. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16612. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16613. have_sndio_lib=yes
  16614. fi
  16615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16616. $as_echo_n "checking for sndio audio support... " >&6; }
  16617. have_sndio=no
  16618. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16619. have_sndio=yes
  16620. SNDIO_LIBS="-lsndio"
  16621. fi
  16622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16623. $as_echo "$have_sndio" >&6; }
  16624. if test x$have_sndio = xyes; then
  16625. # Check whether --enable-sndio-shared was given.
  16626. if test "${enable_sndio_shared+set}" = set; then :
  16627. enableval=$enable_sndio_shared;
  16628. else
  16629. enable_sndio_shared=yes
  16630. fi
  16631. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16632. if test x$have_loadso != xyes && \
  16633. test x$enable_sndio_shared = xyes; then
  16634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16635. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16636. fi
  16637. if test x$have_loadso = xyes && \
  16638. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16639. echo "-- dynamic libsndio -> $sndio_lib"
  16640. cat >>confdefs.h <<_ACEOF
  16641. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16642. _ACEOF
  16643. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16644. else
  16645. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16646. SUMMARY_audio="${SUMMARY_audio} sndio"
  16647. fi
  16648. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16649. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16650. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16651. have_audio=yes
  16652. fi
  16653. fi
  16654. }
  16655. CheckFusionSound()
  16656. {
  16657. # Check whether --enable-fusionsound was given.
  16658. if test "${enable_fusionsound+set}" = set; then :
  16659. enableval=$enable_fusionsound;
  16660. else
  16661. enable_fusionsound=no
  16662. fi
  16663. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16664. pkg_failed=no
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16666. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16667. if test -n "$FUSIONSOUND_CFLAGS"; then
  16668. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16669. elif test -n "$PKG_CONFIG"; then
  16670. if test -n "$PKG_CONFIG" && \
  16671. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16672. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16673. ac_status=$?
  16674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16675. test $ac_status = 0; }; then
  16676. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16677. test "x$?" != "x0" && pkg_failed=yes
  16678. else
  16679. pkg_failed=yes
  16680. fi
  16681. else
  16682. pkg_failed=untried
  16683. fi
  16684. if test -n "$FUSIONSOUND_LIBS"; then
  16685. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16686. elif test -n "$PKG_CONFIG"; then
  16687. if test -n "$PKG_CONFIG" && \
  16688. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16689. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16690. ac_status=$?
  16691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16692. test $ac_status = 0; }; then
  16693. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16694. test "x$?" != "x0" && pkg_failed=yes
  16695. else
  16696. pkg_failed=yes
  16697. fi
  16698. else
  16699. pkg_failed=untried
  16700. fi
  16701. if test $pkg_failed = yes; then
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16703. $as_echo "no" >&6; }
  16704. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16705. _pkg_short_errors_supported=yes
  16706. else
  16707. _pkg_short_errors_supported=no
  16708. fi
  16709. if test $_pkg_short_errors_supported = yes; then
  16710. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16711. else
  16712. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16713. fi
  16714. # Put the nasty error message in config.log where it belongs
  16715. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16716. fusionsound=no
  16717. elif test $pkg_failed = untried; then
  16718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16719. $as_echo "no" >&6; }
  16720. fusionsound=no
  16721. else
  16722. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16723. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16725. $as_echo "yes" >&6; }
  16726. fusionsound=yes
  16727. fi
  16728. if test x$fusionsound = xyes; then
  16729. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16730. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16731. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16732. # Check whether --enable-fusionsound-shared was given.
  16733. if test "${enable_fusionsound_shared+set}" = set; then :
  16734. enableval=$enable_fusionsound_shared;
  16735. else
  16736. enable_fusionsound_shared=yes
  16737. fi
  16738. fusionsound_shared=no
  16739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16740. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16741. if test x$have_loadso != xyes && \
  16742. test x$enable_fusionsound_shared = xyes; then
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16744. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16745. fi
  16746. if test x$have_loadso = xyes && \
  16747. test x$enable_fusionsound_shared = xyes; then
  16748. cat >>confdefs.h <<_ACEOF
  16749. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16750. _ACEOF
  16751. fusionsound_shared=yes
  16752. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16753. else
  16754. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16755. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16756. fi
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16758. $as_echo "$fusionsound_shared" >&6; }
  16759. have_audio=yes
  16760. fi
  16761. fi
  16762. }
  16763. CheckDiskAudio()
  16764. {
  16765. # Check whether --enable-diskaudio was given.
  16766. if test "${enable_diskaudio+set}" = set; then :
  16767. enableval=$enable_diskaudio;
  16768. else
  16769. enable_diskaudio=yes
  16770. fi
  16771. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16772. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16773. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16774. SUMMARY_audio="${SUMMARY_audio} disk"
  16775. fi
  16776. }
  16777. CheckDummyAudio()
  16778. {
  16779. # Check whether --enable-dummyaudio was given.
  16780. if test "${enable_dummyaudio+set}" = set; then :
  16781. enableval=$enable_dummyaudio;
  16782. else
  16783. enable_dummyaudio=yes
  16784. fi
  16785. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16786. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16787. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16788. SUMMARY_audio="${SUMMARY_audio} dummy"
  16789. fi
  16790. }
  16791. CheckLibSampleRate()
  16792. {
  16793. # Check whether --enable-libsamplerate was given.
  16794. if test "${enable_libsamplerate+set}" = set; then :
  16795. enableval=$enable_libsamplerate;
  16796. else
  16797. enable_libsamplerate=yes
  16798. fi
  16799. if test x$enable_libsamplerate = xyes; then
  16800. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16801. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16802. have_samplerate_h_hdr=yes
  16803. else
  16804. have_samplerate_h_hdr=no
  16805. fi
  16806. if test x$have_samplerate_h_hdr = xyes; then
  16807. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16808. # Check whether --enable-libsamplerate-shared was given.
  16809. if test "${enable_libsamplerate_shared+set}" = set; then :
  16810. enableval=$enable_libsamplerate_shared;
  16811. else
  16812. enable_libsamplerate_shared=yes
  16813. fi
  16814. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16815. if test x$have_loadso != xyes && \
  16816. test x$enable_libsamplerate_shared = xyes; then
  16817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16818. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16819. fi
  16820. if test x$have_loadso = xyes && \
  16821. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16822. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16823. cat >>confdefs.h <<_ACEOF
  16824. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16825. _ACEOF
  16826. else
  16827. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16828. fi
  16829. fi
  16830. fi
  16831. }
  16832. CheckARM()
  16833. {
  16834. # Check whether --enable-arm-simd was given.
  16835. if test "${enable_arm_simd+set}" = set; then :
  16836. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16837. else
  16838. enable_arm_simd=no
  16839. fi
  16840. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16841. save_CFLAGS="$CFLAGS"
  16842. have_arm_simd=no
  16843. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16845. $as_echo_n "checking for ARM SIMD... " >&6; }
  16846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16847. /* end confdefs.h. */
  16848. .text
  16849. .arch armv6
  16850. .object_arch armv4
  16851. .arm
  16852. .altmacro
  16853. #ifndef __ARM_EABI__
  16854. #error EABI is required (to be sure that calling conventions are compatible)
  16855. #endif
  16856. pld [r0]
  16857. uqadd8 r0, r0, r0
  16858. _ACEOF
  16859. if ac_fn_c_try_compile "$LINENO"; then :
  16860. have_arm_simd=yes
  16861. fi
  16862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16864. $as_echo "$have_arm_simd" >&6; }
  16865. CFLAGS="$save_CFLAGS"
  16866. if test x$have_arm_simd = xyes; then
  16867. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16868. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16869. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16870. fi
  16871. fi
  16872. }
  16873. CheckNEON()
  16874. {
  16875. # Check whether --enable-arm-neon was given.
  16876. if test "${enable_arm_neon+set}" = set; then :
  16877. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16878. else
  16879. enable_arm_neon=no
  16880. fi
  16881. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16882. save_CFLAGS="$CFLAGS"
  16883. have_arm_neon=no
  16884. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16886. $as_echo_n "checking for ARM NEON... " >&6; }
  16887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16888. /* end confdefs.h. */
  16889. .text
  16890. .fpu neon
  16891. .arch armv7a
  16892. .object_arch armv4
  16893. .eabi_attribute 10, 0
  16894. .arm
  16895. .altmacro
  16896. #ifndef __ARM_EABI__
  16897. #error EABI is required (to be sure that calling conventions are compatible)
  16898. #endif
  16899. pld [r0]
  16900. vmovn.u16 d0, q0
  16901. _ACEOF
  16902. if ac_fn_c_try_compile "$LINENO"; then :
  16903. have_arm_neon=yes
  16904. fi
  16905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16907. $as_echo "$have_arm_neon" >&6; }
  16908. CFLAGS="$save_CFLAGS"
  16909. if test x$have_arm_neon = xyes; then
  16910. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16911. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16912. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16913. fi
  16914. fi
  16915. }
  16916. CheckVisibilityHidden()
  16917. {
  16918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16919. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16920. have_gcc_fvisibility=no
  16921. visibility_CFLAGS="-fvisibility=hidden"
  16922. save_CFLAGS="$CFLAGS"
  16923. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16925. /* end confdefs.h. */
  16926. #if !defined(__GNUC__) || __GNUC__ < 4
  16927. #error SDL only uses visibility attributes in GCC 4 or newer
  16928. #endif
  16929. int
  16930. main ()
  16931. {
  16932. ;
  16933. return 0;
  16934. }
  16935. _ACEOF
  16936. if ac_fn_c_try_compile "$LINENO"; then :
  16937. have_gcc_fvisibility=yes
  16938. fi
  16939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16941. $as_echo "$have_gcc_fvisibility" >&6; }
  16942. CFLAGS="$save_CFLAGS"
  16943. if test x$have_gcc_fvisibility = xyes; then
  16944. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16945. fi
  16946. }
  16947. CheckNoStrictAliasing()
  16948. {
  16949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16950. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16951. have_gcc_no_strict_aliasing=no
  16952. save_CFLAGS="$CFLAGS"
  16953. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16955. /* end confdefs.h. */
  16956. int x = 0;
  16957. int
  16958. main ()
  16959. {
  16960. ;
  16961. return 0;
  16962. }
  16963. _ACEOF
  16964. if ac_fn_c_try_compile "$LINENO"; then :
  16965. have_gcc_no_strict_aliasing=yes
  16966. fi
  16967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16969. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16970. CFLAGS="$save_CFLAGS"
  16971. if test x$have_gcc_no_strict_aliasing = xyes; then
  16972. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16973. fi
  16974. }
  16975. CheckStackBoundary()
  16976. {
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16978. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16979. have_gcc_preferred_stack_boundary=no
  16980. save_CFLAGS="$CFLAGS"
  16981. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16983. /* end confdefs.h. */
  16984. int x = 0;
  16985. int
  16986. main ()
  16987. {
  16988. ;
  16989. return 0;
  16990. }
  16991. _ACEOF
  16992. if ac_fn_c_try_compile "$LINENO"; then :
  16993. have_gcc_preferred_stack_boundary=yes
  16994. fi
  16995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16997. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16998. CFLAGS="$save_CFLAGS"
  16999. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17000. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17001. fi
  17002. }
  17003. CheckDeclarationAfterStatement()
  17004. {
  17005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17006. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17007. have_gcc_declaration_after_statement=no
  17008. save_CFLAGS="$CFLAGS"
  17009. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17011. /* end confdefs.h. */
  17012. int x = 0;
  17013. int
  17014. main ()
  17015. {
  17016. ;
  17017. return 0;
  17018. }
  17019. _ACEOF
  17020. if ac_fn_c_try_compile "$LINENO"; then :
  17021. have_gcc_declaration_after_statement=yes
  17022. fi
  17023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17025. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17026. CFLAGS="$save_CFLAGS"
  17027. if test x$have_gcc_declaration_after_statement = xyes; then
  17028. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17029. fi
  17030. }
  17031. CheckWarnAll()
  17032. {
  17033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17034. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17035. have_gcc_Wall=no
  17036. save_CFLAGS="$CFLAGS"
  17037. CFLAGS="$save_CFLAGS -Wall"
  17038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17039. /* end confdefs.h. */
  17040. int x = 0;
  17041. int
  17042. main ()
  17043. {
  17044. ;
  17045. return 0;
  17046. }
  17047. _ACEOF
  17048. if ac_fn_c_try_compile "$LINENO"; then :
  17049. have_gcc_Wall=yes
  17050. fi
  17051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17053. $as_echo "$have_gcc_Wall" >&6; }
  17054. CFLAGS="$save_CFLAGS"
  17055. if test x$have_gcc_Wall = xyes; then
  17056. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17058. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17059. need_gcc_Wno_multichar=no
  17060. case "$host" in
  17061. *-*-haiku*)
  17062. need_gcc_Wno_multichar=yes
  17063. ;;
  17064. esac
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17066. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17067. if test x$need_gcc_Wno_multichar = xyes; then
  17068. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17069. fi
  17070. fi
  17071. }
  17072. CheckWayland()
  17073. {
  17074. # Check whether --enable-video-wayland was given.
  17075. if test "${enable_video_wayland+set}" = set; then :
  17076. enableval=$enable_video_wayland;
  17077. else
  17078. enable_video_wayland=yes
  17079. fi
  17080. # Check whether --enable-video-wayland-qt-touch was given.
  17081. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17082. enableval=$enable_video_wayland_qt_touch;
  17083. else
  17084. enable_video_wayland_qt_touch=yes
  17085. fi
  17086. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17088. $as_echo_n "checking for Wayland support... " >&6; }
  17089. video_wayland=no
  17090. if test x$video_opengl_egl = xyes && \
  17091. test x$video_opengles_v2 = xyes; then
  17092. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  17093. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17094. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17095. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17096. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17097. WAYLAND_SCANNER_CODE_MODE=private-code
  17098. else
  17099. WAYLAND_SCANNER_CODE_MODE=code
  17100. fi
  17101. video_wayland=yes
  17102. fi
  17103. fi
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17105. $as_echo "$video_wayland" >&6; }
  17106. if test x$video_wayland = xyes; then
  17107. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17108. if test x$enable_video_wayland_qt_touch = xyes; then
  17109. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17110. fi
  17111. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17112. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17113. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17114. # Check whether --enable-wayland-shared was given.
  17115. if test "${enable_wayland_shared+set}" = set; then :
  17116. enableval=$enable_wayland_shared;
  17117. else
  17118. enable_wayland_shared=maybe
  17119. fi
  17120. case "$host" in
  17121. *)
  17122. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17123. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17124. if test x$wayland_egl_lib = x; then
  17125. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17126. fi
  17127. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17128. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17129. ;;
  17130. esac
  17131. if test x$enable_wayland_shared = xmaybe; then
  17132. enable_wayland_shared=yes
  17133. fi
  17134. if test x$have_loadso != xyes && \
  17135. test x$enable_wayland_shared = xyes; then
  17136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17137. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17138. enable_wayland_shared=no
  17139. fi
  17140. if test x$have_loadso = xyes && \
  17141. test x$enable_wayland_shared = xyes && \
  17142. test x$wayland_client_lib != x && \
  17143. test x$wayland_egl_lib != x && \
  17144. test x$wayland_cursor_lib != x && \
  17145. test x$xkbcommon_lib != x; then
  17146. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17147. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17148. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17149. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17150. cat >>confdefs.h <<_ACEOF
  17151. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17152. _ACEOF
  17153. cat >>confdefs.h <<_ACEOF
  17154. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17155. _ACEOF
  17156. cat >>confdefs.h <<_ACEOF
  17157. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17158. _ACEOF
  17159. cat >>confdefs.h <<_ACEOF
  17160. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17161. _ACEOF
  17162. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17163. else
  17164. enable_wayland_shared=no
  17165. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17166. SUMMARY_video="${SUMMARY_video} wayland"
  17167. fi
  17168. have_video=yes
  17169. fi
  17170. fi
  17171. }
  17172. CheckNativeClient()
  17173. {
  17174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17175. /* end confdefs.h. */
  17176. #if !defined(__native_client__)
  17177. #error "NO NACL"
  17178. #endif
  17179. int
  17180. main ()
  17181. {
  17182. ;
  17183. return 0;
  17184. }
  17185. _ACEOF
  17186. if ac_fn_c_try_compile "$LINENO"; then :
  17187. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17188. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17189. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17190. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17191. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17192. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17193. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17194. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17195. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17196. SUMMARY_audio="${SUMMARY_audio} nacl"
  17197. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17198. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17199. fi
  17200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17201. }
  17202. CheckRPI()
  17203. {
  17204. # Check whether --enable-video-rpi was given.
  17205. if test "${enable_video_rpi+set}" = set; then :
  17206. enableval=$enable_video_rpi;
  17207. else
  17208. enable_video_rpi=yes
  17209. fi
  17210. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17211. pkg_failed=no
  17212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17213. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17214. if test -n "$RPI_CFLAGS"; then
  17215. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17216. elif test -n "$PKG_CONFIG"; then
  17217. if test -n "$PKG_CONFIG" && \
  17218. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17219. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17220. ac_status=$?
  17221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17222. test $ac_status = 0; }; then
  17223. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17224. test "x$?" != "x0" && pkg_failed=yes
  17225. else
  17226. pkg_failed=yes
  17227. fi
  17228. else
  17229. pkg_failed=untried
  17230. fi
  17231. if test -n "$RPI_LIBS"; then
  17232. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17233. elif test -n "$PKG_CONFIG"; then
  17234. if test -n "$PKG_CONFIG" && \
  17235. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17236. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17237. ac_status=$?
  17238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17239. test $ac_status = 0; }; then
  17240. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17241. test "x$?" != "x0" && pkg_failed=yes
  17242. else
  17243. pkg_failed=yes
  17244. fi
  17245. else
  17246. pkg_failed=untried
  17247. fi
  17248. if test $pkg_failed = yes; then
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17250. $as_echo "no" >&6; }
  17251. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17252. _pkg_short_errors_supported=yes
  17253. else
  17254. _pkg_short_errors_supported=no
  17255. fi
  17256. if test $_pkg_short_errors_supported = yes; then
  17257. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17258. else
  17259. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17260. fi
  17261. # Put the nasty error message in config.log where it belongs
  17262. echo "$RPI_PKG_ERRORS" >&5
  17263. video_rpi=no
  17264. elif test $pkg_failed = untried; then
  17265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17266. $as_echo "no" >&6; }
  17267. video_rpi=no
  17268. else
  17269. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17270. RPI_LIBS=$pkg_cv_RPI_LIBS
  17271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17272. $as_echo "yes" >&6; }
  17273. video_rpi=yes
  17274. fi
  17275. if test x$video_rpi = xno; then
  17276. if test x$ARCH = xnetbsd; then
  17277. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17278. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17279. else
  17280. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17281. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17282. fi
  17283. fi
  17284. # Save the original compiler flags and libraries
  17285. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17286. # Add the Raspberry Pi compiler flags and libraries
  17287. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17289. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17290. have_video_rpi=no
  17291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17292. /* end confdefs.h. */
  17293. #include <bcm_host.h>
  17294. int
  17295. main ()
  17296. {
  17297. bcm_host_init();
  17298. ;
  17299. return 0;
  17300. }
  17301. _ACEOF
  17302. if ac_fn_c_try_link "$LINENO"; then :
  17303. have_video_rpi=yes
  17304. fi
  17305. rm -f core conftest.err conftest.$ac_objext \
  17306. conftest$ac_exeext conftest.$ac_ext
  17307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17308. $as_echo "$have_video_rpi" >&6; }
  17309. # Restore the compiler flags and libraries
  17310. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17311. if test x$have_video_rpi = xyes; then
  17312. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17313. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17314. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17315. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17316. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17317. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17318. SUMMARY_video="${SUMMARY_video} rpi"
  17319. fi
  17320. fi
  17321. }
  17322. CheckX11()
  17323. {
  17324. # Check whether --enable-video-x11 was given.
  17325. if test "${enable_video_x11+set}" = set; then :
  17326. enableval=$enable_video_x11;
  17327. else
  17328. enable_video_x11=yes
  17329. fi
  17330. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17331. case "$host" in
  17332. *-*-darwin*)
  17333. # This isn't necessary for X11, but fixes GLX detection
  17334. if test "x$x_includes" = xNONE && \
  17335. test "x$x_libraries" = xNONE && \
  17336. test -d /opt/X11/include && \
  17337. test -d /opt/X11/lib; then
  17338. x_includes="/opt/X11/include"
  17339. x_libraries="/opt/X11/lib"
  17340. fi
  17341. ;;
  17342. esac
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17344. $as_echo_n "checking for X... " >&6; }
  17345. # Check whether --with-x was given.
  17346. if test "${with_x+set}" = set; then :
  17347. withval=$with_x;
  17348. fi
  17349. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17350. if test "x$with_x" = xno; then
  17351. # The user explicitly disabled X.
  17352. have_x=disabled
  17353. else
  17354. case $x_includes,$x_libraries in #(
  17355. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17356. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17357. $as_echo_n "(cached) " >&6
  17358. else
  17359. # One or both of the vars are not set, and there is no cached value.
  17360. ac_x_includes=no
  17361. ac_x_libraries=no
  17362. # Do we need to do anything special at all?
  17363. ac_save_LIBS=$LIBS
  17364. LIBS="-lX11 $LIBS"
  17365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17366. /* end confdefs.h. */
  17367. #include <X11/Xlib.h>
  17368. int
  17369. main ()
  17370. {
  17371. XrmInitialize ()
  17372. ;
  17373. return 0;
  17374. }
  17375. _ACEOF
  17376. if ac_fn_c_try_link "$LINENO"; then :
  17377. # We can compile and link X programs with no special options.
  17378. ac_x_includes=
  17379. ac_x_libraries=
  17380. fi
  17381. rm -f core conftest.err conftest.$ac_objext \
  17382. conftest$ac_exeext conftest.$ac_ext
  17383. LIBS="$ac_save_LIBS"
  17384. # If that didn't work, only try xmkmf and filesystem searches
  17385. # for native compilation.
  17386. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17387. rm -f -r conftest.dir
  17388. if mkdir conftest.dir; then
  17389. cd conftest.dir
  17390. cat >Imakefile <<'_ACEOF'
  17391. incroot:
  17392. @echo incroot='${INCROOT}'
  17393. usrlibdir:
  17394. @echo usrlibdir='${USRLIBDIR}'
  17395. libdir:
  17396. @echo libdir='${LIBDIR}'
  17397. _ACEOF
  17398. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17399. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17400. for ac_var in incroot usrlibdir libdir; do
  17401. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17402. done
  17403. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17404. for ac_extension in a so sl dylib la dll; do
  17405. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17406. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17407. ac_im_usrlibdir=$ac_im_libdir; break
  17408. fi
  17409. done
  17410. # Screen out bogus values from the imake configuration. They are
  17411. # bogus both because they are the default anyway, and because
  17412. # using them would break gcc on systems where it needs fixed includes.
  17413. case $ac_im_incroot in
  17414. /usr/include) ac_x_includes= ;;
  17415. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17416. esac
  17417. case $ac_im_usrlibdir in
  17418. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17419. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17420. esac
  17421. fi
  17422. cd ..
  17423. rm -f -r conftest.dir
  17424. fi
  17425. # Standard set of common directories for X headers.
  17426. # Check X11 before X11Rn because it is often a symlink to the current release.
  17427. ac_x_header_dirs='
  17428. /usr/X11/include
  17429. /usr/X11R7/include
  17430. /usr/X11R6/include
  17431. /usr/X11R5/include
  17432. /usr/X11R4/include
  17433. /usr/include/X11
  17434. /usr/include/X11R7
  17435. /usr/include/X11R6
  17436. /usr/include/X11R5
  17437. /usr/include/X11R4
  17438. /usr/local/X11/include
  17439. /usr/local/X11R7/include
  17440. /usr/local/X11R6/include
  17441. /usr/local/X11R5/include
  17442. /usr/local/X11R4/include
  17443. /usr/local/include/X11
  17444. /usr/local/include/X11R7
  17445. /usr/local/include/X11R6
  17446. /usr/local/include/X11R5
  17447. /usr/local/include/X11R4
  17448. /opt/X11/include
  17449. /usr/X386/include
  17450. /usr/x386/include
  17451. /usr/XFree86/include/X11
  17452. /usr/include
  17453. /usr/local/include
  17454. /usr/unsupported/include
  17455. /usr/athena/include
  17456. /usr/local/x11r5/include
  17457. /usr/lpp/Xamples/include
  17458. /usr/openwin/include
  17459. /usr/openwin/share/include'
  17460. if test "$ac_x_includes" = no; then
  17461. # Guess where to find include files, by looking for Xlib.h.
  17462. # First, try using that file with no special directory specified.
  17463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17464. /* end confdefs.h. */
  17465. #include <X11/Xlib.h>
  17466. _ACEOF
  17467. if ac_fn_c_try_cpp "$LINENO"; then :
  17468. # We can compile using X headers with no special include directory.
  17469. ac_x_includes=
  17470. else
  17471. for ac_dir in $ac_x_header_dirs; do
  17472. if test -r "$ac_dir/X11/Xlib.h"; then
  17473. ac_x_includes=$ac_dir
  17474. break
  17475. fi
  17476. done
  17477. fi
  17478. rm -f conftest.err conftest.i conftest.$ac_ext
  17479. fi # $ac_x_includes = no
  17480. if test "$ac_x_libraries" = no; then
  17481. # Check for the libraries.
  17482. # See if we find them without any special options.
  17483. # Don't add to $LIBS permanently.
  17484. ac_save_LIBS=$LIBS
  17485. LIBS="-lX11 $LIBS"
  17486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17487. /* end confdefs.h. */
  17488. #include <X11/Xlib.h>
  17489. int
  17490. main ()
  17491. {
  17492. XrmInitialize ()
  17493. ;
  17494. return 0;
  17495. }
  17496. _ACEOF
  17497. if ac_fn_c_try_link "$LINENO"; then :
  17498. LIBS=$ac_save_LIBS
  17499. # We can link X programs with no special library path.
  17500. ac_x_libraries=
  17501. else
  17502. LIBS=$ac_save_LIBS
  17503. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17504. do
  17505. # Don't even attempt the hair of trying to link an X program!
  17506. for ac_extension in a so sl dylib la dll; do
  17507. if test -r "$ac_dir/libX11.$ac_extension"; then
  17508. ac_x_libraries=$ac_dir
  17509. break 2
  17510. fi
  17511. done
  17512. done
  17513. fi
  17514. rm -f core conftest.err conftest.$ac_objext \
  17515. conftest$ac_exeext conftest.$ac_ext
  17516. fi # $ac_x_libraries = no
  17517. fi
  17518. # Record the results.
  17519. case $ac_x_includes,$ac_x_libraries in #(
  17520. no,* | *,no | *\'*) :
  17521. # Didn't find X, or a directory has "'" in its name.
  17522. ac_cv_have_x="have_x=no" ;; #(
  17523. *) :
  17524. # Record where we found X for the cache.
  17525. ac_cv_have_x="have_x=yes\
  17526. ac_x_includes='$ac_x_includes'\
  17527. ac_x_libraries='$ac_x_libraries'" ;;
  17528. esac
  17529. fi
  17530. ;; #(
  17531. *) have_x=yes;;
  17532. esac
  17533. eval "$ac_cv_have_x"
  17534. fi # $with_x != no
  17535. if test "$have_x" != yes; then
  17536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17537. $as_echo "$have_x" >&6; }
  17538. no_x=yes
  17539. else
  17540. # If each of the values was on the command line, it overrides each guess.
  17541. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17542. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17543. # Update the cache value to reflect the command line values.
  17544. ac_cv_have_x="have_x=yes\
  17545. ac_x_includes='$x_includes'\
  17546. ac_x_libraries='$x_libraries'"
  17547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17548. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17549. fi
  17550. if test "$no_x" = yes; then
  17551. # Not all programs may use this symbol, but it does not hurt to define it.
  17552. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17553. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17554. else
  17555. if test -n "$x_includes"; then
  17556. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17557. fi
  17558. # It would also be nice to do this for all -L options, not just this one.
  17559. if test -n "$x_libraries"; then
  17560. X_LIBS="$X_LIBS -L$x_libraries"
  17561. # For Solaris; some versions of Sun CC require a space after -R and
  17562. # others require no space. Words are not sufficient . . . .
  17563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17564. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17565. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17566. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17567. ac_c_werror_flag=yes
  17568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17569. /* end confdefs.h. */
  17570. int
  17571. main ()
  17572. {
  17573. ;
  17574. return 0;
  17575. }
  17576. _ACEOF
  17577. if ac_fn_c_try_link "$LINENO"; then :
  17578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17579. $as_echo "no" >&6; }
  17580. X_LIBS="$X_LIBS -R$x_libraries"
  17581. else
  17582. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17584. /* end confdefs.h. */
  17585. int
  17586. main ()
  17587. {
  17588. ;
  17589. return 0;
  17590. }
  17591. _ACEOF
  17592. if ac_fn_c_try_link "$LINENO"; then :
  17593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17594. $as_echo "yes" >&6; }
  17595. X_LIBS="$X_LIBS -R $x_libraries"
  17596. else
  17597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17598. $as_echo "neither works" >&6; }
  17599. fi
  17600. rm -f core conftest.err conftest.$ac_objext \
  17601. conftest$ac_exeext conftest.$ac_ext
  17602. fi
  17603. rm -f core conftest.err conftest.$ac_objext \
  17604. conftest$ac_exeext conftest.$ac_ext
  17605. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17606. LIBS=$ac_xsave_LIBS
  17607. fi
  17608. # Check for system-dependent libraries X programs must link with.
  17609. # Do this before checking for the system-independent R6 libraries
  17610. # (-lICE), since we may need -lsocket or whatever for X linking.
  17611. if test "$ISC" = yes; then
  17612. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17613. else
  17614. # Martyn Johnson says this is needed for Ultrix, if the X
  17615. # libraries were built with DECnet support. And Karl Berry says
  17616. # the Alpha needs dnet_stub (dnet does not exist).
  17617. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17619. /* end confdefs.h. */
  17620. /* Override any GCC internal prototype to avoid an error.
  17621. Use char because int might match the return type of a GCC
  17622. builtin and then its argument prototype would still apply. */
  17623. #ifdef __cplusplus
  17624. extern "C"
  17625. #endif
  17626. char XOpenDisplay ();
  17627. int
  17628. main ()
  17629. {
  17630. return XOpenDisplay ();
  17631. ;
  17632. return 0;
  17633. }
  17634. _ACEOF
  17635. if ac_fn_c_try_link "$LINENO"; then :
  17636. else
  17637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17638. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17639. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17640. $as_echo_n "(cached) " >&6
  17641. else
  17642. ac_check_lib_save_LIBS=$LIBS
  17643. LIBS="-ldnet $LIBS"
  17644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17645. /* end confdefs.h. */
  17646. /* Override any GCC internal prototype to avoid an error.
  17647. Use char because int might match the return type of a GCC
  17648. builtin and then its argument prototype would still apply. */
  17649. #ifdef __cplusplus
  17650. extern "C"
  17651. #endif
  17652. char dnet_ntoa ();
  17653. int
  17654. main ()
  17655. {
  17656. return dnet_ntoa ();
  17657. ;
  17658. return 0;
  17659. }
  17660. _ACEOF
  17661. if ac_fn_c_try_link "$LINENO"; then :
  17662. ac_cv_lib_dnet_dnet_ntoa=yes
  17663. else
  17664. ac_cv_lib_dnet_dnet_ntoa=no
  17665. fi
  17666. rm -f core conftest.err conftest.$ac_objext \
  17667. conftest$ac_exeext conftest.$ac_ext
  17668. LIBS=$ac_check_lib_save_LIBS
  17669. fi
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17671. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17672. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17673. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17674. fi
  17675. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17677. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17678. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17679. $as_echo_n "(cached) " >&6
  17680. else
  17681. ac_check_lib_save_LIBS=$LIBS
  17682. LIBS="-ldnet_stub $LIBS"
  17683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17684. /* end confdefs.h. */
  17685. /* Override any GCC internal prototype to avoid an error.
  17686. Use char because int might match the return type of a GCC
  17687. builtin and then its argument prototype would still apply. */
  17688. #ifdef __cplusplus
  17689. extern "C"
  17690. #endif
  17691. char dnet_ntoa ();
  17692. int
  17693. main ()
  17694. {
  17695. return dnet_ntoa ();
  17696. ;
  17697. return 0;
  17698. }
  17699. _ACEOF
  17700. if ac_fn_c_try_link "$LINENO"; then :
  17701. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17702. else
  17703. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17704. fi
  17705. rm -f core conftest.err conftest.$ac_objext \
  17706. conftest$ac_exeext conftest.$ac_ext
  17707. LIBS=$ac_check_lib_save_LIBS
  17708. fi
  17709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17710. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17711. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17712. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17713. fi
  17714. fi
  17715. fi
  17716. rm -f core conftest.err conftest.$ac_objext \
  17717. conftest$ac_exeext conftest.$ac_ext
  17718. LIBS="$ac_xsave_LIBS"
  17719. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17720. # to get the SysV transport functions.
  17721. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17722. # needs -lnsl.
  17723. # The nsl library prevents programs from opening the X display
  17724. # on Irix 5.2, according to T.E. Dickey.
  17725. # The functions gethostbyname, getservbyname, and inet_addr are
  17726. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17727. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17728. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17729. fi
  17730. if test $ac_cv_func_gethostbyname = no; then
  17731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17732. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17733. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17734. $as_echo_n "(cached) " >&6
  17735. else
  17736. ac_check_lib_save_LIBS=$LIBS
  17737. LIBS="-lnsl $LIBS"
  17738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17739. /* end confdefs.h. */
  17740. /* Override any GCC internal prototype to avoid an error.
  17741. Use char because int might match the return type of a GCC
  17742. builtin and then its argument prototype would still apply. */
  17743. #ifdef __cplusplus
  17744. extern "C"
  17745. #endif
  17746. char gethostbyname ();
  17747. int
  17748. main ()
  17749. {
  17750. return gethostbyname ();
  17751. ;
  17752. return 0;
  17753. }
  17754. _ACEOF
  17755. if ac_fn_c_try_link "$LINENO"; then :
  17756. ac_cv_lib_nsl_gethostbyname=yes
  17757. else
  17758. ac_cv_lib_nsl_gethostbyname=no
  17759. fi
  17760. rm -f core conftest.err conftest.$ac_objext \
  17761. conftest$ac_exeext conftest.$ac_ext
  17762. LIBS=$ac_check_lib_save_LIBS
  17763. fi
  17764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17765. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17766. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17767. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17768. fi
  17769. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17771. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17772. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17773. $as_echo_n "(cached) " >&6
  17774. else
  17775. ac_check_lib_save_LIBS=$LIBS
  17776. LIBS="-lbsd $LIBS"
  17777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17778. /* end confdefs.h. */
  17779. /* Override any GCC internal prototype to avoid an error.
  17780. Use char because int might match the return type of a GCC
  17781. builtin and then its argument prototype would still apply. */
  17782. #ifdef __cplusplus
  17783. extern "C"
  17784. #endif
  17785. char gethostbyname ();
  17786. int
  17787. main ()
  17788. {
  17789. return gethostbyname ();
  17790. ;
  17791. return 0;
  17792. }
  17793. _ACEOF
  17794. if ac_fn_c_try_link "$LINENO"; then :
  17795. ac_cv_lib_bsd_gethostbyname=yes
  17796. else
  17797. ac_cv_lib_bsd_gethostbyname=no
  17798. fi
  17799. rm -f core conftest.err conftest.$ac_objext \
  17800. conftest$ac_exeext conftest.$ac_ext
  17801. LIBS=$ac_check_lib_save_LIBS
  17802. fi
  17803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17804. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17805. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17806. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17807. fi
  17808. fi
  17809. fi
  17810. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17811. # socket/setsockopt and other routines are undefined under SCO ODT
  17812. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17813. # on later versions), says Simon Leinen: it contains gethostby*
  17814. # variants that don't use the name server (or something). -lsocket
  17815. # must be given before -lnsl if both are needed. We assume that
  17816. # if connect needs -lnsl, so does gethostbyname.
  17817. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17818. if test "x$ac_cv_func_connect" = xyes; then :
  17819. fi
  17820. if test $ac_cv_func_connect = no; then
  17821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17822. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17823. if ${ac_cv_lib_socket_connect+:} false; then :
  17824. $as_echo_n "(cached) " >&6
  17825. else
  17826. ac_check_lib_save_LIBS=$LIBS
  17827. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17829. /* end confdefs.h. */
  17830. /* Override any GCC internal prototype to avoid an error.
  17831. Use char because int might match the return type of a GCC
  17832. builtin and then its argument prototype would still apply. */
  17833. #ifdef __cplusplus
  17834. extern "C"
  17835. #endif
  17836. char connect ();
  17837. int
  17838. main ()
  17839. {
  17840. return connect ();
  17841. ;
  17842. return 0;
  17843. }
  17844. _ACEOF
  17845. if ac_fn_c_try_link "$LINENO"; then :
  17846. ac_cv_lib_socket_connect=yes
  17847. else
  17848. ac_cv_lib_socket_connect=no
  17849. fi
  17850. rm -f core conftest.err conftest.$ac_objext \
  17851. conftest$ac_exeext conftest.$ac_ext
  17852. LIBS=$ac_check_lib_save_LIBS
  17853. fi
  17854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17855. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17856. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17857. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17858. fi
  17859. fi
  17860. # Guillermo Gomez says -lposix is necessary on A/UX.
  17861. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17862. if test "x$ac_cv_func_remove" = xyes; then :
  17863. fi
  17864. if test $ac_cv_func_remove = no; then
  17865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17866. $as_echo_n "checking for remove in -lposix... " >&6; }
  17867. if ${ac_cv_lib_posix_remove+:} false; then :
  17868. $as_echo_n "(cached) " >&6
  17869. else
  17870. ac_check_lib_save_LIBS=$LIBS
  17871. LIBS="-lposix $LIBS"
  17872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17873. /* end confdefs.h. */
  17874. /* Override any GCC internal prototype to avoid an error.
  17875. Use char because int might match the return type of a GCC
  17876. builtin and then its argument prototype would still apply. */
  17877. #ifdef __cplusplus
  17878. extern "C"
  17879. #endif
  17880. char remove ();
  17881. int
  17882. main ()
  17883. {
  17884. return remove ();
  17885. ;
  17886. return 0;
  17887. }
  17888. _ACEOF
  17889. if ac_fn_c_try_link "$LINENO"; then :
  17890. ac_cv_lib_posix_remove=yes
  17891. else
  17892. ac_cv_lib_posix_remove=no
  17893. fi
  17894. rm -f core conftest.err conftest.$ac_objext \
  17895. conftest$ac_exeext conftest.$ac_ext
  17896. LIBS=$ac_check_lib_save_LIBS
  17897. fi
  17898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17899. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17900. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17901. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17902. fi
  17903. fi
  17904. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17905. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17906. if test "x$ac_cv_func_shmat" = xyes; then :
  17907. fi
  17908. if test $ac_cv_func_shmat = no; then
  17909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17910. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17911. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17912. $as_echo_n "(cached) " >&6
  17913. else
  17914. ac_check_lib_save_LIBS=$LIBS
  17915. LIBS="-lipc $LIBS"
  17916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17917. /* end confdefs.h. */
  17918. /* Override any GCC internal prototype to avoid an error.
  17919. Use char because int might match the return type of a GCC
  17920. builtin and then its argument prototype would still apply. */
  17921. #ifdef __cplusplus
  17922. extern "C"
  17923. #endif
  17924. char shmat ();
  17925. int
  17926. main ()
  17927. {
  17928. return shmat ();
  17929. ;
  17930. return 0;
  17931. }
  17932. _ACEOF
  17933. if ac_fn_c_try_link "$LINENO"; then :
  17934. ac_cv_lib_ipc_shmat=yes
  17935. else
  17936. ac_cv_lib_ipc_shmat=no
  17937. fi
  17938. rm -f core conftest.err conftest.$ac_objext \
  17939. conftest$ac_exeext conftest.$ac_ext
  17940. LIBS=$ac_check_lib_save_LIBS
  17941. fi
  17942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17943. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17944. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17945. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17946. fi
  17947. fi
  17948. fi
  17949. # Check for libraries that X11R6 Xt/Xaw programs need.
  17950. ac_save_LDFLAGS=$LDFLAGS
  17951. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17952. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17953. # check for ICE first), but we must link in the order -lSM -lICE or
  17954. # we get undefined symbols. So assume we have SM if we have ICE.
  17955. # These have to be linked with before -lX11, unlike the other
  17956. # libraries we check for below, so use a different variable.
  17957. # John Interrante, Karl Berry
  17958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17959. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17960. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17961. $as_echo_n "(cached) " >&6
  17962. else
  17963. ac_check_lib_save_LIBS=$LIBS
  17964. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17966. /* end confdefs.h. */
  17967. /* Override any GCC internal prototype to avoid an error.
  17968. Use char because int might match the return type of a GCC
  17969. builtin and then its argument prototype would still apply. */
  17970. #ifdef __cplusplus
  17971. extern "C"
  17972. #endif
  17973. char IceConnectionNumber ();
  17974. int
  17975. main ()
  17976. {
  17977. return IceConnectionNumber ();
  17978. ;
  17979. return 0;
  17980. }
  17981. _ACEOF
  17982. if ac_fn_c_try_link "$LINENO"; then :
  17983. ac_cv_lib_ICE_IceConnectionNumber=yes
  17984. else
  17985. ac_cv_lib_ICE_IceConnectionNumber=no
  17986. fi
  17987. rm -f core conftest.err conftest.$ac_objext \
  17988. conftest$ac_exeext conftest.$ac_ext
  17989. LIBS=$ac_check_lib_save_LIBS
  17990. fi
  17991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17992. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17993. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17994. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17995. fi
  17996. LDFLAGS=$ac_save_LDFLAGS
  17997. fi
  17998. if test x$have_x = xyes; then
  17999. # Check whether --enable-x11-shared was given.
  18000. if test "${enable_x11_shared+set}" = set; then :
  18001. enableval=$enable_x11_shared;
  18002. else
  18003. enable_x11_shared=maybe
  18004. fi
  18005. case "$host" in
  18006. *-*-darwin*)
  18007. # Apple now puts this in /opt/X11
  18008. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18009. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18010. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18011. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18012. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18013. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18014. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18015. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18016. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18017. ;;
  18018. *-*-openbsd*)
  18019. x11_lib='libX11.so'
  18020. x11ext_lib='libXext.so'
  18021. xcursor_lib='libXcursor.so'
  18022. xinerama_lib='libXinerama.so'
  18023. xinput_lib='libXi.so'
  18024. xrandr_lib='libXrandr.so'
  18025. xrender_lib='libXrender.so'
  18026. xss_lib='libXss.so'
  18027. xvidmode_lib='libXxf86vm.so'
  18028. ;;
  18029. *)
  18030. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18031. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18032. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18033. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18034. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18035. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18036. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18037. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18038. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18039. ;;
  18040. esac
  18041. if test x$ac_cv_func_shmat != xyes; then
  18042. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18043. fi
  18044. CFLAGS="$CFLAGS $X_CFLAGS"
  18045. LDFLAGS="$LDFLAGS $X_LIBS"
  18046. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18047. #include <X11/Xproto.h>
  18048. "
  18049. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18050. have_xext_h_hdr=yes
  18051. else
  18052. have_xext_h_hdr=no
  18053. fi
  18054. if test x$have_xext_h_hdr != xyes; then
  18055. as_fn_error $? "
  18056. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18057. " "$LINENO" 5
  18058. fi
  18059. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18060. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18061. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18062. # Needed so SDL applications can include SDL_syswm.h
  18063. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18064. if test x$enable_x11_shared = xmaybe; then
  18065. enable_x11_shared=yes
  18066. fi
  18067. if test x$have_loadso != xyes && \
  18068. test x$enable_x11_shared = xyes; then
  18069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18070. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18071. enable_x11_shared=no
  18072. fi
  18073. if test x$have_loadso = xyes && \
  18074. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18075. echo "-- dynamic libX11 -> $x11_lib"
  18076. echo "-- dynamic libX11ext -> $x11ext_lib"
  18077. cat >>confdefs.h <<_ACEOF
  18078. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18079. _ACEOF
  18080. cat >>confdefs.h <<_ACEOF
  18081. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18082. _ACEOF
  18083. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18084. else
  18085. enable_x11_shared=no
  18086. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18087. SUMMARY_video="${SUMMARY_video} x11"
  18088. fi
  18089. have_video=yes
  18090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  18091. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  18092. have_const_param_XextAddDisplay=no
  18093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18094. /* end confdefs.h. */
  18095. #include <X11/Xlib.h>
  18096. #include <X11/Xproto.h>
  18097. #include <X11/extensions/Xext.h>
  18098. #include <X11/extensions/extutil.h>
  18099. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  18100. int
  18101. main ()
  18102. {
  18103. ;
  18104. return 0;
  18105. }
  18106. _ACEOF
  18107. if ac_fn_c_try_compile "$LINENO"; then :
  18108. have_const_param_XextAddDisplay=yes
  18109. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  18110. fi
  18111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  18113. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18115. $as_echo_n "checking for XGenericEvent... " >&6; }
  18116. have_XGenericEvent=no
  18117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18118. /* end confdefs.h. */
  18119. #include <X11/Xlib.h>
  18120. int
  18121. main ()
  18122. {
  18123. Display *display;
  18124. XEvent event;
  18125. XGenericEventCookie *cookie = &event.xcookie;
  18126. XNextEvent(display, &event);
  18127. XGetEventData(display, cookie);
  18128. XFreeEventData(display, cookie);
  18129. ;
  18130. return 0;
  18131. }
  18132. _ACEOF
  18133. if ac_fn_c_try_compile "$LINENO"; then :
  18134. have_XGenericEvent=yes
  18135. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18136. fi
  18137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18139. $as_echo "$have_XGenericEvent" >&6; }
  18140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18141. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18142. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18143. $as_echo_n "(cached) " >&6
  18144. else
  18145. ac_check_lib_save_LIBS=$LIBS
  18146. LIBS="-lX11 $LIBS"
  18147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18148. /* end confdefs.h. */
  18149. /* Override any GCC internal prototype to avoid an error.
  18150. Use char because int might match the return type of a GCC
  18151. builtin and then its argument prototype would still apply. */
  18152. #ifdef __cplusplus
  18153. extern "C"
  18154. #endif
  18155. char XkbKeycodeToKeysym ();
  18156. int
  18157. main ()
  18158. {
  18159. return XkbKeycodeToKeysym ();
  18160. ;
  18161. return 0;
  18162. }
  18163. _ACEOF
  18164. if ac_fn_c_try_link "$LINENO"; then :
  18165. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18166. else
  18167. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18168. fi
  18169. rm -f core conftest.err conftest.$ac_objext \
  18170. conftest$ac_exeext conftest.$ac_ext
  18171. LIBS=$ac_check_lib_save_LIBS
  18172. fi
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18174. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18175. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18176. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18177. fi
  18178. # Check whether --enable-video-x11-xcursor was given.
  18179. if test "${enable_video_x11_xcursor+set}" = set; then :
  18180. enableval=$enable_video_x11_xcursor;
  18181. else
  18182. enable_video_x11_xcursor=yes
  18183. fi
  18184. if test x$enable_video_x11_xcursor = xyes; then
  18185. definitely_enable_video_x11_xcursor=no
  18186. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18187. "
  18188. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18189. have_xcursor_h_hdr=yes
  18190. else
  18191. have_xcursor_h_hdr=no
  18192. fi
  18193. if test x$have_xcursor_h_hdr = xyes; then
  18194. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18195. echo "-- dynamic libXcursor -> $xcursor_lib"
  18196. cat >>confdefs.h <<_ACEOF
  18197. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18198. _ACEOF
  18199. definitely_enable_video_x11_xcursor=yes
  18200. else
  18201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18202. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18203. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18204. $as_echo_n "(cached) " >&6
  18205. else
  18206. ac_check_lib_save_LIBS=$LIBS
  18207. LIBS="-lXcursor $LIBS"
  18208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18209. /* end confdefs.h. */
  18210. /* Override any GCC internal prototype to avoid an error.
  18211. Use char because int might match the return type of a GCC
  18212. builtin and then its argument prototype would still apply. */
  18213. #ifdef __cplusplus
  18214. extern "C"
  18215. #endif
  18216. char XcursorImageCreate ();
  18217. int
  18218. main ()
  18219. {
  18220. return XcursorImageCreate ();
  18221. ;
  18222. return 0;
  18223. }
  18224. _ACEOF
  18225. if ac_fn_c_try_link "$LINENO"; then :
  18226. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18227. else
  18228. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18229. fi
  18230. rm -f core conftest.err conftest.$ac_objext \
  18231. conftest$ac_exeext conftest.$ac_ext
  18232. LIBS=$ac_check_lib_save_LIBS
  18233. fi
  18234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18235. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18236. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18237. have_xcursor_lib=yes
  18238. fi
  18239. if test x$have_xcursor_lib = xyes ; then
  18240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18241. definitely_enable_video_x11_xcursor=yes
  18242. fi
  18243. fi
  18244. fi
  18245. fi
  18246. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18247. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18248. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18249. fi
  18250. # Check whether --enable-video-x11-xdbe was given.
  18251. if test "${enable_video_x11_xdbe+set}" = set; then :
  18252. enableval=$enable_video_x11_xdbe;
  18253. else
  18254. enable_video_x11_xdbe=yes
  18255. fi
  18256. if test x$enable_video_x11_xdbe = xyes; then
  18257. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18258. "
  18259. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18260. have_dbe_h_hdr=yes
  18261. else
  18262. have_dbe_h_hdr=no
  18263. fi
  18264. if test x$have_dbe_h_hdr = xyes; then
  18265. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18266. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18267. fi
  18268. fi
  18269. # Check whether --enable-video-x11-xinerama was given.
  18270. if test "${enable_video_x11_xinerama+set}" = set; then :
  18271. enableval=$enable_video_x11_xinerama;
  18272. else
  18273. enable_video_x11_xinerama=yes
  18274. fi
  18275. if test x$enable_video_x11_xinerama = xyes; then
  18276. definitely_enable_video_x11_xinerama=no
  18277. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18278. "
  18279. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18280. have_xinerama_h_hdr=yes
  18281. else
  18282. have_xinerama_h_hdr=no
  18283. fi
  18284. if test x$have_xinerama_h_hdr = xyes; then
  18285. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18286. echo "-- dynamic libXinerama -> $xinerama_lib"
  18287. cat >>confdefs.h <<_ACEOF
  18288. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18289. _ACEOF
  18290. definitely_enable_video_x11_xinerama=yes
  18291. else
  18292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18293. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18294. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18295. $as_echo_n "(cached) " >&6
  18296. else
  18297. ac_check_lib_save_LIBS=$LIBS
  18298. LIBS="-lXinerama $LIBS"
  18299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18300. /* end confdefs.h. */
  18301. /* Override any GCC internal prototype to avoid an error.
  18302. Use char because int might match the return type of a GCC
  18303. builtin and then its argument prototype would still apply. */
  18304. #ifdef __cplusplus
  18305. extern "C"
  18306. #endif
  18307. char XineramaQueryExtension ();
  18308. int
  18309. main ()
  18310. {
  18311. return XineramaQueryExtension ();
  18312. ;
  18313. return 0;
  18314. }
  18315. _ACEOF
  18316. if ac_fn_c_try_link "$LINENO"; then :
  18317. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18318. else
  18319. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18320. fi
  18321. rm -f core conftest.err conftest.$ac_objext \
  18322. conftest$ac_exeext conftest.$ac_ext
  18323. LIBS=$ac_check_lib_save_LIBS
  18324. fi
  18325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18326. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18327. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18328. have_xinerama_lib=yes
  18329. fi
  18330. if test x$have_xinerama_lib = xyes ; then
  18331. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18332. definitely_enable_video_x11_xinerama=yes
  18333. fi
  18334. fi
  18335. fi
  18336. fi
  18337. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18338. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18339. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18340. fi
  18341. # Check whether --enable-video-x11-xinput was given.
  18342. if test "${enable_video_x11_xinput+set}" = set; then :
  18343. enableval=$enable_video_x11_xinput;
  18344. else
  18345. enable_video_x11_xinput=yes
  18346. fi
  18347. if test x$enable_video_x11_xinput = xyes; then
  18348. definitely_enable_video_x11_xinput=no
  18349. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18350. "
  18351. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18352. have_xinput_h_hdr=yes
  18353. else
  18354. have_xinput_h_hdr=no
  18355. fi
  18356. if test x$have_xinput_h_hdr = xyes; then
  18357. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18358. echo "-- dynamic libXi -> $xinput_lib"
  18359. cat >>confdefs.h <<_ACEOF
  18360. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18361. _ACEOF
  18362. definitely_enable_video_x11_xinput=yes
  18363. else
  18364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18365. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18366. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18367. $as_echo_n "(cached) " >&6
  18368. else
  18369. ac_check_lib_save_LIBS=$LIBS
  18370. LIBS="-lXi $LIBS"
  18371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18372. /* end confdefs.h. */
  18373. /* Override any GCC internal prototype to avoid an error.
  18374. Use char because int might match the return type of a GCC
  18375. builtin and then its argument prototype would still apply. */
  18376. #ifdef __cplusplus
  18377. extern "C"
  18378. #endif
  18379. char XOpenDevice ();
  18380. int
  18381. main ()
  18382. {
  18383. return XOpenDevice ();
  18384. ;
  18385. return 0;
  18386. }
  18387. _ACEOF
  18388. if ac_fn_c_try_link "$LINENO"; then :
  18389. ac_cv_lib_Xi_XOpenDevice=yes
  18390. else
  18391. ac_cv_lib_Xi_XOpenDevice=no
  18392. fi
  18393. rm -f core conftest.err conftest.$ac_objext \
  18394. conftest$ac_exeext conftest.$ac_ext
  18395. LIBS=$ac_check_lib_save_LIBS
  18396. fi
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18398. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18399. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18400. have_xinput_lib=yes
  18401. fi
  18402. if test x$have_xinput_lib = xyes ; then
  18403. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18404. definitely_enable_video_x11_xinput=yes
  18405. fi
  18406. fi
  18407. fi
  18408. fi
  18409. if test x$definitely_enable_video_x11_xinput = xyes; then
  18410. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18411. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18413. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18414. have_xinput2_multitouch=no
  18415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18416. /* end confdefs.h. */
  18417. #include <X11/Xlib.h>
  18418. #include <X11/Xproto.h>
  18419. #include <X11/extensions/XInput2.h>
  18420. int
  18421. main ()
  18422. {
  18423. int event_type = XI_TouchBegin;
  18424. XITouchClassInfo *t;
  18425. ;
  18426. return 0;
  18427. }
  18428. _ACEOF
  18429. if ac_fn_c_try_compile "$LINENO"; then :
  18430. have_xinput2_multitouch=yes
  18431. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18432. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18433. fi
  18434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18436. $as_echo "$have_xinput2_multitouch" >&6; }
  18437. fi
  18438. # Check whether --enable-video-x11-xrandr was given.
  18439. if test "${enable_video_x11_xrandr+set}" = set; then :
  18440. enableval=$enable_video_x11_xrandr;
  18441. else
  18442. enable_video_x11_xrandr=yes
  18443. fi
  18444. if test x$enable_video_x11_xrandr = xyes; then
  18445. definitely_enable_video_x11_xrandr=no
  18446. have_xrandr_h_hdr=no
  18447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18448. /* end confdefs.h. */
  18449. #include <X11/Xlib.h>
  18450. #include <X11/extensions/Xrandr.h>
  18451. int
  18452. main ()
  18453. {
  18454. XRRScreenResources *res = NULL;
  18455. ;
  18456. return 0;
  18457. }
  18458. _ACEOF
  18459. if ac_fn_c_try_compile "$LINENO"; then :
  18460. have_xrandr_h_hdr=yes
  18461. fi
  18462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18463. if test x$have_xrandr_h_hdr = xyes; then
  18464. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18465. echo "-- dynamic libXrandr -> $xrandr_lib"
  18466. cat >>confdefs.h <<_ACEOF
  18467. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18468. _ACEOF
  18469. definitely_enable_video_x11_xrandr=yes
  18470. else
  18471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18472. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18473. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18474. $as_echo_n "(cached) " >&6
  18475. else
  18476. ac_check_lib_save_LIBS=$LIBS
  18477. LIBS="-lXrandr $LIBS"
  18478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18479. /* end confdefs.h. */
  18480. /* Override any GCC internal prototype to avoid an error.
  18481. Use char because int might match the return type of a GCC
  18482. builtin and then its argument prototype would still apply. */
  18483. #ifdef __cplusplus
  18484. extern "C"
  18485. #endif
  18486. char XRRQueryExtension ();
  18487. int
  18488. main ()
  18489. {
  18490. return XRRQueryExtension ();
  18491. ;
  18492. return 0;
  18493. }
  18494. _ACEOF
  18495. if ac_fn_c_try_link "$LINENO"; then :
  18496. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18497. else
  18498. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18499. fi
  18500. rm -f core conftest.err conftest.$ac_objext \
  18501. conftest$ac_exeext conftest.$ac_ext
  18502. LIBS=$ac_check_lib_save_LIBS
  18503. fi
  18504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18505. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18506. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18507. have_xrandr_lib=yes
  18508. fi
  18509. if test x$have_xrandr_lib = xyes ; then
  18510. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18511. definitely_enable_video_x11_xrandr=yes
  18512. fi
  18513. fi
  18514. fi
  18515. fi
  18516. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18517. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18518. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18519. fi
  18520. # Check whether --enable-video-x11-scrnsaver was given.
  18521. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18522. enableval=$enable_video_x11_scrnsaver;
  18523. else
  18524. enable_video_x11_scrnsaver=yes
  18525. fi
  18526. if test x$enable_video_x11_scrnsaver = xyes; then
  18527. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18528. "
  18529. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18530. have_scrnsaver_h_hdr=yes
  18531. else
  18532. have_scrnsaver_h_hdr=no
  18533. fi
  18534. if test x$have_scrnsaver_h_hdr = xyes; then
  18535. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18536. echo "-- dynamic libXss -> $xss_lib"
  18537. cat >>confdefs.h <<_ACEOF
  18538. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18539. _ACEOF
  18540. definitely_enable_video_x11_scrnsaver=yes
  18541. else
  18542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18543. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18544. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18545. $as_echo_n "(cached) " >&6
  18546. else
  18547. ac_check_lib_save_LIBS=$LIBS
  18548. LIBS="-lXss $LIBS"
  18549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18550. /* end confdefs.h. */
  18551. /* Override any GCC internal prototype to avoid an error.
  18552. Use char because int might match the return type of a GCC
  18553. builtin and then its argument prototype would still apply. */
  18554. #ifdef __cplusplus
  18555. extern "C"
  18556. #endif
  18557. char XScreenSaverSuspend ();
  18558. int
  18559. main ()
  18560. {
  18561. return XScreenSaverSuspend ();
  18562. ;
  18563. return 0;
  18564. }
  18565. _ACEOF
  18566. if ac_fn_c_try_link "$LINENO"; then :
  18567. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18568. else
  18569. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18570. fi
  18571. rm -f core conftest.err conftest.$ac_objext \
  18572. conftest$ac_exeext conftest.$ac_ext
  18573. LIBS=$ac_check_lib_save_LIBS
  18574. fi
  18575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18576. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18577. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18578. have_xss_lib=yes
  18579. fi
  18580. if test x$have_xss_lib = xyes ; then
  18581. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18582. definitely_enable_video_x11_scrnsaver=yes
  18583. fi
  18584. fi
  18585. fi
  18586. fi
  18587. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18588. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18589. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18590. fi
  18591. # Check whether --enable-video-x11-xshape was given.
  18592. if test "${enable_video_x11_xshape+set}" = set; then :
  18593. enableval=$enable_video_x11_xshape;
  18594. else
  18595. enable_video_x11_xshape=yes
  18596. fi
  18597. if test x$enable_video_x11_xshape = xyes; then
  18598. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18599. "
  18600. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18601. have_shape_h_hdr=yes
  18602. else
  18603. have_shape_h_hdr=no
  18604. fi
  18605. if test x$have_shape_h_hdr = xyes; then
  18606. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18607. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18608. fi
  18609. fi
  18610. # Check whether --enable-video-x11-vm was given.
  18611. if test "${enable_video_x11_vm+set}" = set; then :
  18612. enableval=$enable_video_x11_vm;
  18613. else
  18614. enable_video_x11_vm=yes
  18615. fi
  18616. if test x$enable_video_x11_vm = xyes; then
  18617. definitely_enable_video_x11_vm=no
  18618. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18619. "
  18620. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18621. have_vm_h_hdr=yes
  18622. else
  18623. have_vm_h_hdr=no
  18624. fi
  18625. if test x$have_vm_h_hdr = xyes; then
  18626. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18627. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18628. cat >>confdefs.h <<_ACEOF
  18629. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18630. _ACEOF
  18631. definitely_enable_video_x11_vm=yes
  18632. else
  18633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18634. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18635. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18636. $as_echo_n "(cached) " >&6
  18637. else
  18638. ac_check_lib_save_LIBS=$LIBS
  18639. LIBS="-lXxf86vm $LIBS"
  18640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18641. /* end confdefs.h. */
  18642. /* Override any GCC internal prototype to avoid an error.
  18643. Use char because int might match the return type of a GCC
  18644. builtin and then its argument prototype would still apply. */
  18645. #ifdef __cplusplus
  18646. extern "C"
  18647. #endif
  18648. char XF86VidModeQueryVersion ();
  18649. int
  18650. main ()
  18651. {
  18652. return XF86VidModeQueryVersion ();
  18653. ;
  18654. return 0;
  18655. }
  18656. _ACEOF
  18657. if ac_fn_c_try_link "$LINENO"; then :
  18658. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18659. else
  18660. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18661. fi
  18662. rm -f core conftest.err conftest.$ac_objext \
  18663. conftest$ac_exeext conftest.$ac_ext
  18664. LIBS=$ac_check_lib_save_LIBS
  18665. fi
  18666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18667. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18668. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18669. have_vm_lib=yes
  18670. fi
  18671. if test x$have_vm_lib = xyes ; then
  18672. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18673. definitely_enable_video_x11_vm=yes
  18674. fi
  18675. fi
  18676. fi
  18677. fi
  18678. if test x$definitely_enable_video_x11_vm = xyes; then
  18679. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18680. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18681. fi
  18682. fi
  18683. else
  18684. # Prevent Mesa from including X11 headers
  18685. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18686. fi
  18687. }
  18688. CheckVivanteVideo()
  18689. {
  18690. # Check whether --enable-video-vivante was given.
  18691. if test "${enable_video_vivante+set}" = set; then :
  18692. enableval=$enable_video_vivante;
  18693. else
  18694. enable_video_vivante=yes
  18695. fi
  18696. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18698. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18699. have_vivante_vdk=no
  18700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18701. /* end confdefs.h. */
  18702. #define LINUX
  18703. #define EGL_API_FB
  18704. #include <gc_vdk.h>
  18705. int
  18706. main ()
  18707. {
  18708. ;
  18709. return 0;
  18710. }
  18711. _ACEOF
  18712. if ac_fn_c_try_compile "$LINENO"; then :
  18713. have_vivante_vdk=yes
  18714. fi
  18715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18717. $as_echo "$have_vivante_vdk" >&6; }
  18718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18719. $as_echo_n "checking for Vivante FB API... " >&6; }
  18720. have_vivante_egl=no
  18721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18722. /* end confdefs.h. */
  18723. #define LINUX
  18724. #define EGL_API_FB
  18725. #include <EGL/eglvivante.h>
  18726. int
  18727. main ()
  18728. {
  18729. ;
  18730. return 0;
  18731. }
  18732. _ACEOF
  18733. if ac_fn_c_try_compile "$LINENO"; then :
  18734. have_vivante_egl=yes
  18735. fi
  18736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18738. $as_echo "$have_vivante_egl" >&6; }
  18739. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18740. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18741. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18742. if test x$have_vivante_vdk = xyes; then
  18743. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18744. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18745. fi
  18746. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18747. SUMMARY_video="${SUMMARY_video} vivante"
  18748. have_video=yes
  18749. fi
  18750. fi
  18751. }
  18752. CheckHaikuVideo()
  18753. {
  18754. if test x$enable_video = xyes; then
  18755. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18756. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18757. have_video=yes
  18758. SUMMARY_video="${SUMMARY_video} haiku"
  18759. fi
  18760. }
  18761. CheckCOCOA()
  18762. {
  18763. # Check whether --enable-video-cocoa was given.
  18764. if test "${enable_video_cocoa+set}" = set; then :
  18765. enableval=$enable_video_cocoa;
  18766. else
  18767. enable_video_cocoa=yes
  18768. fi
  18769. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18770. save_CFLAGS="$CFLAGS"
  18771. CFLAGS="$CFLAGS -x objective-c"
  18772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18773. $as_echo_n "checking for Cocoa framework... " >&6; }
  18774. have_cocoa=no
  18775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18776. /* end confdefs.h. */
  18777. #import <Cocoa/Cocoa.h>
  18778. int
  18779. main ()
  18780. {
  18781. ;
  18782. return 0;
  18783. }
  18784. _ACEOF
  18785. if ac_fn_c_try_compile "$LINENO"; then :
  18786. have_cocoa=yes
  18787. fi
  18788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18790. $as_echo "$have_cocoa" >&6; }
  18791. CFLAGS="$save_CFLAGS"
  18792. if test x$have_cocoa = xyes; then
  18793. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18794. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18795. SUMMARY_video="${SUMMARY_video} cocoa"
  18796. have_video=yes
  18797. fi
  18798. fi
  18799. }
  18800. CheckMETAL()
  18801. {
  18802. # Check whether --enable-video-metal was given.
  18803. if test "${enable_video_metal+set}" = set; then :
  18804. enableval=$enable_video_metal;
  18805. else
  18806. enable_video_metal=yes
  18807. fi
  18808. # Check whether --enable-render-metal was given.
  18809. if test "${enable_render_metal+set}" = set; then :
  18810. enableval=$enable_render_metal;
  18811. else
  18812. enable_render_metal=yes
  18813. fi
  18814. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18815. save_CFLAGS="$CFLAGS"
  18816. CFLAGS="$CFLAGS -x objective-c"
  18817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18818. $as_echo_n "checking for Metal framework... " >&6; }
  18819. have_metal=no
  18820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18821. /* end confdefs.h. */
  18822. #import <Cocoa/Cocoa.h>
  18823. #import <Metal/Metal.h>
  18824. #import <QuartzCore/CAMetalLayer.h>
  18825. #if TARGET_CPU_X86
  18826. #error Metal doesn't work on this configuration
  18827. #endif
  18828. int
  18829. main ()
  18830. {
  18831. ;
  18832. return 0;
  18833. }
  18834. _ACEOF
  18835. if ac_fn_c_try_compile "$LINENO"; then :
  18836. have_metal=yes
  18837. fi
  18838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18839. CFLAGS="$save_CFLAGS"
  18840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18841. $as_echo "$have_metal" >&6; }
  18842. if test x$have_metal = xyes; then
  18843. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18844. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18845. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18846. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18847. fi
  18848. SUMMARY_video="${SUMMARY_video} metal"
  18849. else
  18850. enable_video_metal=no
  18851. enable_render_metal=no
  18852. fi
  18853. fi
  18854. }
  18855. CheckDirectFB()
  18856. {
  18857. # Check whether --enable-video-directfb was given.
  18858. if test "${enable_video_directfb+set}" = set; then :
  18859. enableval=$enable_video_directfb;
  18860. else
  18861. enable_video_directfb=no
  18862. fi
  18863. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18864. pkg_failed=no
  18865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18866. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18867. if test -n "$DIRECTFB_CFLAGS"; then
  18868. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18869. elif test -n "$PKG_CONFIG"; then
  18870. if test -n "$PKG_CONFIG" && \
  18871. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18872. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18873. ac_status=$?
  18874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18875. test $ac_status = 0; }; then
  18876. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18877. test "x$?" != "x0" && pkg_failed=yes
  18878. else
  18879. pkg_failed=yes
  18880. fi
  18881. else
  18882. pkg_failed=untried
  18883. fi
  18884. if test -n "$DIRECTFB_LIBS"; then
  18885. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18886. elif test -n "$PKG_CONFIG"; then
  18887. if test -n "$PKG_CONFIG" && \
  18888. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18889. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18890. ac_status=$?
  18891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18892. test $ac_status = 0; }; then
  18893. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18894. test "x$?" != "x0" && pkg_failed=yes
  18895. else
  18896. pkg_failed=yes
  18897. fi
  18898. else
  18899. pkg_failed=untried
  18900. fi
  18901. if test $pkg_failed = yes; then
  18902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18903. $as_echo "no" >&6; }
  18904. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18905. _pkg_short_errors_supported=yes
  18906. else
  18907. _pkg_short_errors_supported=no
  18908. fi
  18909. if test $_pkg_short_errors_supported = yes; then
  18910. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18911. else
  18912. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18913. fi
  18914. # Put the nasty error message in config.log where it belongs
  18915. echo "$DIRECTFB_PKG_ERRORS" >&5
  18916. video_directfb=no
  18917. elif test $pkg_failed = untried; then
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18919. $as_echo "no" >&6; }
  18920. video_directfb=no
  18921. else
  18922. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18923. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18925. $as_echo "yes" >&6; }
  18926. video_directfb=yes
  18927. fi
  18928. if test x$video_directfb = xyes; then
  18929. # SuSE 11.1 installs directfb-config without directfb-devel
  18930. save_CPPFLAGS="$CPPFLAGS"
  18931. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18932. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18933. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18934. have_directfb_hdr=yes
  18935. else
  18936. have_directfb_hdr=no
  18937. fi
  18938. CPPFLAGS="$save_CPPFLAGS"
  18939. video_directfb=$have_directfb_hdr
  18940. fi
  18941. if test x$video_directfb = xyes; then
  18942. # Check whether --enable-directfb-shared was given.
  18943. if test "${enable_directfb_shared+set}" = set; then :
  18944. enableval=$enable_directfb_shared;
  18945. else
  18946. enable_directfb_shared=yes
  18947. fi
  18948. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18949. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18950. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18951. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18952. directfb_shared=no
  18953. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18954. if test x$have_loadso != xyes && \
  18955. test x$enable_directfb_shared = xyes; then
  18956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18957. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18958. fi
  18959. if test x$have_loadso = xyes && \
  18960. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18961. directfb_shared=yes
  18962. echo "-- dynamic libdirectfb -> $directfb_lib"
  18963. cat >>confdefs.h <<_ACEOF
  18964. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18965. _ACEOF
  18966. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18967. else
  18968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18969. SUMMARY_video="${SUMMARY_video} directfb"
  18970. fi
  18971. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18972. have_video=yes
  18973. fi
  18974. fi
  18975. }
  18976. CheckKMSDRM()
  18977. {
  18978. # Check whether --enable-video-kmsdrm was given.
  18979. if test "${enable_video_kmsdrm+set}" = set; then :
  18980. enableval=$enable_video_kmsdrm;
  18981. else
  18982. enable_video_kmsdrm=no
  18983. fi
  18984. if test x$enable_video = xyes && \
  18985. test x$enable_video_kmsdrm = xyes && \
  18986. test x$video_opengl_egl = xyes; then
  18987. video_kmsdrm=no
  18988. pkg_failed=no
  18989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  18990. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  18991. if test -n "$LIBDRM_CFLAGS"; then
  18992. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18993. elif test -n "$PKG_CONFIG"; then
  18994. if test -n "$PKG_CONFIG" && \
  18995. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18996. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18997. ac_status=$?
  18998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18999. test $ac_status = 0; }; then
  19000. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19001. test "x$?" != "x0" && pkg_failed=yes
  19002. else
  19003. pkg_failed=yes
  19004. fi
  19005. else
  19006. pkg_failed=untried
  19007. fi
  19008. if test -n "$LIBDRM_LIBS"; then
  19009. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19010. elif test -n "$PKG_CONFIG"; then
  19011. if test -n "$PKG_CONFIG" && \
  19012. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19013. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19014. ac_status=$?
  19015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19016. test $ac_status = 0; }; then
  19017. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19018. test "x$?" != "x0" && pkg_failed=yes
  19019. else
  19020. pkg_failed=yes
  19021. fi
  19022. else
  19023. pkg_failed=untried
  19024. fi
  19025. if test $pkg_failed = yes; then
  19026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19027. $as_echo "no" >&6; }
  19028. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19029. _pkg_short_errors_supported=yes
  19030. else
  19031. _pkg_short_errors_supported=no
  19032. fi
  19033. if test $_pkg_short_errors_supported = yes; then
  19034. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19035. else
  19036. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19037. fi
  19038. # Put the nasty error message in config.log where it belongs
  19039. echo "$LIBDRM_PKG_ERRORS" >&5
  19040. libdrm_avail=no
  19041. elif test $pkg_failed = untried; then
  19042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19043. $as_echo "no" >&6; }
  19044. libdrm_avail=no
  19045. else
  19046. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19047. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19049. $as_echo "yes" >&6; }
  19050. libdrm_avail=yes
  19051. fi
  19052. pkg_failed=no
  19053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19054. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19055. if test -n "$LIBGBM_CFLAGS"; then
  19056. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19057. elif test -n "$PKG_CONFIG"; then
  19058. if test -n "$PKG_CONFIG" && \
  19059. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19060. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19061. ac_status=$?
  19062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19063. test $ac_status = 0; }; then
  19064. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19065. test "x$?" != "x0" && pkg_failed=yes
  19066. else
  19067. pkg_failed=yes
  19068. fi
  19069. else
  19070. pkg_failed=untried
  19071. fi
  19072. if test -n "$LIBGBM_LIBS"; then
  19073. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19074. elif test -n "$PKG_CONFIG"; then
  19075. if test -n "$PKG_CONFIG" && \
  19076. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19077. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19078. ac_status=$?
  19079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19080. test $ac_status = 0; }; then
  19081. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19082. test "x$?" != "x0" && pkg_failed=yes
  19083. else
  19084. pkg_failed=yes
  19085. fi
  19086. else
  19087. pkg_failed=untried
  19088. fi
  19089. if test $pkg_failed = yes; then
  19090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19091. $as_echo "no" >&6; }
  19092. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19093. _pkg_short_errors_supported=yes
  19094. else
  19095. _pkg_short_errors_supported=no
  19096. fi
  19097. if test $_pkg_short_errors_supported = yes; then
  19098. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19099. else
  19100. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19101. fi
  19102. # Put the nasty error message in config.log where it belongs
  19103. echo "$LIBGBM_PKG_ERRORS" >&5
  19104. libgbm_avail=no
  19105. elif test $pkg_failed = untried; then
  19106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19107. $as_echo "no" >&6; }
  19108. libgbm_avail=no
  19109. else
  19110. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19111. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19113. $as_echo "yes" >&6; }
  19114. libgbm_avail=yes
  19115. fi
  19116. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19117. video_kmsdrm=yes
  19118. fi
  19119. if test x$video_kmsdrm = xyes; then
  19120. # Check whether --enable-kmsdrm-shared was given.
  19121. if test "${enable_kmsdrm_shared+set}" = set; then :
  19122. enableval=$enable_kmsdrm_shared;
  19123. else
  19124. enable_kmsdrm_shared=yes
  19125. fi
  19126. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19127. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19128. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19130. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19131. kmsdrm_shared=no
  19132. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  19133. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  19134. if test x$have_loadso != xyes && \
  19135. test x$enable_kmsdrm_shared = xyes; then
  19136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19137. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19138. fi
  19139. if test x$have_loadso = xyes && \
  19140. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19141. kmsdrm_shared=yes
  19142. cat >>confdefs.h <<_ACEOF
  19143. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19144. _ACEOF
  19145. cat >>confdefs.h <<_ACEOF
  19146. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19147. _ACEOF
  19148. cat >>confdefs.h <<_ACEOF
  19149. #define HAVE_KMSDRM_SHARED "TRUE"
  19150. _ACEOF
  19151. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19152. else
  19153. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19154. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19155. fi
  19156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19157. $as_echo "$kmsdrm_shared" >&6; }
  19158. have_video=yes
  19159. fi
  19160. fi
  19161. }
  19162. CheckDummyVideo()
  19163. {
  19164. # Check whether --enable-video-dummy was given.
  19165. if test "${enable_video_dummy+set}" = set; then :
  19166. enableval=$enable_video_dummy;
  19167. else
  19168. enable_video_dummy=yes
  19169. fi
  19170. if test x$enable_video_dummy = xyes; then
  19171. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19172. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19173. have_video=yes
  19174. SUMMARY_video="${SUMMARY_video} dummy"
  19175. fi
  19176. }
  19177. CheckQNXVideo()
  19178. {
  19179. if test x$enable_video = xyes; then
  19180. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19181. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19182. have_video=yes
  19183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19184. SUMMARY_video="${SUMMARY_video} qnx"
  19185. fi
  19186. }
  19187. CheckQNXAudio()
  19188. {
  19189. if test x$enable_audio = xyes; then
  19190. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19191. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19192. have_audio=yes
  19193. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19194. SUMMARY_audio="${SUMMARY_audio} qsa"
  19195. fi
  19196. }
  19197. # Check whether --enable-video-opengl was given.
  19198. if test "${enable_video_opengl+set}" = set; then :
  19199. enableval=$enable_video_opengl;
  19200. else
  19201. enable_video_opengl=yes
  19202. fi
  19203. CheckOpenGLX11()
  19204. {
  19205. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19207. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19208. video_opengl=no
  19209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19210. /* end confdefs.h. */
  19211. #include <GL/gl.h>
  19212. #include <GL/glx.h>
  19213. int
  19214. main ()
  19215. {
  19216. ;
  19217. return 0;
  19218. }
  19219. _ACEOF
  19220. if ac_fn_c_try_compile "$LINENO"; then :
  19221. video_opengl=yes
  19222. fi
  19223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19225. $as_echo "$video_opengl" >&6; }
  19226. if test x$video_opengl = xyes; then
  19227. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19228. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19229. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19230. SUMMARY_video="${SUMMARY_video} opengl"
  19231. fi
  19232. fi
  19233. }
  19234. # Check whether --enable-video-opengles was given.
  19235. if test "${enable_video_opengles+set}" = set; then :
  19236. enableval=$enable_video_opengles;
  19237. else
  19238. enable_video_opengles=yes
  19239. fi
  19240. # Check whether --enable-video-opengles1 was given.
  19241. if test "${enable_video_opengles1+set}" = set; then :
  19242. enableval=$enable_video_opengles1;
  19243. else
  19244. enable_video_opengles1=yes
  19245. fi
  19246. # Check whether --enable-video-opengles2 was given.
  19247. if test "${enable_video_opengles2+set}" = set; then :
  19248. enableval=$enable_video_opengles2;
  19249. else
  19250. enable_video_opengles2=yes
  19251. fi
  19252. CheckOpenGLESX11()
  19253. {
  19254. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19256. $as_echo_n "checking for EGL support... " >&6; }
  19257. video_opengl_egl=no
  19258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19259. /* end confdefs.h. */
  19260. #define LINUX
  19261. #define EGL_API_FB
  19262. #define MESA_EGL_NO_X11_HEADERS
  19263. #define EGL_NO_X11
  19264. #include <EGL/egl.h>
  19265. #include <EGL/eglext.h>
  19266. int
  19267. main ()
  19268. {
  19269. ;
  19270. return 0;
  19271. }
  19272. _ACEOF
  19273. if ac_fn_c_try_compile "$LINENO"; then :
  19274. video_opengl_egl=yes
  19275. fi
  19276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19278. $as_echo "$video_opengl_egl" >&6; }
  19279. if test x$video_opengl_egl = xyes; then
  19280. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19281. fi
  19282. if test x$enable_video_opengles1 = xyes; then
  19283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19284. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19285. video_opengles_v1=no
  19286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19287. /* end confdefs.h. */
  19288. #include <GLES/gl.h>
  19289. #include <GLES/glext.h>
  19290. int
  19291. main ()
  19292. {
  19293. ;
  19294. return 0;
  19295. }
  19296. _ACEOF
  19297. if ac_fn_c_try_compile "$LINENO"; then :
  19298. video_opengles_v1=yes
  19299. fi
  19300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19302. $as_echo "$video_opengles_v1" >&6; }
  19303. if test x$video_opengles_v1 = xyes; then
  19304. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19305. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19306. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19307. fi
  19308. fi
  19309. if test x$enable_video_opengles2 = xyes; then
  19310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19311. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19312. video_opengles_v2=no
  19313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19314. /* end confdefs.h. */
  19315. #include <GLES2/gl2.h>
  19316. #include <GLES2/gl2ext.h>
  19317. int
  19318. main ()
  19319. {
  19320. ;
  19321. return 0;
  19322. }
  19323. _ACEOF
  19324. if ac_fn_c_try_compile "$LINENO"; then :
  19325. video_opengles_v2=yes
  19326. fi
  19327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19329. $as_echo "$video_opengles_v2" >&6; }
  19330. if test x$video_opengles_v2 = xyes; then
  19331. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19332. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19333. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19334. fi
  19335. fi
  19336. fi
  19337. }
  19338. CheckEGLKMSDRM()
  19339. {
  19340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19341. $as_echo_n "checking for EGL support... " >&6; }
  19342. video_opengl_egl=no
  19343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19344. /* end confdefs.h. */
  19345. #define LINUX
  19346. #define EGL_API_FB
  19347. #define MESA_EGL_NO_X11_HEADERS
  19348. #define EGL_NO_X11
  19349. #include <EGL/egl.h>
  19350. #include <EGL/eglext.h>
  19351. int
  19352. main ()
  19353. {
  19354. ;
  19355. return 0;
  19356. }
  19357. _ACEOF
  19358. if ac_fn_c_try_compile "$LINENO"; then :
  19359. video_opengl_egl=yes
  19360. fi
  19361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19363. $as_echo "$video_opengl_egl" >&6; }
  19364. if test x$video_opengl_egl = xyes; then
  19365. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19366. fi
  19367. }
  19368. CheckWINDOWSGL()
  19369. {
  19370. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19371. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19372. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19373. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19374. SUMMARY_video="${SUMMARY_video} opengl"
  19375. fi
  19376. }
  19377. CheckWINDOWSGLES()
  19378. {
  19379. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19381. $as_echo_n "checking for EGL support... " >&6; }
  19382. video_opengl_egl=no
  19383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19384. /* end confdefs.h. */
  19385. #include <EGL/egl.h>
  19386. int
  19387. main ()
  19388. {
  19389. ;
  19390. return 0;
  19391. }
  19392. _ACEOF
  19393. if ac_fn_c_try_compile "$LINENO"; then :
  19394. video_opengl_egl=yes
  19395. fi
  19396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19398. $as_echo "$video_opengl_egl" >&6; }
  19399. if test x$video_opengl_egl = xyes; then
  19400. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19401. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19402. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19403. fi
  19404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19405. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19406. video_opengles_v2=no
  19407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19408. /* end confdefs.h. */
  19409. #include <GLES2/gl2.h>
  19410. #include <GLES2/gl2ext.h>
  19411. int
  19412. main ()
  19413. {
  19414. ;
  19415. return 0;
  19416. }
  19417. _ACEOF
  19418. if ac_fn_c_try_compile "$LINENO"; then :
  19419. video_opengles_v2=yes
  19420. fi
  19421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19423. $as_echo "$video_opengles_v2" >&6; }
  19424. if test x$video_opengles_v2 = xyes; then
  19425. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19426. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19427. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19428. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19429. fi
  19430. fi
  19431. }
  19432. CheckHaikuGL()
  19433. {
  19434. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19435. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19436. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19437. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19438. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19439. SUMMARY_video="${SUMMARY_video} opengl"
  19440. fi
  19441. }
  19442. CheckMacGL()
  19443. {
  19444. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19445. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19446. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19447. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19448. SUMMARY_video="${SUMMARY_video} opengl"
  19449. fi
  19450. }
  19451. CheckMacGLES()
  19452. {
  19453. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19454. video_opengl_egl=yes
  19455. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19456. video_opengles_v2=yes
  19457. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19458. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19459. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19460. fi
  19461. }
  19462. CheckEmscriptenGLES()
  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_EGL 1" >>confdefs.h
  19486. fi
  19487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19488. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19489. video_opengles_v2=no
  19490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19491. /* end confdefs.h. */
  19492. #include <GLES2/gl2.h>
  19493. #include <GLES2/gl2ext.h>
  19494. int
  19495. main ()
  19496. {
  19497. ;
  19498. return 0;
  19499. }
  19500. _ACEOF
  19501. if ac_fn_c_try_compile "$LINENO"; then :
  19502. video_opengles_v2=yes
  19503. fi
  19504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19506. $as_echo "$video_opengles_v2" >&6; }
  19507. if test x$video_opengles_v2 = xyes; then
  19508. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19509. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19510. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19511. fi
  19512. fi
  19513. }
  19514. # Check whether --enable-video-vulkan was given.
  19515. if test "${enable_video_vulkan+set}" = set; then :
  19516. enableval=$enable_video_vulkan;
  19517. else
  19518. enable_video_vulkan=yes
  19519. fi
  19520. CheckVulkan()
  19521. {
  19522. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19523. case "$host" in
  19524. *-*-android*)
  19525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19526. /* end confdefs.h. */
  19527. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19528. #error Vulkan doesn't work on this configuration
  19529. #endif
  19530. int
  19531. main ()
  19532. {
  19533. ;
  19534. return 0;
  19535. }
  19536. _ACEOF
  19537. if ac_fn_c_try_compile "$LINENO"; then :
  19538. else
  19539. enable_video_vulkan=no
  19540. fi
  19541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19542. ;;
  19543. *-*-darwin*)
  19544. save_CFLAGS="$CFLAGS"
  19545. CFLAGS="$CFLAGS -x objective-c"
  19546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19547. /* end confdefs.h. */
  19548. #include <Cocoa/Cocoa.h>
  19549. #include <Metal/Metal.h>
  19550. #include <QuartzCore/CAMetalLayer.h>
  19551. #if TARGET_CPU_X86
  19552. #error Vulkan doesn't work on this configuration
  19553. #endif
  19554. int
  19555. main ()
  19556. {
  19557. ;
  19558. return 0;
  19559. }
  19560. _ACEOF
  19561. if ac_fn_c_try_compile "$LINENO"; then :
  19562. else
  19563. enable_video_vulkan=no
  19564. fi
  19565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19566. CFLAGS="$save_CFLAGS"
  19567. ;;
  19568. *)
  19569. ;;
  19570. esac
  19571. if test x$enable_video_vulkan = xno; then
  19572. # For reasons I am totally unable to see, I get an undefined macro error if
  19573. # I put this in the AC_TRY_COMPILE.
  19574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19575. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19576. fi
  19577. fi
  19578. if test x$enable_video_vulkan = xyes; then
  19579. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19580. SUMMARY_video="${SUMMARY_video} vulkan"
  19581. fi
  19582. }
  19583. CheckInputEvents()
  19584. {
  19585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19586. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19587. use_input_events=no
  19588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19589. /* end confdefs.h. */
  19590. #include <linux/input.h>
  19591. int
  19592. main ()
  19593. {
  19594. #ifndef EVIOCGNAME
  19595. #error EVIOCGNAME() ioctl not available
  19596. #endif
  19597. ;
  19598. return 0;
  19599. }
  19600. _ACEOF
  19601. if ac_fn_c_try_compile "$LINENO"; then :
  19602. use_input_events=yes
  19603. fi
  19604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19606. $as_echo "$use_input_events" >&6; }
  19607. if test x$use_input_events = xyes; then
  19608. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19609. SUMMARY_input="${SUMMARY_input} linuxev"
  19610. fi
  19611. }
  19612. CheckInputKD()
  19613. {
  19614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19615. $as_echo_n "checking for Linux kd.h... " >&6; }
  19616. use_input_kd=no
  19617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19618. /* end confdefs.h. */
  19619. #include <linux/kd.h>
  19620. #include <linux/keyboard.h>
  19621. int
  19622. main ()
  19623. {
  19624. struct kbentry kbe;
  19625. kbe.kb_table = KG_CTRL;
  19626. ioctl(0, KDGKBENT, &kbe);
  19627. ;
  19628. return 0;
  19629. }
  19630. _ACEOF
  19631. if ac_fn_c_try_compile "$LINENO"; then :
  19632. use_input_kd=yes
  19633. fi
  19634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19636. $as_echo "$use_input_kd" >&6; }
  19637. if test x$use_input_kd = xyes; then
  19638. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19639. SUMMARY_input="${SUMMARY_input} linuxkd"
  19640. fi
  19641. }
  19642. CheckInputKBIO()
  19643. {
  19644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19645. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19646. use_input_kbio=no
  19647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19648. /* end confdefs.h. */
  19649. #include <sys/kbio.h>
  19650. #include <sys/ioctl.h>
  19651. int
  19652. main ()
  19653. {
  19654. accentmap_t accTable;
  19655. ioctl(0, KDENABIO, 1);
  19656. ;
  19657. return 0;
  19658. }
  19659. _ACEOF
  19660. if ac_fn_c_try_compile "$LINENO"; then :
  19661. use_input_kbio=yes
  19662. fi
  19663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19665. $as_echo "$use_input_kbio" >&6; }
  19666. if test x$use_input_kbio = xyes; then
  19667. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19668. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19669. fi
  19670. }
  19671. CheckInputWSCONS()
  19672. {
  19673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19674. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19675. use_input_wscons=no
  19676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19677. /* end confdefs.h. */
  19678. #include <sys/time.h>
  19679. #include <dev/wscons/wsconsio.h>
  19680. #include <dev/wscons/wsksymdef.h>
  19681. #include <dev/wscons/wsksymvar.h>
  19682. #include <sys/ioctl.h>
  19683. int
  19684. main ()
  19685. {
  19686. struct wskbd_map_data data;
  19687. ioctl(0, WSKBDIO_GETMAP, &data);
  19688. ;
  19689. return 0;
  19690. }
  19691. _ACEOF
  19692. if ac_fn_c_try_compile "$LINENO"; then :
  19693. use_input_wscons=yes
  19694. fi
  19695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19697. $as_echo "$use_input_wscons" >&6; }
  19698. if test x$use_input_wscons = xyes; then
  19699. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19700. SUMMARY_input="${SUMMARY_input} wscons"
  19701. fi
  19702. }
  19703. CheckLibUDev()
  19704. {
  19705. # Check whether --enable-libudev was given.
  19706. if test "${enable_libudev+set}" = set; then :
  19707. enableval=$enable_libudev;
  19708. else
  19709. enable_libudev=yes
  19710. fi
  19711. if test x$enable_libudev = xyes; then
  19712. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19713. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19714. have_libudev_h_hdr=yes
  19715. else
  19716. have_libudev_h_hdr=no
  19717. fi
  19718. if test x$have_libudev_h_hdr = xyes; then
  19719. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19720. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19721. if test x$udev_lib != x; then
  19722. echo "-- dynamic udev -> $udev_lib"
  19723. cat >>confdefs.h <<_ACEOF
  19724. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19725. _ACEOF
  19726. fi
  19727. fi
  19728. fi
  19729. }
  19730. CheckDBus()
  19731. {
  19732. # Check whether --enable-dbus was given.
  19733. if test "${enable_dbus+set}" = set; then :
  19734. enableval=$enable_dbus;
  19735. else
  19736. enable_dbus=yes
  19737. fi
  19738. if test x$enable_dbus = xyes; then
  19739. pkg_failed=no
  19740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19741. $as_echo_n "checking for dbus-1... " >&6; }
  19742. if test -n "$DBUS_CFLAGS"; then
  19743. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19744. elif test -n "$PKG_CONFIG"; then
  19745. if test -n "$PKG_CONFIG" && \
  19746. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19747. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19748. ac_status=$?
  19749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19750. test $ac_status = 0; }; then
  19751. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19752. test "x$?" != "x0" && pkg_failed=yes
  19753. else
  19754. pkg_failed=yes
  19755. fi
  19756. else
  19757. pkg_failed=untried
  19758. fi
  19759. if test -n "$DBUS_LIBS"; then
  19760. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19761. elif test -n "$PKG_CONFIG"; then
  19762. if test -n "$PKG_CONFIG" && \
  19763. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19764. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19765. ac_status=$?
  19766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19767. test $ac_status = 0; }; then
  19768. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19769. test "x$?" != "x0" && pkg_failed=yes
  19770. else
  19771. pkg_failed=yes
  19772. fi
  19773. else
  19774. pkg_failed=untried
  19775. fi
  19776. if test $pkg_failed = yes; then
  19777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19778. $as_echo "no" >&6; }
  19779. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19780. _pkg_short_errors_supported=yes
  19781. else
  19782. _pkg_short_errors_supported=no
  19783. fi
  19784. if test $_pkg_short_errors_supported = yes; then
  19785. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19786. else
  19787. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19788. fi
  19789. # Put the nasty error message in config.log where it belongs
  19790. echo "$DBUS_PKG_ERRORS" >&5
  19791. have_dbus=no
  19792. elif test $pkg_failed = untried; then
  19793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19794. $as_echo "no" >&6; }
  19795. have_dbus=no
  19796. else
  19797. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19798. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19800. $as_echo "yes" >&6; }
  19801. have_dbus=yes
  19802. fi
  19803. save_CPPFLAGS="$CPPFLAGS"
  19804. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19805. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19806. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19807. have_dbus_dbus_h_hdr=yes
  19808. else
  19809. have_dbus_dbus_h_hdr=no
  19810. fi
  19811. CPPFLAGS="$save_CPPFLAGS"
  19812. if test x$have_dbus_dbus_h_hdr = xyes; then
  19813. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19814. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19815. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19816. fi
  19817. fi
  19818. }
  19819. CheckIME()
  19820. {
  19821. # Check whether --enable-ime was given.
  19822. if test "${enable_ime+set}" = set; then :
  19823. enableval=$enable_ime;
  19824. else
  19825. enable_ime=yes
  19826. fi
  19827. if test x$enable_ime = xyes; then
  19828. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19829. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19830. fi
  19831. }
  19832. CheckInotify()
  19833. {
  19834. save_LIBS="$LIBS"
  19835. case "$host" in
  19836. *-*-freebsd*) LIBS="$LIBS -linotify"
  19837. ;;
  19838. esac
  19839. for ac_header in sys/inotify.h
  19840. do :
  19841. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19842. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19843. cat >>confdefs.h <<_ACEOF
  19844. #define HAVE_SYS_INOTIFY_H 1
  19845. _ACEOF
  19846. have_inotify_inotify_h_hdr=yes
  19847. fi
  19848. done
  19849. for ac_func in inotify_init
  19850. do :
  19851. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19852. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19853. cat >>confdefs.h <<_ACEOF
  19854. #define HAVE_INOTIFY_INIT 1
  19855. _ACEOF
  19856. have_inotify=yes
  19857. fi
  19858. done
  19859. for ac_func in inotify_init1
  19860. do :
  19861. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19862. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19863. cat >>confdefs.h <<_ACEOF
  19864. #define HAVE_INOTIFY_INIT1 1
  19865. _ACEOF
  19866. fi
  19867. done
  19868. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19869. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19870. case "$host" in
  19871. *-*-freebsd*)
  19872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19873. ;;
  19874. esac
  19875. fi
  19876. LIBS="$save_LIBS"
  19877. }
  19878. CheckIBus()
  19879. {
  19880. # Check whether --enable-ibus was given.
  19881. if test "${enable_ibus+set}" = set; then :
  19882. enableval=$enable_ibus;
  19883. else
  19884. enable_ibus=yes
  19885. fi
  19886. if test x$enable_ibus = xyes; then
  19887. pkg_failed=no
  19888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  19889. $as_echo_n "checking for ibus-1.0... " >&6; }
  19890. if test -n "$IBUS_CFLAGS"; then
  19891. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19892. elif test -n "$PKG_CONFIG"; then
  19893. if test -n "$PKG_CONFIG" && \
  19894. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19895. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19896. ac_status=$?
  19897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19898. test $ac_status = 0; }; then
  19899. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19900. test "x$?" != "x0" && pkg_failed=yes
  19901. else
  19902. pkg_failed=yes
  19903. fi
  19904. else
  19905. pkg_failed=untried
  19906. fi
  19907. if test -n "$IBUS_LIBS"; then
  19908. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19909. elif test -n "$PKG_CONFIG"; then
  19910. if test -n "$PKG_CONFIG" && \
  19911. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19912. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19913. ac_status=$?
  19914. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19915. test $ac_status = 0; }; then
  19916. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19917. test "x$?" != "x0" && pkg_failed=yes
  19918. else
  19919. pkg_failed=yes
  19920. fi
  19921. else
  19922. pkg_failed=untried
  19923. fi
  19924. if test $pkg_failed = yes; then
  19925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19926. $as_echo "no" >&6; }
  19927. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19928. _pkg_short_errors_supported=yes
  19929. else
  19930. _pkg_short_errors_supported=no
  19931. fi
  19932. if test $_pkg_short_errors_supported = yes; then
  19933. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19934. else
  19935. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19936. fi
  19937. # Put the nasty error message in config.log where it belongs
  19938. echo "$IBUS_PKG_ERRORS" >&5
  19939. have_ibus=no
  19940. elif test $pkg_failed = untried; then
  19941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19942. $as_echo "no" >&6; }
  19943. have_ibus=no
  19944. else
  19945. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19946. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19948. $as_echo "yes" >&6; }
  19949. have_ibus=yes
  19950. fi
  19951. save_CPPFLAGS="$CPPFLAGS"
  19952. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  19953. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19954. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19955. have_ibus_ibus_h_hdr=yes
  19956. else
  19957. have_ibus_ibus_h_hdr=no
  19958. fi
  19959. CPPFLAGS="$save_CPPFLAGS"
  19960. if test x$have_ibus_ibus_h_hdr = xyes; then
  19961. if test x$enable_ime != xyes; then
  19962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19963. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19964. have_ibus_ibus_h_hdr=no
  19965. elif test x$enable_dbus != xyes; then
  19966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19967. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19968. have_ibus_ibus_h_hdr=no
  19969. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19971. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19972. have_ibus_ibus_h_hdr=no
  19973. else
  19974. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19975. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19976. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19977. fi
  19978. fi
  19979. fi
  19980. }
  19981. CheckFcitx()
  19982. {
  19983. # Check whether --enable-fcitx was given.
  19984. if test "${enable_fcitx+set}" = set; then :
  19985. enableval=$enable_fcitx;
  19986. else
  19987. enable_fcitx=yes
  19988. fi
  19989. if test x$enable_fcitx = xyes; then
  19990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19991. $as_echo_n "checking for fcitx support... " >&6; }
  19992. have_fcitx=no
  19993. if test x$enable_ime != xyes; then
  19994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19995. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19996. elif test x$have_dbus_dbus_h_hdr != xyes; then
  19997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19998. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19999. else
  20000. have_fcitx=yes
  20001. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20002. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20003. fi
  20004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20005. $as_echo "$have_fcitx" >&6; }
  20006. fi
  20007. }
  20008. CheckJoystickMFI()
  20009. {
  20010. # Check whether --enable-joystick-mfi was given.
  20011. if test "${enable_joystick_mfi+set}" = set; then :
  20012. enableval=$enable_joystick_mfi;
  20013. else
  20014. enable_joystick_mfi=yes
  20015. fi
  20016. if test x$enable_joystick_mfi = xyes; then
  20017. save_CFLAGS="$CFLAGS"
  20018. save_LDFLAGS="$LDFLAGS"
  20019. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20020. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20022. $as_echo_n "checking for GameController framework... " >&6; }
  20023. enable_joystick_mfi=no
  20024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20025. /* end confdefs.h. */
  20026. #include <AvailabilityMacros.h>
  20027. #include <TargetConditionals.h>
  20028. #import <GameController/GameController.h>
  20029. int
  20030. main ()
  20031. {
  20032. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20033. #error GameController framework doesn't work on this configuration
  20034. #endif
  20035. #if TARGET_CPU_X86
  20036. #error GameController framework doesn't work on this configuration
  20037. #endif
  20038. ;
  20039. return 0;
  20040. }
  20041. _ACEOF
  20042. if ac_fn_c_try_link "$LINENO"; then :
  20043. enable_joystick_mfi=yes
  20044. fi
  20045. rm -f core conftest.err conftest.$ac_objext \
  20046. conftest$ac_exeext conftest.$ac_ext
  20047. CFLAGS="$save_CFLAGS"
  20048. LDFLAGS="$save_LDFLAGS"
  20049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20050. $as_echo "$enable_joystick_mfi" >&6; }
  20051. if test x$enable_joystick_mfi = xyes; then
  20052. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20053. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20054. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20055. fi
  20056. fi
  20057. }
  20058. CheckPTHREAD()
  20059. {
  20060. # Check whether --enable-pthreads was given.
  20061. if test "${enable_pthreads+set}" = set; then :
  20062. enableval=$enable_pthreads;
  20063. else
  20064. enable_pthreads=yes
  20065. fi
  20066. # Check whether --enable-pthread-sem was given.
  20067. if test "${enable_pthread_sem+set}" = set; then :
  20068. enableval=$enable_pthread_sem;
  20069. else
  20070. enable_pthread_sem=yes
  20071. fi
  20072. case "$host" in
  20073. *-*-android*)
  20074. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20075. pthread_lib=""
  20076. ;;
  20077. *-*-linux*|*-*-uclinux*)
  20078. pthread_cflags="-D_REENTRANT"
  20079. pthread_lib="-lpthread"
  20080. ;;
  20081. *-*-bsdi*)
  20082. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20083. pthread_lib=""
  20084. ;;
  20085. *-*-darwin*)
  20086. pthread_cflags="-D_THREAD_SAFE"
  20087. # causes Carbon.p complaints?
  20088. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20089. ;;
  20090. *-*-freebsd*|*-*-dragonfly*)
  20091. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20092. pthread_lib="-pthread"
  20093. ;;
  20094. *-*-netbsd*)
  20095. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20096. pthread_lib="-lpthread"
  20097. ;;
  20098. *-*-openbsd*)
  20099. pthread_cflags="-D_REENTRANT"
  20100. pthread_lib="-pthread"
  20101. ;;
  20102. *-*-solaris2.9)
  20103. # From Solaris 9+, posix4's preferred name is rt.
  20104. pthread_cflags="-D_REENTRANT"
  20105. pthread_lib="-lpthread -lrt"
  20106. ;;
  20107. *-*-solaris2.10)
  20108. # Solaris 10+ merged pthread into libc.
  20109. pthread_cflags="-D_REENTRANT"
  20110. pthread_lib="-lrt"
  20111. ;;
  20112. *-*-solaris*)
  20113. # Solaris 11+ merged rt into libc.
  20114. pthread_cflags="-D_REENTRANT"
  20115. pthread_lib=""
  20116. ;;
  20117. *-*-sysv5*)
  20118. pthread_cflags="-D_REENTRANT -Kthread"
  20119. pthread_lib=""
  20120. ;;
  20121. *-*-aix*)
  20122. pthread_cflags="-D_REENTRANT -mthreads"
  20123. pthread_lib="-lpthread"
  20124. ;;
  20125. *-*-hpux11*)
  20126. pthread_cflags="-D_REENTRANT"
  20127. pthread_lib="-L/usr/lib -lpthread"
  20128. ;;
  20129. *-*-haiku*)
  20130. pthread_cflags="-D_REENTRANT"
  20131. pthread_lib=""
  20132. ;;
  20133. *-*-nto*)
  20134. pthread_cflags="-D_REENTRANT"
  20135. pthread_lib=""
  20136. ;;
  20137. *)
  20138. pthread_cflags="-D_REENTRANT"
  20139. pthread_lib="-lpthread"
  20140. ;;
  20141. esac
  20142. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20143. # Save the original compiler flags and libraries
  20144. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20145. # Add the pthread compiler flags and libraries
  20146. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20147. # Check to see if we have pthread support on this system
  20148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20149. $as_echo_n "checking for pthreads... " >&6; }
  20150. use_pthreads=no
  20151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20152. /* end confdefs.h. */
  20153. #include <pthread.h>
  20154. int
  20155. main ()
  20156. {
  20157. pthread_attr_t type;
  20158. pthread_attr_init(&type);
  20159. ;
  20160. return 0;
  20161. }
  20162. _ACEOF
  20163. if ac_fn_c_try_link "$LINENO"; then :
  20164. use_pthreads=yes
  20165. fi
  20166. rm -f core conftest.err conftest.$ac_objext \
  20167. conftest$ac_exeext conftest.$ac_ext
  20168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20169. $as_echo "$use_pthreads" >&6; }
  20170. # Restore the compiler flags and libraries
  20171. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20172. # Do futher testing if we have pthread support...
  20173. if test x$use_pthreads = xyes; then
  20174. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20175. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20177. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20178. # Save the original compiler flags and libraries
  20179. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20180. # Add the pthread compiler flags and libraries
  20181. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20182. # Check to see if recursive mutexes are available
  20183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20184. $as_echo_n "checking for recursive mutexes... " >&6; }
  20185. has_recursive_mutexes=no
  20186. if test x$has_recursive_mutexes = xno; then
  20187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20188. /* end confdefs.h. */
  20189. #define _GNU_SOURCE 1
  20190. #include <pthread.h>
  20191. int
  20192. main ()
  20193. {
  20194. pthread_mutexattr_t attr;
  20195. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20196. ;
  20197. return 0;
  20198. }
  20199. _ACEOF
  20200. if ac_fn_c_try_link "$LINENO"; then :
  20201. has_recursive_mutexes=yes
  20202. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20203. fi
  20204. rm -f core conftest.err conftest.$ac_objext \
  20205. conftest$ac_exeext conftest.$ac_ext
  20206. fi
  20207. if test x$has_recursive_mutexes = xno; then
  20208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20209. /* end confdefs.h. */
  20210. #define _GNU_SOURCE 1
  20211. #include <pthread.h>
  20212. int
  20213. main ()
  20214. {
  20215. pthread_mutexattr_t attr;
  20216. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20217. ;
  20218. return 0;
  20219. }
  20220. _ACEOF
  20221. if ac_fn_c_try_link "$LINENO"; then :
  20222. has_recursive_mutexes=yes
  20223. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20224. fi
  20225. rm -f core conftest.err conftest.$ac_objext \
  20226. conftest$ac_exeext conftest.$ac_ext
  20227. fi
  20228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20229. $as_echo "$has_recursive_mutexes" >&6; }
  20230. # Check to see if pthread semaphore support is missing
  20231. if test x$enable_pthread_sem = xyes; then
  20232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20233. $as_echo_n "checking for pthread semaphores... " >&6; }
  20234. have_pthread_sem=no
  20235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20236. /* end confdefs.h. */
  20237. #include <pthread.h>
  20238. #include <semaphore.h>
  20239. int
  20240. main ()
  20241. {
  20242. ;
  20243. return 0;
  20244. }
  20245. _ACEOF
  20246. if ac_fn_c_try_compile "$LINENO"; then :
  20247. have_pthread_sem=yes
  20248. fi
  20249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20251. $as_echo "$have_pthread_sem" >&6; }
  20252. fi
  20253. if test x$have_pthread_sem = xyes; then
  20254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20255. $as_echo_n "checking for sem_timedwait... " >&6; }
  20256. have_sem_timedwait=no
  20257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20258. /* end confdefs.h. */
  20259. #include <pthread.h>
  20260. #include <semaphore.h>
  20261. int
  20262. main ()
  20263. {
  20264. sem_timedwait(NULL, NULL);
  20265. ;
  20266. return 0;
  20267. }
  20268. _ACEOF
  20269. if ac_fn_c_try_link "$LINENO"; then :
  20270. have_sem_timedwait=yes
  20271. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20272. fi
  20273. rm -f core conftest.err conftest.$ac_objext \
  20274. conftest$ac_exeext conftest.$ac_ext
  20275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20276. $as_echo "$have_sem_timedwait" >&6; }
  20277. fi
  20278. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20279. "
  20280. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20281. have_pthread_np_h=yes
  20282. else
  20283. have_pthread_np_h=no
  20284. fi
  20285. if test x$have_pthread_np_h = xyes; then
  20286. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20287. fi
  20288. # Check to see if pthread naming is available
  20289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20290. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20292. /* end confdefs.h. */
  20293. /* Override any GCC internal prototype to avoid an error.
  20294. Use char because int might match the return type of a GCC
  20295. builtin and then its argument prototype would still apply. */
  20296. #ifdef __cplusplus
  20297. extern "C"
  20298. #endif
  20299. char pthread_setname_np ();
  20300. int
  20301. main ()
  20302. {
  20303. return pthread_setname_np ();
  20304. ;
  20305. return 0;
  20306. }
  20307. _ACEOF
  20308. if ac_fn_c_try_link "$LINENO"; then :
  20309. has_pthread_setname_np=yes
  20310. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20311. else
  20312. has_pthread_setname_np=no
  20313. fi
  20314. rm -f core conftest.err conftest.$ac_objext \
  20315. conftest$ac_exeext conftest.$ac_ext
  20316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20317. $as_echo "$has_pthread_setname_np" >&6; }
  20318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20319. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20321. /* end confdefs.h. */
  20322. /* Override any GCC internal prototype to avoid an error.
  20323. Use char because int might match the return type of a GCC
  20324. builtin and then its argument prototype would still apply. */
  20325. #ifdef __cplusplus
  20326. extern "C"
  20327. #endif
  20328. char pthread_set_name_np ();
  20329. int
  20330. main ()
  20331. {
  20332. return pthread_set_name_np ();
  20333. ;
  20334. return 0;
  20335. }
  20336. _ACEOF
  20337. if ac_fn_c_try_link "$LINENO"; then :
  20338. has_pthread_set_name_np=yes
  20339. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20340. else
  20341. has_pthread_set_name_np=no
  20342. fi
  20343. rm -f core conftest.err conftest.$ac_objext \
  20344. conftest$ac_exeext conftest.$ac_ext
  20345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20346. $as_echo "$has_pthread_set_name_np" >&6; }
  20347. # Restore the compiler flags and libraries
  20348. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20349. # Basic thread creation functions
  20350. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20351. # Semaphores
  20352. # We can fake these with mutexes and condition variables if necessary
  20353. if test x$have_pthread_sem = xyes; then
  20354. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20355. else
  20356. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20357. fi
  20358. # Mutexes
  20359. # We can fake these with semaphores if necessary
  20360. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20361. # Condition variables
  20362. # We can fake these with semaphores and mutexes if necessary
  20363. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20364. # Thread local storage
  20365. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20366. have_threads=yes
  20367. fi
  20368. fi
  20369. }
  20370. CheckWINDOWS()
  20371. {
  20372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20373. $as_echo_n "checking Windows compiler... " >&6; }
  20374. have_win32_gcc=no
  20375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20376. /* end confdefs.h. */
  20377. #include <windows.h>
  20378. int
  20379. main ()
  20380. {
  20381. ;
  20382. return 0;
  20383. }
  20384. _ACEOF
  20385. if ac_fn_c_try_compile "$LINENO"; then :
  20386. have_win32_gcc=yes
  20387. fi
  20388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20390. $as_echo "$have_win32_gcc" >&6; }
  20391. if test x$have_win32_gcc != xyes; then
  20392. as_fn_error $? "
  20393. *** Your compiler ($CC) does not produce Windows executables!
  20394. " "$LINENO" 5
  20395. fi
  20396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20397. $as_echo_n "checking Windows CE... " >&6; }
  20398. have_wince=no
  20399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20400. /* end confdefs.h. */
  20401. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20402. #error This is not Windows CE
  20403. #endif
  20404. int
  20405. main ()
  20406. {
  20407. ;
  20408. return 0;
  20409. }
  20410. _ACEOF
  20411. if ac_fn_c_try_compile "$LINENO"; then :
  20412. have_wince=yes
  20413. as_fn_error $? "
  20414. *** Sorry, Windows CE is no longer supported.
  20415. " "$LINENO" 5
  20416. fi
  20417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20419. $as_echo "$have_wince" >&6; }
  20420. # This fixes Windows stack alignment with newer GCC
  20421. CheckStackBoundary
  20422. }
  20423. CheckDIRECTX()
  20424. {
  20425. # Check whether --enable-directx was given.
  20426. if test "${enable_directx+set}" = set; then :
  20427. enableval=$enable_directx;
  20428. else
  20429. enable_directx=yes
  20430. fi
  20431. if test x$enable_directx = xyes; then
  20432. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20433. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20434. have_d3d=yes
  20435. fi
  20436. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20437. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20438. have_d3d11=yes
  20439. fi
  20440. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20441. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20442. have_ddraw=yes
  20443. fi
  20444. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20445. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20446. have_dsound=yes
  20447. fi
  20448. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20449. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20450. have_dinput=yes
  20451. fi
  20452. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20453. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20454. have_dxgi=yes
  20455. fi
  20456. if test x$have_ddraw = xyes; then
  20457. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20458. fi
  20459. if test x$have_dinput = xyes; then
  20460. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20461. fi
  20462. if test x$have_dsound = xyes; then
  20463. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20464. fi
  20465. if test x$have_dxgi = xyes; then
  20466. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20467. fi
  20468. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20469. # FIXME: ...so force it off for now.
  20470. case "$host" in
  20471. *-*-cygwin*)
  20472. have_dinput=false
  20473. ;;
  20474. esac
  20475. fi
  20476. # Check whether --enable-xinput was given.
  20477. if test "${enable_xinput+set}" = set; then :
  20478. enableval=$enable_xinput;
  20479. else
  20480. enable_xinput=yes
  20481. fi
  20482. if test x$enable_xinput = xyes; then
  20483. have_xinput_gamepadex=no
  20484. have_xinput_stateex=no
  20485. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20486. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20487. have_xinput=yes
  20488. fi
  20489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20490. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20492. /* end confdefs.h. */
  20493. #include <windows.h>
  20494. #include <xinput.h>
  20495. XINPUT_GAMEPAD_EX x1;
  20496. int
  20497. main ()
  20498. {
  20499. ;
  20500. return 0;
  20501. }
  20502. _ACEOF
  20503. if ac_fn_c_try_compile "$LINENO"; then :
  20504. have_xinput_gamepadex=yes
  20505. fi
  20506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20508. $as_echo "$have_xinput_gamepadex" >&6; }
  20509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20510. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20512. /* end confdefs.h. */
  20513. #include <windows.h>
  20514. #include <xinput.h>
  20515. XINPUT_STATE_EX s1;
  20516. int
  20517. main ()
  20518. {
  20519. ;
  20520. return 0;
  20521. }
  20522. _ACEOF
  20523. if ac_fn_c_try_compile "$LINENO"; then :
  20524. have_xinput_stateex=yes
  20525. fi
  20526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20528. $as_echo "$have_xinput_stateex" >&6; }
  20529. if test x$have_xinput = xyes; then
  20530. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20531. fi
  20532. if test x$have_xinput_gamepadex = xyes; then
  20533. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20534. fi
  20535. if test x$have_xinput_stateex = xyes; then
  20536. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20537. fi
  20538. fi
  20539. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20540. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20541. have_wasapi=yes
  20542. fi
  20543. if test x$have_wasapi = xyes; then
  20544. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20545. fi
  20546. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20547. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20548. else
  20549. have_wasapi=no
  20550. fi
  20551. if test x$have_wasapi = xyes; then
  20552. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20553. fi
  20554. # Check whether --enable-wasapi was given.
  20555. if test "${enable_wasapi+set}" = set; then :
  20556. enableval=$enable_wasapi;
  20557. else
  20558. enable_wasapi=yes
  20559. fi
  20560. }
  20561. CheckDLOPEN()
  20562. {
  20563. # Check whether --enable-sdl-dlopen was given.
  20564. if test "${enable_sdl_dlopen+set}" = set; then :
  20565. enableval=$enable_sdl_dlopen;
  20566. else
  20567. enable_sdl_dlopen=yes
  20568. fi
  20569. if test x$enable_sdl_dlopen = xyes; then
  20570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20571. $as_echo_n "checking for dlopen... " >&6; }
  20572. have_dlopen=no
  20573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20574. /* end confdefs.h. */
  20575. #include <dlfcn.h>
  20576. int
  20577. main ()
  20578. {
  20579. void *handle = dlopen("", RTLD_NOW);
  20580. const char *loaderror = (char *) dlerror();
  20581. ;
  20582. return 0;
  20583. }
  20584. _ACEOF
  20585. if ac_fn_c_try_compile "$LINENO"; then :
  20586. have_dlopen=yes
  20587. fi
  20588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20590. $as_echo "$have_dlopen" >&6; }
  20591. if test x$have_dlopen = xyes; then
  20592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20593. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20594. if ${ac_cv_lib_c_dlopen+:} false; then :
  20595. $as_echo_n "(cached) " >&6
  20596. else
  20597. ac_check_lib_save_LIBS=$LIBS
  20598. LIBS="-lc $LIBS"
  20599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20600. /* end confdefs.h. */
  20601. /* Override any GCC internal prototype to avoid an error.
  20602. Use char because int might match the return type of a GCC
  20603. builtin and then its argument prototype would still apply. */
  20604. #ifdef __cplusplus
  20605. extern "C"
  20606. #endif
  20607. char dlopen ();
  20608. int
  20609. main ()
  20610. {
  20611. return dlopen ();
  20612. ;
  20613. return 0;
  20614. }
  20615. _ACEOF
  20616. if ac_fn_c_try_link "$LINENO"; then :
  20617. ac_cv_lib_c_dlopen=yes
  20618. else
  20619. ac_cv_lib_c_dlopen=no
  20620. fi
  20621. rm -f core conftest.err conftest.$ac_objext \
  20622. conftest$ac_exeext conftest.$ac_ext
  20623. LIBS=$ac_check_lib_save_LIBS
  20624. fi
  20625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20626. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20627. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20628. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20629. else
  20630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20631. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20632. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20633. $as_echo_n "(cached) " >&6
  20634. else
  20635. ac_check_lib_save_LIBS=$LIBS
  20636. LIBS="-ldl $LIBS"
  20637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20638. /* end confdefs.h. */
  20639. /* Override any GCC internal prototype to avoid an error.
  20640. Use char because int might match the return type of a GCC
  20641. builtin and then its argument prototype would still apply. */
  20642. #ifdef __cplusplus
  20643. extern "C"
  20644. #endif
  20645. char dlopen ();
  20646. int
  20647. main ()
  20648. {
  20649. return dlopen ();
  20650. ;
  20651. return 0;
  20652. }
  20653. _ACEOF
  20654. if ac_fn_c_try_link "$LINENO"; then :
  20655. ac_cv_lib_dl_dlopen=yes
  20656. else
  20657. ac_cv_lib_dl_dlopen=no
  20658. fi
  20659. rm -f core conftest.err conftest.$ac_objext \
  20660. conftest$ac_exeext conftest.$ac_ext
  20661. LIBS=$ac_check_lib_save_LIBS
  20662. fi
  20663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20664. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20665. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20666. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20667. else
  20668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20669. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20670. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20671. $as_echo_n "(cached) " >&6
  20672. else
  20673. ac_check_lib_save_LIBS=$LIBS
  20674. LIBS="-lltdl $LIBS"
  20675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20676. /* end confdefs.h. */
  20677. /* Override any GCC internal prototype to avoid an error.
  20678. Use char because int might match the return type of a GCC
  20679. builtin and then its argument prototype would still apply. */
  20680. #ifdef __cplusplus
  20681. extern "C"
  20682. #endif
  20683. char dlopen ();
  20684. int
  20685. main ()
  20686. {
  20687. return dlopen ();
  20688. ;
  20689. return 0;
  20690. }
  20691. _ACEOF
  20692. if ac_fn_c_try_link "$LINENO"; then :
  20693. ac_cv_lib_ltdl_dlopen=yes
  20694. else
  20695. ac_cv_lib_ltdl_dlopen=no
  20696. fi
  20697. rm -f core conftest.err conftest.$ac_objext \
  20698. conftest$ac_exeext conftest.$ac_ext
  20699. LIBS=$ac_check_lib_save_LIBS
  20700. fi
  20701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20702. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20703. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20704. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20705. fi
  20706. fi
  20707. fi
  20708. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20709. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20710. have_loadso=yes
  20711. fi
  20712. fi
  20713. }
  20714. CheckUSBHID()
  20715. {
  20716. case "$host" in
  20717. *-*-*bsd*|*-*-dragonfly*)
  20718. if test x$enable_joystick = xyes; then
  20719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20720. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20721. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20722. $as_echo_n "(cached) " >&6
  20723. else
  20724. ac_check_lib_save_LIBS=$LIBS
  20725. LIBS="-lusbhid $LIBS"
  20726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20727. /* end confdefs.h. */
  20728. /* Override any GCC internal prototype to avoid an error.
  20729. Use char because int might match the return type of a GCC
  20730. builtin and then its argument prototype would still apply. */
  20731. #ifdef __cplusplus
  20732. extern "C"
  20733. #endif
  20734. char hid_init ();
  20735. int
  20736. main ()
  20737. {
  20738. return hid_init ();
  20739. ;
  20740. return 0;
  20741. }
  20742. _ACEOF
  20743. if ac_fn_c_try_link "$LINENO"; then :
  20744. ac_cv_lib_usbhid_hid_init=yes
  20745. else
  20746. ac_cv_lib_usbhid_hid_init=no
  20747. fi
  20748. rm -f core conftest.err conftest.$ac_objext \
  20749. conftest$ac_exeext conftest.$ac_ext
  20750. LIBS=$ac_check_lib_save_LIBS
  20751. fi
  20752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20753. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20754. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20755. have_libusbhid=yes
  20756. fi
  20757. if test x$have_libusbhid = xyes; then
  20758. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20759. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20760. USB_CFLAGS="-DHAVE_USBHID_H"
  20761. fi
  20762. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20763. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20764. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20765. fi
  20766. USB_LIBS="$USB_LIBS -lusbhid"
  20767. else
  20768. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20769. if test "x$ac_cv_header_usb_h" = xyes; then :
  20770. USB_CFLAGS="-DHAVE_USB_H"
  20771. fi
  20772. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20773. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20774. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20775. fi
  20776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20777. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20778. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20779. $as_echo_n "(cached) " >&6
  20780. else
  20781. ac_check_lib_save_LIBS=$LIBS
  20782. LIBS="-lusb $LIBS"
  20783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20784. /* end confdefs.h. */
  20785. /* Override any GCC internal prototype to avoid an error.
  20786. Use char because int might match the return type of a GCC
  20787. builtin and then its argument prototype would still apply. */
  20788. #ifdef __cplusplus
  20789. extern "C"
  20790. #endif
  20791. char hid_init ();
  20792. int
  20793. main ()
  20794. {
  20795. return hid_init ();
  20796. ;
  20797. return 0;
  20798. }
  20799. _ACEOF
  20800. if ac_fn_c_try_link "$LINENO"; then :
  20801. ac_cv_lib_usb_hid_init=yes
  20802. else
  20803. ac_cv_lib_usb_hid_init=no
  20804. fi
  20805. rm -f core conftest.err conftest.$ac_objext \
  20806. conftest$ac_exeext conftest.$ac_ext
  20807. LIBS=$ac_check_lib_save_LIBS
  20808. fi
  20809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20810. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20811. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20812. USB_LIBS="$USB_LIBS -lusb"
  20813. fi
  20814. fi
  20815. save_CFLAGS="$CFLAGS"
  20816. CFLAGS="$CFLAGS $USB_CFLAGS"
  20817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20818. $as_echo_n "checking for usbhid... " >&6; }
  20819. have_usbhid=no
  20820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20821. /* end confdefs.h. */
  20822. #include <sys/types.h>
  20823. #if defined(HAVE_USB_H)
  20824. #include <usb.h>
  20825. #endif
  20826. #ifdef __DragonFly__
  20827. # include <bus/u4b/usb.h>
  20828. # include <bus/u4b/usbhid.h>
  20829. #else
  20830. # include <dev/usb/usb.h>
  20831. # include <dev/usb/usbhid.h>
  20832. #endif
  20833. #if defined(HAVE_USBHID_H)
  20834. #include <usbhid.h>
  20835. #elif defined(HAVE_LIBUSB_H)
  20836. #include <libusb.h>
  20837. #elif defined(HAVE_LIBUSBHID_H)
  20838. #include <libusbhid.h>
  20839. #endif
  20840. int
  20841. main ()
  20842. {
  20843. struct report_desc *repdesc;
  20844. struct usb_ctl_report *repbuf;
  20845. hid_kind_t hidkind;
  20846. ;
  20847. return 0;
  20848. }
  20849. _ACEOF
  20850. if ac_fn_c_try_compile "$LINENO"; then :
  20851. have_usbhid=yes
  20852. fi
  20853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20855. $as_echo "$have_usbhid" >&6; }
  20856. if test x$have_usbhid = xyes; then
  20857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20858. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20859. have_usbhid_ucr_data=no
  20860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20861. /* end confdefs.h. */
  20862. #include <sys/types.h>
  20863. #if defined(HAVE_USB_H)
  20864. #include <usb.h>
  20865. #endif
  20866. #ifdef __DragonFly__
  20867. # include <bus/u4b/usb.h>
  20868. # include <bus/u4b/usbhid.h>
  20869. #else
  20870. # include <dev/usb/usb.h>
  20871. # include <dev/usb/usbhid.h>
  20872. #endif
  20873. #if defined(HAVE_USBHID_H)
  20874. #include <usbhid.h>
  20875. #elif defined(HAVE_LIBUSB_H)
  20876. #include <libusb.h>
  20877. #elif defined(HAVE_LIBUSBHID_H)
  20878. #include <libusbhid.h>
  20879. #endif
  20880. int
  20881. main ()
  20882. {
  20883. struct usb_ctl_report buf;
  20884. if (buf.ucr_data) { }
  20885. ;
  20886. return 0;
  20887. }
  20888. _ACEOF
  20889. if ac_fn_c_try_compile "$LINENO"; then :
  20890. have_usbhid_ucr_data=yes
  20891. fi
  20892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20893. if test x$have_usbhid_ucr_data = xyes; then
  20894. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20895. fi
  20896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20897. $as_echo "$have_usbhid_ucr_data" >&6; }
  20898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20899. $as_echo_n "checking for new usbhid API... " >&6; }
  20900. have_usbhid_new=no
  20901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20902. /* end confdefs.h. */
  20903. #include <sys/types.h>
  20904. #if defined(HAVE_USB_H)
  20905. #include <usb.h>
  20906. #endif
  20907. #ifdef __DragonFly__
  20908. #include <bus/u4b/usb.h>
  20909. #include <bus/u4b/usbhid.h>
  20910. #else
  20911. #include <dev/usb/usb.h>
  20912. #include <dev/usb/usbhid.h>
  20913. #endif
  20914. #if defined(HAVE_USBHID_H)
  20915. #include <usbhid.h>
  20916. #elif defined(HAVE_LIBUSB_H)
  20917. #include <libusb.h>
  20918. #elif defined(HAVE_LIBUSBHID_H)
  20919. #include <libusbhid.h>
  20920. #endif
  20921. int
  20922. main ()
  20923. {
  20924. report_desc_t d;
  20925. hid_start_parse(d, 1, 1);
  20926. ;
  20927. return 0;
  20928. }
  20929. _ACEOF
  20930. if ac_fn_c_try_compile "$LINENO"; then :
  20931. have_usbhid_new=yes
  20932. fi
  20933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20934. if test x$have_usbhid_new = xyes; then
  20935. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20936. fi
  20937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20938. $as_echo "$have_usbhid_new" >&6; }
  20939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20940. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20941. have_machine_joystick=no
  20942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20943. /* end confdefs.h. */
  20944. #include <machine/joystick.h>
  20945. int
  20946. main ()
  20947. {
  20948. struct joystick t;
  20949. ;
  20950. return 0;
  20951. }
  20952. _ACEOF
  20953. if ac_fn_c_try_compile "$LINENO"; then :
  20954. have_machine_joystick=yes
  20955. fi
  20956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20957. if test x$have_machine_joystick = xyes; then
  20958. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20959. fi
  20960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20961. $as_echo "$have_machine_joystick" >&6; }
  20962. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20963. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20964. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20965. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20966. have_joystick=yes
  20967. fi
  20968. CFLAGS="$save_CFLAGS"
  20969. fi
  20970. ;;
  20971. esac
  20972. }
  20973. CheckHIDAPI()
  20974. {
  20975. # Check whether --enable-hidapi was given.
  20976. if test "${enable_hidapi+set}" = set; then :
  20977. enableval=$enable_hidapi;
  20978. else
  20979. enable_hidapi=yes
  20980. fi
  20981. # Check whether --enable-hidapi-libusb was given.
  20982. if test "${enable_hidapi_libusb+set}" = set; then :
  20983. enableval=$enable_hidapi_libusb;
  20984. else
  20985. enable_hidapi_libusb=maybe
  20986. fi
  20987. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20988. case "$host" in
  20989. # libusb does not support iOS
  20990. *-ios-* )
  20991. enable_hidapi_libusb=no
  20992. ;;
  20993. # On the other hand, *BSD specifically uses libusb only
  20994. *-*-*bsd* )
  20995. enable_hidapi_libusb=yes
  20996. require_hidapi_libusb=yes
  20997. ;;
  20998. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20999. *-*-cygwin* | *-*-mingw*)
  21000. enable_joystick_rawinput=yes
  21001. ;;
  21002. esac
  21003. hidapi_support=yes
  21004. if test x$enable_hidapi_libusb = xyes; then
  21005. pkg_failed=no
  21006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21007. $as_echo_n "checking for libusb-1.0... " >&6; }
  21008. if test -n "$LIBUSB_CFLAGS"; then
  21009. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21010. elif test -n "$PKG_CONFIG"; then
  21011. if test -n "$PKG_CONFIG" && \
  21012. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21013. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21014. ac_status=$?
  21015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21016. test $ac_status = 0; }; then
  21017. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21018. test "x$?" != "x0" && pkg_failed=yes
  21019. else
  21020. pkg_failed=yes
  21021. fi
  21022. else
  21023. pkg_failed=untried
  21024. fi
  21025. if test -n "$LIBUSB_LIBS"; then
  21026. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21027. elif test -n "$PKG_CONFIG"; then
  21028. if test -n "$PKG_CONFIG" && \
  21029. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21030. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21031. ac_status=$?
  21032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21033. test $ac_status = 0; }; then
  21034. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21035. test "x$?" != "x0" && pkg_failed=yes
  21036. else
  21037. pkg_failed=yes
  21038. fi
  21039. else
  21040. pkg_failed=untried
  21041. fi
  21042. if test $pkg_failed = yes; then
  21043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21044. $as_echo "no" >&6; }
  21045. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21046. _pkg_short_errors_supported=yes
  21047. else
  21048. _pkg_short_errors_supported=no
  21049. fi
  21050. if test $_pkg_short_errors_supported = yes; then
  21051. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21052. else
  21053. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21054. fi
  21055. # Put the nasty error message in config.log where it belongs
  21056. echo "$LIBUSB_PKG_ERRORS" >&5
  21057. have_libusb=no
  21058. elif test $pkg_failed = untried; then
  21059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21060. $as_echo "no" >&6; }
  21061. have_libusb=no
  21062. else
  21063. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21064. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21066. $as_echo "yes" >&6; }
  21067. have_libusb=yes
  21068. fi
  21069. save_CPPFLAGS="$CPPFLAGS"
  21070. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21071. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21072. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21073. have_libusb_h=yes
  21074. else
  21075. have_libusb_h=no
  21076. fi
  21077. CPPFLAGS="$save_CPPFLAGS"
  21078. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21079. hidapi_support=no
  21080. fi
  21081. fi
  21082. if test x$hidapi_support = xyes; then
  21083. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21084. if test x$enable_joystick_rawinput = xyes; then
  21085. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21086. fi
  21087. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21088. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21089. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  21090. if test x$have_libusb_h = xyes; then
  21091. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21092. if test x$require_hidapi_libusb = xyes; then
  21093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21094. else
  21095. if test x$have_loadso != xyes; then
  21096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21097. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21098. fi
  21099. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21100. libusb_lib=""
  21101. case "$host" in
  21102. *-*-darwin* )
  21103. libusb_lib="libusb-1.0.0.dylib"
  21104. ;;
  21105. *-*-cygwin* | *-*-mingw* )
  21106. libusb_lib="libusb-1.0.dll"
  21107. ;;
  21108. esac
  21109. if test x$libusb_lib = x; then
  21110. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21111. fi
  21112. cat >>confdefs.h <<_ACEOF
  21113. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21114. _ACEOF
  21115. fi
  21116. fi
  21117. fi
  21118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21119. $as_echo_n "checking for hidapi support... " >&6; }
  21120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21121. $as_echo "$hidapi_support" >&6; }
  21122. fi
  21123. }
  21124. CheckClockGettime()
  21125. {
  21126. # Check whether --enable-clock_gettime was given.
  21127. if test "${enable_clock_gettime+set}" = set; then :
  21128. enableval=$enable_clock_gettime;
  21129. else
  21130. enable_clock_gettime=yes
  21131. fi
  21132. if test x$enable_clock_gettime = xyes; then
  21133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21134. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21135. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21136. $as_echo_n "(cached) " >&6
  21137. else
  21138. ac_check_lib_save_LIBS=$LIBS
  21139. LIBS="-lrt $LIBS"
  21140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21141. /* end confdefs.h. */
  21142. /* Override any GCC internal prototype to avoid an error.
  21143. Use char because int might match the return type of a GCC
  21144. builtin and then its argument prototype would still apply. */
  21145. #ifdef __cplusplus
  21146. extern "C"
  21147. #endif
  21148. char clock_gettime ();
  21149. int
  21150. main ()
  21151. {
  21152. return clock_gettime ();
  21153. ;
  21154. return 0;
  21155. }
  21156. _ACEOF
  21157. if ac_fn_c_try_link "$LINENO"; then :
  21158. ac_cv_lib_rt_clock_gettime=yes
  21159. else
  21160. ac_cv_lib_rt_clock_gettime=no
  21161. fi
  21162. rm -f core conftest.err conftest.$ac_objext \
  21163. conftest$ac_exeext conftest.$ac_ext
  21164. LIBS=$ac_check_lib_save_LIBS
  21165. fi
  21166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21167. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21168. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21169. have_clock_gettime=yes
  21170. fi
  21171. if test x$have_clock_gettime = xyes; then
  21172. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21173. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21174. else
  21175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21176. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21177. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21178. $as_echo_n "(cached) " >&6
  21179. else
  21180. ac_check_lib_save_LIBS=$LIBS
  21181. LIBS="-lc $LIBS"
  21182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21183. /* end confdefs.h. */
  21184. /* Override any GCC internal prototype to avoid an error.
  21185. Use char because int might match the return type of a GCC
  21186. builtin and then its argument prototype would still apply. */
  21187. #ifdef __cplusplus
  21188. extern "C"
  21189. #endif
  21190. char clock_gettime ();
  21191. int
  21192. main ()
  21193. {
  21194. return clock_gettime ();
  21195. ;
  21196. return 0;
  21197. }
  21198. _ACEOF
  21199. if ac_fn_c_try_link "$LINENO"; then :
  21200. ac_cv_lib_c_clock_gettime=yes
  21201. else
  21202. ac_cv_lib_c_clock_gettime=no
  21203. fi
  21204. rm -f core conftest.err conftest.$ac_objext \
  21205. conftest$ac_exeext conftest.$ac_ext
  21206. LIBS=$ac_check_lib_save_LIBS
  21207. fi
  21208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21209. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21210. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21211. have_clock_gettime=yes
  21212. fi
  21213. if test x$have_clock_gettime = xyes; then
  21214. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21215. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21216. fi
  21217. fi
  21218. fi
  21219. }
  21220. CheckLinuxVersion()
  21221. {
  21222. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21223. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21224. have_linux_version_h=yes
  21225. fi
  21226. if test x$have_linux_version_h = xyes; then
  21227. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21228. fi
  21229. }
  21230. CheckRPATH()
  21231. {
  21232. # Check whether --enable-rpath was given.
  21233. if test "${enable_rpath+set}" = set; then :
  21234. enableval=$enable_rpath;
  21235. else
  21236. enable_rpath=yes
  21237. fi
  21238. }
  21239. CheckEventSignals()
  21240. {
  21241. # Check whether --enable-backgrounding-signal was given.
  21242. if test "${enable_backgrounding_signal+set}" = set; then :
  21243. enableval=$enable_backgrounding_signal;
  21244. else
  21245. enable_backgrounding_signal=no
  21246. fi
  21247. if test x$enable_backgrounding_signal != xno; then
  21248. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21249. fi
  21250. # Check whether --enable-foregrounding-signal was given.
  21251. if test "${enable_foregrounding_signal+set}" = set; then :
  21252. enableval=$enable_foregrounding_signal;
  21253. else
  21254. enable_foregrounding_signal=no
  21255. fi
  21256. if test x$enable_foregrounding_signal != xno; then
  21257. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21258. fi
  21259. }
  21260. CheckVirtualJoystick()
  21261. {
  21262. # Check whether --enable-joystick-virtual was given.
  21263. if test "${enable_joystick_virtual+set}" = set; then :
  21264. enableval=$enable_joystick_virtual;
  21265. else
  21266. enable_joystick_virtual=yes
  21267. fi
  21268. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21269. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21270. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21271. have_joystick_virtual=yes
  21272. fi
  21273. }
  21274. CheckWarnAll
  21275. CheckNoStrictAliasing
  21276. CheckEventSignals
  21277. have_locale=no
  21278. case "$host" in
  21279. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21280. case "$host" in
  21281. *-*-android*)
  21282. # Android
  21283. ARCH=android
  21284. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21285. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21286. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21287. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21288. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21289. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21290. if test x$enable_video = xyes; then
  21291. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21292. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21293. SUMMARY_video="${SUMMARY_video} android"
  21294. fi
  21295. ;;
  21296. *-*-linux*) ARCH=linux ;;
  21297. *-*-uclinux*) ARCH=linux ;;
  21298. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21299. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21300. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21301. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21302. *-*-bsdi*) ARCH=bsdi ;;
  21303. *-*-freebsd*) ARCH=freebsd ;;
  21304. *-*-dragonfly*) ARCH=freebsd ;;
  21305. *-*-netbsd*) ARCH=netbsd ;;
  21306. *-*-openbsd*) ARCH=openbsd ;;
  21307. *-*-sysv5*) ARCH=sysv5 ;;
  21308. *-*-solaris*) ARCH=solaris ;;
  21309. *-*-hpux*) ARCH=hpux ;;
  21310. *-*-aix*) ARCH=aix ;;
  21311. *-*-minix*) ARCH=minix ;;
  21312. *-*-nto*) ARCH=nto
  21313. CheckQNXVideo
  21314. ;;
  21315. esac
  21316. CheckVisibilityHidden
  21317. CheckDeclarationAfterStatement
  21318. CheckDummyVideo
  21319. CheckDiskAudio
  21320. CheckDummyAudio
  21321. CheckDLOPEN
  21322. CheckARM
  21323. CheckNEON
  21324. CheckOSS
  21325. CheckALSA
  21326. CheckPipewire
  21327. CheckPulseAudio
  21328. CheckJACK
  21329. CheckARTSC
  21330. CheckESD
  21331. CheckNAS
  21332. CheckSNDIO
  21333. CheckFusionSound
  21334. CheckLibSampleRate
  21335. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21336. CheckRPI
  21337. CheckX11
  21338. CheckDirectFB
  21339. # Need to check for EGL first because KMSDRM depends on it.
  21340. CheckEGLKMSDRM
  21341. CheckKMSDRM
  21342. CheckOpenGLX11
  21343. CheckOpenGLESX11
  21344. CheckVulkan
  21345. CheckWayland
  21346. CheckInputEvents
  21347. CheckLibUDev
  21348. CheckDBus
  21349. CheckIME
  21350. CheckInotify
  21351. CheckIBus
  21352. CheckFcitx
  21353. case $ARCH in
  21354. linux)
  21355. CheckInputKD
  21356. ;;
  21357. freebsd)
  21358. CheckInputKBIO
  21359. ;;
  21360. openbsd|netbsd)
  21361. CheckInputWSCONS
  21362. ;;
  21363. esac
  21364. CheckUSBHID
  21365. CheckHIDAPI
  21366. CheckPTHREAD
  21367. CheckClockGettime
  21368. CheckLinuxVersion
  21369. CheckRPATH
  21370. CheckVivanteVideo
  21371. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21372. have_misc=yes
  21373. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21374. have_locale=yes
  21375. # Set up files for the audio library
  21376. if test x$enable_audio = xyes; then
  21377. case $ARCH in
  21378. sysv5|solaris|hpux)
  21379. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21380. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21381. SUMMARY_audio="${SUMMARY_audio} sun"
  21382. have_audio=yes
  21383. ;;
  21384. netbsd) # Don't use this on OpenBSD, it's busted.
  21385. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21386. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21387. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21388. have_audio=yes
  21389. ;;
  21390. aix)
  21391. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21392. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21393. SUMMARY_audio="${SUMMARY_audio} paudio"
  21394. have_audio=yes
  21395. ;;
  21396. android)
  21397. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21398. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21399. SUMMARY_audio="${SUMMARY_audio} android"
  21400. have_audio=yes
  21401. ;;
  21402. nto)
  21403. CheckQNXAudio
  21404. ;;
  21405. esac
  21406. fi
  21407. # Set up files for the joystick library
  21408. if test x$enable_joystick = xyes; then
  21409. case $ARCH in
  21410. linux)
  21411. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21412. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21413. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21414. have_joystick=yes
  21415. ;;
  21416. freebsd)
  21417. if test x$use_input_events = xyes; then
  21418. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21419. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21420. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21421. have_joystick=yes
  21422. fi
  21423. ;;
  21424. android)
  21425. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21426. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21427. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21428. have_joystick=yes
  21429. ;;
  21430. esac
  21431. fi
  21432. # Set up files for the haptic library
  21433. if test x$enable_haptic = xyes; then
  21434. case $ARCH in
  21435. linux|freebsd)
  21436. if test x$use_input_events = xyes; then
  21437. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21438. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21439. have_haptic=yes
  21440. fi
  21441. ;;
  21442. android)
  21443. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21444. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21445. have_haptic=yes
  21446. ;;
  21447. esac
  21448. fi
  21449. # Set up files for the sensor library
  21450. if test x$enable_sensor = xyes; then
  21451. case $ARCH in
  21452. android)
  21453. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21454. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21455. have_sensor=yes
  21456. ;;
  21457. esac
  21458. fi
  21459. # Set up files for the power library
  21460. if test x$enable_power = xyes; then
  21461. case $ARCH in
  21462. linux)
  21463. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21464. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21465. have_power=yes
  21466. ;;
  21467. android)
  21468. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21469. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21470. have_power=yes
  21471. ;;
  21472. esac
  21473. fi
  21474. # Set up files for the filesystem library
  21475. if test x$enable_filesystem = xyes; then
  21476. case $ARCH in
  21477. android)
  21478. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21479. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21480. have_filesystem=yes
  21481. ;;
  21482. *)
  21483. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21484. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21485. have_filesystem=yes
  21486. ;;
  21487. esac
  21488. fi
  21489. # Set up files for the timer library
  21490. if test x$enable_timers = xyes; then
  21491. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21492. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21493. have_timers=yes
  21494. fi
  21495. # Set up files for udev hotplugging support
  21496. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21497. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21498. fi
  21499. # Set up files for evdev input
  21500. if test x$use_input_events = xyes; then
  21501. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21502. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21503. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21504. fi
  21505. # Set up files for wscons input
  21506. if test x$use_input_wscons = xyes; then
  21507. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21508. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21509. fi
  21510. # Set up other core UNIX files
  21511. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21512. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21513. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21514. ;;
  21515. *-*-cygwin* | *-*-mingw*)
  21516. ARCH=win32
  21517. if test "$build" != "$host"; then # cross-compiling
  21518. # Default cross-compile location
  21519. ac_default_prefix=/usr/local/cross-tools/$host
  21520. else
  21521. # Look for the location of the tools and install there
  21522. if test "$BUILD_PREFIX" != ""; then
  21523. ac_default_prefix=$BUILD_PREFIX
  21524. fi
  21525. fi
  21526. CheckDeclarationAfterStatement
  21527. CheckDummyVideo
  21528. CheckDiskAudio
  21529. CheckDummyAudio
  21530. CheckWINDOWS
  21531. CheckWINDOWSGL
  21532. CheckWINDOWSGLES
  21533. CheckVulkan
  21534. CheckDIRECTX
  21535. CheckHIDAPI
  21536. # Set up the core platform files
  21537. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21538. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21539. have_misc=yes
  21540. # Use the Windows locale APIs.
  21541. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21542. have_locale=yes
  21543. # Set up files for the video library
  21544. if test x$enable_video = xyes; then
  21545. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21546. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21547. have_video=yes
  21548. # Check whether --enable-render-d3d was given.
  21549. if test "${enable_render_d3d+set}" = set; then :
  21550. enableval=$enable_render_d3d;
  21551. else
  21552. enable_render_d3d=yes
  21553. fi
  21554. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21555. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21556. SUMMARY_video="${SUMMARY_video} d3d9"
  21557. fi
  21558. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21559. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21560. SUMMARY_video="${SUMMARY_video} d3d11"
  21561. fi
  21562. fi
  21563. # Set up files for the audio library
  21564. if test x$enable_audio = xyes; then
  21565. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21566. SUMMARY_audio="${SUMMARY_audio} winmm"
  21567. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21568. if test x$have_dsound = xyes; then
  21569. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21570. SUMMARY_audio="${SUMMARY_audio} directsound"
  21571. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21572. fi
  21573. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21574. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21575. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21576. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21577. fi
  21578. have_audio=yes
  21579. fi
  21580. # Set up files for the joystick library
  21581. if test x$enable_joystick = xyes; then
  21582. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21583. if test x$have_xinput = xyes; then
  21584. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21585. fi
  21586. if test x$have_dinput = xyes; then
  21587. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21589. fi
  21590. else
  21591. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21592. fi
  21593. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21594. have_joystick=yes
  21595. fi
  21596. if test x$enable_haptic = xyes; then
  21597. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21598. if test x$have_xinput = xyes; then
  21599. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21600. fi
  21601. if test x$have_dinput = xyes; then
  21602. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21603. fi
  21604. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21605. have_haptic=yes
  21606. fi
  21607. fi
  21608. # Set up files for the sensor library
  21609. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21610. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21611. have_winsensors=yes
  21612. else
  21613. have_winsensors=no
  21614. fi
  21615. if test x$have_winsensors = xyes; then
  21616. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21617. fi
  21618. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21619. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21620. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21621. have_sensor=yes
  21622. fi
  21623. # Set up files for the power library
  21624. if test x$enable_power = xyes; then
  21625. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21626. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21627. have_power=yes
  21628. fi
  21629. # Set up files for the filesystem library
  21630. if test x$enable_filesystem = xyes; then
  21631. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21632. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21633. have_filesystem=yes
  21634. fi
  21635. # Set up files for the thread library
  21636. if test x$enable_threads = xyes; then
  21637. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21638. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21639. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21640. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21641. have_threads=yes
  21642. fi
  21643. # Set up files for the timer library
  21644. if test x$enable_timers = xyes; then
  21645. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21646. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21647. have_timers=yes
  21648. fi
  21649. # Set up files for the shared object loading library
  21650. if test x$enable_loadso = xyes; then
  21651. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21652. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21653. have_loadso=yes
  21654. fi
  21655. # Set up the system libraries we need
  21656. if test -f /lib/w32api/libuuid.a; then
  21657. LIBUUID=/lib/w32api/libuuid.a
  21658. else
  21659. LIBUUID=-luuid
  21660. fi
  21661. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21662. # The Windows platform requires special setup
  21663. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21664. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21665. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21666. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21667. # Check to see if this is a mingw or cygwin build
  21668. have_mingw32=
  21669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21670. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21671. if ${ac_cv_lib_mingw32_main+:} false; then :
  21672. $as_echo_n "(cached) " >&6
  21673. else
  21674. ac_check_lib_save_LIBS=$LIBS
  21675. LIBS="-lmingw32 $LIBS"
  21676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21677. /* end confdefs.h. */
  21678. int
  21679. main ()
  21680. {
  21681. return main ();
  21682. ;
  21683. return 0;
  21684. }
  21685. _ACEOF
  21686. if ac_fn_c_try_link "$LINENO"; then :
  21687. ac_cv_lib_mingw32_main=yes
  21688. else
  21689. ac_cv_lib_mingw32_main=no
  21690. fi
  21691. rm -f core conftest.err conftest.$ac_objext \
  21692. conftest$ac_exeext conftest.$ac_ext
  21693. LIBS=$ac_check_lib_save_LIBS
  21694. fi
  21695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21696. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21697. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21698. have_mingw32=yes
  21699. fi
  21700. if test x$have_mingw32 = xyes; then
  21701. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21702. else
  21703. SDL_LIBS="-lcygwin $SDL_LIBS"
  21704. fi
  21705. ;;
  21706. *-*-beos*)
  21707. as_fn_error $? "
  21708. *** BeOS support has been removed as of SDL 2.0.2.
  21709. " "$LINENO" 5
  21710. ;;
  21711. *-*-haiku*)
  21712. ARCH=haiku
  21713. ac_default_prefix=/boot/system
  21714. CheckDummyVideo
  21715. CheckDiskAudio
  21716. CheckDummyAudio
  21717. CheckDLOPEN
  21718. CheckHaikuVideo
  21719. CheckHaikuGL
  21720. CheckPTHREAD
  21721. # Set up files for the audio library
  21722. if test x$enable_audio = xyes; then
  21723. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21724. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21725. SUMMARY_audio="${SUMMARY_audio} haiku"
  21726. have_audio=yes
  21727. fi
  21728. # Set up files for the joystick library
  21729. if test x$enable_joystick = xyes; then
  21730. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21731. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21732. have_joystick=yes
  21733. fi
  21734. # Set up files for the timer library
  21735. if test x$enable_timers = xyes; then
  21736. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21737. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21738. have_timers=yes
  21739. fi
  21740. # Set up files for the system power library
  21741. if test x$enable_power = xyes; then
  21742. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21743. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21744. have_power=yes
  21745. fi
  21746. # Set up files for the system filesystem library
  21747. if test x$enable_filesystem = xyes; then
  21748. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21749. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21750. have_filesystem=yes
  21751. fi
  21752. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21753. have_misc=yes
  21754. # Set up files for the locale library
  21755. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21756. have_locale=yes
  21757. # The Haiku platform requires special setup.
  21758. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21759. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21760. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21761. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21762. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21764. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21765. if eval \${$as_ac_File+:} false; then :
  21766. $as_echo_n "(cached) " >&6
  21767. else
  21768. test "$cross_compiling" = yes &&
  21769. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21770. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21771. eval "$as_ac_File=yes"
  21772. else
  21773. eval "$as_ac_File=no"
  21774. fi
  21775. fi
  21776. eval ac_res=\$$as_ac_File
  21777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21778. $as_echo "$ac_res" >&6; }
  21779. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21780. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21781. else
  21782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21783. fi
  21784. ;;
  21785. *-ios-*)
  21786. ARCH=ios
  21787. CheckVisibilityHidden
  21788. CheckDeclarationAfterStatement
  21789. CheckDummyVideo
  21790. CheckDiskAudio
  21791. CheckDummyAudio
  21792. CheckDLOPEN
  21793. CheckMETAL
  21794. CheckVulkan
  21795. CheckPTHREAD
  21796. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21797. have_misc=yes
  21798. # Set up files for the locale library
  21799. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21800. have_locale=yes
  21801. # Set up files for the audio library
  21802. if test x$enable_audio = xyes; then
  21803. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21804. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21805. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21806. have_audio=yes
  21807. fi
  21808. # Set up files for the joystick library
  21809. if test x$enable_joystick = xyes; then
  21810. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21811. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21812. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21813. have_joystick=yes
  21814. else
  21815. # Need this code for accelerometer as joystick support
  21816. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21817. fi
  21818. # Set up files for the haptic library
  21819. #if test x$enable_haptic = xyes; then
  21820. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21821. # have_haptic=yes
  21822. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21823. #fi
  21824. # Set up files for the sensor library
  21825. if test x$enable_sensor = xyes; then
  21826. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21827. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21828. have_sensor=yes
  21829. fi
  21830. # Set up files for the power library
  21831. if test x$enable_power = xyes; then
  21832. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21833. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21834. have_power=yes
  21835. fi
  21836. # Set up files for the filesystem library
  21837. if test x$enable_filesystem = xyes; then
  21838. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21839. have_filesystem=yes
  21840. fi
  21841. # Set up additional files for the file library
  21842. if test x$enable_file = xyes; then
  21843. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21844. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21845. fi
  21846. # Set up files for the timer library
  21847. if test x$enable_timers = xyes; then
  21848. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21849. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21850. have_timers=yes
  21851. fi
  21852. # Set up other core UNIX files
  21853. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21854. # The iOS platform requires special setup.
  21855. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21856. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21857. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21858. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21859. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21860. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21861. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21863. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21865. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21866. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21867. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21868. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21872. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21874. fi
  21875. ;;
  21876. *-*-darwin* )
  21877. # This could be either full "Mac OS X", or plain "Darwin" which is
  21878. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21879. # Next line is broken, and a few files below require Mac OS X (full)
  21880. ARCH=macosx
  21881. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21882. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21883. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21884. CheckVisibilityHidden
  21885. CheckDeclarationAfterStatement
  21886. CheckDummyVideo
  21887. CheckDiskAudio
  21888. CheckDummyAudio
  21889. CheckDLOPEN
  21890. CheckCOCOA
  21891. CheckMETAL
  21892. CheckX11
  21893. CheckMacGL
  21894. CheckMacGLES
  21895. CheckOpenGLX11
  21896. CheckVulkan
  21897. CheckPTHREAD
  21898. CheckHIDAPI
  21899. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21900. have_misc=yes
  21901. # Set up files for the locale library
  21902. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21903. have_locale=yes
  21904. # Set up files for the audio library
  21905. if test x$enable_audio = xyes; then
  21906. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21907. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21908. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21909. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21910. have_audio=yes
  21911. fi
  21912. # Set up files for the joystick library
  21913. if test x$enable_joystick = xyes; then
  21914. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21915. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21916. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21917. CheckJoystickMFI
  21918. have_joystick=yes
  21919. fi
  21920. # Set up files for the haptic library
  21921. if test x$enable_haptic = xyes; then
  21922. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21923. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21924. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21925. have_haptic=yes
  21926. fi
  21927. # Set up files for the power library
  21928. if test x$enable_power = xyes; then
  21929. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21930. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21931. have_power=yes
  21932. fi
  21933. # Set up files for the filesystem library
  21934. if test x$enable_filesystem = xyes; then
  21935. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21936. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21937. have_filesystem=yes
  21938. fi
  21939. # Set up files for the timer library
  21940. if test x$enable_timers = xyes; then
  21941. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21942. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21943. have_timers=yes
  21944. fi
  21945. # Set up additional files for the file library
  21946. if test x$enable_file = xyes; then
  21947. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21948. fi
  21949. # Set up other core UNIX files
  21950. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21951. # The Mac OS X platform requires special setup.
  21952. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21953. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21954. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21955. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21956. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21957. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21959. fi
  21960. ;;
  21961. *-nacl|*-pnacl)
  21962. ARCH=nacl
  21963. CheckNativeClient
  21964. CheckDummyAudio
  21965. CheckDummyVideo
  21966. CheckInputEvents
  21967. CheckPTHREAD
  21968. # Set up files for the timer library
  21969. if test x$enable_timers = xyes; then
  21970. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21971. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21972. have_timers=yes
  21973. fi
  21974. if test x$enable_filesystem = xyes; then
  21975. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21976. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21977. have_filesystem=yes
  21978. fi
  21979. ;;
  21980. *-*-emscripten* )
  21981. if test x$enable_video = xyes; then
  21982. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21983. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21984. have_video=yes
  21985. SUMMARY_video="${SUMMARY_video} emscripten"
  21986. fi
  21987. if test x$enable_audio = xyes; then
  21988. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21989. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21990. have_audio=yes
  21991. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21992. fi
  21993. CheckVisibilityHidden
  21994. CheckDeclarationAfterStatement
  21995. CheckDummyVideo
  21996. CheckDiskAudio
  21997. CheckDummyAudio
  21998. CheckDLOPEN
  21999. CheckClockGettime
  22000. CheckEmscriptenGLES
  22001. # Set up files for the power library
  22002. if test x$enable_power = xyes; then
  22003. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22004. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22005. have_power=yes
  22006. fi
  22007. # Set up files for the power library
  22008. if test x$enable_joystick = xyes; then
  22009. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22010. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22011. have_joystick=yes
  22012. fi
  22013. # Set up files for the filesystem library
  22014. if test x$enable_filesystem = xyes; then
  22015. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22016. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22017. have_filesystem=yes
  22018. fi
  22019. # Set up files for the timer library
  22020. if test x$enable_timers = xyes; then
  22021. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22022. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22023. have_timers=yes
  22024. fi
  22025. # Set up files for the locale library
  22026. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22027. have_locale=yes
  22028. ;;
  22029. *-*-riscos*)
  22030. ARCH=riscos
  22031. CheckVisibilityHidden
  22032. CheckDeclarationAfterStatement
  22033. CheckDummyVideo
  22034. CheckDiskAudio
  22035. CheckDummyAudio
  22036. CheckDLOPEN
  22037. CheckOSS
  22038. CheckPTHREAD
  22039. CheckClockGettime
  22040. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22041. have_misc=yes
  22042. # Set up files for the timer library
  22043. if test x$enable_timers = xyes; then
  22044. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22045. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22046. have_timers=yes
  22047. fi
  22048. ;;
  22049. *)
  22050. as_fn_error $? "
  22051. *** Unsupported host: Please add to configure.ac
  22052. " "$LINENO" 5
  22053. ;;
  22054. esac
  22055. CheckVirtualJoystick
  22056. # Check whether to install sdl2-config
  22057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22058. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22059. # Check whether --enable-sdl2-config was given.
  22060. if test "${enable_sdl2_config+set}" = set; then :
  22061. enableval=$enable_sdl2_config; case "${enableval}" in
  22062. yes) enable_sdl2_config="TRUE" ;;
  22063. no) enable_sdl2_config="FALSE" ;;
  22064. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22065. esac
  22066. else
  22067. enable_sdl2_config="TRUE"
  22068. fi
  22069. if test "$enable_sdl2_config" = "TRUE"; then
  22070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22071. $as_echo "yes" >&6; }
  22072. else
  22073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22074. $as_echo "no" >&6; }
  22075. fi
  22076. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22077. # Verify that we have all the platform specific files we need
  22078. if test x$have_misc != xyes; then
  22079. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22080. fi
  22081. if test x$have_locale != xyes; then
  22082. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22083. fi
  22084. if test x$have_joystick != xyes; then
  22085. if test x$enable_joystick = xyes; then
  22086. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22087. fi
  22088. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22089. fi
  22090. if test x$have_haptic != xyes; then
  22091. if test x$enable_haptic = xyes; then
  22092. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22093. fi
  22094. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22095. fi
  22096. if test x$have_sensor != xyes; then
  22097. if test x$enable_sensor = xyes; then
  22098. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22099. fi
  22100. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22101. fi
  22102. if test x$have_threads != xyes; then
  22103. if test x$enable_threads = xyes; then
  22104. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22105. fi
  22106. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22107. fi
  22108. if test x$have_timers != xyes; then
  22109. if test x$enable_timers = xyes; then
  22110. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22111. fi
  22112. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22113. fi
  22114. if test x$have_filesystem != xyes; then
  22115. if test x$enable_filesystem = xyes; then
  22116. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22117. fi
  22118. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22119. fi
  22120. if test x$have_loadso != xyes; then
  22121. if test x$enable_loadso = xyes; then
  22122. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22123. fi
  22124. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22125. fi
  22126. if test x$SDLMAIN_SOURCES = x; then
  22127. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22128. fi
  22129. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22130. if test x$video_wayland = xyes; then
  22131. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22132. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22133. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22134. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22135. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22136. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22137. echo ;\
  22138. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22139. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22140. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22141. echo ;\
  22142. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22143. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22144. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22145. echo ;\
  22146. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22147. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22148. done ;\
  22149. echo ;\
  22150. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22151. fi
  22152. OBJECTS=`echo $SOURCES`
  22153. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22154. for EXT in asm cc m c S; do
  22155. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22156. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22157. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22158. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22159. done
  22160. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22161. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22162. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22163. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22164. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22165. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22166. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22167. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22168. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22169. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22170. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22171. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22172. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22173. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22174. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22175. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22176. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22177. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22178. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22179. # Set runtime shared library paths as needed
  22180. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22181. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22182. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22184. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22185. have_enable_new_dtags=no
  22186. save_LDFLAGS="$LDFLAGS"
  22187. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22189. /* end confdefs.h. */
  22190. int
  22191. main ()
  22192. {
  22193. ;
  22194. return 0;
  22195. }
  22196. _ACEOF
  22197. if ac_fn_c_try_link "$LINENO"; then :
  22198. have_enable_new_dtags=yes
  22199. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22200. fi
  22201. rm -f core conftest.err conftest.$ac_objext \
  22202. conftest$ac_exeext conftest.$ac_ext
  22203. LDFLAGS="$save_LDFLAGS"
  22204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22205. $as_echo "$have_enable_new_dtags" >&6; }
  22206. fi
  22207. if test $ARCH = solaris; then
  22208. SDL_RLD_FLAGS="-R\${libdir}"
  22209. fi
  22210. else
  22211. SDL_RLD_FLAGS=""
  22212. fi
  22213. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22214. if test x$enable_shared = xyes; then
  22215. PKG_CONFIG_LIBS_PRIV="
  22216. Libs.private:"
  22217. ENABLE_SHARED_TRUE=
  22218. ENABLE_SHARED_FALSE="#"
  22219. else
  22220. PKG_CONFIG_LIBS_PRIV=
  22221. ENABLE_SHARED_TRUE="#"
  22222. ENABLE_SHARED_FALSE=
  22223. fi
  22224. if test x$enable_static = xyes; then
  22225. ENABLE_STATIC_TRUE=
  22226. ENABLE_STATIC_FALSE="#"
  22227. else
  22228. ENABLE_STATIC_TRUE="#"
  22229. ENABLE_STATIC_FALSE=
  22230. fi
  22231. cat >Makefile.rules <<__EOF__
  22232. # Build rules for objects
  22233. -include \$(OBJECTS:.lo=.d)
  22234. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22235. $srcdir/src/SDL.c: update-revision
  22236. $DEPENDS
  22237. $VERSION_DEPENDS
  22238. $SDLMAIN_DEPENDS
  22239. $SDLTEST_DEPENDS
  22240. $WAYLAND_PROTOCOLS_DEPENDS
  22241. __EOF__
  22242. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22243. ac_config_commands="$ac_config_commands sdl2_config"
  22244. SUMMARY="SDL2 Configure Summary:\n"
  22245. if test x$enable_shared = xyes; then
  22246. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22247. fi
  22248. if test x$enable_static = xyes; then
  22249. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22250. fi
  22251. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22252. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22253. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22254. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22255. if test x$have_x = xyes; then
  22256. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22257. fi
  22258. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22259. if test x$have_joystick_virtual = xyes; then
  22260. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22261. else
  22262. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22263. fi
  22264. if test x$have_samplerate_h_hdr = xyes; then
  22265. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22266. else
  22267. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22268. fi
  22269. if test x$have_libudev_h_hdr = xyes; then
  22270. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22271. else
  22272. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22273. fi
  22274. if test x$have_dbus_dbus_h_hdr = xyes; then
  22275. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22276. else
  22277. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22278. fi
  22279. if test x$enable_ime = xyes; then
  22280. SUMMARY="${SUMMARY}Using ime : YES\n"
  22281. else
  22282. SUMMARY="${SUMMARY}Using ime : NO\n"
  22283. fi
  22284. if test x$have_ibus_ibus_h_hdr = xyes; then
  22285. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22286. else
  22287. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22288. fi
  22289. if test x$have_fcitx = xyes; then
  22290. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22291. else
  22292. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22293. fi
  22294. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22295. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22296. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22297. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22298. SUMMARY="${SUMMARY}configure script with:\n"
  22299. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22300. fi
  22301. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22302. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22303. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22304. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22305. SUMMARY="${SUMMARY}configure script with:\n"
  22306. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22307. fi
  22308. ac_config_commands="$ac_config_commands summary"
  22309. cat >confcache <<\_ACEOF
  22310. # This file is a shell script that caches the results of configure
  22311. # tests run on this system so they can be shared between configure
  22312. # scripts and configure runs, see configure's option --config-cache.
  22313. # It is not useful on other systems. If it contains results you don't
  22314. # want to keep, you may remove or edit it.
  22315. #
  22316. # config.status only pays attention to the cache file if you give it
  22317. # the --recheck option to rerun configure.
  22318. #
  22319. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22320. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22321. # following values.
  22322. _ACEOF
  22323. # The following way of writing the cache mishandles newlines in values,
  22324. # but we know of no workaround that is simple, portable, and efficient.
  22325. # So, we kill variables containing newlines.
  22326. # Ultrix sh set writes to stderr and can't be redirected directly,
  22327. # and sets the high bit in the cache file unless we assign to the vars.
  22328. (
  22329. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22330. eval ac_val=\$$ac_var
  22331. case $ac_val in #(
  22332. *${as_nl}*)
  22333. case $ac_var in #(
  22334. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22335. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22336. esac
  22337. case $ac_var in #(
  22338. _ | IFS | as_nl) ;; #(
  22339. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22340. *) { eval $ac_var=; unset $ac_var;} ;;
  22341. esac ;;
  22342. esac
  22343. done
  22344. (set) 2>&1 |
  22345. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22346. *${as_nl}ac_space=\ *)
  22347. # `set' does not quote correctly, so add quotes: double-quote
  22348. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22349. sed -n \
  22350. "s/'/'\\\\''/g;
  22351. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22352. ;; #(
  22353. *)
  22354. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22355. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22356. ;;
  22357. esac |
  22358. sort
  22359. ) |
  22360. sed '
  22361. /^ac_cv_env_/b end
  22362. t clear
  22363. :clear
  22364. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22365. t end
  22366. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22367. :end' >>confcache
  22368. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22369. if test -w "$cache_file"; then
  22370. if test "x$cache_file" != "x/dev/null"; then
  22371. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22372. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22373. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22374. cat confcache >"$cache_file"
  22375. else
  22376. case $cache_file in #(
  22377. */* | ?:*)
  22378. mv -f confcache "$cache_file"$$ &&
  22379. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22380. *)
  22381. mv -f confcache "$cache_file" ;;
  22382. esac
  22383. fi
  22384. fi
  22385. else
  22386. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22387. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22388. fi
  22389. fi
  22390. rm -f confcache
  22391. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22392. # Let make expand exec_prefix.
  22393. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22394. DEFS=-DHAVE_CONFIG_H
  22395. ac_libobjs=
  22396. ac_ltlibobjs=
  22397. U=
  22398. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22399. # 1. Remove the extension, and $U if already installed.
  22400. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22401. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22402. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22403. # will be set to the directory where LIBOBJS objects are built.
  22404. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22405. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22406. done
  22407. LIBOBJS=$ac_libobjs
  22408. LTLIBOBJS=$ac_ltlibobjs
  22409. : "${CONFIG_STATUS=./config.status}"
  22410. ac_write_fail=0
  22411. ac_clean_files_save=$ac_clean_files
  22412. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22413. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22414. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22415. as_write_fail=0
  22416. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22417. #! $SHELL
  22418. # Generated by $as_me.
  22419. # Run this file to recreate the current configuration.
  22420. # Compiler output produced by configure, useful for debugging
  22421. # configure, is in config.log if it exists.
  22422. debug=false
  22423. ac_cs_recheck=false
  22424. ac_cs_silent=false
  22425. SHELL=\${CONFIG_SHELL-$SHELL}
  22426. export SHELL
  22427. _ASEOF
  22428. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22429. ## -------------------- ##
  22430. ## M4sh Initialization. ##
  22431. ## -------------------- ##
  22432. # Be more Bourne compatible
  22433. DUALCASE=1; export DUALCASE # for MKS sh
  22434. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22435. emulate sh
  22436. NULLCMD=:
  22437. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22438. # is contrary to our usage. Disable this feature.
  22439. alias -g '${1+"$@"}'='"$@"'
  22440. setopt NO_GLOB_SUBST
  22441. else
  22442. case `(set -o) 2>/dev/null` in #(
  22443. *posix*) :
  22444. set -o posix ;; #(
  22445. *) :
  22446. ;;
  22447. esac
  22448. fi
  22449. as_nl='
  22450. '
  22451. export as_nl
  22452. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22453. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22454. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22455. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22456. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22457. # but without wasting forks for bash or zsh.
  22458. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22459. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22460. as_echo='print -r --'
  22461. as_echo_n='print -rn --'
  22462. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22463. as_echo='printf %s\n'
  22464. as_echo_n='printf %s'
  22465. else
  22466. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22467. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22468. as_echo_n='/usr/ucb/echo -n'
  22469. else
  22470. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22471. as_echo_n_body='eval
  22472. arg=$1;
  22473. case $arg in #(
  22474. *"$as_nl"*)
  22475. expr "X$arg" : "X\\(.*\\)$as_nl";
  22476. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22477. esac;
  22478. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22479. '
  22480. export as_echo_n_body
  22481. as_echo_n='sh -c $as_echo_n_body as_echo'
  22482. fi
  22483. export as_echo_body
  22484. as_echo='sh -c $as_echo_body as_echo'
  22485. fi
  22486. # The user is always right.
  22487. if test "${PATH_SEPARATOR+set}" != set; then
  22488. PATH_SEPARATOR=:
  22489. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22490. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22491. PATH_SEPARATOR=';'
  22492. }
  22493. fi
  22494. # IFS
  22495. # We need space, tab and new line, in precisely that order. Quoting is
  22496. # there to prevent editors from complaining about space-tab.
  22497. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22498. # splitting by setting IFS to empty value.)
  22499. IFS=" "" $as_nl"
  22500. # Find who we are. Look in the path if we contain no directory separator.
  22501. as_myself=
  22502. case $0 in #((
  22503. *[\\/]* ) as_myself=$0 ;;
  22504. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22505. for as_dir in $PATH
  22506. do
  22507. IFS=$as_save_IFS
  22508. test -z "$as_dir" && as_dir=.
  22509. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22510. done
  22511. IFS=$as_save_IFS
  22512. ;;
  22513. esac
  22514. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22515. # in which case we are not to be found in the path.
  22516. if test "x$as_myself" = x; then
  22517. as_myself=$0
  22518. fi
  22519. if test ! -f "$as_myself"; then
  22520. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22521. exit 1
  22522. fi
  22523. # Unset variables that we do not need and which cause bugs (e.g. in
  22524. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22525. # suppresses any "Segmentation fault" message there. '((' could
  22526. # trigger a bug in pdksh 5.2.14.
  22527. for as_var in BASH_ENV ENV MAIL MAILPATH
  22528. do eval test x\${$as_var+set} = xset \
  22529. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22530. done
  22531. PS1='$ '
  22532. PS2='> '
  22533. PS4='+ '
  22534. # NLS nuisances.
  22535. LC_ALL=C
  22536. export LC_ALL
  22537. LANGUAGE=C
  22538. export LANGUAGE
  22539. # CDPATH.
  22540. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22541. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22542. # ----------------------------------------
  22543. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22544. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22545. # script with STATUS, using 1 if that was 0.
  22546. as_fn_error ()
  22547. {
  22548. as_status=$1; test $as_status -eq 0 && as_status=1
  22549. if test "$4"; then
  22550. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22551. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22552. fi
  22553. $as_echo "$as_me: error: $2" >&2
  22554. as_fn_exit $as_status
  22555. } # as_fn_error
  22556. # as_fn_set_status STATUS
  22557. # -----------------------
  22558. # Set $? to STATUS, without forking.
  22559. as_fn_set_status ()
  22560. {
  22561. return $1
  22562. } # as_fn_set_status
  22563. # as_fn_exit STATUS
  22564. # -----------------
  22565. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22566. as_fn_exit ()
  22567. {
  22568. set +e
  22569. as_fn_set_status $1
  22570. exit $1
  22571. } # as_fn_exit
  22572. # as_fn_unset VAR
  22573. # ---------------
  22574. # Portably unset VAR.
  22575. as_fn_unset ()
  22576. {
  22577. { eval $1=; unset $1;}
  22578. }
  22579. as_unset=as_fn_unset
  22580. # as_fn_append VAR VALUE
  22581. # ----------------------
  22582. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22583. # advantage of any shell optimizations that allow amortized linear growth over
  22584. # repeated appends, instead of the typical quadratic growth present in naive
  22585. # implementations.
  22586. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22587. eval 'as_fn_append ()
  22588. {
  22589. eval $1+=\$2
  22590. }'
  22591. else
  22592. as_fn_append ()
  22593. {
  22594. eval $1=\$$1\$2
  22595. }
  22596. fi # as_fn_append
  22597. # as_fn_arith ARG...
  22598. # ------------------
  22599. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22600. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22601. # must be portable across $(()) and expr.
  22602. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22603. eval 'as_fn_arith ()
  22604. {
  22605. as_val=$(( $* ))
  22606. }'
  22607. else
  22608. as_fn_arith ()
  22609. {
  22610. as_val=`expr "$@" || test $? -eq 1`
  22611. }
  22612. fi # as_fn_arith
  22613. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22614. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22615. as_expr=expr
  22616. else
  22617. as_expr=false
  22618. fi
  22619. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22620. as_basename=basename
  22621. else
  22622. as_basename=false
  22623. fi
  22624. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22625. as_dirname=dirname
  22626. else
  22627. as_dirname=false
  22628. fi
  22629. as_me=`$as_basename -- "$0" ||
  22630. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22631. X"$0" : 'X\(//\)$' \| \
  22632. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22633. $as_echo X/"$0" |
  22634. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22635. s//\1/
  22636. q
  22637. }
  22638. /^X\/\(\/\/\)$/{
  22639. s//\1/
  22640. q
  22641. }
  22642. /^X\/\(\/\).*/{
  22643. s//\1/
  22644. q
  22645. }
  22646. s/.*/./; q'`
  22647. # Avoid depending upon Character Ranges.
  22648. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22649. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22650. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22651. as_cr_digits='0123456789'
  22652. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22653. ECHO_C= ECHO_N= ECHO_T=
  22654. case `echo -n x` in #(((((
  22655. -n*)
  22656. case `echo 'xy\c'` in
  22657. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22658. xy) ECHO_C='\c';;
  22659. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22660. ECHO_T=' ';;
  22661. esac;;
  22662. *)
  22663. ECHO_N='-n';;
  22664. esac
  22665. rm -f conf$$ conf$$.exe conf$$.file
  22666. if test -d conf$$.dir; then
  22667. rm -f conf$$.dir/conf$$.file
  22668. else
  22669. rm -f conf$$.dir
  22670. mkdir conf$$.dir 2>/dev/null
  22671. fi
  22672. if (echo >conf$$.file) 2>/dev/null; then
  22673. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22674. as_ln_s='ln -s'
  22675. # ... but there are two gotchas:
  22676. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22677. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22678. # In both cases, we have to default to `cp -pR'.
  22679. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22680. as_ln_s='cp -pR'
  22681. elif ln conf$$.file conf$$ 2>/dev/null; then
  22682. as_ln_s=ln
  22683. else
  22684. as_ln_s='cp -pR'
  22685. fi
  22686. else
  22687. as_ln_s='cp -pR'
  22688. fi
  22689. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22690. rmdir conf$$.dir 2>/dev/null
  22691. # as_fn_mkdir_p
  22692. # -------------
  22693. # Create "$as_dir" as a directory, including parents if necessary.
  22694. as_fn_mkdir_p ()
  22695. {
  22696. case $as_dir in #(
  22697. -*) as_dir=./$as_dir;;
  22698. esac
  22699. test -d "$as_dir" || eval $as_mkdir_p || {
  22700. as_dirs=
  22701. while :; do
  22702. case $as_dir in #(
  22703. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22704. *) as_qdir=$as_dir;;
  22705. esac
  22706. as_dirs="'$as_qdir' $as_dirs"
  22707. as_dir=`$as_dirname -- "$as_dir" ||
  22708. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22709. X"$as_dir" : 'X\(//\)[^/]' \| \
  22710. X"$as_dir" : 'X\(//\)$' \| \
  22711. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22712. $as_echo X"$as_dir" |
  22713. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22714. s//\1/
  22715. q
  22716. }
  22717. /^X\(\/\/\)[^/].*/{
  22718. s//\1/
  22719. q
  22720. }
  22721. /^X\(\/\/\)$/{
  22722. s//\1/
  22723. q
  22724. }
  22725. /^X\(\/\).*/{
  22726. s//\1/
  22727. q
  22728. }
  22729. s/.*/./; q'`
  22730. test -d "$as_dir" && break
  22731. done
  22732. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22733. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22734. } # as_fn_mkdir_p
  22735. if mkdir -p . 2>/dev/null; then
  22736. as_mkdir_p='mkdir -p "$as_dir"'
  22737. else
  22738. test -d ./-p && rmdir ./-p
  22739. as_mkdir_p=false
  22740. fi
  22741. # as_fn_executable_p FILE
  22742. # -----------------------
  22743. # Test if FILE is an executable regular file.
  22744. as_fn_executable_p ()
  22745. {
  22746. test -f "$1" && test -x "$1"
  22747. } # as_fn_executable_p
  22748. as_test_x='test -x'
  22749. as_executable_p=as_fn_executable_p
  22750. # Sed expression to map a string onto a valid CPP name.
  22751. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22752. # Sed expression to map a string onto a valid variable name.
  22753. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22754. exec 6>&1
  22755. ## ----------------------------------- ##
  22756. ## Main body of $CONFIG_STATUS script. ##
  22757. ## ----------------------------------- ##
  22758. _ASEOF
  22759. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22760. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22761. # Save the log message, to keep $0 and so on meaningful, and to
  22762. # report actual input values of CONFIG_FILES etc. instead of their
  22763. # values after options handling.
  22764. ac_log="
  22765. This file was extended by $as_me, which was
  22766. generated by GNU Autoconf 2.69. Invocation command line was
  22767. CONFIG_FILES = $CONFIG_FILES
  22768. CONFIG_HEADERS = $CONFIG_HEADERS
  22769. CONFIG_LINKS = $CONFIG_LINKS
  22770. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22771. $ $0 $@
  22772. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22773. "
  22774. _ACEOF
  22775. case $ac_config_files in *"
  22776. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22777. esac
  22778. case $ac_config_headers in *"
  22779. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22780. esac
  22781. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22782. # Files that config.status was made for.
  22783. config_files="$ac_config_files"
  22784. config_headers="$ac_config_headers"
  22785. config_commands="$ac_config_commands"
  22786. _ACEOF
  22787. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22788. ac_cs_usage="\
  22789. \`$as_me' instantiates files and other configuration actions
  22790. from templates according to the current configuration. Unless the files
  22791. and actions are specified as TAGs, all are instantiated by default.
  22792. Usage: $0 [OPTION]... [TAG]...
  22793. -h, --help print this help, then exit
  22794. -V, --version print version number and configuration settings, then exit
  22795. --config print configuration, then exit
  22796. -q, --quiet, --silent
  22797. do not print progress messages
  22798. -d, --debug don't remove temporary files
  22799. --recheck update $as_me by reconfiguring in the same conditions
  22800. --file=FILE[:TEMPLATE]
  22801. instantiate the configuration file FILE
  22802. --header=FILE[:TEMPLATE]
  22803. instantiate the configuration header FILE
  22804. Configuration files:
  22805. $config_files
  22806. Configuration headers:
  22807. $config_headers
  22808. Configuration commands:
  22809. $config_commands
  22810. Report bugs to the package provider."
  22811. _ACEOF
  22812. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22813. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22814. ac_cs_version="\\
  22815. config.status
  22816. configured by $0, generated by GNU Autoconf 2.69,
  22817. with options \\"\$ac_cs_config\\"
  22818. Copyright (C) 2012 Free Software Foundation, Inc.
  22819. This config.status script is free software; the Free Software Foundation
  22820. gives unlimited permission to copy, distribute and modify it."
  22821. ac_pwd='$ac_pwd'
  22822. srcdir='$srcdir'
  22823. INSTALL='$INSTALL'
  22824. AWK='$AWK'
  22825. test -n "\$AWK" || AWK=awk
  22826. _ACEOF
  22827. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22828. # The default lists apply if the user does not specify any file.
  22829. ac_need_defaults=:
  22830. while test $# != 0
  22831. do
  22832. case $1 in
  22833. --*=?*)
  22834. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22835. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22836. ac_shift=:
  22837. ;;
  22838. --*=)
  22839. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22840. ac_optarg=
  22841. ac_shift=:
  22842. ;;
  22843. *)
  22844. ac_option=$1
  22845. ac_optarg=$2
  22846. ac_shift=shift
  22847. ;;
  22848. esac
  22849. case $ac_option in
  22850. # Handling of the options.
  22851. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22852. ac_cs_recheck=: ;;
  22853. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22854. $as_echo "$ac_cs_version"; exit ;;
  22855. --config | --confi | --conf | --con | --co | --c )
  22856. $as_echo "$ac_cs_config"; exit ;;
  22857. --debug | --debu | --deb | --de | --d | -d )
  22858. debug=: ;;
  22859. --file | --fil | --fi | --f )
  22860. $ac_shift
  22861. case $ac_optarg in
  22862. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22863. '') as_fn_error $? "missing file argument" ;;
  22864. esac
  22865. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22866. ac_need_defaults=false;;
  22867. --header | --heade | --head | --hea )
  22868. $ac_shift
  22869. case $ac_optarg in
  22870. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22871. esac
  22872. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22873. ac_need_defaults=false;;
  22874. --he | --h)
  22875. # Conflict between --help and --header
  22876. as_fn_error $? "ambiguous option: \`$1'
  22877. Try \`$0 --help' for more information.";;
  22878. --help | --hel | -h )
  22879. $as_echo "$ac_cs_usage"; exit ;;
  22880. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22881. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22882. ac_cs_silent=: ;;
  22883. # This is an error.
  22884. -*) as_fn_error $? "unrecognized option: \`$1'
  22885. Try \`$0 --help' for more information." ;;
  22886. *) as_fn_append ac_config_targets " $1"
  22887. ac_need_defaults=false ;;
  22888. esac
  22889. shift
  22890. done
  22891. ac_configure_extra_args=
  22892. if $ac_cs_silent; then
  22893. exec 6>/dev/null
  22894. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22895. fi
  22896. _ACEOF
  22897. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22898. if \$ac_cs_recheck; then
  22899. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22900. shift
  22901. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22902. CONFIG_SHELL='$SHELL'
  22903. export CONFIG_SHELL
  22904. exec "\$@"
  22905. fi
  22906. _ACEOF
  22907. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22908. exec 5>>config.log
  22909. {
  22910. echo
  22911. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22912. ## Running $as_me. ##
  22913. _ASBOX
  22914. $as_echo "$ac_log"
  22915. } >&5
  22916. _ACEOF
  22917. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22918. #
  22919. # INIT-COMMANDS
  22920. #
  22921. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22922. # if CDPATH is set.
  22923. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22924. sed_quote_subst='$sed_quote_subst'
  22925. double_quote_subst='$double_quote_subst'
  22926. delay_variable_subst='$delay_variable_subst'
  22927. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22928. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22929. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22930. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22931. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22932. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22933. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22934. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22935. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22936. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22937. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22938. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22939. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22940. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22941. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22942. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22943. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22944. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22945. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22946. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22947. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22948. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22949. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22950. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22951. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22952. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22953. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22954. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22955. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22956. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22957. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22958. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22959. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22960. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22961. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22962. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22963. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22964. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22965. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22966. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22967. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22968. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22969. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22970. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22971. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22972. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22973. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22974. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22975. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22976. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22977. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22978. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22979. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22980. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22981. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22982. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22983. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22984. 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"`'
  22985. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22986. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22987. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22988. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22989. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22990. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22991. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22992. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22993. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22994. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22995. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22996. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22997. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22998. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22999. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23000. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23001. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23002. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23003. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23004. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23005. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23006. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23007. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23008. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23009. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23010. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23011. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23012. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23013. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23014. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23015. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23016. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23017. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23018. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23019. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23020. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23021. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23022. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23023. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23024. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23025. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23026. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23027. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23028. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23029. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23030. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23031. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23032. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23033. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23034. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23035. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23036. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23037. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23038. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23039. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23040. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23041. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23042. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23043. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23044. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23045. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23046. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23047. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23048. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23049. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23050. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23051. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23052. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23053. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23054. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23055. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23056. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23057. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23058. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23059. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23060. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23061. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23062. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23063. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23064. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23065. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23066. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23067. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23068. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23069. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23070. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23071. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23072. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23073. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23074. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23075. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23076. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23077. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23078. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23079. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23080. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23081. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23082. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23083. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23084. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23085. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23086. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23087. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23088. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23089. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23090. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23091. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23092. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23093. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23094. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23095. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23096. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23097. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23098. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23099. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23100. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23101. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23102. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23103. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23104. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23105. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23106. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23107. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23108. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23109. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23110. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23111. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23112. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23113. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23114. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23115. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23116. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23117. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23118. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23119. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23120. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23121. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23122. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23123. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23124. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23125. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23126. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23127. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23128. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23129. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23130. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23131. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23132. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23133. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23134. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23135. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23136. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23137. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23138. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23139. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23140. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23141. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23142. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23143. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23144. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23145. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23146. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23147. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23148. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23149. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23150. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23151. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23152. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23153. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23154. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23155. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23156. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23157. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23158. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23159. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23160. LTCC='$LTCC'
  23161. LTCFLAGS='$LTCFLAGS'
  23162. compiler='$compiler_DEFAULT'
  23163. # A function that is used when there is no print builtin or printf.
  23164. func_fallback_echo ()
  23165. {
  23166. eval 'cat <<_LTECHO_EOF
  23167. \$1
  23168. _LTECHO_EOF'
  23169. }
  23170. # Quote evaled strings.
  23171. for var in AS \
  23172. DLLTOOL \
  23173. OBJDUMP \
  23174. SHELL \
  23175. ECHO \
  23176. PATH_SEPARATOR \
  23177. SED \
  23178. GREP \
  23179. EGREP \
  23180. FGREP \
  23181. LD \
  23182. NM \
  23183. LN_S \
  23184. lt_SP2NL \
  23185. lt_NL2SP \
  23186. reload_flag \
  23187. deplibs_check_method \
  23188. file_magic_cmd \
  23189. file_magic_glob \
  23190. want_nocaseglob \
  23191. sharedlib_from_linklib_cmd \
  23192. AR \
  23193. AR_FLAGS \
  23194. archiver_list_spec \
  23195. STRIP \
  23196. RANLIB \
  23197. CC \
  23198. CFLAGS \
  23199. compiler \
  23200. lt_cv_sys_global_symbol_pipe \
  23201. lt_cv_sys_global_symbol_to_cdecl \
  23202. lt_cv_sys_global_symbol_to_c_name_address \
  23203. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23204. nm_file_list_spec \
  23205. lt_prog_compiler_no_builtin_flag \
  23206. lt_prog_compiler_pic \
  23207. lt_prog_compiler_wl \
  23208. lt_prog_compiler_static \
  23209. lt_cv_prog_compiler_c_o \
  23210. need_locks \
  23211. MANIFEST_TOOL \
  23212. DSYMUTIL \
  23213. NMEDIT \
  23214. LIPO \
  23215. OTOOL \
  23216. OTOOL64 \
  23217. shrext_cmds \
  23218. export_dynamic_flag_spec \
  23219. whole_archive_flag_spec \
  23220. compiler_needs_object \
  23221. with_gnu_ld \
  23222. allow_undefined_flag \
  23223. no_undefined_flag \
  23224. hardcode_libdir_flag_spec \
  23225. hardcode_libdir_separator \
  23226. exclude_expsyms \
  23227. include_expsyms \
  23228. file_list_spec \
  23229. variables_saved_for_relink \
  23230. libname_spec \
  23231. library_names_spec \
  23232. soname_spec \
  23233. install_override_mode \
  23234. finish_eval \
  23235. old_striplib \
  23236. striplib \
  23237. compiler_lib_search_dirs \
  23238. predep_objects \
  23239. postdep_objects \
  23240. predeps \
  23241. postdeps \
  23242. compiler_lib_search_path \
  23243. LD_RC \
  23244. LD_CXX \
  23245. reload_flag_RC \
  23246. reload_flag_CXX \
  23247. compiler_RC \
  23248. compiler_CXX \
  23249. lt_prog_compiler_no_builtin_flag_RC \
  23250. lt_prog_compiler_no_builtin_flag_CXX \
  23251. lt_prog_compiler_pic_RC \
  23252. lt_prog_compiler_pic_CXX \
  23253. lt_prog_compiler_wl_RC \
  23254. lt_prog_compiler_wl_CXX \
  23255. lt_prog_compiler_static_RC \
  23256. lt_prog_compiler_static_CXX \
  23257. lt_cv_prog_compiler_c_o_RC \
  23258. lt_cv_prog_compiler_c_o_CXX \
  23259. export_dynamic_flag_spec_RC \
  23260. export_dynamic_flag_spec_CXX \
  23261. whole_archive_flag_spec_RC \
  23262. whole_archive_flag_spec_CXX \
  23263. compiler_needs_object_RC \
  23264. compiler_needs_object_CXX \
  23265. with_gnu_ld_RC \
  23266. with_gnu_ld_CXX \
  23267. allow_undefined_flag_RC \
  23268. allow_undefined_flag_CXX \
  23269. no_undefined_flag_RC \
  23270. no_undefined_flag_CXX \
  23271. hardcode_libdir_flag_spec_RC \
  23272. hardcode_libdir_flag_spec_CXX \
  23273. hardcode_libdir_separator_RC \
  23274. hardcode_libdir_separator_CXX \
  23275. exclude_expsyms_RC \
  23276. exclude_expsyms_CXX \
  23277. include_expsyms_RC \
  23278. include_expsyms_CXX \
  23279. file_list_spec_RC \
  23280. file_list_spec_CXX \
  23281. compiler_lib_search_dirs_RC \
  23282. compiler_lib_search_dirs_CXX \
  23283. predep_objects_RC \
  23284. predep_objects_CXX \
  23285. postdep_objects_RC \
  23286. postdep_objects_CXX \
  23287. predeps_RC \
  23288. predeps_CXX \
  23289. postdeps_RC \
  23290. postdeps_CXX \
  23291. compiler_lib_search_path_RC \
  23292. compiler_lib_search_path_CXX; do
  23293. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23294. *[\\\\\\\`\\"\\\$]*)
  23295. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23296. ;;
  23297. *)
  23298. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23299. ;;
  23300. esac
  23301. done
  23302. # Double-quote double-evaled strings.
  23303. for var in reload_cmds \
  23304. old_postinstall_cmds \
  23305. old_postuninstall_cmds \
  23306. old_archive_cmds \
  23307. extract_expsyms_cmds \
  23308. old_archive_from_new_cmds \
  23309. old_archive_from_expsyms_cmds \
  23310. archive_cmds \
  23311. archive_expsym_cmds \
  23312. module_cmds \
  23313. module_expsym_cmds \
  23314. export_symbols_cmds \
  23315. prelink_cmds \
  23316. postlink_cmds \
  23317. postinstall_cmds \
  23318. postuninstall_cmds \
  23319. finish_cmds \
  23320. sys_lib_search_path_spec \
  23321. sys_lib_dlsearch_path_spec \
  23322. reload_cmds_RC \
  23323. reload_cmds_CXX \
  23324. old_archive_cmds_RC \
  23325. old_archive_cmds_CXX \
  23326. old_archive_from_new_cmds_RC \
  23327. old_archive_from_new_cmds_CXX \
  23328. old_archive_from_expsyms_cmds_RC \
  23329. old_archive_from_expsyms_cmds_CXX \
  23330. archive_cmds_RC \
  23331. archive_cmds_CXX \
  23332. archive_expsym_cmds_RC \
  23333. archive_expsym_cmds_CXX \
  23334. module_cmds_RC \
  23335. module_cmds_CXX \
  23336. module_expsym_cmds_RC \
  23337. module_expsym_cmds_CXX \
  23338. export_symbols_cmds_RC \
  23339. export_symbols_cmds_CXX \
  23340. prelink_cmds_RC \
  23341. prelink_cmds_CXX \
  23342. postlink_cmds_RC \
  23343. postlink_cmds_CXX; do
  23344. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23345. *[\\\\\\\`\\"\\\$]*)
  23346. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23347. ;;
  23348. *)
  23349. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23350. ;;
  23351. esac
  23352. done
  23353. ac_aux_dir='$ac_aux_dir'
  23354. xsi_shell='$xsi_shell'
  23355. lt_shell_append='$lt_shell_append'
  23356. # See if we are running on zsh, and set the options which allow our
  23357. # commands through without removal of \ escapes INIT.
  23358. if test -n "\${ZSH_VERSION+set}" ; then
  23359. setopt NO_GLOB_SUBST
  23360. fi
  23361. PACKAGE='$PACKAGE'
  23362. VERSION='$VERSION'
  23363. TIMESTAMP='$TIMESTAMP'
  23364. RM='$RM'
  23365. ofile='$ofile'
  23366. SUMMARY="$SUMMARY"
  23367. _ACEOF
  23368. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23369. # Handling of arguments.
  23370. for ac_config_target in $ac_config_targets
  23371. do
  23372. case $ac_config_target in
  23373. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23374. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23375. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23376. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23377. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23378. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23379. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23380. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23381. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23382. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23383. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23384. esac
  23385. done
  23386. # If the user did not use the arguments to specify the items to instantiate,
  23387. # then the envvar interface is used. Set only those that are not.
  23388. # We use the long form for the default assignment because of an extremely
  23389. # bizarre bug on SunOS 4.1.3.
  23390. if $ac_need_defaults; then
  23391. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23392. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23393. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23394. fi
  23395. # Have a temporary directory for convenience. Make it in the build tree
  23396. # simply because there is no reason against having it here, and in addition,
  23397. # creating and moving files from /tmp can sometimes cause problems.
  23398. # Hook for its removal unless debugging.
  23399. # Note that there is a small window in which the directory will not be cleaned:
  23400. # after its creation but before its name has been assigned to `$tmp'.
  23401. $debug ||
  23402. {
  23403. tmp= ac_tmp=
  23404. trap 'exit_status=$?
  23405. : "${ac_tmp:=$tmp}"
  23406. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23407. ' 0
  23408. trap 'as_fn_exit 1' 1 2 13 15
  23409. }
  23410. # Create a (secure) tmp directory for tmp files.
  23411. {
  23412. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23413. test -d "$tmp"
  23414. } ||
  23415. {
  23416. tmp=./conf$$-$RANDOM
  23417. (umask 077 && mkdir "$tmp")
  23418. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23419. ac_tmp=$tmp
  23420. # Set up the scripts for CONFIG_FILES section.
  23421. # No need to generate them if there are no CONFIG_FILES.
  23422. # This happens for instance with `./config.status config.h'.
  23423. if test -n "$CONFIG_FILES"; then
  23424. ac_cr=`echo X | tr X '\015'`
  23425. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23426. # But we know of no other shell where ac_cr would be empty at this
  23427. # point, so we can use a bashism as a fallback.
  23428. if test "x$ac_cr" = x; then
  23429. eval ac_cr=\$\'\\r\'
  23430. fi
  23431. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23432. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23433. ac_cs_awk_cr='\\r'
  23434. else
  23435. ac_cs_awk_cr=$ac_cr
  23436. fi
  23437. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23438. _ACEOF
  23439. {
  23440. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23441. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23442. echo "_ACEOF"
  23443. } >conf$$subs.sh ||
  23444. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23445. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23446. ac_delim='%!_!# '
  23447. for ac_last_try in false false false false false :; do
  23448. . ./conf$$subs.sh ||
  23449. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23450. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23451. if test $ac_delim_n = $ac_delim_num; then
  23452. break
  23453. elif $ac_last_try; then
  23454. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23455. else
  23456. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23457. fi
  23458. done
  23459. rm -f conf$$subs.sh
  23460. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23461. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23462. _ACEOF
  23463. sed -n '
  23464. h
  23465. s/^/S["/; s/!.*/"]=/
  23466. p
  23467. g
  23468. s/^[^!]*!//
  23469. :repl
  23470. t repl
  23471. s/'"$ac_delim"'$//
  23472. t delim
  23473. :nl
  23474. h
  23475. s/\(.\{148\}\)..*/\1/
  23476. t more1
  23477. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23478. p
  23479. n
  23480. b repl
  23481. :more1
  23482. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23483. p
  23484. g
  23485. s/.\{148\}//
  23486. t nl
  23487. :delim
  23488. h
  23489. s/\(.\{148\}\)..*/\1/
  23490. t more2
  23491. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23492. p
  23493. b
  23494. :more2
  23495. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23496. p
  23497. g
  23498. s/.\{148\}//
  23499. t delim
  23500. ' <conf$$subs.awk | sed '
  23501. /^[^""]/{
  23502. N
  23503. s/\n//
  23504. }
  23505. ' >>$CONFIG_STATUS || ac_write_fail=1
  23506. rm -f conf$$subs.awk
  23507. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23508. _ACAWK
  23509. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23510. for (key in S) S_is_set[key] = 1
  23511. FS = ""
  23512. }
  23513. {
  23514. line = $ 0
  23515. nfields = split(line, field, "@")
  23516. substed = 0
  23517. len = length(field[1])
  23518. for (i = 2; i < nfields; i++) {
  23519. key = field[i]
  23520. keylen = length(key)
  23521. if (S_is_set[key]) {
  23522. value = S[key]
  23523. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23524. len += length(value) + length(field[++i])
  23525. substed = 1
  23526. } else
  23527. len += 1 + keylen
  23528. }
  23529. print line
  23530. }
  23531. _ACAWK
  23532. _ACEOF
  23533. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23534. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23535. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23536. else
  23537. cat
  23538. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23539. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23540. _ACEOF
  23541. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23542. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23543. # trailing colons and then remove the whole line if VPATH becomes empty
  23544. # (actually we leave an empty line to preserve line numbers).
  23545. if test "x$srcdir" = x.; then
  23546. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23547. h
  23548. s///
  23549. s/^/:/
  23550. s/[ ]*$/:/
  23551. s/:\$(srcdir):/:/g
  23552. s/:\${srcdir}:/:/g
  23553. s/:@srcdir@:/:/g
  23554. s/^:*//
  23555. s/:*$//
  23556. x
  23557. s/\(=[ ]*\).*/\1/
  23558. G
  23559. s/\n//
  23560. s/^[^=]*=[ ]*$//
  23561. }'
  23562. fi
  23563. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23564. fi # test -n "$CONFIG_FILES"
  23565. # Set up the scripts for CONFIG_HEADERS section.
  23566. # No need to generate them if there are no CONFIG_HEADERS.
  23567. # This happens for instance with `./config.status Makefile'.
  23568. if test -n "$CONFIG_HEADERS"; then
  23569. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23570. BEGIN {
  23571. _ACEOF
  23572. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23573. # here-document in config.status, that substitutes the proper values into
  23574. # config.h.in to produce config.h.
  23575. # Create a delimiter string that does not exist in confdefs.h, to ease
  23576. # handling of long lines.
  23577. ac_delim='%!_!# '
  23578. for ac_last_try in false false :; do
  23579. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23580. if test -z "$ac_tt"; then
  23581. break
  23582. elif $ac_last_try; then
  23583. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23584. else
  23585. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23586. fi
  23587. done
  23588. # For the awk script, D is an array of macro values keyed by name,
  23589. # likewise P contains macro parameters if any. Preserve backslash
  23590. # newline sequences.
  23591. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23592. sed -n '
  23593. s/.\{148\}/&'"$ac_delim"'/g
  23594. t rset
  23595. :rset
  23596. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23597. t def
  23598. d
  23599. :def
  23600. s/\\$//
  23601. t bsnl
  23602. s/["\\]/\\&/g
  23603. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23604. D["\1"]=" \3"/p
  23605. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23606. d
  23607. :bsnl
  23608. s/["\\]/\\&/g
  23609. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23610. D["\1"]=" \3\\\\\\n"\\/p
  23611. t cont
  23612. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23613. t cont
  23614. d
  23615. :cont
  23616. n
  23617. s/.\{148\}/&'"$ac_delim"'/g
  23618. t clear
  23619. :clear
  23620. s/\\$//
  23621. t bsnlc
  23622. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23623. d
  23624. :bsnlc
  23625. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23626. b cont
  23627. ' <confdefs.h | sed '
  23628. s/'"$ac_delim"'/"\\\
  23629. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23630. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23631. for (key in D) D_is_set[key] = 1
  23632. FS = ""
  23633. }
  23634. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23635. line = \$ 0
  23636. split(line, arg, " ")
  23637. if (arg[1] == "#") {
  23638. defundef = arg[2]
  23639. mac1 = arg[3]
  23640. } else {
  23641. defundef = substr(arg[1], 2)
  23642. mac1 = arg[2]
  23643. }
  23644. split(mac1, mac2, "(") #)
  23645. macro = mac2[1]
  23646. prefix = substr(line, 1, index(line, defundef) - 1)
  23647. if (D_is_set[macro]) {
  23648. # Preserve the white space surrounding the "#".
  23649. print prefix "define", macro P[macro] D[macro]
  23650. next
  23651. } else {
  23652. # Replace #undef with comments. This is necessary, for example,
  23653. # in the case of _POSIX_SOURCE, which is predefined and required
  23654. # on some systems where configure will not decide to define it.
  23655. if (defundef == "undef") {
  23656. print "/*", prefix defundef, macro, "*/"
  23657. next
  23658. }
  23659. }
  23660. }
  23661. { print }
  23662. _ACAWK
  23663. _ACEOF
  23664. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23665. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23666. fi # test -n "$CONFIG_HEADERS"
  23667. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23668. shift
  23669. for ac_tag
  23670. do
  23671. case $ac_tag in
  23672. :[FHLC]) ac_mode=$ac_tag; continue;;
  23673. esac
  23674. case $ac_mode$ac_tag in
  23675. :[FHL]*:*);;
  23676. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23677. :[FH]-) ac_tag=-:-;;
  23678. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23679. esac
  23680. ac_save_IFS=$IFS
  23681. IFS=:
  23682. set x $ac_tag
  23683. IFS=$ac_save_IFS
  23684. shift
  23685. ac_file=$1
  23686. shift
  23687. case $ac_mode in
  23688. :L) ac_source=$1;;
  23689. :[FH])
  23690. ac_file_inputs=
  23691. for ac_f
  23692. do
  23693. case $ac_f in
  23694. -) ac_f="$ac_tmp/stdin";;
  23695. *) # Look for the file first in the build tree, then in the source tree
  23696. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23697. # because $ac_f cannot contain `:'.
  23698. test -f "$ac_f" ||
  23699. case $ac_f in
  23700. [\\/$]*) false;;
  23701. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23702. esac ||
  23703. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23704. esac
  23705. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23706. as_fn_append ac_file_inputs " '$ac_f'"
  23707. done
  23708. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23709. # use $as_me), people would be surprised to read:
  23710. # /* config.h. Generated by config.status. */
  23711. configure_input='Generated from '`
  23712. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23713. `' by configure.'
  23714. if test x"$ac_file" != x-; then
  23715. configure_input="$ac_file. $configure_input"
  23716. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23717. $as_echo "$as_me: creating $ac_file" >&6;}
  23718. fi
  23719. # Neutralize special characters interpreted by sed in replacement strings.
  23720. case $configure_input in #(
  23721. *\&* | *\|* | *\\* )
  23722. ac_sed_conf_input=`$as_echo "$configure_input" |
  23723. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23724. *) ac_sed_conf_input=$configure_input;;
  23725. esac
  23726. case $ac_tag in
  23727. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23728. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23729. esac
  23730. ;;
  23731. esac
  23732. ac_dir=`$as_dirname -- "$ac_file" ||
  23733. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23734. X"$ac_file" : 'X\(//\)[^/]' \| \
  23735. X"$ac_file" : 'X\(//\)$' \| \
  23736. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23737. $as_echo X"$ac_file" |
  23738. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23739. s//\1/
  23740. q
  23741. }
  23742. /^X\(\/\/\)[^/].*/{
  23743. s//\1/
  23744. q
  23745. }
  23746. /^X\(\/\/\)$/{
  23747. s//\1/
  23748. q
  23749. }
  23750. /^X\(\/\).*/{
  23751. s//\1/
  23752. q
  23753. }
  23754. s/.*/./; q'`
  23755. as_dir="$ac_dir"; as_fn_mkdir_p
  23756. ac_builddir=.
  23757. case "$ac_dir" in
  23758. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23759. *)
  23760. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23761. # A ".." for each directory in $ac_dir_suffix.
  23762. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23763. case $ac_top_builddir_sub in
  23764. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23765. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23766. esac ;;
  23767. esac
  23768. ac_abs_top_builddir=$ac_pwd
  23769. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23770. # for backward compatibility:
  23771. ac_top_builddir=$ac_top_build_prefix
  23772. case $srcdir in
  23773. .) # We are building in place.
  23774. ac_srcdir=.
  23775. ac_top_srcdir=$ac_top_builddir_sub
  23776. ac_abs_top_srcdir=$ac_pwd ;;
  23777. [\\/]* | ?:[\\/]* ) # Absolute name.
  23778. ac_srcdir=$srcdir$ac_dir_suffix;
  23779. ac_top_srcdir=$srcdir
  23780. ac_abs_top_srcdir=$srcdir ;;
  23781. *) # Relative name.
  23782. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23783. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23784. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23785. esac
  23786. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23787. case $ac_mode in
  23788. :F)
  23789. #
  23790. # CONFIG_FILE
  23791. #
  23792. case $INSTALL in
  23793. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23794. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23795. esac
  23796. _ACEOF
  23797. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23798. # If the template does not know about datarootdir, expand it.
  23799. # FIXME: This hack should be removed a few years after 2.60.
  23800. ac_datarootdir_hack=; ac_datarootdir_seen=
  23801. ac_sed_dataroot='
  23802. /datarootdir/ {
  23803. p
  23804. q
  23805. }
  23806. /@datadir@/p
  23807. /@docdir@/p
  23808. /@infodir@/p
  23809. /@localedir@/p
  23810. /@mandir@/p'
  23811. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23812. *datarootdir*) ac_datarootdir_seen=yes;;
  23813. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23815. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23816. _ACEOF
  23817. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23818. ac_datarootdir_hack='
  23819. s&@datadir@&$datadir&g
  23820. s&@docdir@&$docdir&g
  23821. s&@infodir@&$infodir&g
  23822. s&@localedir@&$localedir&g
  23823. s&@mandir@&$mandir&g
  23824. s&\\\${datarootdir}&$datarootdir&g' ;;
  23825. esac
  23826. _ACEOF
  23827. # Neutralize VPATH when `$srcdir' = `.'.
  23828. # Shell code in configure.ac might set extrasub.
  23829. # FIXME: do we really want to maintain this feature?
  23830. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23831. ac_sed_extra="$ac_vpsub
  23832. $extrasub
  23833. _ACEOF
  23834. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23835. :t
  23836. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23837. s|@configure_input@|$ac_sed_conf_input|;t t
  23838. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23839. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23840. s&@srcdir@&$ac_srcdir&;t t
  23841. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23842. s&@top_srcdir@&$ac_top_srcdir&;t t
  23843. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23844. s&@builddir@&$ac_builddir&;t t
  23845. s&@abs_builddir@&$ac_abs_builddir&;t t
  23846. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23847. s&@INSTALL@&$ac_INSTALL&;t t
  23848. $ac_datarootdir_hack
  23849. "
  23850. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23851. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23852. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23853. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23854. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23855. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23857. which seems to be undefined. Please make sure it is defined" >&5
  23858. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23859. which seems to be undefined. Please make sure it is defined" >&2;}
  23860. rm -f "$ac_tmp/stdin"
  23861. case $ac_file in
  23862. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23863. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23864. esac \
  23865. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23866. ;;
  23867. :H)
  23868. #
  23869. # CONFIG_HEADER
  23870. #
  23871. if test x"$ac_file" != x-; then
  23872. {
  23873. $as_echo "/* $configure_input */" \
  23874. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23875. } >"$ac_tmp/config.h" \
  23876. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23877. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23878. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23879. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23880. else
  23881. rm -f "$ac_file"
  23882. mv "$ac_tmp/config.h" "$ac_file" \
  23883. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23884. fi
  23885. else
  23886. $as_echo "/* $configure_input */" \
  23887. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23888. || as_fn_error $? "could not create -" "$LINENO" 5
  23889. fi
  23890. ;;
  23891. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23892. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23893. ;;
  23894. esac
  23895. case $ac_file$ac_mode in
  23896. "libtool":C)
  23897. # See if we are running on zsh, and set the options which allow our
  23898. # commands through without removal of \ escapes.
  23899. if test -n "${ZSH_VERSION+set}" ; then
  23900. setopt NO_GLOB_SUBST
  23901. fi
  23902. cfgfile="${ofile}T"
  23903. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23904. $RM "$cfgfile"
  23905. cat <<_LT_EOF >> "$cfgfile"
  23906. #! $SHELL
  23907. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23908. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23909. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23910. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23911. #
  23912. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23913. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23914. # Foundation, Inc.
  23915. # Written by Gordon Matzigkeit, 1996
  23916. #
  23917. # This file is part of GNU Libtool.
  23918. #
  23919. # GNU Libtool is free software; you can redistribute it and/or
  23920. # modify it under the terms of the GNU General Public License as
  23921. # published by the Free Software Foundation; either version 2 of
  23922. # the License, or (at your option) any later version.
  23923. #
  23924. # As a special exception to the GNU General Public License,
  23925. # if you distribute this file as part of a program or library that
  23926. # is built using GNU Libtool, you may include this file under the
  23927. # same distribution terms that you use for the rest of that program.
  23928. #
  23929. # GNU Libtool is distributed in the hope that it will be useful,
  23930. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23931. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23932. # GNU General Public License for more details.
  23933. #
  23934. # You should have received a copy of the GNU General Public License
  23935. # along with GNU Libtool; see the file COPYING. If not, a copy
  23936. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23937. # obtained by writing to the Free Software Foundation, Inc.,
  23938. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23939. # The names of the tagged configurations supported by this script.
  23940. available_tags="RC CXX "
  23941. # ### BEGIN LIBTOOL CONFIG
  23942. # Which release of libtool.m4 was used?
  23943. macro_version=$macro_version
  23944. macro_revision=$macro_revision
  23945. # Assembler program.
  23946. AS=$lt_AS
  23947. # DLL creation program.
  23948. DLLTOOL=$lt_DLLTOOL
  23949. # Object dumper program.
  23950. OBJDUMP=$lt_OBJDUMP
  23951. # Whether or not to build shared libraries.
  23952. build_libtool_libs=$enable_shared
  23953. # Whether or not to build static libraries.
  23954. build_old_libs=$enable_static
  23955. # What type of objects to build.
  23956. pic_mode=$pic_mode
  23957. # Whether or not to optimize for fast installation.
  23958. fast_install=$enable_fast_install
  23959. # Shell to use when invoking shell scripts.
  23960. SHELL=$lt_SHELL
  23961. # An echo program that protects backslashes.
  23962. ECHO=$lt_ECHO
  23963. # The PATH separator for the build system.
  23964. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23965. # The host system.
  23966. host_alias=$host_alias
  23967. host=$host
  23968. host_os=$host_os
  23969. # The build system.
  23970. build_alias=$build_alias
  23971. build=$build
  23972. build_os=$build_os
  23973. # A sed program that does not truncate output.
  23974. SED=$lt_SED
  23975. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23976. Xsed="\$SED -e 1s/^X//"
  23977. # A grep program that handles long lines.
  23978. GREP=$lt_GREP
  23979. # An ERE matcher.
  23980. EGREP=$lt_EGREP
  23981. # A literal string matcher.
  23982. FGREP=$lt_FGREP
  23983. # A BSD- or MS-compatible name lister.
  23984. NM=$lt_NM
  23985. # Whether we need soft or hard links.
  23986. LN_S=$lt_LN_S
  23987. # What is the maximum length of a command?
  23988. max_cmd_len=$max_cmd_len
  23989. # Object file suffix (normally "o").
  23990. objext=$ac_objext
  23991. # Executable file suffix (normally "").
  23992. exeext=$exeext
  23993. # whether the shell understands "unset".
  23994. lt_unset=$lt_unset
  23995. # turn spaces into newlines.
  23996. SP2NL=$lt_lt_SP2NL
  23997. # turn newlines into spaces.
  23998. NL2SP=$lt_lt_NL2SP
  23999. # convert \$build file names to \$host format.
  24000. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24001. # convert \$build files to toolchain format.
  24002. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24003. # Method to check whether dependent libraries are shared objects.
  24004. deplibs_check_method=$lt_deplibs_check_method
  24005. # Command to use when deplibs_check_method = "file_magic".
  24006. file_magic_cmd=$lt_file_magic_cmd
  24007. # How to find potential files when deplibs_check_method = "file_magic".
  24008. file_magic_glob=$lt_file_magic_glob
  24009. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24010. want_nocaseglob=$lt_want_nocaseglob
  24011. # Command to associate shared and link libraries.
  24012. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24013. # The archiver.
  24014. AR=$lt_AR
  24015. # Flags to create an archive.
  24016. AR_FLAGS=$lt_AR_FLAGS
  24017. # How to feed a file listing to the archiver.
  24018. archiver_list_spec=$lt_archiver_list_spec
  24019. # A symbol stripping program.
  24020. STRIP=$lt_STRIP
  24021. # Commands used to install an old-style archive.
  24022. RANLIB=$lt_RANLIB
  24023. old_postinstall_cmds=$lt_old_postinstall_cmds
  24024. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24025. # Whether to use a lock for old archive extraction.
  24026. lock_old_archive_extraction=$lock_old_archive_extraction
  24027. # A C compiler.
  24028. LTCC=$lt_CC
  24029. # LTCC compiler flags.
  24030. LTCFLAGS=$lt_CFLAGS
  24031. # Take the output of nm and produce a listing of raw symbols and C names.
  24032. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24033. # Transform the output of nm in a proper C declaration.
  24034. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24035. # Transform the output of nm in a C name address pair.
  24036. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24037. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24038. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24039. # Specify filename containing input files for \$NM.
  24040. nm_file_list_spec=$lt_nm_file_list_spec
  24041. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24042. lt_sysroot=$lt_sysroot
  24043. # The name of the directory that contains temporary libtool files.
  24044. objdir=$objdir
  24045. # Used to examine libraries when file_magic_cmd begins with "file".
  24046. MAGIC_CMD=$MAGIC_CMD
  24047. # Must we lock files when doing compilation?
  24048. need_locks=$lt_need_locks
  24049. # Manifest tool.
  24050. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24051. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24052. DSYMUTIL=$lt_DSYMUTIL
  24053. # Tool to change global to local symbols on Mac OS X.
  24054. NMEDIT=$lt_NMEDIT
  24055. # Tool to manipulate fat objects and archives on Mac OS X.
  24056. LIPO=$lt_LIPO
  24057. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24058. OTOOL=$lt_OTOOL
  24059. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24060. OTOOL64=$lt_OTOOL64
  24061. # Old archive suffix (normally "a").
  24062. libext=$libext
  24063. # Shared library suffix (normally ".so").
  24064. shrext_cmds=$lt_shrext_cmds
  24065. # The commands to extract the exported symbol list from a shared archive.
  24066. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24067. # Variables whose values should be saved in libtool wrapper scripts and
  24068. # restored at link time.
  24069. variables_saved_for_relink=$lt_variables_saved_for_relink
  24070. # Do we need the "lib" prefix for modules?
  24071. need_lib_prefix=$need_lib_prefix
  24072. # Do we need a version for libraries?
  24073. need_version=$need_version
  24074. # Library versioning type.
  24075. version_type=$version_type
  24076. # Shared library runtime path variable.
  24077. runpath_var=$runpath_var
  24078. # Shared library path variable.
  24079. shlibpath_var=$shlibpath_var
  24080. # Is shlibpath searched before the hard-coded library search path?
  24081. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24082. # Format of library name prefix.
  24083. libname_spec=$lt_libname_spec
  24084. # List of archive names. First name is the real one, the rest are links.
  24085. # The last name is the one that the linker finds with -lNAME
  24086. library_names_spec=$lt_library_names_spec
  24087. # The coded name of the library, if different from the real name.
  24088. soname_spec=$lt_soname_spec
  24089. # Permission mode override for installation of shared libraries.
  24090. install_override_mode=$lt_install_override_mode
  24091. # Command to use after installation of a shared archive.
  24092. postinstall_cmds=$lt_postinstall_cmds
  24093. # Command to use after uninstallation of a shared archive.
  24094. postuninstall_cmds=$lt_postuninstall_cmds
  24095. # Commands used to finish a libtool library installation in a directory.
  24096. finish_cmds=$lt_finish_cmds
  24097. # As "finish_cmds", except a single script fragment to be evaled but
  24098. # not shown.
  24099. finish_eval=$lt_finish_eval
  24100. # Whether we should hardcode library paths into libraries.
  24101. hardcode_into_libs=$hardcode_into_libs
  24102. # Compile-time system search path for libraries.
  24103. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24104. # Run-time system search path for libraries.
  24105. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24106. # Whether dlopen is supported.
  24107. dlopen_support=$enable_dlopen
  24108. # Whether dlopen of programs is supported.
  24109. dlopen_self=$enable_dlopen_self
  24110. # Whether dlopen of statically linked programs is supported.
  24111. dlopen_self_static=$enable_dlopen_self_static
  24112. # Commands to strip libraries.
  24113. old_striplib=$lt_old_striplib
  24114. striplib=$lt_striplib
  24115. # The linker used to build libraries.
  24116. LD=$lt_LD
  24117. # How to create reloadable object files.
  24118. reload_flag=$lt_reload_flag
  24119. reload_cmds=$lt_reload_cmds
  24120. # Commands used to build an old-style archive.
  24121. old_archive_cmds=$lt_old_archive_cmds
  24122. # A language specific compiler.
  24123. CC=$lt_compiler
  24124. # Is the compiler the GNU compiler?
  24125. with_gcc=$GCC
  24126. # Compiler flag to turn off builtin functions.
  24127. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24128. # Additional compiler flags for building library objects.
  24129. pic_flag=$lt_lt_prog_compiler_pic
  24130. # How to pass a linker flag through the compiler.
  24131. wl=$lt_lt_prog_compiler_wl
  24132. # Compiler flag to prevent dynamic linking.
  24133. link_static_flag=$lt_lt_prog_compiler_static
  24134. # Does compiler simultaneously support -c and -o options?
  24135. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24136. # Whether or not to add -lc for building shared libraries.
  24137. build_libtool_need_lc=$archive_cmds_need_lc
  24138. # Whether or not to disallow shared libs when runtime libs are static.
  24139. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24140. # Compiler flag to allow reflexive dlopens.
  24141. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24142. # Compiler flag to generate shared objects directly from archives.
  24143. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24144. # Whether the compiler copes with passing no objects directly.
  24145. compiler_needs_object=$lt_compiler_needs_object
  24146. # Create an old-style archive from a shared archive.
  24147. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24148. # Create a temporary old-style archive to link instead of a shared archive.
  24149. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24150. # Commands used to build a shared archive.
  24151. archive_cmds=$lt_archive_cmds
  24152. archive_expsym_cmds=$lt_archive_expsym_cmds
  24153. # Commands used to build a loadable module if different from building
  24154. # a shared archive.
  24155. module_cmds=$lt_module_cmds
  24156. module_expsym_cmds=$lt_module_expsym_cmds
  24157. # Whether we are building with GNU ld or not.
  24158. with_gnu_ld=$lt_with_gnu_ld
  24159. # Flag that allows shared libraries with undefined symbols to be built.
  24160. allow_undefined_flag=$lt_allow_undefined_flag
  24161. # Flag that enforces no undefined symbols.
  24162. no_undefined_flag=$lt_no_undefined_flag
  24163. # Flag to hardcode \$libdir into a binary during linking.
  24164. # This must work even if \$libdir does not exist
  24165. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24166. # Whether we need a single "-rpath" flag with a separated argument.
  24167. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24168. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24169. # DIR into the resulting binary.
  24170. hardcode_direct=$hardcode_direct
  24171. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24172. # DIR into the resulting binary and the resulting library dependency is
  24173. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24174. # library is relocated.
  24175. hardcode_direct_absolute=$hardcode_direct_absolute
  24176. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24177. # into the resulting binary.
  24178. hardcode_minus_L=$hardcode_minus_L
  24179. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24180. # into the resulting binary.
  24181. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24182. # Set to "yes" if building a shared library automatically hardcodes DIR
  24183. # into the library and all subsequent libraries and executables linked
  24184. # against it.
  24185. hardcode_automatic=$hardcode_automatic
  24186. # Set to yes if linker adds runtime paths of dependent libraries
  24187. # to runtime path list.
  24188. inherit_rpath=$inherit_rpath
  24189. # Whether libtool must link a program against all its dependency libraries.
  24190. link_all_deplibs=$link_all_deplibs
  24191. # Set to "yes" if exported symbols are required.
  24192. always_export_symbols=$always_export_symbols
  24193. # The commands to list exported symbols.
  24194. export_symbols_cmds=$lt_export_symbols_cmds
  24195. # Symbols that should not be listed in the preloaded symbols.
  24196. exclude_expsyms=$lt_exclude_expsyms
  24197. # Symbols that must always be exported.
  24198. include_expsyms=$lt_include_expsyms
  24199. # Commands necessary for linking programs (against libraries) with templates.
  24200. prelink_cmds=$lt_prelink_cmds
  24201. # Commands necessary for finishing linking programs.
  24202. postlink_cmds=$lt_postlink_cmds
  24203. # Specify filename containing input files.
  24204. file_list_spec=$lt_file_list_spec
  24205. # How to hardcode a shared library path into an executable.
  24206. hardcode_action=$hardcode_action
  24207. # The directories searched by this compiler when creating a shared library.
  24208. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24209. # Dependencies to place before and after the objects being linked to
  24210. # create a shared library.
  24211. predep_objects=$lt_predep_objects
  24212. postdep_objects=$lt_postdep_objects
  24213. predeps=$lt_predeps
  24214. postdeps=$lt_postdeps
  24215. # The library search path used internally by the compiler when linking
  24216. # a shared library.
  24217. compiler_lib_search_path=$lt_compiler_lib_search_path
  24218. # ### END LIBTOOL CONFIG
  24219. _LT_EOF
  24220. case $host_os in
  24221. aix3*)
  24222. cat <<\_LT_EOF >> "$cfgfile"
  24223. # AIX sometimes has problems with the GCC collect2 program. For some
  24224. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24225. # vanish in a puff of smoke.
  24226. if test "X${COLLECT_NAMES+set}" != Xset; then
  24227. COLLECT_NAMES=
  24228. export COLLECT_NAMES
  24229. fi
  24230. _LT_EOF
  24231. ;;
  24232. esac
  24233. ltmain="$ac_aux_dir/ltmain.sh"
  24234. # We use sed instead of cat because bash on DJGPP gets confused if
  24235. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24236. # text mode, it properly converts lines to CR/LF. This bash problem
  24237. # is reportedly fixed, but why not run on old versions too?
  24238. sed '$q' "$ltmain" >> "$cfgfile" \
  24239. || (rm -f "$cfgfile"; exit 1)
  24240. if test x"$xsi_shell" = xyes; then
  24241. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24242. func_dirname ()\
  24243. {\
  24244. \ case ${1} in\
  24245. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24246. \ * ) func_dirname_result="${3}" ;;\
  24247. \ esac\
  24248. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24249. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24250. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24251. test 0 -eq $? || _lt_function_replace_fail=:
  24252. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24253. func_basename ()\
  24254. {\
  24255. \ func_basename_result="${1##*/}"\
  24256. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24257. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24258. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24259. test 0 -eq $? || _lt_function_replace_fail=:
  24260. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24261. func_dirname_and_basename ()\
  24262. {\
  24263. \ case ${1} in\
  24264. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24265. \ * ) func_dirname_result="${3}" ;;\
  24266. \ esac\
  24267. \ func_basename_result="${1##*/}"\
  24268. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24269. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24270. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24271. test 0 -eq $? || _lt_function_replace_fail=:
  24272. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24273. func_stripname ()\
  24274. {\
  24275. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24276. \ # positional parameters, so assign one to ordinary parameter first.\
  24277. \ func_stripname_result=${3}\
  24278. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24279. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24280. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24281. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24282. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24283. test 0 -eq $? || _lt_function_replace_fail=:
  24284. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24285. func_split_long_opt ()\
  24286. {\
  24287. \ func_split_long_opt_name=${1%%=*}\
  24288. \ func_split_long_opt_arg=${1#*=}\
  24289. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24290. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24291. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24292. test 0 -eq $? || _lt_function_replace_fail=:
  24293. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24294. func_split_short_opt ()\
  24295. {\
  24296. \ func_split_short_opt_arg=${1#??}\
  24297. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24298. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24299. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24300. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24301. test 0 -eq $? || _lt_function_replace_fail=:
  24302. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24303. func_lo2o ()\
  24304. {\
  24305. \ case ${1} in\
  24306. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24307. \ *) func_lo2o_result=${1} ;;\
  24308. \ esac\
  24309. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24310. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24311. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24312. test 0 -eq $? || _lt_function_replace_fail=:
  24313. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24314. func_xform ()\
  24315. {\
  24316. func_xform_result=${1%.*}.lo\
  24317. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24318. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24319. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24320. test 0 -eq $? || _lt_function_replace_fail=:
  24321. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24322. func_arith ()\
  24323. {\
  24324. func_arith_result=$(( $* ))\
  24325. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24326. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24327. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24328. test 0 -eq $? || _lt_function_replace_fail=:
  24329. sed -e '/^func_len ()$/,/^} # func_len /c\
  24330. func_len ()\
  24331. {\
  24332. func_len_result=${#1}\
  24333. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24334. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24335. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24336. test 0 -eq $? || _lt_function_replace_fail=:
  24337. fi
  24338. if test x"$lt_shell_append" = xyes; then
  24339. sed -e '/^func_append ()$/,/^} # func_append /c\
  24340. func_append ()\
  24341. {\
  24342. eval "${1}+=\\${2}"\
  24343. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24344. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24345. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24346. test 0 -eq $? || _lt_function_replace_fail=:
  24347. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24348. func_append_quoted ()\
  24349. {\
  24350. \ func_quote_for_eval "${2}"\
  24351. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24352. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24353. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24354. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24355. test 0 -eq $? || _lt_function_replace_fail=:
  24356. # Save a `func_append' function call where possible by direct use of '+='
  24357. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24358. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24359. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24360. test 0 -eq $? || _lt_function_replace_fail=:
  24361. else
  24362. # Save a `func_append' function call even when '+=' is not available
  24363. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24364. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24365. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24366. test 0 -eq $? || _lt_function_replace_fail=:
  24367. fi
  24368. if test x"$_lt_function_replace_fail" = x":"; then
  24369. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24370. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24371. fi
  24372. mv -f "$cfgfile" "$ofile" ||
  24373. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24374. chmod +x "$ofile"
  24375. cat <<_LT_EOF >> "$ofile"
  24376. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24377. # The linker used to build libraries.
  24378. LD=$lt_LD_RC
  24379. # How to create reloadable object files.
  24380. reload_flag=$lt_reload_flag_RC
  24381. reload_cmds=$lt_reload_cmds_RC
  24382. # Commands used to build an old-style archive.
  24383. old_archive_cmds=$lt_old_archive_cmds_RC
  24384. # A language specific compiler.
  24385. CC=$lt_compiler_RC
  24386. # Is the compiler the GNU compiler?
  24387. with_gcc=$GCC_RC
  24388. # Compiler flag to turn off builtin functions.
  24389. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24390. # Additional compiler flags for building library objects.
  24391. pic_flag=$lt_lt_prog_compiler_pic_RC
  24392. # How to pass a linker flag through the compiler.
  24393. wl=$lt_lt_prog_compiler_wl_RC
  24394. # Compiler flag to prevent dynamic linking.
  24395. link_static_flag=$lt_lt_prog_compiler_static_RC
  24396. # Does compiler simultaneously support -c and -o options?
  24397. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24398. # Whether or not to add -lc for building shared libraries.
  24399. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24400. # Whether or not to disallow shared libs when runtime libs are static.
  24401. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24402. # Compiler flag to allow reflexive dlopens.
  24403. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24404. # Compiler flag to generate shared objects directly from archives.
  24405. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24406. # Whether the compiler copes with passing no objects directly.
  24407. compiler_needs_object=$lt_compiler_needs_object_RC
  24408. # Create an old-style archive from a shared archive.
  24409. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24410. # Create a temporary old-style archive to link instead of a shared archive.
  24411. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24412. # Commands used to build a shared archive.
  24413. archive_cmds=$lt_archive_cmds_RC
  24414. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24415. # Commands used to build a loadable module if different from building
  24416. # a shared archive.
  24417. module_cmds=$lt_module_cmds_RC
  24418. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24419. # Whether we are building with GNU ld or not.
  24420. with_gnu_ld=$lt_with_gnu_ld_RC
  24421. # Flag that allows shared libraries with undefined symbols to be built.
  24422. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24423. # Flag that enforces no undefined symbols.
  24424. no_undefined_flag=$lt_no_undefined_flag_RC
  24425. # Flag to hardcode \$libdir into a binary during linking.
  24426. # This must work even if \$libdir does not exist
  24427. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24428. # Whether we need a single "-rpath" flag with a separated argument.
  24429. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24430. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24431. # DIR into the resulting binary.
  24432. hardcode_direct=$hardcode_direct_RC
  24433. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24434. # DIR into the resulting binary and the resulting library dependency is
  24435. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24436. # library is relocated.
  24437. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24438. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24439. # into the resulting binary.
  24440. hardcode_minus_L=$hardcode_minus_L_RC
  24441. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24442. # into the resulting binary.
  24443. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24444. # Set to "yes" if building a shared library automatically hardcodes DIR
  24445. # into the library and all subsequent libraries and executables linked
  24446. # against it.
  24447. hardcode_automatic=$hardcode_automatic_RC
  24448. # Set to yes if linker adds runtime paths of dependent libraries
  24449. # to runtime path list.
  24450. inherit_rpath=$inherit_rpath_RC
  24451. # Whether libtool must link a program against all its dependency libraries.
  24452. link_all_deplibs=$link_all_deplibs_RC
  24453. # Set to "yes" if exported symbols are required.
  24454. always_export_symbols=$always_export_symbols_RC
  24455. # The commands to list exported symbols.
  24456. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24457. # Symbols that should not be listed in the preloaded symbols.
  24458. exclude_expsyms=$lt_exclude_expsyms_RC
  24459. # Symbols that must always be exported.
  24460. include_expsyms=$lt_include_expsyms_RC
  24461. # Commands necessary for linking programs (against libraries) with templates.
  24462. prelink_cmds=$lt_prelink_cmds_RC
  24463. # Commands necessary for finishing linking programs.
  24464. postlink_cmds=$lt_postlink_cmds_RC
  24465. # Specify filename containing input files.
  24466. file_list_spec=$lt_file_list_spec_RC
  24467. # How to hardcode a shared library path into an executable.
  24468. hardcode_action=$hardcode_action_RC
  24469. # The directories searched by this compiler when creating a shared library.
  24470. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24471. # Dependencies to place before and after the objects being linked to
  24472. # create a shared library.
  24473. predep_objects=$lt_predep_objects_RC
  24474. postdep_objects=$lt_postdep_objects_RC
  24475. predeps=$lt_predeps_RC
  24476. postdeps=$lt_postdeps_RC
  24477. # The library search path used internally by the compiler when linking
  24478. # a shared library.
  24479. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24480. # ### END LIBTOOL TAG CONFIG: RC
  24481. _LT_EOF
  24482. cat <<_LT_EOF >> "$ofile"
  24483. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24484. # The linker used to build libraries.
  24485. LD=$lt_LD_CXX
  24486. # How to create reloadable object files.
  24487. reload_flag=$lt_reload_flag_CXX
  24488. reload_cmds=$lt_reload_cmds_CXX
  24489. # Commands used to build an old-style archive.
  24490. old_archive_cmds=$lt_old_archive_cmds_CXX
  24491. # A language specific compiler.
  24492. CC=$lt_compiler_CXX
  24493. # Is the compiler the GNU compiler?
  24494. with_gcc=$GCC_CXX
  24495. # Compiler flag to turn off builtin functions.
  24496. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24497. # Additional compiler flags for building library objects.
  24498. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24499. # How to pass a linker flag through the compiler.
  24500. wl=$lt_lt_prog_compiler_wl_CXX
  24501. # Compiler flag to prevent dynamic linking.
  24502. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24503. # Does compiler simultaneously support -c and -o options?
  24504. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24505. # Whether or not to add -lc for building shared libraries.
  24506. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24507. # Whether or not to disallow shared libs when runtime libs are static.
  24508. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24509. # Compiler flag to allow reflexive dlopens.
  24510. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24511. # Compiler flag to generate shared objects directly from archives.
  24512. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24513. # Whether the compiler copes with passing no objects directly.
  24514. compiler_needs_object=$lt_compiler_needs_object_CXX
  24515. # Create an old-style archive from a shared archive.
  24516. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24517. # Create a temporary old-style archive to link instead of a shared archive.
  24518. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24519. # Commands used to build a shared archive.
  24520. archive_cmds=$lt_archive_cmds_CXX
  24521. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24522. # Commands used to build a loadable module if different from building
  24523. # a shared archive.
  24524. module_cmds=$lt_module_cmds_CXX
  24525. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24526. # Whether we are building with GNU ld or not.
  24527. with_gnu_ld=$lt_with_gnu_ld_CXX
  24528. # Flag that allows shared libraries with undefined symbols to be built.
  24529. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24530. # Flag that enforces no undefined symbols.
  24531. no_undefined_flag=$lt_no_undefined_flag_CXX
  24532. # Flag to hardcode \$libdir into a binary during linking.
  24533. # This must work even if \$libdir does not exist
  24534. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24535. # Whether we need a single "-rpath" flag with a separated argument.
  24536. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24537. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24538. # DIR into the resulting binary.
  24539. hardcode_direct=$hardcode_direct_CXX
  24540. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24541. # DIR into the resulting binary and the resulting library dependency is
  24542. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24543. # library is relocated.
  24544. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24545. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24546. # into the resulting binary.
  24547. hardcode_minus_L=$hardcode_minus_L_CXX
  24548. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24549. # into the resulting binary.
  24550. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24551. # Set to "yes" if building a shared library automatically hardcodes DIR
  24552. # into the library and all subsequent libraries and executables linked
  24553. # against it.
  24554. hardcode_automatic=$hardcode_automatic_CXX
  24555. # Set to yes if linker adds runtime paths of dependent libraries
  24556. # to runtime path list.
  24557. inherit_rpath=$inherit_rpath_CXX
  24558. # Whether libtool must link a program against all its dependency libraries.
  24559. link_all_deplibs=$link_all_deplibs_CXX
  24560. # Set to "yes" if exported symbols are required.
  24561. always_export_symbols=$always_export_symbols_CXX
  24562. # The commands to list exported symbols.
  24563. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24564. # Symbols that should not be listed in the preloaded symbols.
  24565. exclude_expsyms=$lt_exclude_expsyms_CXX
  24566. # Symbols that must always be exported.
  24567. include_expsyms=$lt_include_expsyms_CXX
  24568. # Commands necessary for linking programs (against libraries) with templates.
  24569. prelink_cmds=$lt_prelink_cmds_CXX
  24570. # Commands necessary for finishing linking programs.
  24571. postlink_cmds=$lt_postlink_cmds_CXX
  24572. # Specify filename containing input files.
  24573. file_list_spec=$lt_file_list_spec_CXX
  24574. # How to hardcode a shared library path into an executable.
  24575. hardcode_action=$hardcode_action_CXX
  24576. # The directories searched by this compiler when creating a shared library.
  24577. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24578. # Dependencies to place before and after the objects being linked to
  24579. # create a shared library.
  24580. predep_objects=$lt_predep_objects_CXX
  24581. postdep_objects=$lt_postdep_objects_CXX
  24582. predeps=$lt_predeps_CXX
  24583. postdeps=$lt_postdeps_CXX
  24584. # The library search path used internally by the compiler when linking
  24585. # a shared library.
  24586. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24587. # ### END LIBTOOL TAG CONFIG: CXX
  24588. _LT_EOF
  24589. ;;
  24590. "sdl2_config":C) chmod a+x sdl2-config ;;
  24591. "summary":C) printf "$SUMMARY" ;;
  24592. esac
  24593. done # for ac_tag
  24594. as_fn_exit 0
  24595. _ACEOF
  24596. ac_clean_files=$ac_clean_files_save
  24597. test $ac_write_fail = 0 ||
  24598. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24599. # configure is writing to config.log, and then calls config.status.
  24600. # config.status does its own redirection, appending to config.log.
  24601. # Unfortunately, on DOS this fails, as config.log is still kept open
  24602. # by configure, so config.status won't be able to write to it; its
  24603. # output is simply discarded. So we exec the FD to /dev/null,
  24604. # effectively closing config.log, so it can be properly (re)opened and
  24605. # appended to by config.status. When coming back to configure, we
  24606. # need to make the FD available again.
  24607. if test "$no_create" != yes; then
  24608. ac_cs_success=:
  24609. ac_config_status_args=
  24610. test "$silent" = yes &&
  24611. ac_config_status_args="$ac_config_status_args --quiet"
  24612. exec 5>/dev/null
  24613. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24614. exec 5>>config.log
  24615. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24616. # would make configure fail if this is the last instruction.
  24617. $ac_cs_success || as_fn_exit 1
  24618. fi
  24619. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24621. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24622. fi