configure 849 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977
  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
  1444. [[default=yes]]
  1445. --enable-audio Enable the audio subsystem [[default=yes]]
  1446. --enable-video Enable the video subsystem [[default=yes]]
  1447. --enable-render Enable the render subsystem [[default=yes]]
  1448. --enable-events Enable the events subsystem [[default=yes]]
  1449. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1450. --enable-haptic Enable the haptic (force feedback) subsystem
  1451. [[default=yes]]
  1452. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1453. --enable-power Enable the power subsystem [[default=yes]]
  1454. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1455. --enable-threads Enable the threading subsystem [[default=yes]]
  1456. --enable-timers Enable the timer subsystem [[default=yes]]
  1457. --enable-file Enable the file subsystem [[default=yes]]
  1458. --enable-loadso Enable the shared object loading subsystem
  1459. [[default=yes]]
  1460. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1461. --enable-assembly Enable assembly routines [[default=yes]]
  1462. --enable-ssemath Allow GCC to use SSE floating point math
  1463. [[default=maybe]]
  1464. --enable-mmx use MMX assembly routines [[default=yes]]
  1465. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1466. --enable-sse use SSE assembly routines [[default=yes]]
  1467. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1468. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1469. --enable-altivec use Altivec assembly routines [[default=yes]]
  1470. --enable-oss support the OSS audio API [[default=maybe]]
  1471. --enable-alsa support the ALSA audio API [[default=yes]]
  1472. --disable-alsatest Do not try to compile and run a test Alsa program
  1473. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1474. --enable-jack use JACK audio [[default=yes]]
  1475. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1476. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1477. --disable-esdtest Do not try to compile and run a test ESD program
  1478. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1479. --enable-pipewire use Pipewire audio [[default=yes]]
  1480. --enable-pipewire-shared
  1481. dynamically load Pipewire support [[default=yes]]
  1482. --enable-pulseaudio use PulseAudio [[default=yes]]
  1483. --enable-pulseaudio-shared
  1484. dynamically load PulseAudio support [[default=yes]]
  1485. --enable-arts support the Analog Real Time Synthesizer
  1486. [[default=yes]]
  1487. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1488. --enable-nas support the NAS audio API [[default=yes]]
  1489. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1490. --enable-sndio support the sndio audio API [[default=yes]]
  1491. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1492. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1493. --enable-fusionsound-shared
  1494. dynamically load fusionsound audio support
  1495. [[default=yes]]
  1496. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1497. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1498. --enable-libsamplerate use libsamplerate for audio rate conversion
  1499. [[default=yes]]
  1500. --enable-libsamplerate-shared
  1501. dynamically load libsamplerate [[default=yes]]
  1502. --enable-arm-simd use SIMD assembly blitters on ARM [[default=no]]
  1503. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1504. --enable-video-wayland use Wayland video driver [[default=yes]]
  1505. --enable-video-wayland-qt-touch
  1506. QtWayland server support for Wayland video driver
  1507. [[default=yes]]
  1508. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1509. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1510. --enable-video-x11 use X11 video driver [[default=yes]]
  1511. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1512. --enable-video-x11-xcursor
  1513. enable X11 Xcursor support [[default=yes]]
  1514. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1515. --enable-video-x11-xinerama
  1516. enable X11 Xinerama support [[default=yes]]
  1517. --enable-video-x11-xinput
  1518. enable X11 XInput extension for manymouse, tablets,
  1519. etc [[default=yes]]
  1520. --enable-video-x11-xrandr
  1521. enable X11 Xrandr extension for fullscreen
  1522. [[default=yes]]
  1523. --enable-video-x11-scrnsaver
  1524. enable X11 screensaver extension [[default=yes]]
  1525. --enable-video-x11-xshape
  1526. enable X11 XShape support [[default=yes]]
  1527. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1528. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1529. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1530. --enable-video-metal include Metal support [[default=yes]]
  1531. --enable-render-metal enable the Metal render driver [[default=yes]]
  1532. --enable-video-directfb use DirectFB video driver [[default=no]]
  1533. --enable-directfb-shared
  1534. dynamically load directfb support [[default=yes]]
  1535. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1536. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1537. --enable-video-dummy use dummy video driver [[default=yes]]
  1538. --enable-video-opengl include OpenGL support [[default=yes]]
  1539. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1540. --enable-video-opengles1
  1541. include OpenGL ES 1.1 support [[default=yes]]
  1542. --enable-video-opengles2
  1543. include OpenGL ES 2.0 support [[default=yes]]
  1544. --enable-video-vulkan include Vulkan support [[default=yes]]
  1545. --enable-libudev enable libudev support [[default=yes]]
  1546. --enable-dbus enable D-Bus support [[default=yes]]
  1547. --enable-ime enable IME support [[default=yes]]
  1548. --enable-ibus enable IBus support [[default=yes]]
  1549. --enable-fcitx enable fcitx support [[default=yes]]
  1550. --enable-joystick-mfi include macOS MFI joystick support [[default=yes]]
  1551. --enable-pthreads use POSIX threads for multi-threading
  1552. [[default=yes]]
  1553. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1554. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1555. --enable-xinput use Xinput for Windows [[default=yes]]
  1556. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1557. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1558. --enable-hidapi use HIDAPI for low level joystick drivers
  1559. [[default=yes]]
  1560. --enable-hidapi-libusb use libusb for low level joystick drivers
  1561. [[default=maybe]]
  1562. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1563. UNIX [[default=yes]]
  1564. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1565. --enable-backgrounding-signal
  1566. number to use for magic backgrounding signal or 'no'
  1567. [[default=no]]
  1568. --enable-foregrounding-signal
  1569. number to use for magic foregrounding signal or 'no'
  1570. [[default=no]]
  1571. --enable-joystick-virtual
  1572. enable virtual joystick APIs [[default=yes]]
  1573. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1574. --enable-sdl2-config Install sdl2-config [default=yes]
  1575. Optional Packages:
  1576. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1577. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1578. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1579. both]
  1580. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1581. --with-sysroot=DIR Search for dependent libraries within DIR
  1582. (or the compiler's sysroot if not specified).
  1583. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1584. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1585. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1586. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1587. --with-x use the X Window System
  1588. Some influential environment variables:
  1589. CC C compiler command
  1590. CFLAGS C compiler flags
  1591. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1592. nonstandard directory <lib dir>
  1593. LIBS libraries to pass to the linker, e.g. -l<library>
  1594. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1595. you have headers in a nonstandard directory <include dir>
  1596. CPP C preprocessor
  1597. CXX C++ compiler command
  1598. CXXFLAGS C++ compiler flags
  1599. CXXCPP C++ preprocessor
  1600. PKG_CONFIG path to pkg-config utility
  1601. PKG_CONFIG_PATH
  1602. directories to add to pkg-config's search path
  1603. PKG_CONFIG_LIBDIR
  1604. path overriding pkg-config's built-in search path
  1605. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1606. JACK_LIBS linker flags for JACK, overriding pkg-config
  1607. PIPEWIRE_CFLAGS
  1608. C compiler flags for PIPEWIRE, overriding pkg-config
  1609. PIPEWIRE_LIBS
  1610. linker flags for PIPEWIRE, overriding pkg-config
  1611. PULSEAUDIO_CFLAGS
  1612. C compiler flags for PULSEAUDIO, overriding pkg-config
  1613. PULSEAUDIO_LIBS
  1614. linker flags for PULSEAUDIO, overriding pkg-config
  1615. FUSIONSOUND_CFLAGS
  1616. C compiler flags for FUSIONSOUND, overriding pkg-config
  1617. FUSIONSOUND_LIBS
  1618. linker flags for FUSIONSOUND, overriding pkg-config
  1619. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1620. RPI_LIBS linker flags for RPI, overriding pkg-config
  1621. XMKMF Path to xmkmf, Makefile generator for X Window System
  1622. DIRECTFB_CFLAGS
  1623. C compiler flags for DIRECTFB, overriding pkg-config
  1624. DIRECTFB_LIBS
  1625. linker flags for DIRECTFB, overriding pkg-config
  1626. LIBDRM_CFLAGS
  1627. C compiler flags for LIBDRM, overriding pkg-config
  1628. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1629. LIBGBM_CFLAGS
  1630. C compiler flags for LIBGBM, overriding pkg-config
  1631. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1632. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1633. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1634. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1635. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1636. LIBUSB_CFLAGS
  1637. C compiler flags for LIBUSB, overriding pkg-config
  1638. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1639. Use these variables to override the choices made by `configure' or to help
  1640. it to find libraries and programs with nonstandard names/locations.
  1641. Report bugs to the package provider.
  1642. _ACEOF
  1643. ac_status=$?
  1644. fi
  1645. if test "$ac_init_help" = "recursive"; then
  1646. # If there are subdirs, report their specific --help.
  1647. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1648. test -d "$ac_dir" ||
  1649. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1650. continue
  1651. ac_builddir=.
  1652. case "$ac_dir" in
  1653. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1654. *)
  1655. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1656. # A ".." for each directory in $ac_dir_suffix.
  1657. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1658. case $ac_top_builddir_sub in
  1659. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1660. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1661. esac ;;
  1662. esac
  1663. ac_abs_top_builddir=$ac_pwd
  1664. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1665. # for backward compatibility:
  1666. ac_top_builddir=$ac_top_build_prefix
  1667. case $srcdir in
  1668. .) # We are building in place.
  1669. ac_srcdir=.
  1670. ac_top_srcdir=$ac_top_builddir_sub
  1671. ac_abs_top_srcdir=$ac_pwd ;;
  1672. [\\/]* | ?:[\\/]* ) # Absolute name.
  1673. ac_srcdir=$srcdir$ac_dir_suffix;
  1674. ac_top_srcdir=$srcdir
  1675. ac_abs_top_srcdir=$srcdir ;;
  1676. *) # Relative name.
  1677. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1678. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1679. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1680. esac
  1681. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1682. cd "$ac_dir" || { ac_status=$?; continue; }
  1683. # Check for guested configure.
  1684. if test -f "$ac_srcdir/configure.gnu"; then
  1685. echo &&
  1686. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1687. elif test -f "$ac_srcdir/configure"; then
  1688. echo &&
  1689. $SHELL "$ac_srcdir/configure" --help=recursive
  1690. else
  1691. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1692. fi || ac_status=$?
  1693. cd "$ac_pwd" || { ac_status=$?; break; }
  1694. done
  1695. fi
  1696. test -n "$ac_init_help" && exit $ac_status
  1697. if $ac_init_version; then
  1698. cat <<\_ACEOF
  1699. configure
  1700. generated by GNU Autoconf 2.69
  1701. Copyright (C) 2012 Free Software Foundation, Inc.
  1702. This configure script is free software; the Free Software Foundation
  1703. gives unlimited permission to copy, distribute and modify it.
  1704. _ACEOF
  1705. exit
  1706. fi
  1707. ## ------------------------ ##
  1708. ## Autoconf initialization. ##
  1709. ## ------------------------ ##
  1710. # ac_fn_c_try_compile LINENO
  1711. # --------------------------
  1712. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1713. ac_fn_c_try_compile ()
  1714. {
  1715. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1716. rm -f conftest.$ac_objext
  1717. if { { ac_try="$ac_compile"
  1718. case "(($ac_try" in
  1719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1720. *) ac_try_echo=$ac_try;;
  1721. esac
  1722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1723. $as_echo "$ac_try_echo"; } >&5
  1724. (eval "$ac_compile") 2>conftest.err
  1725. ac_status=$?
  1726. if test -s conftest.err; then
  1727. grep -v '^ *+' conftest.err >conftest.er1
  1728. cat conftest.er1 >&5
  1729. mv -f conftest.er1 conftest.err
  1730. fi
  1731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1732. test $ac_status = 0; } && {
  1733. test -z "$ac_c_werror_flag" ||
  1734. test ! -s conftest.err
  1735. } && test -s conftest.$ac_objext; then :
  1736. ac_retval=0
  1737. else
  1738. $as_echo "$as_me: failed program was:" >&5
  1739. sed 's/^/| /' conftest.$ac_ext >&5
  1740. ac_retval=1
  1741. fi
  1742. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1743. as_fn_set_status $ac_retval
  1744. } # ac_fn_c_try_compile
  1745. # ac_fn_c_try_link LINENO
  1746. # -----------------------
  1747. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1748. ac_fn_c_try_link ()
  1749. {
  1750. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1751. rm -f conftest.$ac_objext conftest$ac_exeext
  1752. if { { ac_try="$ac_link"
  1753. case "(($ac_try" in
  1754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1755. *) ac_try_echo=$ac_try;;
  1756. esac
  1757. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1758. $as_echo "$ac_try_echo"; } >&5
  1759. (eval "$ac_link") 2>conftest.err
  1760. ac_status=$?
  1761. if test -s conftest.err; then
  1762. grep -v '^ *+' conftest.err >conftest.er1
  1763. cat conftest.er1 >&5
  1764. mv -f conftest.er1 conftest.err
  1765. fi
  1766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1767. test $ac_status = 0; } && {
  1768. test -z "$ac_c_werror_flag" ||
  1769. test ! -s conftest.err
  1770. } && test -s conftest$ac_exeext && {
  1771. test "$cross_compiling" = yes ||
  1772. test -x conftest$ac_exeext
  1773. }; then :
  1774. ac_retval=0
  1775. else
  1776. $as_echo "$as_me: failed program was:" >&5
  1777. sed 's/^/| /' conftest.$ac_ext >&5
  1778. ac_retval=1
  1779. fi
  1780. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1781. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1782. # interfere with the next link command; also delete a directory that is
  1783. # left behind by Apple's compiler. We do this before executing the actions.
  1784. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1785. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1786. as_fn_set_status $ac_retval
  1787. } # ac_fn_c_try_link
  1788. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1789. # -------------------------------------------------------
  1790. # Tests whether HEADER exists and can be compiled using the include files in
  1791. # INCLUDES, setting the cache variable VAR accordingly.
  1792. ac_fn_c_check_header_compile ()
  1793. {
  1794. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1796. $as_echo_n "checking for $2... " >&6; }
  1797. if eval \${$3+:} false; then :
  1798. $as_echo_n "(cached) " >&6
  1799. else
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. $4
  1803. #include <$2>
  1804. _ACEOF
  1805. if ac_fn_c_try_compile "$LINENO"; then :
  1806. eval "$3=yes"
  1807. else
  1808. eval "$3=no"
  1809. fi
  1810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1811. fi
  1812. eval ac_res=\$$3
  1813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1814. $as_echo "$ac_res" >&6; }
  1815. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1816. } # ac_fn_c_check_header_compile
  1817. # ac_fn_c_try_cpp LINENO
  1818. # ----------------------
  1819. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1820. ac_fn_c_try_cpp ()
  1821. {
  1822. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1823. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1824. case "(($ac_try" in
  1825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1826. *) ac_try_echo=$ac_try;;
  1827. esac
  1828. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1829. $as_echo "$ac_try_echo"; } >&5
  1830. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1831. ac_status=$?
  1832. if test -s conftest.err; then
  1833. grep -v '^ *+' conftest.err >conftest.er1
  1834. cat conftest.er1 >&5
  1835. mv -f conftest.er1 conftest.err
  1836. fi
  1837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1838. test $ac_status = 0; } > conftest.i && {
  1839. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1840. test ! -s conftest.err
  1841. }; then :
  1842. ac_retval=0
  1843. else
  1844. $as_echo "$as_me: failed program was:" >&5
  1845. sed 's/^/| /' conftest.$ac_ext >&5
  1846. ac_retval=1
  1847. fi
  1848. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1849. as_fn_set_status $ac_retval
  1850. } # ac_fn_c_try_cpp
  1851. # ac_fn_c_try_run LINENO
  1852. # ----------------------
  1853. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1854. # that executables *can* be run.
  1855. ac_fn_c_try_run ()
  1856. {
  1857. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1858. if { { ac_try="$ac_link"
  1859. case "(($ac_try" in
  1860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1861. *) ac_try_echo=$ac_try;;
  1862. esac
  1863. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1864. $as_echo "$ac_try_echo"; } >&5
  1865. (eval "$ac_link") 2>&5
  1866. ac_status=$?
  1867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1868. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1869. { { case "(($ac_try" in
  1870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1871. *) ac_try_echo=$ac_try;;
  1872. esac
  1873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1874. $as_echo "$ac_try_echo"; } >&5
  1875. (eval "$ac_try") 2>&5
  1876. ac_status=$?
  1877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1878. test $ac_status = 0; }; }; then :
  1879. ac_retval=0
  1880. else
  1881. $as_echo "$as_me: program exited with status $ac_status" >&5
  1882. $as_echo "$as_me: failed program was:" >&5
  1883. sed 's/^/| /' conftest.$ac_ext >&5
  1884. ac_retval=$ac_status
  1885. fi
  1886. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1887. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1888. as_fn_set_status $ac_retval
  1889. } # ac_fn_c_try_run
  1890. # ac_fn_c_check_func LINENO FUNC VAR
  1891. # ----------------------------------
  1892. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1893. ac_fn_c_check_func ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1897. $as_echo_n "checking for $2... " >&6; }
  1898. if eval \${$3+:} false; then :
  1899. $as_echo_n "(cached) " >&6
  1900. else
  1901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1902. /* end confdefs.h. */
  1903. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1904. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1905. #define $2 innocuous_$2
  1906. /* System header to define __stub macros and hopefully few prototypes,
  1907. which can conflict with char $2 (); below.
  1908. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1909. <limits.h> exists even on freestanding compilers. */
  1910. #ifdef __STDC__
  1911. # include <limits.h>
  1912. #else
  1913. # include <assert.h>
  1914. #endif
  1915. #undef $2
  1916. /* Override any GCC internal prototype to avoid an error.
  1917. Use char because int might match the return type of a GCC
  1918. builtin and then its argument prototype would still apply. */
  1919. #ifdef __cplusplus
  1920. extern "C"
  1921. #endif
  1922. char $2 ();
  1923. /* The GNU C library defines this for functions which it implements
  1924. to always fail with ENOSYS. Some functions are actually named
  1925. something starting with __ and the normal name is an alias. */
  1926. #if defined __stub_$2 || defined __stub___$2
  1927. choke me
  1928. #endif
  1929. int
  1930. main ()
  1931. {
  1932. return $2 ();
  1933. ;
  1934. return 0;
  1935. }
  1936. _ACEOF
  1937. if ac_fn_c_try_link "$LINENO"; then :
  1938. eval "$3=yes"
  1939. else
  1940. eval "$3=no"
  1941. fi
  1942. rm -f core conftest.err conftest.$ac_objext \
  1943. conftest$ac_exeext conftest.$ac_ext
  1944. fi
  1945. eval ac_res=\$$3
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1947. $as_echo "$ac_res" >&6; }
  1948. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1949. } # ac_fn_c_check_func
  1950. # ac_fn_cxx_try_compile LINENO
  1951. # ----------------------------
  1952. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1953. ac_fn_cxx_try_compile ()
  1954. {
  1955. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1956. rm -f conftest.$ac_objext
  1957. if { { ac_try="$ac_compile"
  1958. case "(($ac_try" in
  1959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1960. *) ac_try_echo=$ac_try;;
  1961. esac
  1962. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1963. $as_echo "$ac_try_echo"; } >&5
  1964. (eval "$ac_compile") 2>conftest.err
  1965. ac_status=$?
  1966. if test -s conftest.err; then
  1967. grep -v '^ *+' conftest.err >conftest.er1
  1968. cat conftest.er1 >&5
  1969. mv -f conftest.er1 conftest.err
  1970. fi
  1971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1972. test $ac_status = 0; } && {
  1973. test -z "$ac_cxx_werror_flag" ||
  1974. test ! -s conftest.err
  1975. } && test -s conftest.$ac_objext; then :
  1976. ac_retval=0
  1977. else
  1978. $as_echo "$as_me: failed program was:" >&5
  1979. sed 's/^/| /' conftest.$ac_ext >&5
  1980. ac_retval=1
  1981. fi
  1982. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1983. as_fn_set_status $ac_retval
  1984. } # ac_fn_cxx_try_compile
  1985. # ac_fn_cxx_try_cpp LINENO
  1986. # ------------------------
  1987. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1988. ac_fn_cxx_try_cpp ()
  1989. {
  1990. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1991. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1992. case "(($ac_try" in
  1993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1994. *) ac_try_echo=$ac_try;;
  1995. esac
  1996. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1997. $as_echo "$ac_try_echo"; } >&5
  1998. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1999. ac_status=$?
  2000. if test -s conftest.err; then
  2001. grep -v '^ *+' conftest.err >conftest.er1
  2002. cat conftest.er1 >&5
  2003. mv -f conftest.er1 conftest.err
  2004. fi
  2005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2006. test $ac_status = 0; } > conftest.i && {
  2007. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2008. test ! -s conftest.err
  2009. }; then :
  2010. ac_retval=0
  2011. else
  2012. $as_echo "$as_me: failed program was:" >&5
  2013. sed 's/^/| /' conftest.$ac_ext >&5
  2014. ac_retval=1
  2015. fi
  2016. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2017. as_fn_set_status $ac_retval
  2018. } # ac_fn_cxx_try_cpp
  2019. # ac_fn_cxx_try_link LINENO
  2020. # -------------------------
  2021. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2022. ac_fn_cxx_try_link ()
  2023. {
  2024. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2025. rm -f conftest.$ac_objext conftest$ac_exeext
  2026. if { { ac_try="$ac_link"
  2027. case "(($ac_try" in
  2028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2029. *) ac_try_echo=$ac_try;;
  2030. esac
  2031. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2032. $as_echo "$ac_try_echo"; } >&5
  2033. (eval "$ac_link") 2>conftest.err
  2034. ac_status=$?
  2035. if test -s conftest.err; then
  2036. grep -v '^ *+' conftest.err >conftest.er1
  2037. cat conftest.er1 >&5
  2038. mv -f conftest.er1 conftest.err
  2039. fi
  2040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2041. test $ac_status = 0; } && {
  2042. test -z "$ac_cxx_werror_flag" ||
  2043. test ! -s conftest.err
  2044. } && test -s conftest$ac_exeext && {
  2045. test "$cross_compiling" = yes ||
  2046. test -x conftest$ac_exeext
  2047. }; then :
  2048. ac_retval=0
  2049. else
  2050. $as_echo "$as_me: failed program was:" >&5
  2051. sed 's/^/| /' conftest.$ac_ext >&5
  2052. ac_retval=1
  2053. fi
  2054. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2055. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2056. # interfere with the next link command; also delete a directory that is
  2057. # left behind by Apple's compiler. We do this before executing the actions.
  2058. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2059. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2060. as_fn_set_status $ac_retval
  2061. } # ac_fn_cxx_try_link
  2062. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2063. # -------------------------------------------------------
  2064. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2065. # the include files in INCLUDES and setting the cache variable VAR
  2066. # accordingly.
  2067. ac_fn_c_check_header_mongrel ()
  2068. {
  2069. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2070. if eval \${$3+:} false; then :
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2072. $as_echo_n "checking for $2... " >&6; }
  2073. if eval \${$3+:} false; then :
  2074. $as_echo_n "(cached) " >&6
  2075. fi
  2076. eval ac_res=\$$3
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2078. $as_echo "$ac_res" >&6; }
  2079. else
  2080. # Is the header compilable?
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2082. $as_echo_n "checking $2 usability... " >&6; }
  2083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2084. /* end confdefs.h. */
  2085. $4
  2086. #include <$2>
  2087. _ACEOF
  2088. if ac_fn_c_try_compile "$LINENO"; then :
  2089. ac_header_compiler=yes
  2090. else
  2091. ac_header_compiler=no
  2092. fi
  2093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2095. $as_echo "$ac_header_compiler" >&6; }
  2096. # Is the header present?
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2098. $as_echo_n "checking $2 presence... " >&6; }
  2099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2100. /* end confdefs.h. */
  2101. #include <$2>
  2102. _ACEOF
  2103. if ac_fn_c_try_cpp "$LINENO"; then :
  2104. ac_header_preproc=yes
  2105. else
  2106. ac_header_preproc=no
  2107. fi
  2108. rm -f conftest.err conftest.i conftest.$ac_ext
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2110. $as_echo "$ac_header_preproc" >&6; }
  2111. # So? What about this header?
  2112. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2113. yes:no: )
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2115. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2117. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2118. ;;
  2119. no:yes:* )
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2121. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2123. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2125. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2127. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2129. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2130. ;;
  2131. esac
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2133. $as_echo_n "checking for $2... " >&6; }
  2134. if eval \${$3+:} false; then :
  2135. $as_echo_n "(cached) " >&6
  2136. else
  2137. eval "$3=\$ac_header_compiler"
  2138. fi
  2139. eval ac_res=\$$3
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2141. $as_echo "$ac_res" >&6; }
  2142. fi
  2143. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2144. } # ac_fn_c_check_header_mongrel
  2145. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2146. # -------------------------------------------
  2147. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2148. # variable VAR accordingly.
  2149. ac_fn_c_check_type ()
  2150. {
  2151. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2153. $as_echo_n "checking for $2... " >&6; }
  2154. if eval \${$3+:} false; then :
  2155. $as_echo_n "(cached) " >&6
  2156. else
  2157. eval "$3=no"
  2158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2159. /* end confdefs.h. */
  2160. $4
  2161. int
  2162. main ()
  2163. {
  2164. if (sizeof ($2))
  2165. return 0;
  2166. ;
  2167. return 0;
  2168. }
  2169. _ACEOF
  2170. if ac_fn_c_try_compile "$LINENO"; then :
  2171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2172. /* end confdefs.h. */
  2173. $4
  2174. int
  2175. main ()
  2176. {
  2177. if (sizeof (($2)))
  2178. return 0;
  2179. ;
  2180. return 0;
  2181. }
  2182. _ACEOF
  2183. if ac_fn_c_try_compile "$LINENO"; then :
  2184. else
  2185. eval "$3=yes"
  2186. fi
  2187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2188. fi
  2189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2190. fi
  2191. eval ac_res=\$$3
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2193. $as_echo "$ac_res" >&6; }
  2194. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2195. } # ac_fn_c_check_type
  2196. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2197. # ----------------------------------------------------
  2198. # Tries to find if the field MEMBER exists in type AGGR, after including
  2199. # INCLUDES, setting cache variable VAR accordingly.
  2200. ac_fn_c_check_member ()
  2201. {
  2202. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2204. $as_echo_n "checking for $2.$3... " >&6; }
  2205. if eval \${$4+:} false; then :
  2206. $as_echo_n "(cached) " >&6
  2207. else
  2208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2209. /* end confdefs.h. */
  2210. $5
  2211. int
  2212. main ()
  2213. {
  2214. static $2 ac_aggr;
  2215. if (ac_aggr.$3)
  2216. return 0;
  2217. ;
  2218. return 0;
  2219. }
  2220. _ACEOF
  2221. if ac_fn_c_try_compile "$LINENO"; then :
  2222. eval "$4=yes"
  2223. else
  2224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2225. /* end confdefs.h. */
  2226. $5
  2227. int
  2228. main ()
  2229. {
  2230. static $2 ac_aggr;
  2231. if (sizeof ac_aggr.$3)
  2232. return 0;
  2233. ;
  2234. return 0;
  2235. }
  2236. _ACEOF
  2237. if ac_fn_c_try_compile "$LINENO"; then :
  2238. eval "$4=yes"
  2239. else
  2240. eval "$4=no"
  2241. fi
  2242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2243. fi
  2244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2245. fi
  2246. eval ac_res=\$$4
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2248. $as_echo "$ac_res" >&6; }
  2249. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2250. } # ac_fn_c_check_member
  2251. cat >config.log <<_ACEOF
  2252. This file contains any messages produced by compilers while
  2253. running configure, to aid debugging if configure makes a mistake.
  2254. It was created by $as_me, which was
  2255. generated by GNU Autoconf 2.69. Invocation command line was
  2256. $ $0 $@
  2257. _ACEOF
  2258. exec 5>>config.log
  2259. {
  2260. cat <<_ASUNAME
  2261. ## --------- ##
  2262. ## Platform. ##
  2263. ## --------- ##
  2264. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2265. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2266. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2267. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2268. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2269. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2270. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2271. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2272. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2273. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2274. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2275. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2276. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2277. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2278. _ASUNAME
  2279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2280. for as_dir in $PATH
  2281. do
  2282. IFS=$as_save_IFS
  2283. test -z "$as_dir" && as_dir=.
  2284. $as_echo "PATH: $as_dir"
  2285. done
  2286. IFS=$as_save_IFS
  2287. } >&5
  2288. cat >&5 <<_ACEOF
  2289. ## ----------- ##
  2290. ## Core tests. ##
  2291. ## ----------- ##
  2292. _ACEOF
  2293. # Keep a trace of the command line.
  2294. # Strip out --no-create and --no-recursion so they do not pile up.
  2295. # Strip out --silent because we don't want to record it for future runs.
  2296. # Also quote any args containing shell meta-characters.
  2297. # Make two passes to allow for proper duplicate-argument suppression.
  2298. ac_configure_args=
  2299. ac_configure_args0=
  2300. ac_configure_args1=
  2301. ac_must_keep_next=false
  2302. for ac_pass in 1 2
  2303. do
  2304. for ac_arg
  2305. do
  2306. case $ac_arg in
  2307. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2308. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2309. | -silent | --silent | --silen | --sile | --sil)
  2310. continue ;;
  2311. *\'*)
  2312. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2313. esac
  2314. case $ac_pass in
  2315. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2316. 2)
  2317. as_fn_append ac_configure_args1 " '$ac_arg'"
  2318. if test $ac_must_keep_next = true; then
  2319. ac_must_keep_next=false # Got value, back to normal.
  2320. else
  2321. case $ac_arg in
  2322. *=* | --config-cache | -C | -disable-* | --disable-* \
  2323. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2324. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2325. | -with-* | --with-* | -without-* | --without-* | --x)
  2326. case "$ac_configure_args0 " in
  2327. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2328. esac
  2329. ;;
  2330. -* ) ac_must_keep_next=true ;;
  2331. esac
  2332. fi
  2333. as_fn_append ac_configure_args " '$ac_arg'"
  2334. ;;
  2335. esac
  2336. done
  2337. done
  2338. { ac_configure_args0=; unset ac_configure_args0;}
  2339. { ac_configure_args1=; unset ac_configure_args1;}
  2340. # When interrupted or exit'd, cleanup temporary files, and complete
  2341. # config.log. We remove comments because anyway the quotes in there
  2342. # would cause problems or look ugly.
  2343. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2344. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2345. trap 'exit_status=$?
  2346. # Save into config.log some information that might help in debugging.
  2347. {
  2348. echo
  2349. $as_echo "## ---------------- ##
  2350. ## Cache variables. ##
  2351. ## ---------------- ##"
  2352. echo
  2353. # The following way of writing the cache mishandles newlines in values,
  2354. (
  2355. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2356. eval ac_val=\$$ac_var
  2357. case $ac_val in #(
  2358. *${as_nl}*)
  2359. case $ac_var in #(
  2360. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2361. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2362. esac
  2363. case $ac_var in #(
  2364. _ | IFS | as_nl) ;; #(
  2365. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2366. *) { eval $ac_var=; unset $ac_var;} ;;
  2367. esac ;;
  2368. esac
  2369. done
  2370. (set) 2>&1 |
  2371. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2372. *${as_nl}ac_space=\ *)
  2373. sed -n \
  2374. "s/'\''/'\''\\\\'\'''\''/g;
  2375. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2376. ;; #(
  2377. *)
  2378. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2379. ;;
  2380. esac |
  2381. sort
  2382. )
  2383. echo
  2384. $as_echo "## ----------------- ##
  2385. ## Output variables. ##
  2386. ## ----------------- ##"
  2387. echo
  2388. for ac_var in $ac_subst_vars
  2389. do
  2390. eval ac_val=\$$ac_var
  2391. case $ac_val in
  2392. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2393. esac
  2394. $as_echo "$ac_var='\''$ac_val'\''"
  2395. done | sort
  2396. echo
  2397. if test -n "$ac_subst_files"; then
  2398. $as_echo "## ------------------- ##
  2399. ## File substitutions. ##
  2400. ## ------------------- ##"
  2401. echo
  2402. for ac_var in $ac_subst_files
  2403. do
  2404. eval ac_val=\$$ac_var
  2405. case $ac_val in
  2406. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2407. esac
  2408. $as_echo "$ac_var='\''$ac_val'\''"
  2409. done | sort
  2410. echo
  2411. fi
  2412. if test -s confdefs.h; then
  2413. $as_echo "## ----------- ##
  2414. ## confdefs.h. ##
  2415. ## ----------- ##"
  2416. echo
  2417. cat confdefs.h
  2418. echo
  2419. fi
  2420. test "$ac_signal" != 0 &&
  2421. $as_echo "$as_me: caught signal $ac_signal"
  2422. $as_echo "$as_me: exit $exit_status"
  2423. } >&5
  2424. rm -f core *.core core.conftest.* &&
  2425. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2426. exit $exit_status
  2427. ' 0
  2428. for ac_signal in 1 2 13 15; do
  2429. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2430. done
  2431. ac_signal=0
  2432. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2433. rm -f -r conftest* confdefs.h
  2434. $as_echo "/* confdefs.h */" > confdefs.h
  2435. # Predefined preprocessor variables.
  2436. cat >>confdefs.h <<_ACEOF
  2437. #define PACKAGE_NAME "$PACKAGE_NAME"
  2438. _ACEOF
  2439. cat >>confdefs.h <<_ACEOF
  2440. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2441. _ACEOF
  2442. cat >>confdefs.h <<_ACEOF
  2443. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2444. _ACEOF
  2445. cat >>confdefs.h <<_ACEOF
  2446. #define PACKAGE_STRING "$PACKAGE_STRING"
  2447. _ACEOF
  2448. cat >>confdefs.h <<_ACEOF
  2449. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2450. _ACEOF
  2451. cat >>confdefs.h <<_ACEOF
  2452. #define PACKAGE_URL "$PACKAGE_URL"
  2453. _ACEOF
  2454. # Let the site file select an alternate cache file if it wants to.
  2455. # Prefer an explicitly selected file to automatically selected ones.
  2456. ac_site_file1=NONE
  2457. ac_site_file2=NONE
  2458. if test -n "$CONFIG_SITE"; then
  2459. # We do not want a PATH search for config.site.
  2460. case $CONFIG_SITE in #((
  2461. -*) ac_site_file1=./$CONFIG_SITE;;
  2462. */*) ac_site_file1=$CONFIG_SITE;;
  2463. *) ac_site_file1=./$CONFIG_SITE;;
  2464. esac
  2465. elif test "x$prefix" != xNONE; then
  2466. ac_site_file1=$prefix/share/config.site
  2467. ac_site_file2=$prefix/etc/config.site
  2468. else
  2469. ac_site_file1=$ac_default_prefix/share/config.site
  2470. ac_site_file2=$ac_default_prefix/etc/config.site
  2471. fi
  2472. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2473. do
  2474. test "x$ac_site_file" = xNONE && continue
  2475. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2477. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2478. sed 's/^/| /' "$ac_site_file" >&5
  2479. . "$ac_site_file" \
  2480. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2482. as_fn_error $? "failed to load site script $ac_site_file
  2483. See \`config.log' for more details" "$LINENO" 5; }
  2484. fi
  2485. done
  2486. if test -r "$cache_file"; then
  2487. # Some versions of bash will fail to source /dev/null (special files
  2488. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2489. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2491. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2492. case $cache_file in
  2493. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2494. *) . "./$cache_file";;
  2495. esac
  2496. fi
  2497. else
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2499. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2500. >$cache_file
  2501. fi
  2502. # Check that the precious variables saved in the cache have kept the same
  2503. # value.
  2504. ac_cache_corrupted=false
  2505. for ac_var in $ac_precious_vars; do
  2506. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2507. eval ac_new_set=\$ac_env_${ac_var}_set
  2508. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2509. eval ac_new_val=\$ac_env_${ac_var}_value
  2510. case $ac_old_set,$ac_new_set in
  2511. set,)
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2513. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2514. ac_cache_corrupted=: ;;
  2515. ,set)
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2517. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2518. ac_cache_corrupted=: ;;
  2519. ,);;
  2520. *)
  2521. if test "x$ac_old_val" != "x$ac_new_val"; then
  2522. # differences in whitespace do not lead to failure.
  2523. ac_old_val_w=`echo x $ac_old_val`
  2524. ac_new_val_w=`echo x $ac_new_val`
  2525. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2527. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2528. ac_cache_corrupted=:
  2529. else
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2531. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2532. eval $ac_var=\$ac_old_val
  2533. fi
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2535. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2537. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2538. fi;;
  2539. esac
  2540. # Pass precious variables to config.status.
  2541. if test "$ac_new_set" = set; then
  2542. case $ac_new_val in
  2543. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2544. *) ac_arg=$ac_var=$ac_new_val ;;
  2545. esac
  2546. case " $ac_configure_args " in
  2547. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2548. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2549. esac
  2550. fi
  2551. done
  2552. if $ac_cache_corrupted; then
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2554. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2556. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2557. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2558. fi
  2559. ## -------------------- ##
  2560. ## Main body of script. ##
  2561. ## -------------------- ##
  2562. ac_ext=c
  2563. ac_cpp='$CPP $CPPFLAGS'
  2564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2567. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2568. ac_aux_dir=
  2569. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2570. if test -f "$ac_dir/install-sh"; then
  2571. ac_aux_dir=$ac_dir
  2572. ac_install_sh="$ac_aux_dir/install-sh -c"
  2573. break
  2574. elif test -f "$ac_dir/install.sh"; then
  2575. ac_aux_dir=$ac_dir
  2576. ac_install_sh="$ac_aux_dir/install.sh -c"
  2577. break
  2578. elif test -f "$ac_dir/shtool"; then
  2579. ac_aux_dir=$ac_dir
  2580. ac_install_sh="$ac_aux_dir/shtool install -c"
  2581. break
  2582. fi
  2583. done
  2584. if test -z "$ac_aux_dir"; then
  2585. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2586. fi
  2587. # These three variables are undocumented and unsupported,
  2588. # and are intended to be withdrawn in a future Autoconf release.
  2589. # They can cause serious problems if a builder's source tree is in a directory
  2590. # whose full name contains unusual characters.
  2591. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2592. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2593. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2594. orig_CFLAGS="$CFLAGS"
  2595. #
  2596. # Making releases:
  2597. # Edit include/SDL_version.h and change the version, then:
  2598. # SDL_MICRO_VERSION += 1;
  2599. # SDL_INTERFACE_AGE += 1;
  2600. # SDL_BINARY_AGE += 1;
  2601. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2602. # if backwards compatibility has been broken,
  2603. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2604. #
  2605. SDL_MAJOR_VERSION=2
  2606. SDL_MINOR_VERSION=0
  2607. SDL_MICRO_VERSION=15
  2608. SDL_INTERFACE_AGE=1
  2609. SDL_BINARY_AGE=15
  2610. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2611. # libtool versioning
  2612. case `pwd` in
  2613. *\ * | *\ *)
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2615. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2616. esac
  2617. macro_version='2.4.2'
  2618. macro_revision='1.3337'
  2619. ltmain="$ac_aux_dir/ltmain.sh"
  2620. # Make sure we can run config.sub.
  2621. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2622. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2624. $as_echo_n "checking build system type... " >&6; }
  2625. if ${ac_cv_build+:} false; then :
  2626. $as_echo_n "(cached) " >&6
  2627. else
  2628. ac_build_alias=$build_alias
  2629. test "x$ac_build_alias" = x &&
  2630. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2631. test "x$ac_build_alias" = x &&
  2632. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2633. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2634. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2635. fi
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2637. $as_echo "$ac_cv_build" >&6; }
  2638. case $ac_cv_build in
  2639. *-*-*) ;;
  2640. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2641. esac
  2642. build=$ac_cv_build
  2643. ac_save_IFS=$IFS; IFS='-'
  2644. set x $ac_cv_build
  2645. shift
  2646. build_cpu=$1
  2647. build_vendor=$2
  2648. shift; shift
  2649. # Remember, the first character of IFS is used to create $*,
  2650. # except with old shells:
  2651. build_os=$*
  2652. IFS=$ac_save_IFS
  2653. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2655. $as_echo_n "checking host system type... " >&6; }
  2656. if ${ac_cv_host+:} false; then :
  2657. $as_echo_n "(cached) " >&6
  2658. else
  2659. if test "x$host_alias" = x; then
  2660. ac_cv_host=$ac_cv_build
  2661. else
  2662. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2663. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2664. fi
  2665. fi
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2667. $as_echo "$ac_cv_host" >&6; }
  2668. case $ac_cv_host in
  2669. *-*-*) ;;
  2670. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2671. esac
  2672. host=$ac_cv_host
  2673. ac_save_IFS=$IFS; IFS='-'
  2674. set x $ac_cv_host
  2675. shift
  2676. host_cpu=$1
  2677. host_vendor=$2
  2678. shift; shift
  2679. # Remember, the first character of IFS is used to create $*,
  2680. # except with old shells:
  2681. host_os=$*
  2682. IFS=$ac_save_IFS
  2683. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2684. # Backslashify metacharacters that are still active within
  2685. # double-quoted strings.
  2686. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2687. # Same as above, but do not quote variable references.
  2688. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2689. # Sed substitution to delay expansion of an escaped shell variable in a
  2690. # double_quote_subst'ed string.
  2691. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2692. # Sed substitution to delay expansion of an escaped single quote.
  2693. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2694. # Sed substitution to avoid accidental globbing in evaled expressions
  2695. no_glob_subst='s/\*/\\\*/g'
  2696. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2697. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2698. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2700. $as_echo_n "checking how to print strings... " >&6; }
  2701. # Test print first, because it will be a builtin if present.
  2702. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2703. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2704. ECHO='print -r --'
  2705. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2706. ECHO='printf %s\n'
  2707. else
  2708. # Use this function as a fallback that always works.
  2709. func_fallback_echo ()
  2710. {
  2711. eval 'cat <<_LTECHO_EOF
  2712. $1
  2713. _LTECHO_EOF'
  2714. }
  2715. ECHO='func_fallback_echo'
  2716. fi
  2717. # func_echo_all arg...
  2718. # Invoke $ECHO with all args, space-separated.
  2719. func_echo_all ()
  2720. {
  2721. $ECHO ""
  2722. }
  2723. case "$ECHO" in
  2724. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2725. $as_echo "printf" >&6; } ;;
  2726. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2727. $as_echo "print -r" >&6; } ;;
  2728. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2729. $as_echo "cat" >&6; } ;;
  2730. esac
  2731. ac_ext=c
  2732. ac_cpp='$CPP $CPPFLAGS'
  2733. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2734. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2735. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2736. if test -n "$ac_tool_prefix"; then
  2737. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2738. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2740. $as_echo_n "checking for $ac_word... " >&6; }
  2741. if ${ac_cv_prog_CC+:} false; then :
  2742. $as_echo_n "(cached) " >&6
  2743. else
  2744. if test -n "$CC"; then
  2745. ac_cv_prog_CC="$CC" # Let the user override the test.
  2746. else
  2747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2748. for as_dir in $PATH
  2749. do
  2750. IFS=$as_save_IFS
  2751. test -z "$as_dir" && as_dir=.
  2752. for ac_exec_ext in '' $ac_executable_extensions; do
  2753. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2754. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2756. break 2
  2757. fi
  2758. done
  2759. done
  2760. IFS=$as_save_IFS
  2761. fi
  2762. fi
  2763. CC=$ac_cv_prog_CC
  2764. if test -n "$CC"; then
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2766. $as_echo "$CC" >&6; }
  2767. else
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2769. $as_echo "no" >&6; }
  2770. fi
  2771. fi
  2772. if test -z "$ac_cv_prog_CC"; then
  2773. ac_ct_CC=$CC
  2774. # Extract the first word of "gcc", so it can be a program name with args.
  2775. set dummy gcc; ac_word=$2
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2777. $as_echo_n "checking for $ac_word... " >&6; }
  2778. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2779. $as_echo_n "(cached) " >&6
  2780. else
  2781. if test -n "$ac_ct_CC"; then
  2782. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2783. else
  2784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2785. for as_dir in $PATH
  2786. do
  2787. IFS=$as_save_IFS
  2788. test -z "$as_dir" && as_dir=.
  2789. for ac_exec_ext in '' $ac_executable_extensions; do
  2790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2791. ac_cv_prog_ac_ct_CC="gcc"
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2793. break 2
  2794. fi
  2795. done
  2796. done
  2797. IFS=$as_save_IFS
  2798. fi
  2799. fi
  2800. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2801. if test -n "$ac_ct_CC"; then
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2803. $as_echo "$ac_ct_CC" >&6; }
  2804. else
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2806. $as_echo "no" >&6; }
  2807. fi
  2808. if test "x$ac_ct_CC" = x; then
  2809. CC=""
  2810. else
  2811. case $cross_compiling:$ac_tool_warned in
  2812. yes:)
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2814. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2815. ac_tool_warned=yes ;;
  2816. esac
  2817. CC=$ac_ct_CC
  2818. fi
  2819. else
  2820. CC="$ac_cv_prog_CC"
  2821. fi
  2822. if test -z "$CC"; then
  2823. if test -n "$ac_tool_prefix"; then
  2824. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2825. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2827. $as_echo_n "checking for $ac_word... " >&6; }
  2828. if ${ac_cv_prog_CC+:} false; then :
  2829. $as_echo_n "(cached) " >&6
  2830. else
  2831. if test -n "$CC"; then
  2832. ac_cv_prog_CC="$CC" # Let the user override the test.
  2833. else
  2834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2835. for as_dir in $PATH
  2836. do
  2837. IFS=$as_save_IFS
  2838. test -z "$as_dir" && as_dir=.
  2839. for ac_exec_ext in '' $ac_executable_extensions; do
  2840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2841. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2843. break 2
  2844. fi
  2845. done
  2846. done
  2847. IFS=$as_save_IFS
  2848. fi
  2849. fi
  2850. CC=$ac_cv_prog_CC
  2851. if test -n "$CC"; then
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2853. $as_echo "$CC" >&6; }
  2854. else
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2856. $as_echo "no" >&6; }
  2857. fi
  2858. fi
  2859. fi
  2860. if test -z "$CC"; then
  2861. # Extract the first word of "cc", so it can be a program name with args.
  2862. set dummy cc; ac_word=$2
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2864. $as_echo_n "checking for $ac_word... " >&6; }
  2865. if ${ac_cv_prog_CC+:} false; then :
  2866. $as_echo_n "(cached) " >&6
  2867. else
  2868. if test -n "$CC"; then
  2869. ac_cv_prog_CC="$CC" # Let the user override the test.
  2870. else
  2871. ac_prog_rejected=no
  2872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2873. for as_dir in $PATH
  2874. do
  2875. IFS=$as_save_IFS
  2876. test -z "$as_dir" && as_dir=.
  2877. for ac_exec_ext in '' $ac_executable_extensions; do
  2878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2879. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2880. ac_prog_rejected=yes
  2881. continue
  2882. fi
  2883. ac_cv_prog_CC="cc"
  2884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2885. break 2
  2886. fi
  2887. done
  2888. done
  2889. IFS=$as_save_IFS
  2890. if test $ac_prog_rejected = yes; then
  2891. # We found a bogon in the path, so make sure we never use it.
  2892. set dummy $ac_cv_prog_CC
  2893. shift
  2894. if test $# != 0; then
  2895. # We chose a different compiler from the bogus one.
  2896. # However, it has the same basename, so the bogon will be chosen
  2897. # first if we set CC to just the basename; use the full file name.
  2898. shift
  2899. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2900. fi
  2901. fi
  2902. fi
  2903. fi
  2904. CC=$ac_cv_prog_CC
  2905. if test -n "$CC"; then
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2907. $as_echo "$CC" >&6; }
  2908. else
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2910. $as_echo "no" >&6; }
  2911. fi
  2912. fi
  2913. if test -z "$CC"; then
  2914. if test -n "$ac_tool_prefix"; then
  2915. for ac_prog in cl.exe
  2916. do
  2917. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2918. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2920. $as_echo_n "checking for $ac_word... " >&6; }
  2921. if ${ac_cv_prog_CC+:} false; then :
  2922. $as_echo_n "(cached) " >&6
  2923. else
  2924. if test -n "$CC"; then
  2925. ac_cv_prog_CC="$CC" # Let the user override the test.
  2926. else
  2927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2928. for as_dir in $PATH
  2929. do
  2930. IFS=$as_save_IFS
  2931. test -z "$as_dir" && as_dir=.
  2932. for ac_exec_ext in '' $ac_executable_extensions; do
  2933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2934. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2936. break 2
  2937. fi
  2938. done
  2939. done
  2940. IFS=$as_save_IFS
  2941. fi
  2942. fi
  2943. CC=$ac_cv_prog_CC
  2944. if test -n "$CC"; then
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2946. $as_echo "$CC" >&6; }
  2947. else
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2949. $as_echo "no" >&6; }
  2950. fi
  2951. test -n "$CC" && break
  2952. done
  2953. fi
  2954. if test -z "$CC"; then
  2955. ac_ct_CC=$CC
  2956. for ac_prog in cl.exe
  2957. do
  2958. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2959. set dummy $ac_prog; ac_word=$2
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2961. $as_echo_n "checking for $ac_word... " >&6; }
  2962. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2963. $as_echo_n "(cached) " >&6
  2964. else
  2965. if test -n "$ac_ct_CC"; then
  2966. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2967. else
  2968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2969. for as_dir in $PATH
  2970. do
  2971. IFS=$as_save_IFS
  2972. test -z "$as_dir" && as_dir=.
  2973. for ac_exec_ext in '' $ac_executable_extensions; do
  2974. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2975. ac_cv_prog_ac_ct_CC="$ac_prog"
  2976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2977. break 2
  2978. fi
  2979. done
  2980. done
  2981. IFS=$as_save_IFS
  2982. fi
  2983. fi
  2984. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2985. if test -n "$ac_ct_CC"; then
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2987. $as_echo "$ac_ct_CC" >&6; }
  2988. else
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2990. $as_echo "no" >&6; }
  2991. fi
  2992. test -n "$ac_ct_CC" && break
  2993. done
  2994. if test "x$ac_ct_CC" = x; then
  2995. CC=""
  2996. else
  2997. case $cross_compiling:$ac_tool_warned in
  2998. yes:)
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3000. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3001. ac_tool_warned=yes ;;
  3002. esac
  3003. CC=$ac_ct_CC
  3004. fi
  3005. fi
  3006. fi
  3007. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3009. as_fn_error $? "no acceptable C compiler found in \$PATH
  3010. See \`config.log' for more details" "$LINENO" 5; }
  3011. # Provide some information about the compiler.
  3012. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3013. set X $ac_compile
  3014. ac_compiler=$2
  3015. for ac_option in --version -v -V -qversion; do
  3016. { { ac_try="$ac_compiler $ac_option >&5"
  3017. case "(($ac_try" in
  3018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3019. *) ac_try_echo=$ac_try;;
  3020. esac
  3021. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3022. $as_echo "$ac_try_echo"; } >&5
  3023. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3024. ac_status=$?
  3025. if test -s conftest.err; then
  3026. sed '10a\
  3027. ... rest of stderr output deleted ...
  3028. 10q' conftest.err >conftest.er1
  3029. cat conftest.er1 >&5
  3030. fi
  3031. rm -f conftest.er1 conftest.err
  3032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3033. test $ac_status = 0; }
  3034. done
  3035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3036. /* end confdefs.h. */
  3037. int
  3038. main ()
  3039. {
  3040. ;
  3041. return 0;
  3042. }
  3043. _ACEOF
  3044. ac_clean_files_save=$ac_clean_files
  3045. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3046. # Try to create an executable without -o first, disregard a.out.
  3047. # It will help us diagnose broken compilers, and finding out an intuition
  3048. # of exeext.
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3050. $as_echo_n "checking whether the C compiler works... " >&6; }
  3051. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3052. # The possible output files:
  3053. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3054. ac_rmfiles=
  3055. for ac_file in $ac_files
  3056. do
  3057. case $ac_file in
  3058. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3059. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3060. esac
  3061. done
  3062. rm -f $ac_rmfiles
  3063. if { { ac_try="$ac_link_default"
  3064. case "(($ac_try" in
  3065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3066. *) ac_try_echo=$ac_try;;
  3067. esac
  3068. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3069. $as_echo "$ac_try_echo"; } >&5
  3070. (eval "$ac_link_default") 2>&5
  3071. ac_status=$?
  3072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3073. test $ac_status = 0; }; then :
  3074. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3075. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3076. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3077. # so that the user can short-circuit this test for compilers unknown to
  3078. # Autoconf.
  3079. for ac_file in $ac_files ''
  3080. do
  3081. test -f "$ac_file" || continue
  3082. case $ac_file in
  3083. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3084. ;;
  3085. [ab].out )
  3086. # We found the default executable, but exeext='' is most
  3087. # certainly right.
  3088. break;;
  3089. *.* )
  3090. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3091. then :; else
  3092. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3093. fi
  3094. # We set ac_cv_exeext here because the later test for it is not
  3095. # safe: cross compilers may not add the suffix if given an `-o'
  3096. # argument, so we may need to know it at that point already.
  3097. # Even if this section looks crufty: it has the advantage of
  3098. # actually working.
  3099. break;;
  3100. * )
  3101. break;;
  3102. esac
  3103. done
  3104. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3105. else
  3106. ac_file=''
  3107. fi
  3108. if test -z "$ac_file"; then :
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3110. $as_echo "no" >&6; }
  3111. $as_echo "$as_me: failed program was:" >&5
  3112. sed 's/^/| /' conftest.$ac_ext >&5
  3113. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3114. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3115. as_fn_error 77 "C compiler cannot create executables
  3116. See \`config.log' for more details" "$LINENO" 5; }
  3117. else
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3119. $as_echo "yes" >&6; }
  3120. fi
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3122. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3124. $as_echo "$ac_file" >&6; }
  3125. ac_exeext=$ac_cv_exeext
  3126. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3127. ac_clean_files=$ac_clean_files_save
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3129. $as_echo_n "checking for suffix of executables... " >&6; }
  3130. if { { ac_try="$ac_link"
  3131. case "(($ac_try" in
  3132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3133. *) ac_try_echo=$ac_try;;
  3134. esac
  3135. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3136. $as_echo "$ac_try_echo"; } >&5
  3137. (eval "$ac_link") 2>&5
  3138. ac_status=$?
  3139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3140. test $ac_status = 0; }; then :
  3141. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3142. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3143. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3144. # `rm'.
  3145. for ac_file in conftest.exe conftest conftest.*; do
  3146. test -f "$ac_file" || continue
  3147. case $ac_file in
  3148. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3149. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3150. break;;
  3151. * ) break;;
  3152. esac
  3153. done
  3154. else
  3155. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3156. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3157. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3158. See \`config.log' for more details" "$LINENO" 5; }
  3159. fi
  3160. rm -f conftest conftest$ac_cv_exeext
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3162. $as_echo "$ac_cv_exeext" >&6; }
  3163. rm -f conftest.$ac_ext
  3164. EXEEXT=$ac_cv_exeext
  3165. ac_exeext=$EXEEXT
  3166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3167. /* end confdefs.h. */
  3168. #include <stdio.h>
  3169. int
  3170. main ()
  3171. {
  3172. FILE *f = fopen ("conftest.out", "w");
  3173. return ferror (f) || fclose (f) != 0;
  3174. ;
  3175. return 0;
  3176. }
  3177. _ACEOF
  3178. ac_clean_files="$ac_clean_files conftest.out"
  3179. # Check that the compiler produces executables we can run. If not, either
  3180. # the compiler is broken, or we cross compile.
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3182. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3183. if test "$cross_compiling" != yes; then
  3184. { { ac_try="$ac_link"
  3185. case "(($ac_try" in
  3186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3187. *) ac_try_echo=$ac_try;;
  3188. esac
  3189. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3190. $as_echo "$ac_try_echo"; } >&5
  3191. (eval "$ac_link") 2>&5
  3192. ac_status=$?
  3193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3194. test $ac_status = 0; }
  3195. if { ac_try='./conftest$ac_cv_exeext'
  3196. { { case "(($ac_try" in
  3197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3198. *) ac_try_echo=$ac_try;;
  3199. esac
  3200. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3201. $as_echo "$ac_try_echo"; } >&5
  3202. (eval "$ac_try") 2>&5
  3203. ac_status=$?
  3204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3205. test $ac_status = 0; }; }; then
  3206. cross_compiling=no
  3207. else
  3208. if test "$cross_compiling" = maybe; then
  3209. cross_compiling=yes
  3210. else
  3211. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3213. as_fn_error $? "cannot run C compiled programs.
  3214. If you meant to cross compile, use \`--host'.
  3215. See \`config.log' for more details" "$LINENO" 5; }
  3216. fi
  3217. fi
  3218. fi
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3220. $as_echo "$cross_compiling" >&6; }
  3221. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3222. ac_clean_files=$ac_clean_files_save
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3224. $as_echo_n "checking for suffix of object files... " >&6; }
  3225. if ${ac_cv_objext+:} false; then :
  3226. $as_echo_n "(cached) " >&6
  3227. else
  3228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3229. /* end confdefs.h. */
  3230. int
  3231. main ()
  3232. {
  3233. ;
  3234. return 0;
  3235. }
  3236. _ACEOF
  3237. rm -f conftest.o conftest.obj
  3238. if { { ac_try="$ac_compile"
  3239. case "(($ac_try" in
  3240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3241. *) ac_try_echo=$ac_try;;
  3242. esac
  3243. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3244. $as_echo "$ac_try_echo"; } >&5
  3245. (eval "$ac_compile") 2>&5
  3246. ac_status=$?
  3247. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3248. test $ac_status = 0; }; then :
  3249. for ac_file in conftest.o conftest.obj conftest.*; do
  3250. test -f "$ac_file" || continue;
  3251. case $ac_file in
  3252. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3253. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3254. break;;
  3255. esac
  3256. done
  3257. else
  3258. $as_echo "$as_me: failed program was:" >&5
  3259. sed 's/^/| /' conftest.$ac_ext >&5
  3260. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3261. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3262. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3263. See \`config.log' for more details" "$LINENO" 5; }
  3264. fi
  3265. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3266. fi
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3268. $as_echo "$ac_cv_objext" >&6; }
  3269. OBJEXT=$ac_cv_objext
  3270. ac_objext=$OBJEXT
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3272. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3273. if ${ac_cv_c_compiler_gnu+:} false; then :
  3274. $as_echo_n "(cached) " >&6
  3275. else
  3276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3277. /* end confdefs.h. */
  3278. int
  3279. main ()
  3280. {
  3281. #ifndef __GNUC__
  3282. choke me
  3283. #endif
  3284. ;
  3285. return 0;
  3286. }
  3287. _ACEOF
  3288. if ac_fn_c_try_compile "$LINENO"; then :
  3289. ac_compiler_gnu=yes
  3290. else
  3291. ac_compiler_gnu=no
  3292. fi
  3293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3294. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3295. fi
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3297. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3298. if test $ac_compiler_gnu = yes; then
  3299. GCC=yes
  3300. else
  3301. GCC=
  3302. fi
  3303. ac_test_CFLAGS=${CFLAGS+set}
  3304. ac_save_CFLAGS=$CFLAGS
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3306. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3307. if ${ac_cv_prog_cc_g+:} false; then :
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. ac_save_c_werror_flag=$ac_c_werror_flag
  3311. ac_c_werror_flag=yes
  3312. ac_cv_prog_cc_g=no
  3313. CFLAGS="-g"
  3314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3315. /* end confdefs.h. */
  3316. int
  3317. main ()
  3318. {
  3319. ;
  3320. return 0;
  3321. }
  3322. _ACEOF
  3323. if ac_fn_c_try_compile "$LINENO"; then :
  3324. ac_cv_prog_cc_g=yes
  3325. else
  3326. CFLAGS=""
  3327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3328. /* end confdefs.h. */
  3329. int
  3330. main ()
  3331. {
  3332. ;
  3333. return 0;
  3334. }
  3335. _ACEOF
  3336. if ac_fn_c_try_compile "$LINENO"; then :
  3337. else
  3338. ac_c_werror_flag=$ac_save_c_werror_flag
  3339. CFLAGS="-g"
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. int
  3343. main ()
  3344. {
  3345. ;
  3346. return 0;
  3347. }
  3348. _ACEOF
  3349. if ac_fn_c_try_compile "$LINENO"; then :
  3350. ac_cv_prog_cc_g=yes
  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. fi
  3356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3357. ac_c_werror_flag=$ac_save_c_werror_flag
  3358. fi
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3360. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3361. if test "$ac_test_CFLAGS" = set; then
  3362. CFLAGS=$ac_save_CFLAGS
  3363. elif test $ac_cv_prog_cc_g = yes; then
  3364. if test "$GCC" = yes; then
  3365. CFLAGS="-g -O2"
  3366. else
  3367. CFLAGS="-g"
  3368. fi
  3369. else
  3370. if test "$GCC" = yes; then
  3371. CFLAGS="-O2"
  3372. else
  3373. CFLAGS=
  3374. fi
  3375. fi
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3377. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3378. if ${ac_cv_prog_cc_c89+:} false; then :
  3379. $as_echo_n "(cached) " >&6
  3380. else
  3381. ac_cv_prog_cc_c89=no
  3382. ac_save_CC=$CC
  3383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3384. /* end confdefs.h. */
  3385. #include <stdarg.h>
  3386. #include <stdio.h>
  3387. struct stat;
  3388. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3389. struct buf { int x; };
  3390. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3391. static char *e (p, i)
  3392. char **p;
  3393. int i;
  3394. {
  3395. return p[i];
  3396. }
  3397. static char *f (char * (*g) (char **, int), char **p, ...)
  3398. {
  3399. char *s;
  3400. va_list v;
  3401. va_start (v,p);
  3402. s = g (p, va_arg (v,int));
  3403. va_end (v);
  3404. return s;
  3405. }
  3406. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3407. function prototypes and stuff, but not '\xHH' hex character constants.
  3408. These don't provoke an error unfortunately, instead are silently treated
  3409. as 'x'. The following induces an error, until -std is added to get
  3410. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3411. array size at least. It's necessary to write '\x00'==0 to get something
  3412. that's true only with -std. */
  3413. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3414. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3415. inside strings and character constants. */
  3416. #define FOO(x) 'x'
  3417. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3418. int test (int i, double x);
  3419. struct s1 {int (*f) (int a);};
  3420. struct s2 {int (*f) (double a);};
  3421. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3422. int argc;
  3423. char **argv;
  3424. int
  3425. main ()
  3426. {
  3427. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3428. ;
  3429. return 0;
  3430. }
  3431. _ACEOF
  3432. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3433. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3434. do
  3435. CC="$ac_save_CC $ac_arg"
  3436. if ac_fn_c_try_compile "$LINENO"; then :
  3437. ac_cv_prog_cc_c89=$ac_arg
  3438. fi
  3439. rm -f core conftest.err conftest.$ac_objext
  3440. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3441. done
  3442. rm -f conftest.$ac_ext
  3443. CC=$ac_save_CC
  3444. fi
  3445. # AC_CACHE_VAL
  3446. case "x$ac_cv_prog_cc_c89" in
  3447. x)
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3449. $as_echo "none needed" >&6; } ;;
  3450. xno)
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3452. $as_echo "unsupported" >&6; } ;;
  3453. *)
  3454. CC="$CC $ac_cv_prog_cc_c89"
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3456. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3457. esac
  3458. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3459. fi
  3460. ac_ext=c
  3461. ac_cpp='$CPP $CPPFLAGS'
  3462. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3463. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3464. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3466. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3467. if ${ac_cv_path_SED+:} false; then :
  3468. $as_echo_n "(cached) " >&6
  3469. else
  3470. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3471. for ac_i in 1 2 3 4 5 6 7; do
  3472. ac_script="$ac_script$as_nl$ac_script"
  3473. done
  3474. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3475. { ac_script=; unset ac_script;}
  3476. if test -z "$SED"; then
  3477. ac_path_SED_found=false
  3478. # Loop through the user's path and test for each of PROGNAME-LIST
  3479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3480. for as_dir in $PATH
  3481. do
  3482. IFS=$as_save_IFS
  3483. test -z "$as_dir" && as_dir=.
  3484. for ac_prog in sed gsed; do
  3485. for ac_exec_ext in '' $ac_executable_extensions; do
  3486. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3487. as_fn_executable_p "$ac_path_SED" || continue
  3488. # Check for GNU ac_path_SED and select it if it is found.
  3489. # Check for GNU $ac_path_SED
  3490. case `"$ac_path_SED" --version 2>&1` in
  3491. *GNU*)
  3492. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3493. *)
  3494. ac_count=0
  3495. $as_echo_n 0123456789 >"conftest.in"
  3496. while :
  3497. do
  3498. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3499. mv "conftest.tmp" "conftest.in"
  3500. cp "conftest.in" "conftest.nl"
  3501. $as_echo '' >> "conftest.nl"
  3502. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3503. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3504. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3505. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3506. # Best one so far, save it but keep looking for a better one
  3507. ac_cv_path_SED="$ac_path_SED"
  3508. ac_path_SED_max=$ac_count
  3509. fi
  3510. # 10*(2^10) chars as input seems more than enough
  3511. test $ac_count -gt 10 && break
  3512. done
  3513. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3514. esac
  3515. $ac_path_SED_found && break 3
  3516. done
  3517. done
  3518. done
  3519. IFS=$as_save_IFS
  3520. if test -z "$ac_cv_path_SED"; then
  3521. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3522. fi
  3523. else
  3524. ac_cv_path_SED=$SED
  3525. fi
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3528. $as_echo "$ac_cv_path_SED" >&6; }
  3529. SED="$ac_cv_path_SED"
  3530. rm -f conftest.sed
  3531. test -z "$SED" && SED=sed
  3532. Xsed="$SED -e 1s/^X//"
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3534. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3535. if ${ac_cv_path_GREP+:} false; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. if test -z "$GREP"; then
  3539. ac_path_GREP_found=false
  3540. # Loop through the user's path and test for each of PROGNAME-LIST
  3541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3542. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3543. do
  3544. IFS=$as_save_IFS
  3545. test -z "$as_dir" && as_dir=.
  3546. for ac_prog in grep ggrep; do
  3547. for ac_exec_ext in '' $ac_executable_extensions; do
  3548. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3549. as_fn_executable_p "$ac_path_GREP" || continue
  3550. # Check for GNU ac_path_GREP and select it if it is found.
  3551. # Check for GNU $ac_path_GREP
  3552. case `"$ac_path_GREP" --version 2>&1` in
  3553. *GNU*)
  3554. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3555. *)
  3556. ac_count=0
  3557. $as_echo_n 0123456789 >"conftest.in"
  3558. while :
  3559. do
  3560. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3561. mv "conftest.tmp" "conftest.in"
  3562. cp "conftest.in" "conftest.nl"
  3563. $as_echo 'GREP' >> "conftest.nl"
  3564. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3565. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3566. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3567. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3568. # Best one so far, save it but keep looking for a better one
  3569. ac_cv_path_GREP="$ac_path_GREP"
  3570. ac_path_GREP_max=$ac_count
  3571. fi
  3572. # 10*(2^10) chars as input seems more than enough
  3573. test $ac_count -gt 10 && break
  3574. done
  3575. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3576. esac
  3577. $ac_path_GREP_found && break 3
  3578. done
  3579. done
  3580. done
  3581. IFS=$as_save_IFS
  3582. if test -z "$ac_cv_path_GREP"; then
  3583. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3584. fi
  3585. else
  3586. ac_cv_path_GREP=$GREP
  3587. fi
  3588. fi
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3590. $as_echo "$ac_cv_path_GREP" >&6; }
  3591. GREP="$ac_cv_path_GREP"
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3593. $as_echo_n "checking for egrep... " >&6; }
  3594. if ${ac_cv_path_EGREP+:} false; then :
  3595. $as_echo_n "(cached) " >&6
  3596. else
  3597. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3598. then ac_cv_path_EGREP="$GREP -E"
  3599. else
  3600. if test -z "$EGREP"; then
  3601. ac_path_EGREP_found=false
  3602. # Loop through the user's path and test for each of PROGNAME-LIST
  3603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3604. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3605. do
  3606. IFS=$as_save_IFS
  3607. test -z "$as_dir" && as_dir=.
  3608. for ac_prog in egrep; do
  3609. for ac_exec_ext in '' $ac_executable_extensions; do
  3610. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3611. as_fn_executable_p "$ac_path_EGREP" || continue
  3612. # Check for GNU ac_path_EGREP and select it if it is found.
  3613. # Check for GNU $ac_path_EGREP
  3614. case `"$ac_path_EGREP" --version 2>&1` in
  3615. *GNU*)
  3616. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3617. *)
  3618. ac_count=0
  3619. $as_echo_n 0123456789 >"conftest.in"
  3620. while :
  3621. do
  3622. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3623. mv "conftest.tmp" "conftest.in"
  3624. cp "conftest.in" "conftest.nl"
  3625. $as_echo 'EGREP' >> "conftest.nl"
  3626. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3627. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3628. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3629. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3630. # Best one so far, save it but keep looking for a better one
  3631. ac_cv_path_EGREP="$ac_path_EGREP"
  3632. ac_path_EGREP_max=$ac_count
  3633. fi
  3634. # 10*(2^10) chars as input seems more than enough
  3635. test $ac_count -gt 10 && break
  3636. done
  3637. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3638. esac
  3639. $ac_path_EGREP_found && break 3
  3640. done
  3641. done
  3642. done
  3643. IFS=$as_save_IFS
  3644. if test -z "$ac_cv_path_EGREP"; then
  3645. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3646. fi
  3647. else
  3648. ac_cv_path_EGREP=$EGREP
  3649. fi
  3650. fi
  3651. fi
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3653. $as_echo "$ac_cv_path_EGREP" >&6; }
  3654. EGREP="$ac_cv_path_EGREP"
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3656. $as_echo_n "checking for fgrep... " >&6; }
  3657. if ${ac_cv_path_FGREP+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3661. then ac_cv_path_FGREP="$GREP -F"
  3662. else
  3663. if test -z "$FGREP"; then
  3664. ac_path_FGREP_found=false
  3665. # Loop through the user's path and test for each of PROGNAME-LIST
  3666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3667. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3668. do
  3669. IFS=$as_save_IFS
  3670. test -z "$as_dir" && as_dir=.
  3671. for ac_prog in fgrep; do
  3672. for ac_exec_ext in '' $ac_executable_extensions; do
  3673. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3674. as_fn_executable_p "$ac_path_FGREP" || continue
  3675. # Check for GNU ac_path_FGREP and select it if it is found.
  3676. # Check for GNU $ac_path_FGREP
  3677. case `"$ac_path_FGREP" --version 2>&1` in
  3678. *GNU*)
  3679. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3680. *)
  3681. ac_count=0
  3682. $as_echo_n 0123456789 >"conftest.in"
  3683. while :
  3684. do
  3685. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3686. mv "conftest.tmp" "conftest.in"
  3687. cp "conftest.in" "conftest.nl"
  3688. $as_echo 'FGREP' >> "conftest.nl"
  3689. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3690. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3691. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3692. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3693. # Best one so far, save it but keep looking for a better one
  3694. ac_cv_path_FGREP="$ac_path_FGREP"
  3695. ac_path_FGREP_max=$ac_count
  3696. fi
  3697. # 10*(2^10) chars as input seems more than enough
  3698. test $ac_count -gt 10 && break
  3699. done
  3700. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3701. esac
  3702. $ac_path_FGREP_found && break 3
  3703. done
  3704. done
  3705. done
  3706. IFS=$as_save_IFS
  3707. if test -z "$ac_cv_path_FGREP"; then
  3708. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3709. fi
  3710. else
  3711. ac_cv_path_FGREP=$FGREP
  3712. fi
  3713. fi
  3714. fi
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3716. $as_echo "$ac_cv_path_FGREP" >&6; }
  3717. FGREP="$ac_cv_path_FGREP"
  3718. test -z "$GREP" && GREP=grep
  3719. # Check whether --with-gnu-ld was given.
  3720. if test "${with_gnu_ld+set}" = set; then :
  3721. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3722. else
  3723. with_gnu_ld=no
  3724. fi
  3725. ac_prog=ld
  3726. if test "$GCC" = yes; then
  3727. # Check if gcc -print-prog-name=ld gives a path.
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3729. $as_echo_n "checking for ld used by $CC... " >&6; }
  3730. case $host in
  3731. *-*-mingw*)
  3732. # gcc leaves a trailing carriage return which upsets mingw
  3733. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3734. *)
  3735. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3736. esac
  3737. case $ac_prog in
  3738. # Accept absolute paths.
  3739. [\\/]* | ?:[\\/]*)
  3740. re_direlt='/[^/][^/]*/\.\./'
  3741. # Canonicalize the pathname of ld
  3742. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3743. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3744. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3745. done
  3746. test -z "$LD" && LD="$ac_prog"
  3747. ;;
  3748. "")
  3749. # If it fails, then pretend we aren't using GCC.
  3750. ac_prog=ld
  3751. ;;
  3752. *)
  3753. # If it is relative, then search for the first ld in PATH.
  3754. with_gnu_ld=unknown
  3755. ;;
  3756. esac
  3757. elif test "$with_gnu_ld" = yes; then
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3759. $as_echo_n "checking for GNU ld... " >&6; }
  3760. else
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3762. $as_echo_n "checking for non-GNU ld... " >&6; }
  3763. fi
  3764. if ${lt_cv_path_LD+:} false; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. if test -z "$LD"; then
  3768. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3769. for ac_dir in $PATH; do
  3770. IFS="$lt_save_ifs"
  3771. test -z "$ac_dir" && ac_dir=.
  3772. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3773. lt_cv_path_LD="$ac_dir/$ac_prog"
  3774. # Check to see if the program is GNU ld. I'd rather use --version,
  3775. # but apparently some variants of GNU ld only accept -v.
  3776. # Break only if it was the GNU/non-GNU ld that we prefer.
  3777. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3778. *GNU* | *'with BFD'*)
  3779. test "$with_gnu_ld" != no && break
  3780. ;;
  3781. *)
  3782. test "$with_gnu_ld" != yes && break
  3783. ;;
  3784. esac
  3785. fi
  3786. done
  3787. IFS="$lt_save_ifs"
  3788. else
  3789. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3790. fi
  3791. fi
  3792. LD="$lt_cv_path_LD"
  3793. if test -n "$LD"; then
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3795. $as_echo "$LD" >&6; }
  3796. else
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3798. $as_echo "no" >&6; }
  3799. fi
  3800. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3802. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3803. if ${lt_cv_prog_gnu_ld+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3807. case `$LD -v 2>&1 </dev/null` in
  3808. *GNU* | *'with BFD'*)
  3809. lt_cv_prog_gnu_ld=yes
  3810. ;;
  3811. *)
  3812. lt_cv_prog_gnu_ld=no
  3813. ;;
  3814. esac
  3815. fi
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3817. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3818. with_gnu_ld=$lt_cv_prog_gnu_ld
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3820. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3821. if ${lt_cv_path_NM+:} false; then :
  3822. $as_echo_n "(cached) " >&6
  3823. else
  3824. if test -n "$NM"; then
  3825. # Let the user override the test.
  3826. lt_cv_path_NM="$NM"
  3827. else
  3828. lt_nm_to_check="${ac_tool_prefix}nm"
  3829. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3830. lt_nm_to_check="$lt_nm_to_check nm"
  3831. fi
  3832. for lt_tmp_nm in $lt_nm_to_check; do
  3833. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3834. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3835. IFS="$lt_save_ifs"
  3836. test -z "$ac_dir" && ac_dir=.
  3837. tmp_nm="$ac_dir/$lt_tmp_nm"
  3838. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3839. # Check to see if the nm accepts a BSD-compat flag.
  3840. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3841. # nm: unknown option "B" ignored
  3842. # Tru64's nm complains that /dev/null is an invalid object file
  3843. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3844. */dev/null* | *'Invalid file or object type'*)
  3845. lt_cv_path_NM="$tmp_nm -B"
  3846. break
  3847. ;;
  3848. *)
  3849. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3850. */dev/null*)
  3851. lt_cv_path_NM="$tmp_nm -p"
  3852. break
  3853. ;;
  3854. *)
  3855. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3856. continue # so that we can try to find one that supports BSD flags
  3857. ;;
  3858. esac
  3859. ;;
  3860. esac
  3861. fi
  3862. done
  3863. IFS="$lt_save_ifs"
  3864. done
  3865. : ${lt_cv_path_NM=no}
  3866. fi
  3867. fi
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3869. $as_echo "$lt_cv_path_NM" >&6; }
  3870. if test "$lt_cv_path_NM" != "no"; then
  3871. NM="$lt_cv_path_NM"
  3872. else
  3873. # Didn't find any BSD compatible name lister, look for dumpbin.
  3874. if test -n "$DUMPBIN"; then :
  3875. # Let the user override the test.
  3876. else
  3877. if test -n "$ac_tool_prefix"; then
  3878. for ac_prog in dumpbin "link -dump"
  3879. do
  3880. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3881. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3883. $as_echo_n "checking for $ac_word... " >&6; }
  3884. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3885. $as_echo_n "(cached) " >&6
  3886. else
  3887. if test -n "$DUMPBIN"; then
  3888. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3889. else
  3890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3891. for as_dir in $PATH
  3892. do
  3893. IFS=$as_save_IFS
  3894. test -z "$as_dir" && as_dir=.
  3895. for ac_exec_ext in '' $ac_executable_extensions; do
  3896. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3897. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3899. break 2
  3900. fi
  3901. done
  3902. done
  3903. IFS=$as_save_IFS
  3904. fi
  3905. fi
  3906. DUMPBIN=$ac_cv_prog_DUMPBIN
  3907. if test -n "$DUMPBIN"; then
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3909. $as_echo "$DUMPBIN" >&6; }
  3910. else
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3912. $as_echo "no" >&6; }
  3913. fi
  3914. test -n "$DUMPBIN" && break
  3915. done
  3916. fi
  3917. if test -z "$DUMPBIN"; then
  3918. ac_ct_DUMPBIN=$DUMPBIN
  3919. for ac_prog in dumpbin "link -dump"
  3920. do
  3921. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3922. set dummy $ac_prog; ac_word=$2
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3924. $as_echo_n "checking for $ac_word... " >&6; }
  3925. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3926. $as_echo_n "(cached) " >&6
  3927. else
  3928. if test -n "$ac_ct_DUMPBIN"; then
  3929. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3930. else
  3931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3932. for as_dir in $PATH
  3933. do
  3934. IFS=$as_save_IFS
  3935. test -z "$as_dir" && as_dir=.
  3936. for ac_exec_ext in '' $ac_executable_extensions; do
  3937. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3938. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3940. break 2
  3941. fi
  3942. done
  3943. done
  3944. IFS=$as_save_IFS
  3945. fi
  3946. fi
  3947. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3948. if test -n "$ac_ct_DUMPBIN"; then
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3950. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3951. else
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3953. $as_echo "no" >&6; }
  3954. fi
  3955. test -n "$ac_ct_DUMPBIN" && break
  3956. done
  3957. if test "x$ac_ct_DUMPBIN" = x; then
  3958. DUMPBIN=":"
  3959. else
  3960. case $cross_compiling:$ac_tool_warned in
  3961. yes:)
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3963. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3964. ac_tool_warned=yes ;;
  3965. esac
  3966. DUMPBIN=$ac_ct_DUMPBIN
  3967. fi
  3968. fi
  3969. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3970. *COFF*)
  3971. DUMPBIN="$DUMPBIN -symbols"
  3972. ;;
  3973. *)
  3974. DUMPBIN=:
  3975. ;;
  3976. esac
  3977. fi
  3978. if test "$DUMPBIN" != ":"; then
  3979. NM="$DUMPBIN"
  3980. fi
  3981. fi
  3982. test -z "$NM" && NM=nm
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3984. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3985. if ${lt_cv_nm_interface+:} false; then :
  3986. $as_echo_n "(cached) " >&6
  3987. else
  3988. lt_cv_nm_interface="BSD nm"
  3989. echo "int some_variable = 0;" > conftest.$ac_ext
  3990. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3991. (eval "$ac_compile" 2>conftest.err)
  3992. cat conftest.err >&5
  3993. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3994. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3995. cat conftest.err >&5
  3996. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3997. cat conftest.out >&5
  3998. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3999. lt_cv_nm_interface="MS dumpbin"
  4000. fi
  4001. rm -f conftest*
  4002. fi
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4004. $as_echo "$lt_cv_nm_interface" >&6; }
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4006. $as_echo_n "checking whether ln -s works... " >&6; }
  4007. LN_S=$as_ln_s
  4008. if test "$LN_S" = "ln -s"; then
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4010. $as_echo "yes" >&6; }
  4011. else
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4013. $as_echo "no, using $LN_S" >&6; }
  4014. fi
  4015. # find the maximum length of command line arguments
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4017. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4018. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. i=0
  4022. teststring="ABCD"
  4023. case $build_os in
  4024. msdosdjgpp*)
  4025. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4026. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4027. # during glob expansion). Even if it were fixed, the result of this
  4028. # check would be larger than it should be.
  4029. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4030. ;;
  4031. gnu*)
  4032. # Under GNU Hurd, this test is not required because there is
  4033. # no limit to the length of command line arguments.
  4034. # Libtool will interpret -1 as no limit whatsoever
  4035. lt_cv_sys_max_cmd_len=-1;
  4036. ;;
  4037. cygwin* | mingw* | cegcc*)
  4038. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4039. # about 5 minutes as the teststring grows exponentially.
  4040. # Worse, since 9x/ME are not pre-emptively multitasking,
  4041. # you end up with a "frozen" computer, even though with patience
  4042. # the test eventually succeeds (with a max line length of 256k).
  4043. # Instead, let's just punt: use the minimum linelength reported by
  4044. # all of the supported platforms: 8192 (on NT/2K/XP).
  4045. lt_cv_sys_max_cmd_len=8192;
  4046. ;;
  4047. mint*)
  4048. # On MiNT this can take a long time and run out of memory.
  4049. lt_cv_sys_max_cmd_len=8192;
  4050. ;;
  4051. amigaos*)
  4052. # On AmigaOS with pdksh, this test takes hours, literally.
  4053. # So we just punt and use a minimum line length of 8192.
  4054. lt_cv_sys_max_cmd_len=8192;
  4055. ;;
  4056. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4057. # This has been around since 386BSD, at least. Likely further.
  4058. if test -x /sbin/sysctl; then
  4059. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4060. elif test -x /usr/sbin/sysctl; then
  4061. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4062. else
  4063. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4064. fi
  4065. # And add a safety zone
  4066. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4067. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4068. ;;
  4069. interix*)
  4070. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4071. lt_cv_sys_max_cmd_len=196608
  4072. ;;
  4073. os2*)
  4074. # The test takes a long time on OS/2.
  4075. lt_cv_sys_max_cmd_len=8192
  4076. ;;
  4077. osf*)
  4078. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4079. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4080. # nice to cause kernel panics so lets avoid the loop below.
  4081. # First set a reasonable default.
  4082. lt_cv_sys_max_cmd_len=16384
  4083. #
  4084. if test -x /sbin/sysconfig; then
  4085. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4086. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4087. esac
  4088. fi
  4089. ;;
  4090. sco3.2v5*)
  4091. lt_cv_sys_max_cmd_len=102400
  4092. ;;
  4093. sysv5* | sco5v6* | sysv4.2uw2*)
  4094. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4095. if test -n "$kargmax"; then
  4096. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4097. else
  4098. lt_cv_sys_max_cmd_len=32768
  4099. fi
  4100. ;;
  4101. *)
  4102. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4103. if test -n "$lt_cv_sys_max_cmd_len"; then
  4104. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4105. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4106. else
  4107. # Make teststring a little bigger before we do anything with it.
  4108. # a 1K string should be a reasonable start.
  4109. for i in 1 2 3 4 5 6 7 8 ; do
  4110. teststring=$teststring$teststring
  4111. done
  4112. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4113. # If test is not a shell built-in, we'll probably end up computing a
  4114. # maximum length that is only half of the actual maximum length, but
  4115. # we can't tell.
  4116. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4117. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4118. test $i != 17 # 1/2 MB should be enough
  4119. do
  4120. i=`expr $i + 1`
  4121. teststring=$teststring$teststring
  4122. done
  4123. # Only check the string length outside the loop.
  4124. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4125. teststring=
  4126. # Add a significant safety factor because C++ compilers can tack on
  4127. # massive amounts of additional arguments before passing them to the
  4128. # linker. It appears as though 1/2 is a usable value.
  4129. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4130. fi
  4131. ;;
  4132. esac
  4133. fi
  4134. if test -n $lt_cv_sys_max_cmd_len ; then
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4136. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4137. else
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4139. $as_echo "none" >&6; }
  4140. fi
  4141. max_cmd_len=$lt_cv_sys_max_cmd_len
  4142. : ${CP="cp -f"}
  4143. : ${MV="mv -f"}
  4144. : ${RM="rm -f"}
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4146. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4147. # Try some XSI features
  4148. xsi_shell=no
  4149. ( _lt_dummy="a/b/c"
  4150. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4151. = c,a/b,b/c, \
  4152. && eval 'test $(( 1 + 1 )) -eq 2 \
  4153. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4154. && xsi_shell=yes
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4156. $as_echo "$xsi_shell" >&6; }
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4158. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4159. lt_shell_append=no
  4160. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4161. >/dev/null 2>&1 \
  4162. && lt_shell_append=yes
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4164. $as_echo "$lt_shell_append" >&6; }
  4165. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4166. lt_unset=unset
  4167. else
  4168. lt_unset=false
  4169. fi
  4170. # test EBCDIC or ASCII
  4171. case `echo X|tr X '\101'` in
  4172. A) # ASCII based system
  4173. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4174. lt_SP2NL='tr \040 \012'
  4175. lt_NL2SP='tr \015\012 \040\040'
  4176. ;;
  4177. *) # EBCDIC based system
  4178. lt_SP2NL='tr \100 \n'
  4179. lt_NL2SP='tr \r\n \100\100'
  4180. ;;
  4181. esac
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4183. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4184. if ${lt_cv_to_host_file_cmd+:} false; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. case $host in
  4188. *-*-mingw* )
  4189. case $build in
  4190. *-*-mingw* ) # actually msys
  4191. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4192. ;;
  4193. *-*-cygwin* )
  4194. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4195. ;;
  4196. * ) # otherwise, assume *nix
  4197. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4198. ;;
  4199. esac
  4200. ;;
  4201. *-*-cygwin* )
  4202. case $build in
  4203. *-*-mingw* ) # actually msys
  4204. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4205. ;;
  4206. *-*-cygwin* )
  4207. lt_cv_to_host_file_cmd=func_convert_file_noop
  4208. ;;
  4209. * ) # otherwise, assume *nix
  4210. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4211. ;;
  4212. esac
  4213. ;;
  4214. * ) # unhandled hosts (and "normal" native builds)
  4215. lt_cv_to_host_file_cmd=func_convert_file_noop
  4216. ;;
  4217. esac
  4218. fi
  4219. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4221. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4223. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4224. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. #assume ordinary cross tools, or native build.
  4228. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4229. case $host in
  4230. *-*-mingw* )
  4231. case $build in
  4232. *-*-mingw* ) # actually msys
  4233. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4234. ;;
  4235. esac
  4236. ;;
  4237. esac
  4238. fi
  4239. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4241. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4243. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4244. if ${lt_cv_ld_reload_flag+:} false; then :
  4245. $as_echo_n "(cached) " >&6
  4246. else
  4247. lt_cv_ld_reload_flag='-r'
  4248. fi
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4250. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4251. reload_flag=$lt_cv_ld_reload_flag
  4252. case $reload_flag in
  4253. "" | " "*) ;;
  4254. *) reload_flag=" $reload_flag" ;;
  4255. esac
  4256. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4257. case $host_os in
  4258. cygwin* | mingw* | pw32* | cegcc*)
  4259. if test "$GCC" != yes; then
  4260. reload_cmds=false
  4261. fi
  4262. ;;
  4263. darwin*)
  4264. if test "$GCC" = yes; then
  4265. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4266. else
  4267. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4268. fi
  4269. ;;
  4270. esac
  4271. if test -n "$ac_tool_prefix"; then
  4272. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4273. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4275. $as_echo_n "checking for $ac_word... " >&6; }
  4276. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4277. $as_echo_n "(cached) " >&6
  4278. else
  4279. if test -n "$OBJDUMP"; then
  4280. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4281. else
  4282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4283. for as_dir in $PATH
  4284. do
  4285. IFS=$as_save_IFS
  4286. test -z "$as_dir" && as_dir=.
  4287. for ac_exec_ext in '' $ac_executable_extensions; do
  4288. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4289. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4291. break 2
  4292. fi
  4293. done
  4294. done
  4295. IFS=$as_save_IFS
  4296. fi
  4297. fi
  4298. OBJDUMP=$ac_cv_prog_OBJDUMP
  4299. if test -n "$OBJDUMP"; then
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4301. $as_echo "$OBJDUMP" >&6; }
  4302. else
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4304. $as_echo "no" >&6; }
  4305. fi
  4306. fi
  4307. if test -z "$ac_cv_prog_OBJDUMP"; then
  4308. ac_ct_OBJDUMP=$OBJDUMP
  4309. # Extract the first word of "objdump", so it can be a program name with args.
  4310. set dummy objdump; ac_word=$2
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4312. $as_echo_n "checking for $ac_word... " >&6; }
  4313. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4314. $as_echo_n "(cached) " >&6
  4315. else
  4316. if test -n "$ac_ct_OBJDUMP"; then
  4317. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4318. else
  4319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4320. for as_dir in $PATH
  4321. do
  4322. IFS=$as_save_IFS
  4323. test -z "$as_dir" && as_dir=.
  4324. for ac_exec_ext in '' $ac_executable_extensions; do
  4325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4326. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4328. break 2
  4329. fi
  4330. done
  4331. done
  4332. IFS=$as_save_IFS
  4333. fi
  4334. fi
  4335. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4336. if test -n "$ac_ct_OBJDUMP"; then
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4338. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4339. else
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4341. $as_echo "no" >&6; }
  4342. fi
  4343. if test "x$ac_ct_OBJDUMP" = x; then
  4344. OBJDUMP="false"
  4345. else
  4346. case $cross_compiling:$ac_tool_warned in
  4347. yes:)
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4349. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4350. ac_tool_warned=yes ;;
  4351. esac
  4352. OBJDUMP=$ac_ct_OBJDUMP
  4353. fi
  4354. else
  4355. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4356. fi
  4357. test -z "$OBJDUMP" && OBJDUMP=objdump
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4359. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4360. if ${lt_cv_deplibs_check_method+:} false; then :
  4361. $as_echo_n "(cached) " >&6
  4362. else
  4363. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4364. lt_cv_file_magic_test_file=
  4365. lt_cv_deplibs_check_method='unknown'
  4366. # Need to set the preceding variable on all platforms that support
  4367. # interlibrary dependencies.
  4368. # 'none' -- dependencies not supported.
  4369. # `unknown' -- same as none, but documents that we really don't know.
  4370. # 'pass_all' -- all dependencies passed with no checks.
  4371. # 'test_compile' -- check by making test program.
  4372. # 'file_magic [[regex]]' -- check by looking for files in library path
  4373. # which responds to the $file_magic_cmd with a given extended regex.
  4374. # If you have `file' or equivalent on your system and you're not sure
  4375. # whether `pass_all' will *always* work, you probably want this one.
  4376. case $host_os in
  4377. aix[4-9]*)
  4378. lt_cv_deplibs_check_method=pass_all
  4379. ;;
  4380. beos*)
  4381. lt_cv_deplibs_check_method=pass_all
  4382. ;;
  4383. bsdi[45]*)
  4384. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4385. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4386. lt_cv_file_magic_test_file=/shlib/libc.so
  4387. ;;
  4388. cygwin*)
  4389. # func_win32_libid is a shell function defined in ltmain.sh
  4390. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4391. lt_cv_file_magic_cmd='func_win32_libid'
  4392. lt_cv_deplibs_check_method=pass_all
  4393. ;;
  4394. mingw* | pw32*)
  4395. # Base MSYS/MinGW do not provide the 'file' command needed by
  4396. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4397. # unless we find 'file', for example because we are cross-compiling.
  4398. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4399. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4400. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4401. lt_cv_file_magic_cmd='func_win32_libid'
  4402. else
  4403. # Keep this pattern in sync with the one in func_win32_libid.
  4404. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4405. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4406. fi
  4407. lt_cv_deplibs_check_method=pass_all
  4408. ;;
  4409. cegcc*)
  4410. # use the weaker test based on 'objdump'. See mingw*.
  4411. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4412. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4413. ;;
  4414. darwin* | rhapsody*)
  4415. lt_cv_deplibs_check_method=pass_all
  4416. ;;
  4417. freebsd* | dragonfly*)
  4418. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4419. case $host_cpu in
  4420. i*86 )
  4421. # Not sure whether the presence of OpenBSD here was a mistake.
  4422. # Let's accept both of them until this is cleared up.
  4423. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4424. lt_cv_file_magic_cmd=/usr/bin/file
  4425. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4426. ;;
  4427. esac
  4428. else
  4429. lt_cv_deplibs_check_method=pass_all
  4430. fi
  4431. ;;
  4432. gnu*)
  4433. lt_cv_deplibs_check_method=pass_all
  4434. ;;
  4435. haiku*)
  4436. lt_cv_deplibs_check_method=pass_all
  4437. ;;
  4438. hpux10.20* | hpux11*)
  4439. lt_cv_file_magic_cmd=/usr/bin/file
  4440. case $host_cpu in
  4441. ia64*)
  4442. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4443. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4444. ;;
  4445. hppa*64*)
  4446. 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]'
  4447. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4448. ;;
  4449. *)
  4450. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4451. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4452. ;;
  4453. esac
  4454. ;;
  4455. interix[3-9]*)
  4456. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4457. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4458. ;;
  4459. irix5* | irix6* | nonstopux*)
  4460. case $LD in
  4461. *-32|*"-32 ") libmagic=32-bit;;
  4462. *-n32|*"-n32 ") libmagic=N32;;
  4463. *-64|*"-64 ") libmagic=64-bit;;
  4464. *) libmagic=never-match;;
  4465. esac
  4466. lt_cv_deplibs_check_method=pass_all
  4467. ;;
  4468. # This must be glibc/ELF.
  4469. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4470. lt_cv_deplibs_check_method=pass_all
  4471. ;;
  4472. netbsd*)
  4473. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4474. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4475. else
  4476. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4477. fi
  4478. ;;
  4479. newos6*)
  4480. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4481. lt_cv_file_magic_cmd=/usr/bin/file
  4482. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4483. ;;
  4484. *nto* | *qnx*)
  4485. lt_cv_deplibs_check_method=pass_all
  4486. ;;
  4487. openbsd*)
  4488. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4489. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4490. else
  4491. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4492. fi
  4493. ;;
  4494. osf3* | osf4* | osf5*)
  4495. lt_cv_deplibs_check_method=pass_all
  4496. ;;
  4497. rdos*)
  4498. lt_cv_deplibs_check_method=pass_all
  4499. ;;
  4500. solaris*)
  4501. lt_cv_deplibs_check_method=pass_all
  4502. ;;
  4503. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4504. lt_cv_deplibs_check_method=pass_all
  4505. ;;
  4506. sysv4 | sysv4.3*)
  4507. case $host_vendor in
  4508. motorola)
  4509. 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]'
  4510. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4511. ;;
  4512. ncr)
  4513. lt_cv_deplibs_check_method=pass_all
  4514. ;;
  4515. sequent)
  4516. lt_cv_file_magic_cmd='/bin/file'
  4517. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4518. ;;
  4519. sni)
  4520. lt_cv_file_magic_cmd='/bin/file'
  4521. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4522. lt_cv_file_magic_test_file=/lib/libc.so
  4523. ;;
  4524. siemens)
  4525. lt_cv_deplibs_check_method=pass_all
  4526. ;;
  4527. pc)
  4528. lt_cv_deplibs_check_method=pass_all
  4529. ;;
  4530. esac
  4531. ;;
  4532. tpf*)
  4533. lt_cv_deplibs_check_method=pass_all
  4534. ;;
  4535. esac
  4536. fi
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4538. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4539. file_magic_glob=
  4540. want_nocaseglob=no
  4541. if test "$build" = "$host"; then
  4542. case $host_os in
  4543. mingw* | pw32*)
  4544. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4545. want_nocaseglob=yes
  4546. else
  4547. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4548. fi
  4549. ;;
  4550. esac
  4551. fi
  4552. file_magic_cmd=$lt_cv_file_magic_cmd
  4553. deplibs_check_method=$lt_cv_deplibs_check_method
  4554. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4555. if test -n "$ac_tool_prefix"; then
  4556. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4557. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4559. $as_echo_n "checking for $ac_word... " >&6; }
  4560. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. if test -n "$DLLTOOL"; then
  4564. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4565. else
  4566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4567. for as_dir in $PATH
  4568. do
  4569. IFS=$as_save_IFS
  4570. test -z "$as_dir" && as_dir=.
  4571. for ac_exec_ext in '' $ac_executable_extensions; do
  4572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4573. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4575. break 2
  4576. fi
  4577. done
  4578. done
  4579. IFS=$as_save_IFS
  4580. fi
  4581. fi
  4582. DLLTOOL=$ac_cv_prog_DLLTOOL
  4583. if test -n "$DLLTOOL"; then
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4585. $as_echo "$DLLTOOL" >&6; }
  4586. else
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4588. $as_echo "no" >&6; }
  4589. fi
  4590. fi
  4591. if test -z "$ac_cv_prog_DLLTOOL"; then
  4592. ac_ct_DLLTOOL=$DLLTOOL
  4593. # Extract the first word of "dlltool", so it can be a program name with args.
  4594. set dummy dlltool; ac_word=$2
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4596. $as_echo_n "checking for $ac_word... " >&6; }
  4597. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4598. $as_echo_n "(cached) " >&6
  4599. else
  4600. if test -n "$ac_ct_DLLTOOL"; then
  4601. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4602. else
  4603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4604. for as_dir in $PATH
  4605. do
  4606. IFS=$as_save_IFS
  4607. test -z "$as_dir" && as_dir=.
  4608. for ac_exec_ext in '' $ac_executable_extensions; do
  4609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4610. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4612. break 2
  4613. fi
  4614. done
  4615. done
  4616. IFS=$as_save_IFS
  4617. fi
  4618. fi
  4619. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4620. if test -n "$ac_ct_DLLTOOL"; then
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4622. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4623. else
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4625. $as_echo "no" >&6; }
  4626. fi
  4627. if test "x$ac_ct_DLLTOOL" = x; then
  4628. DLLTOOL="false"
  4629. else
  4630. case $cross_compiling:$ac_tool_warned in
  4631. yes:)
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4634. ac_tool_warned=yes ;;
  4635. esac
  4636. DLLTOOL=$ac_ct_DLLTOOL
  4637. fi
  4638. else
  4639. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4640. fi
  4641. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4643. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4644. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4648. case $host_os in
  4649. cygwin* | mingw* | pw32* | cegcc*)
  4650. # two different shell functions defined in ltmain.sh
  4651. # decide which to use based on capabilities of $DLLTOOL
  4652. case `$DLLTOOL --help 2>&1` in
  4653. *--identify-strict*)
  4654. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4655. ;;
  4656. *)
  4657. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4658. ;;
  4659. esac
  4660. ;;
  4661. *)
  4662. # fallback: assume linklib IS sharedlib
  4663. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4664. ;;
  4665. esac
  4666. fi
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4668. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4669. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4670. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4671. if test -n "$ac_tool_prefix"; then
  4672. for ac_prog in ar
  4673. do
  4674. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4675. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4677. $as_echo_n "checking for $ac_word... " >&6; }
  4678. if ${ac_cv_prog_AR+:} false; then :
  4679. $as_echo_n "(cached) " >&6
  4680. else
  4681. if test -n "$AR"; then
  4682. ac_cv_prog_AR="$AR" # Let the user override the test.
  4683. else
  4684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4685. for as_dir in $PATH
  4686. do
  4687. IFS=$as_save_IFS
  4688. test -z "$as_dir" && as_dir=.
  4689. for ac_exec_ext in '' $ac_executable_extensions; do
  4690. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4691. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4693. break 2
  4694. fi
  4695. done
  4696. done
  4697. IFS=$as_save_IFS
  4698. fi
  4699. fi
  4700. AR=$ac_cv_prog_AR
  4701. if test -n "$AR"; then
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4703. $as_echo "$AR" >&6; }
  4704. else
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4706. $as_echo "no" >&6; }
  4707. fi
  4708. test -n "$AR" && break
  4709. done
  4710. fi
  4711. if test -z "$AR"; then
  4712. ac_ct_AR=$AR
  4713. for ac_prog in ar
  4714. do
  4715. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4716. set dummy $ac_prog; ac_word=$2
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4718. $as_echo_n "checking for $ac_word... " >&6; }
  4719. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. if test -n "$ac_ct_AR"; then
  4723. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4724. else
  4725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4726. for as_dir in $PATH
  4727. do
  4728. IFS=$as_save_IFS
  4729. test -z "$as_dir" && as_dir=.
  4730. for ac_exec_ext in '' $ac_executable_extensions; do
  4731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4732. ac_cv_prog_ac_ct_AR="$ac_prog"
  4733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4734. break 2
  4735. fi
  4736. done
  4737. done
  4738. IFS=$as_save_IFS
  4739. fi
  4740. fi
  4741. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4742. if test -n "$ac_ct_AR"; then
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4744. $as_echo "$ac_ct_AR" >&6; }
  4745. else
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4747. $as_echo "no" >&6; }
  4748. fi
  4749. test -n "$ac_ct_AR" && break
  4750. done
  4751. if test "x$ac_ct_AR" = x; then
  4752. AR="false"
  4753. else
  4754. case $cross_compiling:$ac_tool_warned in
  4755. yes:)
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4757. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4758. ac_tool_warned=yes ;;
  4759. esac
  4760. AR=$ac_ct_AR
  4761. fi
  4762. fi
  4763. : ${AR=ar}
  4764. : ${AR_FLAGS=cru}
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4766. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4767. if ${lt_cv_ar_at_file+:} false; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. lt_cv_ar_at_file=no
  4771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4772. /* end confdefs.h. */
  4773. int
  4774. main ()
  4775. {
  4776. ;
  4777. return 0;
  4778. }
  4779. _ACEOF
  4780. if ac_fn_c_try_compile "$LINENO"; then :
  4781. echo conftest.$ac_objext > conftest.lst
  4782. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4783. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4784. (eval $lt_ar_try) 2>&5
  4785. ac_status=$?
  4786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4787. test $ac_status = 0; }
  4788. if test "$ac_status" -eq 0; then
  4789. # Ensure the archiver fails upon bogus file names.
  4790. rm -f conftest.$ac_objext libconftest.a
  4791. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4792. (eval $lt_ar_try) 2>&5
  4793. ac_status=$?
  4794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4795. test $ac_status = 0; }
  4796. if test "$ac_status" -ne 0; then
  4797. lt_cv_ar_at_file=@
  4798. fi
  4799. fi
  4800. rm -f conftest.* libconftest.a
  4801. fi
  4802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4803. fi
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4805. $as_echo "$lt_cv_ar_at_file" >&6; }
  4806. if test "x$lt_cv_ar_at_file" = xno; then
  4807. archiver_list_spec=
  4808. else
  4809. archiver_list_spec=$lt_cv_ar_at_file
  4810. fi
  4811. if test -n "$ac_tool_prefix"; then
  4812. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4813. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4815. $as_echo_n "checking for $ac_word... " >&6; }
  4816. if ${ac_cv_prog_STRIP+:} false; then :
  4817. $as_echo_n "(cached) " >&6
  4818. else
  4819. if test -n "$STRIP"; then
  4820. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4821. else
  4822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4823. for as_dir in $PATH
  4824. do
  4825. IFS=$as_save_IFS
  4826. test -z "$as_dir" && as_dir=.
  4827. for ac_exec_ext in '' $ac_executable_extensions; do
  4828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4829. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4831. break 2
  4832. fi
  4833. done
  4834. done
  4835. IFS=$as_save_IFS
  4836. fi
  4837. fi
  4838. STRIP=$ac_cv_prog_STRIP
  4839. if test -n "$STRIP"; then
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4841. $as_echo "$STRIP" >&6; }
  4842. else
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4844. $as_echo "no" >&6; }
  4845. fi
  4846. fi
  4847. if test -z "$ac_cv_prog_STRIP"; then
  4848. ac_ct_STRIP=$STRIP
  4849. # Extract the first word of "strip", so it can be a program name with args.
  4850. set dummy strip; ac_word=$2
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4852. $as_echo_n "checking for $ac_word... " >&6; }
  4853. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. if test -n "$ac_ct_STRIP"; then
  4857. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4858. else
  4859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4860. for as_dir in $PATH
  4861. do
  4862. IFS=$as_save_IFS
  4863. test -z "$as_dir" && as_dir=.
  4864. for ac_exec_ext in '' $ac_executable_extensions; do
  4865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4866. ac_cv_prog_ac_ct_STRIP="strip"
  4867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4868. break 2
  4869. fi
  4870. done
  4871. done
  4872. IFS=$as_save_IFS
  4873. fi
  4874. fi
  4875. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4876. if test -n "$ac_ct_STRIP"; then
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4878. $as_echo "$ac_ct_STRIP" >&6; }
  4879. else
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4881. $as_echo "no" >&6; }
  4882. fi
  4883. if test "x$ac_ct_STRIP" = x; then
  4884. STRIP=":"
  4885. else
  4886. case $cross_compiling:$ac_tool_warned in
  4887. yes:)
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4889. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4890. ac_tool_warned=yes ;;
  4891. esac
  4892. STRIP=$ac_ct_STRIP
  4893. fi
  4894. else
  4895. STRIP="$ac_cv_prog_STRIP"
  4896. fi
  4897. test -z "$STRIP" && STRIP=:
  4898. if test -n "$ac_tool_prefix"; then
  4899. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4900. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4902. $as_echo_n "checking for $ac_word... " >&6; }
  4903. if ${ac_cv_prog_RANLIB+:} false; then :
  4904. $as_echo_n "(cached) " >&6
  4905. else
  4906. if test -n "$RANLIB"; then
  4907. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4908. else
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH
  4911. do
  4912. IFS=$as_save_IFS
  4913. test -z "$as_dir" && as_dir=.
  4914. for ac_exec_ext in '' $ac_executable_extensions; do
  4915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4916. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4918. break 2
  4919. fi
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. fi
  4924. fi
  4925. RANLIB=$ac_cv_prog_RANLIB
  4926. if test -n "$RANLIB"; then
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4928. $as_echo "$RANLIB" >&6; }
  4929. else
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4931. $as_echo "no" >&6; }
  4932. fi
  4933. fi
  4934. if test -z "$ac_cv_prog_RANLIB"; then
  4935. ac_ct_RANLIB=$RANLIB
  4936. # Extract the first word of "ranlib", so it can be a program name with args.
  4937. set dummy ranlib; ac_word=$2
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4939. $as_echo_n "checking for $ac_word... " >&6; }
  4940. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4941. $as_echo_n "(cached) " >&6
  4942. else
  4943. if test -n "$ac_ct_RANLIB"; then
  4944. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4945. else
  4946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4947. for as_dir in $PATH
  4948. do
  4949. IFS=$as_save_IFS
  4950. test -z "$as_dir" && as_dir=.
  4951. for ac_exec_ext in '' $ac_executable_extensions; do
  4952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4953. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4955. break 2
  4956. fi
  4957. done
  4958. done
  4959. IFS=$as_save_IFS
  4960. fi
  4961. fi
  4962. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4963. if test -n "$ac_ct_RANLIB"; then
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4965. $as_echo "$ac_ct_RANLIB" >&6; }
  4966. else
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4968. $as_echo "no" >&6; }
  4969. fi
  4970. if test "x$ac_ct_RANLIB" = x; then
  4971. RANLIB=":"
  4972. else
  4973. case $cross_compiling:$ac_tool_warned in
  4974. yes:)
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4976. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4977. ac_tool_warned=yes ;;
  4978. esac
  4979. RANLIB=$ac_ct_RANLIB
  4980. fi
  4981. else
  4982. RANLIB="$ac_cv_prog_RANLIB"
  4983. fi
  4984. test -z "$RANLIB" && RANLIB=:
  4985. # Determine commands to create old-style static archives.
  4986. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4987. old_postinstall_cmds='chmod 644 $oldlib'
  4988. old_postuninstall_cmds=
  4989. if test -n "$RANLIB"; then
  4990. case $host_os in
  4991. openbsd*)
  4992. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4993. ;;
  4994. *)
  4995. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4996. ;;
  4997. esac
  4998. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4999. fi
  5000. case $host_os in
  5001. darwin*)
  5002. lock_old_archive_extraction=yes ;;
  5003. *)
  5004. lock_old_archive_extraction=no ;;
  5005. esac
  5006. for ac_prog in gawk mawk nawk awk
  5007. do
  5008. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5009. set dummy $ac_prog; ac_word=$2
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5011. $as_echo_n "checking for $ac_word... " >&6; }
  5012. if ${ac_cv_prog_AWK+:} false; then :
  5013. $as_echo_n "(cached) " >&6
  5014. else
  5015. if test -n "$AWK"; then
  5016. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5017. else
  5018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5019. for as_dir in $PATH
  5020. do
  5021. IFS=$as_save_IFS
  5022. test -z "$as_dir" && as_dir=.
  5023. for ac_exec_ext in '' $ac_executable_extensions; do
  5024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5025. ac_cv_prog_AWK="$ac_prog"
  5026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5027. break 2
  5028. fi
  5029. done
  5030. done
  5031. IFS=$as_save_IFS
  5032. fi
  5033. fi
  5034. AWK=$ac_cv_prog_AWK
  5035. if test -n "$AWK"; then
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5037. $as_echo "$AWK" >&6; }
  5038. else
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5040. $as_echo "no" >&6; }
  5041. fi
  5042. test -n "$AWK" && break
  5043. done
  5044. # If no C compiler was specified, use CC.
  5045. LTCC=${LTCC-"$CC"}
  5046. # If no C compiler flags were specified, use CFLAGS.
  5047. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5048. # Allow CC to be a program name with arguments.
  5049. compiler=$CC
  5050. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5052. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5053. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. # These are sane defaults that work on at least a few old systems.
  5057. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5058. # Character class describing NM global symbol codes.
  5059. symcode='[BCDEGRST]'
  5060. # Regexp to match symbols that can be accessed directly from C.
  5061. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5062. # Define system-specific variables.
  5063. case $host_os in
  5064. aix*)
  5065. symcode='[BCDT]'
  5066. ;;
  5067. cygwin* | mingw* | pw32* | cegcc*)
  5068. symcode='[ABCDGISTW]'
  5069. ;;
  5070. hpux*)
  5071. if test "$host_cpu" = ia64; then
  5072. symcode='[ABCDEGRST]'
  5073. fi
  5074. ;;
  5075. irix* | nonstopux*)
  5076. symcode='[BCDEGRST]'
  5077. ;;
  5078. osf*)
  5079. symcode='[BCDEGQRST]'
  5080. ;;
  5081. solaris*)
  5082. symcode='[BDRT]'
  5083. ;;
  5084. sco3.2v5*)
  5085. symcode='[DT]'
  5086. ;;
  5087. sysv4.2uw2*)
  5088. symcode='[DT]'
  5089. ;;
  5090. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5091. symcode='[ABDT]'
  5092. ;;
  5093. sysv4)
  5094. symcode='[DFNSTU]'
  5095. ;;
  5096. esac
  5097. # If we're using GNU nm, then use its standard symbol codes.
  5098. case `$NM -V 2>&1` in
  5099. *GNU* | *'with BFD'*)
  5100. symcode='[ABCDGIRSTW]' ;;
  5101. esac
  5102. # Transform an extracted symbol line into a proper C declaration.
  5103. # Some systems (esp. on ia64) link data and code symbols differently,
  5104. # so use this general approach.
  5105. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5106. # Transform an extracted symbol line into symbol name and symbol address
  5107. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5108. 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'"
  5109. # Handle CRLF in mingw tool chain
  5110. opt_cr=
  5111. case $build_os in
  5112. mingw*)
  5113. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5114. ;;
  5115. esac
  5116. # Try without a prefix underscore, then with it.
  5117. for ac_symprfx in "" "_"; do
  5118. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5119. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5120. # Write the raw and C identifiers.
  5121. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5122. # Fake it for dumpbin and say T for any non-static function
  5123. # and D for any global variable.
  5124. # Also find C++ and __fastcall symbols from MSVC++,
  5125. # which start with @ or ?.
  5126. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5127. " {last_section=section; section=\$ 3};"\
  5128. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5129. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5130. " \$ 0!~/External *\|/{next};"\
  5131. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5132. " {if(hide[section]) next};"\
  5133. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5134. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5135. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5136. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5137. " ' prfx=^$ac_symprfx"
  5138. else
  5139. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5140. fi
  5141. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5142. # Check to see that the pipe works correctly.
  5143. pipe_works=no
  5144. rm -f conftest*
  5145. cat > conftest.$ac_ext <<_LT_EOF
  5146. #ifdef __cplusplus
  5147. extern "C" {
  5148. #endif
  5149. char nm_test_var;
  5150. void nm_test_func(void);
  5151. void nm_test_func(void){}
  5152. #ifdef __cplusplus
  5153. }
  5154. #endif
  5155. int main(){nm_test_var='a';nm_test_func();return(0);}
  5156. _LT_EOF
  5157. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5158. (eval $ac_compile) 2>&5
  5159. ac_status=$?
  5160. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5161. test $ac_status = 0; }; then
  5162. # Now try to grab the symbols.
  5163. nlist=conftest.nm
  5164. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5165. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5166. ac_status=$?
  5167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5168. test $ac_status = 0; } && test -s "$nlist"; then
  5169. # Try sorting and uniquifying the output.
  5170. if sort "$nlist" | uniq > "$nlist"T; then
  5171. mv -f "$nlist"T "$nlist"
  5172. else
  5173. rm -f "$nlist"T
  5174. fi
  5175. # Make sure that we snagged all the symbols we need.
  5176. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5177. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5178. cat <<_LT_EOF > conftest.$ac_ext
  5179. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5180. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5181. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5182. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5183. # define LT_DLSYM_CONST
  5184. #elif defined(__osf__)
  5185. /* This system does not cope well with relocations in const data. */
  5186. # define LT_DLSYM_CONST
  5187. #else
  5188. # define LT_DLSYM_CONST const
  5189. #endif
  5190. #ifdef __cplusplus
  5191. extern "C" {
  5192. #endif
  5193. _LT_EOF
  5194. # Now generate the symbol file.
  5195. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5196. cat <<_LT_EOF >> conftest.$ac_ext
  5197. /* The mapping between symbol names and symbols. */
  5198. LT_DLSYM_CONST struct {
  5199. const char *name;
  5200. void *address;
  5201. }
  5202. lt__PROGRAM__LTX_preloaded_symbols[] =
  5203. {
  5204. { "@PROGRAM@", (void *) 0 },
  5205. _LT_EOF
  5206. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5207. cat <<\_LT_EOF >> conftest.$ac_ext
  5208. {0, (void *) 0}
  5209. };
  5210. /* This works around a problem in FreeBSD linker */
  5211. #ifdef FREEBSD_WORKAROUND
  5212. static const void *lt_preloaded_setup() {
  5213. return lt__PROGRAM__LTX_preloaded_symbols;
  5214. }
  5215. #endif
  5216. #ifdef __cplusplus
  5217. }
  5218. #endif
  5219. _LT_EOF
  5220. # Now try linking the two files.
  5221. mv conftest.$ac_objext conftstm.$ac_objext
  5222. lt_globsym_save_LIBS=$LIBS
  5223. lt_globsym_save_CFLAGS=$CFLAGS
  5224. LIBS="conftstm.$ac_objext"
  5225. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5226. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5227. (eval $ac_link) 2>&5
  5228. ac_status=$?
  5229. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5230. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5231. pipe_works=yes
  5232. fi
  5233. LIBS=$lt_globsym_save_LIBS
  5234. CFLAGS=$lt_globsym_save_CFLAGS
  5235. else
  5236. echo "cannot find nm_test_func in $nlist" >&5
  5237. fi
  5238. else
  5239. echo "cannot find nm_test_var in $nlist" >&5
  5240. fi
  5241. else
  5242. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5243. fi
  5244. else
  5245. echo "$progname: failed program was:" >&5
  5246. cat conftest.$ac_ext >&5
  5247. fi
  5248. rm -rf conftest* conftst*
  5249. # Do not use the global_symbol_pipe unless it works.
  5250. if test "$pipe_works" = yes; then
  5251. break
  5252. else
  5253. lt_cv_sys_global_symbol_pipe=
  5254. fi
  5255. done
  5256. fi
  5257. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5258. lt_cv_sys_global_symbol_to_cdecl=
  5259. fi
  5260. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5262. $as_echo "failed" >&6; }
  5263. else
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5265. $as_echo "ok" >&6; }
  5266. fi
  5267. # Response file support.
  5268. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5269. nm_file_list_spec='@'
  5270. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5271. nm_file_list_spec='@'
  5272. fi
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5274. $as_echo_n "checking for sysroot... " >&6; }
  5275. # Check whether --with-sysroot was given.
  5276. if test "${with_sysroot+set}" = set; then :
  5277. withval=$with_sysroot;
  5278. else
  5279. with_sysroot=no
  5280. fi
  5281. lt_sysroot=
  5282. case ${with_sysroot} in #(
  5283. yes)
  5284. if test "$GCC" = yes; then
  5285. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5286. fi
  5287. ;; #(
  5288. /*)
  5289. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5290. ;; #(
  5291. no|'')
  5292. ;; #(
  5293. *)
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5295. $as_echo "${with_sysroot}" >&6; }
  5296. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5297. ;;
  5298. esac
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5300. $as_echo "${lt_sysroot:-no}" >&6; }
  5301. # Check whether --enable-libtool-lock was given.
  5302. if test "${enable_libtool_lock+set}" = set; then :
  5303. enableval=$enable_libtool_lock;
  5304. fi
  5305. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5306. # Some flags need to be propagated to the compiler or linker for good
  5307. # libtool support.
  5308. case $host in
  5309. ia64-*-hpux*)
  5310. # Find out which ABI we are using.
  5311. echo 'int i;' > conftest.$ac_ext
  5312. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5313. (eval $ac_compile) 2>&5
  5314. ac_status=$?
  5315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5316. test $ac_status = 0; }; then
  5317. case `/usr/bin/file conftest.$ac_objext` in
  5318. *ELF-32*)
  5319. HPUX_IA64_MODE="32"
  5320. ;;
  5321. *ELF-64*)
  5322. HPUX_IA64_MODE="64"
  5323. ;;
  5324. esac
  5325. fi
  5326. rm -rf conftest*
  5327. ;;
  5328. *-*-irix6*)
  5329. # Find out which ABI we are using.
  5330. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5331. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5332. (eval $ac_compile) 2>&5
  5333. ac_status=$?
  5334. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5335. test $ac_status = 0; }; then
  5336. if test "$lt_cv_prog_gnu_ld" = yes; then
  5337. case `/usr/bin/file conftest.$ac_objext` in
  5338. *32-bit*)
  5339. LD="${LD-ld} -melf32bsmip"
  5340. ;;
  5341. *N32*)
  5342. LD="${LD-ld} -melf32bmipn32"
  5343. ;;
  5344. *64-bit*)
  5345. LD="${LD-ld} -melf64bmip"
  5346. ;;
  5347. esac
  5348. else
  5349. case `/usr/bin/file conftest.$ac_objext` in
  5350. *32-bit*)
  5351. LD="${LD-ld} -32"
  5352. ;;
  5353. *N32*)
  5354. LD="${LD-ld} -n32"
  5355. ;;
  5356. *64-bit*)
  5357. LD="${LD-ld} -64"
  5358. ;;
  5359. esac
  5360. fi
  5361. fi
  5362. rm -rf conftest*
  5363. ;;
  5364. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5365. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5366. # Find out which ABI we are using.
  5367. echo 'int i;' > conftest.$ac_ext
  5368. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5369. (eval $ac_compile) 2>&5
  5370. ac_status=$?
  5371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5372. test $ac_status = 0; }; then
  5373. case `/usr/bin/file conftest.o` in
  5374. *32-bit*)
  5375. case $host in
  5376. x86_64-*kfreebsd*-gnu)
  5377. LD="${LD-ld} -m elf_i386_fbsd"
  5378. ;;
  5379. x86_64-*linux*)
  5380. LD="${LD-ld} -m elf_i386"
  5381. ;;
  5382. ppc64-*linux*|powerpc64-*linux*)
  5383. LD="${LD-ld} -m elf32ppclinux"
  5384. ;;
  5385. s390x-*linux*)
  5386. LD="${LD-ld} -m elf_s390"
  5387. ;;
  5388. sparc64-*linux*)
  5389. LD="${LD-ld} -m elf32_sparc"
  5390. ;;
  5391. esac
  5392. ;;
  5393. *64-bit*)
  5394. case $host in
  5395. x86_64-*kfreebsd*-gnu)
  5396. LD="${LD-ld} -m elf_x86_64_fbsd"
  5397. ;;
  5398. x86_64-*linux*)
  5399. LD="${LD-ld} -m elf_x86_64"
  5400. ;;
  5401. powerpc64le-*linux*)
  5402. LD="${LD-ld} -m elf64lppc"
  5403. ;;
  5404. powerpc64-*linux*)
  5405. LD="${LD-ld} -m elf64ppc"
  5406. ;;
  5407. s390*-*linux*|s390*-*tpf*)
  5408. LD="${LD-ld} -m elf64_s390"
  5409. ;;
  5410. sparc*-*linux*)
  5411. LD="${LD-ld} -m elf64_sparc"
  5412. ;;
  5413. esac
  5414. ;;
  5415. esac
  5416. fi
  5417. rm -rf conftest*
  5418. ;;
  5419. *-*-sco3.2v5*)
  5420. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5421. SAVE_CFLAGS="$CFLAGS"
  5422. CFLAGS="$CFLAGS -belf"
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5424. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5425. if ${lt_cv_cc_needs_belf+:} false; then :
  5426. $as_echo_n "(cached) " >&6
  5427. else
  5428. ac_ext=c
  5429. ac_cpp='$CPP $CPPFLAGS'
  5430. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5431. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5432. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5434. /* end confdefs.h. */
  5435. int
  5436. main ()
  5437. {
  5438. ;
  5439. return 0;
  5440. }
  5441. _ACEOF
  5442. if ac_fn_c_try_link "$LINENO"; then :
  5443. lt_cv_cc_needs_belf=yes
  5444. else
  5445. lt_cv_cc_needs_belf=no
  5446. fi
  5447. rm -f core conftest.err conftest.$ac_objext \
  5448. conftest$ac_exeext conftest.$ac_ext
  5449. ac_ext=c
  5450. ac_cpp='$CPP $CPPFLAGS'
  5451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5454. fi
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5456. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5457. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5458. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5459. CFLAGS="$SAVE_CFLAGS"
  5460. fi
  5461. ;;
  5462. *-*solaris*)
  5463. # Find out which ABI we are using.
  5464. echo 'int i;' > conftest.$ac_ext
  5465. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5466. (eval $ac_compile) 2>&5
  5467. ac_status=$?
  5468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5469. test $ac_status = 0; }; then
  5470. case `/usr/bin/file conftest.o` in
  5471. *64-bit*)
  5472. case $lt_cv_prog_gnu_ld in
  5473. yes*)
  5474. case $host in
  5475. i?86-*-solaris*)
  5476. LD="${LD-ld} -m elf_x86_64"
  5477. ;;
  5478. sparc*-*-solaris*)
  5479. LD="${LD-ld} -m elf64_sparc"
  5480. ;;
  5481. esac
  5482. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5483. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5484. LD="${LD-ld}_sol2"
  5485. fi
  5486. ;;
  5487. *)
  5488. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5489. LD="${LD-ld} -64"
  5490. fi
  5491. ;;
  5492. esac
  5493. ;;
  5494. esac
  5495. fi
  5496. rm -rf conftest*
  5497. ;;
  5498. esac
  5499. need_locks="$enable_libtool_lock"
  5500. if test -n "$ac_tool_prefix"; then
  5501. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5502. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5504. $as_echo_n "checking for $ac_word... " >&6; }
  5505. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. if test -n "$MANIFEST_TOOL"; then
  5509. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5510. else
  5511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5512. for as_dir in $PATH
  5513. do
  5514. IFS=$as_save_IFS
  5515. test -z "$as_dir" && as_dir=.
  5516. for ac_exec_ext in '' $ac_executable_extensions; do
  5517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5518. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. IFS=$as_save_IFS
  5525. fi
  5526. fi
  5527. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5528. if test -n "$MANIFEST_TOOL"; then
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5530. $as_echo "$MANIFEST_TOOL" >&6; }
  5531. else
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. $as_echo "no" >&6; }
  5534. fi
  5535. fi
  5536. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5537. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5538. # Extract the first word of "mt", so it can be a program name with args.
  5539. set dummy mt; ac_word=$2
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5541. $as_echo_n "checking for $ac_word... " >&6; }
  5542. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5543. $as_echo_n "(cached) " >&6
  5544. else
  5545. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5546. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5547. else
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH
  5550. do
  5551. IFS=$as_save_IFS
  5552. test -z "$as_dir" && as_dir=.
  5553. for ac_exec_ext in '' $ac_executable_extensions; do
  5554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5555. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5557. break 2
  5558. fi
  5559. done
  5560. done
  5561. IFS=$as_save_IFS
  5562. fi
  5563. fi
  5564. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5565. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5567. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5568. else
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5570. $as_echo "no" >&6; }
  5571. fi
  5572. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5573. MANIFEST_TOOL=":"
  5574. else
  5575. case $cross_compiling:$ac_tool_warned in
  5576. yes:)
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5578. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5579. ac_tool_warned=yes ;;
  5580. esac
  5581. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5582. fi
  5583. else
  5584. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5585. fi
  5586. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5588. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5589. if ${lt_cv_path_mainfest_tool+:} false; then :
  5590. $as_echo_n "(cached) " >&6
  5591. else
  5592. lt_cv_path_mainfest_tool=no
  5593. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5594. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5595. cat conftest.err >&5
  5596. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5597. lt_cv_path_mainfest_tool=yes
  5598. fi
  5599. rm -f conftest*
  5600. fi
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5602. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5603. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5604. MANIFEST_TOOL=:
  5605. fi
  5606. case $host_os in
  5607. rhapsody* | darwin*)
  5608. if test -n "$ac_tool_prefix"; then
  5609. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5610. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5612. $as_echo_n "checking for $ac_word... " >&6; }
  5613. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5614. $as_echo_n "(cached) " >&6
  5615. else
  5616. if test -n "$DSYMUTIL"; then
  5617. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5618. else
  5619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5620. for as_dir in $PATH
  5621. do
  5622. IFS=$as_save_IFS
  5623. test -z "$as_dir" && as_dir=.
  5624. for ac_exec_ext in '' $ac_executable_extensions; do
  5625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5626. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5628. break 2
  5629. fi
  5630. done
  5631. done
  5632. IFS=$as_save_IFS
  5633. fi
  5634. fi
  5635. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5636. if test -n "$DSYMUTIL"; then
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5638. $as_echo "$DSYMUTIL" >&6; }
  5639. else
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5641. $as_echo "no" >&6; }
  5642. fi
  5643. fi
  5644. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5645. ac_ct_DSYMUTIL=$DSYMUTIL
  5646. # Extract the first word of "dsymutil", so it can be a program name with args.
  5647. set dummy dsymutil; ac_word=$2
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5649. $as_echo_n "checking for $ac_word... " >&6; }
  5650. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5651. $as_echo_n "(cached) " >&6
  5652. else
  5653. if test -n "$ac_ct_DSYMUTIL"; then
  5654. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5655. else
  5656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5657. for as_dir in $PATH
  5658. do
  5659. IFS=$as_save_IFS
  5660. test -z "$as_dir" && as_dir=.
  5661. for ac_exec_ext in '' $ac_executable_extensions; do
  5662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5663. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5665. break 2
  5666. fi
  5667. done
  5668. done
  5669. IFS=$as_save_IFS
  5670. fi
  5671. fi
  5672. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5673. if test -n "$ac_ct_DSYMUTIL"; then
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5675. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5676. else
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5678. $as_echo "no" >&6; }
  5679. fi
  5680. if test "x$ac_ct_DSYMUTIL" = x; then
  5681. DSYMUTIL=":"
  5682. else
  5683. case $cross_compiling:$ac_tool_warned in
  5684. yes:)
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5686. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5687. ac_tool_warned=yes ;;
  5688. esac
  5689. DSYMUTIL=$ac_ct_DSYMUTIL
  5690. fi
  5691. else
  5692. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5693. fi
  5694. if test -n "$ac_tool_prefix"; then
  5695. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5696. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5698. $as_echo_n "checking for $ac_word... " >&6; }
  5699. if ${ac_cv_prog_NMEDIT+:} false; then :
  5700. $as_echo_n "(cached) " >&6
  5701. else
  5702. if test -n "$NMEDIT"; then
  5703. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5704. else
  5705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5706. for as_dir in $PATH
  5707. do
  5708. IFS=$as_save_IFS
  5709. test -z "$as_dir" && as_dir=.
  5710. for ac_exec_ext in '' $ac_executable_extensions; do
  5711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5712. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5714. break 2
  5715. fi
  5716. done
  5717. done
  5718. IFS=$as_save_IFS
  5719. fi
  5720. fi
  5721. NMEDIT=$ac_cv_prog_NMEDIT
  5722. if test -n "$NMEDIT"; then
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5724. $as_echo "$NMEDIT" >&6; }
  5725. else
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5727. $as_echo "no" >&6; }
  5728. fi
  5729. fi
  5730. if test -z "$ac_cv_prog_NMEDIT"; then
  5731. ac_ct_NMEDIT=$NMEDIT
  5732. # Extract the first word of "nmedit", so it can be a program name with args.
  5733. set dummy nmedit; ac_word=$2
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5735. $as_echo_n "checking for $ac_word... " >&6; }
  5736. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. if test -n "$ac_ct_NMEDIT"; then
  5740. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5741. else
  5742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5743. for as_dir in $PATH
  5744. do
  5745. IFS=$as_save_IFS
  5746. test -z "$as_dir" && as_dir=.
  5747. for ac_exec_ext in '' $ac_executable_extensions; do
  5748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5749. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5751. break 2
  5752. fi
  5753. done
  5754. done
  5755. IFS=$as_save_IFS
  5756. fi
  5757. fi
  5758. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5759. if test -n "$ac_ct_NMEDIT"; then
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5761. $as_echo "$ac_ct_NMEDIT" >&6; }
  5762. else
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5764. $as_echo "no" >&6; }
  5765. fi
  5766. if test "x$ac_ct_NMEDIT" = x; then
  5767. NMEDIT=":"
  5768. else
  5769. case $cross_compiling:$ac_tool_warned in
  5770. yes:)
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5773. ac_tool_warned=yes ;;
  5774. esac
  5775. NMEDIT=$ac_ct_NMEDIT
  5776. fi
  5777. else
  5778. NMEDIT="$ac_cv_prog_NMEDIT"
  5779. fi
  5780. if test -n "$ac_tool_prefix"; then
  5781. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5782. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5784. $as_echo_n "checking for $ac_word... " >&6; }
  5785. if ${ac_cv_prog_LIPO+:} false; then :
  5786. $as_echo_n "(cached) " >&6
  5787. else
  5788. if test -n "$LIPO"; then
  5789. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5790. else
  5791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5792. for as_dir in $PATH
  5793. do
  5794. IFS=$as_save_IFS
  5795. test -z "$as_dir" && as_dir=.
  5796. for ac_exec_ext in '' $ac_executable_extensions; do
  5797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5798. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5800. break 2
  5801. fi
  5802. done
  5803. done
  5804. IFS=$as_save_IFS
  5805. fi
  5806. fi
  5807. LIPO=$ac_cv_prog_LIPO
  5808. if test -n "$LIPO"; then
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5810. $as_echo "$LIPO" >&6; }
  5811. else
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5813. $as_echo "no" >&6; }
  5814. fi
  5815. fi
  5816. if test -z "$ac_cv_prog_LIPO"; then
  5817. ac_ct_LIPO=$LIPO
  5818. # Extract the first word of "lipo", so it can be a program name with args.
  5819. set dummy lipo; ac_word=$2
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5821. $as_echo_n "checking for $ac_word... " >&6; }
  5822. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. if test -n "$ac_ct_LIPO"; then
  5826. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5827. else
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. test -z "$as_dir" && as_dir=.
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5835. ac_cv_prog_ac_ct_LIPO="lipo"
  5836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5837. break 2
  5838. fi
  5839. done
  5840. done
  5841. IFS=$as_save_IFS
  5842. fi
  5843. fi
  5844. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5845. if test -n "$ac_ct_LIPO"; then
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5847. $as_echo "$ac_ct_LIPO" >&6; }
  5848. else
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5850. $as_echo "no" >&6; }
  5851. fi
  5852. if test "x$ac_ct_LIPO" = x; then
  5853. LIPO=":"
  5854. else
  5855. case $cross_compiling:$ac_tool_warned in
  5856. yes:)
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5858. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5859. ac_tool_warned=yes ;;
  5860. esac
  5861. LIPO=$ac_ct_LIPO
  5862. fi
  5863. else
  5864. LIPO="$ac_cv_prog_LIPO"
  5865. fi
  5866. if test -n "$ac_tool_prefix"; then
  5867. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5868. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5870. $as_echo_n "checking for $ac_word... " >&6; }
  5871. if ${ac_cv_prog_OTOOL+:} false; then :
  5872. $as_echo_n "(cached) " >&6
  5873. else
  5874. if test -n "$OTOOL"; then
  5875. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5876. else
  5877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5878. for as_dir in $PATH
  5879. do
  5880. IFS=$as_save_IFS
  5881. test -z "$as_dir" && as_dir=.
  5882. for ac_exec_ext in '' $ac_executable_extensions; do
  5883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5884. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5886. break 2
  5887. fi
  5888. done
  5889. done
  5890. IFS=$as_save_IFS
  5891. fi
  5892. fi
  5893. OTOOL=$ac_cv_prog_OTOOL
  5894. if test -n "$OTOOL"; then
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5896. $as_echo "$OTOOL" >&6; }
  5897. else
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5899. $as_echo "no" >&6; }
  5900. fi
  5901. fi
  5902. if test -z "$ac_cv_prog_OTOOL"; then
  5903. ac_ct_OTOOL=$OTOOL
  5904. # Extract the first word of "otool", so it can be a program name with args.
  5905. set dummy otool; ac_word=$2
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5907. $as_echo_n "checking for $ac_word... " >&6; }
  5908. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5909. $as_echo_n "(cached) " >&6
  5910. else
  5911. if test -n "$ac_ct_OTOOL"; then
  5912. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5913. else
  5914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5915. for as_dir in $PATH
  5916. do
  5917. IFS=$as_save_IFS
  5918. test -z "$as_dir" && as_dir=.
  5919. for ac_exec_ext in '' $ac_executable_extensions; do
  5920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5921. ac_cv_prog_ac_ct_OTOOL="otool"
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5923. break 2
  5924. fi
  5925. done
  5926. done
  5927. IFS=$as_save_IFS
  5928. fi
  5929. fi
  5930. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5931. if test -n "$ac_ct_OTOOL"; then
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5933. $as_echo "$ac_ct_OTOOL" >&6; }
  5934. else
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5936. $as_echo "no" >&6; }
  5937. fi
  5938. if test "x$ac_ct_OTOOL" = x; then
  5939. OTOOL=":"
  5940. else
  5941. case $cross_compiling:$ac_tool_warned in
  5942. yes:)
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5944. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5945. ac_tool_warned=yes ;;
  5946. esac
  5947. OTOOL=$ac_ct_OTOOL
  5948. fi
  5949. else
  5950. OTOOL="$ac_cv_prog_OTOOL"
  5951. fi
  5952. if test -n "$ac_tool_prefix"; then
  5953. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5954. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5956. $as_echo_n "checking for $ac_word... " >&6; }
  5957. if ${ac_cv_prog_OTOOL64+:} false; then :
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. if test -n "$OTOOL64"; then
  5961. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5962. else
  5963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5964. for as_dir in $PATH
  5965. do
  5966. IFS=$as_save_IFS
  5967. test -z "$as_dir" && as_dir=.
  5968. for ac_exec_ext in '' $ac_executable_extensions; do
  5969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5970. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5972. break 2
  5973. fi
  5974. done
  5975. done
  5976. IFS=$as_save_IFS
  5977. fi
  5978. fi
  5979. OTOOL64=$ac_cv_prog_OTOOL64
  5980. if test -n "$OTOOL64"; then
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5982. $as_echo "$OTOOL64" >&6; }
  5983. else
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5985. $as_echo "no" >&6; }
  5986. fi
  5987. fi
  5988. if test -z "$ac_cv_prog_OTOOL64"; then
  5989. ac_ct_OTOOL64=$OTOOL64
  5990. # Extract the first word of "otool64", so it can be a program name with args.
  5991. set dummy otool64; ac_word=$2
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5993. $as_echo_n "checking for $ac_word... " >&6; }
  5994. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. if test -n "$ac_ct_OTOOL64"; then
  5998. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5999. else
  6000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6001. for as_dir in $PATH
  6002. do
  6003. IFS=$as_save_IFS
  6004. test -z "$as_dir" && as_dir=.
  6005. for ac_exec_ext in '' $ac_executable_extensions; do
  6006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6007. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6009. break 2
  6010. fi
  6011. done
  6012. done
  6013. IFS=$as_save_IFS
  6014. fi
  6015. fi
  6016. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6017. if test -n "$ac_ct_OTOOL64"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6019. $as_echo "$ac_ct_OTOOL64" >&6; }
  6020. else
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6022. $as_echo "no" >&6; }
  6023. fi
  6024. if test "x$ac_ct_OTOOL64" = x; then
  6025. OTOOL64=":"
  6026. else
  6027. case $cross_compiling:$ac_tool_warned in
  6028. yes:)
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6031. ac_tool_warned=yes ;;
  6032. esac
  6033. OTOOL64=$ac_ct_OTOOL64
  6034. fi
  6035. else
  6036. OTOOL64="$ac_cv_prog_OTOOL64"
  6037. fi
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6039. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6040. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. lt_cv_apple_cc_single_mod=no
  6044. if test -z "${LT_MULTI_MODULE}"; then
  6045. # By default we will add the -single_module flag. You can override
  6046. # by either setting the environment variable LT_MULTI_MODULE
  6047. # non-empty at configure time, or by adding -multi_module to the
  6048. # link flags.
  6049. rm -rf libconftest.dylib*
  6050. echo "int foo(void){return 1;}" > conftest.c
  6051. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6052. -dynamiclib -Wl,-single_module conftest.c" >&5
  6053. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6054. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6055. _lt_result=$?
  6056. # If there is a non-empty error log, and "single_module"
  6057. # appears in it, assume the flag caused a linker warning
  6058. if test -s conftest.err && $GREP single_module conftest.err; then
  6059. cat conftest.err >&5
  6060. # Otherwise, if the output was created with a 0 exit code from
  6061. # the compiler, it worked.
  6062. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6063. lt_cv_apple_cc_single_mod=yes
  6064. else
  6065. cat conftest.err >&5
  6066. fi
  6067. rm -rf libconftest.dylib*
  6068. rm -f conftest.*
  6069. fi
  6070. fi
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6072. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6074. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6075. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. lt_cv_ld_exported_symbols_list=no
  6079. save_LDFLAGS=$LDFLAGS
  6080. echo "_main" > conftest.sym
  6081. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6083. /* end confdefs.h. */
  6084. int
  6085. main ()
  6086. {
  6087. ;
  6088. return 0;
  6089. }
  6090. _ACEOF
  6091. if ac_fn_c_try_link "$LINENO"; then :
  6092. lt_cv_ld_exported_symbols_list=yes
  6093. else
  6094. lt_cv_ld_exported_symbols_list=no
  6095. fi
  6096. rm -f core conftest.err conftest.$ac_objext \
  6097. conftest$ac_exeext conftest.$ac_ext
  6098. LDFLAGS="$save_LDFLAGS"
  6099. fi
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6101. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6103. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6104. if ${lt_cv_ld_force_load+:} false; then :
  6105. $as_echo_n "(cached) " >&6
  6106. else
  6107. lt_cv_ld_force_load=no
  6108. cat > conftest.c << _LT_EOF
  6109. int forced_loaded() { return 2;}
  6110. _LT_EOF
  6111. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6112. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6113. echo "$AR cru libconftest.a conftest.o" >&5
  6114. $AR cru libconftest.a conftest.o 2>&5
  6115. echo "$RANLIB libconftest.a" >&5
  6116. $RANLIB libconftest.a 2>&5
  6117. cat > conftest.c << _LT_EOF
  6118. int main() { return 0;}
  6119. _LT_EOF
  6120. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6121. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6122. _lt_result=$?
  6123. if test -s conftest.err && $GREP force_load conftest.err; then
  6124. cat conftest.err >&5
  6125. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6126. lt_cv_ld_force_load=yes
  6127. else
  6128. cat conftest.err >&5
  6129. fi
  6130. rm -f conftest.err libconftest.a conftest conftest.c
  6131. rm -rf conftest.dSYM
  6132. fi
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6134. $as_echo "$lt_cv_ld_force_load" >&6; }
  6135. case $host_os in
  6136. rhapsody* | darwin1.[012])
  6137. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6138. darwin1.*)
  6139. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6140. darwin*)
  6141. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6142. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6143. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6144. *)
  6145. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6146. esac
  6147. ;;
  6148. esac
  6149. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6150. _lt_dar_single_mod='$single_module'
  6151. fi
  6152. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6153. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6154. else
  6155. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6156. fi
  6157. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6158. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6159. else
  6160. _lt_dsymutil=
  6161. fi
  6162. ;;
  6163. esac
  6164. ac_ext=c
  6165. ac_cpp='$CPP $CPPFLAGS'
  6166. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6167. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6168. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6170. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6171. # On Suns, sometimes $CPP names a directory.
  6172. if test -n "$CPP" && test -d "$CPP"; then
  6173. CPP=
  6174. fi
  6175. if test -z "$CPP"; then
  6176. if ${ac_cv_prog_CPP+:} false; then :
  6177. $as_echo_n "(cached) " >&6
  6178. else
  6179. # Double quotes because CPP needs to be expanded
  6180. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6181. do
  6182. ac_preproc_ok=false
  6183. for ac_c_preproc_warn_flag in '' yes
  6184. do
  6185. # Use a header file that comes with gcc, so configuring glibc
  6186. # with a fresh cross-compiler works.
  6187. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6188. # <limits.h> exists even on freestanding compilers.
  6189. # On the NeXT, cc -E runs the code through the compiler's parser,
  6190. # not just through cpp. "Syntax error" is here to catch this case.
  6191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6192. /* end confdefs.h. */
  6193. #ifdef __STDC__
  6194. # include <limits.h>
  6195. #else
  6196. # include <assert.h>
  6197. #endif
  6198. Syntax error
  6199. _ACEOF
  6200. if ac_fn_c_try_cpp "$LINENO"; then :
  6201. else
  6202. # Broken: fails on valid input.
  6203. continue
  6204. fi
  6205. rm -f conftest.err conftest.i conftest.$ac_ext
  6206. # OK, works on sane cases. Now check whether nonexistent headers
  6207. # can be detected and how.
  6208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6209. /* end confdefs.h. */
  6210. #include <ac_nonexistent.h>
  6211. _ACEOF
  6212. if ac_fn_c_try_cpp "$LINENO"; then :
  6213. # Broken: success on invalid input.
  6214. continue
  6215. else
  6216. # Passes both tests.
  6217. ac_preproc_ok=:
  6218. break
  6219. fi
  6220. rm -f conftest.err conftest.i conftest.$ac_ext
  6221. done
  6222. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6223. rm -f conftest.i conftest.err conftest.$ac_ext
  6224. if $ac_preproc_ok; then :
  6225. break
  6226. fi
  6227. done
  6228. ac_cv_prog_CPP=$CPP
  6229. fi
  6230. CPP=$ac_cv_prog_CPP
  6231. else
  6232. ac_cv_prog_CPP=$CPP
  6233. fi
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6235. $as_echo "$CPP" >&6; }
  6236. ac_preproc_ok=false
  6237. for ac_c_preproc_warn_flag in '' yes
  6238. do
  6239. # Use a header file that comes with gcc, so configuring glibc
  6240. # with a fresh cross-compiler works.
  6241. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6242. # <limits.h> exists even on freestanding compilers.
  6243. # On the NeXT, cc -E runs the code through the compiler's parser,
  6244. # not just through cpp. "Syntax error" is here to catch this case.
  6245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6246. /* end confdefs.h. */
  6247. #ifdef __STDC__
  6248. # include <limits.h>
  6249. #else
  6250. # include <assert.h>
  6251. #endif
  6252. Syntax error
  6253. _ACEOF
  6254. if ac_fn_c_try_cpp "$LINENO"; then :
  6255. else
  6256. # Broken: fails on valid input.
  6257. continue
  6258. fi
  6259. rm -f conftest.err conftest.i conftest.$ac_ext
  6260. # OK, works on sane cases. Now check whether nonexistent headers
  6261. # can be detected and how.
  6262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6263. /* end confdefs.h. */
  6264. #include <ac_nonexistent.h>
  6265. _ACEOF
  6266. if ac_fn_c_try_cpp "$LINENO"; then :
  6267. # Broken: success on invalid input.
  6268. continue
  6269. else
  6270. # Passes both tests.
  6271. ac_preproc_ok=:
  6272. break
  6273. fi
  6274. rm -f conftest.err conftest.i conftest.$ac_ext
  6275. done
  6276. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6277. rm -f conftest.i conftest.err conftest.$ac_ext
  6278. if $ac_preproc_ok; then :
  6279. else
  6280. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6281. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6282. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6283. See \`config.log' for more details" "$LINENO" 5; }
  6284. fi
  6285. ac_ext=c
  6286. ac_cpp='$CPP $CPPFLAGS'
  6287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6291. $as_echo_n "checking for ANSI C header files... " >&6; }
  6292. if ${ac_cv_header_stdc+:} false; then :
  6293. $as_echo_n "(cached) " >&6
  6294. else
  6295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6296. /* end confdefs.h. */
  6297. #include <stdlib.h>
  6298. #include <stdarg.h>
  6299. #include <string.h>
  6300. #include <float.h>
  6301. int
  6302. main ()
  6303. {
  6304. ;
  6305. return 0;
  6306. }
  6307. _ACEOF
  6308. if ac_fn_c_try_compile "$LINENO"; then :
  6309. ac_cv_header_stdc=yes
  6310. else
  6311. ac_cv_header_stdc=no
  6312. fi
  6313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6314. if test $ac_cv_header_stdc = yes; then
  6315. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end confdefs.h. */
  6318. #include <string.h>
  6319. _ACEOF
  6320. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6321. $EGREP "memchr" >/dev/null 2>&1; then :
  6322. else
  6323. ac_cv_header_stdc=no
  6324. fi
  6325. rm -f conftest*
  6326. fi
  6327. if test $ac_cv_header_stdc = yes; then
  6328. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6330. /* end confdefs.h. */
  6331. #include <stdlib.h>
  6332. _ACEOF
  6333. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6334. $EGREP "free" >/dev/null 2>&1; then :
  6335. else
  6336. ac_cv_header_stdc=no
  6337. fi
  6338. rm -f conftest*
  6339. fi
  6340. if test $ac_cv_header_stdc = yes; then
  6341. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6342. if test "$cross_compiling" = yes; then :
  6343. :
  6344. else
  6345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6346. /* end confdefs.h. */
  6347. #include <ctype.h>
  6348. #include <stdlib.h>
  6349. #if ((' ' & 0x0FF) == 0x020)
  6350. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6351. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6352. #else
  6353. # define ISLOWER(c) \
  6354. (('a' <= (c) && (c) <= 'i') \
  6355. || ('j' <= (c) && (c) <= 'r') \
  6356. || ('s' <= (c) && (c) <= 'z'))
  6357. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6358. #endif
  6359. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6360. int
  6361. main ()
  6362. {
  6363. int i;
  6364. for (i = 0; i < 256; i++)
  6365. if (XOR (islower (i), ISLOWER (i))
  6366. || toupper (i) != TOUPPER (i))
  6367. return 2;
  6368. return 0;
  6369. }
  6370. _ACEOF
  6371. if ac_fn_c_try_run "$LINENO"; then :
  6372. else
  6373. ac_cv_header_stdc=no
  6374. fi
  6375. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6376. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6377. fi
  6378. fi
  6379. fi
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6381. $as_echo "$ac_cv_header_stdc" >&6; }
  6382. if test $ac_cv_header_stdc = yes; then
  6383. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6384. fi
  6385. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6386. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6387. inttypes.h stdint.h unistd.h
  6388. do :
  6389. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6390. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6391. "
  6392. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6393. cat >>confdefs.h <<_ACEOF
  6394. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6395. _ACEOF
  6396. fi
  6397. done
  6398. for ac_header in dlfcn.h
  6399. do :
  6400. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6401. "
  6402. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6403. cat >>confdefs.h <<_ACEOF
  6404. #define HAVE_DLFCN_H 1
  6405. _ACEOF
  6406. fi
  6407. done
  6408. # Set options
  6409. enable_win32_dll=yes
  6410. case $host in
  6411. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6412. if test -n "$ac_tool_prefix"; then
  6413. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6414. set dummy ${ac_tool_prefix}as; ac_word=$2
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6416. $as_echo_n "checking for $ac_word... " >&6; }
  6417. if ${ac_cv_prog_AS+:} false; then :
  6418. $as_echo_n "(cached) " >&6
  6419. else
  6420. if test -n "$AS"; then
  6421. ac_cv_prog_AS="$AS" # Let the user override the test.
  6422. else
  6423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6424. for as_dir in $PATH
  6425. do
  6426. IFS=$as_save_IFS
  6427. test -z "$as_dir" && as_dir=.
  6428. for ac_exec_ext in '' $ac_executable_extensions; do
  6429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6430. ac_cv_prog_AS="${ac_tool_prefix}as"
  6431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6432. break 2
  6433. fi
  6434. done
  6435. done
  6436. IFS=$as_save_IFS
  6437. fi
  6438. fi
  6439. AS=$ac_cv_prog_AS
  6440. if test -n "$AS"; then
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6442. $as_echo "$AS" >&6; }
  6443. else
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6445. $as_echo "no" >&6; }
  6446. fi
  6447. fi
  6448. if test -z "$ac_cv_prog_AS"; then
  6449. ac_ct_AS=$AS
  6450. # Extract the first word of "as", so it can be a program name with args.
  6451. set dummy as; ac_word=$2
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6453. $as_echo_n "checking for $ac_word... " >&6; }
  6454. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. if test -n "$ac_ct_AS"; then
  6458. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6459. else
  6460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6461. for as_dir in $PATH
  6462. do
  6463. IFS=$as_save_IFS
  6464. test -z "$as_dir" && as_dir=.
  6465. for ac_exec_ext in '' $ac_executable_extensions; do
  6466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6467. ac_cv_prog_ac_ct_AS="as"
  6468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6469. break 2
  6470. fi
  6471. done
  6472. done
  6473. IFS=$as_save_IFS
  6474. fi
  6475. fi
  6476. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6477. if test -n "$ac_ct_AS"; then
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6479. $as_echo "$ac_ct_AS" >&6; }
  6480. else
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6482. $as_echo "no" >&6; }
  6483. fi
  6484. if test "x$ac_ct_AS" = x; then
  6485. AS="false"
  6486. else
  6487. case $cross_compiling:$ac_tool_warned in
  6488. yes:)
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6490. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6491. ac_tool_warned=yes ;;
  6492. esac
  6493. AS=$ac_ct_AS
  6494. fi
  6495. else
  6496. AS="$ac_cv_prog_AS"
  6497. fi
  6498. if test -n "$ac_tool_prefix"; then
  6499. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6500. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6502. $as_echo_n "checking for $ac_word... " >&6; }
  6503. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6504. $as_echo_n "(cached) " >&6
  6505. else
  6506. if test -n "$DLLTOOL"; then
  6507. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6508. else
  6509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6510. for as_dir in $PATH
  6511. do
  6512. IFS=$as_save_IFS
  6513. test -z "$as_dir" && as_dir=.
  6514. for ac_exec_ext in '' $ac_executable_extensions; do
  6515. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6516. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6518. break 2
  6519. fi
  6520. done
  6521. done
  6522. IFS=$as_save_IFS
  6523. fi
  6524. fi
  6525. DLLTOOL=$ac_cv_prog_DLLTOOL
  6526. if test -n "$DLLTOOL"; then
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6528. $as_echo "$DLLTOOL" >&6; }
  6529. else
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6531. $as_echo "no" >&6; }
  6532. fi
  6533. fi
  6534. if test -z "$ac_cv_prog_DLLTOOL"; then
  6535. ac_ct_DLLTOOL=$DLLTOOL
  6536. # Extract the first word of "dlltool", so it can be a program name with args.
  6537. set dummy dlltool; ac_word=$2
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6539. $as_echo_n "checking for $ac_word... " >&6; }
  6540. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6541. $as_echo_n "(cached) " >&6
  6542. else
  6543. if test -n "$ac_ct_DLLTOOL"; then
  6544. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6545. else
  6546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6547. for as_dir in $PATH
  6548. do
  6549. IFS=$as_save_IFS
  6550. test -z "$as_dir" && as_dir=.
  6551. for ac_exec_ext in '' $ac_executable_extensions; do
  6552. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6553. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6555. break 2
  6556. fi
  6557. done
  6558. done
  6559. IFS=$as_save_IFS
  6560. fi
  6561. fi
  6562. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6563. if test -n "$ac_ct_DLLTOOL"; then
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6565. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6566. else
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6568. $as_echo "no" >&6; }
  6569. fi
  6570. if test "x$ac_ct_DLLTOOL" = x; then
  6571. DLLTOOL="false"
  6572. else
  6573. case $cross_compiling:$ac_tool_warned in
  6574. yes:)
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6576. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6577. ac_tool_warned=yes ;;
  6578. esac
  6579. DLLTOOL=$ac_ct_DLLTOOL
  6580. fi
  6581. else
  6582. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6583. fi
  6584. if test -n "$ac_tool_prefix"; then
  6585. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6586. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6588. $as_echo_n "checking for $ac_word... " >&6; }
  6589. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6590. $as_echo_n "(cached) " >&6
  6591. else
  6592. if test -n "$OBJDUMP"; then
  6593. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6594. else
  6595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6596. for as_dir in $PATH
  6597. do
  6598. IFS=$as_save_IFS
  6599. test -z "$as_dir" && as_dir=.
  6600. for ac_exec_ext in '' $ac_executable_extensions; do
  6601. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6602. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6604. break 2
  6605. fi
  6606. done
  6607. done
  6608. IFS=$as_save_IFS
  6609. fi
  6610. fi
  6611. OBJDUMP=$ac_cv_prog_OBJDUMP
  6612. if test -n "$OBJDUMP"; then
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6614. $as_echo "$OBJDUMP" >&6; }
  6615. else
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6617. $as_echo "no" >&6; }
  6618. fi
  6619. fi
  6620. if test -z "$ac_cv_prog_OBJDUMP"; then
  6621. ac_ct_OBJDUMP=$OBJDUMP
  6622. # Extract the first word of "objdump", so it can be a program name with args.
  6623. set dummy objdump; ac_word=$2
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6625. $as_echo_n "checking for $ac_word... " >&6; }
  6626. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6627. $as_echo_n "(cached) " >&6
  6628. else
  6629. if test -n "$ac_ct_OBJDUMP"; then
  6630. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6631. else
  6632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6633. for as_dir in $PATH
  6634. do
  6635. IFS=$as_save_IFS
  6636. test -z "$as_dir" && as_dir=.
  6637. for ac_exec_ext in '' $ac_executable_extensions; do
  6638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6639. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6641. break 2
  6642. fi
  6643. done
  6644. done
  6645. IFS=$as_save_IFS
  6646. fi
  6647. fi
  6648. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6649. if test -n "$ac_ct_OBJDUMP"; then
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6651. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6652. else
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6654. $as_echo "no" >&6; }
  6655. fi
  6656. if test "x$ac_ct_OBJDUMP" = x; then
  6657. OBJDUMP="false"
  6658. else
  6659. case $cross_compiling:$ac_tool_warned in
  6660. yes:)
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6662. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6663. ac_tool_warned=yes ;;
  6664. esac
  6665. OBJDUMP=$ac_ct_OBJDUMP
  6666. fi
  6667. else
  6668. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6669. fi
  6670. ;;
  6671. esac
  6672. test -z "$AS" && AS=as
  6673. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6674. test -z "$OBJDUMP" && OBJDUMP=objdump
  6675. enable_dlopen=no
  6676. # Check whether --enable-shared was given.
  6677. if test "${enable_shared+set}" = set; then :
  6678. enableval=$enable_shared; p=${PACKAGE-default}
  6679. case $enableval in
  6680. yes) enable_shared=yes ;;
  6681. no) enable_shared=no ;;
  6682. *)
  6683. enable_shared=no
  6684. # Look at the argument we got. We use all the common list separators.
  6685. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6686. for pkg in $enableval; do
  6687. IFS="$lt_save_ifs"
  6688. if test "X$pkg" = "X$p"; then
  6689. enable_shared=yes
  6690. fi
  6691. done
  6692. IFS="$lt_save_ifs"
  6693. ;;
  6694. esac
  6695. else
  6696. enable_shared=yes
  6697. fi
  6698. # Check whether --enable-static was given.
  6699. if test "${enable_static+set}" = set; then :
  6700. enableval=$enable_static; p=${PACKAGE-default}
  6701. case $enableval in
  6702. yes) enable_static=yes ;;
  6703. no) enable_static=no ;;
  6704. *)
  6705. enable_static=no
  6706. # Look at the argument we got. We use all the common list separators.
  6707. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6708. for pkg in $enableval; do
  6709. IFS="$lt_save_ifs"
  6710. if test "X$pkg" = "X$p"; then
  6711. enable_static=yes
  6712. fi
  6713. done
  6714. IFS="$lt_save_ifs"
  6715. ;;
  6716. esac
  6717. else
  6718. enable_static=yes
  6719. fi
  6720. # Check whether --with-pic was given.
  6721. if test "${with_pic+set}" = set; then :
  6722. withval=$with_pic; lt_p=${PACKAGE-default}
  6723. case $withval in
  6724. yes|no) pic_mode=$withval ;;
  6725. *)
  6726. pic_mode=default
  6727. # Look at the argument we got. We use all the common list separators.
  6728. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6729. for lt_pkg in $withval; do
  6730. IFS="$lt_save_ifs"
  6731. if test "X$lt_pkg" = "X$lt_p"; then
  6732. pic_mode=yes
  6733. fi
  6734. done
  6735. IFS="$lt_save_ifs"
  6736. ;;
  6737. esac
  6738. else
  6739. pic_mode=default
  6740. fi
  6741. test -z "$pic_mode" && pic_mode=default
  6742. # Check whether --enable-fast-install was given.
  6743. if test "${enable_fast_install+set}" = set; then :
  6744. enableval=$enable_fast_install; p=${PACKAGE-default}
  6745. case $enableval in
  6746. yes) enable_fast_install=yes ;;
  6747. no) enable_fast_install=no ;;
  6748. *)
  6749. enable_fast_install=no
  6750. # Look at the argument we got. We use all the common list separators.
  6751. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6752. for pkg in $enableval; do
  6753. IFS="$lt_save_ifs"
  6754. if test "X$pkg" = "X$p"; then
  6755. enable_fast_install=yes
  6756. fi
  6757. done
  6758. IFS="$lt_save_ifs"
  6759. ;;
  6760. esac
  6761. else
  6762. enable_fast_install=yes
  6763. fi
  6764. # This can be used to rebuild libtool when needed
  6765. LIBTOOL_DEPS="$ltmain"
  6766. # Always use our own libtool.
  6767. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6768. test -z "$LN_S" && LN_S="ln -s"
  6769. if test -n "${ZSH_VERSION+set}" ; then
  6770. setopt NO_GLOB_SUBST
  6771. fi
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6773. $as_echo_n "checking for objdir... " >&6; }
  6774. if ${lt_cv_objdir+:} false; then :
  6775. $as_echo_n "(cached) " >&6
  6776. else
  6777. rm -f .libs 2>/dev/null
  6778. mkdir .libs 2>/dev/null
  6779. if test -d .libs; then
  6780. lt_cv_objdir=.libs
  6781. else
  6782. # MS-DOS does not allow filenames that begin with a dot.
  6783. lt_cv_objdir=_libs
  6784. fi
  6785. rmdir .libs 2>/dev/null
  6786. fi
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6788. $as_echo "$lt_cv_objdir" >&6; }
  6789. objdir=$lt_cv_objdir
  6790. cat >>confdefs.h <<_ACEOF
  6791. #define LT_OBJDIR "$lt_cv_objdir/"
  6792. _ACEOF
  6793. case $host_os in
  6794. aix3*)
  6795. # AIX sometimes has problems with the GCC collect2 program. For some
  6796. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6797. # vanish in a puff of smoke.
  6798. if test "X${COLLECT_NAMES+set}" != Xset; then
  6799. COLLECT_NAMES=
  6800. export COLLECT_NAMES
  6801. fi
  6802. ;;
  6803. esac
  6804. # Global variables:
  6805. ofile=libtool
  6806. can_build_shared=yes
  6807. # All known linkers require a `.a' archive for static linking (except MSVC,
  6808. # which needs '.lib').
  6809. libext=a
  6810. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6811. old_CC="$CC"
  6812. old_CFLAGS="$CFLAGS"
  6813. # Set sane defaults for various variables
  6814. test -z "$CC" && CC=cc
  6815. test -z "$LTCC" && LTCC=$CC
  6816. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6817. test -z "$LD" && LD=ld
  6818. test -z "$ac_objext" && ac_objext=o
  6819. for cc_temp in $compiler""; do
  6820. case $cc_temp in
  6821. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6822. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6823. \-*) ;;
  6824. *) break;;
  6825. esac
  6826. done
  6827. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6828. # Only perform the check for file, if the check method requires it
  6829. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6830. case $deplibs_check_method in
  6831. file_magic*)
  6832. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6834. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6835. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6836. $as_echo_n "(cached) " >&6
  6837. else
  6838. case $MAGIC_CMD in
  6839. [\\/*] | ?:[\\/]*)
  6840. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6841. ;;
  6842. *)
  6843. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6844. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6845. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6846. for ac_dir in $ac_dummy; do
  6847. IFS="$lt_save_ifs"
  6848. test -z "$ac_dir" && ac_dir=.
  6849. if test -f $ac_dir/${ac_tool_prefix}file; then
  6850. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6851. if test -n "$file_magic_test_file"; then
  6852. case $deplibs_check_method in
  6853. "file_magic "*)
  6854. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6855. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6856. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6857. $EGREP "$file_magic_regex" > /dev/null; then
  6858. :
  6859. else
  6860. cat <<_LT_EOF 1>&2
  6861. *** Warning: the command libtool uses to detect shared libraries,
  6862. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6863. *** The result is that libtool may fail to recognize shared libraries
  6864. *** as such. This will affect the creation of libtool libraries that
  6865. *** depend on shared libraries, but programs linked with such libtool
  6866. *** libraries will work regardless of this problem. Nevertheless, you
  6867. *** may want to report the problem to your system manager and/or to
  6868. *** bug-libtool@gnu.org
  6869. _LT_EOF
  6870. fi ;;
  6871. esac
  6872. fi
  6873. break
  6874. fi
  6875. done
  6876. IFS="$lt_save_ifs"
  6877. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6878. ;;
  6879. esac
  6880. fi
  6881. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6882. if test -n "$MAGIC_CMD"; then
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6884. $as_echo "$MAGIC_CMD" >&6; }
  6885. else
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6887. $as_echo "no" >&6; }
  6888. fi
  6889. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6890. if test -n "$ac_tool_prefix"; then
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6892. $as_echo_n "checking for file... " >&6; }
  6893. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6894. $as_echo_n "(cached) " >&6
  6895. else
  6896. case $MAGIC_CMD in
  6897. [\\/*] | ?:[\\/]*)
  6898. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6899. ;;
  6900. *)
  6901. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6902. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6903. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6904. for ac_dir in $ac_dummy; do
  6905. IFS="$lt_save_ifs"
  6906. test -z "$ac_dir" && ac_dir=.
  6907. if test -f $ac_dir/file; then
  6908. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6909. if test -n "$file_magic_test_file"; then
  6910. case $deplibs_check_method in
  6911. "file_magic "*)
  6912. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6913. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6914. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6915. $EGREP "$file_magic_regex" > /dev/null; then
  6916. :
  6917. else
  6918. cat <<_LT_EOF 1>&2
  6919. *** Warning: the command libtool uses to detect shared libraries,
  6920. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6921. *** The result is that libtool may fail to recognize shared libraries
  6922. *** as such. This will affect the creation of libtool libraries that
  6923. *** depend on shared libraries, but programs linked with such libtool
  6924. *** libraries will work regardless of this problem. Nevertheless, you
  6925. *** may want to report the problem to your system manager and/or to
  6926. *** bug-libtool@gnu.org
  6927. _LT_EOF
  6928. fi ;;
  6929. esac
  6930. fi
  6931. break
  6932. fi
  6933. done
  6934. IFS="$lt_save_ifs"
  6935. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6936. ;;
  6937. esac
  6938. fi
  6939. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6940. if test -n "$MAGIC_CMD"; then
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6942. $as_echo "$MAGIC_CMD" >&6; }
  6943. else
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6945. $as_echo "no" >&6; }
  6946. fi
  6947. else
  6948. MAGIC_CMD=:
  6949. fi
  6950. fi
  6951. fi
  6952. ;;
  6953. esac
  6954. # Use C for the default configuration in the libtool script
  6955. lt_save_CC="$CC"
  6956. ac_ext=c
  6957. ac_cpp='$CPP $CPPFLAGS'
  6958. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6959. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6960. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6961. # Source file extension for C test sources.
  6962. ac_ext=c
  6963. # Object file extension for compiled C test sources.
  6964. objext=o
  6965. objext=$objext
  6966. # Code to be used in simple compile tests
  6967. lt_simple_compile_test_code="int some_variable = 0;"
  6968. # Code to be used in simple link tests
  6969. lt_simple_link_test_code='int main(){return(0);}'
  6970. # If no C compiler was specified, use CC.
  6971. LTCC=${LTCC-"$CC"}
  6972. # If no C compiler flags were specified, use CFLAGS.
  6973. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6974. # Allow CC to be a program name with arguments.
  6975. compiler=$CC
  6976. # Save the default compiler, since it gets overwritten when the other
  6977. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6978. compiler_DEFAULT=$CC
  6979. # save warnings/boilerplate of simple test code
  6980. ac_outfile=conftest.$ac_objext
  6981. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6982. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6983. _lt_compiler_boilerplate=`cat conftest.err`
  6984. $RM conftest*
  6985. ac_outfile=conftest.$ac_objext
  6986. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6987. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6988. _lt_linker_boilerplate=`cat conftest.err`
  6989. $RM -r conftest*
  6990. ## CAVEAT EMPTOR:
  6991. ## There is no encapsulation within the following macros, do not change
  6992. ## the running order or otherwise move them around unless you know exactly
  6993. ## what you are doing...
  6994. if test -n "$compiler"; then
  6995. lt_prog_compiler_no_builtin_flag=
  6996. if test "$GCC" = yes; then
  6997. case $cc_basename in
  6998. nvcc*)
  6999. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7000. *)
  7001. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7002. esac
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7004. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7005. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7006. $as_echo_n "(cached) " >&6
  7007. else
  7008. lt_cv_prog_compiler_rtti_exceptions=no
  7009. ac_outfile=conftest.$ac_objext
  7010. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7011. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7012. # Insert the option either (1) after the last *FLAGS variable, or
  7013. # (2) before a word containing "conftest.", or (3) at the end.
  7014. # Note that $ac_compile itself does not contain backslashes and begins
  7015. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7016. # The option is referenced via a variable to avoid confusing sed.
  7017. lt_compile=`echo "$ac_compile" | $SED \
  7018. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7019. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7020. -e 's:$: $lt_compiler_flag:'`
  7021. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7022. (eval "$lt_compile" 2>conftest.err)
  7023. ac_status=$?
  7024. cat conftest.err >&5
  7025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7026. if (exit $ac_status) && test -s "$ac_outfile"; then
  7027. # The compiler can only warn and ignore the option if not recognized
  7028. # So say no if there are warnings other than the usual output.
  7029. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7030. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7031. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7032. lt_cv_prog_compiler_rtti_exceptions=yes
  7033. fi
  7034. fi
  7035. $RM conftest*
  7036. fi
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7038. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7039. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7040. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7041. else
  7042. :
  7043. fi
  7044. fi
  7045. lt_prog_compiler_wl=
  7046. lt_prog_compiler_pic=
  7047. lt_prog_compiler_static=
  7048. if test "$GCC" = yes; then
  7049. lt_prog_compiler_wl='-Wl,'
  7050. lt_prog_compiler_static='-static'
  7051. case $host_os in
  7052. aix*)
  7053. # All AIX code is PIC.
  7054. if test "$host_cpu" = ia64; then
  7055. # AIX 5 now supports IA64 processor
  7056. lt_prog_compiler_static='-Bstatic'
  7057. fi
  7058. ;;
  7059. amigaos*)
  7060. case $host_cpu in
  7061. powerpc)
  7062. # see comment about AmigaOS4 .so support
  7063. lt_prog_compiler_pic='-fPIC'
  7064. ;;
  7065. m68k)
  7066. # FIXME: we need at least 68020 code to build shared libraries, but
  7067. # adding the `-m68020' flag to GCC prevents building anything better,
  7068. # like `-m68040'.
  7069. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7070. ;;
  7071. esac
  7072. ;;
  7073. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7074. # PIC is the default for these OSes.
  7075. ;;
  7076. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7077. # This hack is so that the source file can tell whether it is being
  7078. # built for inclusion in a dll (and should export symbols for example).
  7079. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7080. # (--disable-auto-import) libraries
  7081. lt_prog_compiler_pic='-DDLL_EXPORT'
  7082. ;;
  7083. darwin* | rhapsody*)
  7084. # PIC is the default on this platform
  7085. # Common symbols not allowed in MH_DYLIB files
  7086. lt_prog_compiler_pic='-fno-common'
  7087. ;;
  7088. haiku*)
  7089. # PIC is the default for Haiku.
  7090. # The "-static" flag exists, but is broken.
  7091. lt_prog_compiler_static=
  7092. ;;
  7093. hpux*)
  7094. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7095. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7096. # sets the default TLS model and affects inlining.
  7097. case $host_cpu in
  7098. hppa*64*)
  7099. # +Z the default
  7100. ;;
  7101. *)
  7102. lt_prog_compiler_pic='-fPIC'
  7103. ;;
  7104. esac
  7105. ;;
  7106. interix[3-9]*)
  7107. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7108. # Instead, we relocate shared libraries at runtime.
  7109. ;;
  7110. msdosdjgpp*)
  7111. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7112. # on systems that don't support them.
  7113. lt_prog_compiler_can_build_shared=no
  7114. enable_shared=no
  7115. ;;
  7116. *nto* | *qnx*)
  7117. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7118. # it will coredump.
  7119. lt_prog_compiler_pic='-fPIC -shared'
  7120. ;;
  7121. sysv4*MP*)
  7122. if test -d /usr/nec; then
  7123. lt_prog_compiler_pic=-Kconform_pic
  7124. fi
  7125. ;;
  7126. *)
  7127. lt_prog_compiler_pic='-fPIC'
  7128. ;;
  7129. esac
  7130. case $cc_basename in
  7131. nvcc*) # Cuda Compiler Driver 2.2
  7132. lt_prog_compiler_wl='-Xlinker '
  7133. if test -n "$lt_prog_compiler_pic"; then
  7134. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7135. fi
  7136. ;;
  7137. esac
  7138. else
  7139. # PORTME Check for flag to pass linker flags through the system compiler.
  7140. case $host_os in
  7141. aix*)
  7142. lt_prog_compiler_wl='-Wl,'
  7143. if test "$host_cpu" = ia64; then
  7144. # AIX 5 now supports IA64 processor
  7145. lt_prog_compiler_static='-Bstatic'
  7146. else
  7147. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7148. fi
  7149. ;;
  7150. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7151. # This hack is so that the source file can tell whether it is being
  7152. # built for inclusion in a dll (and should export symbols for example).
  7153. lt_prog_compiler_pic='-DDLL_EXPORT'
  7154. ;;
  7155. hpux9* | hpux10* | hpux11*)
  7156. lt_prog_compiler_wl='-Wl,'
  7157. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7158. # not for PA HP-UX.
  7159. case $host_cpu in
  7160. hppa*64*|ia64*)
  7161. # +Z the default
  7162. ;;
  7163. *)
  7164. lt_prog_compiler_pic='+Z'
  7165. ;;
  7166. esac
  7167. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7168. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7169. ;;
  7170. irix5* | irix6* | nonstopux*)
  7171. lt_prog_compiler_wl='-Wl,'
  7172. # PIC (with -KPIC) is the default.
  7173. lt_prog_compiler_static='-non_shared'
  7174. ;;
  7175. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7176. case $cc_basename in
  7177. # old Intel for x86_64 which still supported -KPIC.
  7178. ecc*)
  7179. lt_prog_compiler_wl='-Wl,'
  7180. lt_prog_compiler_pic='-KPIC'
  7181. lt_prog_compiler_static='-static'
  7182. ;;
  7183. # icc used to be incompatible with GCC.
  7184. # ICC 10 doesn't accept -KPIC any more.
  7185. icc* | ifort*)
  7186. lt_prog_compiler_wl='-Wl,'
  7187. lt_prog_compiler_pic='-fPIC'
  7188. lt_prog_compiler_static='-static'
  7189. ;;
  7190. # Lahey Fortran 8.1.
  7191. lf95*)
  7192. lt_prog_compiler_wl='-Wl,'
  7193. lt_prog_compiler_pic='--shared'
  7194. lt_prog_compiler_static='--static'
  7195. ;;
  7196. nagfor*)
  7197. # NAG Fortran compiler
  7198. lt_prog_compiler_wl='-Wl,-Wl,,'
  7199. lt_prog_compiler_pic='-PIC'
  7200. lt_prog_compiler_static='-Bstatic'
  7201. ;;
  7202. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7203. # Portland Group compilers (*not* the Pentium gcc compiler,
  7204. # which looks to be a dead project)
  7205. lt_prog_compiler_wl='-Wl,'
  7206. lt_prog_compiler_pic='-fpic'
  7207. lt_prog_compiler_static='-Bstatic'
  7208. ;;
  7209. ccc*)
  7210. lt_prog_compiler_wl='-Wl,'
  7211. # All Alpha code is PIC.
  7212. lt_prog_compiler_static='-non_shared'
  7213. ;;
  7214. xl* | bgxl* | bgf* | mpixl*)
  7215. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7216. lt_prog_compiler_wl='-Wl,'
  7217. lt_prog_compiler_pic='-qpic'
  7218. lt_prog_compiler_static='-qstaticlink'
  7219. ;;
  7220. *)
  7221. case `$CC -V 2>&1 | sed 5q` in
  7222. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7223. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7224. lt_prog_compiler_pic='-KPIC'
  7225. lt_prog_compiler_static='-Bstatic'
  7226. lt_prog_compiler_wl=''
  7227. ;;
  7228. *Sun\ F* | *Sun*Fortran*)
  7229. lt_prog_compiler_pic='-KPIC'
  7230. lt_prog_compiler_static='-Bstatic'
  7231. lt_prog_compiler_wl='-Qoption ld '
  7232. ;;
  7233. *Sun\ C*)
  7234. # Sun C 5.9
  7235. lt_prog_compiler_pic='-KPIC'
  7236. lt_prog_compiler_static='-Bstatic'
  7237. lt_prog_compiler_wl='-Wl,'
  7238. ;;
  7239. *Intel*\ [CF]*Compiler*)
  7240. lt_prog_compiler_wl='-Wl,'
  7241. lt_prog_compiler_pic='-fPIC'
  7242. lt_prog_compiler_static='-static'
  7243. ;;
  7244. *Portland\ Group*)
  7245. lt_prog_compiler_wl='-Wl,'
  7246. lt_prog_compiler_pic='-fpic'
  7247. lt_prog_compiler_static='-Bstatic'
  7248. ;;
  7249. esac
  7250. ;;
  7251. esac
  7252. ;;
  7253. newsos6)
  7254. lt_prog_compiler_pic='-KPIC'
  7255. lt_prog_compiler_static='-Bstatic'
  7256. ;;
  7257. *nto* | *qnx*)
  7258. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7259. # it will coredump.
  7260. lt_prog_compiler_pic='-fPIC -shared'
  7261. ;;
  7262. osf3* | osf4* | osf5*)
  7263. lt_prog_compiler_wl='-Wl,'
  7264. # All OSF/1 code is PIC.
  7265. lt_prog_compiler_static='-non_shared'
  7266. ;;
  7267. rdos*)
  7268. lt_prog_compiler_static='-non_shared'
  7269. ;;
  7270. solaris*)
  7271. lt_prog_compiler_pic='-KPIC'
  7272. lt_prog_compiler_static='-Bstatic'
  7273. case $cc_basename in
  7274. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7275. lt_prog_compiler_wl='-Qoption ld ';;
  7276. *)
  7277. lt_prog_compiler_wl='-Wl,';;
  7278. esac
  7279. ;;
  7280. sunos4*)
  7281. lt_prog_compiler_wl='-Qoption ld '
  7282. lt_prog_compiler_pic='-PIC'
  7283. lt_prog_compiler_static='-Bstatic'
  7284. ;;
  7285. sysv4 | sysv4.2uw2* | sysv4.3*)
  7286. lt_prog_compiler_wl='-Wl,'
  7287. lt_prog_compiler_pic='-KPIC'
  7288. lt_prog_compiler_static='-Bstatic'
  7289. ;;
  7290. sysv4*MP*)
  7291. if test -d /usr/nec ;then
  7292. lt_prog_compiler_pic='-Kconform_pic'
  7293. lt_prog_compiler_static='-Bstatic'
  7294. fi
  7295. ;;
  7296. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7297. lt_prog_compiler_wl='-Wl,'
  7298. lt_prog_compiler_pic='-KPIC'
  7299. lt_prog_compiler_static='-Bstatic'
  7300. ;;
  7301. unicos*)
  7302. lt_prog_compiler_wl='-Wl,'
  7303. lt_prog_compiler_can_build_shared=no
  7304. ;;
  7305. uts4*)
  7306. lt_prog_compiler_pic='-pic'
  7307. lt_prog_compiler_static='-Bstatic'
  7308. ;;
  7309. *)
  7310. lt_prog_compiler_can_build_shared=no
  7311. ;;
  7312. esac
  7313. fi
  7314. case $host_os in
  7315. # For platforms which do not support PIC, -DPIC is meaningless:
  7316. *djgpp*)
  7317. lt_prog_compiler_pic=
  7318. ;;
  7319. *)
  7320. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7321. ;;
  7322. esac
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7324. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7325. if ${lt_cv_prog_compiler_pic+:} false; then :
  7326. $as_echo_n "(cached) " >&6
  7327. else
  7328. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7329. fi
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7331. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7332. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7333. #
  7334. # Check to make sure the PIC flag actually works.
  7335. #
  7336. if test -n "$lt_prog_compiler_pic"; then
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7338. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7339. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. lt_cv_prog_compiler_pic_works=no
  7343. ac_outfile=conftest.$ac_objext
  7344. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7345. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7346. # Insert the option either (1) after the last *FLAGS variable, or
  7347. # (2) before a word containing "conftest.", or (3) at the end.
  7348. # Note that $ac_compile itself does not contain backslashes and begins
  7349. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7350. # The option is referenced via a variable to avoid confusing sed.
  7351. lt_compile=`echo "$ac_compile" | $SED \
  7352. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7353. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7354. -e 's:$: $lt_compiler_flag:'`
  7355. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7356. (eval "$lt_compile" 2>conftest.err)
  7357. ac_status=$?
  7358. cat conftest.err >&5
  7359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7360. if (exit $ac_status) && test -s "$ac_outfile"; then
  7361. # The compiler can only warn and ignore the option if not recognized
  7362. # So say no if there are warnings other than the usual output.
  7363. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7364. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7365. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7366. lt_cv_prog_compiler_pic_works=yes
  7367. fi
  7368. fi
  7369. $RM conftest*
  7370. fi
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7372. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7373. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7374. case $lt_prog_compiler_pic in
  7375. "" | " "*) ;;
  7376. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7377. esac
  7378. else
  7379. lt_prog_compiler_pic=
  7380. lt_prog_compiler_can_build_shared=no
  7381. fi
  7382. fi
  7383. #
  7384. # Check to make sure the static flag actually works.
  7385. #
  7386. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7388. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7389. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7390. $as_echo_n "(cached) " >&6
  7391. else
  7392. lt_cv_prog_compiler_static_works=no
  7393. save_LDFLAGS="$LDFLAGS"
  7394. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7395. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7396. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7397. # The linker can only warn and ignore the option if not recognized
  7398. # So say no if there are warnings
  7399. if test -s conftest.err; then
  7400. # Append any errors to the config.log.
  7401. cat conftest.err 1>&5
  7402. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7403. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7404. if diff conftest.exp conftest.er2 >/dev/null; then
  7405. lt_cv_prog_compiler_static_works=yes
  7406. fi
  7407. else
  7408. lt_cv_prog_compiler_static_works=yes
  7409. fi
  7410. fi
  7411. $RM -r conftest*
  7412. LDFLAGS="$save_LDFLAGS"
  7413. fi
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7415. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7416. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7417. :
  7418. else
  7419. lt_prog_compiler_static=
  7420. fi
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7422. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7423. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7424. $as_echo_n "(cached) " >&6
  7425. else
  7426. lt_cv_prog_compiler_c_o=no
  7427. $RM -r conftest 2>/dev/null
  7428. mkdir conftest
  7429. cd conftest
  7430. mkdir out
  7431. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7432. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7433. # Insert the option either (1) after the last *FLAGS variable, or
  7434. # (2) before a word containing "conftest.", or (3) at the end.
  7435. # Note that $ac_compile itself does not contain backslashes and begins
  7436. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7437. lt_compile=`echo "$ac_compile" | $SED \
  7438. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7439. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7440. -e 's:$: $lt_compiler_flag:'`
  7441. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7442. (eval "$lt_compile" 2>out/conftest.err)
  7443. ac_status=$?
  7444. cat out/conftest.err >&5
  7445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7446. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7447. then
  7448. # The compiler can only warn and ignore the option if not recognized
  7449. # So say no if there are warnings
  7450. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7451. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7452. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7453. lt_cv_prog_compiler_c_o=yes
  7454. fi
  7455. fi
  7456. chmod u+w . 2>&5
  7457. $RM conftest*
  7458. # SGI C++ compiler will create directory out/ii_files/ for
  7459. # template instantiation
  7460. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7461. $RM out/* && rmdir out
  7462. cd ..
  7463. $RM -r conftest
  7464. $RM conftest*
  7465. fi
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7467. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7469. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7470. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7471. $as_echo_n "(cached) " >&6
  7472. else
  7473. lt_cv_prog_compiler_c_o=no
  7474. $RM -r conftest 2>/dev/null
  7475. mkdir conftest
  7476. cd conftest
  7477. mkdir out
  7478. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7479. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7480. # Insert the option either (1) after the last *FLAGS variable, or
  7481. # (2) before a word containing "conftest.", or (3) at the end.
  7482. # Note that $ac_compile itself does not contain backslashes and begins
  7483. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7484. lt_compile=`echo "$ac_compile" | $SED \
  7485. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7486. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7487. -e 's:$: $lt_compiler_flag:'`
  7488. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7489. (eval "$lt_compile" 2>out/conftest.err)
  7490. ac_status=$?
  7491. cat out/conftest.err >&5
  7492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7493. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7494. then
  7495. # The compiler can only warn and ignore the option if not recognized
  7496. # So say no if there are warnings
  7497. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7498. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7499. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7500. lt_cv_prog_compiler_c_o=yes
  7501. fi
  7502. fi
  7503. chmod u+w . 2>&5
  7504. $RM conftest*
  7505. # SGI C++ compiler will create directory out/ii_files/ for
  7506. # template instantiation
  7507. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7508. $RM out/* && rmdir out
  7509. cd ..
  7510. $RM -r conftest
  7511. $RM conftest*
  7512. fi
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7514. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7515. hard_links="nottested"
  7516. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7517. # do not overwrite the value of need_locks provided by the user
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7519. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7520. hard_links=yes
  7521. $RM conftest*
  7522. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7523. touch conftest.a
  7524. ln conftest.a conftest.b 2>&5 || hard_links=no
  7525. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7527. $as_echo "$hard_links" >&6; }
  7528. if test "$hard_links" = no; then
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7530. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7531. need_locks=warn
  7532. fi
  7533. else
  7534. need_locks=no
  7535. fi
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7537. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7538. runpath_var=
  7539. allow_undefined_flag=
  7540. always_export_symbols=no
  7541. archive_cmds=
  7542. archive_expsym_cmds=
  7543. compiler_needs_object=no
  7544. enable_shared_with_static_runtimes=no
  7545. export_dynamic_flag_spec=
  7546. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7547. hardcode_automatic=no
  7548. hardcode_direct=no
  7549. hardcode_direct_absolute=no
  7550. hardcode_libdir_flag_spec=
  7551. hardcode_libdir_separator=
  7552. hardcode_minus_L=no
  7553. hardcode_shlibpath_var=unsupported
  7554. inherit_rpath=no
  7555. link_all_deplibs=unknown
  7556. module_cmds=
  7557. module_expsym_cmds=
  7558. old_archive_from_new_cmds=
  7559. old_archive_from_expsyms_cmds=
  7560. thread_safe_flag_spec=
  7561. whole_archive_flag_spec=
  7562. # include_expsyms should be a list of space-separated symbols to be *always*
  7563. # included in the symbol list
  7564. include_expsyms=
  7565. # exclude_expsyms can be an extended regexp of symbols to exclude
  7566. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7567. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7568. # as well as any symbol that contains `d'.
  7569. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7570. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7571. # platforms (ab)use it in PIC code, but their linkers get confused if
  7572. # the symbol is explicitly referenced. Since portable code cannot
  7573. # rely on this symbol name, it's probably fine to never include it in
  7574. # preloaded symbol tables.
  7575. # Exclude shared library initialization/finalization symbols.
  7576. extract_expsyms_cmds=
  7577. case $host_os in
  7578. cygwin* | mingw* | pw32* | cegcc*)
  7579. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7580. # When not using gcc, we currently assume that we are using
  7581. # Microsoft Visual C++.
  7582. if test "$GCC" != yes; then
  7583. with_gnu_ld=no
  7584. fi
  7585. ;;
  7586. interix*)
  7587. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7588. with_gnu_ld=yes
  7589. ;;
  7590. openbsd*)
  7591. with_gnu_ld=no
  7592. ;;
  7593. esac
  7594. ld_shlibs=yes
  7595. # On some targets, GNU ld is compatible enough with the native linker
  7596. # that we're better off using the native interface for both.
  7597. lt_use_gnu_ld_interface=no
  7598. if test "$with_gnu_ld" = yes; then
  7599. case $host_os in
  7600. aix*)
  7601. # The AIX port of GNU ld has always aspired to compatibility
  7602. # with the native linker. However, as the warning in the GNU ld
  7603. # block says, versions before 2.19.5* couldn't really create working
  7604. # shared libraries, regardless of the interface used.
  7605. case `$LD -v 2>&1` in
  7606. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7607. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7608. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7609. *)
  7610. lt_use_gnu_ld_interface=yes
  7611. ;;
  7612. esac
  7613. ;;
  7614. *)
  7615. lt_use_gnu_ld_interface=yes
  7616. ;;
  7617. esac
  7618. fi
  7619. if test "$lt_use_gnu_ld_interface" = yes; then
  7620. # If archive_cmds runs LD, not CC, wlarc should be empty
  7621. wlarc='${wl}'
  7622. # Set some defaults for GNU ld with shared library support. These
  7623. # are reset later if shared libraries are not supported. Putting them
  7624. # here allows them to be overridden if necessary.
  7625. runpath_var=LD_RUN_PATH
  7626. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7627. export_dynamic_flag_spec='${wl}--export-dynamic'
  7628. # ancient GNU ld didn't support --whole-archive et. al.
  7629. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7630. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7631. else
  7632. whole_archive_flag_spec=
  7633. fi
  7634. supports_anon_versioning=no
  7635. case `$LD -v 2>&1` in
  7636. *GNU\ gold*) supports_anon_versioning=yes ;;
  7637. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7638. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7639. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7640. *\ 2.11.*) ;; # other 2.11 versions
  7641. *) supports_anon_versioning=yes ;;
  7642. esac
  7643. # See if GNU ld supports shared libraries.
  7644. case $host_os in
  7645. aix[3-9]*)
  7646. # On AIX/PPC, the GNU linker is very broken
  7647. if test "$host_cpu" != ia64; then
  7648. ld_shlibs=no
  7649. cat <<_LT_EOF 1>&2
  7650. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7651. *** to be unable to reliably create shared libraries on AIX.
  7652. *** Therefore, libtool is disabling shared libraries support. If you
  7653. *** really care for shared libraries, you may want to install binutils
  7654. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7655. *** You will then need to restart the configuration process.
  7656. _LT_EOF
  7657. fi
  7658. ;;
  7659. amigaos*)
  7660. case $host_cpu in
  7661. powerpc)
  7662. # see comment about AmigaOS4 .so support
  7663. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7664. archive_expsym_cmds=''
  7665. ;;
  7666. m68k)
  7667. 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)'
  7668. hardcode_libdir_flag_spec='-L$libdir'
  7669. hardcode_minus_L=yes
  7670. ;;
  7671. esac
  7672. ;;
  7673. beos*)
  7674. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7675. allow_undefined_flag=unsupported
  7676. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7677. # support --undefined. This deserves some investigation. FIXME
  7678. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7679. else
  7680. ld_shlibs=no
  7681. fi
  7682. ;;
  7683. cygwin* | mingw* | pw32* | cegcc*)
  7684. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7685. # as there is no search path for DLLs.
  7686. hardcode_libdir_flag_spec='-L$libdir'
  7687. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7688. allow_undefined_flag=unsupported
  7689. always_export_symbols=no
  7690. enable_shared_with_static_runtimes=yes
  7691. 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'
  7692. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7693. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7694. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7695. # If the export-symbols file already is a .def file (1st line
  7696. # is EXPORTS), use it as is; otherwise, prepend...
  7697. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7698. cp $export_symbols $output_objdir/$soname.def;
  7699. else
  7700. echo EXPORTS > $output_objdir/$soname.def;
  7701. cat $export_symbols >> $output_objdir/$soname.def;
  7702. fi~
  7703. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7704. else
  7705. ld_shlibs=no
  7706. fi
  7707. ;;
  7708. haiku*)
  7709. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7710. link_all_deplibs=yes
  7711. ;;
  7712. interix[3-9]*)
  7713. hardcode_direct=no
  7714. hardcode_shlibpath_var=no
  7715. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7716. export_dynamic_flag_spec='${wl}-E'
  7717. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7718. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7719. # default) and relocated if they conflict, which is a slow very memory
  7720. # consuming and fragmenting process. To avoid this, we pick a random,
  7721. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7722. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7723. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7724. 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'
  7725. ;;
  7726. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7727. tmp_diet=no
  7728. if test "$host_os" = linux-dietlibc; then
  7729. case $cc_basename in
  7730. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7731. esac
  7732. fi
  7733. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7734. && test "$tmp_diet" = no
  7735. then
  7736. tmp_addflag=' $pic_flag'
  7737. tmp_sharedflag='-shared'
  7738. case $cc_basename,$host_cpu in
  7739. pgcc*) # Portland Group C compiler
  7740. 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'
  7741. tmp_addflag=' $pic_flag'
  7742. ;;
  7743. pgf77* | pgf90* | pgf95* | pgfortran*)
  7744. # Portland Group f77 and f90 compilers
  7745. 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'
  7746. tmp_addflag=' $pic_flag -Mnomain' ;;
  7747. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7748. tmp_addflag=' -i_dynamic' ;;
  7749. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7750. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7751. ifc* | ifort*) # Intel Fortran compiler
  7752. tmp_addflag=' -nofor_main' ;;
  7753. lf95*) # Lahey Fortran 8.1
  7754. whole_archive_flag_spec=
  7755. tmp_sharedflag='--shared' ;;
  7756. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7757. tmp_sharedflag='-qmkshrobj'
  7758. tmp_addflag= ;;
  7759. nvcc*) # Cuda Compiler Driver 2.2
  7760. 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'
  7761. compiler_needs_object=yes
  7762. ;;
  7763. esac
  7764. case `$CC -V 2>&1 | sed 5q` in
  7765. *Sun\ C*) # Sun C 5.9
  7766. 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'
  7767. compiler_needs_object=yes
  7768. tmp_sharedflag='-G' ;;
  7769. *Sun\ F*) # Sun Fortran 8.3
  7770. tmp_sharedflag='-G' ;;
  7771. esac
  7772. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7773. if test "x$supports_anon_versioning" = xyes; then
  7774. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7775. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7776. echo "local: *; };" >> $output_objdir/$libname.ver~
  7777. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7778. fi
  7779. case $cc_basename in
  7780. xlf* | bgf* | bgxlf* | mpixlf*)
  7781. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7782. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7783. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7784. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7785. if test "x$supports_anon_versioning" = xyes; then
  7786. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7787. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7788. echo "local: *; };" >> $output_objdir/$libname.ver~
  7789. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7790. fi
  7791. ;;
  7792. esac
  7793. else
  7794. ld_shlibs=no
  7795. fi
  7796. ;;
  7797. netbsd*)
  7798. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7799. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7800. wlarc=
  7801. else
  7802. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7803. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7804. fi
  7805. ;;
  7806. solaris*)
  7807. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7808. ld_shlibs=no
  7809. cat <<_LT_EOF 1>&2
  7810. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7811. *** create shared libraries on Solaris systems. Therefore, libtool
  7812. *** is disabling shared libraries support. We urge you to upgrade GNU
  7813. *** binutils to release 2.9.1 or newer. Another option is to modify
  7814. *** your PATH or compiler configuration so that the native linker is
  7815. *** used, and then restart.
  7816. _LT_EOF
  7817. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7818. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7819. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7820. else
  7821. ld_shlibs=no
  7822. fi
  7823. ;;
  7824. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7825. case `$LD -v 2>&1` in
  7826. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7827. ld_shlibs=no
  7828. cat <<_LT_EOF 1>&2
  7829. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7830. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7831. *** is disabling shared libraries support. We urge you to upgrade GNU
  7832. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7833. *** your PATH or compiler configuration so that the native linker is
  7834. *** used, and then restart.
  7835. _LT_EOF
  7836. ;;
  7837. *)
  7838. # For security reasons, it is highly recommended that you always
  7839. # use absolute paths for naming shared libraries, and exclude the
  7840. # DT_RUNPATH tag from executables and libraries. But doing so
  7841. # requires that you compile everything twice, which is a pain.
  7842. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7843. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7844. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7845. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7846. else
  7847. ld_shlibs=no
  7848. fi
  7849. ;;
  7850. esac
  7851. ;;
  7852. sunos4*)
  7853. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7854. wlarc=
  7855. hardcode_direct=yes
  7856. hardcode_shlibpath_var=no
  7857. ;;
  7858. *)
  7859. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7860. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7861. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7862. else
  7863. ld_shlibs=no
  7864. fi
  7865. ;;
  7866. esac
  7867. if test "$ld_shlibs" = no; then
  7868. runpath_var=
  7869. hardcode_libdir_flag_spec=
  7870. export_dynamic_flag_spec=
  7871. whole_archive_flag_spec=
  7872. fi
  7873. else
  7874. # PORTME fill in a description of your system's linker (not GNU ld)
  7875. case $host_os in
  7876. aix3*)
  7877. allow_undefined_flag=unsupported
  7878. always_export_symbols=yes
  7879. 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'
  7880. # Note: this linker hardcodes the directories in LIBPATH if there
  7881. # are no directories specified by -L.
  7882. hardcode_minus_L=yes
  7883. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7884. # Neither direct hardcoding nor static linking is supported with a
  7885. # broken collect2.
  7886. hardcode_direct=unsupported
  7887. fi
  7888. ;;
  7889. aix[4-9]*)
  7890. if test "$host_cpu" = ia64; then
  7891. # On IA64, the linker does run time linking by default, so we don't
  7892. # have to do anything special.
  7893. aix_use_runtimelinking=no
  7894. exp_sym_flag='-Bexport'
  7895. no_entry_flag=""
  7896. else
  7897. # If we're using GNU nm, then we don't want the "-C" option.
  7898. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7899. # Also, AIX nm treats weak defined symbols like other global
  7900. # defined symbols, whereas GNU nm marks them as "W".
  7901. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7902. 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'
  7903. else
  7904. 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'
  7905. fi
  7906. aix_use_runtimelinking=no
  7907. # Test if we are trying to use run time linking or normal
  7908. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7909. # need to do runtime linking.
  7910. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7911. for ld_flag in $LDFLAGS; do
  7912. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7913. aix_use_runtimelinking=yes
  7914. break
  7915. fi
  7916. done
  7917. ;;
  7918. esac
  7919. exp_sym_flag='-bexport'
  7920. no_entry_flag='-bnoentry'
  7921. fi
  7922. # When large executables or shared objects are built, AIX ld can
  7923. # have problems creating the table of contents. If linking a library
  7924. # or program results in "error TOC overflow" add -mminimal-toc to
  7925. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7926. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7927. archive_cmds=''
  7928. hardcode_direct=yes
  7929. hardcode_direct_absolute=yes
  7930. hardcode_libdir_separator=':'
  7931. link_all_deplibs=yes
  7932. file_list_spec='${wl}-f,'
  7933. if test "$GCC" = yes; then
  7934. case $host_os in aix4.[012]|aix4.[012].*)
  7935. # We only want to do this on AIX 4.2 and lower, the check
  7936. # below for broken collect2 doesn't work under 4.3+
  7937. collect2name=`${CC} -print-prog-name=collect2`
  7938. if test -f "$collect2name" &&
  7939. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7940. then
  7941. # We have reworked collect2
  7942. :
  7943. else
  7944. # We have old collect2
  7945. hardcode_direct=unsupported
  7946. # It fails to find uninstalled libraries when the uninstalled
  7947. # path is not listed in the libpath. Setting hardcode_minus_L
  7948. # to unsupported forces relinking
  7949. hardcode_minus_L=yes
  7950. hardcode_libdir_flag_spec='-L$libdir'
  7951. hardcode_libdir_separator=
  7952. fi
  7953. ;;
  7954. esac
  7955. shared_flag='-shared'
  7956. if test "$aix_use_runtimelinking" = yes; then
  7957. shared_flag="$shared_flag "'${wl}-G'
  7958. fi
  7959. else
  7960. # not using gcc
  7961. if test "$host_cpu" = ia64; then
  7962. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7963. # chokes on -Wl,-G. The following line is correct:
  7964. shared_flag='-G'
  7965. else
  7966. if test "$aix_use_runtimelinking" = yes; then
  7967. shared_flag='${wl}-G'
  7968. else
  7969. shared_flag='${wl}-bM:SRE'
  7970. fi
  7971. fi
  7972. fi
  7973. export_dynamic_flag_spec='${wl}-bexpall'
  7974. # It seems that -bexpall does not export symbols beginning with
  7975. # underscore (_), so it is better to generate a list of symbols to export.
  7976. always_export_symbols=yes
  7977. if test "$aix_use_runtimelinking" = yes; then
  7978. # Warning - without using the other runtime loading flags (-brtl),
  7979. # -berok will link without error, but may produce a broken library.
  7980. allow_undefined_flag='-berok'
  7981. # Determine the default libpath from the value encoded in an
  7982. # empty executable.
  7983. if test "${lt_cv_aix_libpath+set}" = set; then
  7984. aix_libpath=$lt_cv_aix_libpath
  7985. else
  7986. if ${lt_cv_aix_libpath_+:} false; then :
  7987. $as_echo_n "(cached) " >&6
  7988. else
  7989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7990. /* end confdefs.h. */
  7991. int
  7992. main ()
  7993. {
  7994. ;
  7995. return 0;
  7996. }
  7997. _ACEOF
  7998. if ac_fn_c_try_link "$LINENO"; then :
  7999. lt_aix_libpath_sed='
  8000. /Import File Strings/,/^$/ {
  8001. /^0/ {
  8002. s/^0 *\([^ ]*\) *$/\1/
  8003. p
  8004. }
  8005. }'
  8006. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8007. # Check for a 64-bit object if we didn't find anything.
  8008. if test -z "$lt_cv_aix_libpath_"; then
  8009. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8010. fi
  8011. fi
  8012. rm -f core conftest.err conftest.$ac_objext \
  8013. conftest$ac_exeext conftest.$ac_ext
  8014. if test -z "$lt_cv_aix_libpath_"; then
  8015. lt_cv_aix_libpath_="/usr/lib:/lib"
  8016. fi
  8017. fi
  8018. aix_libpath=$lt_cv_aix_libpath_
  8019. fi
  8020. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8021. 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"
  8022. else
  8023. if test "$host_cpu" = ia64; then
  8024. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8025. allow_undefined_flag="-z nodefs"
  8026. 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"
  8027. else
  8028. # Determine the default libpath from the value encoded in an
  8029. # empty executable.
  8030. if test "${lt_cv_aix_libpath+set}" = set; then
  8031. aix_libpath=$lt_cv_aix_libpath
  8032. else
  8033. if ${lt_cv_aix_libpath_+:} false; then :
  8034. $as_echo_n "(cached) " >&6
  8035. else
  8036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8037. /* end confdefs.h. */
  8038. int
  8039. main ()
  8040. {
  8041. ;
  8042. return 0;
  8043. }
  8044. _ACEOF
  8045. if ac_fn_c_try_link "$LINENO"; then :
  8046. lt_aix_libpath_sed='
  8047. /Import File Strings/,/^$/ {
  8048. /^0/ {
  8049. s/^0 *\([^ ]*\) *$/\1/
  8050. p
  8051. }
  8052. }'
  8053. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8054. # Check for a 64-bit object if we didn't find anything.
  8055. if test -z "$lt_cv_aix_libpath_"; then
  8056. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8057. fi
  8058. fi
  8059. rm -f core conftest.err conftest.$ac_objext \
  8060. conftest$ac_exeext conftest.$ac_ext
  8061. if test -z "$lt_cv_aix_libpath_"; then
  8062. lt_cv_aix_libpath_="/usr/lib:/lib"
  8063. fi
  8064. fi
  8065. aix_libpath=$lt_cv_aix_libpath_
  8066. fi
  8067. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8068. # Warning - without using the other run time loading flags,
  8069. # -berok will link without error, but may produce a broken library.
  8070. no_undefined_flag=' ${wl}-bernotok'
  8071. allow_undefined_flag=' ${wl}-berok'
  8072. if test "$with_gnu_ld" = yes; then
  8073. # We only use this code for GNU lds that support --whole-archive.
  8074. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8075. else
  8076. # Exported symbols can be pulled into shared objects from archives
  8077. whole_archive_flag_spec='$convenience'
  8078. fi
  8079. archive_cmds_need_lc=yes
  8080. # This is similar to how AIX traditionally builds its shared libraries.
  8081. 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'
  8082. fi
  8083. fi
  8084. ;;
  8085. amigaos*)
  8086. case $host_cpu in
  8087. powerpc)
  8088. # see comment about AmigaOS4 .so support
  8089. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8090. archive_expsym_cmds=''
  8091. ;;
  8092. m68k)
  8093. 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)'
  8094. hardcode_libdir_flag_spec='-L$libdir'
  8095. hardcode_minus_L=yes
  8096. ;;
  8097. esac
  8098. ;;
  8099. bsdi[45]*)
  8100. export_dynamic_flag_spec=-rdynamic
  8101. ;;
  8102. cygwin* | mingw* | pw32* | cegcc*)
  8103. # When not using gcc, we currently assume that we are using
  8104. # Microsoft Visual C++.
  8105. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8106. # no search path for DLLs.
  8107. case $cc_basename in
  8108. cl*)
  8109. # Native MSVC
  8110. hardcode_libdir_flag_spec=' '
  8111. allow_undefined_flag=unsupported
  8112. always_export_symbols=yes
  8113. file_list_spec='@'
  8114. # Tell ltmain to make .lib files, not .a files.
  8115. libext=lib
  8116. # Tell ltmain to make .dll files, not .so files.
  8117. shrext_cmds=".dll"
  8118. # FIXME: Setting linknames here is a bad hack.
  8119. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8120. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8121. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8122. else
  8123. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8124. fi~
  8125. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8126. linknames='
  8127. # The linker will not automatically build a static lib if we build a DLL.
  8128. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8129. enable_shared_with_static_runtimes=yes
  8130. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8131. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8132. # Don't use ranlib
  8133. old_postinstall_cmds='chmod 644 $oldlib'
  8134. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8135. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8136. case $lt_outputfile in
  8137. *.exe|*.EXE) ;;
  8138. *)
  8139. lt_outputfile="$lt_outputfile.exe"
  8140. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8141. ;;
  8142. esac~
  8143. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8144. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8145. $RM "$lt_outputfile.manifest";
  8146. fi'
  8147. ;;
  8148. *)
  8149. # Assume MSVC wrapper
  8150. hardcode_libdir_flag_spec=' '
  8151. allow_undefined_flag=unsupported
  8152. # Tell ltmain to make .lib files, not .a files.
  8153. libext=lib
  8154. # Tell ltmain to make .dll files, not .so files.
  8155. shrext_cmds=".dll"
  8156. # FIXME: Setting linknames here is a bad hack.
  8157. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8158. # The linker will automatically build a .lib file if we build a DLL.
  8159. old_archive_from_new_cmds='true'
  8160. # FIXME: Should let the user specify the lib program.
  8161. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8162. enable_shared_with_static_runtimes=yes
  8163. ;;
  8164. esac
  8165. ;;
  8166. darwin* | rhapsody*)
  8167. archive_cmds_need_lc=no
  8168. hardcode_direct=no
  8169. hardcode_automatic=yes
  8170. hardcode_shlibpath_var=unsupported
  8171. if test "$lt_cv_ld_force_load" = "yes"; then
  8172. 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\"`'
  8173. else
  8174. whole_archive_flag_spec=''
  8175. fi
  8176. link_all_deplibs=yes
  8177. allow_undefined_flag="$_lt_dar_allow_undefined"
  8178. case $cc_basename in
  8179. ifort*) _lt_dar_can_shared=yes ;;
  8180. *) _lt_dar_can_shared=$GCC ;;
  8181. esac
  8182. if test "$_lt_dar_can_shared" = "yes"; then
  8183. output_verbose_link_cmd=func_echo_all
  8184. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8185. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8186. 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}"
  8187. 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}"
  8188. else
  8189. ld_shlibs=no
  8190. fi
  8191. ;;
  8192. dgux*)
  8193. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8194. hardcode_libdir_flag_spec='-L$libdir'
  8195. hardcode_shlibpath_var=no
  8196. ;;
  8197. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8198. # support. Future versions do this automatically, but an explicit c++rt0.o
  8199. # does not break anything, and helps significantly (at the cost of a little
  8200. # extra space).
  8201. freebsd2.2*)
  8202. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8203. hardcode_libdir_flag_spec='-R$libdir'
  8204. hardcode_direct=yes
  8205. hardcode_shlibpath_var=no
  8206. ;;
  8207. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8208. freebsd2.*)
  8209. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8210. hardcode_direct=yes
  8211. hardcode_minus_L=yes
  8212. hardcode_shlibpath_var=no
  8213. ;;
  8214. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8215. freebsd* | dragonfly*)
  8216. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8217. hardcode_libdir_flag_spec='-R$libdir'
  8218. hardcode_direct=yes
  8219. hardcode_shlibpath_var=no
  8220. ;;
  8221. hpux9*)
  8222. if test "$GCC" = yes; then
  8223. 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'
  8224. else
  8225. 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'
  8226. fi
  8227. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8228. hardcode_libdir_separator=:
  8229. hardcode_direct=yes
  8230. # hardcode_minus_L: Not really in the search PATH,
  8231. # but as the default location of the library.
  8232. hardcode_minus_L=yes
  8233. export_dynamic_flag_spec='${wl}-E'
  8234. ;;
  8235. hpux10*)
  8236. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8237. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8238. else
  8239. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8240. fi
  8241. if test "$with_gnu_ld" = no; then
  8242. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8243. hardcode_libdir_separator=:
  8244. hardcode_direct=yes
  8245. hardcode_direct_absolute=yes
  8246. export_dynamic_flag_spec='${wl}-E'
  8247. # hardcode_minus_L: Not really in the search PATH,
  8248. # but as the default location of the library.
  8249. hardcode_minus_L=yes
  8250. fi
  8251. ;;
  8252. hpux11*)
  8253. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8254. case $host_cpu in
  8255. hppa*64*)
  8256. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8257. ;;
  8258. ia64*)
  8259. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8260. ;;
  8261. *)
  8262. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8263. ;;
  8264. esac
  8265. else
  8266. case $host_cpu in
  8267. hppa*64*)
  8268. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8269. ;;
  8270. ia64*)
  8271. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8272. ;;
  8273. *)
  8274. # Older versions of the 11.00 compiler do not understand -b yet
  8275. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8277. $as_echo_n "checking if $CC understands -b... " >&6; }
  8278. if ${lt_cv_prog_compiler__b+:} false; then :
  8279. $as_echo_n "(cached) " >&6
  8280. else
  8281. lt_cv_prog_compiler__b=no
  8282. save_LDFLAGS="$LDFLAGS"
  8283. LDFLAGS="$LDFLAGS -b"
  8284. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8285. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8286. # The linker can only warn and ignore the option if not recognized
  8287. # So say no if there are warnings
  8288. if test -s conftest.err; then
  8289. # Append any errors to the config.log.
  8290. cat conftest.err 1>&5
  8291. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8292. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8293. if diff conftest.exp conftest.er2 >/dev/null; then
  8294. lt_cv_prog_compiler__b=yes
  8295. fi
  8296. else
  8297. lt_cv_prog_compiler__b=yes
  8298. fi
  8299. fi
  8300. $RM -r conftest*
  8301. LDFLAGS="$save_LDFLAGS"
  8302. fi
  8303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8304. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8305. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8306. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8307. else
  8308. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8309. fi
  8310. ;;
  8311. esac
  8312. fi
  8313. if test "$with_gnu_ld" = no; then
  8314. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8315. hardcode_libdir_separator=:
  8316. case $host_cpu in
  8317. hppa*64*|ia64*)
  8318. hardcode_direct=no
  8319. hardcode_shlibpath_var=no
  8320. ;;
  8321. *)
  8322. hardcode_direct=yes
  8323. hardcode_direct_absolute=yes
  8324. export_dynamic_flag_spec='${wl}-E'
  8325. # hardcode_minus_L: Not really in the search PATH,
  8326. # but as the default location of the library.
  8327. hardcode_minus_L=yes
  8328. ;;
  8329. esac
  8330. fi
  8331. ;;
  8332. irix5* | irix6* | nonstopux*)
  8333. if test "$GCC" = yes; then
  8334. 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'
  8335. # Try to use the -exported_symbol ld option, if it does not
  8336. # work, assume that -exports_file does not work either and
  8337. # implicitly export all symbols.
  8338. # This should be the same for all languages, so no per-tag cache variable.
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8340. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8341. if ${lt_cv_irix_exported_symbol+:} false; then :
  8342. $as_echo_n "(cached) " >&6
  8343. else
  8344. save_LDFLAGS="$LDFLAGS"
  8345. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8347. /* end confdefs.h. */
  8348. int foo (void) { return 0; }
  8349. _ACEOF
  8350. if ac_fn_c_try_link "$LINENO"; then :
  8351. lt_cv_irix_exported_symbol=yes
  8352. else
  8353. lt_cv_irix_exported_symbol=no
  8354. fi
  8355. rm -f core conftest.err conftest.$ac_objext \
  8356. conftest$ac_exeext conftest.$ac_ext
  8357. LDFLAGS="$save_LDFLAGS"
  8358. fi
  8359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8360. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8361. if test "$lt_cv_irix_exported_symbol" = yes; then
  8362. 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'
  8363. fi
  8364. else
  8365. 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'
  8366. 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'
  8367. fi
  8368. archive_cmds_need_lc='no'
  8369. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8370. hardcode_libdir_separator=:
  8371. inherit_rpath=yes
  8372. link_all_deplibs=yes
  8373. ;;
  8374. netbsd*)
  8375. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8376. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8377. else
  8378. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8379. fi
  8380. hardcode_libdir_flag_spec='-R$libdir'
  8381. hardcode_direct=yes
  8382. hardcode_shlibpath_var=no
  8383. ;;
  8384. newsos6)
  8385. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8386. hardcode_direct=yes
  8387. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8388. hardcode_libdir_separator=:
  8389. hardcode_shlibpath_var=no
  8390. ;;
  8391. *nto* | *qnx*)
  8392. ;;
  8393. openbsd*)
  8394. if test -f /usr/libexec/ld.so; then
  8395. hardcode_direct=yes
  8396. hardcode_shlibpath_var=no
  8397. hardcode_direct_absolute=yes
  8398. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8399. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8400. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8401. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8402. export_dynamic_flag_spec='${wl}-E'
  8403. else
  8404. case $host_os in
  8405. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8406. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8407. hardcode_libdir_flag_spec='-R$libdir'
  8408. ;;
  8409. *)
  8410. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8411. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8412. ;;
  8413. esac
  8414. fi
  8415. else
  8416. ld_shlibs=no
  8417. fi
  8418. ;;
  8419. os2*)
  8420. hardcode_libdir_flag_spec='-L$libdir'
  8421. hardcode_minus_L=yes
  8422. allow_undefined_flag=unsupported
  8423. 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'
  8424. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8425. ;;
  8426. osf3*)
  8427. if test "$GCC" = yes; then
  8428. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8429. 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'
  8430. else
  8431. allow_undefined_flag=' -expect_unresolved \*'
  8432. 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'
  8433. fi
  8434. archive_cmds_need_lc='no'
  8435. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8436. hardcode_libdir_separator=:
  8437. ;;
  8438. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8439. if test "$GCC" = yes; then
  8440. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8441. 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'
  8442. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8443. else
  8444. allow_undefined_flag=' -expect_unresolved \*'
  8445. 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'
  8446. 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~
  8447. $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'
  8448. # Both c and cxx compiler support -rpath directly
  8449. hardcode_libdir_flag_spec='-rpath $libdir'
  8450. fi
  8451. archive_cmds_need_lc='no'
  8452. hardcode_libdir_separator=:
  8453. ;;
  8454. solaris*)
  8455. no_undefined_flag=' -z defs'
  8456. if test "$GCC" = yes; then
  8457. wlarc='${wl}'
  8458. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8460. $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'
  8461. else
  8462. case `$CC -V 2>&1` in
  8463. *"Compilers 5.0"*)
  8464. wlarc=''
  8465. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8466. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8467. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8468. ;;
  8469. *)
  8470. wlarc='${wl}'
  8471. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8472. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8473. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8474. ;;
  8475. esac
  8476. fi
  8477. hardcode_libdir_flag_spec='-R$libdir'
  8478. hardcode_shlibpath_var=no
  8479. case $host_os in
  8480. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8481. *)
  8482. # The compiler driver will combine and reorder linker options,
  8483. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8484. # but is careful enough not to reorder.
  8485. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8486. if test "$GCC" = yes; then
  8487. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8488. else
  8489. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8490. fi
  8491. ;;
  8492. esac
  8493. link_all_deplibs=yes
  8494. ;;
  8495. sunos4*)
  8496. if test "x$host_vendor" = xsequent; then
  8497. # Use $CC to link under sequent, because it throws in some extra .o
  8498. # files that make .init and .fini sections work.
  8499. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8500. else
  8501. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8502. fi
  8503. hardcode_libdir_flag_spec='-L$libdir'
  8504. hardcode_direct=yes
  8505. hardcode_minus_L=yes
  8506. hardcode_shlibpath_var=no
  8507. ;;
  8508. sysv4)
  8509. case $host_vendor in
  8510. sni)
  8511. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8512. hardcode_direct=yes # is this really true???
  8513. ;;
  8514. siemens)
  8515. ## LD is ld it makes a PLAMLIB
  8516. ## CC just makes a GrossModule.
  8517. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8518. reload_cmds='$CC -r -o $output$reload_objs'
  8519. hardcode_direct=no
  8520. ;;
  8521. motorola)
  8522. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8523. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8524. ;;
  8525. esac
  8526. runpath_var='LD_RUN_PATH'
  8527. hardcode_shlibpath_var=no
  8528. ;;
  8529. sysv4.3*)
  8530. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8531. hardcode_shlibpath_var=no
  8532. export_dynamic_flag_spec='-Bexport'
  8533. ;;
  8534. sysv4*MP*)
  8535. if test -d /usr/nec; then
  8536. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8537. hardcode_shlibpath_var=no
  8538. runpath_var=LD_RUN_PATH
  8539. hardcode_runpath_var=yes
  8540. ld_shlibs=yes
  8541. fi
  8542. ;;
  8543. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8544. no_undefined_flag='${wl}-z,text'
  8545. archive_cmds_need_lc=no
  8546. hardcode_shlibpath_var=no
  8547. runpath_var='LD_RUN_PATH'
  8548. if test "$GCC" = yes; then
  8549. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8550. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8551. else
  8552. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8553. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8554. fi
  8555. ;;
  8556. sysv5* | sco3.2v5* | sco5v6*)
  8557. # Note: We can NOT use -z defs as we might desire, because we do not
  8558. # link with -lc, and that would cause any symbols used from libc to
  8559. # always be unresolved, which means just about no library would
  8560. # ever link correctly. If we're not using GNU ld we use -z text
  8561. # though, which does catch some bad symbols but isn't as heavy-handed
  8562. # as -z defs.
  8563. no_undefined_flag='${wl}-z,text'
  8564. allow_undefined_flag='${wl}-z,nodefs'
  8565. archive_cmds_need_lc=no
  8566. hardcode_shlibpath_var=no
  8567. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8568. hardcode_libdir_separator=':'
  8569. link_all_deplibs=yes
  8570. export_dynamic_flag_spec='${wl}-Bexport'
  8571. runpath_var='LD_RUN_PATH'
  8572. if test "$GCC" = yes; then
  8573. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8574. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8575. else
  8576. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8577. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8578. fi
  8579. ;;
  8580. uts4*)
  8581. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8582. hardcode_libdir_flag_spec='-L$libdir'
  8583. hardcode_shlibpath_var=no
  8584. ;;
  8585. *)
  8586. ld_shlibs=no
  8587. ;;
  8588. esac
  8589. if test x$host_vendor = xsni; then
  8590. case $host in
  8591. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8592. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8593. ;;
  8594. esac
  8595. fi
  8596. fi
  8597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8598. $as_echo "$ld_shlibs" >&6; }
  8599. test "$ld_shlibs" = no && can_build_shared=no
  8600. with_gnu_ld=$with_gnu_ld
  8601. #
  8602. # Do we need to explicitly link libc?
  8603. #
  8604. case "x$archive_cmds_need_lc" in
  8605. x|xyes)
  8606. # Assume -lc should be added
  8607. archive_cmds_need_lc=yes
  8608. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8609. case $archive_cmds in
  8610. *'~'*)
  8611. # FIXME: we may have to deal with multi-command sequences.
  8612. ;;
  8613. '$CC '*)
  8614. # Test whether the compiler implicitly links with -lc since on some
  8615. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8616. # to ld, don't add -lc before -lgcc.
  8617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8618. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8619. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8620. $as_echo_n "(cached) " >&6
  8621. else
  8622. $RM conftest*
  8623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8624. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8625. (eval $ac_compile) 2>&5
  8626. ac_status=$?
  8627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8628. test $ac_status = 0; } 2>conftest.err; then
  8629. soname=conftest
  8630. lib=conftest
  8631. libobjs=conftest.$ac_objext
  8632. deplibs=
  8633. wl=$lt_prog_compiler_wl
  8634. pic_flag=$lt_prog_compiler_pic
  8635. compiler_flags=-v
  8636. linker_flags=-v
  8637. verstring=
  8638. output_objdir=.
  8639. libname=conftest
  8640. lt_save_allow_undefined_flag=$allow_undefined_flag
  8641. allow_undefined_flag=
  8642. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8643. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8644. ac_status=$?
  8645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8646. test $ac_status = 0; }
  8647. then
  8648. lt_cv_archive_cmds_need_lc=no
  8649. else
  8650. lt_cv_archive_cmds_need_lc=yes
  8651. fi
  8652. allow_undefined_flag=$lt_save_allow_undefined_flag
  8653. else
  8654. cat conftest.err 1>&5
  8655. fi
  8656. $RM conftest*
  8657. fi
  8658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8659. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8660. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8661. ;;
  8662. esac
  8663. fi
  8664. ;;
  8665. esac
  8666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8667. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8668. if test "$GCC" = yes; then
  8669. case $host_os in
  8670. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8671. *) lt_awk_arg="/^libraries:/" ;;
  8672. esac
  8673. case $host_os in
  8674. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8675. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8676. esac
  8677. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8678. case $lt_search_path_spec in
  8679. *\;*)
  8680. # if the path contains ";" then we assume it to be the separator
  8681. # otherwise default to the standard path separator (i.e. ":") - it is
  8682. # assumed that no part of a normal pathname contains ";" but that should
  8683. # okay in the real world where ";" in dirpaths is itself problematic.
  8684. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8685. ;;
  8686. *)
  8687. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8688. ;;
  8689. esac
  8690. # Ok, now we have the path, separated by spaces, we can step through it
  8691. # and add multilib dir if necessary...
  8692. lt_tmp_lt_search_path_spec=
  8693. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8694. # ...but if some path already ends with the multilib dir we assume
  8695. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8696. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8697. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8698. lt_multi_os_dir=
  8699. ;;
  8700. esac
  8701. for lt_sys_path in $lt_search_path_spec; do
  8702. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8703. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8704. elif test -n "$lt_multi_os_dir"; then
  8705. test -d "$lt_sys_path" && \
  8706. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8707. fi
  8708. done
  8709. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8710. BEGIN {RS=" "; FS="/|\n";} {
  8711. lt_foo="";
  8712. lt_count=0;
  8713. for (lt_i = NF; lt_i > 0; lt_i--) {
  8714. if ($lt_i != "" && $lt_i != ".") {
  8715. if ($lt_i == "..") {
  8716. lt_count++;
  8717. } else {
  8718. if (lt_count == 0) {
  8719. lt_foo="/" $lt_i lt_foo;
  8720. } else {
  8721. lt_count--;
  8722. }
  8723. }
  8724. }
  8725. }
  8726. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8727. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8728. }'`
  8729. # AWK program above erroneously prepends '/' to C:/dos/paths
  8730. # for these hosts.
  8731. case $host_os in
  8732. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8733. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8734. esac
  8735. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8736. else
  8737. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8738. fi
  8739. library_names_spec=
  8740. libname_spec='lib$name'
  8741. soname_spec=
  8742. shrext_cmds=".so"
  8743. postinstall_cmds=
  8744. postuninstall_cmds=
  8745. finish_cmds=
  8746. finish_eval=
  8747. shlibpath_var=
  8748. shlibpath_overrides_runpath=unknown
  8749. version_type=none
  8750. dynamic_linker="$host_os ld.so"
  8751. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8752. need_lib_prefix=unknown
  8753. hardcode_into_libs=no
  8754. # when you set need_version to no, make sure it does not cause -set_version
  8755. # flags to be left without arguments
  8756. need_version=unknown
  8757. case $host_os in
  8758. aix3*)
  8759. version_type=linux # correct to gnu/linux during the next big refactor
  8760. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8761. shlibpath_var=LIBPATH
  8762. # AIX 3 has no versioning support, so we append a major version to the name.
  8763. soname_spec='${libname}${release}${shared_ext}$major'
  8764. ;;
  8765. aix[4-9]*)
  8766. version_type=linux # correct to gnu/linux during the next big refactor
  8767. need_lib_prefix=no
  8768. need_version=no
  8769. hardcode_into_libs=yes
  8770. if test "$host_cpu" = ia64; then
  8771. # AIX 5 supports IA64
  8772. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8773. shlibpath_var=LD_LIBRARY_PATH
  8774. else
  8775. # With GCC up to 2.95.x, collect2 would create an import file
  8776. # for dependence libraries. The import file would start with
  8777. # the line `#! .'. This would cause the generated library to
  8778. # depend on `.', always an invalid library. This was fixed in
  8779. # development snapshots of GCC prior to 3.0.
  8780. case $host_os in
  8781. aix4 | aix4.[01] | aix4.[01].*)
  8782. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8783. echo ' yes '
  8784. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8785. :
  8786. else
  8787. can_build_shared=no
  8788. fi
  8789. ;;
  8790. esac
  8791. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8792. # soname into executable. Probably we can add versioning support to
  8793. # collect2, so additional links can be useful in future.
  8794. if test "$aix_use_runtimelinking" = yes; then
  8795. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8796. # instead of lib<name>.a to let people know that these are not
  8797. # typical AIX shared libraries.
  8798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8799. else
  8800. # We preserve .a as extension for shared libraries through AIX4.2
  8801. # and later when we are not doing run time linking.
  8802. library_names_spec='${libname}${release}.a $libname.a'
  8803. soname_spec='${libname}${release}${shared_ext}$major'
  8804. fi
  8805. shlibpath_var=LIBPATH
  8806. fi
  8807. ;;
  8808. amigaos*)
  8809. case $host_cpu in
  8810. powerpc)
  8811. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8812. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8813. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8814. ;;
  8815. m68k)
  8816. library_names_spec='$libname.ixlibrary $libname.a'
  8817. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8818. 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'
  8819. ;;
  8820. esac
  8821. ;;
  8822. beos*)
  8823. library_names_spec='${libname}${shared_ext}'
  8824. dynamic_linker="$host_os ld.so"
  8825. shlibpath_var=LIBRARY_PATH
  8826. ;;
  8827. bsdi[45]*)
  8828. version_type=linux # correct to gnu/linux during the next big refactor
  8829. need_version=no
  8830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8831. soname_spec='${libname}${release}${shared_ext}$major'
  8832. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8833. shlibpath_var=LD_LIBRARY_PATH
  8834. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8835. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8836. # the default ld.so.conf also contains /usr/contrib/lib and
  8837. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8838. # libtool to hard-code these into programs
  8839. ;;
  8840. cygwin* | mingw* | pw32* | cegcc*)
  8841. version_type=windows
  8842. shrext_cmds=".dll"
  8843. need_version=no
  8844. need_lib_prefix=no
  8845. case $GCC,$cc_basename in
  8846. yes,*)
  8847. # gcc
  8848. library_names_spec='$libname.dll.a'
  8849. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8850. postinstall_cmds='base_file=`basename \${file}`~
  8851. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8852. dldir=$destdir/`dirname \$dlpath`~
  8853. test -d \$dldir || mkdir -p \$dldir~
  8854. $install_prog $dir/$dlname \$dldir/$dlname~
  8855. chmod a+x \$dldir/$dlname~
  8856. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8857. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8858. fi'
  8859. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8860. dlpath=$dir/\$dldll~
  8861. $RM \$dlpath'
  8862. shlibpath_overrides_runpath=yes
  8863. case $host_os in
  8864. cygwin*)
  8865. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8866. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8867. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8868. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8869. ;;
  8870. mingw* | cegcc*)
  8871. # MinGW DLLs use traditional 'lib' prefix
  8872. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8873. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8874. ;;
  8875. pw32*)
  8876. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8877. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8878. ;;
  8879. esac
  8880. dynamic_linker='Win32 ld.exe'
  8881. ;;
  8882. *,cl*)
  8883. # Native MSVC
  8884. libname_spec='$name'
  8885. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8886. library_names_spec='${libname}.dll.lib'
  8887. case $build_os in
  8888. mingw*)
  8889. sys_lib_search_path_spec=
  8890. lt_save_ifs=$IFS
  8891. IFS=';'
  8892. for lt_path in $LIB
  8893. do
  8894. IFS=$lt_save_ifs
  8895. # Let DOS variable expansion print the short 8.3 style file name.
  8896. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8897. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8898. done
  8899. IFS=$lt_save_ifs
  8900. # Convert to MSYS style.
  8901. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8902. ;;
  8903. cygwin*)
  8904. # Convert to unix form, then to dos form, then back to unix form
  8905. # but this time dos style (no spaces!) so that the unix form looks
  8906. # like /cygdrive/c/PROGRA~1:/cygdr...
  8907. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8908. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8909. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8910. ;;
  8911. *)
  8912. sys_lib_search_path_spec="$LIB"
  8913. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8914. # It is most probably a Windows format PATH.
  8915. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8916. else
  8917. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8918. fi
  8919. # FIXME: find the short name or the path components, as spaces are
  8920. # common. (e.g. "Program Files" -> "PROGRA~1")
  8921. ;;
  8922. esac
  8923. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8924. postinstall_cmds='base_file=`basename \${file}`~
  8925. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8926. dldir=$destdir/`dirname \$dlpath`~
  8927. test -d \$dldir || mkdir -p \$dldir~
  8928. $install_prog $dir/$dlname \$dldir/$dlname'
  8929. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8930. dlpath=$dir/\$dldll~
  8931. $RM \$dlpath'
  8932. shlibpath_overrides_runpath=yes
  8933. dynamic_linker='Win32 link.exe'
  8934. ;;
  8935. *)
  8936. # Assume MSVC wrapper
  8937. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8938. dynamic_linker='Win32 ld.exe'
  8939. ;;
  8940. esac
  8941. # FIXME: first we should search . and the directory the executable is in
  8942. shlibpath_var=PATH
  8943. ;;
  8944. darwin* | rhapsody*)
  8945. dynamic_linker="$host_os dyld"
  8946. version_type=darwin
  8947. need_lib_prefix=no
  8948. need_version=no
  8949. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8950. soname_spec='${libname}${release}${major}$shared_ext'
  8951. shlibpath_overrides_runpath=yes
  8952. shlibpath_var=DYLD_LIBRARY_PATH
  8953. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8954. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8955. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8956. ;;
  8957. dgux*)
  8958. version_type=linux # correct to gnu/linux during the next big refactor
  8959. need_lib_prefix=no
  8960. need_version=no
  8961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8962. soname_spec='${libname}${release}${shared_ext}$major'
  8963. shlibpath_var=LD_LIBRARY_PATH
  8964. ;;
  8965. freebsd* | dragonfly*)
  8966. # DragonFly does not have aout. When/if they implement a new
  8967. # versioning mechanism, adjust this.
  8968. if test -x /usr/bin/objformat; then
  8969. objformat=`/usr/bin/objformat`
  8970. else
  8971. case $host_os in
  8972. freebsd[23].*) objformat=aout ;;
  8973. *) objformat=elf ;;
  8974. esac
  8975. fi
  8976. version_type=freebsd-$objformat
  8977. case $version_type in
  8978. freebsd-elf*)
  8979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8980. need_version=no
  8981. need_lib_prefix=no
  8982. ;;
  8983. freebsd-*)
  8984. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8985. need_version=yes
  8986. ;;
  8987. esac
  8988. shlibpath_var=LD_LIBRARY_PATH
  8989. case $host_os in
  8990. freebsd2.*)
  8991. shlibpath_overrides_runpath=yes
  8992. ;;
  8993. freebsd3.[01]* | freebsdelf3.[01]*)
  8994. shlibpath_overrides_runpath=yes
  8995. hardcode_into_libs=yes
  8996. ;;
  8997. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8998. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8999. shlibpath_overrides_runpath=no
  9000. hardcode_into_libs=yes
  9001. ;;
  9002. *) # from 4.6 on, and DragonFly
  9003. shlibpath_overrides_runpath=yes
  9004. hardcode_into_libs=yes
  9005. ;;
  9006. esac
  9007. ;;
  9008. gnu*)
  9009. version_type=linux # correct to gnu/linux during the next big refactor
  9010. need_lib_prefix=no
  9011. need_version=no
  9012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9013. soname_spec='${libname}${release}${shared_ext}$major'
  9014. shlibpath_var=LD_LIBRARY_PATH
  9015. shlibpath_overrides_runpath=no
  9016. hardcode_into_libs=yes
  9017. ;;
  9018. haiku*)
  9019. version_type=linux # correct to gnu/linux during the next big refactor
  9020. need_lib_prefix=no
  9021. need_version=no
  9022. dynamic_linker="$host_os runtime_loader"
  9023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9024. soname_spec='${libname}${release}${shared_ext}$major'
  9025. shlibpath_var=LIBRARY_PATH
  9026. shlibpath_overrides_runpath=yes
  9027. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9028. hardcode_into_libs=yes
  9029. ;;
  9030. hpux9* | hpux10* | hpux11*)
  9031. # Give a soname corresponding to the major version so that dld.sl refuses to
  9032. # link against other versions.
  9033. version_type=sunos
  9034. need_lib_prefix=no
  9035. need_version=no
  9036. case $host_cpu in
  9037. ia64*)
  9038. shrext_cmds='.so'
  9039. hardcode_into_libs=yes
  9040. dynamic_linker="$host_os dld.so"
  9041. shlibpath_var=LD_LIBRARY_PATH
  9042. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9044. soname_spec='${libname}${release}${shared_ext}$major'
  9045. if test "X$HPUX_IA64_MODE" = X32; then
  9046. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9047. else
  9048. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9049. fi
  9050. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9051. ;;
  9052. hppa*64*)
  9053. shrext_cmds='.sl'
  9054. hardcode_into_libs=yes
  9055. dynamic_linker="$host_os dld.sl"
  9056. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9057. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9059. soname_spec='${libname}${release}${shared_ext}$major'
  9060. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9061. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9062. ;;
  9063. *)
  9064. shrext_cmds='.sl'
  9065. dynamic_linker="$host_os dld.sl"
  9066. shlibpath_var=SHLIB_PATH
  9067. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9069. soname_spec='${libname}${release}${shared_ext}$major'
  9070. ;;
  9071. esac
  9072. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9073. postinstall_cmds='chmod 555 $lib'
  9074. # or fails outright, so override atomically:
  9075. install_override_mode=555
  9076. ;;
  9077. interix[3-9]*)
  9078. version_type=linux # correct to gnu/linux during the next big refactor
  9079. need_lib_prefix=no
  9080. need_version=no
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9082. soname_spec='${libname}${release}${shared_ext}$major'
  9083. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9084. shlibpath_var=LD_LIBRARY_PATH
  9085. shlibpath_overrides_runpath=no
  9086. hardcode_into_libs=yes
  9087. ;;
  9088. irix5* | irix6* | nonstopux*)
  9089. case $host_os in
  9090. nonstopux*) version_type=nonstopux ;;
  9091. *)
  9092. if test "$lt_cv_prog_gnu_ld" = yes; then
  9093. version_type=linux # correct to gnu/linux during the next big refactor
  9094. else
  9095. version_type=irix
  9096. fi ;;
  9097. esac
  9098. need_lib_prefix=no
  9099. need_version=no
  9100. soname_spec='${libname}${release}${shared_ext}$major'
  9101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9102. case $host_os in
  9103. irix5* | nonstopux*)
  9104. libsuff= shlibsuff=
  9105. ;;
  9106. *)
  9107. case $LD in # libtool.m4 will add one of these switches to LD
  9108. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9109. libsuff= shlibsuff= libmagic=32-bit;;
  9110. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9111. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9112. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9113. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9114. *) libsuff= shlibsuff= libmagic=never-match;;
  9115. esac
  9116. ;;
  9117. esac
  9118. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9119. shlibpath_overrides_runpath=no
  9120. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9121. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9122. hardcode_into_libs=yes
  9123. ;;
  9124. # No shared lib support for Linux oldld, aout, or coff.
  9125. linux*oldld* | linux*aout* | linux*coff*)
  9126. dynamic_linker=no
  9127. ;;
  9128. # This must be glibc/ELF.
  9129. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9130. version_type=linux # correct to gnu/linux during the next big refactor
  9131. need_lib_prefix=no
  9132. need_version=no
  9133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9134. soname_spec='${libname}${release}${shared_ext}$major'
  9135. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9136. shlibpath_var=LD_LIBRARY_PATH
  9137. shlibpath_overrides_runpath=no
  9138. # Some binutils ld are patched to set DT_RUNPATH
  9139. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9140. $as_echo_n "(cached) " >&6
  9141. else
  9142. lt_cv_shlibpath_overrides_runpath=no
  9143. save_LDFLAGS=$LDFLAGS
  9144. save_libdir=$libdir
  9145. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9146. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9148. /* end confdefs.h. */
  9149. int
  9150. main ()
  9151. {
  9152. ;
  9153. return 0;
  9154. }
  9155. _ACEOF
  9156. if ac_fn_c_try_link "$LINENO"; then :
  9157. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9158. lt_cv_shlibpath_overrides_runpath=yes
  9159. fi
  9160. fi
  9161. rm -f core conftest.err conftest.$ac_objext \
  9162. conftest$ac_exeext conftest.$ac_ext
  9163. LDFLAGS=$save_LDFLAGS
  9164. libdir=$save_libdir
  9165. fi
  9166. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9167. # This implies no fast_install, which is unacceptable.
  9168. # Some rework will be needed to allow for fast_install
  9169. # before this can be enabled.
  9170. hardcode_into_libs=yes
  9171. # Append ld.so.conf contents to the search path
  9172. if test -f /etc/ld.so.conf; then
  9173. 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' ' '`
  9174. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9175. fi
  9176. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9177. # powerpc, because MkLinux only supported shared libraries with the
  9178. # GNU dynamic linker. Since this was broken with cross compilers,
  9179. # most powerpc-linux boxes support dynamic linking these days and
  9180. # people can always --disable-shared, the test was removed, and we
  9181. # assume the GNU/Linux dynamic linker is in use.
  9182. dynamic_linker='GNU/Linux ld.so'
  9183. ;;
  9184. netbsd*)
  9185. version_type=sunos
  9186. need_lib_prefix=no
  9187. need_version=no
  9188. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9190. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9191. dynamic_linker='NetBSD (a.out) ld.so'
  9192. else
  9193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9194. soname_spec='${libname}${release}${shared_ext}$major'
  9195. dynamic_linker='NetBSD ld.elf_so'
  9196. fi
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. shlibpath_overrides_runpath=yes
  9199. hardcode_into_libs=yes
  9200. ;;
  9201. newsos6)
  9202. version_type=linux # correct to gnu/linux during the next big refactor
  9203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. shlibpath_overrides_runpath=yes
  9206. ;;
  9207. *nto* | *qnx*)
  9208. version_type=qnx
  9209. need_lib_prefix=no
  9210. need_version=no
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9212. soname_spec='${libname}${release}${shared_ext}$major'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. shlibpath_overrides_runpath=no
  9215. hardcode_into_libs=yes
  9216. dynamic_linker='ldqnx.so'
  9217. ;;
  9218. openbsd*)
  9219. version_type=sunos
  9220. sys_lib_dlsearch_path_spec="/usr/lib"
  9221. need_lib_prefix=no
  9222. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9223. case $host_os in
  9224. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9225. *) need_version=no ;;
  9226. esac
  9227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9228. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9229. shlibpath_var=LD_LIBRARY_PATH
  9230. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9231. case $host_os in
  9232. openbsd2.[89] | openbsd2.[89].*)
  9233. shlibpath_overrides_runpath=no
  9234. ;;
  9235. *)
  9236. shlibpath_overrides_runpath=yes
  9237. ;;
  9238. esac
  9239. else
  9240. shlibpath_overrides_runpath=yes
  9241. fi
  9242. ;;
  9243. os2*)
  9244. libname_spec='$name'
  9245. shrext_cmds=".dll"
  9246. need_lib_prefix=no
  9247. library_names_spec='$libname${shared_ext} $libname.a'
  9248. dynamic_linker='OS/2 ld.exe'
  9249. shlibpath_var=LIBPATH
  9250. ;;
  9251. osf3* | osf4* | osf5*)
  9252. version_type=osf
  9253. need_lib_prefix=no
  9254. need_version=no
  9255. soname_spec='${libname}${release}${shared_ext}$major'
  9256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9257. shlibpath_var=LD_LIBRARY_PATH
  9258. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9259. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9260. ;;
  9261. rdos*)
  9262. dynamic_linker=no
  9263. ;;
  9264. solaris*)
  9265. version_type=linux # correct to gnu/linux during the next big refactor
  9266. need_lib_prefix=no
  9267. need_version=no
  9268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9269. soname_spec='${libname}${release}${shared_ext}$major'
  9270. shlibpath_var=LD_LIBRARY_PATH
  9271. shlibpath_overrides_runpath=yes
  9272. hardcode_into_libs=yes
  9273. # ldd complains unless libraries are executable
  9274. postinstall_cmds='chmod +x $lib'
  9275. ;;
  9276. sunos4*)
  9277. version_type=sunos
  9278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9279. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9280. shlibpath_var=LD_LIBRARY_PATH
  9281. shlibpath_overrides_runpath=yes
  9282. if test "$with_gnu_ld" = yes; then
  9283. need_lib_prefix=no
  9284. fi
  9285. need_version=yes
  9286. ;;
  9287. sysv4 | sysv4.3*)
  9288. version_type=linux # correct to gnu/linux during the next big refactor
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9290. soname_spec='${libname}${release}${shared_ext}$major'
  9291. shlibpath_var=LD_LIBRARY_PATH
  9292. case $host_vendor in
  9293. sni)
  9294. shlibpath_overrides_runpath=no
  9295. need_lib_prefix=no
  9296. runpath_var=LD_RUN_PATH
  9297. ;;
  9298. siemens)
  9299. need_lib_prefix=no
  9300. ;;
  9301. motorola)
  9302. need_lib_prefix=no
  9303. need_version=no
  9304. shlibpath_overrides_runpath=no
  9305. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9306. ;;
  9307. esac
  9308. ;;
  9309. sysv4*MP*)
  9310. if test -d /usr/nec ;then
  9311. version_type=linux # correct to gnu/linux during the next big refactor
  9312. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9313. soname_spec='$libname${shared_ext}.$major'
  9314. shlibpath_var=LD_LIBRARY_PATH
  9315. fi
  9316. ;;
  9317. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9318. version_type=freebsd-elf
  9319. need_lib_prefix=no
  9320. need_version=no
  9321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9322. soname_spec='${libname}${release}${shared_ext}$major'
  9323. shlibpath_var=LD_LIBRARY_PATH
  9324. shlibpath_overrides_runpath=yes
  9325. hardcode_into_libs=yes
  9326. if test "$with_gnu_ld" = yes; then
  9327. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9328. else
  9329. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9330. case $host_os in
  9331. sco3.2v5*)
  9332. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9333. ;;
  9334. esac
  9335. fi
  9336. sys_lib_dlsearch_path_spec='/usr/lib'
  9337. ;;
  9338. tpf*)
  9339. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9340. version_type=linux # correct to gnu/linux during the next big refactor
  9341. need_lib_prefix=no
  9342. need_version=no
  9343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9344. shlibpath_var=LD_LIBRARY_PATH
  9345. shlibpath_overrides_runpath=no
  9346. hardcode_into_libs=yes
  9347. ;;
  9348. uts4*)
  9349. version_type=linux # correct to gnu/linux during the next big refactor
  9350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9351. soname_spec='${libname}${release}${shared_ext}$major'
  9352. shlibpath_var=LD_LIBRARY_PATH
  9353. ;;
  9354. *)
  9355. dynamic_linker=no
  9356. ;;
  9357. esac
  9358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9359. $as_echo "$dynamic_linker" >&6; }
  9360. test "$dynamic_linker" = no && can_build_shared=no
  9361. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9362. if test "$GCC" = yes; then
  9363. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9364. fi
  9365. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9366. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9367. fi
  9368. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9369. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9370. fi
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9372. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9373. hardcode_action=
  9374. if test -n "$hardcode_libdir_flag_spec" ||
  9375. test -n "$runpath_var" ||
  9376. test "X$hardcode_automatic" = "Xyes" ; then
  9377. # We can hardcode non-existent directories.
  9378. if test "$hardcode_direct" != no &&
  9379. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9380. # have to relink, otherwise we might link with an installed library
  9381. # when we should be linking with a yet-to-be-installed one
  9382. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9383. test "$hardcode_minus_L" != no; then
  9384. # Linking always hardcodes the temporary library directory.
  9385. hardcode_action=relink
  9386. else
  9387. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9388. hardcode_action=immediate
  9389. fi
  9390. else
  9391. # We cannot hardcode anything, or else we can only hardcode existing
  9392. # directories.
  9393. hardcode_action=unsupported
  9394. fi
  9395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9396. $as_echo "$hardcode_action" >&6; }
  9397. if test "$hardcode_action" = relink ||
  9398. test "$inherit_rpath" = yes; then
  9399. # Fast installation is not supported
  9400. enable_fast_install=no
  9401. elif test "$shlibpath_overrides_runpath" = yes ||
  9402. test "$enable_shared" = no; then
  9403. # Fast installation is not necessary
  9404. enable_fast_install=needless
  9405. fi
  9406. if test "x$enable_dlopen" != xyes; then
  9407. enable_dlopen=unknown
  9408. enable_dlopen_self=unknown
  9409. enable_dlopen_self_static=unknown
  9410. else
  9411. lt_cv_dlopen=no
  9412. lt_cv_dlopen_libs=
  9413. case $host_os in
  9414. beos*)
  9415. lt_cv_dlopen="load_add_on"
  9416. lt_cv_dlopen_libs=
  9417. lt_cv_dlopen_self=yes
  9418. ;;
  9419. mingw* | pw32* | cegcc*)
  9420. lt_cv_dlopen="LoadLibrary"
  9421. lt_cv_dlopen_libs=
  9422. ;;
  9423. cygwin*)
  9424. lt_cv_dlopen="dlopen"
  9425. lt_cv_dlopen_libs=
  9426. ;;
  9427. darwin*)
  9428. # if libdl is installed we need to link against it
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9430. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9431. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9432. $as_echo_n "(cached) " >&6
  9433. else
  9434. ac_check_lib_save_LIBS=$LIBS
  9435. LIBS="-ldl $LIBS"
  9436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9437. /* end confdefs.h. */
  9438. /* Override any GCC internal prototype to avoid an error.
  9439. Use char because int might match the return type of a GCC
  9440. builtin and then its argument prototype would still apply. */
  9441. #ifdef __cplusplus
  9442. extern "C"
  9443. #endif
  9444. char dlopen ();
  9445. int
  9446. main ()
  9447. {
  9448. return dlopen ();
  9449. ;
  9450. return 0;
  9451. }
  9452. _ACEOF
  9453. if ac_fn_c_try_link "$LINENO"; then :
  9454. ac_cv_lib_dl_dlopen=yes
  9455. else
  9456. ac_cv_lib_dl_dlopen=no
  9457. fi
  9458. rm -f core conftest.err conftest.$ac_objext \
  9459. conftest$ac_exeext conftest.$ac_ext
  9460. LIBS=$ac_check_lib_save_LIBS
  9461. fi
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9463. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9464. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9465. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9466. else
  9467. lt_cv_dlopen="dyld"
  9468. lt_cv_dlopen_libs=
  9469. lt_cv_dlopen_self=yes
  9470. fi
  9471. ;;
  9472. *)
  9473. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9474. if test "x$ac_cv_func_shl_load" = xyes; then :
  9475. lt_cv_dlopen="shl_load"
  9476. else
  9477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9478. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9479. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9480. $as_echo_n "(cached) " >&6
  9481. else
  9482. ac_check_lib_save_LIBS=$LIBS
  9483. LIBS="-ldld $LIBS"
  9484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9485. /* end confdefs.h. */
  9486. /* Override any GCC internal prototype to avoid an error.
  9487. Use char because int might match the return type of a GCC
  9488. builtin and then its argument prototype would still apply. */
  9489. #ifdef __cplusplus
  9490. extern "C"
  9491. #endif
  9492. char shl_load ();
  9493. int
  9494. main ()
  9495. {
  9496. return shl_load ();
  9497. ;
  9498. return 0;
  9499. }
  9500. _ACEOF
  9501. if ac_fn_c_try_link "$LINENO"; then :
  9502. ac_cv_lib_dld_shl_load=yes
  9503. else
  9504. ac_cv_lib_dld_shl_load=no
  9505. fi
  9506. rm -f core conftest.err conftest.$ac_objext \
  9507. conftest$ac_exeext conftest.$ac_ext
  9508. LIBS=$ac_check_lib_save_LIBS
  9509. fi
  9510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9511. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9512. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9513. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9514. else
  9515. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9516. if test "x$ac_cv_func_dlopen" = xyes; then :
  9517. lt_cv_dlopen="dlopen"
  9518. else
  9519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9520. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9521. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9522. $as_echo_n "(cached) " >&6
  9523. else
  9524. ac_check_lib_save_LIBS=$LIBS
  9525. LIBS="-ldl $LIBS"
  9526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9527. /* end confdefs.h. */
  9528. /* Override any GCC internal prototype to avoid an error.
  9529. Use char because int might match the return type of a GCC
  9530. builtin and then its argument prototype would still apply. */
  9531. #ifdef __cplusplus
  9532. extern "C"
  9533. #endif
  9534. char dlopen ();
  9535. int
  9536. main ()
  9537. {
  9538. return dlopen ();
  9539. ;
  9540. return 0;
  9541. }
  9542. _ACEOF
  9543. if ac_fn_c_try_link "$LINENO"; then :
  9544. ac_cv_lib_dl_dlopen=yes
  9545. else
  9546. ac_cv_lib_dl_dlopen=no
  9547. fi
  9548. rm -f core conftest.err conftest.$ac_objext \
  9549. conftest$ac_exeext conftest.$ac_ext
  9550. LIBS=$ac_check_lib_save_LIBS
  9551. fi
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9553. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9554. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9555. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9556. else
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9558. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9559. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9560. $as_echo_n "(cached) " >&6
  9561. else
  9562. ac_check_lib_save_LIBS=$LIBS
  9563. LIBS="-lsvld $LIBS"
  9564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9565. /* end confdefs.h. */
  9566. /* Override any GCC internal prototype to avoid an error.
  9567. Use char because int might match the return type of a GCC
  9568. builtin and then its argument prototype would still apply. */
  9569. #ifdef __cplusplus
  9570. extern "C"
  9571. #endif
  9572. char dlopen ();
  9573. int
  9574. main ()
  9575. {
  9576. return dlopen ();
  9577. ;
  9578. return 0;
  9579. }
  9580. _ACEOF
  9581. if ac_fn_c_try_link "$LINENO"; then :
  9582. ac_cv_lib_svld_dlopen=yes
  9583. else
  9584. ac_cv_lib_svld_dlopen=no
  9585. fi
  9586. rm -f core conftest.err conftest.$ac_objext \
  9587. conftest$ac_exeext conftest.$ac_ext
  9588. LIBS=$ac_check_lib_save_LIBS
  9589. fi
  9590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9591. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9592. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9593. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9594. else
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9596. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9597. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9598. $as_echo_n "(cached) " >&6
  9599. else
  9600. ac_check_lib_save_LIBS=$LIBS
  9601. LIBS="-ldld $LIBS"
  9602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9603. /* end confdefs.h. */
  9604. /* Override any GCC internal prototype to avoid an error.
  9605. Use char because int might match the return type of a GCC
  9606. builtin and then its argument prototype would still apply. */
  9607. #ifdef __cplusplus
  9608. extern "C"
  9609. #endif
  9610. char dld_link ();
  9611. int
  9612. main ()
  9613. {
  9614. return dld_link ();
  9615. ;
  9616. return 0;
  9617. }
  9618. _ACEOF
  9619. if ac_fn_c_try_link "$LINENO"; then :
  9620. ac_cv_lib_dld_dld_link=yes
  9621. else
  9622. ac_cv_lib_dld_dld_link=no
  9623. fi
  9624. rm -f core conftest.err conftest.$ac_objext \
  9625. conftest$ac_exeext conftest.$ac_ext
  9626. LIBS=$ac_check_lib_save_LIBS
  9627. fi
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9629. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9630. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9631. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9632. fi
  9633. fi
  9634. fi
  9635. fi
  9636. fi
  9637. fi
  9638. ;;
  9639. esac
  9640. if test "x$lt_cv_dlopen" != xno; then
  9641. enable_dlopen=yes
  9642. else
  9643. enable_dlopen=no
  9644. fi
  9645. case $lt_cv_dlopen in
  9646. dlopen)
  9647. save_CPPFLAGS="$CPPFLAGS"
  9648. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9649. save_LDFLAGS="$LDFLAGS"
  9650. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9651. save_LIBS="$LIBS"
  9652. LIBS="$lt_cv_dlopen_libs $LIBS"
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9654. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9655. if ${lt_cv_dlopen_self+:} false; then :
  9656. $as_echo_n "(cached) " >&6
  9657. else
  9658. if test "$cross_compiling" = yes; then :
  9659. lt_cv_dlopen_self=cross
  9660. else
  9661. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9662. lt_status=$lt_dlunknown
  9663. cat > conftest.$ac_ext <<_LT_EOF
  9664. #line $LINENO "configure"
  9665. #include "confdefs.h"
  9666. #if HAVE_DLFCN_H
  9667. #include <dlfcn.h>
  9668. #endif
  9669. #include <stdio.h>
  9670. #ifdef RTLD_GLOBAL
  9671. # define LT_DLGLOBAL RTLD_GLOBAL
  9672. #else
  9673. # ifdef DL_GLOBAL
  9674. # define LT_DLGLOBAL DL_GLOBAL
  9675. # else
  9676. # define LT_DLGLOBAL 0
  9677. # endif
  9678. #endif
  9679. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9680. find out it does not work in some platform. */
  9681. #ifndef LT_DLLAZY_OR_NOW
  9682. # ifdef RTLD_LAZY
  9683. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9684. # else
  9685. # ifdef DL_LAZY
  9686. # define LT_DLLAZY_OR_NOW DL_LAZY
  9687. # else
  9688. # ifdef RTLD_NOW
  9689. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9690. # else
  9691. # ifdef DL_NOW
  9692. # define LT_DLLAZY_OR_NOW DL_NOW
  9693. # else
  9694. # define LT_DLLAZY_OR_NOW 0
  9695. # endif
  9696. # endif
  9697. # endif
  9698. # endif
  9699. #endif
  9700. /* When -fvisbility=hidden is used, assume the code has been annotated
  9701. correspondingly for the symbols needed. */
  9702. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9703. int fnord () __attribute__((visibility("default")));
  9704. #endif
  9705. int fnord () { return 42; }
  9706. int main ()
  9707. {
  9708. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9709. int status = $lt_dlunknown;
  9710. if (self)
  9711. {
  9712. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9713. else
  9714. {
  9715. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9716. else puts (dlerror ());
  9717. }
  9718. /* dlclose (self); */
  9719. }
  9720. else
  9721. puts (dlerror ());
  9722. return status;
  9723. }
  9724. _LT_EOF
  9725. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9726. (eval $ac_link) 2>&5
  9727. ac_status=$?
  9728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9729. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9730. (./conftest; exit; ) >&5 2>/dev/null
  9731. lt_status=$?
  9732. case x$lt_status in
  9733. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9734. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9735. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9736. esac
  9737. else :
  9738. # compilation failed
  9739. lt_cv_dlopen_self=no
  9740. fi
  9741. fi
  9742. rm -fr conftest*
  9743. fi
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9745. $as_echo "$lt_cv_dlopen_self" >&6; }
  9746. if test "x$lt_cv_dlopen_self" = xyes; then
  9747. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9749. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9750. if ${lt_cv_dlopen_self_static+:} false; then :
  9751. $as_echo_n "(cached) " >&6
  9752. else
  9753. if test "$cross_compiling" = yes; then :
  9754. lt_cv_dlopen_self_static=cross
  9755. else
  9756. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9757. lt_status=$lt_dlunknown
  9758. cat > conftest.$ac_ext <<_LT_EOF
  9759. #line $LINENO "configure"
  9760. #include "confdefs.h"
  9761. #if HAVE_DLFCN_H
  9762. #include <dlfcn.h>
  9763. #endif
  9764. #include <stdio.h>
  9765. #ifdef RTLD_GLOBAL
  9766. # define LT_DLGLOBAL RTLD_GLOBAL
  9767. #else
  9768. # ifdef DL_GLOBAL
  9769. # define LT_DLGLOBAL DL_GLOBAL
  9770. # else
  9771. # define LT_DLGLOBAL 0
  9772. # endif
  9773. #endif
  9774. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9775. find out it does not work in some platform. */
  9776. #ifndef LT_DLLAZY_OR_NOW
  9777. # ifdef RTLD_LAZY
  9778. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9779. # else
  9780. # ifdef DL_LAZY
  9781. # define LT_DLLAZY_OR_NOW DL_LAZY
  9782. # else
  9783. # ifdef RTLD_NOW
  9784. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9785. # else
  9786. # ifdef DL_NOW
  9787. # define LT_DLLAZY_OR_NOW DL_NOW
  9788. # else
  9789. # define LT_DLLAZY_OR_NOW 0
  9790. # endif
  9791. # endif
  9792. # endif
  9793. # endif
  9794. #endif
  9795. /* When -fvisbility=hidden is used, assume the code has been annotated
  9796. correspondingly for the symbols needed. */
  9797. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9798. int fnord () __attribute__((visibility("default")));
  9799. #endif
  9800. int fnord () { return 42; }
  9801. int main ()
  9802. {
  9803. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9804. int status = $lt_dlunknown;
  9805. if (self)
  9806. {
  9807. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9808. else
  9809. {
  9810. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9811. else puts (dlerror ());
  9812. }
  9813. /* dlclose (self); */
  9814. }
  9815. else
  9816. puts (dlerror ());
  9817. return status;
  9818. }
  9819. _LT_EOF
  9820. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9821. (eval $ac_link) 2>&5
  9822. ac_status=$?
  9823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9824. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9825. (./conftest; exit; ) >&5 2>/dev/null
  9826. lt_status=$?
  9827. case x$lt_status in
  9828. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9829. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9830. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9831. esac
  9832. else :
  9833. # compilation failed
  9834. lt_cv_dlopen_self_static=no
  9835. fi
  9836. fi
  9837. rm -fr conftest*
  9838. fi
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9840. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9841. fi
  9842. CPPFLAGS="$save_CPPFLAGS"
  9843. LDFLAGS="$save_LDFLAGS"
  9844. LIBS="$save_LIBS"
  9845. ;;
  9846. esac
  9847. case $lt_cv_dlopen_self in
  9848. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9849. *) enable_dlopen_self=unknown ;;
  9850. esac
  9851. case $lt_cv_dlopen_self_static in
  9852. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9853. *) enable_dlopen_self_static=unknown ;;
  9854. esac
  9855. fi
  9856. striplib=
  9857. old_striplib=
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9859. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9860. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9861. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9862. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9864. $as_echo "yes" >&6; }
  9865. else
  9866. # FIXME - insert some real tests, host_os isn't really good enough
  9867. case $host_os in
  9868. darwin*)
  9869. if test -n "$STRIP" ; then
  9870. striplib="$STRIP -x"
  9871. old_striplib="$STRIP -S"
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9873. $as_echo "yes" >&6; }
  9874. else
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9876. $as_echo "no" >&6; }
  9877. fi
  9878. ;;
  9879. *)
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9881. $as_echo "no" >&6; }
  9882. ;;
  9883. esac
  9884. fi
  9885. # Report which library types will actually be built
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9887. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9889. $as_echo "$can_build_shared" >&6; }
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9891. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9892. test "$can_build_shared" = "no" && enable_shared=no
  9893. # On AIX, shared libraries and static libraries use the same namespace, and
  9894. # are all built from PIC.
  9895. case $host_os in
  9896. aix3*)
  9897. test "$enable_shared" = yes && enable_static=no
  9898. if test -n "$RANLIB"; then
  9899. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9900. postinstall_cmds='$RANLIB $lib'
  9901. fi
  9902. ;;
  9903. aix[4-9]*)
  9904. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9905. test "$enable_shared" = yes && enable_static=no
  9906. fi
  9907. ;;
  9908. esac
  9909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9910. $as_echo "$enable_shared" >&6; }
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9912. $as_echo_n "checking whether to build static libraries... " >&6; }
  9913. # Make sure either enable_shared or enable_static is yes.
  9914. test "$enable_shared" = yes || enable_static=yes
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9916. $as_echo "$enable_static" >&6; }
  9917. fi
  9918. ac_ext=c
  9919. ac_cpp='$CPP $CPPFLAGS'
  9920. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9921. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9922. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9923. CC="$lt_save_CC"
  9924. ac_config_commands="$ac_config_commands libtool"
  9925. # Only expand once:
  9926. if test -n "$ac_tool_prefix"; then
  9927. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9928. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9930. $as_echo_n "checking for $ac_word... " >&6; }
  9931. if ${ac_cv_prog_RC+:} false; then :
  9932. $as_echo_n "(cached) " >&6
  9933. else
  9934. if test -n "$RC"; then
  9935. ac_cv_prog_RC="$RC" # Let the user override the test.
  9936. else
  9937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9938. for as_dir in $PATH
  9939. do
  9940. IFS=$as_save_IFS
  9941. test -z "$as_dir" && as_dir=.
  9942. for ac_exec_ext in '' $ac_executable_extensions; do
  9943. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9944. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9946. break 2
  9947. fi
  9948. done
  9949. done
  9950. IFS=$as_save_IFS
  9951. fi
  9952. fi
  9953. RC=$ac_cv_prog_RC
  9954. if test -n "$RC"; then
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9956. $as_echo "$RC" >&6; }
  9957. else
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9959. $as_echo "no" >&6; }
  9960. fi
  9961. fi
  9962. if test -z "$ac_cv_prog_RC"; then
  9963. ac_ct_RC=$RC
  9964. # Extract the first word of "windres", so it can be a program name with args.
  9965. set dummy windres; ac_word=$2
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9967. $as_echo_n "checking for $ac_word... " >&6; }
  9968. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9969. $as_echo_n "(cached) " >&6
  9970. else
  9971. if test -n "$ac_ct_RC"; then
  9972. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9973. else
  9974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9975. for as_dir in $PATH
  9976. do
  9977. IFS=$as_save_IFS
  9978. test -z "$as_dir" && as_dir=.
  9979. for ac_exec_ext in '' $ac_executable_extensions; do
  9980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9981. ac_cv_prog_ac_ct_RC="windres"
  9982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9983. break 2
  9984. fi
  9985. done
  9986. done
  9987. IFS=$as_save_IFS
  9988. fi
  9989. fi
  9990. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9991. if test -n "$ac_ct_RC"; then
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9993. $as_echo "$ac_ct_RC" >&6; }
  9994. else
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9996. $as_echo "no" >&6; }
  9997. fi
  9998. if test "x$ac_ct_RC" = x; then
  9999. RC=""
  10000. else
  10001. case $cross_compiling:$ac_tool_warned in
  10002. yes:)
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10004. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10005. ac_tool_warned=yes ;;
  10006. esac
  10007. RC=$ac_ct_RC
  10008. fi
  10009. else
  10010. RC="$ac_cv_prog_RC"
  10011. fi
  10012. # Source file extension for RC test sources.
  10013. ac_ext=rc
  10014. # Object file extension for compiled RC test sources.
  10015. objext=o
  10016. objext_RC=$objext
  10017. # Code to be used in simple compile tests
  10018. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10019. # Code to be used in simple link tests
  10020. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10021. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10022. # If no C compiler was specified, use CC.
  10023. LTCC=${LTCC-"$CC"}
  10024. # If no C compiler flags were specified, use CFLAGS.
  10025. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10026. # Allow CC to be a program name with arguments.
  10027. compiler=$CC
  10028. # save warnings/boilerplate of simple test code
  10029. ac_outfile=conftest.$ac_objext
  10030. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10031. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10032. _lt_compiler_boilerplate=`cat conftest.err`
  10033. $RM conftest*
  10034. ac_outfile=conftest.$ac_objext
  10035. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10036. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10037. _lt_linker_boilerplate=`cat conftest.err`
  10038. $RM -r conftest*
  10039. # Allow CC to be a program name with arguments.
  10040. lt_save_CC="$CC"
  10041. lt_save_CFLAGS=$CFLAGS
  10042. lt_save_GCC=$GCC
  10043. GCC=
  10044. CC=${RC-"windres"}
  10045. CFLAGS=
  10046. compiler=$CC
  10047. compiler_RC=$CC
  10048. for cc_temp in $compiler""; do
  10049. case $cc_temp in
  10050. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10051. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10052. \-*) ;;
  10053. *) break;;
  10054. esac
  10055. done
  10056. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10057. lt_cv_prog_compiler_c_o_RC=yes
  10058. if test -n "$compiler"; then
  10059. :
  10060. fi
  10061. GCC=$lt_save_GCC
  10062. ac_ext=c
  10063. ac_cpp='$CPP $CPPFLAGS'
  10064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10067. CC=$lt_save_CC
  10068. CFLAGS=$lt_save_CFLAGS
  10069. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10070. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10071. LT_REVISION=$SDL_INTERFACE_AGE
  10072. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10073. ac_ext=c
  10074. ac_cpp='$CPP $CPPFLAGS'
  10075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10078. if test -n "$ac_tool_prefix"; then
  10079. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10080. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10082. $as_echo_n "checking for $ac_word... " >&6; }
  10083. if ${ac_cv_prog_CC+:} false; then :
  10084. $as_echo_n "(cached) " >&6
  10085. else
  10086. if test -n "$CC"; then
  10087. ac_cv_prog_CC="$CC" # Let the user override the test.
  10088. else
  10089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10090. for as_dir in $PATH
  10091. do
  10092. IFS=$as_save_IFS
  10093. test -z "$as_dir" && as_dir=.
  10094. for ac_exec_ext in '' $ac_executable_extensions; do
  10095. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10096. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10098. break 2
  10099. fi
  10100. done
  10101. done
  10102. IFS=$as_save_IFS
  10103. fi
  10104. fi
  10105. CC=$ac_cv_prog_CC
  10106. if test -n "$CC"; then
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10108. $as_echo "$CC" >&6; }
  10109. else
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10111. $as_echo "no" >&6; }
  10112. fi
  10113. fi
  10114. if test -z "$ac_cv_prog_CC"; then
  10115. ac_ct_CC=$CC
  10116. # Extract the first word of "gcc", so it can be a program name with args.
  10117. set dummy gcc; ac_word=$2
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10119. $as_echo_n "checking for $ac_word... " >&6; }
  10120. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10121. $as_echo_n "(cached) " >&6
  10122. else
  10123. if test -n "$ac_ct_CC"; then
  10124. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10125. else
  10126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10127. for as_dir in $PATH
  10128. do
  10129. IFS=$as_save_IFS
  10130. test -z "$as_dir" && as_dir=.
  10131. for ac_exec_ext in '' $ac_executable_extensions; do
  10132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10133. ac_cv_prog_ac_ct_CC="gcc"
  10134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10135. break 2
  10136. fi
  10137. done
  10138. done
  10139. IFS=$as_save_IFS
  10140. fi
  10141. fi
  10142. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10143. if test -n "$ac_ct_CC"; then
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10145. $as_echo "$ac_ct_CC" >&6; }
  10146. else
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10148. $as_echo "no" >&6; }
  10149. fi
  10150. if test "x$ac_ct_CC" = x; then
  10151. CC=""
  10152. else
  10153. case $cross_compiling:$ac_tool_warned in
  10154. yes:)
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10156. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10157. ac_tool_warned=yes ;;
  10158. esac
  10159. CC=$ac_ct_CC
  10160. fi
  10161. else
  10162. CC="$ac_cv_prog_CC"
  10163. fi
  10164. if test -z "$CC"; then
  10165. if test -n "$ac_tool_prefix"; then
  10166. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10167. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10169. $as_echo_n "checking for $ac_word... " >&6; }
  10170. if ${ac_cv_prog_CC+:} false; then :
  10171. $as_echo_n "(cached) " >&6
  10172. else
  10173. if test -n "$CC"; then
  10174. ac_cv_prog_CC="$CC" # Let the user override the test.
  10175. else
  10176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10177. for as_dir in $PATH
  10178. do
  10179. IFS=$as_save_IFS
  10180. test -z "$as_dir" && as_dir=.
  10181. for ac_exec_ext in '' $ac_executable_extensions; do
  10182. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10183. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10185. break 2
  10186. fi
  10187. done
  10188. done
  10189. IFS=$as_save_IFS
  10190. fi
  10191. fi
  10192. CC=$ac_cv_prog_CC
  10193. if test -n "$CC"; then
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10195. $as_echo "$CC" >&6; }
  10196. else
  10197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10198. $as_echo "no" >&6; }
  10199. fi
  10200. fi
  10201. fi
  10202. if test -z "$CC"; then
  10203. # Extract the first word of "cc", so it can be a program name with args.
  10204. set dummy cc; ac_word=$2
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10206. $as_echo_n "checking for $ac_word... " >&6; }
  10207. if ${ac_cv_prog_CC+:} false; then :
  10208. $as_echo_n "(cached) " >&6
  10209. else
  10210. if test -n "$CC"; then
  10211. ac_cv_prog_CC="$CC" # Let the user override the test.
  10212. else
  10213. ac_prog_rejected=no
  10214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10215. for as_dir in $PATH
  10216. do
  10217. IFS=$as_save_IFS
  10218. test -z "$as_dir" && as_dir=.
  10219. for ac_exec_ext in '' $ac_executable_extensions; do
  10220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10221. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10222. ac_prog_rejected=yes
  10223. continue
  10224. fi
  10225. ac_cv_prog_CC="cc"
  10226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10227. break 2
  10228. fi
  10229. done
  10230. done
  10231. IFS=$as_save_IFS
  10232. if test $ac_prog_rejected = yes; then
  10233. # We found a bogon in the path, so make sure we never use it.
  10234. set dummy $ac_cv_prog_CC
  10235. shift
  10236. if test $# != 0; then
  10237. # We chose a different compiler from the bogus one.
  10238. # However, it has the same basename, so the bogon will be chosen
  10239. # first if we set CC to just the basename; use the full file name.
  10240. shift
  10241. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10242. fi
  10243. fi
  10244. fi
  10245. fi
  10246. CC=$ac_cv_prog_CC
  10247. if test -n "$CC"; then
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10249. $as_echo "$CC" >&6; }
  10250. else
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10252. $as_echo "no" >&6; }
  10253. fi
  10254. fi
  10255. if test -z "$CC"; then
  10256. if test -n "$ac_tool_prefix"; then
  10257. for ac_prog in cl.exe
  10258. do
  10259. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10260. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10262. $as_echo_n "checking for $ac_word... " >&6; }
  10263. if ${ac_cv_prog_CC+:} false; then :
  10264. $as_echo_n "(cached) " >&6
  10265. else
  10266. if test -n "$CC"; then
  10267. ac_cv_prog_CC="$CC" # Let the user override the test.
  10268. else
  10269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10270. for as_dir in $PATH
  10271. do
  10272. IFS=$as_save_IFS
  10273. test -z "$as_dir" && as_dir=.
  10274. for ac_exec_ext in '' $ac_executable_extensions; do
  10275. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10276. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10278. break 2
  10279. fi
  10280. done
  10281. done
  10282. IFS=$as_save_IFS
  10283. fi
  10284. fi
  10285. CC=$ac_cv_prog_CC
  10286. if test -n "$CC"; then
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10288. $as_echo "$CC" >&6; }
  10289. else
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10291. $as_echo "no" >&6; }
  10292. fi
  10293. test -n "$CC" && break
  10294. done
  10295. fi
  10296. if test -z "$CC"; then
  10297. ac_ct_CC=$CC
  10298. for ac_prog in cl.exe
  10299. do
  10300. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10301. set dummy $ac_prog; ac_word=$2
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10303. $as_echo_n "checking for $ac_word... " >&6; }
  10304. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10305. $as_echo_n "(cached) " >&6
  10306. else
  10307. if test -n "$ac_ct_CC"; then
  10308. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10309. else
  10310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10311. for as_dir in $PATH
  10312. do
  10313. IFS=$as_save_IFS
  10314. test -z "$as_dir" && as_dir=.
  10315. for ac_exec_ext in '' $ac_executable_extensions; do
  10316. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10317. ac_cv_prog_ac_ct_CC="$ac_prog"
  10318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10319. break 2
  10320. fi
  10321. done
  10322. done
  10323. IFS=$as_save_IFS
  10324. fi
  10325. fi
  10326. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10327. if test -n "$ac_ct_CC"; then
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10329. $as_echo "$ac_ct_CC" >&6; }
  10330. else
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10332. $as_echo "no" >&6; }
  10333. fi
  10334. test -n "$ac_ct_CC" && break
  10335. done
  10336. if test "x$ac_ct_CC" = x; then
  10337. CC=""
  10338. else
  10339. case $cross_compiling:$ac_tool_warned in
  10340. yes:)
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10342. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10343. ac_tool_warned=yes ;;
  10344. esac
  10345. CC=$ac_ct_CC
  10346. fi
  10347. fi
  10348. fi
  10349. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10350. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10351. as_fn_error $? "no acceptable C compiler found in \$PATH
  10352. See \`config.log' for more details" "$LINENO" 5; }
  10353. # Provide some information about the compiler.
  10354. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10355. set X $ac_compile
  10356. ac_compiler=$2
  10357. for ac_option in --version -v -V -qversion; do
  10358. { { ac_try="$ac_compiler $ac_option >&5"
  10359. case "(($ac_try" in
  10360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10361. *) ac_try_echo=$ac_try;;
  10362. esac
  10363. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10364. $as_echo "$ac_try_echo"; } >&5
  10365. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10366. ac_status=$?
  10367. if test -s conftest.err; then
  10368. sed '10a\
  10369. ... rest of stderr output deleted ...
  10370. 10q' conftest.err >conftest.er1
  10371. cat conftest.er1 >&5
  10372. fi
  10373. rm -f conftest.er1 conftest.err
  10374. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10375. test $ac_status = 0; }
  10376. done
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10378. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10379. if ${ac_cv_c_compiler_gnu+:} false; then :
  10380. $as_echo_n "(cached) " >&6
  10381. else
  10382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10383. /* end confdefs.h. */
  10384. int
  10385. main ()
  10386. {
  10387. #ifndef __GNUC__
  10388. choke me
  10389. #endif
  10390. ;
  10391. return 0;
  10392. }
  10393. _ACEOF
  10394. if ac_fn_c_try_compile "$LINENO"; then :
  10395. ac_compiler_gnu=yes
  10396. else
  10397. ac_compiler_gnu=no
  10398. fi
  10399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10400. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10401. fi
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10403. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10404. if test $ac_compiler_gnu = yes; then
  10405. GCC=yes
  10406. else
  10407. GCC=
  10408. fi
  10409. ac_test_CFLAGS=${CFLAGS+set}
  10410. ac_save_CFLAGS=$CFLAGS
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10412. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10413. if ${ac_cv_prog_cc_g+:} false; then :
  10414. $as_echo_n "(cached) " >&6
  10415. else
  10416. ac_save_c_werror_flag=$ac_c_werror_flag
  10417. ac_c_werror_flag=yes
  10418. ac_cv_prog_cc_g=no
  10419. CFLAGS="-g"
  10420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10421. /* end confdefs.h. */
  10422. int
  10423. main ()
  10424. {
  10425. ;
  10426. return 0;
  10427. }
  10428. _ACEOF
  10429. if ac_fn_c_try_compile "$LINENO"; then :
  10430. ac_cv_prog_cc_g=yes
  10431. else
  10432. CFLAGS=""
  10433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10434. /* end confdefs.h. */
  10435. int
  10436. main ()
  10437. {
  10438. ;
  10439. return 0;
  10440. }
  10441. _ACEOF
  10442. if ac_fn_c_try_compile "$LINENO"; then :
  10443. else
  10444. ac_c_werror_flag=$ac_save_c_werror_flag
  10445. CFLAGS="-g"
  10446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10447. /* end confdefs.h. */
  10448. int
  10449. main ()
  10450. {
  10451. ;
  10452. return 0;
  10453. }
  10454. _ACEOF
  10455. if ac_fn_c_try_compile "$LINENO"; then :
  10456. ac_cv_prog_cc_g=yes
  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. fi
  10462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10463. ac_c_werror_flag=$ac_save_c_werror_flag
  10464. fi
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10466. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10467. if test "$ac_test_CFLAGS" = set; then
  10468. CFLAGS=$ac_save_CFLAGS
  10469. elif test $ac_cv_prog_cc_g = yes; then
  10470. if test "$GCC" = yes; then
  10471. CFLAGS="-g -O2"
  10472. else
  10473. CFLAGS="-g"
  10474. fi
  10475. else
  10476. if test "$GCC" = yes; then
  10477. CFLAGS="-O2"
  10478. else
  10479. CFLAGS=
  10480. fi
  10481. fi
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10483. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10484. if ${ac_cv_prog_cc_c89+:} false; then :
  10485. $as_echo_n "(cached) " >&6
  10486. else
  10487. ac_cv_prog_cc_c89=no
  10488. ac_save_CC=$CC
  10489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10490. /* end confdefs.h. */
  10491. #include <stdarg.h>
  10492. #include <stdio.h>
  10493. struct stat;
  10494. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10495. struct buf { int x; };
  10496. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10497. static char *e (p, i)
  10498. char **p;
  10499. int i;
  10500. {
  10501. return p[i];
  10502. }
  10503. static char *f (char * (*g) (char **, int), char **p, ...)
  10504. {
  10505. char *s;
  10506. va_list v;
  10507. va_start (v,p);
  10508. s = g (p, va_arg (v,int));
  10509. va_end (v);
  10510. return s;
  10511. }
  10512. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10513. function prototypes and stuff, but not '\xHH' hex character constants.
  10514. These don't provoke an error unfortunately, instead are silently treated
  10515. as 'x'. The following induces an error, until -std is added to get
  10516. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10517. array size at least. It's necessary to write '\x00'==0 to get something
  10518. that's true only with -std. */
  10519. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10520. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10521. inside strings and character constants. */
  10522. #define FOO(x) 'x'
  10523. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10524. int test (int i, double x);
  10525. struct s1 {int (*f) (int a);};
  10526. struct s2 {int (*f) (double a);};
  10527. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10528. int argc;
  10529. char **argv;
  10530. int
  10531. main ()
  10532. {
  10533. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10534. ;
  10535. return 0;
  10536. }
  10537. _ACEOF
  10538. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10539. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10540. do
  10541. CC="$ac_save_CC $ac_arg"
  10542. if ac_fn_c_try_compile "$LINENO"; then :
  10543. ac_cv_prog_cc_c89=$ac_arg
  10544. fi
  10545. rm -f core conftest.err conftest.$ac_objext
  10546. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10547. done
  10548. rm -f conftest.$ac_ext
  10549. CC=$ac_save_CC
  10550. fi
  10551. # AC_CACHE_VAL
  10552. case "x$ac_cv_prog_cc_c89" in
  10553. x)
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10555. $as_echo "none needed" >&6; } ;;
  10556. xno)
  10557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10558. $as_echo "unsupported" >&6; } ;;
  10559. *)
  10560. CC="$CC $ac_cv_prog_cc_c89"
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10562. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10563. esac
  10564. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10565. fi
  10566. ac_ext=c
  10567. ac_cpp='$CPP $CPPFLAGS'
  10568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10571. ac_ext=cpp
  10572. ac_cpp='$CXXCPP $CPPFLAGS'
  10573. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10574. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10575. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10576. if test -z "$CXX"; then
  10577. if test -n "$CCC"; then
  10578. CXX=$CCC
  10579. else
  10580. if test -n "$ac_tool_prefix"; then
  10581. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10582. do
  10583. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10584. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10586. $as_echo_n "checking for $ac_word... " >&6; }
  10587. if ${ac_cv_prog_CXX+:} false; then :
  10588. $as_echo_n "(cached) " >&6
  10589. else
  10590. if test -n "$CXX"; then
  10591. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10592. else
  10593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10594. for as_dir in $PATH
  10595. do
  10596. IFS=$as_save_IFS
  10597. test -z "$as_dir" && as_dir=.
  10598. for ac_exec_ext in '' $ac_executable_extensions; do
  10599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10600. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10602. break 2
  10603. fi
  10604. done
  10605. done
  10606. IFS=$as_save_IFS
  10607. fi
  10608. fi
  10609. CXX=$ac_cv_prog_CXX
  10610. if test -n "$CXX"; then
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10612. $as_echo "$CXX" >&6; }
  10613. else
  10614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10615. $as_echo "no" >&6; }
  10616. fi
  10617. test -n "$CXX" && break
  10618. done
  10619. fi
  10620. if test -z "$CXX"; then
  10621. ac_ct_CXX=$CXX
  10622. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10623. do
  10624. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10625. set dummy $ac_prog; ac_word=$2
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10627. $as_echo_n "checking for $ac_word... " >&6; }
  10628. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10629. $as_echo_n "(cached) " >&6
  10630. else
  10631. if test -n "$ac_ct_CXX"; then
  10632. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10633. else
  10634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10635. for as_dir in $PATH
  10636. do
  10637. IFS=$as_save_IFS
  10638. test -z "$as_dir" && as_dir=.
  10639. for ac_exec_ext in '' $ac_executable_extensions; do
  10640. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10641. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10643. break 2
  10644. fi
  10645. done
  10646. done
  10647. IFS=$as_save_IFS
  10648. fi
  10649. fi
  10650. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10651. if test -n "$ac_ct_CXX"; then
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10653. $as_echo "$ac_ct_CXX" >&6; }
  10654. else
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10656. $as_echo "no" >&6; }
  10657. fi
  10658. test -n "$ac_ct_CXX" && break
  10659. done
  10660. if test "x$ac_ct_CXX" = x; then
  10661. CXX="g++"
  10662. else
  10663. case $cross_compiling:$ac_tool_warned in
  10664. yes:)
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10666. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10667. ac_tool_warned=yes ;;
  10668. esac
  10669. CXX=$ac_ct_CXX
  10670. fi
  10671. fi
  10672. fi
  10673. fi
  10674. # Provide some information about the compiler.
  10675. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10676. set X $ac_compile
  10677. ac_compiler=$2
  10678. for ac_option in --version -v -V -qversion; do
  10679. { { ac_try="$ac_compiler $ac_option >&5"
  10680. case "(($ac_try" in
  10681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10682. *) ac_try_echo=$ac_try;;
  10683. esac
  10684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10685. $as_echo "$ac_try_echo"; } >&5
  10686. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10687. ac_status=$?
  10688. if test -s conftest.err; then
  10689. sed '10a\
  10690. ... rest of stderr output deleted ...
  10691. 10q' conftest.err >conftest.er1
  10692. cat conftest.er1 >&5
  10693. fi
  10694. rm -f conftest.er1 conftest.err
  10695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10696. test $ac_status = 0; }
  10697. done
  10698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10699. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10700. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10701. $as_echo_n "(cached) " >&6
  10702. else
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. int
  10706. main ()
  10707. {
  10708. #ifndef __GNUC__
  10709. choke me
  10710. #endif
  10711. ;
  10712. return 0;
  10713. }
  10714. _ACEOF
  10715. if ac_fn_cxx_try_compile "$LINENO"; then :
  10716. ac_compiler_gnu=yes
  10717. else
  10718. ac_compiler_gnu=no
  10719. fi
  10720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10721. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10722. fi
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10724. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10725. if test $ac_compiler_gnu = yes; then
  10726. GXX=yes
  10727. else
  10728. GXX=
  10729. fi
  10730. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10731. ac_save_CXXFLAGS=$CXXFLAGS
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10733. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10734. if ${ac_cv_prog_cxx_g+:} false; then :
  10735. $as_echo_n "(cached) " >&6
  10736. else
  10737. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10738. ac_cxx_werror_flag=yes
  10739. ac_cv_prog_cxx_g=no
  10740. CXXFLAGS="-g"
  10741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10742. /* end confdefs.h. */
  10743. int
  10744. main ()
  10745. {
  10746. ;
  10747. return 0;
  10748. }
  10749. _ACEOF
  10750. if ac_fn_cxx_try_compile "$LINENO"; then :
  10751. ac_cv_prog_cxx_g=yes
  10752. else
  10753. CXXFLAGS=""
  10754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10755. /* end confdefs.h. */
  10756. int
  10757. main ()
  10758. {
  10759. ;
  10760. return 0;
  10761. }
  10762. _ACEOF
  10763. if ac_fn_cxx_try_compile "$LINENO"; then :
  10764. else
  10765. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10766. CXXFLAGS="-g"
  10767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10768. /* end confdefs.h. */
  10769. int
  10770. main ()
  10771. {
  10772. ;
  10773. return 0;
  10774. }
  10775. _ACEOF
  10776. if ac_fn_cxx_try_compile "$LINENO"; then :
  10777. ac_cv_prog_cxx_g=yes
  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. fi
  10783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10784. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10785. fi
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10787. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10788. if test "$ac_test_CXXFLAGS" = set; then
  10789. CXXFLAGS=$ac_save_CXXFLAGS
  10790. elif test $ac_cv_prog_cxx_g = yes; then
  10791. if test "$GXX" = yes; then
  10792. CXXFLAGS="-g -O2"
  10793. else
  10794. CXXFLAGS="-g"
  10795. fi
  10796. else
  10797. if test "$GXX" = yes; then
  10798. CXXFLAGS="-O2"
  10799. else
  10800. CXXFLAGS=
  10801. fi
  10802. fi
  10803. ac_ext=c
  10804. ac_cpp='$CPP $CPPFLAGS'
  10805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10808. func_stripname_cnf ()
  10809. {
  10810. case ${2} in
  10811. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10812. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10813. esac
  10814. } # func_stripname_cnf
  10815. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10816. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10817. (test "X$CXX" != "Xg++"))) ; then
  10818. ac_ext=cpp
  10819. ac_cpp='$CXXCPP $CPPFLAGS'
  10820. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10821. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10822. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10824. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10825. if test -z "$CXXCPP"; then
  10826. if ${ac_cv_prog_CXXCPP+:} false; then :
  10827. $as_echo_n "(cached) " >&6
  10828. else
  10829. # Double quotes because CXXCPP needs to be expanded
  10830. for CXXCPP in "$CXX -E" "/lib/cpp"
  10831. do
  10832. ac_preproc_ok=false
  10833. for ac_cxx_preproc_warn_flag in '' yes
  10834. do
  10835. # Use a header file that comes with gcc, so configuring glibc
  10836. # with a fresh cross-compiler works.
  10837. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10838. # <limits.h> exists even on freestanding compilers.
  10839. # On the NeXT, cc -E runs the code through the compiler's parser,
  10840. # not just through cpp. "Syntax error" is here to catch this case.
  10841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10842. /* end confdefs.h. */
  10843. #ifdef __STDC__
  10844. # include <limits.h>
  10845. #else
  10846. # include <assert.h>
  10847. #endif
  10848. Syntax error
  10849. _ACEOF
  10850. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10851. else
  10852. # Broken: fails on valid input.
  10853. continue
  10854. fi
  10855. rm -f conftest.err conftest.i conftest.$ac_ext
  10856. # OK, works on sane cases. Now check whether nonexistent headers
  10857. # can be detected and how.
  10858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10859. /* end confdefs.h. */
  10860. #include <ac_nonexistent.h>
  10861. _ACEOF
  10862. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10863. # Broken: success on invalid input.
  10864. continue
  10865. else
  10866. # Passes both tests.
  10867. ac_preproc_ok=:
  10868. break
  10869. fi
  10870. rm -f conftest.err conftest.i conftest.$ac_ext
  10871. done
  10872. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10873. rm -f conftest.i conftest.err conftest.$ac_ext
  10874. if $ac_preproc_ok; then :
  10875. break
  10876. fi
  10877. done
  10878. ac_cv_prog_CXXCPP=$CXXCPP
  10879. fi
  10880. CXXCPP=$ac_cv_prog_CXXCPP
  10881. else
  10882. ac_cv_prog_CXXCPP=$CXXCPP
  10883. fi
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10885. $as_echo "$CXXCPP" >&6; }
  10886. ac_preproc_ok=false
  10887. for ac_cxx_preproc_warn_flag in '' yes
  10888. do
  10889. # Use a header file that comes with gcc, so configuring glibc
  10890. # with a fresh cross-compiler works.
  10891. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10892. # <limits.h> exists even on freestanding compilers.
  10893. # On the NeXT, cc -E runs the code through the compiler's parser,
  10894. # not just through cpp. "Syntax error" is here to catch this case.
  10895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10896. /* end confdefs.h. */
  10897. #ifdef __STDC__
  10898. # include <limits.h>
  10899. #else
  10900. # include <assert.h>
  10901. #endif
  10902. Syntax error
  10903. _ACEOF
  10904. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10905. else
  10906. # Broken: fails on valid input.
  10907. continue
  10908. fi
  10909. rm -f conftest.err conftest.i conftest.$ac_ext
  10910. # OK, works on sane cases. Now check whether nonexistent headers
  10911. # can be detected and how.
  10912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10913. /* end confdefs.h. */
  10914. #include <ac_nonexistent.h>
  10915. _ACEOF
  10916. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10917. # Broken: success on invalid input.
  10918. continue
  10919. else
  10920. # Passes both tests.
  10921. ac_preproc_ok=:
  10922. break
  10923. fi
  10924. rm -f conftest.err conftest.i conftest.$ac_ext
  10925. done
  10926. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10927. rm -f conftest.i conftest.err conftest.$ac_ext
  10928. if $ac_preproc_ok; then :
  10929. else
  10930. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10931. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10932. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10933. See \`config.log' for more details" "$LINENO" 5; }
  10934. fi
  10935. ac_ext=c
  10936. ac_cpp='$CPP $CPPFLAGS'
  10937. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10938. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10939. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10940. else
  10941. _lt_caught_CXX_error=yes
  10942. fi
  10943. ac_ext=cpp
  10944. ac_cpp='$CXXCPP $CPPFLAGS'
  10945. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10946. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10947. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10948. archive_cmds_need_lc_CXX=no
  10949. allow_undefined_flag_CXX=
  10950. always_export_symbols_CXX=no
  10951. archive_expsym_cmds_CXX=
  10952. compiler_needs_object_CXX=no
  10953. export_dynamic_flag_spec_CXX=
  10954. hardcode_direct_CXX=no
  10955. hardcode_direct_absolute_CXX=no
  10956. hardcode_libdir_flag_spec_CXX=
  10957. hardcode_libdir_separator_CXX=
  10958. hardcode_minus_L_CXX=no
  10959. hardcode_shlibpath_var_CXX=unsupported
  10960. hardcode_automatic_CXX=no
  10961. inherit_rpath_CXX=no
  10962. module_cmds_CXX=
  10963. module_expsym_cmds_CXX=
  10964. link_all_deplibs_CXX=unknown
  10965. old_archive_cmds_CXX=$old_archive_cmds
  10966. reload_flag_CXX=$reload_flag
  10967. reload_cmds_CXX=$reload_cmds
  10968. no_undefined_flag_CXX=
  10969. whole_archive_flag_spec_CXX=
  10970. enable_shared_with_static_runtimes_CXX=no
  10971. # Source file extension for C++ test sources.
  10972. ac_ext=cpp
  10973. # Object file extension for compiled C++ test sources.
  10974. objext=o
  10975. objext_CXX=$objext
  10976. # No sense in running all these tests if we already determined that
  10977. # the CXX compiler isn't working. Some variables (like enable_shared)
  10978. # are currently assumed to apply to all compilers on this platform,
  10979. # and will be corrupted by setting them based on a non-working compiler.
  10980. if test "$_lt_caught_CXX_error" != yes; then
  10981. # Code to be used in simple compile tests
  10982. lt_simple_compile_test_code="int some_variable = 0;"
  10983. # Code to be used in simple link tests
  10984. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10985. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10986. # If no C compiler was specified, use CC.
  10987. LTCC=${LTCC-"$CC"}
  10988. # If no C compiler flags were specified, use CFLAGS.
  10989. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10990. # Allow CC to be a program name with arguments.
  10991. compiler=$CC
  10992. # save warnings/boilerplate of simple test code
  10993. ac_outfile=conftest.$ac_objext
  10994. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10995. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10996. _lt_compiler_boilerplate=`cat conftest.err`
  10997. $RM conftest*
  10998. ac_outfile=conftest.$ac_objext
  10999. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11000. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11001. _lt_linker_boilerplate=`cat conftest.err`
  11002. $RM -r conftest*
  11003. # Allow CC to be a program name with arguments.
  11004. lt_save_CC=$CC
  11005. lt_save_CFLAGS=$CFLAGS
  11006. lt_save_LD=$LD
  11007. lt_save_GCC=$GCC
  11008. GCC=$GXX
  11009. lt_save_with_gnu_ld=$with_gnu_ld
  11010. lt_save_path_LD=$lt_cv_path_LD
  11011. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11012. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11013. else
  11014. $as_unset lt_cv_prog_gnu_ld
  11015. fi
  11016. if test -n "${lt_cv_path_LDCXX+set}"; then
  11017. lt_cv_path_LD=$lt_cv_path_LDCXX
  11018. else
  11019. $as_unset lt_cv_path_LD
  11020. fi
  11021. test -z "${LDCXX+set}" || LD=$LDCXX
  11022. CC=${CXX-"c++"}
  11023. CFLAGS=$CXXFLAGS
  11024. compiler=$CC
  11025. compiler_CXX=$CC
  11026. for cc_temp in $compiler""; do
  11027. case $cc_temp in
  11028. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11029. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11030. \-*) ;;
  11031. *) break;;
  11032. esac
  11033. done
  11034. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11035. if test -n "$compiler"; then
  11036. # We don't want -fno-exception when compiling C++ code, so set the
  11037. # no_builtin_flag separately
  11038. if test "$GXX" = yes; then
  11039. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11040. else
  11041. lt_prog_compiler_no_builtin_flag_CXX=
  11042. fi
  11043. if test "$GXX" = yes; then
  11044. # Set up default GNU C++ configuration
  11045. # Check whether --with-gnu-ld was given.
  11046. if test "${with_gnu_ld+set}" = set; then :
  11047. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11048. else
  11049. with_gnu_ld=no
  11050. fi
  11051. ac_prog=ld
  11052. if test "$GCC" = yes; then
  11053. # Check if gcc -print-prog-name=ld gives a path.
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11055. $as_echo_n "checking for ld used by $CC... " >&6; }
  11056. case $host in
  11057. *-*-mingw*)
  11058. # gcc leaves a trailing carriage return which upsets mingw
  11059. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11060. *)
  11061. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11062. esac
  11063. case $ac_prog in
  11064. # Accept absolute paths.
  11065. [\\/]* | ?:[\\/]*)
  11066. re_direlt='/[^/][^/]*/\.\./'
  11067. # Canonicalize the pathname of ld
  11068. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11069. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11070. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11071. done
  11072. test -z "$LD" && LD="$ac_prog"
  11073. ;;
  11074. "")
  11075. # If it fails, then pretend we aren't using GCC.
  11076. ac_prog=ld
  11077. ;;
  11078. *)
  11079. # If it is relative, then search for the first ld in PATH.
  11080. with_gnu_ld=unknown
  11081. ;;
  11082. esac
  11083. elif test "$with_gnu_ld" = yes; then
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11085. $as_echo_n "checking for GNU ld... " >&6; }
  11086. else
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11088. $as_echo_n "checking for non-GNU ld... " >&6; }
  11089. fi
  11090. if ${lt_cv_path_LD+:} false; then :
  11091. $as_echo_n "(cached) " >&6
  11092. else
  11093. if test -z "$LD"; then
  11094. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11095. for ac_dir in $PATH; do
  11096. IFS="$lt_save_ifs"
  11097. test -z "$ac_dir" && ac_dir=.
  11098. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11099. lt_cv_path_LD="$ac_dir/$ac_prog"
  11100. # Check to see if the program is GNU ld. I'd rather use --version,
  11101. # but apparently some variants of GNU ld only accept -v.
  11102. # Break only if it was the GNU/non-GNU ld that we prefer.
  11103. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11104. *GNU* | *'with BFD'*)
  11105. test "$with_gnu_ld" != no && break
  11106. ;;
  11107. *)
  11108. test "$with_gnu_ld" != yes && break
  11109. ;;
  11110. esac
  11111. fi
  11112. done
  11113. IFS="$lt_save_ifs"
  11114. else
  11115. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11116. fi
  11117. fi
  11118. LD="$lt_cv_path_LD"
  11119. if test -n "$LD"; then
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11121. $as_echo "$LD" >&6; }
  11122. else
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11124. $as_echo "no" >&6; }
  11125. fi
  11126. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11128. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11129. if ${lt_cv_prog_gnu_ld+:} false; then :
  11130. $as_echo_n "(cached) " >&6
  11131. else
  11132. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11133. case `$LD -v 2>&1 </dev/null` in
  11134. *GNU* | *'with BFD'*)
  11135. lt_cv_prog_gnu_ld=yes
  11136. ;;
  11137. *)
  11138. lt_cv_prog_gnu_ld=no
  11139. ;;
  11140. esac
  11141. fi
  11142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11143. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11144. with_gnu_ld=$lt_cv_prog_gnu_ld
  11145. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11146. # archiving commands below assume that GNU ld is being used.
  11147. if test "$with_gnu_ld" = yes; then
  11148. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11149. 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'
  11150. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11151. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11152. # If archive_cmds runs LD, not CC, wlarc should be empty
  11153. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11154. # investigate it a little bit more. (MM)
  11155. wlarc='${wl}'
  11156. # ancient GNU ld didn't support --whole-archive et. al.
  11157. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11158. $GREP 'no-whole-archive' > /dev/null; then
  11159. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11160. else
  11161. whole_archive_flag_spec_CXX=
  11162. fi
  11163. else
  11164. with_gnu_ld=no
  11165. wlarc=
  11166. # A generic and very simple default shared library creation
  11167. # command for GNU C++ for the case where it uses the native
  11168. # linker, instead of GNU ld. If possible, this setting should
  11169. # overridden to take advantage of the native linker features on
  11170. # the platform it is being used on.
  11171. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11172. fi
  11173. # Commands to make compiler produce verbose output that lists
  11174. # what "hidden" libraries, object files and flags are used when
  11175. # linking a shared library.
  11176. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11177. else
  11178. GXX=no
  11179. with_gnu_ld=no
  11180. wlarc=
  11181. fi
  11182. # PORTME: fill in a description of your system's C++ link characteristics
  11183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11184. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11185. ld_shlibs_CXX=yes
  11186. case $host_os in
  11187. aix3*)
  11188. # FIXME: insert proper C++ library support
  11189. ld_shlibs_CXX=no
  11190. ;;
  11191. aix[4-9]*)
  11192. if test "$host_cpu" = ia64; then
  11193. # On IA64, the linker does run time linking by default, so we don't
  11194. # have to do anything special.
  11195. aix_use_runtimelinking=no
  11196. exp_sym_flag='-Bexport'
  11197. no_entry_flag=""
  11198. else
  11199. aix_use_runtimelinking=no
  11200. # Test if we are trying to use run time linking or normal
  11201. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11202. # need to do runtime linking.
  11203. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11204. for ld_flag in $LDFLAGS; do
  11205. case $ld_flag in
  11206. *-brtl*)
  11207. aix_use_runtimelinking=yes
  11208. break
  11209. ;;
  11210. esac
  11211. done
  11212. ;;
  11213. esac
  11214. exp_sym_flag='-bexport'
  11215. no_entry_flag='-bnoentry'
  11216. fi
  11217. # When large executables or shared objects are built, AIX ld can
  11218. # have problems creating the table of contents. If linking a library
  11219. # or program results in "error TOC overflow" add -mminimal-toc to
  11220. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11221. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11222. archive_cmds_CXX=''
  11223. hardcode_direct_CXX=yes
  11224. hardcode_direct_absolute_CXX=yes
  11225. hardcode_libdir_separator_CXX=':'
  11226. link_all_deplibs_CXX=yes
  11227. file_list_spec_CXX='${wl}-f,'
  11228. if test "$GXX" = yes; then
  11229. case $host_os in aix4.[012]|aix4.[012].*)
  11230. # We only want to do this on AIX 4.2 and lower, the check
  11231. # below for broken collect2 doesn't work under 4.3+
  11232. collect2name=`${CC} -print-prog-name=collect2`
  11233. if test -f "$collect2name" &&
  11234. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11235. then
  11236. # We have reworked collect2
  11237. :
  11238. else
  11239. # We have old collect2
  11240. hardcode_direct_CXX=unsupported
  11241. # It fails to find uninstalled libraries when the uninstalled
  11242. # path is not listed in the libpath. Setting hardcode_minus_L
  11243. # to unsupported forces relinking
  11244. hardcode_minus_L_CXX=yes
  11245. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11246. hardcode_libdir_separator_CXX=
  11247. fi
  11248. esac
  11249. shared_flag='-shared'
  11250. if test "$aix_use_runtimelinking" = yes; then
  11251. shared_flag="$shared_flag "'${wl}-G'
  11252. fi
  11253. else
  11254. # not using gcc
  11255. if test "$host_cpu" = ia64; then
  11256. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11257. # chokes on -Wl,-G. The following line is correct:
  11258. shared_flag='-G'
  11259. else
  11260. if test "$aix_use_runtimelinking" = yes; then
  11261. shared_flag='${wl}-G'
  11262. else
  11263. shared_flag='${wl}-bM:SRE'
  11264. fi
  11265. fi
  11266. fi
  11267. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11268. # It seems that -bexpall does not export symbols beginning with
  11269. # underscore (_), so it is better to generate a list of symbols to
  11270. # export.
  11271. always_export_symbols_CXX=yes
  11272. if test "$aix_use_runtimelinking" = yes; then
  11273. # Warning - without using the other runtime loading flags (-brtl),
  11274. # -berok will link without error, but may produce a broken library.
  11275. allow_undefined_flag_CXX='-berok'
  11276. # Determine the default libpath from the value encoded in an empty
  11277. # executable.
  11278. if test "${lt_cv_aix_libpath+set}" = set; then
  11279. aix_libpath=$lt_cv_aix_libpath
  11280. else
  11281. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11282. $as_echo_n "(cached) " >&6
  11283. else
  11284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11285. /* end confdefs.h. */
  11286. int
  11287. main ()
  11288. {
  11289. ;
  11290. return 0;
  11291. }
  11292. _ACEOF
  11293. if ac_fn_cxx_try_link "$LINENO"; then :
  11294. lt_aix_libpath_sed='
  11295. /Import File Strings/,/^$/ {
  11296. /^0/ {
  11297. s/^0 *\([^ ]*\) *$/\1/
  11298. p
  11299. }
  11300. }'
  11301. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11302. # Check for a 64-bit object if we didn't find anything.
  11303. if test -z "$lt_cv_aix_libpath__CXX"; then
  11304. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11305. fi
  11306. fi
  11307. rm -f core conftest.err conftest.$ac_objext \
  11308. conftest$ac_exeext conftest.$ac_ext
  11309. if test -z "$lt_cv_aix_libpath__CXX"; then
  11310. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11311. fi
  11312. fi
  11313. aix_libpath=$lt_cv_aix_libpath__CXX
  11314. fi
  11315. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11316. 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"
  11317. else
  11318. if test "$host_cpu" = ia64; then
  11319. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11320. allow_undefined_flag_CXX="-z nodefs"
  11321. 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"
  11322. else
  11323. # Determine the default libpath from the value encoded in an
  11324. # empty executable.
  11325. if test "${lt_cv_aix_libpath+set}" = set; then
  11326. aix_libpath=$lt_cv_aix_libpath
  11327. else
  11328. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11329. $as_echo_n "(cached) " >&6
  11330. else
  11331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11332. /* end confdefs.h. */
  11333. int
  11334. main ()
  11335. {
  11336. ;
  11337. return 0;
  11338. }
  11339. _ACEOF
  11340. if ac_fn_cxx_try_link "$LINENO"; then :
  11341. lt_aix_libpath_sed='
  11342. /Import File Strings/,/^$/ {
  11343. /^0/ {
  11344. s/^0 *\([^ ]*\) *$/\1/
  11345. p
  11346. }
  11347. }'
  11348. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11349. # Check for a 64-bit object if we didn't find anything.
  11350. if test -z "$lt_cv_aix_libpath__CXX"; then
  11351. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11352. fi
  11353. fi
  11354. rm -f core conftest.err conftest.$ac_objext \
  11355. conftest$ac_exeext conftest.$ac_ext
  11356. if test -z "$lt_cv_aix_libpath__CXX"; then
  11357. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11358. fi
  11359. fi
  11360. aix_libpath=$lt_cv_aix_libpath__CXX
  11361. fi
  11362. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11363. # Warning - without using the other run time loading flags,
  11364. # -berok will link without error, but may produce a broken library.
  11365. no_undefined_flag_CXX=' ${wl}-bernotok'
  11366. allow_undefined_flag_CXX=' ${wl}-berok'
  11367. if test "$with_gnu_ld" = yes; then
  11368. # We only use this code for GNU lds that support --whole-archive.
  11369. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11370. else
  11371. # Exported symbols can be pulled into shared objects from archives
  11372. whole_archive_flag_spec_CXX='$convenience'
  11373. fi
  11374. archive_cmds_need_lc_CXX=yes
  11375. # This is similar to how AIX traditionally builds its shared
  11376. # libraries.
  11377. 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'
  11378. fi
  11379. fi
  11380. ;;
  11381. beos*)
  11382. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11383. allow_undefined_flag_CXX=unsupported
  11384. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11385. # support --undefined. This deserves some investigation. FIXME
  11386. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11387. else
  11388. ld_shlibs_CXX=no
  11389. fi
  11390. ;;
  11391. chorus*)
  11392. case $cc_basename in
  11393. *)
  11394. # FIXME: insert proper C++ library support
  11395. ld_shlibs_CXX=no
  11396. ;;
  11397. esac
  11398. ;;
  11399. cygwin* | mingw* | pw32* | cegcc*)
  11400. case $GXX,$cc_basename in
  11401. ,cl* | no,cl*)
  11402. # Native MSVC
  11403. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11404. # no search path for DLLs.
  11405. hardcode_libdir_flag_spec_CXX=' '
  11406. allow_undefined_flag_CXX=unsupported
  11407. always_export_symbols_CXX=yes
  11408. file_list_spec_CXX='@'
  11409. # Tell ltmain to make .lib files, not .a files.
  11410. libext=lib
  11411. # Tell ltmain to make .dll files, not .so files.
  11412. shrext_cmds=".dll"
  11413. # FIXME: Setting linknames here is a bad hack.
  11414. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11415. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11416. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11417. else
  11418. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11419. fi~
  11420. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11421. linknames='
  11422. # The linker will not automatically build a static lib if we build a DLL.
  11423. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11424. enable_shared_with_static_runtimes_CXX=yes
  11425. # Don't use ranlib
  11426. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11427. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11428. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11429. case $lt_outputfile in
  11430. *.exe|*.EXE) ;;
  11431. *)
  11432. lt_outputfile="$lt_outputfile.exe"
  11433. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11434. ;;
  11435. esac~
  11436. func_to_tool_file "$lt_outputfile"~
  11437. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11438. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11439. $RM "$lt_outputfile.manifest";
  11440. fi'
  11441. ;;
  11442. *)
  11443. # g++
  11444. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11445. # as there is no search path for DLLs.
  11446. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11447. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11448. allow_undefined_flag_CXX=unsupported
  11449. always_export_symbols_CXX=no
  11450. enable_shared_with_static_runtimes_CXX=yes
  11451. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11452. 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'
  11453. # If the export-symbols file already is a .def file (1st line
  11454. # is EXPORTS), use it as is; otherwise, prepend...
  11455. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11456. cp $export_symbols $output_objdir/$soname.def;
  11457. else
  11458. echo EXPORTS > $output_objdir/$soname.def;
  11459. cat $export_symbols >> $output_objdir/$soname.def;
  11460. fi~
  11461. $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'
  11462. else
  11463. ld_shlibs_CXX=no
  11464. fi
  11465. ;;
  11466. esac
  11467. ;;
  11468. darwin* | rhapsody*)
  11469. archive_cmds_need_lc_CXX=no
  11470. hardcode_direct_CXX=no
  11471. hardcode_automatic_CXX=yes
  11472. hardcode_shlibpath_var_CXX=unsupported
  11473. if test "$lt_cv_ld_force_load" = "yes"; then
  11474. 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\"`'
  11475. else
  11476. whole_archive_flag_spec_CXX=''
  11477. fi
  11478. link_all_deplibs_CXX=yes
  11479. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11480. case $cc_basename in
  11481. ifort*) _lt_dar_can_shared=yes ;;
  11482. *) _lt_dar_can_shared=$GCC ;;
  11483. esac
  11484. if test "$_lt_dar_can_shared" = "yes"; then
  11485. output_verbose_link_cmd=func_echo_all
  11486. 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}"
  11487. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11488. 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}"
  11489. 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}"
  11490. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11491. 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}"
  11492. 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}"
  11493. fi
  11494. else
  11495. ld_shlibs_CXX=no
  11496. fi
  11497. ;;
  11498. dgux*)
  11499. case $cc_basename in
  11500. ec++*)
  11501. # FIXME: insert proper C++ library support
  11502. ld_shlibs_CXX=no
  11503. ;;
  11504. ghcx*)
  11505. # Green Hills C++ Compiler
  11506. # FIXME: insert proper C++ library support
  11507. ld_shlibs_CXX=no
  11508. ;;
  11509. *)
  11510. # FIXME: insert proper C++ library support
  11511. ld_shlibs_CXX=no
  11512. ;;
  11513. esac
  11514. ;;
  11515. freebsd2.*)
  11516. # C++ shared libraries reported to be fairly broken before
  11517. # switch to ELF
  11518. ld_shlibs_CXX=no
  11519. ;;
  11520. freebsd-elf*)
  11521. archive_cmds_need_lc_CXX=no
  11522. ;;
  11523. freebsd* | dragonfly*)
  11524. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11525. # conventions
  11526. ld_shlibs_CXX=yes
  11527. ;;
  11528. gnu*)
  11529. ;;
  11530. haiku*)
  11531. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11532. link_all_deplibs_CXX=yes
  11533. ;;
  11534. hpux9*)
  11535. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11536. hardcode_libdir_separator_CXX=:
  11537. export_dynamic_flag_spec_CXX='${wl}-E'
  11538. hardcode_direct_CXX=yes
  11539. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11540. # but as the default
  11541. # location of the library.
  11542. case $cc_basename in
  11543. CC*)
  11544. # FIXME: insert proper C++ library support
  11545. ld_shlibs_CXX=no
  11546. ;;
  11547. aCC*)
  11548. 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'
  11549. # Commands to make compiler produce verbose output that lists
  11550. # what "hidden" libraries, object files and flags are used when
  11551. # linking a shared library.
  11552. #
  11553. # There doesn't appear to be a way to prevent this compiler from
  11554. # explicitly linking system object files so we need to strip them
  11555. # from the output so that they don't get included in the library
  11556. # dependencies.
  11557. 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"'
  11558. ;;
  11559. *)
  11560. if test "$GXX" = yes; then
  11561. 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'
  11562. else
  11563. # FIXME: insert proper C++ library support
  11564. ld_shlibs_CXX=no
  11565. fi
  11566. ;;
  11567. esac
  11568. ;;
  11569. hpux10*|hpux11*)
  11570. if test $with_gnu_ld = no; then
  11571. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11572. hardcode_libdir_separator_CXX=:
  11573. case $host_cpu in
  11574. hppa*64*|ia64*)
  11575. ;;
  11576. *)
  11577. export_dynamic_flag_spec_CXX='${wl}-E'
  11578. ;;
  11579. esac
  11580. fi
  11581. case $host_cpu in
  11582. hppa*64*|ia64*)
  11583. hardcode_direct_CXX=no
  11584. hardcode_shlibpath_var_CXX=no
  11585. ;;
  11586. *)
  11587. hardcode_direct_CXX=yes
  11588. hardcode_direct_absolute_CXX=yes
  11589. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11590. # but as the default
  11591. # location of the library.
  11592. ;;
  11593. esac
  11594. case $cc_basename in
  11595. CC*)
  11596. # FIXME: insert proper C++ library support
  11597. ld_shlibs_CXX=no
  11598. ;;
  11599. aCC*)
  11600. case $host_cpu in
  11601. hppa*64*)
  11602. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11603. ;;
  11604. ia64*)
  11605. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11606. ;;
  11607. *)
  11608. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11609. ;;
  11610. esac
  11611. # Commands to make compiler produce verbose output that lists
  11612. # what "hidden" libraries, object files and flags are used when
  11613. # linking a shared library.
  11614. #
  11615. # There doesn't appear to be a way to prevent this compiler from
  11616. # explicitly linking system object files so we need to strip them
  11617. # from the output so that they don't get included in the library
  11618. # dependencies.
  11619. 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"'
  11620. ;;
  11621. *)
  11622. if test "$GXX" = yes; then
  11623. if test $with_gnu_ld = no; then
  11624. case $host_cpu in
  11625. hppa*64*)
  11626. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11627. ;;
  11628. ia64*)
  11629. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11630. ;;
  11631. *)
  11632. 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'
  11633. ;;
  11634. esac
  11635. fi
  11636. else
  11637. # FIXME: insert proper C++ library support
  11638. ld_shlibs_CXX=no
  11639. fi
  11640. ;;
  11641. esac
  11642. ;;
  11643. interix[3-9]*)
  11644. hardcode_direct_CXX=no
  11645. hardcode_shlibpath_var_CXX=no
  11646. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11647. export_dynamic_flag_spec_CXX='${wl}-E'
  11648. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11649. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11650. # default) and relocated if they conflict, which is a slow very memory
  11651. # consuming and fragmenting process. To avoid this, we pick a random,
  11652. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11653. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11654. 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'
  11655. 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'
  11656. ;;
  11657. irix5* | irix6*)
  11658. case $cc_basename in
  11659. CC*)
  11660. # SGI C++
  11661. 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'
  11662. # Archives containing C++ object files must be created using
  11663. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11664. # necessary to make sure instantiated templates are included
  11665. # in the archive.
  11666. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11667. ;;
  11668. *)
  11669. if test "$GXX" = yes; then
  11670. if test "$with_gnu_ld" = no; then
  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"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11672. else
  11673. 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'
  11674. fi
  11675. fi
  11676. link_all_deplibs_CXX=yes
  11677. ;;
  11678. esac
  11679. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11680. hardcode_libdir_separator_CXX=:
  11681. inherit_rpath_CXX=yes
  11682. ;;
  11683. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11684. case $cc_basename in
  11685. KCC*)
  11686. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11687. # KCC will only create a shared library if the output file
  11688. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11689. # to its proper name (with version) after linking.
  11690. 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'
  11691. 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'
  11692. # Commands to make compiler produce verbose output that lists
  11693. # what "hidden" libraries, object files and flags are used when
  11694. # linking a shared library.
  11695. #
  11696. # There doesn't appear to be a way to prevent this compiler from
  11697. # explicitly linking system object files so we need to strip them
  11698. # from the output so that they don't get included in the library
  11699. # dependencies.
  11700. 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"'
  11701. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11702. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11703. # Archives containing C++ object files must be created using
  11704. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11705. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11706. ;;
  11707. icpc* | ecpc* )
  11708. # Intel C++
  11709. with_gnu_ld=yes
  11710. # version 8.0 and above of icpc choke on multiply defined symbols
  11711. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11712. # earlier do not add the objects themselves.
  11713. case `$CC -V 2>&1` in
  11714. *"Version 7."*)
  11715. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11716. 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'
  11717. ;;
  11718. *) # Version 8.0 or newer
  11719. tmp_idyn=
  11720. case $host_cpu in
  11721. ia64*) tmp_idyn=' -i_dynamic';;
  11722. esac
  11723. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11724. 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'
  11725. ;;
  11726. esac
  11727. archive_cmds_need_lc_CXX=no
  11728. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11729. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11730. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11731. ;;
  11732. pgCC* | pgcpp*)
  11733. # Portland Group C++ compiler
  11734. case `$CC -V` in
  11735. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11736. prelink_cmds_CXX='tpldir=Template.dir~
  11737. rm -rf $tpldir~
  11738. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11739. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11740. old_archive_cmds_CXX='tpldir=Template.dir~
  11741. rm -rf $tpldir~
  11742. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11743. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11744. $RANLIB $oldlib'
  11745. archive_cmds_CXX='tpldir=Template.dir~
  11746. rm -rf $tpldir~
  11747. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11748. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11749. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11750. rm -rf $tpldir~
  11751. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11752. $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'
  11753. ;;
  11754. *) # Version 6 and above use weak symbols
  11755. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11756. 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'
  11757. ;;
  11758. esac
  11759. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11760. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11761. 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'
  11762. ;;
  11763. cxx*)
  11764. # Compaq C++
  11765. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11766. 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'
  11767. runpath_var=LD_RUN_PATH
  11768. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11769. hardcode_libdir_separator_CXX=:
  11770. # Commands to make compiler produce verbose output that lists
  11771. # what "hidden" libraries, object files and flags are used when
  11772. # linking a shared library.
  11773. #
  11774. # There doesn't appear to be a way to prevent this compiler from
  11775. # explicitly linking system object files so we need to strip them
  11776. # from the output so that they don't get included in the library
  11777. # dependencies.
  11778. 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'
  11779. ;;
  11780. xl* | mpixl* | bgxl*)
  11781. # IBM XL 8.0 on PPC, with GNU ld
  11782. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11783. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11784. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11785. if test "x$supports_anon_versioning" = xyes; then
  11786. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11787. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11788. echo "local: *; };" >> $output_objdir/$libname.ver~
  11789. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11790. fi
  11791. ;;
  11792. *)
  11793. case `$CC -V 2>&1 | sed 5q` in
  11794. *Sun\ C*)
  11795. # Sun C++ 5.9
  11796. no_undefined_flag_CXX=' -zdefs'
  11797. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11798. 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'
  11799. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11800. 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'
  11801. compiler_needs_object_CXX=yes
  11802. # Not sure whether something based on
  11803. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11804. # would be better.
  11805. output_verbose_link_cmd='func_echo_all'
  11806. # Archives containing C++ object files must be created using
  11807. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11808. # necessary to make sure instantiated templates are included
  11809. # in the archive.
  11810. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11811. ;;
  11812. esac
  11813. ;;
  11814. esac
  11815. ;;
  11816. lynxos*)
  11817. # FIXME: insert proper C++ library support
  11818. ld_shlibs_CXX=no
  11819. ;;
  11820. m88k*)
  11821. # FIXME: insert proper C++ library support
  11822. ld_shlibs_CXX=no
  11823. ;;
  11824. mvs*)
  11825. case $cc_basename in
  11826. cxx*)
  11827. # FIXME: insert proper C++ library support
  11828. ld_shlibs_CXX=no
  11829. ;;
  11830. *)
  11831. # FIXME: insert proper C++ library support
  11832. ld_shlibs_CXX=no
  11833. ;;
  11834. esac
  11835. ;;
  11836. netbsd*)
  11837. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11838. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11839. wlarc=
  11840. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11841. hardcode_direct_CXX=yes
  11842. hardcode_shlibpath_var_CXX=no
  11843. fi
  11844. # Workaround some broken pre-1.5 toolchains
  11845. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11846. ;;
  11847. *nto* | *qnx*)
  11848. ld_shlibs_CXX=yes
  11849. ;;
  11850. openbsd2*)
  11851. # C++ shared libraries are fairly broken
  11852. ld_shlibs_CXX=no
  11853. ;;
  11854. openbsd*)
  11855. if test -f /usr/libexec/ld.so; then
  11856. hardcode_direct_CXX=yes
  11857. hardcode_shlibpath_var_CXX=no
  11858. hardcode_direct_absolute_CXX=yes
  11859. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11860. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11861. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11862. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11863. export_dynamic_flag_spec_CXX='${wl}-E'
  11864. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11865. fi
  11866. output_verbose_link_cmd=func_echo_all
  11867. else
  11868. ld_shlibs_CXX=no
  11869. fi
  11870. ;;
  11871. osf3* | osf4* | osf5*)
  11872. case $cc_basename in
  11873. KCC*)
  11874. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11875. # KCC will only create a shared library if the output file
  11876. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11877. # to its proper name (with version) after linking.
  11878. 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'
  11879. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11880. hardcode_libdir_separator_CXX=:
  11881. # Archives containing C++ object files must be created using
  11882. # the KAI C++ compiler.
  11883. case $host in
  11884. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11885. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11886. esac
  11887. ;;
  11888. RCC*)
  11889. # Rational C++ 2.4.1
  11890. # FIXME: insert proper C++ library support
  11891. ld_shlibs_CXX=no
  11892. ;;
  11893. cxx*)
  11894. case $host in
  11895. osf3*)
  11896. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11897. 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'
  11898. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11899. ;;
  11900. *)
  11901. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11902. 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'
  11903. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11904. echo "-hidden">> $lib.exp~
  11905. $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~
  11906. $RM $lib.exp'
  11907. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11908. ;;
  11909. esac
  11910. hardcode_libdir_separator_CXX=:
  11911. # Commands to make compiler produce verbose output that lists
  11912. # what "hidden" libraries, object files and flags are used when
  11913. # linking a shared library.
  11914. #
  11915. # There doesn't appear to be a way to prevent this compiler from
  11916. # explicitly linking system object files so we need to strip them
  11917. # from the output so that they don't get included in the library
  11918. # dependencies.
  11919. 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"'
  11920. ;;
  11921. *)
  11922. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11923. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11924. case $host in
  11925. osf3*)
  11926. 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'
  11927. ;;
  11928. *)
  11929. 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'
  11930. ;;
  11931. esac
  11932. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11933. hardcode_libdir_separator_CXX=:
  11934. # Commands to make compiler produce verbose output that lists
  11935. # what "hidden" libraries, object files and flags are used when
  11936. # linking a shared library.
  11937. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11938. else
  11939. # FIXME: insert proper C++ library support
  11940. ld_shlibs_CXX=no
  11941. fi
  11942. ;;
  11943. esac
  11944. ;;
  11945. psos*)
  11946. # FIXME: insert proper C++ library support
  11947. ld_shlibs_CXX=no
  11948. ;;
  11949. sunos4*)
  11950. case $cc_basename in
  11951. CC*)
  11952. # Sun C++ 4.x
  11953. # FIXME: insert proper C++ library support
  11954. ld_shlibs_CXX=no
  11955. ;;
  11956. lcc*)
  11957. # Lucid
  11958. # FIXME: insert proper C++ library support
  11959. ld_shlibs_CXX=no
  11960. ;;
  11961. *)
  11962. # FIXME: insert proper C++ library support
  11963. ld_shlibs_CXX=no
  11964. ;;
  11965. esac
  11966. ;;
  11967. solaris*)
  11968. case $cc_basename in
  11969. CC* | sunCC*)
  11970. # Sun C++ 4.2, 5.x and Centerline C++
  11971. archive_cmds_need_lc_CXX=yes
  11972. no_undefined_flag_CXX=' -zdefs'
  11973. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11974. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11975. $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'
  11976. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11977. hardcode_shlibpath_var_CXX=no
  11978. case $host_os in
  11979. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11980. *)
  11981. # The compiler driver will combine and reorder linker options,
  11982. # but understands `-z linker_flag'.
  11983. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11984. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11985. ;;
  11986. esac
  11987. link_all_deplibs_CXX=yes
  11988. output_verbose_link_cmd='func_echo_all'
  11989. # Archives containing C++ object files must be created using
  11990. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11991. # necessary to make sure instantiated templates are included
  11992. # in the archive.
  11993. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11994. ;;
  11995. gcx*)
  11996. # Green Hills C++ Compiler
  11997. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11998. # The C++ compiler must be used to create the archive.
  11999. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12000. ;;
  12001. *)
  12002. # GNU C++ compiler with Solaris linker
  12003. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12004. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12005. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12006. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12007. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12008. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12009. # Commands to make compiler produce verbose output that lists
  12010. # what "hidden" libraries, object files and flags are used when
  12011. # linking a shared library.
  12012. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12013. else
  12014. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12015. # platform.
  12016. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12017. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12018. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12019. # Commands to make compiler produce verbose output that lists
  12020. # what "hidden" libraries, object files and flags are used when
  12021. # linking a shared library.
  12022. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12023. fi
  12024. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12025. case $host_os in
  12026. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12027. *)
  12028. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12029. ;;
  12030. esac
  12031. fi
  12032. ;;
  12033. esac
  12034. ;;
  12035. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12036. no_undefined_flag_CXX='${wl}-z,text'
  12037. archive_cmds_need_lc_CXX=no
  12038. hardcode_shlibpath_var_CXX=no
  12039. runpath_var='LD_RUN_PATH'
  12040. case $cc_basename in
  12041. CC*)
  12042. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12043. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12044. ;;
  12045. *)
  12046. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12047. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12048. ;;
  12049. esac
  12050. ;;
  12051. sysv5* | sco3.2v5* | sco5v6*)
  12052. # Note: We can NOT use -z defs as we might desire, because we do not
  12053. # link with -lc, and that would cause any symbols used from libc to
  12054. # always be unresolved, which means just about no library would
  12055. # ever link correctly. If we're not using GNU ld we use -z text
  12056. # though, which does catch some bad symbols but isn't as heavy-handed
  12057. # as -z defs.
  12058. no_undefined_flag_CXX='${wl}-z,text'
  12059. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12060. archive_cmds_need_lc_CXX=no
  12061. hardcode_shlibpath_var_CXX=no
  12062. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12063. hardcode_libdir_separator_CXX=':'
  12064. link_all_deplibs_CXX=yes
  12065. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12066. runpath_var='LD_RUN_PATH'
  12067. case $cc_basename in
  12068. CC*)
  12069. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12070. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12071. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12072. '"$old_archive_cmds_CXX"
  12073. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12074. '"$reload_cmds_CXX"
  12075. ;;
  12076. *)
  12077. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12078. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12079. ;;
  12080. esac
  12081. ;;
  12082. tandem*)
  12083. case $cc_basename in
  12084. NCC*)
  12085. # NonStop-UX NCC 3.20
  12086. # FIXME: insert proper C++ library support
  12087. ld_shlibs_CXX=no
  12088. ;;
  12089. *)
  12090. # FIXME: insert proper C++ library support
  12091. ld_shlibs_CXX=no
  12092. ;;
  12093. esac
  12094. ;;
  12095. vxworks*)
  12096. # FIXME: insert proper C++ library support
  12097. ld_shlibs_CXX=no
  12098. ;;
  12099. *)
  12100. # FIXME: insert proper C++ library support
  12101. ld_shlibs_CXX=no
  12102. ;;
  12103. esac
  12104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12105. $as_echo "$ld_shlibs_CXX" >&6; }
  12106. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12107. GCC_CXX="$GXX"
  12108. LD_CXX="$LD"
  12109. ## CAVEAT EMPTOR:
  12110. ## There is no encapsulation within the following macros, do not change
  12111. ## the running order or otherwise move them around unless you know exactly
  12112. ## what you are doing...
  12113. # Dependencies to place before and after the object being linked:
  12114. predep_objects_CXX=
  12115. postdep_objects_CXX=
  12116. predeps_CXX=
  12117. postdeps_CXX=
  12118. compiler_lib_search_path_CXX=
  12119. cat > conftest.$ac_ext <<_LT_EOF
  12120. class Foo
  12121. {
  12122. public:
  12123. Foo (void) { a = 0; }
  12124. private:
  12125. int a;
  12126. };
  12127. _LT_EOF
  12128. _lt_libdeps_save_CFLAGS=$CFLAGS
  12129. case "$CC $CFLAGS " in #(
  12130. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12131. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12132. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12133. esac
  12134. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12135. (eval $ac_compile) 2>&5
  12136. ac_status=$?
  12137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12138. test $ac_status = 0; }; then
  12139. # Parse the compiler output and extract the necessary
  12140. # objects, libraries and library flags.
  12141. # Sentinel used to keep track of whether or not we are before
  12142. # the conftest object file.
  12143. pre_test_object_deps_done=no
  12144. for p in `eval "$output_verbose_link_cmd"`; do
  12145. case ${prev}${p} in
  12146. -L* | -R* | -l*)
  12147. # Some compilers place space between "-{L,R}" and the path.
  12148. # Remove the space.
  12149. if test $p = "-L" ||
  12150. test $p = "-R"; then
  12151. prev=$p
  12152. continue
  12153. fi
  12154. # Expand the sysroot to ease extracting the directories later.
  12155. if test -z "$prev"; then
  12156. case $p in
  12157. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12158. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12159. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12160. esac
  12161. fi
  12162. case $p in
  12163. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12164. esac
  12165. if test "$pre_test_object_deps_done" = no; then
  12166. case ${prev} in
  12167. -L | -R)
  12168. # Internal compiler library paths should come after those
  12169. # provided the user. The postdeps already come after the
  12170. # user supplied libs so there is no need to process them.
  12171. if test -z "$compiler_lib_search_path_CXX"; then
  12172. compiler_lib_search_path_CXX="${prev}${p}"
  12173. else
  12174. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12175. fi
  12176. ;;
  12177. # The "-l" case would never come before the object being
  12178. # linked, so don't bother handling this case.
  12179. esac
  12180. else
  12181. if test -z "$postdeps_CXX"; then
  12182. postdeps_CXX="${prev}${p}"
  12183. else
  12184. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12185. fi
  12186. fi
  12187. prev=
  12188. ;;
  12189. *.lto.$objext) ;; # Ignore GCC LTO objects
  12190. *.$objext)
  12191. # This assumes that the test object file only shows up
  12192. # once in the compiler output.
  12193. if test "$p" = "conftest.$objext"; then
  12194. pre_test_object_deps_done=yes
  12195. continue
  12196. fi
  12197. if test "$pre_test_object_deps_done" = no; then
  12198. if test -z "$predep_objects_CXX"; then
  12199. predep_objects_CXX="$p"
  12200. else
  12201. predep_objects_CXX="$predep_objects_CXX $p"
  12202. fi
  12203. else
  12204. if test -z "$postdep_objects_CXX"; then
  12205. postdep_objects_CXX="$p"
  12206. else
  12207. postdep_objects_CXX="$postdep_objects_CXX $p"
  12208. fi
  12209. fi
  12210. ;;
  12211. *) ;; # Ignore the rest.
  12212. esac
  12213. done
  12214. # Clean up.
  12215. rm -f a.out a.exe
  12216. else
  12217. echo "libtool.m4: error: problem compiling CXX test program"
  12218. fi
  12219. $RM -f confest.$objext
  12220. CFLAGS=$_lt_libdeps_save_CFLAGS
  12221. # PORTME: override above test on systems where it is broken
  12222. case $host_os in
  12223. interix[3-9]*)
  12224. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12225. # hack all around it, let's just trust "g++" to DTRT.
  12226. predep_objects_CXX=
  12227. postdep_objects_CXX=
  12228. postdeps_CXX=
  12229. ;;
  12230. linux*)
  12231. case `$CC -V 2>&1 | sed 5q` in
  12232. *Sun\ C*)
  12233. # Sun C++ 5.9
  12234. # The more standards-conforming stlport4 library is
  12235. # incompatible with the Cstd library. Avoid specifying
  12236. # it if it's in CXXFLAGS. Ignore libCrun as
  12237. # -library=stlport4 depends on it.
  12238. case " $CXX $CXXFLAGS " in
  12239. *" -library=stlport4 "*)
  12240. solaris_use_stlport4=yes
  12241. ;;
  12242. esac
  12243. if test "$solaris_use_stlport4" != yes; then
  12244. postdeps_CXX='-library=Cstd -library=Crun'
  12245. fi
  12246. ;;
  12247. esac
  12248. ;;
  12249. solaris*)
  12250. case $cc_basename in
  12251. CC* | sunCC*)
  12252. # The more standards-conforming stlport4 library is
  12253. # incompatible with the Cstd library. Avoid specifying
  12254. # it if it's in CXXFLAGS. Ignore libCrun as
  12255. # -library=stlport4 depends on it.
  12256. case " $CXX $CXXFLAGS " in
  12257. *" -library=stlport4 "*)
  12258. solaris_use_stlport4=yes
  12259. ;;
  12260. esac
  12261. # Adding this requires a known-good setup of shared libraries for
  12262. # Sun compiler versions before 5.6, else PIC objects from an old
  12263. # archive will be linked into the output, leading to subtle bugs.
  12264. if test "$solaris_use_stlport4" != yes; then
  12265. postdeps_CXX='-library=Cstd -library=Crun'
  12266. fi
  12267. ;;
  12268. esac
  12269. ;;
  12270. esac
  12271. case " $postdeps_CXX " in
  12272. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12273. esac
  12274. compiler_lib_search_dirs_CXX=
  12275. if test -n "${compiler_lib_search_path_CXX}"; then
  12276. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12277. fi
  12278. lt_prog_compiler_wl_CXX=
  12279. lt_prog_compiler_pic_CXX=
  12280. lt_prog_compiler_static_CXX=
  12281. # C++ specific cases for pic, static, wl, etc.
  12282. if test "$GXX" = yes; then
  12283. lt_prog_compiler_wl_CXX='-Wl,'
  12284. lt_prog_compiler_static_CXX='-static'
  12285. case $host_os in
  12286. aix*)
  12287. # All AIX code is PIC.
  12288. if test "$host_cpu" = ia64; then
  12289. # AIX 5 now supports IA64 processor
  12290. lt_prog_compiler_static_CXX='-Bstatic'
  12291. fi
  12292. ;;
  12293. amigaos*)
  12294. case $host_cpu in
  12295. powerpc)
  12296. # see comment about AmigaOS4 .so support
  12297. lt_prog_compiler_pic_CXX='-fPIC'
  12298. ;;
  12299. m68k)
  12300. # FIXME: we need at least 68020 code to build shared libraries, but
  12301. # adding the `-m68020' flag to GCC prevents building anything better,
  12302. # like `-m68040'.
  12303. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12304. ;;
  12305. esac
  12306. ;;
  12307. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12308. # PIC is the default for these OSes.
  12309. ;;
  12310. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12311. # This hack is so that the source file can tell whether it is being
  12312. # built for inclusion in a dll (and should export symbols for example).
  12313. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12314. # (--disable-auto-import) libraries
  12315. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12316. ;;
  12317. darwin* | rhapsody*)
  12318. # PIC is the default on this platform
  12319. # Common symbols not allowed in MH_DYLIB files
  12320. lt_prog_compiler_pic_CXX='-fno-common'
  12321. ;;
  12322. *djgpp*)
  12323. # DJGPP does not support shared libraries at all
  12324. lt_prog_compiler_pic_CXX=
  12325. ;;
  12326. haiku*)
  12327. # PIC is the default for Haiku.
  12328. # The "-static" flag exists, but is broken.
  12329. lt_prog_compiler_static_CXX=
  12330. ;;
  12331. interix[3-9]*)
  12332. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12333. # Instead, we relocate shared libraries at runtime.
  12334. ;;
  12335. sysv4*MP*)
  12336. if test -d /usr/nec; then
  12337. lt_prog_compiler_pic_CXX=-Kconform_pic
  12338. fi
  12339. ;;
  12340. hpux*)
  12341. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12342. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12343. # sets the default TLS model and affects inlining.
  12344. case $host_cpu in
  12345. hppa*64*)
  12346. ;;
  12347. *)
  12348. lt_prog_compiler_pic_CXX='-fPIC'
  12349. ;;
  12350. esac
  12351. ;;
  12352. *qnx* | *nto*)
  12353. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12354. # it will coredump.
  12355. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12356. ;;
  12357. *)
  12358. lt_prog_compiler_pic_CXX='-fPIC'
  12359. ;;
  12360. esac
  12361. else
  12362. case $host_os in
  12363. aix[4-9]*)
  12364. # All AIX code is PIC.
  12365. if test "$host_cpu" = ia64; then
  12366. # AIX 5 now supports IA64 processor
  12367. lt_prog_compiler_static_CXX='-Bstatic'
  12368. else
  12369. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12370. fi
  12371. ;;
  12372. chorus*)
  12373. case $cc_basename in
  12374. cxch68*)
  12375. # Green Hills C++ Compiler
  12376. # _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"
  12377. ;;
  12378. esac
  12379. ;;
  12380. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12381. # This hack is so that the source file can tell whether it is being
  12382. # built for inclusion in a dll (and should export symbols for example).
  12383. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12384. ;;
  12385. dgux*)
  12386. case $cc_basename in
  12387. ec++*)
  12388. lt_prog_compiler_pic_CXX='-KPIC'
  12389. ;;
  12390. ghcx*)
  12391. # Green Hills C++ Compiler
  12392. lt_prog_compiler_pic_CXX='-pic'
  12393. ;;
  12394. *)
  12395. ;;
  12396. esac
  12397. ;;
  12398. freebsd* | dragonfly*)
  12399. # FreeBSD uses GNU C++
  12400. ;;
  12401. hpux9* | hpux10* | hpux11*)
  12402. case $cc_basename in
  12403. CC*)
  12404. lt_prog_compiler_wl_CXX='-Wl,'
  12405. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12406. if test "$host_cpu" != ia64; then
  12407. lt_prog_compiler_pic_CXX='+Z'
  12408. fi
  12409. ;;
  12410. aCC*)
  12411. lt_prog_compiler_wl_CXX='-Wl,'
  12412. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12413. case $host_cpu in
  12414. hppa*64*|ia64*)
  12415. # +Z the default
  12416. ;;
  12417. *)
  12418. lt_prog_compiler_pic_CXX='+Z'
  12419. ;;
  12420. esac
  12421. ;;
  12422. *)
  12423. ;;
  12424. esac
  12425. ;;
  12426. interix*)
  12427. # This is c89, which is MS Visual C++ (no shared libs)
  12428. # Anyone wants to do a port?
  12429. ;;
  12430. irix5* | irix6* | nonstopux*)
  12431. case $cc_basename in
  12432. CC*)
  12433. lt_prog_compiler_wl_CXX='-Wl,'
  12434. lt_prog_compiler_static_CXX='-non_shared'
  12435. # CC pic flag -KPIC is the default.
  12436. ;;
  12437. *)
  12438. ;;
  12439. esac
  12440. ;;
  12441. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12442. case $cc_basename in
  12443. KCC*)
  12444. # KAI C++ Compiler
  12445. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12446. lt_prog_compiler_pic_CXX='-fPIC'
  12447. ;;
  12448. ecpc* )
  12449. # old Intel C++ for x86_64 which still supported -KPIC.
  12450. lt_prog_compiler_wl_CXX='-Wl,'
  12451. lt_prog_compiler_pic_CXX='-KPIC'
  12452. lt_prog_compiler_static_CXX='-static'
  12453. ;;
  12454. icpc* )
  12455. # Intel C++, used to be incompatible with GCC.
  12456. # ICC 10 doesn't accept -KPIC any more.
  12457. lt_prog_compiler_wl_CXX='-Wl,'
  12458. lt_prog_compiler_pic_CXX='-fPIC'
  12459. lt_prog_compiler_static_CXX='-static'
  12460. ;;
  12461. pgCC* | pgcpp*)
  12462. # Portland Group C++ compiler
  12463. lt_prog_compiler_wl_CXX='-Wl,'
  12464. lt_prog_compiler_pic_CXX='-fpic'
  12465. lt_prog_compiler_static_CXX='-Bstatic'
  12466. ;;
  12467. cxx*)
  12468. # Compaq C++
  12469. # Make sure the PIC flag is empty. It appears that all Alpha
  12470. # Linux and Compaq Tru64 Unix objects are PIC.
  12471. lt_prog_compiler_pic_CXX=
  12472. lt_prog_compiler_static_CXX='-non_shared'
  12473. ;;
  12474. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12475. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12476. lt_prog_compiler_wl_CXX='-Wl,'
  12477. lt_prog_compiler_pic_CXX='-qpic'
  12478. lt_prog_compiler_static_CXX='-qstaticlink'
  12479. ;;
  12480. *)
  12481. case `$CC -V 2>&1 | sed 5q` in
  12482. *Sun\ C*)
  12483. # Sun C++ 5.9
  12484. lt_prog_compiler_pic_CXX='-KPIC'
  12485. lt_prog_compiler_static_CXX='-Bstatic'
  12486. lt_prog_compiler_wl_CXX='-Qoption ld '
  12487. ;;
  12488. esac
  12489. ;;
  12490. esac
  12491. ;;
  12492. lynxos*)
  12493. ;;
  12494. m88k*)
  12495. ;;
  12496. mvs*)
  12497. case $cc_basename in
  12498. cxx*)
  12499. lt_prog_compiler_pic_CXX='-W c,exportall'
  12500. ;;
  12501. *)
  12502. ;;
  12503. esac
  12504. ;;
  12505. netbsd*)
  12506. ;;
  12507. *qnx* | *nto*)
  12508. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12509. # it will coredump.
  12510. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12511. ;;
  12512. osf3* | osf4* | osf5*)
  12513. case $cc_basename in
  12514. KCC*)
  12515. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12516. ;;
  12517. RCC*)
  12518. # Rational C++ 2.4.1
  12519. lt_prog_compiler_pic_CXX='-pic'
  12520. ;;
  12521. cxx*)
  12522. # Digital/Compaq C++
  12523. lt_prog_compiler_wl_CXX='-Wl,'
  12524. # Make sure the PIC flag is empty. It appears that all Alpha
  12525. # Linux and Compaq Tru64 Unix objects are PIC.
  12526. lt_prog_compiler_pic_CXX=
  12527. lt_prog_compiler_static_CXX='-non_shared'
  12528. ;;
  12529. *)
  12530. ;;
  12531. esac
  12532. ;;
  12533. psos*)
  12534. ;;
  12535. solaris*)
  12536. case $cc_basename in
  12537. CC* | sunCC*)
  12538. # Sun C++ 4.2, 5.x and Centerline C++
  12539. lt_prog_compiler_pic_CXX='-KPIC'
  12540. lt_prog_compiler_static_CXX='-Bstatic'
  12541. lt_prog_compiler_wl_CXX='-Qoption ld '
  12542. ;;
  12543. gcx*)
  12544. # Green Hills C++ Compiler
  12545. lt_prog_compiler_pic_CXX='-PIC'
  12546. ;;
  12547. *)
  12548. ;;
  12549. esac
  12550. ;;
  12551. sunos4*)
  12552. case $cc_basename in
  12553. CC*)
  12554. # Sun C++ 4.x
  12555. lt_prog_compiler_pic_CXX='-pic'
  12556. lt_prog_compiler_static_CXX='-Bstatic'
  12557. ;;
  12558. lcc*)
  12559. # Lucid
  12560. lt_prog_compiler_pic_CXX='-pic'
  12561. ;;
  12562. *)
  12563. ;;
  12564. esac
  12565. ;;
  12566. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12567. case $cc_basename in
  12568. CC*)
  12569. lt_prog_compiler_wl_CXX='-Wl,'
  12570. lt_prog_compiler_pic_CXX='-KPIC'
  12571. lt_prog_compiler_static_CXX='-Bstatic'
  12572. ;;
  12573. esac
  12574. ;;
  12575. tandem*)
  12576. case $cc_basename in
  12577. NCC*)
  12578. # NonStop-UX NCC 3.20
  12579. lt_prog_compiler_pic_CXX='-KPIC'
  12580. ;;
  12581. *)
  12582. ;;
  12583. esac
  12584. ;;
  12585. vxworks*)
  12586. ;;
  12587. *)
  12588. lt_prog_compiler_can_build_shared_CXX=no
  12589. ;;
  12590. esac
  12591. fi
  12592. case $host_os in
  12593. # For platforms which do not support PIC, -DPIC is meaningless:
  12594. *djgpp*)
  12595. lt_prog_compiler_pic_CXX=
  12596. ;;
  12597. *)
  12598. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12599. ;;
  12600. esac
  12601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12602. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12603. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12604. $as_echo_n "(cached) " >&6
  12605. else
  12606. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12607. fi
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12609. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12610. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12611. #
  12612. # Check to make sure the PIC flag actually works.
  12613. #
  12614. if test -n "$lt_prog_compiler_pic_CXX"; then
  12615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12616. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12617. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12618. $as_echo_n "(cached) " >&6
  12619. else
  12620. lt_cv_prog_compiler_pic_works_CXX=no
  12621. ac_outfile=conftest.$ac_objext
  12622. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12623. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12624. # Insert the option either (1) after the last *FLAGS variable, or
  12625. # (2) before a word containing "conftest.", or (3) at the end.
  12626. # Note that $ac_compile itself does not contain backslashes and begins
  12627. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12628. # The option is referenced via a variable to avoid confusing sed.
  12629. lt_compile=`echo "$ac_compile" | $SED \
  12630. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12631. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12632. -e 's:$: $lt_compiler_flag:'`
  12633. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12634. (eval "$lt_compile" 2>conftest.err)
  12635. ac_status=$?
  12636. cat conftest.err >&5
  12637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12638. if (exit $ac_status) && test -s "$ac_outfile"; then
  12639. # The compiler can only warn and ignore the option if not recognized
  12640. # So say no if there are warnings other than the usual output.
  12641. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12642. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12643. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12644. lt_cv_prog_compiler_pic_works_CXX=yes
  12645. fi
  12646. fi
  12647. $RM conftest*
  12648. fi
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12650. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12651. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12652. case $lt_prog_compiler_pic_CXX in
  12653. "" | " "*) ;;
  12654. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12655. esac
  12656. else
  12657. lt_prog_compiler_pic_CXX=
  12658. lt_prog_compiler_can_build_shared_CXX=no
  12659. fi
  12660. fi
  12661. #
  12662. # Check to make sure the static flag actually works.
  12663. #
  12664. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12666. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12667. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12668. $as_echo_n "(cached) " >&6
  12669. else
  12670. lt_cv_prog_compiler_static_works_CXX=no
  12671. save_LDFLAGS="$LDFLAGS"
  12672. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12673. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12674. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12675. # The linker can only warn and ignore the option if not recognized
  12676. # So say no if there are warnings
  12677. if test -s conftest.err; then
  12678. # Append any errors to the config.log.
  12679. cat conftest.err 1>&5
  12680. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12681. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12682. if diff conftest.exp conftest.er2 >/dev/null; then
  12683. lt_cv_prog_compiler_static_works_CXX=yes
  12684. fi
  12685. else
  12686. lt_cv_prog_compiler_static_works_CXX=yes
  12687. fi
  12688. fi
  12689. $RM -r conftest*
  12690. LDFLAGS="$save_LDFLAGS"
  12691. fi
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12693. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12694. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12695. :
  12696. else
  12697. lt_prog_compiler_static_CXX=
  12698. fi
  12699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12700. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12701. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12702. $as_echo_n "(cached) " >&6
  12703. else
  12704. lt_cv_prog_compiler_c_o_CXX=no
  12705. $RM -r conftest 2>/dev/null
  12706. mkdir conftest
  12707. cd conftest
  12708. mkdir out
  12709. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12710. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12711. # Insert the option either (1) after the last *FLAGS variable, or
  12712. # (2) before a word containing "conftest.", or (3) at the end.
  12713. # Note that $ac_compile itself does not contain backslashes and begins
  12714. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12715. lt_compile=`echo "$ac_compile" | $SED \
  12716. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12717. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12718. -e 's:$: $lt_compiler_flag:'`
  12719. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12720. (eval "$lt_compile" 2>out/conftest.err)
  12721. ac_status=$?
  12722. cat out/conftest.err >&5
  12723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12724. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12725. then
  12726. # The compiler can only warn and ignore the option if not recognized
  12727. # So say no if there are warnings
  12728. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12729. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12730. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12731. lt_cv_prog_compiler_c_o_CXX=yes
  12732. fi
  12733. fi
  12734. chmod u+w . 2>&5
  12735. $RM conftest*
  12736. # SGI C++ compiler will create directory out/ii_files/ for
  12737. # template instantiation
  12738. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12739. $RM out/* && rmdir out
  12740. cd ..
  12741. $RM -r conftest
  12742. $RM conftest*
  12743. fi
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12745. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12747. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12748. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12749. $as_echo_n "(cached) " >&6
  12750. else
  12751. lt_cv_prog_compiler_c_o_CXX=no
  12752. $RM -r conftest 2>/dev/null
  12753. mkdir conftest
  12754. cd conftest
  12755. mkdir out
  12756. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12757. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12758. # Insert the option either (1) after the last *FLAGS variable, or
  12759. # (2) before a word containing "conftest.", or (3) at the end.
  12760. # Note that $ac_compile itself does not contain backslashes and begins
  12761. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12762. lt_compile=`echo "$ac_compile" | $SED \
  12763. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12764. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12765. -e 's:$: $lt_compiler_flag:'`
  12766. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12767. (eval "$lt_compile" 2>out/conftest.err)
  12768. ac_status=$?
  12769. cat out/conftest.err >&5
  12770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12771. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12772. then
  12773. # The compiler can only warn and ignore the option if not recognized
  12774. # So say no if there are warnings
  12775. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12776. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12777. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12778. lt_cv_prog_compiler_c_o_CXX=yes
  12779. fi
  12780. fi
  12781. chmod u+w . 2>&5
  12782. $RM conftest*
  12783. # SGI C++ compiler will create directory out/ii_files/ for
  12784. # template instantiation
  12785. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12786. $RM out/* && rmdir out
  12787. cd ..
  12788. $RM -r conftest
  12789. $RM conftest*
  12790. fi
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12792. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12793. hard_links="nottested"
  12794. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12795. # do not overwrite the value of need_locks provided by the user
  12796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12797. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12798. hard_links=yes
  12799. $RM conftest*
  12800. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12801. touch conftest.a
  12802. ln conftest.a conftest.b 2>&5 || hard_links=no
  12803. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12805. $as_echo "$hard_links" >&6; }
  12806. if test "$hard_links" = no; then
  12807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12808. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12809. need_locks=warn
  12810. fi
  12811. else
  12812. need_locks=no
  12813. fi
  12814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12815. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12816. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12817. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12818. case $host_os in
  12819. aix[4-9]*)
  12820. # If we're using GNU nm, then we don't want the "-C" option.
  12821. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12822. # Also, AIX nm treats weak defined symbols like other global defined
  12823. # symbols, whereas GNU nm marks them as "W".
  12824. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12825. 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'
  12826. else
  12827. 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'
  12828. fi
  12829. ;;
  12830. pw32*)
  12831. export_symbols_cmds_CXX="$ltdll_cmds"
  12832. ;;
  12833. cygwin* | mingw* | cegcc*)
  12834. case $cc_basename in
  12835. cl*)
  12836. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12837. ;;
  12838. *)
  12839. 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'
  12840. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12841. ;;
  12842. esac
  12843. ;;
  12844. *)
  12845. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12846. ;;
  12847. esac
  12848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12849. $as_echo "$ld_shlibs_CXX" >&6; }
  12850. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12851. with_gnu_ld_CXX=$with_gnu_ld
  12852. #
  12853. # Do we need to explicitly link libc?
  12854. #
  12855. case "x$archive_cmds_need_lc_CXX" in
  12856. x|xyes)
  12857. # Assume -lc should be added
  12858. archive_cmds_need_lc_CXX=yes
  12859. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12860. case $archive_cmds_CXX in
  12861. *'~'*)
  12862. # FIXME: we may have to deal with multi-command sequences.
  12863. ;;
  12864. '$CC '*)
  12865. # Test whether the compiler implicitly links with -lc since on some
  12866. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12867. # to ld, don't add -lc before -lgcc.
  12868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12869. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12870. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12871. $as_echo_n "(cached) " >&6
  12872. else
  12873. $RM conftest*
  12874. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12875. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12876. (eval $ac_compile) 2>&5
  12877. ac_status=$?
  12878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12879. test $ac_status = 0; } 2>conftest.err; then
  12880. soname=conftest
  12881. lib=conftest
  12882. libobjs=conftest.$ac_objext
  12883. deplibs=
  12884. wl=$lt_prog_compiler_wl_CXX
  12885. pic_flag=$lt_prog_compiler_pic_CXX
  12886. compiler_flags=-v
  12887. linker_flags=-v
  12888. verstring=
  12889. output_objdir=.
  12890. libname=conftest
  12891. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12892. allow_undefined_flag_CXX=
  12893. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12894. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12895. ac_status=$?
  12896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12897. test $ac_status = 0; }
  12898. then
  12899. lt_cv_archive_cmds_need_lc_CXX=no
  12900. else
  12901. lt_cv_archive_cmds_need_lc_CXX=yes
  12902. fi
  12903. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12904. else
  12905. cat conftest.err 1>&5
  12906. fi
  12907. $RM conftest*
  12908. fi
  12909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12910. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12911. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12912. ;;
  12913. esac
  12914. fi
  12915. ;;
  12916. esac
  12917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12918. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12919. library_names_spec=
  12920. libname_spec='lib$name'
  12921. soname_spec=
  12922. shrext_cmds=".so"
  12923. postinstall_cmds=
  12924. postuninstall_cmds=
  12925. finish_cmds=
  12926. finish_eval=
  12927. shlibpath_var=
  12928. shlibpath_overrides_runpath=unknown
  12929. version_type=none
  12930. dynamic_linker="$host_os ld.so"
  12931. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12932. need_lib_prefix=unknown
  12933. hardcode_into_libs=no
  12934. # when you set need_version to no, make sure it does not cause -set_version
  12935. # flags to be left without arguments
  12936. need_version=unknown
  12937. case $host_os in
  12938. aix3*)
  12939. version_type=linux # correct to gnu/linux during the next big refactor
  12940. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12941. shlibpath_var=LIBPATH
  12942. # AIX 3 has no versioning support, so we append a major version to the name.
  12943. soname_spec='${libname}${release}${shared_ext}$major'
  12944. ;;
  12945. aix[4-9]*)
  12946. version_type=linux # correct to gnu/linux during the next big refactor
  12947. need_lib_prefix=no
  12948. need_version=no
  12949. hardcode_into_libs=yes
  12950. if test "$host_cpu" = ia64; then
  12951. # AIX 5 supports IA64
  12952. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12953. shlibpath_var=LD_LIBRARY_PATH
  12954. else
  12955. # With GCC up to 2.95.x, collect2 would create an import file
  12956. # for dependence libraries. The import file would start with
  12957. # the line `#! .'. This would cause the generated library to
  12958. # depend on `.', always an invalid library. This was fixed in
  12959. # development snapshots of GCC prior to 3.0.
  12960. case $host_os in
  12961. aix4 | aix4.[01] | aix4.[01].*)
  12962. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12963. echo ' yes '
  12964. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12965. :
  12966. else
  12967. can_build_shared=no
  12968. fi
  12969. ;;
  12970. esac
  12971. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12972. # soname into executable. Probably we can add versioning support to
  12973. # collect2, so additional links can be useful in future.
  12974. if test "$aix_use_runtimelinking" = yes; then
  12975. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12976. # instead of lib<name>.a to let people know that these are not
  12977. # typical AIX shared libraries.
  12978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12979. else
  12980. # We preserve .a as extension for shared libraries through AIX4.2
  12981. # and later when we are not doing run time linking.
  12982. library_names_spec='${libname}${release}.a $libname.a'
  12983. soname_spec='${libname}${release}${shared_ext}$major'
  12984. fi
  12985. shlibpath_var=LIBPATH
  12986. fi
  12987. ;;
  12988. amigaos*)
  12989. case $host_cpu in
  12990. powerpc)
  12991. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12992. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12994. ;;
  12995. m68k)
  12996. library_names_spec='$libname.ixlibrary $libname.a'
  12997. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12998. 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'
  12999. ;;
  13000. esac
  13001. ;;
  13002. beos*)
  13003. library_names_spec='${libname}${shared_ext}'
  13004. dynamic_linker="$host_os ld.so"
  13005. shlibpath_var=LIBRARY_PATH
  13006. ;;
  13007. bsdi[45]*)
  13008. version_type=linux # correct to gnu/linux during the next big refactor
  13009. need_version=no
  13010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13011. soname_spec='${libname}${release}${shared_ext}$major'
  13012. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13013. shlibpath_var=LD_LIBRARY_PATH
  13014. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13015. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13016. # the default ld.so.conf also contains /usr/contrib/lib and
  13017. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13018. # libtool to hard-code these into programs
  13019. ;;
  13020. cygwin* | mingw* | pw32* | cegcc*)
  13021. version_type=windows
  13022. shrext_cmds=".dll"
  13023. need_version=no
  13024. need_lib_prefix=no
  13025. case $GCC,$cc_basename in
  13026. yes,*)
  13027. # gcc
  13028. library_names_spec='$libname.dll.a'
  13029. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13030. postinstall_cmds='base_file=`basename \${file}`~
  13031. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13032. dldir=$destdir/`dirname \$dlpath`~
  13033. test -d \$dldir || mkdir -p \$dldir~
  13034. $install_prog $dir/$dlname \$dldir/$dlname~
  13035. chmod a+x \$dldir/$dlname~
  13036. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13037. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13038. fi'
  13039. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13040. dlpath=$dir/\$dldll~
  13041. $RM \$dlpath'
  13042. shlibpath_overrides_runpath=yes
  13043. case $host_os in
  13044. cygwin*)
  13045. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13046. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13047. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13048. ;;
  13049. mingw* | cegcc*)
  13050. # MinGW DLLs use traditional 'lib' prefix
  13051. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13052. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13053. ;;
  13054. pw32*)
  13055. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13056. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13057. ;;
  13058. esac
  13059. dynamic_linker='Win32 ld.exe'
  13060. ;;
  13061. *,cl*)
  13062. # Native MSVC
  13063. libname_spec='$name'
  13064. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13065. library_names_spec='${libname}.dll.lib'
  13066. case $build_os in
  13067. mingw*)
  13068. sys_lib_search_path_spec=
  13069. lt_save_ifs=$IFS
  13070. IFS=';'
  13071. for lt_path in $LIB
  13072. do
  13073. IFS=$lt_save_ifs
  13074. # Let DOS variable expansion print the short 8.3 style file name.
  13075. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13076. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13077. done
  13078. IFS=$lt_save_ifs
  13079. # Convert to MSYS style.
  13080. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13081. ;;
  13082. cygwin*)
  13083. # Convert to unix form, then to dos form, then back to unix form
  13084. # but this time dos style (no spaces!) so that the unix form looks
  13085. # like /cygdrive/c/PROGRA~1:/cygdr...
  13086. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13087. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13088. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13089. ;;
  13090. *)
  13091. sys_lib_search_path_spec="$LIB"
  13092. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13093. # It is most probably a Windows format PATH.
  13094. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13095. else
  13096. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13097. fi
  13098. # FIXME: find the short name or the path components, as spaces are
  13099. # common. (e.g. "Program Files" -> "PROGRA~1")
  13100. ;;
  13101. esac
  13102. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13103. postinstall_cmds='base_file=`basename \${file}`~
  13104. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13105. dldir=$destdir/`dirname \$dlpath`~
  13106. test -d \$dldir || mkdir -p \$dldir~
  13107. $install_prog $dir/$dlname \$dldir/$dlname'
  13108. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13109. dlpath=$dir/\$dldll~
  13110. $RM \$dlpath'
  13111. shlibpath_overrides_runpath=yes
  13112. dynamic_linker='Win32 link.exe'
  13113. ;;
  13114. *)
  13115. # Assume MSVC wrapper
  13116. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13117. dynamic_linker='Win32 ld.exe'
  13118. ;;
  13119. esac
  13120. # FIXME: first we should search . and the directory the executable is in
  13121. shlibpath_var=PATH
  13122. ;;
  13123. darwin* | rhapsody*)
  13124. dynamic_linker="$host_os dyld"
  13125. version_type=darwin
  13126. need_lib_prefix=no
  13127. need_version=no
  13128. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13129. soname_spec='${libname}${release}${major}$shared_ext'
  13130. shlibpath_overrides_runpath=yes
  13131. shlibpath_var=DYLD_LIBRARY_PATH
  13132. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13133. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13134. ;;
  13135. dgux*)
  13136. version_type=linux # correct to gnu/linux during the next big refactor
  13137. need_lib_prefix=no
  13138. need_version=no
  13139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13140. soname_spec='${libname}${release}${shared_ext}$major'
  13141. shlibpath_var=LD_LIBRARY_PATH
  13142. ;;
  13143. freebsd* | dragonfly*)
  13144. # DragonFly does not have aout. When/if they implement a new
  13145. # versioning mechanism, adjust this.
  13146. if test -x /usr/bin/objformat; then
  13147. objformat=`/usr/bin/objformat`
  13148. else
  13149. case $host_os in
  13150. freebsd[23].*) objformat=aout ;;
  13151. *) objformat=elf ;;
  13152. esac
  13153. fi
  13154. version_type=freebsd-$objformat
  13155. case $version_type in
  13156. freebsd-elf*)
  13157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13158. need_version=no
  13159. need_lib_prefix=no
  13160. ;;
  13161. freebsd-*)
  13162. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13163. need_version=yes
  13164. ;;
  13165. esac
  13166. shlibpath_var=LD_LIBRARY_PATH
  13167. case $host_os in
  13168. freebsd2.*)
  13169. shlibpath_overrides_runpath=yes
  13170. ;;
  13171. freebsd3.[01]* | freebsdelf3.[01]*)
  13172. shlibpath_overrides_runpath=yes
  13173. hardcode_into_libs=yes
  13174. ;;
  13175. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13176. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13177. shlibpath_overrides_runpath=no
  13178. hardcode_into_libs=yes
  13179. ;;
  13180. *) # from 4.6 on, and DragonFly
  13181. shlibpath_overrides_runpath=yes
  13182. hardcode_into_libs=yes
  13183. ;;
  13184. esac
  13185. ;;
  13186. gnu*)
  13187. version_type=linux # correct to gnu/linux during the next big refactor
  13188. need_lib_prefix=no
  13189. need_version=no
  13190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13191. soname_spec='${libname}${release}${shared_ext}$major'
  13192. shlibpath_var=LD_LIBRARY_PATH
  13193. shlibpath_overrides_runpath=no
  13194. hardcode_into_libs=yes
  13195. ;;
  13196. haiku*)
  13197. version_type=linux # correct to gnu/linux during the next big refactor
  13198. need_lib_prefix=no
  13199. need_version=no
  13200. dynamic_linker="$host_os runtime_loader"
  13201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13202. soname_spec='${libname}${release}${shared_ext}$major'
  13203. shlibpath_var=LIBRARY_PATH
  13204. shlibpath_overrides_runpath=yes
  13205. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13206. hardcode_into_libs=yes
  13207. ;;
  13208. hpux9* | hpux10* | hpux11*)
  13209. # Give a soname corresponding to the major version so that dld.sl refuses to
  13210. # link against other versions.
  13211. version_type=sunos
  13212. need_lib_prefix=no
  13213. need_version=no
  13214. case $host_cpu in
  13215. ia64*)
  13216. shrext_cmds='.so'
  13217. hardcode_into_libs=yes
  13218. dynamic_linker="$host_os dld.so"
  13219. shlibpath_var=LD_LIBRARY_PATH
  13220. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13222. soname_spec='${libname}${release}${shared_ext}$major'
  13223. if test "X$HPUX_IA64_MODE" = X32; then
  13224. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13225. else
  13226. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13227. fi
  13228. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13229. ;;
  13230. hppa*64*)
  13231. shrext_cmds='.sl'
  13232. hardcode_into_libs=yes
  13233. dynamic_linker="$host_os dld.sl"
  13234. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13235. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13237. soname_spec='${libname}${release}${shared_ext}$major'
  13238. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13239. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13240. ;;
  13241. *)
  13242. shrext_cmds='.sl'
  13243. dynamic_linker="$host_os dld.sl"
  13244. shlibpath_var=SHLIB_PATH
  13245. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13247. soname_spec='${libname}${release}${shared_ext}$major'
  13248. ;;
  13249. esac
  13250. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13251. postinstall_cmds='chmod 555 $lib'
  13252. # or fails outright, so override atomically:
  13253. install_override_mode=555
  13254. ;;
  13255. interix[3-9]*)
  13256. version_type=linux # correct to gnu/linux during the next big refactor
  13257. need_lib_prefix=no
  13258. need_version=no
  13259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13260. soname_spec='${libname}${release}${shared_ext}$major'
  13261. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13262. shlibpath_var=LD_LIBRARY_PATH
  13263. shlibpath_overrides_runpath=no
  13264. hardcode_into_libs=yes
  13265. ;;
  13266. irix5* | irix6* | nonstopux*)
  13267. case $host_os in
  13268. nonstopux*) version_type=nonstopux ;;
  13269. *)
  13270. if test "$lt_cv_prog_gnu_ld" = yes; then
  13271. version_type=linux # correct to gnu/linux during the next big refactor
  13272. else
  13273. version_type=irix
  13274. fi ;;
  13275. esac
  13276. need_lib_prefix=no
  13277. need_version=no
  13278. soname_spec='${libname}${release}${shared_ext}$major'
  13279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13280. case $host_os in
  13281. irix5* | nonstopux*)
  13282. libsuff= shlibsuff=
  13283. ;;
  13284. *)
  13285. case $LD in # libtool.m4 will add one of these switches to LD
  13286. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13287. libsuff= shlibsuff= libmagic=32-bit;;
  13288. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13289. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13290. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13291. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13292. *) libsuff= shlibsuff= libmagic=never-match;;
  13293. esac
  13294. ;;
  13295. esac
  13296. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13297. shlibpath_overrides_runpath=no
  13298. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13299. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13300. hardcode_into_libs=yes
  13301. ;;
  13302. # No shared lib support for Linux oldld, aout, or coff.
  13303. linux*oldld* | linux*aout* | linux*coff*)
  13304. dynamic_linker=no
  13305. ;;
  13306. # This must be glibc/ELF.
  13307. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13308. version_type=linux # correct to gnu/linux during the next big refactor
  13309. need_lib_prefix=no
  13310. need_version=no
  13311. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13312. soname_spec='${libname}${release}${shared_ext}$major'
  13313. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13314. shlibpath_var=LD_LIBRARY_PATH
  13315. shlibpath_overrides_runpath=no
  13316. # Some binutils ld are patched to set DT_RUNPATH
  13317. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13318. $as_echo_n "(cached) " >&6
  13319. else
  13320. lt_cv_shlibpath_overrides_runpath=no
  13321. save_LDFLAGS=$LDFLAGS
  13322. save_libdir=$libdir
  13323. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13324. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13326. /* end confdefs.h. */
  13327. int
  13328. main ()
  13329. {
  13330. ;
  13331. return 0;
  13332. }
  13333. _ACEOF
  13334. if ac_fn_cxx_try_link "$LINENO"; then :
  13335. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13336. lt_cv_shlibpath_overrides_runpath=yes
  13337. fi
  13338. fi
  13339. rm -f core conftest.err conftest.$ac_objext \
  13340. conftest$ac_exeext conftest.$ac_ext
  13341. LDFLAGS=$save_LDFLAGS
  13342. libdir=$save_libdir
  13343. fi
  13344. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13345. # This implies no fast_install, which is unacceptable.
  13346. # Some rework will be needed to allow for fast_install
  13347. # before this can be enabled.
  13348. hardcode_into_libs=yes
  13349. # Append ld.so.conf contents to the search path
  13350. if test -f /etc/ld.so.conf; then
  13351. 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' ' '`
  13352. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13353. fi
  13354. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13355. # powerpc, because MkLinux only supported shared libraries with the
  13356. # GNU dynamic linker. Since this was broken with cross compilers,
  13357. # most powerpc-linux boxes support dynamic linking these days and
  13358. # people can always --disable-shared, the test was removed, and we
  13359. # assume the GNU/Linux dynamic linker is in use.
  13360. dynamic_linker='GNU/Linux ld.so'
  13361. ;;
  13362. netbsd*)
  13363. version_type=sunos
  13364. need_lib_prefix=no
  13365. need_version=no
  13366. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13368. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13369. dynamic_linker='NetBSD (a.out) ld.so'
  13370. else
  13371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13372. soname_spec='${libname}${release}${shared_ext}$major'
  13373. dynamic_linker='NetBSD ld.elf_so'
  13374. fi
  13375. shlibpath_var=LD_LIBRARY_PATH
  13376. shlibpath_overrides_runpath=yes
  13377. hardcode_into_libs=yes
  13378. ;;
  13379. newsos6)
  13380. version_type=linux # correct to gnu/linux during the next big refactor
  13381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13382. shlibpath_var=LD_LIBRARY_PATH
  13383. shlibpath_overrides_runpath=yes
  13384. ;;
  13385. *nto* | *qnx*)
  13386. version_type=qnx
  13387. need_lib_prefix=no
  13388. need_version=no
  13389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13390. soname_spec='${libname}${release}${shared_ext}$major'
  13391. shlibpath_var=LD_LIBRARY_PATH
  13392. shlibpath_overrides_runpath=no
  13393. hardcode_into_libs=yes
  13394. dynamic_linker='ldqnx.so'
  13395. ;;
  13396. openbsd*)
  13397. version_type=sunos
  13398. sys_lib_dlsearch_path_spec="/usr/lib"
  13399. need_lib_prefix=no
  13400. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13401. case $host_os in
  13402. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13403. *) need_version=no ;;
  13404. esac
  13405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13406. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13407. shlibpath_var=LD_LIBRARY_PATH
  13408. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13409. case $host_os in
  13410. openbsd2.[89] | openbsd2.[89].*)
  13411. shlibpath_overrides_runpath=no
  13412. ;;
  13413. *)
  13414. shlibpath_overrides_runpath=yes
  13415. ;;
  13416. esac
  13417. else
  13418. shlibpath_overrides_runpath=yes
  13419. fi
  13420. ;;
  13421. os2*)
  13422. libname_spec='$name'
  13423. shrext_cmds=".dll"
  13424. need_lib_prefix=no
  13425. library_names_spec='$libname${shared_ext} $libname.a'
  13426. dynamic_linker='OS/2 ld.exe'
  13427. shlibpath_var=LIBPATH
  13428. ;;
  13429. osf3* | osf4* | osf5*)
  13430. version_type=osf
  13431. need_lib_prefix=no
  13432. need_version=no
  13433. soname_spec='${libname}${release}${shared_ext}$major'
  13434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13435. shlibpath_var=LD_LIBRARY_PATH
  13436. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13437. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13438. ;;
  13439. rdos*)
  13440. dynamic_linker=no
  13441. ;;
  13442. solaris*)
  13443. version_type=linux # correct to gnu/linux during the next big refactor
  13444. need_lib_prefix=no
  13445. need_version=no
  13446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13447. soname_spec='${libname}${release}${shared_ext}$major'
  13448. shlibpath_var=LD_LIBRARY_PATH
  13449. shlibpath_overrides_runpath=yes
  13450. hardcode_into_libs=yes
  13451. # ldd complains unless libraries are executable
  13452. postinstall_cmds='chmod +x $lib'
  13453. ;;
  13454. sunos4*)
  13455. version_type=sunos
  13456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13457. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13458. shlibpath_var=LD_LIBRARY_PATH
  13459. shlibpath_overrides_runpath=yes
  13460. if test "$with_gnu_ld" = yes; then
  13461. need_lib_prefix=no
  13462. fi
  13463. need_version=yes
  13464. ;;
  13465. sysv4 | sysv4.3*)
  13466. version_type=linux # correct to gnu/linux during the next big refactor
  13467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13468. soname_spec='${libname}${release}${shared_ext}$major'
  13469. shlibpath_var=LD_LIBRARY_PATH
  13470. case $host_vendor in
  13471. sni)
  13472. shlibpath_overrides_runpath=no
  13473. need_lib_prefix=no
  13474. runpath_var=LD_RUN_PATH
  13475. ;;
  13476. siemens)
  13477. need_lib_prefix=no
  13478. ;;
  13479. motorola)
  13480. need_lib_prefix=no
  13481. need_version=no
  13482. shlibpath_overrides_runpath=no
  13483. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13484. ;;
  13485. esac
  13486. ;;
  13487. sysv4*MP*)
  13488. if test -d /usr/nec ;then
  13489. version_type=linux # correct to gnu/linux during the next big refactor
  13490. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13491. soname_spec='$libname${shared_ext}.$major'
  13492. shlibpath_var=LD_LIBRARY_PATH
  13493. fi
  13494. ;;
  13495. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13496. version_type=freebsd-elf
  13497. need_lib_prefix=no
  13498. need_version=no
  13499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13500. soname_spec='${libname}${release}${shared_ext}$major'
  13501. shlibpath_var=LD_LIBRARY_PATH
  13502. shlibpath_overrides_runpath=yes
  13503. hardcode_into_libs=yes
  13504. if test "$with_gnu_ld" = yes; then
  13505. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13506. else
  13507. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13508. case $host_os in
  13509. sco3.2v5*)
  13510. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13511. ;;
  13512. esac
  13513. fi
  13514. sys_lib_dlsearch_path_spec='/usr/lib'
  13515. ;;
  13516. tpf*)
  13517. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13518. version_type=linux # correct to gnu/linux during the next big refactor
  13519. need_lib_prefix=no
  13520. need_version=no
  13521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13522. shlibpath_var=LD_LIBRARY_PATH
  13523. shlibpath_overrides_runpath=no
  13524. hardcode_into_libs=yes
  13525. ;;
  13526. uts4*)
  13527. version_type=linux # correct to gnu/linux during the next big refactor
  13528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13529. soname_spec='${libname}${release}${shared_ext}$major'
  13530. shlibpath_var=LD_LIBRARY_PATH
  13531. ;;
  13532. *)
  13533. dynamic_linker=no
  13534. ;;
  13535. esac
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13537. $as_echo "$dynamic_linker" >&6; }
  13538. test "$dynamic_linker" = no && can_build_shared=no
  13539. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13540. if test "$GCC" = yes; then
  13541. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13542. fi
  13543. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13544. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13545. fi
  13546. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13547. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13548. fi
  13549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13550. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13551. hardcode_action_CXX=
  13552. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13553. test -n "$runpath_var_CXX" ||
  13554. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13555. # We can hardcode non-existent directories.
  13556. if test "$hardcode_direct_CXX" != no &&
  13557. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13558. # have to relink, otherwise we might link with an installed library
  13559. # when we should be linking with a yet-to-be-installed one
  13560. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13561. test "$hardcode_minus_L_CXX" != no; then
  13562. # Linking always hardcodes the temporary library directory.
  13563. hardcode_action_CXX=relink
  13564. else
  13565. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13566. hardcode_action_CXX=immediate
  13567. fi
  13568. else
  13569. # We cannot hardcode anything, or else we can only hardcode existing
  13570. # directories.
  13571. hardcode_action_CXX=unsupported
  13572. fi
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13574. $as_echo "$hardcode_action_CXX" >&6; }
  13575. if test "$hardcode_action_CXX" = relink ||
  13576. test "$inherit_rpath_CXX" = yes; then
  13577. # Fast installation is not supported
  13578. enable_fast_install=no
  13579. elif test "$shlibpath_overrides_runpath" = yes ||
  13580. test "$enable_shared" = no; then
  13581. # Fast installation is not necessary
  13582. enable_fast_install=needless
  13583. fi
  13584. fi # test -n "$compiler"
  13585. CC=$lt_save_CC
  13586. CFLAGS=$lt_save_CFLAGS
  13587. LDCXX=$LD
  13588. LD=$lt_save_LD
  13589. GCC=$lt_save_GCC
  13590. with_gnu_ld=$lt_save_with_gnu_ld
  13591. lt_cv_path_LDCXX=$lt_cv_path_LD
  13592. lt_cv_path_LD=$lt_save_path_LD
  13593. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13594. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13595. fi # test "$_lt_caught_CXX_error" != yes
  13596. ac_ext=c
  13597. ac_cpp='$CPP $CPPFLAGS'
  13598. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13599. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13600. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13601. # Find a good install program. We prefer a C program (faster),
  13602. # so one script is as good as another. But avoid the broken or
  13603. # incompatible versions:
  13604. # SysV /etc/install, /usr/sbin/install
  13605. # SunOS /usr/etc/install
  13606. # IRIX /sbin/install
  13607. # AIX /bin/install
  13608. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13609. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13610. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13611. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13612. # OS/2's system install, which has a completely different semantic
  13613. # ./install, which can be erroneously created by make from ./install.sh.
  13614. # Reject install programs that cannot install multiple files.
  13615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13616. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13617. if test -z "$INSTALL"; then
  13618. if ${ac_cv_path_install+:} false; then :
  13619. $as_echo_n "(cached) " >&6
  13620. else
  13621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13622. for as_dir in $PATH
  13623. do
  13624. IFS=$as_save_IFS
  13625. test -z "$as_dir" && as_dir=.
  13626. # Account for people who put trailing slashes in PATH elements.
  13627. case $as_dir/ in #((
  13628. ./ | .// | /[cC]/* | \
  13629. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13630. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13631. /usr/ucb/* ) ;;
  13632. *)
  13633. # OSF1 and SCO ODT 3.0 have their own names for install.
  13634. # Don't use installbsd from OSF since it installs stuff as root
  13635. # by default.
  13636. for ac_prog in ginstall scoinst install; do
  13637. for ac_exec_ext in '' $ac_executable_extensions; do
  13638. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13639. if test $ac_prog = install &&
  13640. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13641. # AIX install. It has an incompatible calling convention.
  13642. :
  13643. elif test $ac_prog = install &&
  13644. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13645. # program-specific install script used by HP pwplus--don't use.
  13646. :
  13647. else
  13648. rm -rf conftest.one conftest.two conftest.dir
  13649. echo one > conftest.one
  13650. echo two > conftest.two
  13651. mkdir conftest.dir
  13652. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13653. test -s conftest.one && test -s conftest.two &&
  13654. test -s conftest.dir/conftest.one &&
  13655. test -s conftest.dir/conftest.two
  13656. then
  13657. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13658. break 3
  13659. fi
  13660. fi
  13661. fi
  13662. done
  13663. done
  13664. ;;
  13665. esac
  13666. done
  13667. IFS=$as_save_IFS
  13668. rm -rf conftest.one conftest.two conftest.dir
  13669. fi
  13670. if test "${ac_cv_path_install+set}" = set; then
  13671. INSTALL=$ac_cv_path_install
  13672. else
  13673. # As a last resort, use the slow shell script. Don't cache a
  13674. # value for INSTALL within a source directory, because that will
  13675. # break other packages using the cache if that directory is
  13676. # removed, or if the value is a relative name.
  13677. INSTALL=$ac_install_sh
  13678. fi
  13679. fi
  13680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13681. $as_echo "$INSTALL" >&6; }
  13682. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13683. # It thinks the first close brace ends the variable substitution.
  13684. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13685. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13686. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13688. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13689. set x ${MAKE-make}
  13690. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13691. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13692. $as_echo_n "(cached) " >&6
  13693. else
  13694. cat >conftest.make <<\_ACEOF
  13695. SHELL = /bin/sh
  13696. all:
  13697. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13698. _ACEOF
  13699. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13700. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13701. *@@@%%%=?*=@@@%%%*)
  13702. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13703. *)
  13704. eval ac_cv_prog_make_${ac_make}_set=no;;
  13705. esac
  13706. rm -f conftest.make
  13707. fi
  13708. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13710. $as_echo "yes" >&6; }
  13711. SET_MAKE=
  13712. else
  13713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13714. $as_echo "no" >&6; }
  13715. SET_MAKE="MAKE=${MAKE-make}"
  13716. fi
  13717. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13718. if test -n "$ac_tool_prefix"; then
  13719. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13720. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13722. $as_echo_n "checking for $ac_word... " >&6; }
  13723. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13724. $as_echo_n "(cached) " >&6
  13725. else
  13726. case $PKG_CONFIG in
  13727. [\\/]* | ?:[\\/]*)
  13728. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13729. ;;
  13730. *)
  13731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13732. for as_dir in $PATH
  13733. do
  13734. IFS=$as_save_IFS
  13735. test -z "$as_dir" && as_dir=.
  13736. for ac_exec_ext in '' $ac_executable_extensions; do
  13737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13738. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13740. break 2
  13741. fi
  13742. done
  13743. done
  13744. IFS=$as_save_IFS
  13745. ;;
  13746. esac
  13747. fi
  13748. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13749. if test -n "$PKG_CONFIG"; then
  13750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13751. $as_echo "$PKG_CONFIG" >&6; }
  13752. else
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13754. $as_echo "no" >&6; }
  13755. fi
  13756. fi
  13757. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13758. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13759. # Extract the first word of "pkg-config", so it can be a program name with args.
  13760. set dummy pkg-config; ac_word=$2
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13762. $as_echo_n "checking for $ac_word... " >&6; }
  13763. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13764. $as_echo_n "(cached) " >&6
  13765. else
  13766. case $ac_pt_PKG_CONFIG in
  13767. [\\/]* | ?:[\\/]*)
  13768. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13769. ;;
  13770. *)
  13771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13772. for as_dir in $PATH
  13773. do
  13774. IFS=$as_save_IFS
  13775. test -z "$as_dir" && as_dir=.
  13776. for ac_exec_ext in '' $ac_executable_extensions; do
  13777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13778. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13780. break 2
  13781. fi
  13782. done
  13783. done
  13784. IFS=$as_save_IFS
  13785. ;;
  13786. esac
  13787. fi
  13788. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13789. if test -n "$ac_pt_PKG_CONFIG"; then
  13790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13791. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13792. else
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13794. $as_echo "no" >&6; }
  13795. fi
  13796. if test "x$ac_pt_PKG_CONFIG" = x; then
  13797. PKG_CONFIG=""
  13798. else
  13799. case $cross_compiling:$ac_tool_warned in
  13800. yes:)
  13801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13803. ac_tool_warned=yes ;;
  13804. esac
  13805. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13806. fi
  13807. else
  13808. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13809. fi
  13810. fi
  13811. if test -n "$PKG_CONFIG"; then
  13812. _pkg_min_version=0.9.0
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13814. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13815. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13817. $as_echo "yes" >&6; }
  13818. else
  13819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13820. $as_echo "no" >&6; }
  13821. PKG_CONFIG=""
  13822. fi
  13823. fi
  13824. case "$host" in
  13825. *-*-mingw*)
  13826. # Except on msys, where make can't handle full pathnames (bug 1972)
  13827. ;;
  13828. *)
  13829. srcdir=`cd $srcdir && pwd`
  13830. ;;
  13831. esac
  13832. INCLUDE="-I$srcdir/include"
  13833. case "$host" in
  13834. *-*-nto-qnx*)
  13835. ;;
  13836. *)
  13837. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13838. ;;
  13839. esac
  13840. if test x$srcdir != x.; then
  13841. INCLUDE="-Iinclude $INCLUDE"
  13842. elif test -d .git; then
  13843. as_fn_error $? "
  13844. *** When building from a git clone you should configure and build in a
  13845. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13846. " "$LINENO" 5
  13847. fi
  13848. BASE_CFLAGS=""
  13849. BASE_LDFLAGS=""
  13850. case "$host" in
  13851. *-*-cygwin*)
  13852. # We build SDL on cygwin without the UNIX emulation layer
  13853. save_CFLAGS="$CFLAGS"
  13854. have_no_cygwin=no
  13855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13856. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13857. CFLAGS="$save_CFLAGS -mno-cygwin"
  13858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13859. /* end confdefs.h. */
  13860. int
  13861. main ()
  13862. {
  13863. ;
  13864. return 0;
  13865. }
  13866. _ACEOF
  13867. if ac_fn_c_try_compile "$LINENO"; then :
  13868. have_no_cygwin=yes
  13869. fi
  13870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13872. $as_echo "$have_no_cygwin" >&6; }
  13873. CFLAGS="$save_CFLAGS"
  13874. if test x$have_no_cygwin = xyes; then
  13875. BASE_CFLAGS="-mno-cygwin"
  13876. BASE_LDFLAGS="-mno-cygwin"
  13877. fi
  13878. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13879. ;;
  13880. esac
  13881. # Uncomment the following line if you want to force SDL and applications
  13882. # built with it to be compiled for a particular architecture.
  13883. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13884. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13885. # The default optimization for SDL is -O3 (Bug #31)
  13886. if test "x$orig_CFLAGS" = x; then
  13887. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13888. fi
  13889. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13890. BUILD_LDFLAGS="$LDFLAGS"
  13891. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13892. ## These are common directories to find software packages
  13893. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13894. # if test -d $path/include; then
  13895. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13896. # fi
  13897. # if test -d $path/lib; then
  13898. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13899. # fi
  13900. #done
  13901. SDL_CFLAGS="$BASE_CFLAGS"
  13902. SDL_LIBS="-lSDL2"
  13903. if test "x$BASE_LDFLAGS" != x; then
  13904. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13905. fi
  13906. if test "x$EXTRA_CFLAGS" != x; then
  13907. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13908. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13909. fi
  13910. if test "x$EXTRA_LDFLAGS" != x; then
  13911. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13912. fi
  13913. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13914. find_lib()
  13915. {
  13916. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13917. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13918. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13919. if test "$cross_compiling" = yes; then
  13920. host_lib_path=""
  13921. else
  13922. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13923. fi
  13924. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13925. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13926. if test x$lib != x; then
  13927. echo $lib
  13928. return
  13929. fi
  13930. done
  13931. # Try again, this time allowing more than one version digit after the .so
  13932. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13933. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13934. if test x$lib != x; then
  13935. echo $lib
  13936. return
  13937. fi
  13938. done
  13939. }
  13940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13941. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13942. if ${ac_cv_c_const+:} false; then :
  13943. $as_echo_n "(cached) " >&6
  13944. else
  13945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13946. /* end confdefs.h. */
  13947. int
  13948. main ()
  13949. {
  13950. #ifndef __cplusplus
  13951. /* Ultrix mips cc rejects this sort of thing. */
  13952. typedef int charset[2];
  13953. const charset cs = { 0, 0 };
  13954. /* SunOS 4.1.1 cc rejects this. */
  13955. char const *const *pcpcc;
  13956. char **ppc;
  13957. /* NEC SVR4.0.2 mips cc rejects this. */
  13958. struct point {int x, y;};
  13959. static struct point const zero = {0,0};
  13960. /* AIX XL C 1.02.0.0 rejects this.
  13961. It does not let you subtract one const X* pointer from another in
  13962. an arm of an if-expression whose if-part is not a constant
  13963. expression */
  13964. const char *g = "string";
  13965. pcpcc = &g + (g ? g-g : 0);
  13966. /* HPUX 7.0 cc rejects these. */
  13967. ++pcpcc;
  13968. ppc = (char**) pcpcc;
  13969. pcpcc = (char const *const *) ppc;
  13970. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13971. char tx;
  13972. char *t = &tx;
  13973. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13974. *t++ = 0;
  13975. if (s) return 0;
  13976. }
  13977. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13978. int x[] = {25, 17};
  13979. const int *foo = &x[0];
  13980. ++foo;
  13981. }
  13982. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13983. typedef const int *iptr;
  13984. iptr p = 0;
  13985. ++p;
  13986. }
  13987. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13988. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13989. struct s { int j; const int *ap[3]; } bx;
  13990. struct s *b = &bx; b->j = 5;
  13991. }
  13992. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13993. const int foo = 10;
  13994. if (!foo) return 0;
  13995. }
  13996. return !cs[0] && !zero.x;
  13997. #endif
  13998. ;
  13999. return 0;
  14000. }
  14001. _ACEOF
  14002. if ac_fn_c_try_compile "$LINENO"; then :
  14003. ac_cv_c_const=yes
  14004. else
  14005. ac_cv_c_const=no
  14006. fi
  14007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14008. fi
  14009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14010. $as_echo "$ac_cv_c_const" >&6; }
  14011. if test $ac_cv_c_const = no; then
  14012. $as_echo "#define const /**/" >>confdefs.h
  14013. fi
  14014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14015. $as_echo_n "checking for inline... " >&6; }
  14016. if ${ac_cv_c_inline+:} false; then :
  14017. $as_echo_n "(cached) " >&6
  14018. else
  14019. ac_cv_c_inline=no
  14020. for ac_kw in inline __inline__ __inline; do
  14021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14022. /* end confdefs.h. */
  14023. #ifndef __cplusplus
  14024. typedef int foo_t;
  14025. static $ac_kw foo_t static_foo () {return 0; }
  14026. $ac_kw foo_t foo () {return 0; }
  14027. #endif
  14028. _ACEOF
  14029. if ac_fn_c_try_compile "$LINENO"; then :
  14030. ac_cv_c_inline=$ac_kw
  14031. fi
  14032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14033. test "$ac_cv_c_inline" != no && break
  14034. done
  14035. fi
  14036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14037. $as_echo "$ac_cv_c_inline" >&6; }
  14038. case $ac_cv_c_inline in
  14039. inline | yes) ;;
  14040. *)
  14041. case $ac_cv_c_inline in
  14042. no) ac_val=;;
  14043. *) ac_val=$ac_cv_c_inline;;
  14044. esac
  14045. cat >>confdefs.h <<_ACEOF
  14046. #ifndef __cplusplus
  14047. #define inline $ac_val
  14048. #endif
  14049. _ACEOF
  14050. ;;
  14051. esac
  14052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14053. $as_echo_n "checking for working volatile... " >&6; }
  14054. if ${ac_cv_c_volatile+:} false; then :
  14055. $as_echo_n "(cached) " >&6
  14056. else
  14057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14058. /* end confdefs.h. */
  14059. int
  14060. main ()
  14061. {
  14062. volatile int x;
  14063. int * volatile y = (int *) 0;
  14064. return !x && !y;
  14065. ;
  14066. return 0;
  14067. }
  14068. _ACEOF
  14069. if ac_fn_c_try_compile "$LINENO"; then :
  14070. ac_cv_c_volatile=yes
  14071. else
  14072. ac_cv_c_volatile=no
  14073. fi
  14074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14075. fi
  14076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14077. $as_echo "$ac_cv_c_volatile" >&6; }
  14078. if test $ac_cv_c_volatile = no; then
  14079. $as_echo "#define volatile /**/" >>confdefs.h
  14080. fi
  14081. # Check whether --enable-assertions was given.
  14082. if test "${enable_assertions+set}" = set; then :
  14083. enableval=$enable_assertions;
  14084. else
  14085. enable_assertions=auto
  14086. fi
  14087. case "$enable_assertions" in
  14088. auto) # Use optimization settings to determine assertion level
  14089. ;;
  14090. disabled)
  14091. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14092. ;;
  14093. release)
  14094. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14095. ;;
  14096. enabled)
  14097. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14098. ;;
  14099. paranoid)
  14100. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14101. ;;
  14102. *)
  14103. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14104. ;;
  14105. esac
  14106. # Check whether --enable-dependency-tracking was given.
  14107. if test "${enable_dependency_tracking+set}" = set; then :
  14108. enableval=$enable_dependency_tracking;
  14109. else
  14110. enable_dependency_tracking=yes
  14111. fi
  14112. if test x$enable_dependency_tracking = xyes; then
  14113. have_gcc_mmd_mt=no
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14115. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14117. /* end confdefs.h. */
  14118. #if !defined(__GNUC__) || __GNUC__ < 3
  14119. #error Dependency tracking requires GCC 3.0 or newer
  14120. #endif
  14121. int
  14122. main ()
  14123. {
  14124. ;
  14125. return 0;
  14126. }
  14127. _ACEOF
  14128. if ac_fn_c_try_compile "$LINENO"; then :
  14129. have_gcc_mmd_mt=yes
  14130. fi
  14131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14133. $as_echo "$have_gcc_mmd_mt" >&6; }
  14134. if test x$have_gcc_mmd_mt = xyes; then
  14135. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14136. fi
  14137. fi
  14138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14139. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14140. have_no_undefined=no
  14141. case "$host" in
  14142. *-*-openbsd*)
  14143. ;;
  14144. *)
  14145. save_LDFLAGS="$LDFLAGS"
  14146. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14148. /* end confdefs.h. */
  14149. int
  14150. main ()
  14151. {
  14152. ;
  14153. return 0;
  14154. }
  14155. _ACEOF
  14156. if ac_fn_c_try_link "$LINENO"; then :
  14157. have_no_undefined=yes
  14158. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14159. fi
  14160. rm -f core conftest.err conftest.$ac_objext \
  14161. conftest$ac_exeext conftest.$ac_ext
  14162. LDFLAGS="$save_LDFLAGS"
  14163. ;;
  14164. esac
  14165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14166. $as_echo "$have_no_undefined" >&6; }
  14167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14168. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14169. have_dynamicbase=no
  14170. case "$host" in
  14171. *)
  14172. save_LDFLAGS="$LDFLAGS"
  14173. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14175. /* end confdefs.h. */
  14176. int
  14177. main ()
  14178. {
  14179. ;
  14180. return 0;
  14181. }
  14182. _ACEOF
  14183. if ac_fn_c_try_link "$LINENO"; then :
  14184. have_dynamicbase=yes
  14185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14186. fi
  14187. rm -f core conftest.err conftest.$ac_objext \
  14188. conftest$ac_exeext conftest.$ac_ext
  14189. LDFLAGS="$save_LDFLAGS"
  14190. ;;
  14191. esac
  14192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14193. $as_echo "$have_dynamicbase" >&6; }
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14195. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14196. have_nxcompat=no
  14197. case "$host" in
  14198. *)
  14199. save_LDFLAGS="$LDFLAGS"
  14200. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14202. /* end confdefs.h. */
  14203. int
  14204. main ()
  14205. {
  14206. ;
  14207. return 0;
  14208. }
  14209. _ACEOF
  14210. if ac_fn_c_try_link "$LINENO"; then :
  14211. have_nxcompat=yes
  14212. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14213. fi
  14214. rm -f core conftest.err conftest.$ac_objext \
  14215. conftest$ac_exeext conftest.$ac_ext
  14216. LDFLAGS="$save_LDFLAGS"
  14217. ;;
  14218. esac
  14219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14220. $as_echo "$have_nxcompat" >&6; }
  14221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14222. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14223. have_high_entropy_va=no
  14224. case "$host" in
  14225. *)
  14226. save_LDFLAGS="$LDFLAGS"
  14227. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14229. /* end confdefs.h. */
  14230. int
  14231. main ()
  14232. {
  14233. ;
  14234. return 0;
  14235. }
  14236. _ACEOF
  14237. if ac_fn_c_try_link "$LINENO"; then :
  14238. have_high_entropy_va=yes
  14239. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14240. fi
  14241. rm -f core conftest.err conftest.$ac_objext \
  14242. conftest$ac_exeext conftest.$ac_ext
  14243. LDFLAGS="$save_LDFLAGS"
  14244. ;;
  14245. esac
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14247. $as_echo "$have_high_entropy_va" >&6; }
  14248. # Check whether --enable-libc was given.
  14249. if test "${enable_libc+set}" = set; then :
  14250. enableval=$enable_libc;
  14251. else
  14252. enable_libc=yes
  14253. fi
  14254. if test x$enable_libc = xyes; then
  14255. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14257. $as_echo_n "checking for ANSI C header files... " >&6; }
  14258. if ${ac_cv_header_stdc+:} false; then :
  14259. $as_echo_n "(cached) " >&6
  14260. else
  14261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14262. /* end confdefs.h. */
  14263. #include <stdlib.h>
  14264. #include <stdarg.h>
  14265. #include <string.h>
  14266. #include <float.h>
  14267. int
  14268. main ()
  14269. {
  14270. ;
  14271. return 0;
  14272. }
  14273. _ACEOF
  14274. if ac_fn_c_try_compile "$LINENO"; then :
  14275. ac_cv_header_stdc=yes
  14276. else
  14277. ac_cv_header_stdc=no
  14278. fi
  14279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14280. if test $ac_cv_header_stdc = yes; then
  14281. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14283. /* end confdefs.h. */
  14284. #include <string.h>
  14285. _ACEOF
  14286. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14287. $EGREP "memchr" >/dev/null 2>&1; then :
  14288. else
  14289. ac_cv_header_stdc=no
  14290. fi
  14291. rm -f conftest*
  14292. fi
  14293. if test $ac_cv_header_stdc = yes; then
  14294. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14296. /* end confdefs.h. */
  14297. #include <stdlib.h>
  14298. _ACEOF
  14299. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14300. $EGREP "free" >/dev/null 2>&1; then :
  14301. else
  14302. ac_cv_header_stdc=no
  14303. fi
  14304. rm -f conftest*
  14305. fi
  14306. if test $ac_cv_header_stdc = yes; then
  14307. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14308. if test "$cross_compiling" = yes; then :
  14309. :
  14310. else
  14311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14312. /* end confdefs.h. */
  14313. #include <ctype.h>
  14314. #include <stdlib.h>
  14315. #if ((' ' & 0x0FF) == 0x020)
  14316. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14317. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14318. #else
  14319. # define ISLOWER(c) \
  14320. (('a' <= (c) && (c) <= 'i') \
  14321. || ('j' <= (c) && (c) <= 'r') \
  14322. || ('s' <= (c) && (c) <= 'z'))
  14323. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14324. #endif
  14325. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14326. int
  14327. main ()
  14328. {
  14329. int i;
  14330. for (i = 0; i < 256; i++)
  14331. if (XOR (islower (i), ISLOWER (i))
  14332. || toupper (i) != TOUPPER (i))
  14333. return 2;
  14334. return 0;
  14335. }
  14336. _ACEOF
  14337. if ac_fn_c_try_run "$LINENO"; then :
  14338. else
  14339. ac_cv_header_stdc=no
  14340. fi
  14341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14342. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14343. fi
  14344. fi
  14345. fi
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14347. $as_echo "$ac_cv_header_stdc" >&6; }
  14348. if test $ac_cv_header_stdc = yes; then
  14349. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14350. fi
  14351. 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
  14352. do :
  14353. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14354. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14355. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14356. cat >>confdefs.h <<_ACEOF
  14357. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14358. _ACEOF
  14359. fi
  14360. done
  14361. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14362. if test "x$ac_cv_type_size_t" = xyes; then :
  14363. else
  14364. cat >>confdefs.h <<_ACEOF
  14365. #define size_t unsigned int
  14366. _ACEOF
  14367. fi
  14368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14369. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14370. if ${ac_cv_define_M_PI+:} false; then :
  14371. $as_echo_n "(cached) " >&6
  14372. else
  14373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14374. /* end confdefs.h. */
  14375. #include <math.h>
  14376. #ifdef M_PI
  14377. YES_IS_DEFINED
  14378. #endif
  14379. _ACEOF
  14380. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14381. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14382. ac_cv_define_M_PI=yes
  14383. else
  14384. ac_cv_define_M_PI=no
  14385. fi
  14386. rm -f conftest*
  14387. fi
  14388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14389. $as_echo "$ac_cv_define_M_PI" >&6; }
  14390. if test "$ac_cv_define_M_PI" = "yes" ; then
  14391. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14392. fi
  14393. case "$host" in
  14394. *-*-cygwin* | *-*-mingw*)
  14395. ;;
  14396. *)
  14397. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14398. # for constant arguments. Useless!
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14400. $as_echo_n "checking for working alloca.h... " >&6; }
  14401. if ${ac_cv_working_alloca_h+:} false; then :
  14402. $as_echo_n "(cached) " >&6
  14403. else
  14404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14405. /* end confdefs.h. */
  14406. #include <alloca.h>
  14407. int
  14408. main ()
  14409. {
  14410. char *p = (char *) alloca (2 * sizeof (int));
  14411. if (p) return 0;
  14412. ;
  14413. return 0;
  14414. }
  14415. _ACEOF
  14416. if ac_fn_c_try_link "$LINENO"; then :
  14417. ac_cv_working_alloca_h=yes
  14418. else
  14419. ac_cv_working_alloca_h=no
  14420. fi
  14421. rm -f core conftest.err conftest.$ac_objext \
  14422. conftest$ac_exeext conftest.$ac_ext
  14423. fi
  14424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14425. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14426. if test $ac_cv_working_alloca_h = yes; then
  14427. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14428. fi
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14430. $as_echo_n "checking for alloca... " >&6; }
  14431. if ${ac_cv_func_alloca_works+:} false; then :
  14432. $as_echo_n "(cached) " >&6
  14433. else
  14434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14435. /* end confdefs.h. */
  14436. #ifdef __GNUC__
  14437. # define alloca __builtin_alloca
  14438. #else
  14439. # ifdef _MSC_VER
  14440. # include <malloc.h>
  14441. # define alloca _alloca
  14442. # else
  14443. # ifdef HAVE_ALLOCA_H
  14444. # include <alloca.h>
  14445. # else
  14446. # ifdef _AIX
  14447. #pragma alloca
  14448. # else
  14449. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14450. void *alloca (size_t);
  14451. # endif
  14452. # endif
  14453. # endif
  14454. # endif
  14455. #endif
  14456. int
  14457. main ()
  14458. {
  14459. char *p = (char *) alloca (1);
  14460. if (p) return 0;
  14461. ;
  14462. return 0;
  14463. }
  14464. _ACEOF
  14465. if ac_fn_c_try_link "$LINENO"; then :
  14466. ac_cv_func_alloca_works=yes
  14467. else
  14468. ac_cv_func_alloca_works=no
  14469. fi
  14470. rm -f core conftest.err conftest.$ac_objext \
  14471. conftest$ac_exeext conftest.$ac_ext
  14472. fi
  14473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14474. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14475. if test $ac_cv_func_alloca_works = yes; then
  14476. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14477. else
  14478. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14479. # that cause trouble. Some versions do not even contain alloca or
  14480. # contain a buggy version. If you still want to use their alloca,
  14481. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14482. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14483. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14485. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14486. if ${ac_cv_os_cray+:} false; then :
  14487. $as_echo_n "(cached) " >&6
  14488. else
  14489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14490. /* end confdefs.h. */
  14491. #if defined CRAY && ! defined CRAY2
  14492. webecray
  14493. #else
  14494. wenotbecray
  14495. #endif
  14496. _ACEOF
  14497. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14498. $EGREP "webecray" >/dev/null 2>&1; then :
  14499. ac_cv_os_cray=yes
  14500. else
  14501. ac_cv_os_cray=no
  14502. fi
  14503. rm -f conftest*
  14504. fi
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14506. $as_echo "$ac_cv_os_cray" >&6; }
  14507. if test $ac_cv_os_cray = yes; then
  14508. for ac_func in _getb67 GETB67 getb67; do
  14509. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14510. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14511. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14512. cat >>confdefs.h <<_ACEOF
  14513. #define CRAY_STACKSEG_END $ac_func
  14514. _ACEOF
  14515. break
  14516. fi
  14517. done
  14518. fi
  14519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14520. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14521. if ${ac_cv_c_stack_direction+:} false; then :
  14522. $as_echo_n "(cached) " >&6
  14523. else
  14524. if test "$cross_compiling" = yes; then :
  14525. ac_cv_c_stack_direction=0
  14526. else
  14527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14528. /* end confdefs.h. */
  14529. $ac_includes_default
  14530. int
  14531. find_stack_direction (int *addr, int depth)
  14532. {
  14533. int dir, dummy = 0;
  14534. if (! addr)
  14535. addr = &dummy;
  14536. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14537. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14538. return dir + dummy;
  14539. }
  14540. int
  14541. main (int argc, char **argv)
  14542. {
  14543. return find_stack_direction (0, argc + !argv + 20) < 0;
  14544. }
  14545. _ACEOF
  14546. if ac_fn_c_try_run "$LINENO"; then :
  14547. ac_cv_c_stack_direction=1
  14548. else
  14549. ac_cv_c_stack_direction=-1
  14550. fi
  14551. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14552. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14553. fi
  14554. fi
  14555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14556. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14557. cat >>confdefs.h <<_ACEOF
  14558. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14559. _ACEOF
  14560. fi
  14561. ;;
  14562. esac
  14563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14564. $as_echo_n "checking for working memcmp... " >&6; }
  14565. if ${ac_cv_func_memcmp_working+:} false; then :
  14566. $as_echo_n "(cached) " >&6
  14567. else
  14568. if test "$cross_compiling" = yes; then :
  14569. ac_cv_func_memcmp_working=no
  14570. else
  14571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14572. /* end confdefs.h. */
  14573. $ac_includes_default
  14574. int
  14575. main ()
  14576. {
  14577. /* Some versions of memcmp are not 8-bit clean. */
  14578. char c0 = '\100', c1 = '\200', c2 = '\201';
  14579. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14580. return 1;
  14581. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14582. or more and with at least one buffer not starting on a 4-byte boundary.
  14583. William Lewis provided this test program. */
  14584. {
  14585. char foo[21];
  14586. char bar[21];
  14587. int i;
  14588. for (i = 0; i < 4; i++)
  14589. {
  14590. char *a = foo + i;
  14591. char *b = bar + i;
  14592. strcpy (a, "--------01111111");
  14593. strcpy (b, "--------10000000");
  14594. if (memcmp (a, b, 16) >= 0)
  14595. return 1;
  14596. }
  14597. return 0;
  14598. }
  14599. ;
  14600. return 0;
  14601. }
  14602. _ACEOF
  14603. if ac_fn_c_try_run "$LINENO"; then :
  14604. ac_cv_func_memcmp_working=yes
  14605. else
  14606. ac_cv_func_memcmp_working=no
  14607. fi
  14608. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14609. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14610. fi
  14611. fi
  14612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14613. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14614. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14615. *" memcmp.$ac_objext "* ) ;;
  14616. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14617. ;;
  14618. esac
  14619. if test x$ac_cv_func_memcmp_working = xyes; then
  14620. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14621. fi
  14622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14623. $as_echo_n "checking for working strtod... " >&6; }
  14624. if ${ac_cv_func_strtod+:} false; then :
  14625. $as_echo_n "(cached) " >&6
  14626. else
  14627. if test "$cross_compiling" = yes; then :
  14628. ac_cv_func_strtod=no
  14629. else
  14630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14631. /* end confdefs.h. */
  14632. $ac_includes_default
  14633. #ifndef strtod
  14634. double strtod ();
  14635. #endif
  14636. int
  14637. main()
  14638. {
  14639. {
  14640. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14641. char *string = " +69";
  14642. char *term;
  14643. double value;
  14644. value = strtod (string, &term);
  14645. if (value != 69 || term != (string + 4))
  14646. return 1;
  14647. }
  14648. {
  14649. /* Under Solaris 2.4, strtod returns the wrong value for the
  14650. terminating character under some conditions. */
  14651. char *string = "NaN";
  14652. char *term;
  14653. strtod (string, &term);
  14654. if (term != string && *(term - 1) == 0)
  14655. return 1;
  14656. }
  14657. return 0;
  14658. }
  14659. _ACEOF
  14660. if ac_fn_c_try_run "$LINENO"; then :
  14661. ac_cv_func_strtod=yes
  14662. else
  14663. ac_cv_func_strtod=no
  14664. fi
  14665. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14666. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14667. fi
  14668. fi
  14669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14670. $as_echo "$ac_cv_func_strtod" >&6; }
  14671. if test $ac_cv_func_strtod = no; then
  14672. case " $LIBOBJS " in
  14673. *" strtod.$ac_objext "* ) ;;
  14674. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14675. ;;
  14676. esac
  14677. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14678. if test "x$ac_cv_func_pow" = xyes; then :
  14679. fi
  14680. if test $ac_cv_func_pow = no; then
  14681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14682. $as_echo_n "checking for pow in -lm... " >&6; }
  14683. if ${ac_cv_lib_m_pow+:} false; then :
  14684. $as_echo_n "(cached) " >&6
  14685. else
  14686. ac_check_lib_save_LIBS=$LIBS
  14687. LIBS="-lm $LIBS"
  14688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14689. /* end confdefs.h. */
  14690. /* Override any GCC internal prototype to avoid an error.
  14691. Use char because int might match the return type of a GCC
  14692. builtin and then its argument prototype would still apply. */
  14693. #ifdef __cplusplus
  14694. extern "C"
  14695. #endif
  14696. char pow ();
  14697. int
  14698. main ()
  14699. {
  14700. return pow ();
  14701. ;
  14702. return 0;
  14703. }
  14704. _ACEOF
  14705. if ac_fn_c_try_link "$LINENO"; then :
  14706. ac_cv_lib_m_pow=yes
  14707. else
  14708. ac_cv_lib_m_pow=no
  14709. fi
  14710. rm -f core conftest.err conftest.$ac_objext \
  14711. conftest$ac_exeext conftest.$ac_ext
  14712. LIBS=$ac_check_lib_save_LIBS
  14713. fi
  14714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14715. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14716. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14717. POW_LIB=-lm
  14718. else
  14719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14720. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14721. fi
  14722. fi
  14723. fi
  14724. if test x$ac_cv_func_strtod = xyes; then
  14725. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14726. fi
  14727. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14728. if test "x$ac_cv_func_mprotect" = xyes; then :
  14729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14730. /* end confdefs.h. */
  14731. #include <sys/types.h>
  14732. #include <sys/mman.h>
  14733. int
  14734. main ()
  14735. {
  14736. ;
  14737. return 0;
  14738. }
  14739. _ACEOF
  14740. if ac_fn_c_try_compile "$LINENO"; then :
  14741. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14742. fi
  14743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14744. fi
  14745. 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
  14746. do :
  14747. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14748. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14749. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14750. cat >>confdefs.h <<_ACEOF
  14751. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14752. _ACEOF
  14753. fi
  14754. done
  14755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14756. $as_echo_n "checking for pow in -lm... " >&6; }
  14757. if ${ac_cv_lib_m_pow+:} false; then :
  14758. $as_echo_n "(cached) " >&6
  14759. else
  14760. ac_check_lib_save_LIBS=$LIBS
  14761. LIBS="-lm $LIBS"
  14762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14763. /* end confdefs.h. */
  14764. /* Override any GCC internal prototype to avoid an error.
  14765. Use char because int might match the return type of a GCC
  14766. builtin and then its argument prototype would still apply. */
  14767. #ifdef __cplusplus
  14768. extern "C"
  14769. #endif
  14770. char pow ();
  14771. int
  14772. main ()
  14773. {
  14774. return pow ();
  14775. ;
  14776. return 0;
  14777. }
  14778. _ACEOF
  14779. if ac_fn_c_try_link "$LINENO"; then :
  14780. ac_cv_lib_m_pow=yes
  14781. else
  14782. ac_cv_lib_m_pow=no
  14783. fi
  14784. rm -f core conftest.err conftest.$ac_objext \
  14785. conftest$ac_exeext conftest.$ac_ext
  14786. LIBS=$ac_check_lib_save_LIBS
  14787. fi
  14788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14789. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14790. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14791. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14792. fi
  14793. 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
  14794. do :
  14795. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14796. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14797. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14798. cat >>confdefs.h <<_ACEOF
  14799. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14800. _ACEOF
  14801. fi
  14802. done
  14803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14804. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14805. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14806. $as_echo_n "(cached) " >&6
  14807. else
  14808. ac_check_lib_save_LIBS=$LIBS
  14809. LIBS="-liconv $LIBS"
  14810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14811. /* end confdefs.h. */
  14812. /* Override any GCC internal prototype to avoid an error.
  14813. Use char because int might match the return type of a GCC
  14814. builtin and then its argument prototype would still apply. */
  14815. #ifdef __cplusplus
  14816. extern "C"
  14817. #endif
  14818. char iconv_open ();
  14819. int
  14820. main ()
  14821. {
  14822. return iconv_open ();
  14823. ;
  14824. return 0;
  14825. }
  14826. _ACEOF
  14827. if ac_fn_c_try_link "$LINENO"; then :
  14828. ac_cv_lib_iconv_iconv_open=yes
  14829. else
  14830. ac_cv_lib_iconv_iconv_open=no
  14831. fi
  14832. rm -f core conftest.err conftest.$ac_objext \
  14833. conftest$ac_exeext conftest.$ac_ext
  14834. LIBS=$ac_check_lib_save_LIBS
  14835. fi
  14836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14837. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14838. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14839. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14840. fi
  14841. for ac_func in iconv
  14842. do :
  14843. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14844. if test "x$ac_cv_func_iconv" = xyes; then :
  14845. cat >>confdefs.h <<_ACEOF
  14846. #define HAVE_ICONV 1
  14847. _ACEOF
  14848. fi
  14849. done
  14850. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14851. "
  14852. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14853. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14854. fi
  14855. for ac_header in libunwind.h
  14856. do :
  14857. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14858. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14859. cat >>confdefs.h <<_ACEOF
  14860. #define HAVE_LIBUNWIND_H 1
  14861. _ACEOF
  14862. fi
  14863. done
  14864. fi
  14865. # Check whether --enable-gcc-atomics was given.
  14866. if test "${enable_gcc_atomics+set}" = set; then :
  14867. enableval=$enable_gcc_atomics;
  14868. else
  14869. enable_gcc_atomics=yes
  14870. fi
  14871. if test x$enable_gcc_atomics = xyes; then
  14872. have_gcc_atomics=no
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14874. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14876. /* end confdefs.h. */
  14877. int
  14878. main ()
  14879. {
  14880. int a;
  14881. void *x, *y, *z;
  14882. __sync_lock_test_and_set(&a, 4);
  14883. __sync_lock_test_and_set(&x, y);
  14884. __sync_fetch_and_add(&a, 1);
  14885. __sync_bool_compare_and_swap(&a, 5, 10);
  14886. __sync_bool_compare_and_swap(&x, y, z);
  14887. ;
  14888. return 0;
  14889. }
  14890. _ACEOF
  14891. if ac_fn_c_try_link "$LINENO"; then :
  14892. have_gcc_atomics=yes
  14893. fi
  14894. rm -f core conftest.err conftest.$ac_objext \
  14895. conftest$ac_exeext conftest.$ac_ext
  14896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14897. $as_echo "$have_gcc_atomics" >&6; }
  14898. if test x$have_gcc_atomics = xyes; then
  14899. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14900. else
  14901. # See if we have the minimum operation needed for GCC atomics
  14902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14903. /* end confdefs.h. */
  14904. int
  14905. main ()
  14906. {
  14907. int a;
  14908. __sync_lock_test_and_set(&a, 1);
  14909. __sync_lock_release(&a);
  14910. ;
  14911. return 0;
  14912. }
  14913. _ACEOF
  14914. if ac_fn_c_try_link "$LINENO"; then :
  14915. have_gcc_sync_lock_test_and_set=yes
  14916. fi
  14917. rm -f core conftest.err conftest.$ac_objext \
  14918. conftest$ac_exeext conftest.$ac_ext
  14919. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14920. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14921. fi
  14922. fi
  14923. fi
  14924. # Standard C sources
  14925. SOURCES="$SOURCES $srcdir/src/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14933. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14934. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14935. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14936. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14937. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14938. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14939. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14940. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14942. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14943. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14944. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14945. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14946. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14947. # Check whether --enable-atomic was given.
  14948. if test "${enable_atomic+set}" = set; then :
  14949. enableval=$enable_atomic;
  14950. else
  14951. enable_atomic=yes
  14952. fi
  14953. if test x$enable_atomic != xyes; then
  14954. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14955. else
  14956. SUMMARY_modules="${SUMMARY_modules} atomic"
  14957. fi
  14958. # Check whether --enable-audio was given.
  14959. if test "${enable_audio+set}" = set; then :
  14960. enableval=$enable_audio;
  14961. else
  14962. enable_audio=yes
  14963. fi
  14964. if test x$enable_audio != xyes; then
  14965. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14966. else
  14967. SUMMARY_modules="${SUMMARY_modules} audio"
  14968. fi
  14969. # Check whether --enable-video was given.
  14970. if test "${enable_video+set}" = set; then :
  14971. enableval=$enable_video;
  14972. else
  14973. enable_video=yes
  14974. fi
  14975. if test x$enable_video != xyes; then
  14976. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14977. else
  14978. SUMMARY_modules="${SUMMARY_modules} video"
  14979. fi
  14980. # Check whether --enable-render was given.
  14981. if test "${enable_render+set}" = set; then :
  14982. enableval=$enable_render;
  14983. else
  14984. enable_render=yes
  14985. fi
  14986. if test x$enable_render != xyes; then
  14987. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14988. else
  14989. SUMMARY_modules="${SUMMARY_modules} render"
  14990. fi
  14991. # Check whether --enable-events was given.
  14992. if test "${enable_events+set}" = set; then :
  14993. enableval=$enable_events;
  14994. else
  14995. enable_events=yes
  14996. fi
  14997. if test x$enable_events != xyes; then
  14998. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14999. else
  15000. SUMMARY_modules="${SUMMARY_modules} events"
  15001. fi
  15002. # Check whether --enable-joystick was given.
  15003. if test "${enable_joystick+set}" = set; then :
  15004. enableval=$enable_joystick;
  15005. else
  15006. enable_joystick=yes
  15007. fi
  15008. if test x$enable_joystick != xyes; then
  15009. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15010. else
  15011. SUMMARY_modules="${SUMMARY_modules} joystick"
  15012. fi
  15013. # Check whether --enable-haptic was given.
  15014. if test "${enable_haptic+set}" = set; then :
  15015. enableval=$enable_haptic;
  15016. else
  15017. enable_haptic=yes
  15018. fi
  15019. if test x$enable_haptic != xyes; then
  15020. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15021. else
  15022. SUMMARY_modules="${SUMMARY_modules} haptic"
  15023. fi
  15024. # Check whether --enable-sensor was given.
  15025. if test "${enable_sensor+set}" = set; then :
  15026. enableval=$enable_sensor;
  15027. else
  15028. enable_sensor=yes
  15029. fi
  15030. if test x$enable_sensor != xyes; then
  15031. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15032. else
  15033. SUMMARY_modules="${SUMMARY_modules} sensor"
  15034. fi
  15035. # Check whether --enable-power was given.
  15036. if test "${enable_power+set}" = set; then :
  15037. enableval=$enable_power;
  15038. else
  15039. enable_power=yes
  15040. fi
  15041. if test x$enable_power != xyes; then
  15042. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15043. else
  15044. SUMMARY_modules="${SUMMARY_modules} power"
  15045. fi
  15046. # Check whether --enable-filesystem was given.
  15047. if test "${enable_filesystem+set}" = set; then :
  15048. enableval=$enable_filesystem;
  15049. else
  15050. enable_filesystem=yes
  15051. fi
  15052. if test x$enable_filesystem != xyes; then
  15053. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15054. else
  15055. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15056. fi
  15057. # Check whether --enable-threads was given.
  15058. if test "${enable_threads+set}" = set; then :
  15059. enableval=$enable_threads;
  15060. else
  15061. enable_threads=yes
  15062. fi
  15063. if test x$enable_threads != xyes; then
  15064. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15065. else
  15066. SUMMARY_modules="${SUMMARY_modules} threads"
  15067. fi
  15068. # Check whether --enable-timers was given.
  15069. if test "${enable_timers+set}" = set; then :
  15070. enableval=$enable_timers;
  15071. else
  15072. enable_timers=yes
  15073. fi
  15074. if test x$enable_timers != xyes; then
  15075. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15076. else
  15077. SUMMARY_modules="${SUMMARY_modules} timers"
  15078. fi
  15079. # Check whether --enable-file was given.
  15080. if test "${enable_file+set}" = set; then :
  15081. enableval=$enable_file;
  15082. else
  15083. enable_file=yes
  15084. fi
  15085. if test x$enable_file != xyes; then
  15086. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15087. else
  15088. SUMMARY_modules="${SUMMARY_modules} file"
  15089. fi
  15090. # Check whether --enable-loadso was given.
  15091. if test "${enable_loadso+set}" = set; then :
  15092. enableval=$enable_loadso;
  15093. else
  15094. enable_loadso=yes
  15095. fi
  15096. if test x$enable_loadso != xyes; then
  15097. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15098. else
  15099. SUMMARY_modules="${SUMMARY_modules} loadso"
  15100. fi
  15101. # Check whether --enable-cpuinfo was given.
  15102. if test "${enable_cpuinfo+set}" = set; then :
  15103. enableval=$enable_cpuinfo;
  15104. else
  15105. enable_cpuinfo=yes
  15106. fi
  15107. if test x$enable_cpuinfo != xyes; then
  15108. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15109. else
  15110. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15111. fi
  15112. # Check whether --enable-assembly was given.
  15113. if test "${enable_assembly+set}" = set; then :
  15114. enableval=$enable_assembly;
  15115. else
  15116. enable_assembly=yes
  15117. fi
  15118. if test x$enable_assembly = xyes; then
  15119. SUMMARY_modules="${SUMMARY_modules} assembly"
  15120. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15121. # Make sure that we don't generate floating point code that would
  15122. # cause illegal instruction exceptions on older processors
  15123. case "$host" in
  15124. *-*-darwin*)
  15125. # Don't need to worry about Apple hardware, it's all SSE capable
  15126. default_ssemath=yes
  15127. ;;
  15128. *64-*-*)
  15129. # x86 64-bit architectures all have SSE instructions
  15130. default_ssemath=yes
  15131. ;;
  15132. *)
  15133. default_ssemath=no
  15134. ;;
  15135. esac
  15136. # Check whether --enable-ssemath was given.
  15137. if test "${enable_ssemath+set}" = set; then :
  15138. enableval=$enable_ssemath;
  15139. else
  15140. enable_ssemath=$default_ssemath
  15141. fi
  15142. if test x$enable_ssemath = xno; then
  15143. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15144. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15145. fi
  15146. fi
  15147. # Check whether --enable-mmx was given.
  15148. if test "${enable_mmx+set}" = set; then :
  15149. enableval=$enable_mmx;
  15150. else
  15151. enable_mmx=yes
  15152. fi
  15153. if test x$enable_mmx = xyes; then
  15154. save_CFLAGS="$CFLAGS"
  15155. have_gcc_mmx=no
  15156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15157. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15158. mmx_CFLAGS="-mmmx"
  15159. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15161. /* end confdefs.h. */
  15162. #ifdef __MINGW32__
  15163. #include <_mingw.h>
  15164. #ifdef __MINGW64_VERSION_MAJOR
  15165. #include <intrin.h>
  15166. #else
  15167. #include <mmintrin.h>
  15168. #endif
  15169. #else
  15170. #include <mmintrin.h>
  15171. #endif
  15172. #ifndef __MMX__
  15173. #error Assembler CPP flag not enabled
  15174. #endif
  15175. int
  15176. main ()
  15177. {
  15178. ;
  15179. return 0;
  15180. }
  15181. _ACEOF
  15182. if ac_fn_c_try_compile "$LINENO"; then :
  15183. have_gcc_mmx=yes
  15184. fi
  15185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15187. $as_echo "$have_gcc_mmx" >&6; }
  15188. CFLAGS="$save_CFLAGS"
  15189. if test x$have_gcc_mmx = xyes; then
  15190. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15191. SUMMARY_math="${SUMMARY_math} mmx"
  15192. fi
  15193. fi
  15194. # Check whether --enable-3dnow was given.
  15195. if test "${enable_3dnow+set}" = set; then :
  15196. enableval=$enable_3dnow;
  15197. else
  15198. enable_3dnow=yes
  15199. fi
  15200. if test x$enable_3dnow = xyes; then
  15201. save_CFLAGS="$CFLAGS"
  15202. have_gcc_3dnow=no
  15203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15204. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15205. amd3dnow_CFLAGS="-m3dnow"
  15206. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15208. /* end confdefs.h. */
  15209. #include <mm3dnow.h>
  15210. #ifndef __3dNOW__
  15211. #error Assembler CPP flag not enabled
  15212. #endif
  15213. int
  15214. main ()
  15215. {
  15216. void *p = 0;
  15217. _m_prefetch(p);
  15218. ;
  15219. return 0;
  15220. }
  15221. _ACEOF
  15222. if ac_fn_c_try_link "$LINENO"; then :
  15223. have_gcc_3dnow=yes
  15224. fi
  15225. rm -f core conftest.err conftest.$ac_objext \
  15226. conftest$ac_exeext conftest.$ac_ext
  15227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15228. $as_echo "$have_gcc_3dnow" >&6; }
  15229. CFLAGS="$save_CFLAGS"
  15230. if test x$have_gcc_3dnow = xyes; then
  15231. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15232. SUMMARY_math="${SUMMARY_math} 3dnow"
  15233. fi
  15234. fi
  15235. # Check whether --enable-sse was given.
  15236. if test "${enable_sse+set}" = set; then :
  15237. enableval=$enable_sse;
  15238. else
  15239. enable_sse=yes
  15240. fi
  15241. if test x$enable_sse = xyes; then
  15242. save_CFLAGS="$CFLAGS"
  15243. have_gcc_sse=no
  15244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15245. $as_echo_n "checking for GCC -msse option... " >&6; }
  15246. sse_CFLAGS="-msse"
  15247. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15249. /* end confdefs.h. */
  15250. #ifdef __MINGW32__
  15251. #include <_mingw.h>
  15252. #ifdef __MINGW64_VERSION_MAJOR
  15253. #include <intrin.h>
  15254. #else
  15255. #include <xmmintrin.h>
  15256. #endif
  15257. #else
  15258. #include <xmmintrin.h>
  15259. #endif
  15260. #ifndef __SSE__
  15261. #error Assembler CPP flag not enabled
  15262. #endif
  15263. int
  15264. main ()
  15265. {
  15266. ;
  15267. return 0;
  15268. }
  15269. _ACEOF
  15270. if ac_fn_c_try_compile "$LINENO"; then :
  15271. have_gcc_sse=yes
  15272. fi
  15273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15275. $as_echo "$have_gcc_sse" >&6; }
  15276. CFLAGS="$save_CFLAGS"
  15277. if test x$have_gcc_sse = xyes; then
  15278. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15279. SUMMARY_math="${SUMMARY_math} sse"
  15280. fi
  15281. fi
  15282. # Check whether --enable-sse2 was given.
  15283. if test "${enable_sse2+set}" = set; then :
  15284. enableval=$enable_sse2;
  15285. else
  15286. enable_sse2=$default_ssemath
  15287. fi
  15288. if test x$enable_sse2 = xyes; then
  15289. save_CFLAGS="$CFLAGS"
  15290. have_gcc_sse2=no
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15292. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15293. sse2_CFLAGS="-msse2"
  15294. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15296. /* end confdefs.h. */
  15297. #ifdef __MINGW32__
  15298. #include <_mingw.h>
  15299. #ifdef __MINGW64_VERSION_MAJOR
  15300. #include <intrin.h>
  15301. #else
  15302. #include <emmintrin.h>
  15303. #endif
  15304. #else
  15305. #include <emmintrin.h>
  15306. #endif
  15307. #ifndef __SSE2__
  15308. #error Assembler CPP flag not enabled
  15309. #endif
  15310. int
  15311. main ()
  15312. {
  15313. ;
  15314. return 0;
  15315. }
  15316. _ACEOF
  15317. if ac_fn_c_try_compile "$LINENO"; then :
  15318. have_gcc_sse2=yes
  15319. fi
  15320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15322. $as_echo "$have_gcc_sse2" >&6; }
  15323. CFLAGS="$save_CFLAGS"
  15324. if test x$have_gcc_sse2 = xyes; then
  15325. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15326. SUMMARY_math="${SUMMARY_math} sse2"
  15327. fi
  15328. fi
  15329. # Check whether --enable-sse3 was given.
  15330. if test "${enable_sse3+set}" = set; then :
  15331. enableval=$enable_sse3;
  15332. else
  15333. enable_sse3=$default_ssemath
  15334. fi
  15335. if test x$enable_sse3 = xyes; then
  15336. save_CFLAGS="$CFLAGS"
  15337. have_gcc_sse3=no
  15338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15339. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15340. sse3_CFLAGS="-msse3"
  15341. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15343. /* end confdefs.h. */
  15344. #ifdef __MINGW32__
  15345. #include <_mingw.h>
  15346. #ifdef __MINGW64_VERSION_MAJOR
  15347. #include <intrin.h>
  15348. #else
  15349. #include <pmmintrin.h>
  15350. #endif
  15351. #else
  15352. #include <pmmintrin.h>
  15353. #endif
  15354. #ifndef __SSE2__
  15355. #error Assembler CPP flag not enabled
  15356. #endif
  15357. int
  15358. main ()
  15359. {
  15360. ;
  15361. return 0;
  15362. }
  15363. _ACEOF
  15364. if ac_fn_c_try_compile "$LINENO"; then :
  15365. have_gcc_sse3=yes
  15366. fi
  15367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15369. $as_echo "$have_gcc_sse3" >&6; }
  15370. CFLAGS="$save_CFLAGS"
  15371. if test x$have_gcc_sse3 = xyes; then
  15372. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15373. SUMMARY_math="${SUMMARY_math} sse3"
  15374. fi
  15375. fi
  15376. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15377. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15378. have_immintrin_h_hdr=yes
  15379. else
  15380. have_immintrin_h_hdr=no
  15381. fi
  15382. if test x$have_immintrin_h_hdr = xyes; then
  15383. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15384. fi
  15385. # Check whether --enable-altivec was given.
  15386. if test "${enable_altivec+set}" = set; then :
  15387. enableval=$enable_altivec;
  15388. else
  15389. enable_altivec=yes
  15390. fi
  15391. if test x$enable_altivec = xyes; then
  15392. save_CFLAGS="$CFLAGS"
  15393. have_gcc_altivec=no
  15394. have_altivec_h_hdr=no
  15395. altivec_CFLAGS="-maltivec"
  15396. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15398. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15400. /* end confdefs.h. */
  15401. #include <altivec.h>
  15402. vector unsigned int vzero() {
  15403. return vec_splat_u32(0);
  15404. }
  15405. int
  15406. main ()
  15407. {
  15408. ;
  15409. return 0;
  15410. }
  15411. _ACEOF
  15412. if ac_fn_c_try_compile "$LINENO"; then :
  15413. have_gcc_altivec=yes
  15414. have_altivec_h_hdr=yes
  15415. fi
  15416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15418. $as_echo "$have_gcc_altivec" >&6; }
  15419. if test x$have_gcc_altivec = xno; then
  15420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15421. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15423. /* end confdefs.h. */
  15424. vector unsigned int vzero() {
  15425. return vec_splat_u32(0);
  15426. }
  15427. int
  15428. main ()
  15429. {
  15430. ;
  15431. return 0;
  15432. }
  15433. _ACEOF
  15434. if ac_fn_c_try_compile "$LINENO"; then :
  15435. have_gcc_altivec=yes
  15436. fi
  15437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15439. $as_echo "$have_gcc_altivec" >&6; }
  15440. fi
  15441. if test x$have_gcc_altivec = xno; then
  15442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15443. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15444. altivec_CFLAGS="-faltivec"
  15445. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15447. /* end confdefs.h. */
  15448. #include <altivec.h>
  15449. vector unsigned int vzero() {
  15450. return vec_splat_u32(0);
  15451. }
  15452. int
  15453. main ()
  15454. {
  15455. ;
  15456. return 0;
  15457. }
  15458. _ACEOF
  15459. if ac_fn_c_try_compile "$LINENO"; then :
  15460. have_gcc_altivec=yes
  15461. have_altivec_h_hdr=yes
  15462. fi
  15463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15465. $as_echo "$have_gcc_altivec" >&6; }
  15466. fi
  15467. if test x$have_gcc_altivec = xno; then
  15468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15469. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15471. /* end confdefs.h. */
  15472. vector unsigned int vzero() {
  15473. return vec_splat_u32(0);
  15474. }
  15475. int
  15476. main ()
  15477. {
  15478. ;
  15479. return 0;
  15480. }
  15481. _ACEOF
  15482. if ac_fn_c_try_compile "$LINENO"; then :
  15483. have_gcc_altivec=yes
  15484. fi
  15485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15487. $as_echo "$have_gcc_altivec" >&6; }
  15488. fi
  15489. CFLAGS="$save_CFLAGS"
  15490. if test x$have_gcc_altivec = xyes; then
  15491. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15492. if test x$have_altivec_h_hdr = xyes; then
  15493. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15494. fi
  15495. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15496. SUMMARY_math="${SUMMARY_math} altivec"
  15497. fi
  15498. fi
  15499. fi
  15500. CheckOSS()
  15501. {
  15502. # Check whether --enable-oss was given.
  15503. if test "${enable_oss+set}" = set; then :
  15504. enableval=$enable_oss;
  15505. else
  15506. enable_oss=maybe
  15507. fi
  15508. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15509. # use sndio instead. So on there, we default to disabled. You can force
  15510. # it on if you really want, though.
  15511. if test x$enable_oss = xmaybe; then
  15512. enable_oss=yes
  15513. case "$host" in
  15514. *-*-openbsd*)
  15515. enable_oss=no;;
  15516. esac
  15517. fi
  15518. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15520. $as_echo_n "checking for OSS audio support... " >&6; }
  15521. have_oss=no
  15522. if test x$have_oss != xyes; then
  15523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15524. /* end confdefs.h. */
  15525. #include <sys/soundcard.h>
  15526. int
  15527. main ()
  15528. {
  15529. int arg = SNDCTL_DSP_SETFRAGMENT;
  15530. ;
  15531. return 0;
  15532. }
  15533. _ACEOF
  15534. if ac_fn_c_try_compile "$LINENO"; then :
  15535. have_oss=yes
  15536. fi
  15537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15538. fi
  15539. if test x$have_oss != xyes; then
  15540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15541. /* end confdefs.h. */
  15542. #include <soundcard.h>
  15543. int
  15544. main ()
  15545. {
  15546. int arg = SNDCTL_DSP_SETFRAGMENT;
  15547. ;
  15548. return 0;
  15549. }
  15550. _ACEOF
  15551. if ac_fn_c_try_compile "$LINENO"; then :
  15552. have_oss=yes
  15553. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15554. fi
  15555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15556. fi
  15557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15558. $as_echo "$have_oss" >&6; }
  15559. if test x$have_oss = xyes; then
  15560. SUMMARY_audio="${SUMMARY_audio} oss"
  15561. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15562. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15563. have_audio=yes
  15564. # We may need to link with ossaudio emulation library
  15565. case "$host" in
  15566. *-*-openbsd*|*-*-netbsd*)
  15567. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15568. esac
  15569. fi
  15570. fi
  15571. }
  15572. CheckALSA()
  15573. {
  15574. # Check whether --enable-alsa was given.
  15575. if test "${enable_alsa+set}" = set; then :
  15576. enableval=$enable_alsa;
  15577. else
  15578. enable_alsa=yes
  15579. fi
  15580. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15581. alsa_save_CFLAGS="$CFLAGS"
  15582. alsa_save_LDFLAGS="$LDFLAGS"
  15583. alsa_save_LIBS="$LIBS"
  15584. alsa_found=yes
  15585. # Check whether --with-alsa-prefix was given.
  15586. if test "${with_alsa_prefix+set}" = set; then :
  15587. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15588. else
  15589. alsa_prefix=""
  15590. fi
  15591. # Check whether --with-alsa-inc-prefix was given.
  15592. if test "${with_alsa_inc_prefix+set}" = set; then :
  15593. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15594. else
  15595. alsa_inc_prefix=""
  15596. fi
  15597. # Check whether --enable-alsatest was given.
  15598. if test "${enable_alsatest+set}" = set; then :
  15599. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15600. else
  15601. enable_alsatest=yes
  15602. fi
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15604. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15605. if test "$alsa_inc_prefix" != "" ; then
  15606. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15607. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15608. fi
  15609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15610. $as_echo "$ALSA_CFLAGS" >&6; }
  15611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15612. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15613. if test "$alsa_prefix" != "" ; then
  15614. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15615. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15616. fi
  15617. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15618. LIBS=`echo $LIBS | sed 's/-lm//'`
  15619. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15620. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15621. LIBS=`echo $LIBS | sed 's/ //'`
  15622. LIBS="$ALSA_LIBS $LIBS"
  15623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15624. $as_echo "$ALSA_LIBS" >&6; }
  15625. min_alsa_version=1.0.11
  15626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15627. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15628. no_alsa=""
  15629. alsa_min_major_version=`echo $min_alsa_version | \
  15630. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15631. alsa_min_minor_version=`echo $min_alsa_version | \
  15632. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15633. alsa_min_micro_version=`echo $min_alsa_version | \
  15634. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15635. ac_ext=c
  15636. ac_cpp='$CPP $CPPFLAGS'
  15637. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15638. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15639. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15641. /* end confdefs.h. */
  15642. #include <alsa/asoundlib.h>
  15643. int
  15644. main ()
  15645. {
  15646. /* ensure backward compatibility */
  15647. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15648. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15649. #endif
  15650. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15651. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15652. #endif
  15653. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15654. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15655. #endif
  15656. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15657. exit(0);
  15658. # else
  15659. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15660. # error not present
  15661. # endif
  15662. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15663. exit(0);
  15664. # else
  15665. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15666. # error not present
  15667. # endif
  15668. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15669. # error not present
  15670. # endif
  15671. # endif
  15672. # endif
  15673. exit(0);
  15674. ;
  15675. return 0;
  15676. }
  15677. _ACEOF
  15678. if ac_fn_c_try_compile "$LINENO"; then :
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15680. $as_echo "found." >&6; }
  15681. else
  15682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15683. $as_echo "not present." >&6; }
  15684. alsa_found=no
  15685. fi
  15686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15687. ac_ext=c
  15688. ac_cpp='$CPP $CPPFLAGS'
  15689. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15690. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15691. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15692. if test "x$enable_alsatest" = "xyes"; then
  15693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15694. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15695. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15696. $as_echo_n "(cached) " >&6
  15697. else
  15698. ac_check_lib_save_LIBS=$LIBS
  15699. LIBS="-lasound $LIBS"
  15700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15701. /* end confdefs.h. */
  15702. /* Override any GCC internal prototype to avoid an error.
  15703. Use char because int might match the return type of a GCC
  15704. builtin and then its argument prototype would still apply. */
  15705. #ifdef __cplusplus
  15706. extern "C"
  15707. #endif
  15708. char snd_ctl_open ();
  15709. int
  15710. main ()
  15711. {
  15712. return snd_ctl_open ();
  15713. ;
  15714. return 0;
  15715. }
  15716. _ACEOF
  15717. if ac_fn_c_try_link "$LINENO"; then :
  15718. ac_cv_lib_asound_snd_ctl_open=yes
  15719. else
  15720. ac_cv_lib_asound_snd_ctl_open=no
  15721. fi
  15722. rm -f core conftest.err conftest.$ac_objext \
  15723. conftest$ac_exeext conftest.$ac_ext
  15724. LIBS=$ac_check_lib_save_LIBS
  15725. fi
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15727. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15728. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15729. cat >>confdefs.h <<_ACEOF
  15730. #define HAVE_LIBASOUND 1
  15731. _ACEOF
  15732. LIBS="-lasound $LIBS"
  15733. else
  15734. alsa_found=no
  15735. fi
  15736. fi
  15737. if test "x$alsa_found" = "xyes" ; then
  15738. have_alsa=yes
  15739. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15740. LIBS=`echo $LIBS | sed 's/ //'`
  15741. LIBS="-lasound $LIBS"
  15742. fi
  15743. if test "x$alsa_found" = "xno" ; then
  15744. have_alsa=no
  15745. CFLAGS="$alsa_save_CFLAGS"
  15746. LDFLAGS="$alsa_save_LDFLAGS"
  15747. LIBS="$alsa_save_LIBS"
  15748. ALSA_CFLAGS=""
  15749. ALSA_LIBS=""
  15750. fi
  15751. # Restore all flags from before the ALSA detection runs
  15752. CFLAGS="$alsa_save_CFLAGS"
  15753. LDFLAGS="$alsa_save_LDFLAGS"
  15754. LIBS="$alsa_save_LIBS"
  15755. if test x$have_alsa = xyes; then
  15756. # Check whether --enable-alsa-shared was given.
  15757. if test "${enable_alsa_shared+set}" = set; then :
  15758. enableval=$enable_alsa_shared;
  15759. else
  15760. enable_alsa_shared=yes
  15761. fi
  15762. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15763. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15764. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15765. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15766. if test x$have_loadso != xyes && \
  15767. test x$enable_alsa_shared = xyes; then
  15768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15769. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15770. fi
  15771. if test x$have_loadso = xyes && \
  15772. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15773. echo "-- dynamic libasound -> $alsa_lib"
  15774. cat >>confdefs.h <<_ACEOF
  15775. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15776. _ACEOF
  15777. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15778. else
  15779. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15780. SUMMARY_audio="${SUMMARY_audio} alsa"
  15781. fi
  15782. have_audio=yes
  15783. fi
  15784. fi
  15785. }
  15786. CheckJACK()
  15787. {
  15788. # Check whether --enable-jack was given.
  15789. if test "${enable_jack+set}" = set; then :
  15790. enableval=$enable_jack;
  15791. else
  15792. enable_jack=yes
  15793. fi
  15794. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15795. pkg_failed=no
  15796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15797. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15798. if test -n "$JACK_CFLAGS"; then
  15799. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15800. elif test -n "$PKG_CONFIG"; then
  15801. if test -n "$PKG_CONFIG" && \
  15802. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15803. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15804. ac_status=$?
  15805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15806. test $ac_status = 0; }; then
  15807. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15808. test "x$?" != "x0" && pkg_failed=yes
  15809. else
  15810. pkg_failed=yes
  15811. fi
  15812. else
  15813. pkg_failed=untried
  15814. fi
  15815. if test -n "$JACK_LIBS"; then
  15816. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15817. elif test -n "$PKG_CONFIG"; then
  15818. if test -n "$PKG_CONFIG" && \
  15819. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15820. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15821. ac_status=$?
  15822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15823. test $ac_status = 0; }; then
  15824. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15825. test "x$?" != "x0" && pkg_failed=yes
  15826. else
  15827. pkg_failed=yes
  15828. fi
  15829. else
  15830. pkg_failed=untried
  15831. fi
  15832. if test $pkg_failed = yes; then
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15834. $as_echo "no" >&6; }
  15835. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15836. _pkg_short_errors_supported=yes
  15837. else
  15838. _pkg_short_errors_supported=no
  15839. fi
  15840. if test $_pkg_short_errors_supported = yes; then
  15841. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15842. else
  15843. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15844. fi
  15845. # Put the nasty error message in config.log where it belongs
  15846. echo "$JACK_PKG_ERRORS" >&5
  15847. audio_jack=no
  15848. elif test $pkg_failed = untried; then
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15850. $as_echo "no" >&6; }
  15851. audio_jack=no
  15852. else
  15853. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15854. JACK_LIBS=$pkg_cv_JACK_LIBS
  15855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15856. $as_echo "yes" >&6; }
  15857. audio_jack=yes
  15858. fi
  15859. if test x$audio_jack = xyes; then
  15860. # Check whether --enable-jack-shared was given.
  15861. if test "${enable_jack_shared+set}" = set; then :
  15862. enableval=$enable_jack_shared;
  15863. else
  15864. enable_jack_shared=yes
  15865. fi
  15866. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15867. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15868. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15869. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15870. if test x$have_loadso != xyes && \
  15871. test x$enable_jack_shared = xyes; then
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15873. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15874. fi
  15875. if test x$have_loadso = xyes && \
  15876. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15877. echo "-- dynamic libjack -> $jack_lib"
  15878. cat >>confdefs.h <<_ACEOF
  15879. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15880. _ACEOF
  15881. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15882. case "$host" in
  15883. # On Solaris, jack must be linked deferred explicitly
  15884. # to prevent undefined symbol failures.
  15885. *-*-solaris*)
  15886. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15888. esac
  15889. else
  15890. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15891. SUMMARY_audio="${SUMMARY_audio} jack"
  15892. fi
  15893. have_audio=yes
  15894. fi
  15895. fi
  15896. }
  15897. CheckESD()
  15898. {
  15899. # Check whether --enable-esd was given.
  15900. if test "${enable_esd+set}" = set; then :
  15901. enableval=$enable_esd;
  15902. else
  15903. enable_esd=yes
  15904. fi
  15905. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15906. # Check whether --with-esd-prefix was given.
  15907. if test "${with_esd_prefix+set}" = set; then :
  15908. withval=$with_esd_prefix; esd_prefix="$withval"
  15909. else
  15910. esd_prefix=""
  15911. fi
  15912. # Check whether --with-esd-exec-prefix was given.
  15913. if test "${with_esd_exec_prefix+set}" = set; then :
  15914. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15915. else
  15916. esd_exec_prefix=""
  15917. fi
  15918. # Check whether --enable-esdtest was given.
  15919. if test "${enable_esdtest+set}" = set; then :
  15920. enableval=$enable_esdtest;
  15921. else
  15922. enable_esdtest=yes
  15923. fi
  15924. if test x$esd_exec_prefix != x ; then
  15925. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15926. if test x${ESD_CONFIG+set} != xset ; then
  15927. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15928. fi
  15929. fi
  15930. if test x$esd_prefix != x ; then
  15931. esd_args="$esd_args --prefix=$esd_prefix"
  15932. if test x${ESD_CONFIG+set} != xset ; then
  15933. ESD_CONFIG=$esd_prefix/bin/esd-config
  15934. fi
  15935. fi
  15936. # Extract the first word of "esd-config", so it can be a program name with args.
  15937. set dummy esd-config; ac_word=$2
  15938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15939. $as_echo_n "checking for $ac_word... " >&6; }
  15940. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15941. $as_echo_n "(cached) " >&6
  15942. else
  15943. case $ESD_CONFIG in
  15944. [\\/]* | ?:[\\/]*)
  15945. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15946. ;;
  15947. *)
  15948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15949. for as_dir in $PATH
  15950. do
  15951. IFS=$as_save_IFS
  15952. test -z "$as_dir" && as_dir=.
  15953. for ac_exec_ext in '' $ac_executable_extensions; do
  15954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15955. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15957. break 2
  15958. fi
  15959. done
  15960. done
  15961. IFS=$as_save_IFS
  15962. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15963. ;;
  15964. esac
  15965. fi
  15966. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15967. if test -n "$ESD_CONFIG"; then
  15968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15969. $as_echo "$ESD_CONFIG" >&6; }
  15970. else
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15972. $as_echo "no" >&6; }
  15973. fi
  15974. min_esd_version=0.2.8
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15976. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15977. no_esd=""
  15978. if test "$ESD_CONFIG" = "no" ; then
  15979. no_esd=yes
  15980. else
  15981. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15982. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15983. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15984. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15985. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15986. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15987. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15988. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15989. if test "x$enable_esdtest" = "xyes" ; then
  15990. ac_ext=c
  15991. ac_cpp='$CPP $CPPFLAGS'
  15992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15995. ac_save_CFLAGS="$CFLAGS"
  15996. ac_save_LIBS="$LIBS"
  15997. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15998. LIBS="$LIBS $ESD_LIBS"
  15999. rm -f conf.esdtest
  16000. if test "$cross_compiling" = yes; then :
  16001. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16002. else
  16003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16004. /* end confdefs.h. */
  16005. #include <stdio.h>
  16006. #include <stdlib.h>
  16007. #include <esd.h>
  16008. int main (void)
  16009. {
  16010. int major, minor, micro;
  16011. FILE *fp = fopen("conf.esdtest", "w");
  16012. if (fp) fclose(fp);
  16013. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16014. printf("%s, bad version string\n", "$min_esd_version");
  16015. exit(1);
  16016. }
  16017. if (($esd_major_version > major) ||
  16018. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16019. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16020. {
  16021. return 0;
  16022. }
  16023. else
  16024. {
  16025. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16026. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16027. printf("*** best to upgrade to the required version.\n");
  16028. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16029. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16030. printf("*** config.cache before re-running configure\n");
  16031. return 1;
  16032. }
  16033. }
  16034. _ACEOF
  16035. if ac_fn_c_try_run "$LINENO"; then :
  16036. else
  16037. no_esd=yes
  16038. fi
  16039. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16040. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16041. fi
  16042. CFLAGS="$ac_save_CFLAGS"
  16043. LIBS="$ac_save_LIBS"
  16044. ac_ext=c
  16045. ac_cpp='$CPP $CPPFLAGS'
  16046. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16047. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16048. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16049. fi
  16050. fi
  16051. if test "x$no_esd" = x ; then
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16053. $as_echo "yes" >&6; }
  16054. have_esd=yes
  16055. else
  16056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16057. $as_echo "no" >&6; }
  16058. if test "$ESD_CONFIG" = "no" ; then
  16059. echo "*** The esd-config script installed by ESD could not be found"
  16060. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16061. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16062. echo "*** full path to esd-config."
  16063. else
  16064. if test -f conf.esdtest ; then
  16065. :
  16066. else
  16067. echo "*** Could not run ESD test program, checking why..."
  16068. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16069. LIBS="$LIBS $ESD_LIBS"
  16070. ac_ext=c
  16071. ac_cpp='$CPP $CPPFLAGS'
  16072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16076. /* end confdefs.h. */
  16077. #include <stdio.h>
  16078. #include <esd.h>
  16079. int
  16080. main ()
  16081. {
  16082. return 0;
  16083. ;
  16084. return 0;
  16085. }
  16086. _ACEOF
  16087. if ac_fn_c_try_link "$LINENO"; then :
  16088. echo "*** The test program compiled, but did not run. This usually means"
  16089. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16090. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16091. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16092. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16093. echo "*** is required on your system"
  16094. echo "***"
  16095. echo "*** If you have an old version installed, it is best to remove it, although"
  16096. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16097. else
  16098. echo "*** The test program failed to compile or link. See the file config.log for the"
  16099. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16100. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16101. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16102. fi
  16103. rm -f core conftest.err conftest.$ac_objext \
  16104. conftest$ac_exeext conftest.$ac_ext
  16105. CFLAGS="$ac_save_CFLAGS"
  16106. LIBS="$ac_save_LIBS"
  16107. ac_ext=c
  16108. ac_cpp='$CPP $CPPFLAGS'
  16109. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16110. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16111. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16112. fi
  16113. fi
  16114. ESD_CFLAGS=""
  16115. ESD_LIBS=""
  16116. have_esd=no
  16117. fi
  16118. rm -f conf.esdtest
  16119. if test x$have_esd = xyes; then
  16120. # Check whether --enable-esd-shared was given.
  16121. if test "${enable_esd_shared+set}" = set; then :
  16122. enableval=$enable_esd_shared;
  16123. else
  16124. enable_esd_shared=yes
  16125. fi
  16126. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16127. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16128. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16129. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16130. if test x$have_loadso != xyes && \
  16131. test x$enable_esd_shared = xyes; then
  16132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16133. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16134. fi
  16135. if test x$have_loadso = xyes && \
  16136. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16137. echo "-- dynamic libesd -> $esd_lib"
  16138. cat >>confdefs.h <<_ACEOF
  16139. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16140. _ACEOF
  16141. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16142. else
  16143. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16144. SUMMARY_audio="${SUMMARY_audio} esd"
  16145. fi
  16146. have_audio=yes
  16147. fi
  16148. fi
  16149. }
  16150. CheckPipewire()
  16151. {
  16152. # Check whether --enable-pipewire was given.
  16153. if test "${enable_pipewire+set}" = set; then :
  16154. enableval=$enable_pipewire;
  16155. else
  16156. enable_pipewire=yes
  16157. fi
  16158. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16159. pkg_failed=no
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16161. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16162. if test -n "$PIPEWIRE_CFLAGS"; then
  16163. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16164. elif test -n "$PKG_CONFIG"; then
  16165. if test -n "$PKG_CONFIG" && \
  16166. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16167. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16168. ac_status=$?
  16169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16170. test $ac_status = 0; }; then
  16171. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16172. test "x$?" != "x0" && pkg_failed=yes
  16173. else
  16174. pkg_failed=yes
  16175. fi
  16176. else
  16177. pkg_failed=untried
  16178. fi
  16179. if test -n "$PIPEWIRE_LIBS"; then
  16180. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16181. elif test -n "$PKG_CONFIG"; then
  16182. if test -n "$PKG_CONFIG" && \
  16183. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16184. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16185. ac_status=$?
  16186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16187. test $ac_status = 0; }; then
  16188. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16189. test "x$?" != "x0" && pkg_failed=yes
  16190. else
  16191. pkg_failed=yes
  16192. fi
  16193. else
  16194. pkg_failed=untried
  16195. fi
  16196. if test $pkg_failed = yes; then
  16197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16198. $as_echo "no" >&6; }
  16199. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16200. _pkg_short_errors_supported=yes
  16201. else
  16202. _pkg_short_errors_supported=no
  16203. fi
  16204. if test $_pkg_short_errors_supported = yes; then
  16205. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16206. else
  16207. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16208. fi
  16209. # Put the nasty error message in config.log where it belongs
  16210. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16211. audio_pipewire=no
  16212. elif test $pkg_failed = untried; then
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16214. $as_echo "no" >&6; }
  16215. audio_pipewire=no
  16216. else
  16217. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16218. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16220. $as_echo "yes" >&6; }
  16221. audio_pipewire=yes
  16222. fi
  16223. if test x$audio_pipewire = xyes; then
  16224. # Check whether --enable-pipewire-shared was given.
  16225. if test "${enable_pipewire_shared+set}" = set; then :
  16226. enableval=$enable_pipewire_shared;
  16227. else
  16228. enable_pipewire_shared=yes
  16229. fi
  16230. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16231. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16232. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16233. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16234. if test x$have_loadso != xyes && \
  16235. test x$enable_pipewire_shared = xyes; then
  16236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16237. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16238. fi
  16239. if test x$have_loadso = xyes && \
  16240. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16241. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16242. cat >>confdefs.h <<_ACEOF
  16243. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16244. _ACEOF
  16245. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16246. else
  16247. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16248. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16249. fi
  16250. have_audio=yes
  16251. fi
  16252. fi
  16253. }
  16254. CheckPulseAudio()
  16255. {
  16256. # Check whether --enable-pulseaudio was given.
  16257. if test "${enable_pulseaudio+set}" = set; then :
  16258. enableval=$enable_pulseaudio;
  16259. else
  16260. enable_pulseaudio=yes
  16261. fi
  16262. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16263. pkg_failed=no
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16265. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16266. if test -n "$PULSEAUDIO_CFLAGS"; then
  16267. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16268. elif test -n "$PKG_CONFIG"; then
  16269. if test -n "$PKG_CONFIG" && \
  16270. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16271. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16272. ac_status=$?
  16273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16274. test $ac_status = 0; }; then
  16275. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16276. test "x$?" != "x0" && pkg_failed=yes
  16277. else
  16278. pkg_failed=yes
  16279. fi
  16280. else
  16281. pkg_failed=untried
  16282. fi
  16283. if test -n "$PULSEAUDIO_LIBS"; then
  16284. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16285. elif test -n "$PKG_CONFIG"; then
  16286. if test -n "$PKG_CONFIG" && \
  16287. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16288. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16289. ac_status=$?
  16290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16291. test $ac_status = 0; }; then
  16292. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16293. test "x$?" != "x0" && pkg_failed=yes
  16294. else
  16295. pkg_failed=yes
  16296. fi
  16297. else
  16298. pkg_failed=untried
  16299. fi
  16300. if test $pkg_failed = yes; then
  16301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16302. $as_echo "no" >&6; }
  16303. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16304. _pkg_short_errors_supported=yes
  16305. else
  16306. _pkg_short_errors_supported=no
  16307. fi
  16308. if test $_pkg_short_errors_supported = yes; then
  16309. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16310. else
  16311. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16312. fi
  16313. # Put the nasty error message in config.log where it belongs
  16314. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16315. audio_pulseaudio=no
  16316. elif test $pkg_failed = untried; then
  16317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16318. $as_echo "no" >&6; }
  16319. audio_pulseaudio=no
  16320. else
  16321. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16322. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16324. $as_echo "yes" >&6; }
  16325. audio_pulseaudio=yes
  16326. fi
  16327. if test x$audio_pulseaudio = xyes; then
  16328. # Check whether --enable-pulseaudio-shared was given.
  16329. if test "${enable_pulseaudio_shared+set}" = set; then :
  16330. enableval=$enable_pulseaudio_shared;
  16331. else
  16332. enable_pulseaudio_shared=yes
  16333. fi
  16334. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16335. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16336. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16337. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16338. if test x$have_loadso != xyes && \
  16339. test x$enable_pulseaudio_shared = xyes; then
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16341. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16342. fi
  16343. if test x$have_loadso = xyes && \
  16344. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16345. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16346. cat >>confdefs.h <<_ACEOF
  16347. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16348. _ACEOF
  16349. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16350. case "$host" in
  16351. # On Solaris, pulseaudio must be linked deferred explicitly
  16352. # to prevent undefined symbol failures.
  16353. *-*-solaris*)
  16354. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16355. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16356. esac
  16357. else
  16358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16359. SUMMARY_audio="${SUMMARY_audio} pulse"
  16360. fi
  16361. have_audio=yes
  16362. fi
  16363. fi
  16364. }
  16365. CheckARTSC()
  16366. {
  16367. # Check whether --enable-arts was given.
  16368. if test "${enable_arts+set}" = set; then :
  16369. enableval=$enable_arts;
  16370. else
  16371. enable_arts=yes
  16372. fi
  16373. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16374. # Extract the first word of "artsc-config", so it can be a program name with args.
  16375. set dummy artsc-config; ac_word=$2
  16376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16377. $as_echo_n "checking for $ac_word... " >&6; }
  16378. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16379. $as_echo_n "(cached) " >&6
  16380. else
  16381. case $ARTSCONFIG in
  16382. [\\/]* | ?:[\\/]*)
  16383. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16384. ;;
  16385. *)
  16386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16387. for as_dir in $PATH
  16388. do
  16389. IFS=$as_save_IFS
  16390. test -z "$as_dir" && as_dir=.
  16391. for ac_exec_ext in '' $ac_executable_extensions; do
  16392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16393. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16395. break 2
  16396. fi
  16397. done
  16398. done
  16399. IFS=$as_save_IFS
  16400. ;;
  16401. esac
  16402. fi
  16403. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16404. if test -n "$ARTSCONFIG"; then
  16405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16406. $as_echo "$ARTSCONFIG" >&6; }
  16407. else
  16408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16409. $as_echo "no" >&6; }
  16410. fi
  16411. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16412. : # arts isn't installed
  16413. else
  16414. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16415. ARTS_LIBS=`$ARTSCONFIG --libs`
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16417. $as_echo_n "checking for aRts development environment... " >&6; }
  16418. audio_arts=no
  16419. save_CFLAGS="$CFLAGS"
  16420. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16422. /* end confdefs.h. */
  16423. #include <artsc.h>
  16424. int
  16425. main ()
  16426. {
  16427. arts_stream_t stream;
  16428. ;
  16429. return 0;
  16430. }
  16431. _ACEOF
  16432. if ac_fn_c_try_compile "$LINENO"; then :
  16433. audio_arts=yes
  16434. fi
  16435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16436. CFLAGS="$save_CFLAGS"
  16437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16438. $as_echo "$audio_arts" >&6; }
  16439. if test x$audio_arts = xyes; then
  16440. # Check whether --enable-arts-shared was given.
  16441. if test "${enable_arts_shared+set}" = set; then :
  16442. enableval=$enable_arts_shared;
  16443. else
  16444. enable_arts_shared=yes
  16445. fi
  16446. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16447. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16448. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16449. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16450. if test x$have_loadso != xyes && \
  16451. test x$enable_arts_shared = xyes; then
  16452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16453. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16454. fi
  16455. if test x$have_loadso = xyes && \
  16456. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16457. echo "-- dynamic libartsc -> $arts_lib"
  16458. cat >>confdefs.h <<_ACEOF
  16459. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16460. _ACEOF
  16461. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16462. else
  16463. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16464. SUMMARY_audio="${SUMMARY_audio} arts"
  16465. fi
  16466. have_audio=yes
  16467. fi
  16468. fi
  16469. fi
  16470. }
  16471. CheckNAS()
  16472. {
  16473. # Check whether --enable-nas was given.
  16474. if test "${enable_nas+set}" = set; then :
  16475. enableval=$enable_nas;
  16476. else
  16477. enable_nas=yes
  16478. fi
  16479. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16480. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16481. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16482. have_nas_hdr=yes
  16483. fi
  16484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16485. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16486. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16487. $as_echo_n "(cached) " >&6
  16488. else
  16489. ac_check_lib_save_LIBS=$LIBS
  16490. LIBS="-laudio $LIBS"
  16491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16492. /* end confdefs.h. */
  16493. /* Override any GCC internal prototype to avoid an error.
  16494. Use char because int might match the return type of a GCC
  16495. builtin and then its argument prototype would still apply. */
  16496. #ifdef __cplusplus
  16497. extern "C"
  16498. #endif
  16499. char AuOpenServer ();
  16500. int
  16501. main ()
  16502. {
  16503. return AuOpenServer ();
  16504. ;
  16505. return 0;
  16506. }
  16507. _ACEOF
  16508. if ac_fn_c_try_link "$LINENO"; then :
  16509. ac_cv_lib_audio_AuOpenServer=yes
  16510. else
  16511. ac_cv_lib_audio_AuOpenServer=no
  16512. fi
  16513. rm -f core conftest.err conftest.$ac_objext \
  16514. conftest$ac_exeext conftest.$ac_ext
  16515. LIBS=$ac_check_lib_save_LIBS
  16516. fi
  16517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16518. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16519. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16520. have_nas_lib=yes
  16521. fi
  16522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16523. $as_echo_n "checking for NAS audio support... " >&6; }
  16524. have_nas=no
  16525. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16526. have_nas=yes
  16527. NAS_LIBS="-laudio"
  16528. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16529. have_nas=yes
  16530. NAS_CFLAGS="-I/usr/X11R6/include/"
  16531. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16532. fi
  16533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16534. $as_echo "$have_nas" >&6; }
  16535. if test x$have_nas = xyes; then
  16536. # Check whether --enable-nas-shared was given.
  16537. if test "${enable_nas_shared+set}" = set; then :
  16538. enableval=$enable_nas_shared;
  16539. else
  16540. enable_nas_shared=yes
  16541. fi
  16542. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16543. if test x$have_loadso != xyes && \
  16544. test x$enable_nas_shared = xyes; then
  16545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16546. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16547. fi
  16548. if test x$have_loadso = xyes && \
  16549. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16550. echo "-- dynamic libaudio -> $nas_lib"
  16551. cat >>confdefs.h <<_ACEOF
  16552. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16553. _ACEOF
  16554. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16555. else
  16556. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16557. SUMMARY_audio="${SUMMARY_audio} nas"
  16558. fi
  16559. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16560. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16561. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16562. have_audio=yes
  16563. fi
  16564. fi
  16565. }
  16566. CheckSNDIO()
  16567. {
  16568. # Check whether --enable-sndio was given.
  16569. if test "${enable_sndio+set}" = set; then :
  16570. enableval=$enable_sndio;
  16571. else
  16572. enable_sndio=yes
  16573. fi
  16574. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16575. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16576. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16577. have_sndio_hdr=yes
  16578. fi
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16580. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16581. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16582. $as_echo_n "(cached) " >&6
  16583. else
  16584. ac_check_lib_save_LIBS=$LIBS
  16585. LIBS="-lsndio $LIBS"
  16586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16587. /* end confdefs.h. */
  16588. /* Override any GCC internal prototype to avoid an error.
  16589. Use char because int might match the return type of a GCC
  16590. builtin and then its argument prototype would still apply. */
  16591. #ifdef __cplusplus
  16592. extern "C"
  16593. #endif
  16594. char sio_open ();
  16595. int
  16596. main ()
  16597. {
  16598. return sio_open ();
  16599. ;
  16600. return 0;
  16601. }
  16602. _ACEOF
  16603. if ac_fn_c_try_link "$LINENO"; then :
  16604. ac_cv_lib_sndio_sio_open=yes
  16605. else
  16606. ac_cv_lib_sndio_sio_open=no
  16607. fi
  16608. rm -f core conftest.err conftest.$ac_objext \
  16609. conftest$ac_exeext conftest.$ac_ext
  16610. LIBS=$ac_check_lib_save_LIBS
  16611. fi
  16612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16613. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16614. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16615. have_sndio_lib=yes
  16616. fi
  16617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16618. $as_echo_n "checking for sndio audio support... " >&6; }
  16619. have_sndio=no
  16620. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16621. have_sndio=yes
  16622. SNDIO_LIBS="-lsndio"
  16623. fi
  16624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16625. $as_echo "$have_sndio" >&6; }
  16626. if test x$have_sndio = xyes; then
  16627. # Check whether --enable-sndio-shared was given.
  16628. if test "${enable_sndio_shared+set}" = set; then :
  16629. enableval=$enable_sndio_shared;
  16630. else
  16631. enable_sndio_shared=yes
  16632. fi
  16633. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16634. if test x$have_loadso != xyes && \
  16635. test x$enable_sndio_shared = xyes; then
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16637. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16638. fi
  16639. if test x$have_loadso = xyes && \
  16640. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16641. echo "-- dynamic libsndio -> $sndio_lib"
  16642. cat >>confdefs.h <<_ACEOF
  16643. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16644. _ACEOF
  16645. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16646. else
  16647. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16648. SUMMARY_audio="${SUMMARY_audio} sndio"
  16649. fi
  16650. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16651. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16652. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16653. have_audio=yes
  16654. fi
  16655. fi
  16656. }
  16657. CheckFusionSound()
  16658. {
  16659. # Check whether --enable-fusionsound was given.
  16660. if test "${enable_fusionsound+set}" = set; then :
  16661. enableval=$enable_fusionsound;
  16662. else
  16663. enable_fusionsound=no
  16664. fi
  16665. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16666. pkg_failed=no
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16668. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16669. if test -n "$FUSIONSOUND_CFLAGS"; then
  16670. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16671. elif test -n "$PKG_CONFIG"; then
  16672. if test -n "$PKG_CONFIG" && \
  16673. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16674. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16675. ac_status=$?
  16676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16677. test $ac_status = 0; }; then
  16678. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16679. test "x$?" != "x0" && pkg_failed=yes
  16680. else
  16681. pkg_failed=yes
  16682. fi
  16683. else
  16684. pkg_failed=untried
  16685. fi
  16686. if test -n "$FUSIONSOUND_LIBS"; then
  16687. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16688. elif test -n "$PKG_CONFIG"; then
  16689. if test -n "$PKG_CONFIG" && \
  16690. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16691. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16692. ac_status=$?
  16693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16694. test $ac_status = 0; }; then
  16695. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16696. test "x$?" != "x0" && pkg_failed=yes
  16697. else
  16698. pkg_failed=yes
  16699. fi
  16700. else
  16701. pkg_failed=untried
  16702. fi
  16703. if test $pkg_failed = yes; then
  16704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16705. $as_echo "no" >&6; }
  16706. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16707. _pkg_short_errors_supported=yes
  16708. else
  16709. _pkg_short_errors_supported=no
  16710. fi
  16711. if test $_pkg_short_errors_supported = yes; then
  16712. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16713. else
  16714. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16715. fi
  16716. # Put the nasty error message in config.log where it belongs
  16717. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16718. fusionsound=no
  16719. elif test $pkg_failed = untried; then
  16720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16721. $as_echo "no" >&6; }
  16722. fusionsound=no
  16723. else
  16724. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16725. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16727. $as_echo "yes" >&6; }
  16728. fusionsound=yes
  16729. fi
  16730. if test x$fusionsound = xyes; then
  16731. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16732. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16733. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16734. # Check whether --enable-fusionsound-shared was given.
  16735. if test "${enable_fusionsound_shared+set}" = set; then :
  16736. enableval=$enable_fusionsound_shared;
  16737. else
  16738. enable_fusionsound_shared=yes
  16739. fi
  16740. fusionsound_shared=no
  16741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16742. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16743. if test x$have_loadso != xyes && \
  16744. test x$enable_fusionsound_shared = xyes; then
  16745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16746. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16747. fi
  16748. if test x$have_loadso = xyes && \
  16749. test x$enable_fusionsound_shared = xyes; then
  16750. cat >>confdefs.h <<_ACEOF
  16751. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16752. _ACEOF
  16753. fusionsound_shared=yes
  16754. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16755. else
  16756. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16757. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16758. fi
  16759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16760. $as_echo "$fusionsound_shared" >&6; }
  16761. have_audio=yes
  16762. fi
  16763. fi
  16764. }
  16765. CheckDiskAudio()
  16766. {
  16767. # Check whether --enable-diskaudio was given.
  16768. if test "${enable_diskaudio+set}" = set; then :
  16769. enableval=$enable_diskaudio;
  16770. else
  16771. enable_diskaudio=yes
  16772. fi
  16773. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16774. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16775. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16776. SUMMARY_audio="${SUMMARY_audio} disk"
  16777. fi
  16778. }
  16779. CheckDummyAudio()
  16780. {
  16781. # Check whether --enable-dummyaudio was given.
  16782. if test "${enable_dummyaudio+set}" = set; then :
  16783. enableval=$enable_dummyaudio;
  16784. else
  16785. enable_dummyaudio=yes
  16786. fi
  16787. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16788. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16789. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16790. SUMMARY_audio="${SUMMARY_audio} dummy"
  16791. fi
  16792. }
  16793. CheckLibSampleRate()
  16794. {
  16795. # Check whether --enable-libsamplerate was given.
  16796. if test "${enable_libsamplerate+set}" = set; then :
  16797. enableval=$enable_libsamplerate;
  16798. else
  16799. enable_libsamplerate=yes
  16800. fi
  16801. if test x$enable_libsamplerate = xyes; then
  16802. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16803. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16804. have_samplerate_h_hdr=yes
  16805. else
  16806. have_samplerate_h_hdr=no
  16807. fi
  16808. if test x$have_samplerate_h_hdr = xyes; then
  16809. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16810. # Check whether --enable-libsamplerate-shared was given.
  16811. if test "${enable_libsamplerate_shared+set}" = set; then :
  16812. enableval=$enable_libsamplerate_shared;
  16813. else
  16814. enable_libsamplerate_shared=yes
  16815. fi
  16816. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16817. if test x$have_loadso != xyes && \
  16818. test x$enable_libsamplerate_shared = xyes; then
  16819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16820. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16821. fi
  16822. if test x$have_loadso = xyes && \
  16823. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16824. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16825. cat >>confdefs.h <<_ACEOF
  16826. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16827. _ACEOF
  16828. else
  16829. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16830. fi
  16831. fi
  16832. fi
  16833. }
  16834. CheckARM()
  16835. {
  16836. # Check whether --enable-arm-simd was given.
  16837. if test "${enable_arm_simd+set}" = set; then :
  16838. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16839. else
  16840. enable_arm_simd=no
  16841. fi
  16842. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16843. save_CFLAGS="$CFLAGS"
  16844. have_arm_simd=no
  16845. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16847. $as_echo_n "checking for ARM SIMD... " >&6; }
  16848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16849. /* end confdefs.h. */
  16850. .text
  16851. .arch armv6
  16852. .object_arch armv4
  16853. .arm
  16854. .altmacro
  16855. #ifndef __ARM_EABI__
  16856. #error EABI is required (to be sure that calling conventions are compatible)
  16857. #endif
  16858. pld [r0]
  16859. uqadd8 r0, r0, r0
  16860. _ACEOF
  16861. if ac_fn_c_try_compile "$LINENO"; then :
  16862. have_arm_simd=yes
  16863. fi
  16864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16866. $as_echo "$have_arm_simd" >&6; }
  16867. CFLAGS="$save_CFLAGS"
  16868. if test x$have_arm_simd = xyes; then
  16869. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16870. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16871. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16872. fi
  16873. fi
  16874. }
  16875. CheckNEON()
  16876. {
  16877. # Check whether --enable-arm-neon was given.
  16878. if test "${enable_arm_neon+set}" = set; then :
  16879. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16880. else
  16881. enable_arm_neon=no
  16882. fi
  16883. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16884. save_CFLAGS="$CFLAGS"
  16885. have_arm_neon=no
  16886. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16888. $as_echo_n "checking for ARM NEON... " >&6; }
  16889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16890. /* end confdefs.h. */
  16891. .text
  16892. .fpu neon
  16893. .arch armv7a
  16894. .object_arch armv4
  16895. .eabi_attribute 10, 0
  16896. .arm
  16897. .altmacro
  16898. #ifndef __ARM_EABI__
  16899. #error EABI is required (to be sure that calling conventions are compatible)
  16900. #endif
  16901. pld [r0]
  16902. vmovn.u16 d0, q0
  16903. _ACEOF
  16904. if ac_fn_c_try_compile "$LINENO"; then :
  16905. have_arm_neon=yes
  16906. fi
  16907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16909. $as_echo "$have_arm_neon" >&6; }
  16910. CFLAGS="$save_CFLAGS"
  16911. if test x$have_arm_neon = xyes; then
  16912. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16913. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16914. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16915. fi
  16916. fi
  16917. }
  16918. CheckVisibilityHidden()
  16919. {
  16920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16921. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16922. have_gcc_fvisibility=no
  16923. visibility_CFLAGS="-fvisibility=hidden"
  16924. save_CFLAGS="$CFLAGS"
  16925. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16927. /* end confdefs.h. */
  16928. #if !defined(__GNUC__) || __GNUC__ < 4
  16929. #error SDL only uses visibility attributes in GCC 4 or newer
  16930. #endif
  16931. int
  16932. main ()
  16933. {
  16934. ;
  16935. return 0;
  16936. }
  16937. _ACEOF
  16938. if ac_fn_c_try_compile "$LINENO"; then :
  16939. have_gcc_fvisibility=yes
  16940. fi
  16941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16943. $as_echo "$have_gcc_fvisibility" >&6; }
  16944. CFLAGS="$save_CFLAGS"
  16945. if test x$have_gcc_fvisibility = xyes; then
  16946. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16947. fi
  16948. }
  16949. CheckNoStrictAliasing()
  16950. {
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16952. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16953. have_gcc_no_strict_aliasing=no
  16954. save_CFLAGS="$CFLAGS"
  16955. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16957. /* end confdefs.h. */
  16958. int x = 0;
  16959. int
  16960. main ()
  16961. {
  16962. ;
  16963. return 0;
  16964. }
  16965. _ACEOF
  16966. if ac_fn_c_try_compile "$LINENO"; then :
  16967. have_gcc_no_strict_aliasing=yes
  16968. fi
  16969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16971. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16972. CFLAGS="$save_CFLAGS"
  16973. if test x$have_gcc_no_strict_aliasing = xyes; then
  16974. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16975. fi
  16976. }
  16977. CheckStackBoundary()
  16978. {
  16979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16980. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16981. have_gcc_preferred_stack_boundary=no
  16982. save_CFLAGS="$CFLAGS"
  16983. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16985. /* end confdefs.h. */
  16986. int x = 0;
  16987. int
  16988. main ()
  16989. {
  16990. ;
  16991. return 0;
  16992. }
  16993. _ACEOF
  16994. if ac_fn_c_try_compile "$LINENO"; then :
  16995. have_gcc_preferred_stack_boundary=yes
  16996. fi
  16997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16999. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17000. CFLAGS="$save_CFLAGS"
  17001. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17002. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17003. fi
  17004. }
  17005. CheckDeclarationAfterStatement()
  17006. {
  17007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17008. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17009. have_gcc_declaration_after_statement=no
  17010. save_CFLAGS="$CFLAGS"
  17011. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17013. /* end confdefs.h. */
  17014. int x = 0;
  17015. int
  17016. main ()
  17017. {
  17018. ;
  17019. return 0;
  17020. }
  17021. _ACEOF
  17022. if ac_fn_c_try_compile "$LINENO"; then :
  17023. have_gcc_declaration_after_statement=yes
  17024. fi
  17025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17027. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17028. CFLAGS="$save_CFLAGS"
  17029. if test x$have_gcc_declaration_after_statement = xyes; then
  17030. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17031. fi
  17032. }
  17033. CheckWarnAll()
  17034. {
  17035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17036. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17037. have_gcc_Wall=no
  17038. save_CFLAGS="$CFLAGS"
  17039. CFLAGS="$save_CFLAGS -Wall"
  17040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17041. /* end confdefs.h. */
  17042. int x = 0;
  17043. int
  17044. main ()
  17045. {
  17046. ;
  17047. return 0;
  17048. }
  17049. _ACEOF
  17050. if ac_fn_c_try_compile "$LINENO"; then :
  17051. have_gcc_Wall=yes
  17052. fi
  17053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17055. $as_echo "$have_gcc_Wall" >&6; }
  17056. CFLAGS="$save_CFLAGS"
  17057. if test x$have_gcc_Wall = xyes; then
  17058. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17060. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17061. need_gcc_Wno_multichar=no
  17062. case "$host" in
  17063. *-*-haiku*)
  17064. need_gcc_Wno_multichar=yes
  17065. ;;
  17066. esac
  17067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17068. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17069. if test x$need_gcc_Wno_multichar = xyes; then
  17070. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17071. fi
  17072. fi
  17073. }
  17074. CheckWayland()
  17075. {
  17076. # Check whether --enable-video-wayland was given.
  17077. if test "${enable_video_wayland+set}" = set; then :
  17078. enableval=$enable_video_wayland;
  17079. else
  17080. enable_video_wayland=yes
  17081. fi
  17082. # Check whether --enable-video-wayland-qt-touch was given.
  17083. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17084. enableval=$enable_video_wayland_qt_touch;
  17085. else
  17086. enable_video_wayland_qt_touch=yes
  17087. fi
  17088. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17090. $as_echo_n "checking for Wayland support... " >&6; }
  17091. video_wayland=no
  17092. if test x$video_opengl_egl = xyes && \
  17093. test x$video_opengles_v2 = xyes; then
  17094. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  17095. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17096. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17097. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17098. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17099. WAYLAND_SCANNER_CODE_MODE=private-code
  17100. else
  17101. WAYLAND_SCANNER_CODE_MODE=code
  17102. fi
  17103. video_wayland=yes
  17104. fi
  17105. fi
  17106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17107. $as_echo "$video_wayland" >&6; }
  17108. if test x$video_wayland = xyes; then
  17109. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17110. if test x$enable_video_wayland_qt_touch = xyes; then
  17111. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17112. fi
  17113. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17114. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17115. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17116. # Check whether --enable-wayland-shared was given.
  17117. if test "${enable_wayland_shared+set}" = set; then :
  17118. enableval=$enable_wayland_shared;
  17119. else
  17120. enable_wayland_shared=maybe
  17121. fi
  17122. case "$host" in
  17123. *)
  17124. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17125. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17126. if test x$wayland_egl_lib = x; then
  17127. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17128. fi
  17129. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17130. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17131. ;;
  17132. esac
  17133. if test x$enable_wayland_shared = xmaybe; then
  17134. enable_wayland_shared=yes
  17135. fi
  17136. if test x$have_loadso != xyes && \
  17137. test x$enable_wayland_shared = xyes; then
  17138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17139. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17140. enable_wayland_shared=no
  17141. fi
  17142. if test x$have_loadso = xyes && \
  17143. test x$enable_wayland_shared = xyes && \
  17144. test x$wayland_client_lib != x && \
  17145. test x$wayland_egl_lib != x && \
  17146. test x$wayland_cursor_lib != x && \
  17147. test x$xkbcommon_lib != x; then
  17148. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17149. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17150. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17151. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17152. cat >>confdefs.h <<_ACEOF
  17153. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17154. _ACEOF
  17155. cat >>confdefs.h <<_ACEOF
  17156. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17157. _ACEOF
  17158. cat >>confdefs.h <<_ACEOF
  17159. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17160. _ACEOF
  17161. cat >>confdefs.h <<_ACEOF
  17162. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17163. _ACEOF
  17164. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17165. else
  17166. enable_wayland_shared=no
  17167. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17168. SUMMARY_video="${SUMMARY_video} wayland"
  17169. fi
  17170. have_video=yes
  17171. fi
  17172. fi
  17173. }
  17174. CheckNativeClient()
  17175. {
  17176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17177. /* end confdefs.h. */
  17178. #if !defined(__native_client__)
  17179. #error "NO NACL"
  17180. #endif
  17181. int
  17182. main ()
  17183. {
  17184. ;
  17185. return 0;
  17186. }
  17187. _ACEOF
  17188. if ac_fn_c_try_compile "$LINENO"; then :
  17189. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17190. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17191. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17192. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17193. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17194. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17195. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17196. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17197. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17198. SUMMARY_audio="${SUMMARY_audio} nacl"
  17199. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17200. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17201. fi
  17202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17203. }
  17204. CheckRPI()
  17205. {
  17206. # Check whether --enable-video-rpi was given.
  17207. if test "${enable_video_rpi+set}" = set; then :
  17208. enableval=$enable_video_rpi;
  17209. else
  17210. enable_video_rpi=yes
  17211. fi
  17212. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17213. pkg_failed=no
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17215. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17216. if test -n "$RPI_CFLAGS"; then
  17217. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17218. elif test -n "$PKG_CONFIG"; then
  17219. if test -n "$PKG_CONFIG" && \
  17220. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17221. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17222. ac_status=$?
  17223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17224. test $ac_status = 0; }; then
  17225. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17226. test "x$?" != "x0" && pkg_failed=yes
  17227. else
  17228. pkg_failed=yes
  17229. fi
  17230. else
  17231. pkg_failed=untried
  17232. fi
  17233. if test -n "$RPI_LIBS"; then
  17234. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17235. elif test -n "$PKG_CONFIG"; then
  17236. if test -n "$PKG_CONFIG" && \
  17237. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17238. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17239. ac_status=$?
  17240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17241. test $ac_status = 0; }; then
  17242. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17243. test "x$?" != "x0" && pkg_failed=yes
  17244. else
  17245. pkg_failed=yes
  17246. fi
  17247. else
  17248. pkg_failed=untried
  17249. fi
  17250. if test $pkg_failed = yes; then
  17251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17252. $as_echo "no" >&6; }
  17253. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17254. _pkg_short_errors_supported=yes
  17255. else
  17256. _pkg_short_errors_supported=no
  17257. fi
  17258. if test $_pkg_short_errors_supported = yes; then
  17259. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17260. else
  17261. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17262. fi
  17263. # Put the nasty error message in config.log where it belongs
  17264. echo "$RPI_PKG_ERRORS" >&5
  17265. video_rpi=no
  17266. elif test $pkg_failed = untried; then
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17268. $as_echo "no" >&6; }
  17269. video_rpi=no
  17270. else
  17271. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17272. RPI_LIBS=$pkg_cv_RPI_LIBS
  17273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17274. $as_echo "yes" >&6; }
  17275. video_rpi=yes
  17276. fi
  17277. if test x$video_rpi = xno; then
  17278. if test x$ARCH = xnetbsd; then
  17279. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17280. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17281. else
  17282. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17283. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17284. fi
  17285. fi
  17286. # Save the original compiler flags and libraries
  17287. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17288. # Add the Raspberry Pi compiler flags and libraries
  17289. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17291. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17292. have_video_rpi=no
  17293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17294. /* end confdefs.h. */
  17295. #include <bcm_host.h>
  17296. int
  17297. main ()
  17298. {
  17299. bcm_host_init();
  17300. ;
  17301. return 0;
  17302. }
  17303. _ACEOF
  17304. if ac_fn_c_try_link "$LINENO"; then :
  17305. have_video_rpi=yes
  17306. fi
  17307. rm -f core conftest.err conftest.$ac_objext \
  17308. conftest$ac_exeext conftest.$ac_ext
  17309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17310. $as_echo "$have_video_rpi" >&6; }
  17311. # Restore the compiler flags and libraries
  17312. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17313. if test x$have_video_rpi = xyes; then
  17314. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17315. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17316. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17317. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17318. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17319. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17320. SUMMARY_video="${SUMMARY_video} rpi"
  17321. fi
  17322. fi
  17323. }
  17324. CheckX11()
  17325. {
  17326. # Check whether --enable-video-x11 was given.
  17327. if test "${enable_video_x11+set}" = set; then :
  17328. enableval=$enable_video_x11;
  17329. else
  17330. enable_video_x11=yes
  17331. fi
  17332. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17333. case "$host" in
  17334. *-*-darwin*)
  17335. # This isn't necessary for X11, but fixes GLX detection
  17336. if test "x$x_includes" = xNONE && \
  17337. test "x$x_libraries" = xNONE && \
  17338. test -d /opt/X11/include && \
  17339. test -d /opt/X11/lib; then
  17340. x_includes="/opt/X11/include"
  17341. x_libraries="/opt/X11/lib"
  17342. fi
  17343. ;;
  17344. esac
  17345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17346. $as_echo_n "checking for X... " >&6; }
  17347. # Check whether --with-x was given.
  17348. if test "${with_x+set}" = set; then :
  17349. withval=$with_x;
  17350. fi
  17351. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17352. if test "x$with_x" = xno; then
  17353. # The user explicitly disabled X.
  17354. have_x=disabled
  17355. else
  17356. case $x_includes,$x_libraries in #(
  17357. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17358. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17359. $as_echo_n "(cached) " >&6
  17360. else
  17361. # One or both of the vars are not set, and there is no cached value.
  17362. ac_x_includes=no
  17363. ac_x_libraries=no
  17364. # Do we need to do anything special at all?
  17365. ac_save_LIBS=$LIBS
  17366. LIBS="-lX11 $LIBS"
  17367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17368. /* end confdefs.h. */
  17369. #include <X11/Xlib.h>
  17370. int
  17371. main ()
  17372. {
  17373. XrmInitialize ()
  17374. ;
  17375. return 0;
  17376. }
  17377. _ACEOF
  17378. if ac_fn_c_try_link "$LINENO"; then :
  17379. # We can compile and link X programs with no special options.
  17380. ac_x_includes=
  17381. ac_x_libraries=
  17382. fi
  17383. rm -f core conftest.err conftest.$ac_objext \
  17384. conftest$ac_exeext conftest.$ac_ext
  17385. LIBS="$ac_save_LIBS"
  17386. # If that didn't work, only try xmkmf and filesystem searches
  17387. # for native compilation.
  17388. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17389. rm -f -r conftest.dir
  17390. if mkdir conftest.dir; then
  17391. cd conftest.dir
  17392. cat >Imakefile <<'_ACEOF'
  17393. incroot:
  17394. @echo incroot='${INCROOT}'
  17395. usrlibdir:
  17396. @echo usrlibdir='${USRLIBDIR}'
  17397. libdir:
  17398. @echo libdir='${LIBDIR}'
  17399. _ACEOF
  17400. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17401. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17402. for ac_var in incroot usrlibdir libdir; do
  17403. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17404. done
  17405. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17406. for ac_extension in a so sl dylib la dll; do
  17407. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17408. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17409. ac_im_usrlibdir=$ac_im_libdir; break
  17410. fi
  17411. done
  17412. # Screen out bogus values from the imake configuration. They are
  17413. # bogus both because they are the default anyway, and because
  17414. # using them would break gcc on systems where it needs fixed includes.
  17415. case $ac_im_incroot in
  17416. /usr/include) ac_x_includes= ;;
  17417. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17418. esac
  17419. case $ac_im_usrlibdir in
  17420. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17421. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17422. esac
  17423. fi
  17424. cd ..
  17425. rm -f -r conftest.dir
  17426. fi
  17427. # Standard set of common directories for X headers.
  17428. # Check X11 before X11Rn because it is often a symlink to the current release.
  17429. ac_x_header_dirs='
  17430. /usr/X11/include
  17431. /usr/X11R7/include
  17432. /usr/X11R6/include
  17433. /usr/X11R5/include
  17434. /usr/X11R4/include
  17435. /usr/include/X11
  17436. /usr/include/X11R7
  17437. /usr/include/X11R6
  17438. /usr/include/X11R5
  17439. /usr/include/X11R4
  17440. /usr/local/X11/include
  17441. /usr/local/X11R7/include
  17442. /usr/local/X11R6/include
  17443. /usr/local/X11R5/include
  17444. /usr/local/X11R4/include
  17445. /usr/local/include/X11
  17446. /usr/local/include/X11R7
  17447. /usr/local/include/X11R6
  17448. /usr/local/include/X11R5
  17449. /usr/local/include/X11R4
  17450. /opt/X11/include
  17451. /usr/X386/include
  17452. /usr/x386/include
  17453. /usr/XFree86/include/X11
  17454. /usr/include
  17455. /usr/local/include
  17456. /usr/unsupported/include
  17457. /usr/athena/include
  17458. /usr/local/x11r5/include
  17459. /usr/lpp/Xamples/include
  17460. /usr/openwin/include
  17461. /usr/openwin/share/include'
  17462. if test "$ac_x_includes" = no; then
  17463. # Guess where to find include files, by looking for Xlib.h.
  17464. # First, try using that file with no special directory specified.
  17465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17466. /* end confdefs.h. */
  17467. #include <X11/Xlib.h>
  17468. _ACEOF
  17469. if ac_fn_c_try_cpp "$LINENO"; then :
  17470. # We can compile using X headers with no special include directory.
  17471. ac_x_includes=
  17472. else
  17473. for ac_dir in $ac_x_header_dirs; do
  17474. if test -r "$ac_dir/X11/Xlib.h"; then
  17475. ac_x_includes=$ac_dir
  17476. break
  17477. fi
  17478. done
  17479. fi
  17480. rm -f conftest.err conftest.i conftest.$ac_ext
  17481. fi # $ac_x_includes = no
  17482. if test "$ac_x_libraries" = no; then
  17483. # Check for the libraries.
  17484. # See if we find them without any special options.
  17485. # Don't add to $LIBS permanently.
  17486. ac_save_LIBS=$LIBS
  17487. LIBS="-lX11 $LIBS"
  17488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17489. /* end confdefs.h. */
  17490. #include <X11/Xlib.h>
  17491. int
  17492. main ()
  17493. {
  17494. XrmInitialize ()
  17495. ;
  17496. return 0;
  17497. }
  17498. _ACEOF
  17499. if ac_fn_c_try_link "$LINENO"; then :
  17500. LIBS=$ac_save_LIBS
  17501. # We can link X programs with no special library path.
  17502. ac_x_libraries=
  17503. else
  17504. LIBS=$ac_save_LIBS
  17505. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17506. do
  17507. # Don't even attempt the hair of trying to link an X program!
  17508. for ac_extension in a so sl dylib la dll; do
  17509. if test -r "$ac_dir/libX11.$ac_extension"; then
  17510. ac_x_libraries=$ac_dir
  17511. break 2
  17512. fi
  17513. done
  17514. done
  17515. fi
  17516. rm -f core conftest.err conftest.$ac_objext \
  17517. conftest$ac_exeext conftest.$ac_ext
  17518. fi # $ac_x_libraries = no
  17519. fi
  17520. # Record the results.
  17521. case $ac_x_includes,$ac_x_libraries in #(
  17522. no,* | *,no | *\'*) :
  17523. # Didn't find X, or a directory has "'" in its name.
  17524. ac_cv_have_x="have_x=no" ;; #(
  17525. *) :
  17526. # Record where we found X for the cache.
  17527. ac_cv_have_x="have_x=yes\
  17528. ac_x_includes='$ac_x_includes'\
  17529. ac_x_libraries='$ac_x_libraries'" ;;
  17530. esac
  17531. fi
  17532. ;; #(
  17533. *) have_x=yes;;
  17534. esac
  17535. eval "$ac_cv_have_x"
  17536. fi # $with_x != no
  17537. if test "$have_x" != yes; then
  17538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17539. $as_echo "$have_x" >&6; }
  17540. no_x=yes
  17541. else
  17542. # If each of the values was on the command line, it overrides each guess.
  17543. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17544. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17545. # Update the cache value to reflect the command line values.
  17546. ac_cv_have_x="have_x=yes\
  17547. ac_x_includes='$x_includes'\
  17548. ac_x_libraries='$x_libraries'"
  17549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17550. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17551. fi
  17552. if test "$no_x" = yes; then
  17553. # Not all programs may use this symbol, but it does not hurt to define it.
  17554. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17555. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17556. else
  17557. if test -n "$x_includes"; then
  17558. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17559. fi
  17560. # It would also be nice to do this for all -L options, not just this one.
  17561. if test -n "$x_libraries"; then
  17562. X_LIBS="$X_LIBS -L$x_libraries"
  17563. # For Solaris; some versions of Sun CC require a space after -R and
  17564. # others require no space. Words are not sufficient . . . .
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17566. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17567. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17568. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17569. ac_c_werror_flag=yes
  17570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17571. /* end confdefs.h. */
  17572. int
  17573. main ()
  17574. {
  17575. ;
  17576. return 0;
  17577. }
  17578. _ACEOF
  17579. if ac_fn_c_try_link "$LINENO"; then :
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17581. $as_echo "no" >&6; }
  17582. X_LIBS="$X_LIBS -R$x_libraries"
  17583. else
  17584. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17586. /* end confdefs.h. */
  17587. int
  17588. main ()
  17589. {
  17590. ;
  17591. return 0;
  17592. }
  17593. _ACEOF
  17594. if ac_fn_c_try_link "$LINENO"; then :
  17595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17596. $as_echo "yes" >&6; }
  17597. X_LIBS="$X_LIBS -R $x_libraries"
  17598. else
  17599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17600. $as_echo "neither works" >&6; }
  17601. fi
  17602. rm -f core conftest.err conftest.$ac_objext \
  17603. conftest$ac_exeext conftest.$ac_ext
  17604. fi
  17605. rm -f core conftest.err conftest.$ac_objext \
  17606. conftest$ac_exeext conftest.$ac_ext
  17607. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17608. LIBS=$ac_xsave_LIBS
  17609. fi
  17610. # Check for system-dependent libraries X programs must link with.
  17611. # Do this before checking for the system-independent R6 libraries
  17612. # (-lICE), since we may need -lsocket or whatever for X linking.
  17613. if test "$ISC" = yes; then
  17614. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17615. else
  17616. # Martyn Johnson says this is needed for Ultrix, if the X
  17617. # libraries were built with DECnet support. And Karl Berry says
  17618. # the Alpha needs dnet_stub (dnet does not exist).
  17619. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17621. /* end confdefs.h. */
  17622. /* Override any GCC internal prototype to avoid an error.
  17623. Use char because int might match the return type of a GCC
  17624. builtin and then its argument prototype would still apply. */
  17625. #ifdef __cplusplus
  17626. extern "C"
  17627. #endif
  17628. char XOpenDisplay ();
  17629. int
  17630. main ()
  17631. {
  17632. return XOpenDisplay ();
  17633. ;
  17634. return 0;
  17635. }
  17636. _ACEOF
  17637. if ac_fn_c_try_link "$LINENO"; then :
  17638. else
  17639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17640. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17641. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17642. $as_echo_n "(cached) " >&6
  17643. else
  17644. ac_check_lib_save_LIBS=$LIBS
  17645. LIBS="-ldnet $LIBS"
  17646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17647. /* end confdefs.h. */
  17648. /* Override any GCC internal prototype to avoid an error.
  17649. Use char because int might match the return type of a GCC
  17650. builtin and then its argument prototype would still apply. */
  17651. #ifdef __cplusplus
  17652. extern "C"
  17653. #endif
  17654. char dnet_ntoa ();
  17655. int
  17656. main ()
  17657. {
  17658. return dnet_ntoa ();
  17659. ;
  17660. return 0;
  17661. }
  17662. _ACEOF
  17663. if ac_fn_c_try_link "$LINENO"; then :
  17664. ac_cv_lib_dnet_dnet_ntoa=yes
  17665. else
  17666. ac_cv_lib_dnet_dnet_ntoa=no
  17667. fi
  17668. rm -f core conftest.err conftest.$ac_objext \
  17669. conftest$ac_exeext conftest.$ac_ext
  17670. LIBS=$ac_check_lib_save_LIBS
  17671. fi
  17672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17673. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17674. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17675. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17676. fi
  17677. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17679. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17680. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17681. $as_echo_n "(cached) " >&6
  17682. else
  17683. ac_check_lib_save_LIBS=$LIBS
  17684. LIBS="-ldnet_stub $LIBS"
  17685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17686. /* end confdefs.h. */
  17687. /* Override any GCC internal prototype to avoid an error.
  17688. Use char because int might match the return type of a GCC
  17689. builtin and then its argument prototype would still apply. */
  17690. #ifdef __cplusplus
  17691. extern "C"
  17692. #endif
  17693. char dnet_ntoa ();
  17694. int
  17695. main ()
  17696. {
  17697. return dnet_ntoa ();
  17698. ;
  17699. return 0;
  17700. }
  17701. _ACEOF
  17702. if ac_fn_c_try_link "$LINENO"; then :
  17703. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17704. else
  17705. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17706. fi
  17707. rm -f core conftest.err conftest.$ac_objext \
  17708. conftest$ac_exeext conftest.$ac_ext
  17709. LIBS=$ac_check_lib_save_LIBS
  17710. fi
  17711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17712. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17713. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17714. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17715. fi
  17716. fi
  17717. fi
  17718. rm -f core conftest.err conftest.$ac_objext \
  17719. conftest$ac_exeext conftest.$ac_ext
  17720. LIBS="$ac_xsave_LIBS"
  17721. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17722. # to get the SysV transport functions.
  17723. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17724. # needs -lnsl.
  17725. # The nsl library prevents programs from opening the X display
  17726. # on Irix 5.2, according to T.E. Dickey.
  17727. # The functions gethostbyname, getservbyname, and inet_addr are
  17728. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17729. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17730. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17731. fi
  17732. if test $ac_cv_func_gethostbyname = no; then
  17733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17734. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17735. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17736. $as_echo_n "(cached) " >&6
  17737. else
  17738. ac_check_lib_save_LIBS=$LIBS
  17739. LIBS="-lnsl $LIBS"
  17740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17741. /* end confdefs.h. */
  17742. /* Override any GCC internal prototype to avoid an error.
  17743. Use char because int might match the return type of a GCC
  17744. builtin and then its argument prototype would still apply. */
  17745. #ifdef __cplusplus
  17746. extern "C"
  17747. #endif
  17748. char gethostbyname ();
  17749. int
  17750. main ()
  17751. {
  17752. return gethostbyname ();
  17753. ;
  17754. return 0;
  17755. }
  17756. _ACEOF
  17757. if ac_fn_c_try_link "$LINENO"; then :
  17758. ac_cv_lib_nsl_gethostbyname=yes
  17759. else
  17760. ac_cv_lib_nsl_gethostbyname=no
  17761. fi
  17762. rm -f core conftest.err conftest.$ac_objext \
  17763. conftest$ac_exeext conftest.$ac_ext
  17764. LIBS=$ac_check_lib_save_LIBS
  17765. fi
  17766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17767. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17768. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17769. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17770. fi
  17771. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17773. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17774. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17775. $as_echo_n "(cached) " >&6
  17776. else
  17777. ac_check_lib_save_LIBS=$LIBS
  17778. LIBS="-lbsd $LIBS"
  17779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17780. /* end confdefs.h. */
  17781. /* Override any GCC internal prototype to avoid an error.
  17782. Use char because int might match the return type of a GCC
  17783. builtin and then its argument prototype would still apply. */
  17784. #ifdef __cplusplus
  17785. extern "C"
  17786. #endif
  17787. char gethostbyname ();
  17788. int
  17789. main ()
  17790. {
  17791. return gethostbyname ();
  17792. ;
  17793. return 0;
  17794. }
  17795. _ACEOF
  17796. if ac_fn_c_try_link "$LINENO"; then :
  17797. ac_cv_lib_bsd_gethostbyname=yes
  17798. else
  17799. ac_cv_lib_bsd_gethostbyname=no
  17800. fi
  17801. rm -f core conftest.err conftest.$ac_objext \
  17802. conftest$ac_exeext conftest.$ac_ext
  17803. LIBS=$ac_check_lib_save_LIBS
  17804. fi
  17805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17806. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17807. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17808. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17809. fi
  17810. fi
  17811. fi
  17812. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17813. # socket/setsockopt and other routines are undefined under SCO ODT
  17814. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17815. # on later versions), says Simon Leinen: it contains gethostby*
  17816. # variants that don't use the name server (or something). -lsocket
  17817. # must be given before -lnsl if both are needed. We assume that
  17818. # if connect needs -lnsl, so does gethostbyname.
  17819. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17820. if test "x$ac_cv_func_connect" = xyes; then :
  17821. fi
  17822. if test $ac_cv_func_connect = no; then
  17823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17824. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17825. if ${ac_cv_lib_socket_connect+:} false; then :
  17826. $as_echo_n "(cached) " >&6
  17827. else
  17828. ac_check_lib_save_LIBS=$LIBS
  17829. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17831. /* end confdefs.h. */
  17832. /* Override any GCC internal prototype to avoid an error.
  17833. Use char because int might match the return type of a GCC
  17834. builtin and then its argument prototype would still apply. */
  17835. #ifdef __cplusplus
  17836. extern "C"
  17837. #endif
  17838. char connect ();
  17839. int
  17840. main ()
  17841. {
  17842. return connect ();
  17843. ;
  17844. return 0;
  17845. }
  17846. _ACEOF
  17847. if ac_fn_c_try_link "$LINENO"; then :
  17848. ac_cv_lib_socket_connect=yes
  17849. else
  17850. ac_cv_lib_socket_connect=no
  17851. fi
  17852. rm -f core conftest.err conftest.$ac_objext \
  17853. conftest$ac_exeext conftest.$ac_ext
  17854. LIBS=$ac_check_lib_save_LIBS
  17855. fi
  17856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17857. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17858. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17859. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17860. fi
  17861. fi
  17862. # Guillermo Gomez says -lposix is necessary on A/UX.
  17863. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17864. if test "x$ac_cv_func_remove" = xyes; then :
  17865. fi
  17866. if test $ac_cv_func_remove = no; then
  17867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17868. $as_echo_n "checking for remove in -lposix... " >&6; }
  17869. if ${ac_cv_lib_posix_remove+:} false; then :
  17870. $as_echo_n "(cached) " >&6
  17871. else
  17872. ac_check_lib_save_LIBS=$LIBS
  17873. LIBS="-lposix $LIBS"
  17874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17875. /* end confdefs.h. */
  17876. /* Override any GCC internal prototype to avoid an error.
  17877. Use char because int might match the return type of a GCC
  17878. builtin and then its argument prototype would still apply. */
  17879. #ifdef __cplusplus
  17880. extern "C"
  17881. #endif
  17882. char remove ();
  17883. int
  17884. main ()
  17885. {
  17886. return remove ();
  17887. ;
  17888. return 0;
  17889. }
  17890. _ACEOF
  17891. if ac_fn_c_try_link "$LINENO"; then :
  17892. ac_cv_lib_posix_remove=yes
  17893. else
  17894. ac_cv_lib_posix_remove=no
  17895. fi
  17896. rm -f core conftest.err conftest.$ac_objext \
  17897. conftest$ac_exeext conftest.$ac_ext
  17898. LIBS=$ac_check_lib_save_LIBS
  17899. fi
  17900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17901. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17902. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17903. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17904. fi
  17905. fi
  17906. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17907. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17908. if test "x$ac_cv_func_shmat" = xyes; then :
  17909. fi
  17910. if test $ac_cv_func_shmat = no; then
  17911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17912. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17913. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17914. $as_echo_n "(cached) " >&6
  17915. else
  17916. ac_check_lib_save_LIBS=$LIBS
  17917. LIBS="-lipc $LIBS"
  17918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17919. /* end confdefs.h. */
  17920. /* Override any GCC internal prototype to avoid an error.
  17921. Use char because int might match the return type of a GCC
  17922. builtin and then its argument prototype would still apply. */
  17923. #ifdef __cplusplus
  17924. extern "C"
  17925. #endif
  17926. char shmat ();
  17927. int
  17928. main ()
  17929. {
  17930. return shmat ();
  17931. ;
  17932. return 0;
  17933. }
  17934. _ACEOF
  17935. if ac_fn_c_try_link "$LINENO"; then :
  17936. ac_cv_lib_ipc_shmat=yes
  17937. else
  17938. ac_cv_lib_ipc_shmat=no
  17939. fi
  17940. rm -f core conftest.err conftest.$ac_objext \
  17941. conftest$ac_exeext conftest.$ac_ext
  17942. LIBS=$ac_check_lib_save_LIBS
  17943. fi
  17944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17945. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17946. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17947. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17948. fi
  17949. fi
  17950. fi
  17951. # Check for libraries that X11R6 Xt/Xaw programs need.
  17952. ac_save_LDFLAGS=$LDFLAGS
  17953. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17954. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17955. # check for ICE first), but we must link in the order -lSM -lICE or
  17956. # we get undefined symbols. So assume we have SM if we have ICE.
  17957. # These have to be linked with before -lX11, unlike the other
  17958. # libraries we check for below, so use a different variable.
  17959. # John Interrante, Karl Berry
  17960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17961. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17962. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17963. $as_echo_n "(cached) " >&6
  17964. else
  17965. ac_check_lib_save_LIBS=$LIBS
  17966. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17968. /* end confdefs.h. */
  17969. /* Override any GCC internal prototype to avoid an error.
  17970. Use char because int might match the return type of a GCC
  17971. builtin and then its argument prototype would still apply. */
  17972. #ifdef __cplusplus
  17973. extern "C"
  17974. #endif
  17975. char IceConnectionNumber ();
  17976. int
  17977. main ()
  17978. {
  17979. return IceConnectionNumber ();
  17980. ;
  17981. return 0;
  17982. }
  17983. _ACEOF
  17984. if ac_fn_c_try_link "$LINENO"; then :
  17985. ac_cv_lib_ICE_IceConnectionNumber=yes
  17986. else
  17987. ac_cv_lib_ICE_IceConnectionNumber=no
  17988. fi
  17989. rm -f core conftest.err conftest.$ac_objext \
  17990. conftest$ac_exeext conftest.$ac_ext
  17991. LIBS=$ac_check_lib_save_LIBS
  17992. fi
  17993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17994. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17995. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17996. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17997. fi
  17998. LDFLAGS=$ac_save_LDFLAGS
  17999. fi
  18000. if test x$have_x = xyes; then
  18001. # Check whether --enable-x11-shared was given.
  18002. if test "${enable_x11_shared+set}" = set; then :
  18003. enableval=$enable_x11_shared;
  18004. else
  18005. enable_x11_shared=maybe
  18006. fi
  18007. case "$host" in
  18008. *-*-darwin*)
  18009. # Apple now puts this in /opt/X11
  18010. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18011. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18012. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18013. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18014. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18015. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18016. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18017. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18018. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18019. ;;
  18020. *-*-openbsd*)
  18021. x11_lib='libX11.so'
  18022. x11ext_lib='libXext.so'
  18023. xcursor_lib='libXcursor.so'
  18024. xinerama_lib='libXinerama.so'
  18025. xinput_lib='libXi.so'
  18026. xrandr_lib='libXrandr.so'
  18027. xrender_lib='libXrender.so'
  18028. xss_lib='libXss.so'
  18029. xvidmode_lib='libXxf86vm.so'
  18030. ;;
  18031. *)
  18032. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18033. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18034. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18035. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18036. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18037. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18038. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18039. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18040. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18041. ;;
  18042. esac
  18043. if test x$ac_cv_func_shmat != xyes; then
  18044. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18045. fi
  18046. CFLAGS="$CFLAGS $X_CFLAGS"
  18047. LDFLAGS="$LDFLAGS $X_LIBS"
  18048. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18049. #include <X11/Xproto.h>
  18050. "
  18051. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18052. have_xext_h_hdr=yes
  18053. else
  18054. have_xext_h_hdr=no
  18055. fi
  18056. if test x$have_xext_h_hdr != xyes; then
  18057. as_fn_error $? "
  18058. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18059. " "$LINENO" 5
  18060. fi
  18061. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18062. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18063. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18064. # Needed so SDL applications can include SDL_syswm.h
  18065. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18066. if test x$enable_x11_shared = xmaybe; then
  18067. enable_x11_shared=yes
  18068. fi
  18069. if test x$have_loadso != xyes && \
  18070. test x$enable_x11_shared = xyes; then
  18071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18072. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18073. enable_x11_shared=no
  18074. fi
  18075. if test x$have_loadso = xyes && \
  18076. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18077. echo "-- dynamic libX11 -> $x11_lib"
  18078. echo "-- dynamic libX11ext -> $x11ext_lib"
  18079. cat >>confdefs.h <<_ACEOF
  18080. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18081. _ACEOF
  18082. cat >>confdefs.h <<_ACEOF
  18083. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18084. _ACEOF
  18085. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18086. else
  18087. enable_x11_shared=no
  18088. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18089. SUMMARY_video="${SUMMARY_video} x11"
  18090. fi
  18091. have_video=yes
  18092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  18093. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  18094. have_const_param_XextAddDisplay=no
  18095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18096. /* end confdefs.h. */
  18097. #include <X11/Xlib.h>
  18098. #include <X11/Xproto.h>
  18099. #include <X11/extensions/Xext.h>
  18100. #include <X11/extensions/extutil.h>
  18101. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  18102. int
  18103. main ()
  18104. {
  18105. ;
  18106. return 0;
  18107. }
  18108. _ACEOF
  18109. if ac_fn_c_try_compile "$LINENO"; then :
  18110. have_const_param_XextAddDisplay=yes
  18111. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  18112. fi
  18113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  18115. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  18116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18117. $as_echo_n "checking for XGenericEvent... " >&6; }
  18118. have_XGenericEvent=no
  18119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18120. /* end confdefs.h. */
  18121. #include <X11/Xlib.h>
  18122. int
  18123. main ()
  18124. {
  18125. Display *display;
  18126. XEvent event;
  18127. XGenericEventCookie *cookie = &event.xcookie;
  18128. XNextEvent(display, &event);
  18129. XGetEventData(display, cookie);
  18130. XFreeEventData(display, cookie);
  18131. ;
  18132. return 0;
  18133. }
  18134. _ACEOF
  18135. if ac_fn_c_try_compile "$LINENO"; then :
  18136. have_XGenericEvent=yes
  18137. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18138. fi
  18139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18141. $as_echo "$have_XGenericEvent" >&6; }
  18142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18143. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18144. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18145. $as_echo_n "(cached) " >&6
  18146. else
  18147. ac_check_lib_save_LIBS=$LIBS
  18148. LIBS="-lX11 $LIBS"
  18149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18150. /* end confdefs.h. */
  18151. /* Override any GCC internal prototype to avoid an error.
  18152. Use char because int might match the return type of a GCC
  18153. builtin and then its argument prototype would still apply. */
  18154. #ifdef __cplusplus
  18155. extern "C"
  18156. #endif
  18157. char XkbKeycodeToKeysym ();
  18158. int
  18159. main ()
  18160. {
  18161. return XkbKeycodeToKeysym ();
  18162. ;
  18163. return 0;
  18164. }
  18165. _ACEOF
  18166. if ac_fn_c_try_link "$LINENO"; then :
  18167. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18168. else
  18169. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18170. fi
  18171. rm -f core conftest.err conftest.$ac_objext \
  18172. conftest$ac_exeext conftest.$ac_ext
  18173. LIBS=$ac_check_lib_save_LIBS
  18174. fi
  18175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18176. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18177. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18178. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18179. fi
  18180. # Check whether --enable-video-x11-xcursor was given.
  18181. if test "${enable_video_x11_xcursor+set}" = set; then :
  18182. enableval=$enable_video_x11_xcursor;
  18183. else
  18184. enable_video_x11_xcursor=yes
  18185. fi
  18186. if test x$enable_video_x11_xcursor = xyes; then
  18187. definitely_enable_video_x11_xcursor=no
  18188. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18189. "
  18190. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18191. have_xcursor_h_hdr=yes
  18192. else
  18193. have_xcursor_h_hdr=no
  18194. fi
  18195. if test x$have_xcursor_h_hdr = xyes; then
  18196. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18197. echo "-- dynamic libXcursor -> $xcursor_lib"
  18198. cat >>confdefs.h <<_ACEOF
  18199. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18200. _ACEOF
  18201. definitely_enable_video_x11_xcursor=yes
  18202. else
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18204. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18205. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18206. $as_echo_n "(cached) " >&6
  18207. else
  18208. ac_check_lib_save_LIBS=$LIBS
  18209. LIBS="-lXcursor $LIBS"
  18210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18211. /* end confdefs.h. */
  18212. /* Override any GCC internal prototype to avoid an error.
  18213. Use char because int might match the return type of a GCC
  18214. builtin and then its argument prototype would still apply. */
  18215. #ifdef __cplusplus
  18216. extern "C"
  18217. #endif
  18218. char XcursorImageCreate ();
  18219. int
  18220. main ()
  18221. {
  18222. return XcursorImageCreate ();
  18223. ;
  18224. return 0;
  18225. }
  18226. _ACEOF
  18227. if ac_fn_c_try_link "$LINENO"; then :
  18228. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18229. else
  18230. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18231. fi
  18232. rm -f core conftest.err conftest.$ac_objext \
  18233. conftest$ac_exeext conftest.$ac_ext
  18234. LIBS=$ac_check_lib_save_LIBS
  18235. fi
  18236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18237. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18238. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18239. have_xcursor_lib=yes
  18240. fi
  18241. if test x$have_xcursor_lib = xyes ; then
  18242. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18243. definitely_enable_video_x11_xcursor=yes
  18244. fi
  18245. fi
  18246. fi
  18247. fi
  18248. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18249. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18250. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18251. fi
  18252. # Check whether --enable-video-x11-xdbe was given.
  18253. if test "${enable_video_x11_xdbe+set}" = set; then :
  18254. enableval=$enable_video_x11_xdbe;
  18255. else
  18256. enable_video_x11_xdbe=yes
  18257. fi
  18258. if test x$enable_video_x11_xdbe = xyes; then
  18259. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18260. "
  18261. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18262. have_dbe_h_hdr=yes
  18263. else
  18264. have_dbe_h_hdr=no
  18265. fi
  18266. if test x$have_dbe_h_hdr = xyes; then
  18267. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18268. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18269. fi
  18270. fi
  18271. # Check whether --enable-video-x11-xinerama was given.
  18272. if test "${enable_video_x11_xinerama+set}" = set; then :
  18273. enableval=$enable_video_x11_xinerama;
  18274. else
  18275. enable_video_x11_xinerama=yes
  18276. fi
  18277. if test x$enable_video_x11_xinerama = xyes; then
  18278. definitely_enable_video_x11_xinerama=no
  18279. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18280. "
  18281. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18282. have_xinerama_h_hdr=yes
  18283. else
  18284. have_xinerama_h_hdr=no
  18285. fi
  18286. if test x$have_xinerama_h_hdr = xyes; then
  18287. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18288. echo "-- dynamic libXinerama -> $xinerama_lib"
  18289. cat >>confdefs.h <<_ACEOF
  18290. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18291. _ACEOF
  18292. definitely_enable_video_x11_xinerama=yes
  18293. else
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18295. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18296. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18297. $as_echo_n "(cached) " >&6
  18298. else
  18299. ac_check_lib_save_LIBS=$LIBS
  18300. LIBS="-lXinerama $LIBS"
  18301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18302. /* end confdefs.h. */
  18303. /* Override any GCC internal prototype to avoid an error.
  18304. Use char because int might match the return type of a GCC
  18305. builtin and then its argument prototype would still apply. */
  18306. #ifdef __cplusplus
  18307. extern "C"
  18308. #endif
  18309. char XineramaQueryExtension ();
  18310. int
  18311. main ()
  18312. {
  18313. return XineramaQueryExtension ();
  18314. ;
  18315. return 0;
  18316. }
  18317. _ACEOF
  18318. if ac_fn_c_try_link "$LINENO"; then :
  18319. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18320. else
  18321. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18322. fi
  18323. rm -f core conftest.err conftest.$ac_objext \
  18324. conftest$ac_exeext conftest.$ac_ext
  18325. LIBS=$ac_check_lib_save_LIBS
  18326. fi
  18327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18328. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18329. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18330. have_xinerama_lib=yes
  18331. fi
  18332. if test x$have_xinerama_lib = xyes ; then
  18333. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18334. definitely_enable_video_x11_xinerama=yes
  18335. fi
  18336. fi
  18337. fi
  18338. fi
  18339. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18340. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18341. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18342. fi
  18343. # Check whether --enable-video-x11-xinput was given.
  18344. if test "${enable_video_x11_xinput+set}" = set; then :
  18345. enableval=$enable_video_x11_xinput;
  18346. else
  18347. enable_video_x11_xinput=yes
  18348. fi
  18349. if test x$enable_video_x11_xinput = xyes; then
  18350. definitely_enable_video_x11_xinput=no
  18351. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18352. "
  18353. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18354. have_xinput_h_hdr=yes
  18355. else
  18356. have_xinput_h_hdr=no
  18357. fi
  18358. if test x$have_xinput_h_hdr = xyes; then
  18359. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18360. echo "-- dynamic libXi -> $xinput_lib"
  18361. cat >>confdefs.h <<_ACEOF
  18362. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18363. _ACEOF
  18364. definitely_enable_video_x11_xinput=yes
  18365. else
  18366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18367. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18368. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18369. $as_echo_n "(cached) " >&6
  18370. else
  18371. ac_check_lib_save_LIBS=$LIBS
  18372. LIBS="-lXi $LIBS"
  18373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18374. /* end confdefs.h. */
  18375. /* Override any GCC internal prototype to avoid an error.
  18376. Use char because int might match the return type of a GCC
  18377. builtin and then its argument prototype would still apply. */
  18378. #ifdef __cplusplus
  18379. extern "C"
  18380. #endif
  18381. char XOpenDevice ();
  18382. int
  18383. main ()
  18384. {
  18385. return XOpenDevice ();
  18386. ;
  18387. return 0;
  18388. }
  18389. _ACEOF
  18390. if ac_fn_c_try_link "$LINENO"; then :
  18391. ac_cv_lib_Xi_XOpenDevice=yes
  18392. else
  18393. ac_cv_lib_Xi_XOpenDevice=no
  18394. fi
  18395. rm -f core conftest.err conftest.$ac_objext \
  18396. conftest$ac_exeext conftest.$ac_ext
  18397. LIBS=$ac_check_lib_save_LIBS
  18398. fi
  18399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18400. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18401. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18402. have_xinput_lib=yes
  18403. fi
  18404. if test x$have_xinput_lib = xyes ; then
  18405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18406. definitely_enable_video_x11_xinput=yes
  18407. fi
  18408. fi
  18409. fi
  18410. fi
  18411. if test x$definitely_enable_video_x11_xinput = xyes; then
  18412. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18413. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18415. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18416. have_xinput2_multitouch=no
  18417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18418. /* end confdefs.h. */
  18419. #include <X11/Xlib.h>
  18420. #include <X11/Xproto.h>
  18421. #include <X11/extensions/XInput2.h>
  18422. int
  18423. main ()
  18424. {
  18425. int event_type = XI_TouchBegin;
  18426. XITouchClassInfo *t;
  18427. ;
  18428. return 0;
  18429. }
  18430. _ACEOF
  18431. if ac_fn_c_try_compile "$LINENO"; then :
  18432. have_xinput2_multitouch=yes
  18433. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18434. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18435. fi
  18436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18438. $as_echo "$have_xinput2_multitouch" >&6; }
  18439. fi
  18440. # Check whether --enable-video-x11-xrandr was given.
  18441. if test "${enable_video_x11_xrandr+set}" = set; then :
  18442. enableval=$enable_video_x11_xrandr;
  18443. else
  18444. enable_video_x11_xrandr=yes
  18445. fi
  18446. if test x$enable_video_x11_xrandr = xyes; then
  18447. definitely_enable_video_x11_xrandr=no
  18448. have_xrandr_h_hdr=no
  18449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18450. /* end confdefs.h. */
  18451. #include <X11/Xlib.h>
  18452. #include <X11/extensions/Xrandr.h>
  18453. int
  18454. main ()
  18455. {
  18456. XRRScreenResources *res = NULL;
  18457. ;
  18458. return 0;
  18459. }
  18460. _ACEOF
  18461. if ac_fn_c_try_compile "$LINENO"; then :
  18462. have_xrandr_h_hdr=yes
  18463. fi
  18464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18465. if test x$have_xrandr_h_hdr = xyes; then
  18466. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18467. echo "-- dynamic libXrandr -> $xrandr_lib"
  18468. cat >>confdefs.h <<_ACEOF
  18469. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18470. _ACEOF
  18471. definitely_enable_video_x11_xrandr=yes
  18472. else
  18473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18474. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18475. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18476. $as_echo_n "(cached) " >&6
  18477. else
  18478. ac_check_lib_save_LIBS=$LIBS
  18479. LIBS="-lXrandr $LIBS"
  18480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18481. /* end confdefs.h. */
  18482. /* Override any GCC internal prototype to avoid an error.
  18483. Use char because int might match the return type of a GCC
  18484. builtin and then its argument prototype would still apply. */
  18485. #ifdef __cplusplus
  18486. extern "C"
  18487. #endif
  18488. char XRRQueryExtension ();
  18489. int
  18490. main ()
  18491. {
  18492. return XRRQueryExtension ();
  18493. ;
  18494. return 0;
  18495. }
  18496. _ACEOF
  18497. if ac_fn_c_try_link "$LINENO"; then :
  18498. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18499. else
  18500. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18501. fi
  18502. rm -f core conftest.err conftest.$ac_objext \
  18503. conftest$ac_exeext conftest.$ac_ext
  18504. LIBS=$ac_check_lib_save_LIBS
  18505. fi
  18506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18507. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18508. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18509. have_xrandr_lib=yes
  18510. fi
  18511. if test x$have_xrandr_lib = xyes ; then
  18512. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18513. definitely_enable_video_x11_xrandr=yes
  18514. fi
  18515. fi
  18516. fi
  18517. fi
  18518. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18519. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18520. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18521. fi
  18522. # Check whether --enable-video-x11-scrnsaver was given.
  18523. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18524. enableval=$enable_video_x11_scrnsaver;
  18525. else
  18526. enable_video_x11_scrnsaver=yes
  18527. fi
  18528. if test x$enable_video_x11_scrnsaver = xyes; then
  18529. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18530. "
  18531. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18532. have_scrnsaver_h_hdr=yes
  18533. else
  18534. have_scrnsaver_h_hdr=no
  18535. fi
  18536. if test x$have_scrnsaver_h_hdr = xyes; then
  18537. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18538. echo "-- dynamic libXss -> $xss_lib"
  18539. cat >>confdefs.h <<_ACEOF
  18540. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18541. _ACEOF
  18542. definitely_enable_video_x11_scrnsaver=yes
  18543. else
  18544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18545. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18546. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18547. $as_echo_n "(cached) " >&6
  18548. else
  18549. ac_check_lib_save_LIBS=$LIBS
  18550. LIBS="-lXss $LIBS"
  18551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18552. /* end confdefs.h. */
  18553. /* Override any GCC internal prototype to avoid an error.
  18554. Use char because int might match the return type of a GCC
  18555. builtin and then its argument prototype would still apply. */
  18556. #ifdef __cplusplus
  18557. extern "C"
  18558. #endif
  18559. char XScreenSaverSuspend ();
  18560. int
  18561. main ()
  18562. {
  18563. return XScreenSaverSuspend ();
  18564. ;
  18565. return 0;
  18566. }
  18567. _ACEOF
  18568. if ac_fn_c_try_link "$LINENO"; then :
  18569. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18570. else
  18571. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18572. fi
  18573. rm -f core conftest.err conftest.$ac_objext \
  18574. conftest$ac_exeext conftest.$ac_ext
  18575. LIBS=$ac_check_lib_save_LIBS
  18576. fi
  18577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18578. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18579. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18580. have_xss_lib=yes
  18581. fi
  18582. if test x$have_xss_lib = xyes ; then
  18583. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18584. definitely_enable_video_x11_scrnsaver=yes
  18585. fi
  18586. fi
  18587. fi
  18588. fi
  18589. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18590. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18591. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18592. fi
  18593. # Check whether --enable-video-x11-xshape was given.
  18594. if test "${enable_video_x11_xshape+set}" = set; then :
  18595. enableval=$enable_video_x11_xshape;
  18596. else
  18597. enable_video_x11_xshape=yes
  18598. fi
  18599. if test x$enable_video_x11_xshape = xyes; then
  18600. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18601. "
  18602. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18603. have_shape_h_hdr=yes
  18604. else
  18605. have_shape_h_hdr=no
  18606. fi
  18607. if test x$have_shape_h_hdr = xyes; then
  18608. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18609. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18610. fi
  18611. fi
  18612. # Check whether --enable-video-x11-vm was given.
  18613. if test "${enable_video_x11_vm+set}" = set; then :
  18614. enableval=$enable_video_x11_vm;
  18615. else
  18616. enable_video_x11_vm=yes
  18617. fi
  18618. if test x$enable_video_x11_vm = xyes; then
  18619. definitely_enable_video_x11_vm=no
  18620. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18621. "
  18622. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18623. have_vm_h_hdr=yes
  18624. else
  18625. have_vm_h_hdr=no
  18626. fi
  18627. if test x$have_vm_h_hdr = xyes; then
  18628. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18629. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18630. cat >>confdefs.h <<_ACEOF
  18631. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18632. _ACEOF
  18633. definitely_enable_video_x11_vm=yes
  18634. else
  18635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18636. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18637. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18638. $as_echo_n "(cached) " >&6
  18639. else
  18640. ac_check_lib_save_LIBS=$LIBS
  18641. LIBS="-lXxf86vm $LIBS"
  18642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18643. /* end confdefs.h. */
  18644. /* Override any GCC internal prototype to avoid an error.
  18645. Use char because int might match the return type of a GCC
  18646. builtin and then its argument prototype would still apply. */
  18647. #ifdef __cplusplus
  18648. extern "C"
  18649. #endif
  18650. char XF86VidModeQueryVersion ();
  18651. int
  18652. main ()
  18653. {
  18654. return XF86VidModeQueryVersion ();
  18655. ;
  18656. return 0;
  18657. }
  18658. _ACEOF
  18659. if ac_fn_c_try_link "$LINENO"; then :
  18660. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18661. else
  18662. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18663. fi
  18664. rm -f core conftest.err conftest.$ac_objext \
  18665. conftest$ac_exeext conftest.$ac_ext
  18666. LIBS=$ac_check_lib_save_LIBS
  18667. fi
  18668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18669. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18670. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18671. have_vm_lib=yes
  18672. fi
  18673. if test x$have_vm_lib = xyes ; then
  18674. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18675. definitely_enable_video_x11_vm=yes
  18676. fi
  18677. fi
  18678. fi
  18679. fi
  18680. if test x$definitely_enable_video_x11_vm = xyes; then
  18681. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18682. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18683. fi
  18684. fi
  18685. else
  18686. # Prevent Mesa from including X11 headers
  18687. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18688. fi
  18689. }
  18690. CheckVivanteVideo()
  18691. {
  18692. # Check whether --enable-video-vivante was given.
  18693. if test "${enable_video_vivante+set}" = set; then :
  18694. enableval=$enable_video_vivante;
  18695. else
  18696. enable_video_vivante=yes
  18697. fi
  18698. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18700. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18701. have_vivante_vdk=no
  18702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18703. /* end confdefs.h. */
  18704. #define LINUX
  18705. #define EGL_API_FB
  18706. #include <gc_vdk.h>
  18707. int
  18708. main ()
  18709. {
  18710. ;
  18711. return 0;
  18712. }
  18713. _ACEOF
  18714. if ac_fn_c_try_compile "$LINENO"; then :
  18715. have_vivante_vdk=yes
  18716. fi
  18717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18719. $as_echo "$have_vivante_vdk" >&6; }
  18720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18721. $as_echo_n "checking for Vivante FB API... " >&6; }
  18722. have_vivante_egl=no
  18723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18724. /* end confdefs.h. */
  18725. #define LINUX
  18726. #define EGL_API_FB
  18727. #include <EGL/eglvivante.h>
  18728. int
  18729. main ()
  18730. {
  18731. ;
  18732. return 0;
  18733. }
  18734. _ACEOF
  18735. if ac_fn_c_try_compile "$LINENO"; then :
  18736. have_vivante_egl=yes
  18737. fi
  18738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18740. $as_echo "$have_vivante_egl" >&6; }
  18741. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18742. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18743. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18744. if test x$have_vivante_vdk = xyes; then
  18745. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18746. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18747. fi
  18748. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18749. SUMMARY_video="${SUMMARY_video} vivante"
  18750. have_video=yes
  18751. fi
  18752. fi
  18753. }
  18754. CheckHaikuVideo()
  18755. {
  18756. if test x$enable_video = xyes; then
  18757. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18758. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18759. have_video=yes
  18760. SUMMARY_video="${SUMMARY_video} haiku"
  18761. fi
  18762. }
  18763. CheckCOCOA()
  18764. {
  18765. # Check whether --enable-video-cocoa was given.
  18766. if test "${enable_video_cocoa+set}" = set; then :
  18767. enableval=$enable_video_cocoa;
  18768. else
  18769. enable_video_cocoa=yes
  18770. fi
  18771. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18772. save_CFLAGS="$CFLAGS"
  18773. CFLAGS="$CFLAGS -x objective-c"
  18774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18775. $as_echo_n "checking for Cocoa framework... " >&6; }
  18776. have_cocoa=no
  18777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18778. /* end confdefs.h. */
  18779. #import <Cocoa/Cocoa.h>
  18780. int
  18781. main ()
  18782. {
  18783. ;
  18784. return 0;
  18785. }
  18786. _ACEOF
  18787. if ac_fn_c_try_compile "$LINENO"; then :
  18788. have_cocoa=yes
  18789. fi
  18790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18792. $as_echo "$have_cocoa" >&6; }
  18793. CFLAGS="$save_CFLAGS"
  18794. if test x$have_cocoa = xyes; then
  18795. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18796. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18797. SUMMARY_video="${SUMMARY_video} cocoa"
  18798. have_video=yes
  18799. fi
  18800. fi
  18801. }
  18802. CheckMETAL()
  18803. {
  18804. # Check whether --enable-video-metal was given.
  18805. if test "${enable_video_metal+set}" = set; then :
  18806. enableval=$enable_video_metal;
  18807. else
  18808. enable_video_metal=yes
  18809. fi
  18810. # Check whether --enable-render-metal was given.
  18811. if test "${enable_render_metal+set}" = set; then :
  18812. enableval=$enable_render_metal;
  18813. else
  18814. enable_render_metal=yes
  18815. fi
  18816. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18817. save_CFLAGS="$CFLAGS"
  18818. CFLAGS="$CFLAGS -x objective-c"
  18819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18820. $as_echo_n "checking for Metal framework... " >&6; }
  18821. have_metal=no
  18822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18823. /* end confdefs.h. */
  18824. #import <Cocoa/Cocoa.h>
  18825. #import <Metal/Metal.h>
  18826. #import <QuartzCore/CAMetalLayer.h>
  18827. #if TARGET_CPU_X86
  18828. #error Metal doesn't work on this configuration
  18829. #endif
  18830. int
  18831. main ()
  18832. {
  18833. ;
  18834. return 0;
  18835. }
  18836. _ACEOF
  18837. if ac_fn_c_try_compile "$LINENO"; then :
  18838. have_metal=yes
  18839. fi
  18840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18841. CFLAGS="$save_CFLAGS"
  18842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18843. $as_echo "$have_metal" >&6; }
  18844. if test x$have_metal = xyes; then
  18845. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18846. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18847. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18848. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18849. fi
  18850. SUMMARY_video="${SUMMARY_video} metal"
  18851. else
  18852. enable_video_metal=no
  18853. enable_render_metal=no
  18854. fi
  18855. fi
  18856. }
  18857. CheckDirectFB()
  18858. {
  18859. # Check whether --enable-video-directfb was given.
  18860. if test "${enable_video_directfb+set}" = set; then :
  18861. enableval=$enable_video_directfb;
  18862. else
  18863. enable_video_directfb=no
  18864. fi
  18865. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18866. pkg_failed=no
  18867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18868. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18869. if test -n "$DIRECTFB_CFLAGS"; then
  18870. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18871. elif test -n "$PKG_CONFIG"; then
  18872. if test -n "$PKG_CONFIG" && \
  18873. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18874. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18875. ac_status=$?
  18876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18877. test $ac_status = 0; }; then
  18878. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18879. test "x$?" != "x0" && pkg_failed=yes
  18880. else
  18881. pkg_failed=yes
  18882. fi
  18883. else
  18884. pkg_failed=untried
  18885. fi
  18886. if test -n "$DIRECTFB_LIBS"; then
  18887. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18888. elif test -n "$PKG_CONFIG"; then
  18889. if test -n "$PKG_CONFIG" && \
  18890. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18891. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18892. ac_status=$?
  18893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18894. test $ac_status = 0; }; then
  18895. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18896. test "x$?" != "x0" && pkg_failed=yes
  18897. else
  18898. pkg_failed=yes
  18899. fi
  18900. else
  18901. pkg_failed=untried
  18902. fi
  18903. if test $pkg_failed = yes; then
  18904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18905. $as_echo "no" >&6; }
  18906. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18907. _pkg_short_errors_supported=yes
  18908. else
  18909. _pkg_short_errors_supported=no
  18910. fi
  18911. if test $_pkg_short_errors_supported = yes; then
  18912. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18913. else
  18914. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18915. fi
  18916. # Put the nasty error message in config.log where it belongs
  18917. echo "$DIRECTFB_PKG_ERRORS" >&5
  18918. video_directfb=no
  18919. elif test $pkg_failed = untried; then
  18920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18921. $as_echo "no" >&6; }
  18922. video_directfb=no
  18923. else
  18924. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18925. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18927. $as_echo "yes" >&6; }
  18928. video_directfb=yes
  18929. fi
  18930. if test x$video_directfb = xyes; then
  18931. # SuSE 11.1 installs directfb-config without directfb-devel
  18932. save_CPPFLAGS="$CPPFLAGS"
  18933. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18934. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18935. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18936. have_directfb_hdr=yes
  18937. else
  18938. have_directfb_hdr=no
  18939. fi
  18940. CPPFLAGS="$save_CPPFLAGS"
  18941. video_directfb=$have_directfb_hdr
  18942. fi
  18943. if test x$video_directfb = xyes; then
  18944. # Check whether --enable-directfb-shared was given.
  18945. if test "${enable_directfb_shared+set}" = set; then :
  18946. enableval=$enable_directfb_shared;
  18947. else
  18948. enable_directfb_shared=yes
  18949. fi
  18950. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18951. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18952. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18953. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18954. directfb_shared=no
  18955. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18956. if test x$have_loadso != xyes && \
  18957. test x$enable_directfb_shared = xyes; then
  18958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18959. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18960. fi
  18961. if test x$have_loadso = xyes && \
  18962. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18963. directfb_shared=yes
  18964. echo "-- dynamic libdirectfb -> $directfb_lib"
  18965. cat >>confdefs.h <<_ACEOF
  18966. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18967. _ACEOF
  18968. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18969. else
  18970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18971. SUMMARY_video="${SUMMARY_video} directfb"
  18972. fi
  18973. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18974. have_video=yes
  18975. fi
  18976. fi
  18977. }
  18978. CheckKMSDRM()
  18979. {
  18980. # Check whether --enable-video-kmsdrm was given.
  18981. if test "${enable_video_kmsdrm+set}" = set; then :
  18982. enableval=$enable_video_kmsdrm;
  18983. else
  18984. enable_video_kmsdrm=no
  18985. fi
  18986. if test x$enable_video = xyes && \
  18987. test x$enable_video_kmsdrm = xyes && \
  18988. test x$video_opengl_egl = xyes; then
  18989. video_kmsdrm=no
  18990. pkg_failed=no
  18991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  18992. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  18993. if test -n "$LIBDRM_CFLAGS"; then
  18994. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18995. elif test -n "$PKG_CONFIG"; then
  18996. if test -n "$PKG_CONFIG" && \
  18997. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18998. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18999. ac_status=$?
  19000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19001. test $ac_status = 0; }; then
  19002. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19003. test "x$?" != "x0" && pkg_failed=yes
  19004. else
  19005. pkg_failed=yes
  19006. fi
  19007. else
  19008. pkg_failed=untried
  19009. fi
  19010. if test -n "$LIBDRM_LIBS"; then
  19011. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19012. elif test -n "$PKG_CONFIG"; then
  19013. if test -n "$PKG_CONFIG" && \
  19014. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19015. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19016. ac_status=$?
  19017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19018. test $ac_status = 0; }; then
  19019. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19020. test "x$?" != "x0" && pkg_failed=yes
  19021. else
  19022. pkg_failed=yes
  19023. fi
  19024. else
  19025. pkg_failed=untried
  19026. fi
  19027. if test $pkg_failed = yes; then
  19028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19029. $as_echo "no" >&6; }
  19030. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19031. _pkg_short_errors_supported=yes
  19032. else
  19033. _pkg_short_errors_supported=no
  19034. fi
  19035. if test $_pkg_short_errors_supported = yes; then
  19036. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19037. else
  19038. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19039. fi
  19040. # Put the nasty error message in config.log where it belongs
  19041. echo "$LIBDRM_PKG_ERRORS" >&5
  19042. libdrm_avail=no
  19043. elif test $pkg_failed = untried; then
  19044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19045. $as_echo "no" >&6; }
  19046. libdrm_avail=no
  19047. else
  19048. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19049. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19051. $as_echo "yes" >&6; }
  19052. libdrm_avail=yes
  19053. fi
  19054. pkg_failed=no
  19055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19056. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19057. if test -n "$LIBGBM_CFLAGS"; then
  19058. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19059. elif test -n "$PKG_CONFIG"; then
  19060. if test -n "$PKG_CONFIG" && \
  19061. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19062. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19063. ac_status=$?
  19064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19065. test $ac_status = 0; }; then
  19066. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19067. test "x$?" != "x0" && pkg_failed=yes
  19068. else
  19069. pkg_failed=yes
  19070. fi
  19071. else
  19072. pkg_failed=untried
  19073. fi
  19074. if test -n "$LIBGBM_LIBS"; then
  19075. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19076. elif test -n "$PKG_CONFIG"; then
  19077. if test -n "$PKG_CONFIG" && \
  19078. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19079. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19080. ac_status=$?
  19081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19082. test $ac_status = 0; }; then
  19083. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19084. test "x$?" != "x0" && pkg_failed=yes
  19085. else
  19086. pkg_failed=yes
  19087. fi
  19088. else
  19089. pkg_failed=untried
  19090. fi
  19091. if test $pkg_failed = yes; then
  19092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19093. $as_echo "no" >&6; }
  19094. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19095. _pkg_short_errors_supported=yes
  19096. else
  19097. _pkg_short_errors_supported=no
  19098. fi
  19099. if test $_pkg_short_errors_supported = yes; then
  19100. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19101. else
  19102. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19103. fi
  19104. # Put the nasty error message in config.log where it belongs
  19105. echo "$LIBGBM_PKG_ERRORS" >&5
  19106. libgbm_avail=no
  19107. elif test $pkg_failed = untried; then
  19108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19109. $as_echo "no" >&6; }
  19110. libgbm_avail=no
  19111. else
  19112. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19113. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19115. $as_echo "yes" >&6; }
  19116. libgbm_avail=yes
  19117. fi
  19118. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19119. video_kmsdrm=yes
  19120. fi
  19121. if test x$video_kmsdrm = xyes; then
  19122. # Check whether --enable-kmsdrm-shared was given.
  19123. if test "${enable_kmsdrm_shared+set}" = set; then :
  19124. enableval=$enable_kmsdrm_shared;
  19125. else
  19126. enable_kmsdrm_shared=yes
  19127. fi
  19128. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19129. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19130. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19132. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19133. kmsdrm_shared=no
  19134. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  19135. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  19136. if test x$have_loadso != xyes && \
  19137. test x$enable_kmsdrm_shared = xyes; then
  19138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19139. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19140. fi
  19141. if test x$have_loadso = xyes && \
  19142. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19143. kmsdrm_shared=yes
  19144. cat >>confdefs.h <<_ACEOF
  19145. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19146. _ACEOF
  19147. cat >>confdefs.h <<_ACEOF
  19148. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19149. _ACEOF
  19150. cat >>confdefs.h <<_ACEOF
  19151. #define HAVE_KMSDRM_SHARED "TRUE"
  19152. _ACEOF
  19153. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19154. else
  19155. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19156. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19157. fi
  19158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19159. $as_echo "$kmsdrm_shared" >&6; }
  19160. have_video=yes
  19161. fi
  19162. fi
  19163. }
  19164. CheckDummyVideo()
  19165. {
  19166. # Check whether --enable-video-dummy was given.
  19167. if test "${enable_video_dummy+set}" = set; then :
  19168. enableval=$enable_video_dummy;
  19169. else
  19170. enable_video_dummy=yes
  19171. fi
  19172. if test x$enable_video_dummy = xyes; then
  19173. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19174. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19175. have_video=yes
  19176. SUMMARY_video="${SUMMARY_video} dummy"
  19177. fi
  19178. }
  19179. CheckQNXVideo()
  19180. {
  19181. if test x$enable_video = xyes; then
  19182. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19183. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19184. have_video=yes
  19185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19186. SUMMARY_video="${SUMMARY_video} qnx"
  19187. fi
  19188. }
  19189. CheckQNXAudio()
  19190. {
  19191. if test x$enable_audio = xyes; then
  19192. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19193. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19194. have_audio=yes
  19195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19196. SUMMARY_audio="${SUMMARY_audio} qsa"
  19197. fi
  19198. }
  19199. # Check whether --enable-video-opengl was given.
  19200. if test "${enable_video_opengl+set}" = set; then :
  19201. enableval=$enable_video_opengl;
  19202. else
  19203. enable_video_opengl=yes
  19204. fi
  19205. CheckOpenGLX11()
  19206. {
  19207. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19209. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19210. video_opengl=no
  19211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19212. /* end confdefs.h. */
  19213. #include <GL/gl.h>
  19214. #include <GL/glx.h>
  19215. int
  19216. main ()
  19217. {
  19218. ;
  19219. return 0;
  19220. }
  19221. _ACEOF
  19222. if ac_fn_c_try_compile "$LINENO"; then :
  19223. video_opengl=yes
  19224. fi
  19225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19227. $as_echo "$video_opengl" >&6; }
  19228. if test x$video_opengl = xyes; then
  19229. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19230. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19231. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19232. SUMMARY_video="${SUMMARY_video} opengl"
  19233. fi
  19234. fi
  19235. }
  19236. # Check whether --enable-video-opengles was given.
  19237. if test "${enable_video_opengles+set}" = set; then :
  19238. enableval=$enable_video_opengles;
  19239. else
  19240. enable_video_opengles=yes
  19241. fi
  19242. # Check whether --enable-video-opengles1 was given.
  19243. if test "${enable_video_opengles1+set}" = set; then :
  19244. enableval=$enable_video_opengles1;
  19245. else
  19246. enable_video_opengles1=yes
  19247. fi
  19248. # Check whether --enable-video-opengles2 was given.
  19249. if test "${enable_video_opengles2+set}" = set; then :
  19250. enableval=$enable_video_opengles2;
  19251. else
  19252. enable_video_opengles2=yes
  19253. fi
  19254. CheckOpenGLESX11()
  19255. {
  19256. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19258. $as_echo_n "checking for EGL support... " >&6; }
  19259. video_opengl_egl=no
  19260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19261. /* end confdefs.h. */
  19262. #define LINUX
  19263. #define EGL_API_FB
  19264. #define MESA_EGL_NO_X11_HEADERS
  19265. #define EGL_NO_X11
  19266. #include <EGL/egl.h>
  19267. #include <EGL/eglext.h>
  19268. int
  19269. main ()
  19270. {
  19271. ;
  19272. return 0;
  19273. }
  19274. _ACEOF
  19275. if ac_fn_c_try_compile "$LINENO"; then :
  19276. video_opengl_egl=yes
  19277. fi
  19278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19280. $as_echo "$video_opengl_egl" >&6; }
  19281. if test x$video_opengl_egl = xyes; then
  19282. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19283. fi
  19284. if test x$enable_video_opengles1 = xyes; then
  19285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19286. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19287. video_opengles_v1=no
  19288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19289. /* end confdefs.h. */
  19290. #include <GLES/gl.h>
  19291. #include <GLES/glext.h>
  19292. int
  19293. main ()
  19294. {
  19295. ;
  19296. return 0;
  19297. }
  19298. _ACEOF
  19299. if ac_fn_c_try_compile "$LINENO"; then :
  19300. video_opengles_v1=yes
  19301. fi
  19302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19304. $as_echo "$video_opengles_v1" >&6; }
  19305. if test x$video_opengles_v1 = xyes; then
  19306. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19307. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19308. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19309. fi
  19310. fi
  19311. if test x$enable_video_opengles2 = xyes; then
  19312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19313. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19314. video_opengles_v2=no
  19315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19316. /* end confdefs.h. */
  19317. #include <GLES2/gl2.h>
  19318. #include <GLES2/gl2ext.h>
  19319. int
  19320. main ()
  19321. {
  19322. ;
  19323. return 0;
  19324. }
  19325. _ACEOF
  19326. if ac_fn_c_try_compile "$LINENO"; then :
  19327. video_opengles_v2=yes
  19328. fi
  19329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19331. $as_echo "$video_opengles_v2" >&6; }
  19332. if test x$video_opengles_v2 = xyes; then
  19333. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19334. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19335. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19336. fi
  19337. fi
  19338. fi
  19339. }
  19340. CheckEGLKMSDRM()
  19341. {
  19342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19343. $as_echo_n "checking for EGL support... " >&6; }
  19344. video_opengl_egl=no
  19345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19346. /* end confdefs.h. */
  19347. #define LINUX
  19348. #define EGL_API_FB
  19349. #define MESA_EGL_NO_X11_HEADERS
  19350. #define EGL_NO_X11
  19351. #include <EGL/egl.h>
  19352. #include <EGL/eglext.h>
  19353. int
  19354. main ()
  19355. {
  19356. ;
  19357. return 0;
  19358. }
  19359. _ACEOF
  19360. if ac_fn_c_try_compile "$LINENO"; then :
  19361. video_opengl_egl=yes
  19362. fi
  19363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19365. $as_echo "$video_opengl_egl" >&6; }
  19366. if test x$video_opengl_egl = xyes; then
  19367. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19368. fi
  19369. }
  19370. CheckWINDOWSGL()
  19371. {
  19372. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19373. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19374. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19375. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19376. SUMMARY_video="${SUMMARY_video} opengl"
  19377. fi
  19378. }
  19379. CheckWINDOWSGLES()
  19380. {
  19381. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19383. $as_echo_n "checking for EGL support... " >&6; }
  19384. video_opengl_egl=no
  19385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19386. /* end confdefs.h. */
  19387. #include <EGL/egl.h>
  19388. int
  19389. main ()
  19390. {
  19391. ;
  19392. return 0;
  19393. }
  19394. _ACEOF
  19395. if ac_fn_c_try_compile "$LINENO"; then :
  19396. video_opengl_egl=yes
  19397. fi
  19398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19400. $as_echo "$video_opengl_egl" >&6; }
  19401. if test x$video_opengl_egl = xyes; then
  19402. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19403. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19404. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19405. fi
  19406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19407. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19408. video_opengles_v2=no
  19409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19410. /* end confdefs.h. */
  19411. #include <GLES2/gl2.h>
  19412. #include <GLES2/gl2ext.h>
  19413. int
  19414. main ()
  19415. {
  19416. ;
  19417. return 0;
  19418. }
  19419. _ACEOF
  19420. if ac_fn_c_try_compile "$LINENO"; then :
  19421. video_opengles_v2=yes
  19422. fi
  19423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19425. $as_echo "$video_opengles_v2" >&6; }
  19426. if test x$video_opengles_v2 = xyes; then
  19427. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19428. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19429. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19430. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19431. fi
  19432. fi
  19433. }
  19434. CheckHaikuGL()
  19435. {
  19436. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19437. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19438. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19439. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19440. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19441. SUMMARY_video="${SUMMARY_video} opengl"
  19442. fi
  19443. }
  19444. CheckMacGL()
  19445. {
  19446. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19447. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19448. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19449. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19450. SUMMARY_video="${SUMMARY_video} opengl"
  19451. fi
  19452. }
  19453. CheckMacGLES()
  19454. {
  19455. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19456. video_opengl_egl=yes
  19457. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19458. video_opengles_v2=yes
  19459. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19460. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19461. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19462. fi
  19463. }
  19464. CheckEmscriptenGLES()
  19465. {
  19466. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19468. $as_echo_n "checking for EGL support... " >&6; }
  19469. video_opengl_egl=no
  19470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19471. /* end confdefs.h. */
  19472. #include <EGL/egl.h>
  19473. int
  19474. main ()
  19475. {
  19476. ;
  19477. return 0;
  19478. }
  19479. _ACEOF
  19480. if ac_fn_c_try_compile "$LINENO"; then :
  19481. video_opengl_egl=yes
  19482. fi
  19483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19485. $as_echo "$video_opengl_egl" >&6; }
  19486. if test x$video_opengl_egl = xyes; then
  19487. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19488. fi
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19490. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19491. video_opengles_v2=no
  19492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19493. /* end confdefs.h. */
  19494. #include <GLES2/gl2.h>
  19495. #include <GLES2/gl2ext.h>
  19496. int
  19497. main ()
  19498. {
  19499. ;
  19500. return 0;
  19501. }
  19502. _ACEOF
  19503. if ac_fn_c_try_compile "$LINENO"; then :
  19504. video_opengles_v2=yes
  19505. fi
  19506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19508. $as_echo "$video_opengles_v2" >&6; }
  19509. if test x$video_opengles_v2 = xyes; then
  19510. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19511. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19512. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19513. fi
  19514. fi
  19515. }
  19516. # Check whether --enable-video-vulkan was given.
  19517. if test "${enable_video_vulkan+set}" = set; then :
  19518. enableval=$enable_video_vulkan;
  19519. else
  19520. enable_video_vulkan=yes
  19521. fi
  19522. CheckVulkan()
  19523. {
  19524. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19525. case "$host" in
  19526. *-*-android*)
  19527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19528. /* end confdefs.h. */
  19529. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19530. #error Vulkan doesn't work on this configuration
  19531. #endif
  19532. int
  19533. main ()
  19534. {
  19535. ;
  19536. return 0;
  19537. }
  19538. _ACEOF
  19539. if ac_fn_c_try_compile "$LINENO"; then :
  19540. else
  19541. enable_video_vulkan=no
  19542. fi
  19543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19544. ;;
  19545. *-*-darwin*)
  19546. save_CFLAGS="$CFLAGS"
  19547. CFLAGS="$CFLAGS -x objective-c"
  19548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19549. /* end confdefs.h. */
  19550. #include <Cocoa/Cocoa.h>
  19551. #include <Metal/Metal.h>
  19552. #include <QuartzCore/CAMetalLayer.h>
  19553. #if TARGET_CPU_X86
  19554. #error Vulkan doesn't work on this configuration
  19555. #endif
  19556. int
  19557. main ()
  19558. {
  19559. ;
  19560. return 0;
  19561. }
  19562. _ACEOF
  19563. if ac_fn_c_try_compile "$LINENO"; then :
  19564. else
  19565. enable_video_vulkan=no
  19566. fi
  19567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19568. CFLAGS="$save_CFLAGS"
  19569. ;;
  19570. *)
  19571. ;;
  19572. esac
  19573. if test x$enable_video_vulkan = xno; then
  19574. # For reasons I am totally unable to see, I get an undefined macro error if
  19575. # I put this in the AC_TRY_COMPILE.
  19576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19577. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19578. fi
  19579. fi
  19580. if test x$enable_video_vulkan = xyes; then
  19581. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19582. SUMMARY_video="${SUMMARY_video} vulkan"
  19583. fi
  19584. }
  19585. CheckInputEvents()
  19586. {
  19587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19588. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19589. use_input_events=no
  19590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19591. /* end confdefs.h. */
  19592. #include <linux/input.h>
  19593. int
  19594. main ()
  19595. {
  19596. #ifndef EVIOCGNAME
  19597. #error EVIOCGNAME() ioctl not available
  19598. #endif
  19599. ;
  19600. return 0;
  19601. }
  19602. _ACEOF
  19603. if ac_fn_c_try_compile "$LINENO"; then :
  19604. use_input_events=yes
  19605. fi
  19606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19608. $as_echo "$use_input_events" >&6; }
  19609. if test x$use_input_events = xyes; then
  19610. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19611. SUMMARY_input="${SUMMARY_input} linuxev"
  19612. fi
  19613. }
  19614. CheckInputKD()
  19615. {
  19616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19617. $as_echo_n "checking for Linux kd.h... " >&6; }
  19618. use_input_kd=no
  19619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19620. /* end confdefs.h. */
  19621. #include <linux/kd.h>
  19622. #include <linux/keyboard.h>
  19623. int
  19624. main ()
  19625. {
  19626. struct kbentry kbe;
  19627. kbe.kb_table = KG_CTRL;
  19628. ioctl(0, KDGKBENT, &kbe);
  19629. ;
  19630. return 0;
  19631. }
  19632. _ACEOF
  19633. if ac_fn_c_try_compile "$LINENO"; then :
  19634. use_input_kd=yes
  19635. fi
  19636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19638. $as_echo "$use_input_kd" >&6; }
  19639. if test x$use_input_kd = xyes; then
  19640. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19641. SUMMARY_input="${SUMMARY_input} linuxkd"
  19642. fi
  19643. }
  19644. CheckInputKBIO()
  19645. {
  19646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19647. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19648. use_input_kbio=no
  19649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19650. /* end confdefs.h. */
  19651. #include <sys/kbio.h>
  19652. #include <sys/ioctl.h>
  19653. int
  19654. main ()
  19655. {
  19656. accentmap_t accTable;
  19657. ioctl(0, KDENABIO, 1);
  19658. ;
  19659. return 0;
  19660. }
  19661. _ACEOF
  19662. if ac_fn_c_try_compile "$LINENO"; then :
  19663. use_input_kbio=yes
  19664. fi
  19665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19667. $as_echo "$use_input_kbio" >&6; }
  19668. if test x$use_input_kbio = xyes; then
  19669. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19670. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19671. fi
  19672. }
  19673. CheckInputWSCONS()
  19674. {
  19675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19676. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19677. use_input_wscons=no
  19678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19679. /* end confdefs.h. */
  19680. #include <sys/time.h>
  19681. #include <dev/wscons/wsconsio.h>
  19682. #include <dev/wscons/wsksymdef.h>
  19683. #include <dev/wscons/wsksymvar.h>
  19684. #include <sys/ioctl.h>
  19685. int
  19686. main ()
  19687. {
  19688. struct wskbd_map_data data;
  19689. ioctl(0, WSKBDIO_GETMAP, &data);
  19690. ;
  19691. return 0;
  19692. }
  19693. _ACEOF
  19694. if ac_fn_c_try_compile "$LINENO"; then :
  19695. use_input_wscons=yes
  19696. fi
  19697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19699. $as_echo "$use_input_wscons" >&6; }
  19700. if test x$use_input_wscons = xyes; then
  19701. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19702. SUMMARY_input="${SUMMARY_input} wscons"
  19703. fi
  19704. }
  19705. CheckLibUDev()
  19706. {
  19707. # Check whether --enable-libudev was given.
  19708. if test "${enable_libudev+set}" = set; then :
  19709. enableval=$enable_libudev;
  19710. else
  19711. enable_libudev=yes
  19712. fi
  19713. if test x$enable_libudev = xyes; then
  19714. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19715. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19716. have_libudev_h_hdr=yes
  19717. else
  19718. have_libudev_h_hdr=no
  19719. fi
  19720. if test x$have_libudev_h_hdr = xyes; then
  19721. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19722. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19723. if test x$udev_lib != x; then
  19724. echo "-- dynamic udev -> $udev_lib"
  19725. cat >>confdefs.h <<_ACEOF
  19726. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19727. _ACEOF
  19728. fi
  19729. fi
  19730. fi
  19731. }
  19732. CheckDBus()
  19733. {
  19734. # Check whether --enable-dbus was given.
  19735. if test "${enable_dbus+set}" = set; then :
  19736. enableval=$enable_dbus;
  19737. else
  19738. enable_dbus=yes
  19739. fi
  19740. if test x$enable_dbus = xyes; then
  19741. pkg_failed=no
  19742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19743. $as_echo_n "checking for dbus-1... " >&6; }
  19744. if test -n "$DBUS_CFLAGS"; then
  19745. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19746. elif test -n "$PKG_CONFIG"; then
  19747. if test -n "$PKG_CONFIG" && \
  19748. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19749. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19750. ac_status=$?
  19751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19752. test $ac_status = 0; }; then
  19753. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19754. test "x$?" != "x0" && pkg_failed=yes
  19755. else
  19756. pkg_failed=yes
  19757. fi
  19758. else
  19759. pkg_failed=untried
  19760. fi
  19761. if test -n "$DBUS_LIBS"; then
  19762. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19763. elif test -n "$PKG_CONFIG"; then
  19764. if test -n "$PKG_CONFIG" && \
  19765. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19766. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19767. ac_status=$?
  19768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19769. test $ac_status = 0; }; then
  19770. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19771. test "x$?" != "x0" && pkg_failed=yes
  19772. else
  19773. pkg_failed=yes
  19774. fi
  19775. else
  19776. pkg_failed=untried
  19777. fi
  19778. if test $pkg_failed = yes; then
  19779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19780. $as_echo "no" >&6; }
  19781. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19782. _pkg_short_errors_supported=yes
  19783. else
  19784. _pkg_short_errors_supported=no
  19785. fi
  19786. if test $_pkg_short_errors_supported = yes; then
  19787. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19788. else
  19789. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19790. fi
  19791. # Put the nasty error message in config.log where it belongs
  19792. echo "$DBUS_PKG_ERRORS" >&5
  19793. have_dbus=no
  19794. elif test $pkg_failed = untried; then
  19795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19796. $as_echo "no" >&6; }
  19797. have_dbus=no
  19798. else
  19799. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19800. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19802. $as_echo "yes" >&6; }
  19803. have_dbus=yes
  19804. fi
  19805. save_CPPFLAGS="$CPPFLAGS"
  19806. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19807. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19808. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19809. have_dbus_dbus_h_hdr=yes
  19810. else
  19811. have_dbus_dbus_h_hdr=no
  19812. fi
  19813. CPPFLAGS="$save_CPPFLAGS"
  19814. if test x$have_dbus_dbus_h_hdr = xyes; then
  19815. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19816. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19817. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19818. fi
  19819. fi
  19820. }
  19821. CheckIME()
  19822. {
  19823. # Check whether --enable-ime was given.
  19824. if test "${enable_ime+set}" = set; then :
  19825. enableval=$enable_ime;
  19826. else
  19827. enable_ime=yes
  19828. fi
  19829. if test x$enable_ime = xyes; then
  19830. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19831. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19832. fi
  19833. }
  19834. CheckInotify()
  19835. {
  19836. save_LIBS="$LIBS"
  19837. case "$host" in
  19838. *-*-freebsd*) LIBS="$LIBS -linotify"
  19839. ;;
  19840. esac
  19841. for ac_header in sys/inotify.h
  19842. do :
  19843. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19844. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19845. cat >>confdefs.h <<_ACEOF
  19846. #define HAVE_SYS_INOTIFY_H 1
  19847. _ACEOF
  19848. have_inotify_inotify_h_hdr=yes
  19849. fi
  19850. done
  19851. for ac_func in inotify_init
  19852. do :
  19853. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19854. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19855. cat >>confdefs.h <<_ACEOF
  19856. #define HAVE_INOTIFY_INIT 1
  19857. _ACEOF
  19858. have_inotify=yes
  19859. fi
  19860. done
  19861. for ac_func in inotify_init1
  19862. do :
  19863. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19864. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19865. cat >>confdefs.h <<_ACEOF
  19866. #define HAVE_INOTIFY_INIT1 1
  19867. _ACEOF
  19868. fi
  19869. done
  19870. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19871. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19872. case "$host" in
  19873. *-*-freebsd*)
  19874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19875. ;;
  19876. esac
  19877. fi
  19878. LIBS="$save_LIBS"
  19879. }
  19880. CheckIBus()
  19881. {
  19882. # Check whether --enable-ibus was given.
  19883. if test "${enable_ibus+set}" = set; then :
  19884. enableval=$enable_ibus;
  19885. else
  19886. enable_ibus=yes
  19887. fi
  19888. if test x$enable_ibus = xyes; then
  19889. pkg_failed=no
  19890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  19891. $as_echo_n "checking for ibus-1.0... " >&6; }
  19892. if test -n "$IBUS_CFLAGS"; then
  19893. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19894. elif test -n "$PKG_CONFIG"; then
  19895. if test -n "$PKG_CONFIG" && \
  19896. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19897. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19898. ac_status=$?
  19899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19900. test $ac_status = 0; }; then
  19901. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19902. test "x$?" != "x0" && pkg_failed=yes
  19903. else
  19904. pkg_failed=yes
  19905. fi
  19906. else
  19907. pkg_failed=untried
  19908. fi
  19909. if test -n "$IBUS_LIBS"; then
  19910. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19911. elif test -n "$PKG_CONFIG"; then
  19912. if test -n "$PKG_CONFIG" && \
  19913. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19914. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19915. ac_status=$?
  19916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19917. test $ac_status = 0; }; then
  19918. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19919. test "x$?" != "x0" && pkg_failed=yes
  19920. else
  19921. pkg_failed=yes
  19922. fi
  19923. else
  19924. pkg_failed=untried
  19925. fi
  19926. if test $pkg_failed = yes; then
  19927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19928. $as_echo "no" >&6; }
  19929. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19930. _pkg_short_errors_supported=yes
  19931. else
  19932. _pkg_short_errors_supported=no
  19933. fi
  19934. if test $_pkg_short_errors_supported = yes; then
  19935. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19936. else
  19937. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19938. fi
  19939. # Put the nasty error message in config.log where it belongs
  19940. echo "$IBUS_PKG_ERRORS" >&5
  19941. have_ibus=no
  19942. elif test $pkg_failed = untried; then
  19943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19944. $as_echo "no" >&6; }
  19945. have_ibus=no
  19946. else
  19947. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19948. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19950. $as_echo "yes" >&6; }
  19951. have_ibus=yes
  19952. fi
  19953. save_CPPFLAGS="$CPPFLAGS"
  19954. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  19955. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19956. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19957. have_ibus_ibus_h_hdr=yes
  19958. else
  19959. have_ibus_ibus_h_hdr=no
  19960. fi
  19961. CPPFLAGS="$save_CPPFLAGS"
  19962. if test x$have_ibus_ibus_h_hdr = xyes; then
  19963. if test x$enable_ime != xyes; then
  19964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19965. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19966. have_ibus_ibus_h_hdr=no
  19967. elif test x$enable_dbus != xyes; then
  19968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19969. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19970. have_ibus_ibus_h_hdr=no
  19971. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19973. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19974. have_ibus_ibus_h_hdr=no
  19975. else
  19976. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19977. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19978. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19979. fi
  19980. fi
  19981. fi
  19982. }
  19983. CheckFcitx()
  19984. {
  19985. # Check whether --enable-fcitx was given.
  19986. if test "${enable_fcitx+set}" = set; then :
  19987. enableval=$enable_fcitx;
  19988. else
  19989. enable_fcitx=yes
  19990. fi
  19991. if test x$enable_fcitx = xyes; then
  19992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19993. $as_echo_n "checking for fcitx support... " >&6; }
  19994. have_fcitx=no
  19995. if test x$enable_ime != xyes; then
  19996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19997. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19998. elif test x$have_dbus_dbus_h_hdr != xyes; then
  19999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20000. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20001. else
  20002. have_fcitx=yes
  20003. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20004. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20005. fi
  20006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20007. $as_echo "$have_fcitx" >&6; }
  20008. fi
  20009. }
  20010. CheckJoystickMFI()
  20011. {
  20012. # Check whether --enable-joystick-mfi was given.
  20013. if test "${enable_joystick_mfi+set}" = set; then :
  20014. enableval=$enable_joystick_mfi;
  20015. else
  20016. enable_joystick_mfi=yes
  20017. fi
  20018. if test x$enable_joystick_mfi = xyes; then
  20019. save_CFLAGS="$CFLAGS"
  20020. save_LDFLAGS="$LDFLAGS"
  20021. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20022. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20024. $as_echo_n "checking for GameController framework... " >&6; }
  20025. enable_joystick_mfi=no
  20026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20027. /* end confdefs.h. */
  20028. #include <AvailabilityMacros.h>
  20029. #include <TargetConditionals.h>
  20030. #import <GameController/GameController.h>
  20031. int
  20032. main ()
  20033. {
  20034. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20035. #error GameController framework doesn't work on this configuration
  20036. #endif
  20037. #if TARGET_CPU_X86
  20038. #error GameController framework doesn't work on this configuration
  20039. #endif
  20040. ;
  20041. return 0;
  20042. }
  20043. _ACEOF
  20044. if ac_fn_c_try_link "$LINENO"; then :
  20045. enable_joystick_mfi=yes
  20046. fi
  20047. rm -f core conftest.err conftest.$ac_objext \
  20048. conftest$ac_exeext conftest.$ac_ext
  20049. CFLAGS="$save_CFLAGS"
  20050. LDFLAGS="$save_LDFLAGS"
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20052. $as_echo "$enable_joystick_mfi" >&6; }
  20053. if test x$enable_joystick_mfi = xyes; then
  20054. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20055. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20056. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20057. fi
  20058. fi
  20059. }
  20060. CheckPTHREAD()
  20061. {
  20062. # Check whether --enable-pthreads was given.
  20063. if test "${enable_pthreads+set}" = set; then :
  20064. enableval=$enable_pthreads;
  20065. else
  20066. enable_pthreads=yes
  20067. fi
  20068. # Check whether --enable-pthread-sem was given.
  20069. if test "${enable_pthread_sem+set}" = set; then :
  20070. enableval=$enable_pthread_sem;
  20071. else
  20072. enable_pthread_sem=yes
  20073. fi
  20074. case "$host" in
  20075. *-*-android*)
  20076. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20077. pthread_lib=""
  20078. ;;
  20079. *-*-linux*|*-*-uclinux*)
  20080. pthread_cflags="-D_REENTRANT"
  20081. pthread_lib="-lpthread"
  20082. ;;
  20083. *-*-bsdi*)
  20084. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20085. pthread_lib=""
  20086. ;;
  20087. *-*-darwin*)
  20088. pthread_cflags="-D_THREAD_SAFE"
  20089. # causes Carbon.p complaints?
  20090. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20091. ;;
  20092. *-*-freebsd*|*-*-dragonfly*)
  20093. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20094. pthread_lib="-pthread"
  20095. ;;
  20096. *-*-netbsd*)
  20097. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20098. pthread_lib="-lpthread"
  20099. ;;
  20100. *-*-openbsd*)
  20101. pthread_cflags="-D_REENTRANT"
  20102. pthread_lib="-pthread"
  20103. ;;
  20104. *-*-solaris2.9)
  20105. # From Solaris 9+, posix4's preferred name is rt.
  20106. pthread_cflags="-D_REENTRANT"
  20107. pthread_lib="-lpthread -lrt"
  20108. ;;
  20109. *-*-solaris2.10)
  20110. # Solaris 10+ merged pthread into libc.
  20111. pthread_cflags="-D_REENTRANT"
  20112. pthread_lib="-lrt"
  20113. ;;
  20114. *-*-solaris*)
  20115. # Solaris 11+ merged rt into libc.
  20116. pthread_cflags="-D_REENTRANT"
  20117. pthread_lib=""
  20118. ;;
  20119. *-*-sysv5*)
  20120. pthread_cflags="-D_REENTRANT -Kthread"
  20121. pthread_lib=""
  20122. ;;
  20123. *-*-aix*)
  20124. pthread_cflags="-D_REENTRANT -mthreads"
  20125. pthread_lib="-lpthread"
  20126. ;;
  20127. *-*-hpux11*)
  20128. pthread_cflags="-D_REENTRANT"
  20129. pthread_lib="-L/usr/lib -lpthread"
  20130. ;;
  20131. *-*-haiku*)
  20132. pthread_cflags="-D_REENTRANT"
  20133. pthread_lib=""
  20134. ;;
  20135. *-*-nto*)
  20136. pthread_cflags="-D_REENTRANT"
  20137. pthread_lib=""
  20138. ;;
  20139. *)
  20140. pthread_cflags="-D_REENTRANT"
  20141. pthread_lib="-lpthread"
  20142. ;;
  20143. esac
  20144. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20145. # Save the original compiler flags and libraries
  20146. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20147. # Add the pthread compiler flags and libraries
  20148. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20149. # Check to see if we have pthread support on this system
  20150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20151. $as_echo_n "checking for pthreads... " >&6; }
  20152. use_pthreads=no
  20153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20154. /* end confdefs.h. */
  20155. #include <pthread.h>
  20156. int
  20157. main ()
  20158. {
  20159. pthread_attr_t type;
  20160. pthread_attr_init(&type);
  20161. ;
  20162. return 0;
  20163. }
  20164. _ACEOF
  20165. if ac_fn_c_try_link "$LINENO"; then :
  20166. use_pthreads=yes
  20167. fi
  20168. rm -f core conftest.err conftest.$ac_objext \
  20169. conftest$ac_exeext conftest.$ac_ext
  20170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20171. $as_echo "$use_pthreads" >&6; }
  20172. # Restore the compiler flags and libraries
  20173. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20174. # Do futher testing if we have pthread support...
  20175. if test x$use_pthreads = xyes; then
  20176. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20177. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20179. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20180. # Save the original compiler flags and libraries
  20181. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20182. # Add the pthread compiler flags and libraries
  20183. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20184. # Check to see if recursive mutexes are available
  20185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20186. $as_echo_n "checking for recursive mutexes... " >&6; }
  20187. has_recursive_mutexes=no
  20188. if test x$has_recursive_mutexes = xno; then
  20189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20190. /* end confdefs.h. */
  20191. #define _GNU_SOURCE 1
  20192. #include <pthread.h>
  20193. int
  20194. main ()
  20195. {
  20196. pthread_mutexattr_t attr;
  20197. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20198. ;
  20199. return 0;
  20200. }
  20201. _ACEOF
  20202. if ac_fn_c_try_link "$LINENO"; then :
  20203. has_recursive_mutexes=yes
  20204. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20205. fi
  20206. rm -f core conftest.err conftest.$ac_objext \
  20207. conftest$ac_exeext conftest.$ac_ext
  20208. fi
  20209. if test x$has_recursive_mutexes = xno; then
  20210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20211. /* end confdefs.h. */
  20212. #define _GNU_SOURCE 1
  20213. #include <pthread.h>
  20214. int
  20215. main ()
  20216. {
  20217. pthread_mutexattr_t attr;
  20218. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20219. ;
  20220. return 0;
  20221. }
  20222. _ACEOF
  20223. if ac_fn_c_try_link "$LINENO"; then :
  20224. has_recursive_mutexes=yes
  20225. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20226. fi
  20227. rm -f core conftest.err conftest.$ac_objext \
  20228. conftest$ac_exeext conftest.$ac_ext
  20229. fi
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20231. $as_echo "$has_recursive_mutexes" >&6; }
  20232. # Check to see if pthread semaphore support is missing
  20233. if test x$enable_pthread_sem = xyes; then
  20234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20235. $as_echo_n "checking for pthread semaphores... " >&6; }
  20236. have_pthread_sem=no
  20237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20238. /* end confdefs.h. */
  20239. #include <pthread.h>
  20240. #include <semaphore.h>
  20241. int
  20242. main ()
  20243. {
  20244. ;
  20245. return 0;
  20246. }
  20247. _ACEOF
  20248. if ac_fn_c_try_compile "$LINENO"; then :
  20249. have_pthread_sem=yes
  20250. fi
  20251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20253. $as_echo "$have_pthread_sem" >&6; }
  20254. fi
  20255. if test x$have_pthread_sem = xyes; then
  20256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20257. $as_echo_n "checking for sem_timedwait... " >&6; }
  20258. have_sem_timedwait=no
  20259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20260. /* end confdefs.h. */
  20261. #include <pthread.h>
  20262. #include <semaphore.h>
  20263. int
  20264. main ()
  20265. {
  20266. sem_timedwait(NULL, NULL);
  20267. ;
  20268. return 0;
  20269. }
  20270. _ACEOF
  20271. if ac_fn_c_try_link "$LINENO"; then :
  20272. have_sem_timedwait=yes
  20273. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20274. fi
  20275. rm -f core conftest.err conftest.$ac_objext \
  20276. conftest$ac_exeext conftest.$ac_ext
  20277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20278. $as_echo "$have_sem_timedwait" >&6; }
  20279. fi
  20280. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20281. "
  20282. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20283. have_pthread_np_h=yes
  20284. else
  20285. have_pthread_np_h=no
  20286. fi
  20287. if test x$have_pthread_np_h = xyes; then
  20288. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20289. fi
  20290. # Check to see if pthread naming is available
  20291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20292. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20294. /* end confdefs.h. */
  20295. /* Override any GCC internal prototype to avoid an error.
  20296. Use char because int might match the return type of a GCC
  20297. builtin and then its argument prototype would still apply. */
  20298. #ifdef __cplusplus
  20299. extern "C"
  20300. #endif
  20301. char pthread_setname_np ();
  20302. int
  20303. main ()
  20304. {
  20305. return pthread_setname_np ();
  20306. ;
  20307. return 0;
  20308. }
  20309. _ACEOF
  20310. if ac_fn_c_try_link "$LINENO"; then :
  20311. has_pthread_setname_np=yes
  20312. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20313. else
  20314. has_pthread_setname_np=no
  20315. fi
  20316. rm -f core conftest.err conftest.$ac_objext \
  20317. conftest$ac_exeext conftest.$ac_ext
  20318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20319. $as_echo "$has_pthread_setname_np" >&6; }
  20320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20321. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20323. /* end confdefs.h. */
  20324. /* Override any GCC internal prototype to avoid an error.
  20325. Use char because int might match the return type of a GCC
  20326. builtin and then its argument prototype would still apply. */
  20327. #ifdef __cplusplus
  20328. extern "C"
  20329. #endif
  20330. char pthread_set_name_np ();
  20331. int
  20332. main ()
  20333. {
  20334. return pthread_set_name_np ();
  20335. ;
  20336. return 0;
  20337. }
  20338. _ACEOF
  20339. if ac_fn_c_try_link "$LINENO"; then :
  20340. has_pthread_set_name_np=yes
  20341. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20342. else
  20343. has_pthread_set_name_np=no
  20344. fi
  20345. rm -f core conftest.err conftest.$ac_objext \
  20346. conftest$ac_exeext conftest.$ac_ext
  20347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20348. $as_echo "$has_pthread_set_name_np" >&6; }
  20349. # Restore the compiler flags and libraries
  20350. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20351. # Basic thread creation functions
  20352. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20353. # Semaphores
  20354. # We can fake these with mutexes and condition variables if necessary
  20355. if test x$have_pthread_sem = xyes; then
  20356. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20357. else
  20358. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20359. fi
  20360. # Mutexes
  20361. # We can fake these with semaphores if necessary
  20362. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20363. # Condition variables
  20364. # We can fake these with semaphores and mutexes if necessary
  20365. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20366. # Thread local storage
  20367. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20368. have_threads=yes
  20369. fi
  20370. fi
  20371. }
  20372. CheckWINDOWS()
  20373. {
  20374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20375. $as_echo_n "checking Windows compiler... " >&6; }
  20376. have_win32_gcc=no
  20377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20378. /* end confdefs.h. */
  20379. #include <windows.h>
  20380. int
  20381. main ()
  20382. {
  20383. ;
  20384. return 0;
  20385. }
  20386. _ACEOF
  20387. if ac_fn_c_try_compile "$LINENO"; then :
  20388. have_win32_gcc=yes
  20389. fi
  20390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20392. $as_echo "$have_win32_gcc" >&6; }
  20393. if test x$have_win32_gcc != xyes; then
  20394. as_fn_error $? "
  20395. *** Your compiler ($CC) does not produce Windows executables!
  20396. " "$LINENO" 5
  20397. fi
  20398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20399. $as_echo_n "checking Windows CE... " >&6; }
  20400. have_wince=no
  20401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20402. /* end confdefs.h. */
  20403. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20404. #error This is not Windows CE
  20405. #endif
  20406. int
  20407. main ()
  20408. {
  20409. ;
  20410. return 0;
  20411. }
  20412. _ACEOF
  20413. if ac_fn_c_try_compile "$LINENO"; then :
  20414. have_wince=yes
  20415. as_fn_error $? "
  20416. *** Sorry, Windows CE is no longer supported.
  20417. " "$LINENO" 5
  20418. fi
  20419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20421. $as_echo "$have_wince" >&6; }
  20422. # This fixes Windows stack alignment with newer GCC
  20423. CheckStackBoundary
  20424. }
  20425. CheckDIRECTX()
  20426. {
  20427. # Check whether --enable-directx was given.
  20428. if test "${enable_directx+set}" = set; then :
  20429. enableval=$enable_directx;
  20430. else
  20431. enable_directx=yes
  20432. fi
  20433. if test x$enable_directx = xyes; then
  20434. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20435. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20436. have_d3d=yes
  20437. fi
  20438. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20439. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20440. have_d3d11=yes
  20441. fi
  20442. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20443. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20444. have_ddraw=yes
  20445. fi
  20446. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20447. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20448. have_dsound=yes
  20449. fi
  20450. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20451. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20452. have_dinput=yes
  20453. fi
  20454. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20455. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20456. have_dxgi=yes
  20457. fi
  20458. if test x$have_ddraw = xyes; then
  20459. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20460. fi
  20461. if test x$have_dinput = xyes; then
  20462. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20463. fi
  20464. if test x$have_dsound = xyes; then
  20465. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20466. fi
  20467. if test x$have_dxgi = xyes; then
  20468. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20469. fi
  20470. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20471. # FIXME: ...so force it off for now.
  20472. case "$host" in
  20473. *-*-cygwin*)
  20474. have_dinput=false
  20475. ;;
  20476. esac
  20477. fi
  20478. # Check whether --enable-xinput was given.
  20479. if test "${enable_xinput+set}" = set; then :
  20480. enableval=$enable_xinput;
  20481. else
  20482. enable_xinput=yes
  20483. fi
  20484. if test x$enable_xinput = xyes; then
  20485. have_xinput_gamepadex=no
  20486. have_xinput_stateex=no
  20487. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20488. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20489. have_xinput=yes
  20490. fi
  20491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20492. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20494. /* end confdefs.h. */
  20495. #include <windows.h>
  20496. #include <xinput.h>
  20497. XINPUT_GAMEPAD_EX x1;
  20498. int
  20499. main ()
  20500. {
  20501. ;
  20502. return 0;
  20503. }
  20504. _ACEOF
  20505. if ac_fn_c_try_compile "$LINENO"; then :
  20506. have_xinput_gamepadex=yes
  20507. fi
  20508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20510. $as_echo "$have_xinput_gamepadex" >&6; }
  20511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20512. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20514. /* end confdefs.h. */
  20515. #include <windows.h>
  20516. #include <xinput.h>
  20517. XINPUT_STATE_EX s1;
  20518. int
  20519. main ()
  20520. {
  20521. ;
  20522. return 0;
  20523. }
  20524. _ACEOF
  20525. if ac_fn_c_try_compile "$LINENO"; then :
  20526. have_xinput_stateex=yes
  20527. fi
  20528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20530. $as_echo "$have_xinput_stateex" >&6; }
  20531. if test x$have_xinput = xyes; then
  20532. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20533. fi
  20534. if test x$have_xinput_gamepadex = xyes; then
  20535. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20536. fi
  20537. if test x$have_xinput_stateex = xyes; then
  20538. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20539. fi
  20540. fi
  20541. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20542. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20543. have_wasapi=yes
  20544. fi
  20545. if test x$have_wasapi = xyes; then
  20546. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20547. fi
  20548. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20549. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20550. else
  20551. have_wasapi=no
  20552. fi
  20553. if test x$have_wasapi = xyes; then
  20554. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20555. fi
  20556. # Check whether --enable-wasapi was given.
  20557. if test "${enable_wasapi+set}" = set; then :
  20558. enableval=$enable_wasapi;
  20559. else
  20560. enable_wasapi=yes
  20561. fi
  20562. }
  20563. CheckDLOPEN()
  20564. {
  20565. # Check whether --enable-sdl-dlopen was given.
  20566. if test "${enable_sdl_dlopen+set}" = set; then :
  20567. enableval=$enable_sdl_dlopen;
  20568. else
  20569. enable_sdl_dlopen=yes
  20570. fi
  20571. if test x$enable_sdl_dlopen = xyes; then
  20572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20573. $as_echo_n "checking for dlopen... " >&6; }
  20574. have_dlopen=no
  20575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20576. /* end confdefs.h. */
  20577. #include <dlfcn.h>
  20578. int
  20579. main ()
  20580. {
  20581. void *handle = dlopen("", RTLD_NOW);
  20582. const char *loaderror = (char *) dlerror();
  20583. ;
  20584. return 0;
  20585. }
  20586. _ACEOF
  20587. if ac_fn_c_try_compile "$LINENO"; then :
  20588. have_dlopen=yes
  20589. fi
  20590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20592. $as_echo "$have_dlopen" >&6; }
  20593. if test x$have_dlopen = xyes; then
  20594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20595. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20596. if ${ac_cv_lib_c_dlopen+:} false; then :
  20597. $as_echo_n "(cached) " >&6
  20598. else
  20599. ac_check_lib_save_LIBS=$LIBS
  20600. LIBS="-lc $LIBS"
  20601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20602. /* end confdefs.h. */
  20603. /* Override any GCC internal prototype to avoid an error.
  20604. Use char because int might match the return type of a GCC
  20605. builtin and then its argument prototype would still apply. */
  20606. #ifdef __cplusplus
  20607. extern "C"
  20608. #endif
  20609. char dlopen ();
  20610. int
  20611. main ()
  20612. {
  20613. return dlopen ();
  20614. ;
  20615. return 0;
  20616. }
  20617. _ACEOF
  20618. if ac_fn_c_try_link "$LINENO"; then :
  20619. ac_cv_lib_c_dlopen=yes
  20620. else
  20621. ac_cv_lib_c_dlopen=no
  20622. fi
  20623. rm -f core conftest.err conftest.$ac_objext \
  20624. conftest$ac_exeext conftest.$ac_ext
  20625. LIBS=$ac_check_lib_save_LIBS
  20626. fi
  20627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20628. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20629. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20630. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20631. else
  20632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20633. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20634. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20635. $as_echo_n "(cached) " >&6
  20636. else
  20637. ac_check_lib_save_LIBS=$LIBS
  20638. LIBS="-ldl $LIBS"
  20639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20640. /* end confdefs.h. */
  20641. /* Override any GCC internal prototype to avoid an error.
  20642. Use char because int might match the return type of a GCC
  20643. builtin and then its argument prototype would still apply. */
  20644. #ifdef __cplusplus
  20645. extern "C"
  20646. #endif
  20647. char dlopen ();
  20648. int
  20649. main ()
  20650. {
  20651. return dlopen ();
  20652. ;
  20653. return 0;
  20654. }
  20655. _ACEOF
  20656. if ac_fn_c_try_link "$LINENO"; then :
  20657. ac_cv_lib_dl_dlopen=yes
  20658. else
  20659. ac_cv_lib_dl_dlopen=no
  20660. fi
  20661. rm -f core conftest.err conftest.$ac_objext \
  20662. conftest$ac_exeext conftest.$ac_ext
  20663. LIBS=$ac_check_lib_save_LIBS
  20664. fi
  20665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20666. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20667. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20668. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20669. else
  20670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20671. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20672. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20673. $as_echo_n "(cached) " >&6
  20674. else
  20675. ac_check_lib_save_LIBS=$LIBS
  20676. LIBS="-lltdl $LIBS"
  20677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20678. /* end confdefs.h. */
  20679. /* Override any GCC internal prototype to avoid an error.
  20680. Use char because int might match the return type of a GCC
  20681. builtin and then its argument prototype would still apply. */
  20682. #ifdef __cplusplus
  20683. extern "C"
  20684. #endif
  20685. char dlopen ();
  20686. int
  20687. main ()
  20688. {
  20689. return dlopen ();
  20690. ;
  20691. return 0;
  20692. }
  20693. _ACEOF
  20694. if ac_fn_c_try_link "$LINENO"; then :
  20695. ac_cv_lib_ltdl_dlopen=yes
  20696. else
  20697. ac_cv_lib_ltdl_dlopen=no
  20698. fi
  20699. rm -f core conftest.err conftest.$ac_objext \
  20700. conftest$ac_exeext conftest.$ac_ext
  20701. LIBS=$ac_check_lib_save_LIBS
  20702. fi
  20703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20704. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20705. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20707. fi
  20708. fi
  20709. fi
  20710. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20711. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20712. have_loadso=yes
  20713. fi
  20714. fi
  20715. }
  20716. CheckUSBHID()
  20717. {
  20718. case "$host" in
  20719. *-*-*bsd*|*-*-dragonfly*)
  20720. if test x$enable_joystick = xyes; then
  20721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20722. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20723. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20724. $as_echo_n "(cached) " >&6
  20725. else
  20726. ac_check_lib_save_LIBS=$LIBS
  20727. LIBS="-lusbhid $LIBS"
  20728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20729. /* end confdefs.h. */
  20730. /* Override any GCC internal prototype to avoid an error.
  20731. Use char because int might match the return type of a GCC
  20732. builtin and then its argument prototype would still apply. */
  20733. #ifdef __cplusplus
  20734. extern "C"
  20735. #endif
  20736. char hid_init ();
  20737. int
  20738. main ()
  20739. {
  20740. return hid_init ();
  20741. ;
  20742. return 0;
  20743. }
  20744. _ACEOF
  20745. if ac_fn_c_try_link "$LINENO"; then :
  20746. ac_cv_lib_usbhid_hid_init=yes
  20747. else
  20748. ac_cv_lib_usbhid_hid_init=no
  20749. fi
  20750. rm -f core conftest.err conftest.$ac_objext \
  20751. conftest$ac_exeext conftest.$ac_ext
  20752. LIBS=$ac_check_lib_save_LIBS
  20753. fi
  20754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20755. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20756. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20757. have_libusbhid=yes
  20758. fi
  20759. if test x$have_libusbhid = xyes; then
  20760. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20761. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20762. USB_CFLAGS="-DHAVE_USBHID_H"
  20763. fi
  20764. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20765. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20766. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20767. fi
  20768. USB_LIBS="$USB_LIBS -lusbhid"
  20769. else
  20770. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20771. if test "x$ac_cv_header_usb_h" = xyes; then :
  20772. USB_CFLAGS="-DHAVE_USB_H"
  20773. fi
  20774. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20775. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20776. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20777. fi
  20778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20779. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20780. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20781. $as_echo_n "(cached) " >&6
  20782. else
  20783. ac_check_lib_save_LIBS=$LIBS
  20784. LIBS="-lusb $LIBS"
  20785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20786. /* end confdefs.h. */
  20787. /* Override any GCC internal prototype to avoid an error.
  20788. Use char because int might match the return type of a GCC
  20789. builtin and then its argument prototype would still apply. */
  20790. #ifdef __cplusplus
  20791. extern "C"
  20792. #endif
  20793. char hid_init ();
  20794. int
  20795. main ()
  20796. {
  20797. return hid_init ();
  20798. ;
  20799. return 0;
  20800. }
  20801. _ACEOF
  20802. if ac_fn_c_try_link "$LINENO"; then :
  20803. ac_cv_lib_usb_hid_init=yes
  20804. else
  20805. ac_cv_lib_usb_hid_init=no
  20806. fi
  20807. rm -f core conftest.err conftest.$ac_objext \
  20808. conftest$ac_exeext conftest.$ac_ext
  20809. LIBS=$ac_check_lib_save_LIBS
  20810. fi
  20811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20812. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20813. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20814. USB_LIBS="$USB_LIBS -lusb"
  20815. fi
  20816. fi
  20817. save_CFLAGS="$CFLAGS"
  20818. CFLAGS="$CFLAGS $USB_CFLAGS"
  20819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20820. $as_echo_n "checking for usbhid... " >&6; }
  20821. have_usbhid=no
  20822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20823. /* end confdefs.h. */
  20824. #include <sys/types.h>
  20825. #if defined(HAVE_USB_H)
  20826. #include <usb.h>
  20827. #endif
  20828. #ifdef __DragonFly__
  20829. # include <bus/u4b/usb.h>
  20830. # include <bus/u4b/usbhid.h>
  20831. #else
  20832. # include <dev/usb/usb.h>
  20833. # include <dev/usb/usbhid.h>
  20834. #endif
  20835. #if defined(HAVE_USBHID_H)
  20836. #include <usbhid.h>
  20837. #elif defined(HAVE_LIBUSB_H)
  20838. #include <libusb.h>
  20839. #elif defined(HAVE_LIBUSBHID_H)
  20840. #include <libusbhid.h>
  20841. #endif
  20842. int
  20843. main ()
  20844. {
  20845. struct report_desc *repdesc;
  20846. struct usb_ctl_report *repbuf;
  20847. hid_kind_t hidkind;
  20848. ;
  20849. return 0;
  20850. }
  20851. _ACEOF
  20852. if ac_fn_c_try_compile "$LINENO"; then :
  20853. have_usbhid=yes
  20854. fi
  20855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20857. $as_echo "$have_usbhid" >&6; }
  20858. if test x$have_usbhid = xyes; then
  20859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20860. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20861. have_usbhid_ucr_data=no
  20862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20863. /* end confdefs.h. */
  20864. #include <sys/types.h>
  20865. #if defined(HAVE_USB_H)
  20866. #include <usb.h>
  20867. #endif
  20868. #ifdef __DragonFly__
  20869. # include <bus/u4b/usb.h>
  20870. # include <bus/u4b/usbhid.h>
  20871. #else
  20872. # include <dev/usb/usb.h>
  20873. # include <dev/usb/usbhid.h>
  20874. #endif
  20875. #if defined(HAVE_USBHID_H)
  20876. #include <usbhid.h>
  20877. #elif defined(HAVE_LIBUSB_H)
  20878. #include <libusb.h>
  20879. #elif defined(HAVE_LIBUSBHID_H)
  20880. #include <libusbhid.h>
  20881. #endif
  20882. int
  20883. main ()
  20884. {
  20885. struct usb_ctl_report buf;
  20886. if (buf.ucr_data) { }
  20887. ;
  20888. return 0;
  20889. }
  20890. _ACEOF
  20891. if ac_fn_c_try_compile "$LINENO"; then :
  20892. have_usbhid_ucr_data=yes
  20893. fi
  20894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20895. if test x$have_usbhid_ucr_data = xyes; then
  20896. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20897. fi
  20898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20899. $as_echo "$have_usbhid_ucr_data" >&6; }
  20900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20901. $as_echo_n "checking for new usbhid API... " >&6; }
  20902. have_usbhid_new=no
  20903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20904. /* end confdefs.h. */
  20905. #include <sys/types.h>
  20906. #if defined(HAVE_USB_H)
  20907. #include <usb.h>
  20908. #endif
  20909. #ifdef __DragonFly__
  20910. #include <bus/u4b/usb.h>
  20911. #include <bus/u4b/usbhid.h>
  20912. #else
  20913. #include <dev/usb/usb.h>
  20914. #include <dev/usb/usbhid.h>
  20915. #endif
  20916. #if defined(HAVE_USBHID_H)
  20917. #include <usbhid.h>
  20918. #elif defined(HAVE_LIBUSB_H)
  20919. #include <libusb.h>
  20920. #elif defined(HAVE_LIBUSBHID_H)
  20921. #include <libusbhid.h>
  20922. #endif
  20923. int
  20924. main ()
  20925. {
  20926. report_desc_t d;
  20927. hid_start_parse(d, 1, 1);
  20928. ;
  20929. return 0;
  20930. }
  20931. _ACEOF
  20932. if ac_fn_c_try_compile "$LINENO"; then :
  20933. have_usbhid_new=yes
  20934. fi
  20935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20936. if test x$have_usbhid_new = xyes; then
  20937. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20938. fi
  20939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20940. $as_echo "$have_usbhid_new" >&6; }
  20941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20942. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20943. have_machine_joystick=no
  20944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20945. /* end confdefs.h. */
  20946. #include <machine/joystick.h>
  20947. int
  20948. main ()
  20949. {
  20950. struct joystick t;
  20951. ;
  20952. return 0;
  20953. }
  20954. _ACEOF
  20955. if ac_fn_c_try_compile "$LINENO"; then :
  20956. have_machine_joystick=yes
  20957. fi
  20958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20959. if test x$have_machine_joystick = xyes; then
  20960. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20961. fi
  20962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20963. $as_echo "$have_machine_joystick" >&6; }
  20964. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20965. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20966. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20967. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20968. have_joystick=yes
  20969. fi
  20970. CFLAGS="$save_CFLAGS"
  20971. fi
  20972. ;;
  20973. esac
  20974. }
  20975. CheckHIDAPI()
  20976. {
  20977. # Check whether --enable-hidapi was given.
  20978. if test "${enable_hidapi+set}" = set; then :
  20979. enableval=$enable_hidapi;
  20980. else
  20981. enable_hidapi=yes
  20982. fi
  20983. # Check whether --enable-hidapi-libusb was given.
  20984. if test "${enable_hidapi_libusb+set}" = set; then :
  20985. enableval=$enable_hidapi_libusb;
  20986. else
  20987. enable_hidapi_libusb=maybe
  20988. fi
  20989. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20990. case "$host" in
  20991. # libusb does not support iOS
  20992. *-ios-* )
  20993. enable_hidapi_libusb=no
  20994. ;;
  20995. # On the other hand, *BSD specifically uses libusb only
  20996. *-*-*bsd* )
  20997. enable_hidapi_libusb=yes
  20998. require_hidapi_libusb=yes
  20999. ;;
  21000. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  21001. *-*-cygwin* | *-*-mingw*)
  21002. enable_joystick_rawinput=yes
  21003. ;;
  21004. esac
  21005. hidapi_support=yes
  21006. if test x$enable_hidapi_libusb = xyes; then
  21007. pkg_failed=no
  21008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21009. $as_echo_n "checking for libusb-1.0... " >&6; }
  21010. if test -n "$LIBUSB_CFLAGS"; then
  21011. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21012. elif test -n "$PKG_CONFIG"; then
  21013. if test -n "$PKG_CONFIG" && \
  21014. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21015. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21016. ac_status=$?
  21017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21018. test $ac_status = 0; }; then
  21019. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21020. test "x$?" != "x0" && pkg_failed=yes
  21021. else
  21022. pkg_failed=yes
  21023. fi
  21024. else
  21025. pkg_failed=untried
  21026. fi
  21027. if test -n "$LIBUSB_LIBS"; then
  21028. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21029. elif test -n "$PKG_CONFIG"; then
  21030. if test -n "$PKG_CONFIG" && \
  21031. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21032. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21033. ac_status=$?
  21034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21035. test $ac_status = 0; }; then
  21036. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21037. test "x$?" != "x0" && pkg_failed=yes
  21038. else
  21039. pkg_failed=yes
  21040. fi
  21041. else
  21042. pkg_failed=untried
  21043. fi
  21044. if test $pkg_failed = yes; then
  21045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21046. $as_echo "no" >&6; }
  21047. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21048. _pkg_short_errors_supported=yes
  21049. else
  21050. _pkg_short_errors_supported=no
  21051. fi
  21052. if test $_pkg_short_errors_supported = yes; then
  21053. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21054. else
  21055. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21056. fi
  21057. # Put the nasty error message in config.log where it belongs
  21058. echo "$LIBUSB_PKG_ERRORS" >&5
  21059. have_libusb=no
  21060. elif test $pkg_failed = untried; then
  21061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21062. $as_echo "no" >&6; }
  21063. have_libusb=no
  21064. else
  21065. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21066. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21068. $as_echo "yes" >&6; }
  21069. have_libusb=yes
  21070. fi
  21071. save_CPPFLAGS="$CPPFLAGS"
  21072. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21073. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21074. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21075. have_libusb_h=yes
  21076. else
  21077. have_libusb_h=no
  21078. fi
  21079. CPPFLAGS="$save_CPPFLAGS"
  21080. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21081. hidapi_support=no
  21082. fi
  21083. fi
  21084. if test x$hidapi_support = xyes; then
  21085. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21086. if test x$enable_joystick_rawinput = xyes; then
  21087. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21088. fi
  21089. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21090. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21091. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  21092. if test x$have_libusb_h = xyes; then
  21093. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21094. if test x$require_hidapi_libusb = xyes; then
  21095. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21096. else
  21097. if test x$have_loadso != xyes; then
  21098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21099. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21100. fi
  21101. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21102. libusb_lib=""
  21103. case "$host" in
  21104. *-*-darwin* )
  21105. libusb_lib="libusb-1.0.0.dylib"
  21106. ;;
  21107. *-*-cygwin* | *-*-mingw* )
  21108. libusb_lib="libusb-1.0.dll"
  21109. ;;
  21110. esac
  21111. if test x$libusb_lib = x; then
  21112. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21113. fi
  21114. cat >>confdefs.h <<_ACEOF
  21115. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21116. _ACEOF
  21117. fi
  21118. fi
  21119. fi
  21120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21121. $as_echo_n "checking for hidapi support... " >&6; }
  21122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21123. $as_echo "$hidapi_support" >&6; }
  21124. fi
  21125. }
  21126. CheckClockGettime()
  21127. {
  21128. # Check whether --enable-clock_gettime was given.
  21129. if test "${enable_clock_gettime+set}" = set; then :
  21130. enableval=$enable_clock_gettime;
  21131. else
  21132. enable_clock_gettime=yes
  21133. fi
  21134. if test x$enable_clock_gettime = xyes; then
  21135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21136. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21137. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21138. $as_echo_n "(cached) " >&6
  21139. else
  21140. ac_check_lib_save_LIBS=$LIBS
  21141. LIBS="-lrt $LIBS"
  21142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21143. /* end confdefs.h. */
  21144. /* Override any GCC internal prototype to avoid an error.
  21145. Use char because int might match the return type of a GCC
  21146. builtin and then its argument prototype would still apply. */
  21147. #ifdef __cplusplus
  21148. extern "C"
  21149. #endif
  21150. char clock_gettime ();
  21151. int
  21152. main ()
  21153. {
  21154. return clock_gettime ();
  21155. ;
  21156. return 0;
  21157. }
  21158. _ACEOF
  21159. if ac_fn_c_try_link "$LINENO"; then :
  21160. ac_cv_lib_rt_clock_gettime=yes
  21161. else
  21162. ac_cv_lib_rt_clock_gettime=no
  21163. fi
  21164. rm -f core conftest.err conftest.$ac_objext \
  21165. conftest$ac_exeext conftest.$ac_ext
  21166. LIBS=$ac_check_lib_save_LIBS
  21167. fi
  21168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21169. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21170. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21171. have_clock_gettime=yes
  21172. fi
  21173. if test x$have_clock_gettime = xyes; then
  21174. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21175. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21176. else
  21177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21178. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21179. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21180. $as_echo_n "(cached) " >&6
  21181. else
  21182. ac_check_lib_save_LIBS=$LIBS
  21183. LIBS="-lc $LIBS"
  21184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21185. /* end confdefs.h. */
  21186. /* Override any GCC internal prototype to avoid an error.
  21187. Use char because int might match the return type of a GCC
  21188. builtin and then its argument prototype would still apply. */
  21189. #ifdef __cplusplus
  21190. extern "C"
  21191. #endif
  21192. char clock_gettime ();
  21193. int
  21194. main ()
  21195. {
  21196. return clock_gettime ();
  21197. ;
  21198. return 0;
  21199. }
  21200. _ACEOF
  21201. if ac_fn_c_try_link "$LINENO"; then :
  21202. ac_cv_lib_c_clock_gettime=yes
  21203. else
  21204. ac_cv_lib_c_clock_gettime=no
  21205. fi
  21206. rm -f core conftest.err conftest.$ac_objext \
  21207. conftest$ac_exeext conftest.$ac_ext
  21208. LIBS=$ac_check_lib_save_LIBS
  21209. fi
  21210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21211. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21212. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21213. have_clock_gettime=yes
  21214. fi
  21215. if test x$have_clock_gettime = xyes; then
  21216. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21217. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21218. fi
  21219. fi
  21220. fi
  21221. }
  21222. CheckLinuxVersion()
  21223. {
  21224. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21225. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21226. have_linux_version_h=yes
  21227. fi
  21228. if test x$have_linux_version_h = xyes; then
  21229. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21230. fi
  21231. }
  21232. CheckRPATH()
  21233. {
  21234. # Check whether --enable-rpath was given.
  21235. if test "${enable_rpath+set}" = set; then :
  21236. enableval=$enable_rpath;
  21237. else
  21238. enable_rpath=yes
  21239. fi
  21240. }
  21241. CheckEventSignals()
  21242. {
  21243. # Check whether --enable-backgrounding-signal was given.
  21244. if test "${enable_backgrounding_signal+set}" = set; then :
  21245. enableval=$enable_backgrounding_signal;
  21246. else
  21247. enable_backgrounding_signal=no
  21248. fi
  21249. if test x$enable_backgrounding_signal != xno; then
  21250. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21251. fi
  21252. # Check whether --enable-foregrounding-signal was given.
  21253. if test "${enable_foregrounding_signal+set}" = set; then :
  21254. enableval=$enable_foregrounding_signal;
  21255. else
  21256. enable_foregrounding_signal=no
  21257. fi
  21258. if test x$enable_foregrounding_signal != xno; then
  21259. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21260. fi
  21261. }
  21262. CheckVirtualJoystick()
  21263. {
  21264. # Check whether --enable-joystick-virtual was given.
  21265. if test "${enable_joystick_virtual+set}" = set; then :
  21266. enableval=$enable_joystick_virtual;
  21267. else
  21268. enable_joystick_virtual=yes
  21269. fi
  21270. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21271. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21272. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21273. have_joystick_virtual=yes
  21274. fi
  21275. }
  21276. CheckWarnAll
  21277. CheckNoStrictAliasing
  21278. CheckEventSignals
  21279. have_locale=no
  21280. case "$host" in
  21281. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21282. case "$host" in
  21283. *-*-android*)
  21284. # Android
  21285. ARCH=android
  21286. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21287. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21288. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21289. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21290. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21291. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21292. if test x$enable_video = xyes; then
  21293. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21294. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21295. SUMMARY_video="${SUMMARY_video} android"
  21296. fi
  21297. ;;
  21298. *-*-linux*) ARCH=linux ;;
  21299. *-*-uclinux*) ARCH=linux ;;
  21300. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21301. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21302. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21303. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21304. *-*-bsdi*) ARCH=bsdi ;;
  21305. *-*-freebsd*) ARCH=freebsd ;;
  21306. *-*-dragonfly*) ARCH=freebsd ;;
  21307. *-*-netbsd*) ARCH=netbsd ;;
  21308. *-*-openbsd*) ARCH=openbsd ;;
  21309. *-*-sysv5*) ARCH=sysv5 ;;
  21310. *-*-solaris*) ARCH=solaris ;;
  21311. *-*-hpux*) ARCH=hpux ;;
  21312. *-*-aix*) ARCH=aix ;;
  21313. *-*-minix*) ARCH=minix ;;
  21314. *-*-nto*) ARCH=nto
  21315. CheckQNXVideo
  21316. ;;
  21317. esac
  21318. CheckVisibilityHidden
  21319. CheckDeclarationAfterStatement
  21320. CheckDummyVideo
  21321. CheckDiskAudio
  21322. CheckDummyAudio
  21323. CheckDLOPEN
  21324. CheckARM
  21325. CheckNEON
  21326. CheckOSS
  21327. CheckALSA
  21328. CheckPipewire
  21329. CheckPulseAudio
  21330. CheckJACK
  21331. CheckARTSC
  21332. CheckESD
  21333. CheckNAS
  21334. CheckSNDIO
  21335. CheckFusionSound
  21336. CheckLibSampleRate
  21337. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21338. CheckRPI
  21339. CheckX11
  21340. CheckDirectFB
  21341. # Need to check for EGL first because KMSDRM depends on it.
  21342. CheckEGLKMSDRM
  21343. CheckKMSDRM
  21344. CheckOpenGLX11
  21345. CheckOpenGLESX11
  21346. CheckVulkan
  21347. CheckWayland
  21348. CheckInputEvents
  21349. CheckLibUDev
  21350. CheckDBus
  21351. CheckIME
  21352. CheckInotify
  21353. CheckIBus
  21354. CheckFcitx
  21355. case $ARCH in
  21356. linux)
  21357. CheckInputKD
  21358. ;;
  21359. freebsd)
  21360. CheckInputKBIO
  21361. ;;
  21362. openbsd|netbsd)
  21363. CheckInputWSCONS
  21364. ;;
  21365. esac
  21366. CheckUSBHID
  21367. CheckHIDAPI
  21368. CheckPTHREAD
  21369. CheckClockGettime
  21370. CheckLinuxVersion
  21371. CheckRPATH
  21372. CheckVivanteVideo
  21373. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21374. have_misc=yes
  21375. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21376. have_locale=yes
  21377. # Set up files for the audio library
  21378. if test x$enable_audio = xyes; then
  21379. case $ARCH in
  21380. sysv5|solaris|hpux)
  21381. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21382. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21383. SUMMARY_audio="${SUMMARY_audio} sun"
  21384. have_audio=yes
  21385. ;;
  21386. netbsd) # Don't use this on OpenBSD, it's busted.
  21387. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21388. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21389. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21390. have_audio=yes
  21391. ;;
  21392. aix)
  21393. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21394. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21395. SUMMARY_audio="${SUMMARY_audio} paudio"
  21396. have_audio=yes
  21397. ;;
  21398. android)
  21399. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21400. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21401. SUMMARY_audio="${SUMMARY_audio} android"
  21402. have_audio=yes
  21403. ;;
  21404. nto)
  21405. CheckQNXAudio
  21406. ;;
  21407. esac
  21408. fi
  21409. # Set up files for the joystick library
  21410. if test x$enable_joystick = xyes; then
  21411. case $ARCH in
  21412. linux)
  21413. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21414. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21415. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21416. have_joystick=yes
  21417. ;;
  21418. freebsd)
  21419. if test x$use_input_events = xyes; then
  21420. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21421. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21422. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21423. have_joystick=yes
  21424. fi
  21425. ;;
  21426. android)
  21427. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21428. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21429. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21430. have_joystick=yes
  21431. ;;
  21432. esac
  21433. fi
  21434. # Set up files for the haptic library
  21435. if test x$enable_haptic = xyes; then
  21436. case $ARCH in
  21437. linux|freebsd)
  21438. if test x$use_input_events = xyes; then
  21439. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21440. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21441. have_haptic=yes
  21442. fi
  21443. ;;
  21444. android)
  21445. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21446. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21447. have_haptic=yes
  21448. ;;
  21449. esac
  21450. fi
  21451. # Set up files for the sensor library
  21452. if test x$enable_sensor = xyes; then
  21453. case $ARCH in
  21454. android)
  21455. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21456. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21457. have_sensor=yes
  21458. ;;
  21459. esac
  21460. fi
  21461. # Set up files for the power library
  21462. if test x$enable_power = xyes; then
  21463. case $ARCH in
  21464. linux)
  21465. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21466. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21467. have_power=yes
  21468. ;;
  21469. android)
  21470. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21471. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21472. have_power=yes
  21473. ;;
  21474. esac
  21475. fi
  21476. # Set up files for the filesystem library
  21477. if test x$enable_filesystem = xyes; then
  21478. case $ARCH in
  21479. android)
  21480. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21481. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21482. have_filesystem=yes
  21483. ;;
  21484. *)
  21485. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21486. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21487. have_filesystem=yes
  21488. ;;
  21489. esac
  21490. fi
  21491. # Set up files for the timer library
  21492. if test x$enable_timers = xyes; then
  21493. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21494. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21495. have_timers=yes
  21496. fi
  21497. # Set up files for udev hotplugging support
  21498. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21499. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21500. fi
  21501. # Set up files for evdev input
  21502. if test x$use_input_events = xyes; then
  21503. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21504. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21505. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21506. fi
  21507. # Set up files for wscons input
  21508. if test x$use_input_wscons = xyes; then
  21509. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21510. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21511. fi
  21512. # Set up other core UNIX files
  21513. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21514. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21515. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21516. ;;
  21517. *-*-cygwin* | *-*-mingw*)
  21518. ARCH=win32
  21519. if test "$build" != "$host"; then # cross-compiling
  21520. # Default cross-compile location
  21521. ac_default_prefix=/usr/local/cross-tools/$host
  21522. else
  21523. # Look for the location of the tools and install there
  21524. if test "$BUILD_PREFIX" != ""; then
  21525. ac_default_prefix=$BUILD_PREFIX
  21526. fi
  21527. fi
  21528. CheckDeclarationAfterStatement
  21529. CheckDummyVideo
  21530. CheckDiskAudio
  21531. CheckDummyAudio
  21532. CheckWINDOWS
  21533. CheckWINDOWSGL
  21534. CheckWINDOWSGLES
  21535. CheckVulkan
  21536. CheckDIRECTX
  21537. CheckHIDAPI
  21538. # Set up the core platform files
  21539. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21540. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21541. have_misc=yes
  21542. # Use the Windows locale APIs.
  21543. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21544. have_locale=yes
  21545. # Set up files for the video library
  21546. if test x$enable_video = xyes; then
  21547. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21548. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21549. have_video=yes
  21550. # Check whether --enable-render-d3d was given.
  21551. if test "${enable_render_d3d+set}" = set; then :
  21552. enableval=$enable_render_d3d;
  21553. else
  21554. enable_render_d3d=yes
  21555. fi
  21556. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21557. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21558. SUMMARY_video="${SUMMARY_video} d3d9"
  21559. fi
  21560. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21561. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21562. SUMMARY_video="${SUMMARY_video} d3d11"
  21563. fi
  21564. fi
  21565. # Set up files for the audio library
  21566. if test x$enable_audio = xyes; then
  21567. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21568. SUMMARY_audio="${SUMMARY_audio} winmm"
  21569. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21570. if test x$have_dsound = xyes; then
  21571. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21572. SUMMARY_audio="${SUMMARY_audio} directsound"
  21573. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21574. fi
  21575. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21576. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21577. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21578. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21579. fi
  21580. have_audio=yes
  21581. fi
  21582. # Set up files for the joystick library
  21583. if test x$enable_joystick = xyes; then
  21584. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21585. if test x$have_xinput = xyes; then
  21586. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21587. fi
  21588. if test x$have_dinput = xyes; then
  21589. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21590. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21591. fi
  21592. else
  21593. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21594. fi
  21595. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21596. have_joystick=yes
  21597. fi
  21598. if test x$enable_haptic = xyes; then
  21599. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21600. if test x$have_xinput = xyes; then
  21601. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21602. fi
  21603. if test x$have_dinput = xyes; then
  21604. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21605. fi
  21606. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21607. have_haptic=yes
  21608. fi
  21609. fi
  21610. # Set up files for the sensor library
  21611. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21612. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21613. have_winsensors=yes
  21614. else
  21615. have_winsensors=no
  21616. fi
  21617. if test x$have_winsensors = xyes; then
  21618. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21619. fi
  21620. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21621. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21622. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21623. have_sensor=yes
  21624. fi
  21625. # Set up files for the power library
  21626. if test x$enable_power = xyes; then
  21627. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21628. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21629. have_power=yes
  21630. fi
  21631. # Set up files for the filesystem library
  21632. if test x$enable_filesystem = xyes; then
  21633. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21634. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21635. have_filesystem=yes
  21636. fi
  21637. # Set up files for the thread library
  21638. if test x$enable_threads = xyes; then
  21639. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21640. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21641. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21642. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21643. have_threads=yes
  21644. fi
  21645. # Set up files for the timer library
  21646. if test x$enable_timers = xyes; then
  21647. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21648. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21649. have_timers=yes
  21650. fi
  21651. # Set up files for the shared object loading library
  21652. if test x$enable_loadso = xyes; then
  21653. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21654. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21655. have_loadso=yes
  21656. fi
  21657. # Set up the system libraries we need
  21658. if test -f /lib/w32api/libuuid.a; then
  21659. LIBUUID=/lib/w32api/libuuid.a
  21660. else
  21661. LIBUUID=-luuid
  21662. fi
  21663. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21664. # The Windows platform requires special setup
  21665. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21666. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21667. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21668. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21669. # Check to see if this is a mingw or cygwin build
  21670. have_mingw32=
  21671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21672. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21673. if ${ac_cv_lib_mingw32_main+:} false; then :
  21674. $as_echo_n "(cached) " >&6
  21675. else
  21676. ac_check_lib_save_LIBS=$LIBS
  21677. LIBS="-lmingw32 $LIBS"
  21678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21679. /* end confdefs.h. */
  21680. int
  21681. main ()
  21682. {
  21683. return main ();
  21684. ;
  21685. return 0;
  21686. }
  21687. _ACEOF
  21688. if ac_fn_c_try_link "$LINENO"; then :
  21689. ac_cv_lib_mingw32_main=yes
  21690. else
  21691. ac_cv_lib_mingw32_main=no
  21692. fi
  21693. rm -f core conftest.err conftest.$ac_objext \
  21694. conftest$ac_exeext conftest.$ac_ext
  21695. LIBS=$ac_check_lib_save_LIBS
  21696. fi
  21697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21698. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21699. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21700. have_mingw32=yes
  21701. fi
  21702. if test x$have_mingw32 = xyes; then
  21703. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21704. else
  21705. SDL_LIBS="-lcygwin $SDL_LIBS"
  21706. fi
  21707. ;;
  21708. *-*-beos*)
  21709. as_fn_error $? "
  21710. *** BeOS support has been removed as of SDL 2.0.2.
  21711. " "$LINENO" 5
  21712. ;;
  21713. *-*-haiku*)
  21714. ARCH=haiku
  21715. ac_default_prefix=/boot/system
  21716. CheckDummyVideo
  21717. CheckDiskAudio
  21718. CheckDummyAudio
  21719. CheckDLOPEN
  21720. CheckHaikuVideo
  21721. CheckHaikuGL
  21722. CheckPTHREAD
  21723. # Set up files for the audio library
  21724. if test x$enable_audio = xyes; then
  21725. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21726. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21727. SUMMARY_audio="${SUMMARY_audio} haiku"
  21728. have_audio=yes
  21729. fi
  21730. # Set up files for the joystick library
  21731. if test x$enable_joystick = xyes; then
  21732. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21733. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21734. have_joystick=yes
  21735. fi
  21736. # Set up files for the timer library
  21737. if test x$enable_timers = xyes; then
  21738. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21739. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21740. have_timers=yes
  21741. fi
  21742. # Set up files for the system power library
  21743. if test x$enable_power = xyes; then
  21744. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21745. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21746. have_power=yes
  21747. fi
  21748. # Set up files for the system filesystem library
  21749. if test x$enable_filesystem = xyes; then
  21750. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21751. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21752. have_filesystem=yes
  21753. fi
  21754. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21755. have_misc=yes
  21756. # Set up files for the locale library
  21757. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21758. have_locale=yes
  21759. # The Haiku platform requires special setup.
  21760. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21761. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21762. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21763. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21764. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21766. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21767. if eval \${$as_ac_File+:} false; then :
  21768. $as_echo_n "(cached) " >&6
  21769. else
  21770. test "$cross_compiling" = yes &&
  21771. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21772. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21773. eval "$as_ac_File=yes"
  21774. else
  21775. eval "$as_ac_File=no"
  21776. fi
  21777. fi
  21778. eval ac_res=\$$as_ac_File
  21779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21780. $as_echo "$ac_res" >&6; }
  21781. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21783. else
  21784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21785. fi
  21786. ;;
  21787. *-ios-*)
  21788. ARCH=ios
  21789. CheckVisibilityHidden
  21790. CheckDeclarationAfterStatement
  21791. CheckDummyVideo
  21792. CheckDiskAudio
  21793. CheckDummyAudio
  21794. CheckDLOPEN
  21795. CheckMETAL
  21796. CheckVulkan
  21797. CheckPTHREAD
  21798. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21799. have_misc=yes
  21800. # Set up files for the locale library
  21801. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21802. have_locale=yes
  21803. # Set up files for the audio library
  21804. if test x$enable_audio = xyes; then
  21805. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21806. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21807. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21808. have_audio=yes
  21809. fi
  21810. # Set up files for the joystick library
  21811. if test x$enable_joystick = xyes; then
  21812. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21813. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21814. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21815. have_joystick=yes
  21816. else
  21817. # Need this code for accelerometer as joystick support
  21818. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21819. fi
  21820. # Set up files for the haptic library
  21821. #if test x$enable_haptic = xyes; then
  21822. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21823. # have_haptic=yes
  21824. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21825. #fi
  21826. # Set up files for the sensor library
  21827. if test x$enable_sensor = xyes; then
  21828. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21829. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21830. have_sensor=yes
  21831. fi
  21832. # Set up files for the power library
  21833. if test x$enable_power = xyes; then
  21834. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21835. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21836. have_power=yes
  21837. fi
  21838. # Set up files for the filesystem library
  21839. if test x$enable_filesystem = xyes; then
  21840. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21841. have_filesystem=yes
  21842. fi
  21843. # Set up additional files for the file library
  21844. if test x$enable_file = xyes; then
  21845. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21846. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21847. fi
  21848. # Set up files for the timer library
  21849. if test x$enable_timers = xyes; then
  21850. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21851. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21852. have_timers=yes
  21853. fi
  21854. # Set up other core UNIX files
  21855. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21856. # The iOS platform requires special setup.
  21857. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21858. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21859. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21860. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21861. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21862. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21863. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21865. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21866. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21867. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21868. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21874. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21875. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21876. fi
  21877. ;;
  21878. *-*-darwin* )
  21879. # This could be either full "Mac OS X", or plain "Darwin" which is
  21880. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21881. # Next line is broken, and a few files below require Mac OS X (full)
  21882. ARCH=macosx
  21883. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21884. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21885. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21886. CheckVisibilityHidden
  21887. CheckDeclarationAfterStatement
  21888. CheckDummyVideo
  21889. CheckDiskAudio
  21890. CheckDummyAudio
  21891. CheckDLOPEN
  21892. CheckCOCOA
  21893. CheckMETAL
  21894. CheckX11
  21895. CheckMacGL
  21896. CheckMacGLES
  21897. CheckOpenGLX11
  21898. CheckVulkan
  21899. CheckPTHREAD
  21900. CheckHIDAPI
  21901. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21902. have_misc=yes
  21903. # Set up files for the locale library
  21904. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21905. have_locale=yes
  21906. # Set up files for the audio library
  21907. if test x$enable_audio = xyes; then
  21908. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21909. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21910. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21911. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21912. have_audio=yes
  21913. fi
  21914. # Set up files for the joystick library
  21915. if test x$enable_joystick = xyes; then
  21916. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21917. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21918. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21919. CheckJoystickMFI
  21920. have_joystick=yes
  21921. fi
  21922. # Set up files for the haptic library
  21923. if test x$enable_haptic = xyes; then
  21924. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21925. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21926. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21927. have_haptic=yes
  21928. fi
  21929. # Set up files for the power library
  21930. if test x$enable_power = xyes; then
  21931. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21932. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21933. have_power=yes
  21934. fi
  21935. # Set up files for the filesystem library
  21936. if test x$enable_filesystem = xyes; then
  21937. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21938. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21939. have_filesystem=yes
  21940. fi
  21941. # Set up files for the timer library
  21942. if test x$enable_timers = xyes; then
  21943. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21944. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21945. have_timers=yes
  21946. fi
  21947. # Set up additional files for the file library
  21948. if test x$enable_file = xyes; then
  21949. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21950. fi
  21951. # Set up other core UNIX files
  21952. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21953. # The Mac OS X platform requires special setup.
  21954. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21955. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21956. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21957. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21959. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21960. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21961. fi
  21962. ;;
  21963. *-nacl|*-pnacl)
  21964. ARCH=nacl
  21965. CheckNativeClient
  21966. CheckDummyAudio
  21967. CheckDummyVideo
  21968. CheckInputEvents
  21969. CheckPTHREAD
  21970. # Set up files for the timer library
  21971. if test x$enable_timers = xyes; then
  21972. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21973. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21974. have_timers=yes
  21975. fi
  21976. if test x$enable_filesystem = xyes; then
  21977. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21978. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21979. have_filesystem=yes
  21980. fi
  21981. ;;
  21982. *-*-emscripten* )
  21983. if test x$enable_video = xyes; then
  21984. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21985. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21986. have_video=yes
  21987. SUMMARY_video="${SUMMARY_video} emscripten"
  21988. fi
  21989. if test x$enable_audio = xyes; then
  21990. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21991. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21992. have_audio=yes
  21993. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21994. fi
  21995. CheckVisibilityHidden
  21996. CheckDeclarationAfterStatement
  21997. CheckDummyVideo
  21998. CheckDiskAudio
  21999. CheckDummyAudio
  22000. CheckDLOPEN
  22001. CheckClockGettime
  22002. CheckEmscriptenGLES
  22003. # Set up files for the power library
  22004. if test x$enable_power = xyes; then
  22005. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22006. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22007. have_power=yes
  22008. fi
  22009. # Set up files for the power library
  22010. if test x$enable_joystick = xyes; then
  22011. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22012. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22013. have_joystick=yes
  22014. fi
  22015. # Set up files for the filesystem library
  22016. if test x$enable_filesystem = xyes; then
  22017. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22018. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22019. have_filesystem=yes
  22020. fi
  22021. # Set up files for the timer library
  22022. if test x$enable_timers = xyes; then
  22023. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22024. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22025. have_timers=yes
  22026. fi
  22027. # Set up files for the locale library
  22028. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22029. have_locale=yes
  22030. ;;
  22031. *-*-riscos*)
  22032. ARCH=riscos
  22033. CheckVisibilityHidden
  22034. CheckDeclarationAfterStatement
  22035. CheckDummyVideo
  22036. CheckDiskAudio
  22037. CheckDummyAudio
  22038. CheckDLOPEN
  22039. CheckOSS
  22040. CheckPTHREAD
  22041. CheckClockGettime
  22042. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22043. have_misc=yes
  22044. # Set up files for the timer library
  22045. if test x$enable_timers = xyes; then
  22046. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22047. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22048. have_timers=yes
  22049. fi
  22050. ;;
  22051. *)
  22052. as_fn_error $? "
  22053. *** Unsupported host: Please add to configure.ac
  22054. " "$LINENO" 5
  22055. ;;
  22056. esac
  22057. CheckVirtualJoystick
  22058. # Check whether to install sdl2-config
  22059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22060. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22061. # Check whether --enable-sdl2-config was given.
  22062. if test "${enable_sdl2_config+set}" = set; then :
  22063. enableval=$enable_sdl2_config; case "${enableval}" in
  22064. yes) enable_sdl2_config="TRUE" ;;
  22065. no) enable_sdl2_config="FALSE" ;;
  22066. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22067. esac
  22068. else
  22069. enable_sdl2_config="TRUE"
  22070. fi
  22071. if test "$enable_sdl2_config" = "TRUE"; then
  22072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22073. $as_echo "yes" >&6; }
  22074. else
  22075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22076. $as_echo "no" >&6; }
  22077. fi
  22078. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22079. # Verify that we have all the platform specific files we need
  22080. if test x$have_misc != xyes; then
  22081. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22082. fi
  22083. if test x$have_locale != xyes; then
  22084. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22085. fi
  22086. if test x$have_joystick != xyes; then
  22087. if test x$enable_joystick = xyes; then
  22088. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22089. fi
  22090. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22091. fi
  22092. if test x$have_haptic != xyes; then
  22093. if test x$enable_haptic = xyes; then
  22094. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22095. fi
  22096. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22097. fi
  22098. if test x$have_sensor != xyes; then
  22099. if test x$enable_sensor = xyes; then
  22100. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22101. fi
  22102. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22103. fi
  22104. if test x$have_threads != xyes; then
  22105. if test x$enable_threads = xyes; then
  22106. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22107. fi
  22108. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22109. fi
  22110. if test x$have_timers != xyes; then
  22111. if test x$enable_timers = xyes; then
  22112. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22113. fi
  22114. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22115. fi
  22116. if test x$have_filesystem != xyes; then
  22117. if test x$enable_filesystem = xyes; then
  22118. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22119. fi
  22120. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22121. fi
  22122. if test x$have_loadso != xyes; then
  22123. if test x$enable_loadso = xyes; then
  22124. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22125. fi
  22126. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22127. fi
  22128. if test x$SDLMAIN_SOURCES = x; then
  22129. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22130. fi
  22131. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22132. if test x$video_wayland = xyes; then
  22133. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22134. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22135. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22136. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22137. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22138. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22139. echo ;\
  22140. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22141. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22142. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22143. echo ;\
  22144. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22145. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22146. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22147. echo ;\
  22148. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22149. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22150. done ;\
  22151. echo ;\
  22152. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22153. fi
  22154. OBJECTS=`echo $SOURCES`
  22155. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22156. for EXT in asm cc m c S; do
  22157. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22158. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22159. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22160. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22161. done
  22162. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22163. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22164. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22165. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22166. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22167. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22168. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22169. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22170. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22171. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22172. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22173. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22174. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22175. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22176. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22177. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22178. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22179. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22180. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22181. # Set runtime shared library paths as needed
  22182. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22183. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22184. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22186. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22187. have_enable_new_dtags=no
  22188. save_LDFLAGS="$LDFLAGS"
  22189. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22191. /* end confdefs.h. */
  22192. int
  22193. main ()
  22194. {
  22195. ;
  22196. return 0;
  22197. }
  22198. _ACEOF
  22199. if ac_fn_c_try_link "$LINENO"; then :
  22200. have_enable_new_dtags=yes
  22201. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22202. fi
  22203. rm -f core conftest.err conftest.$ac_objext \
  22204. conftest$ac_exeext conftest.$ac_ext
  22205. LDFLAGS="$save_LDFLAGS"
  22206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22207. $as_echo "$have_enable_new_dtags" >&6; }
  22208. fi
  22209. if test $ARCH = solaris; then
  22210. SDL_RLD_FLAGS="-R\${libdir}"
  22211. fi
  22212. else
  22213. SDL_RLD_FLAGS=""
  22214. fi
  22215. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22216. if test x$enable_shared = xyes; then
  22217. PKG_CONFIG_LIBS_PRIV="
  22218. Libs.private:"
  22219. ENABLE_SHARED_TRUE=
  22220. ENABLE_SHARED_FALSE="#"
  22221. else
  22222. PKG_CONFIG_LIBS_PRIV=
  22223. ENABLE_SHARED_TRUE="#"
  22224. ENABLE_SHARED_FALSE=
  22225. fi
  22226. if test x$enable_static = xyes; then
  22227. ENABLE_STATIC_TRUE=
  22228. ENABLE_STATIC_FALSE="#"
  22229. else
  22230. ENABLE_STATIC_TRUE="#"
  22231. ENABLE_STATIC_FALSE=
  22232. fi
  22233. cat >Makefile.rules <<__EOF__
  22234. # Build rules for objects
  22235. -include \$(OBJECTS:.lo=.d)
  22236. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22237. $srcdir/src/SDL.c: update-revision
  22238. $DEPENDS
  22239. $VERSION_DEPENDS
  22240. $SDLMAIN_DEPENDS
  22241. $SDLTEST_DEPENDS
  22242. $WAYLAND_PROTOCOLS_DEPENDS
  22243. __EOF__
  22244. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22245. ac_config_commands="$ac_config_commands sdl2_config"
  22246. SUMMARY="SDL2 Configure Summary:\n"
  22247. if test x$enable_shared = xyes; then
  22248. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22249. fi
  22250. if test x$enable_static = xyes; then
  22251. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22252. fi
  22253. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22254. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22255. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22256. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22257. if test x$have_x = xyes; then
  22258. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22259. fi
  22260. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22261. if test x$have_joystick_virtual = xyes; then
  22262. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22263. else
  22264. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22265. fi
  22266. if test x$have_samplerate_h_hdr = xyes; then
  22267. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22268. else
  22269. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22270. fi
  22271. if test x$have_libudev_h_hdr = xyes; then
  22272. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22273. else
  22274. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22275. fi
  22276. if test x$have_dbus_dbus_h_hdr = xyes; then
  22277. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22278. else
  22279. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22280. fi
  22281. if test x$enable_ime = xyes; then
  22282. SUMMARY="${SUMMARY}Using ime : YES\n"
  22283. else
  22284. SUMMARY="${SUMMARY}Using ime : NO\n"
  22285. fi
  22286. if test x$have_ibus_ibus_h_hdr = xyes; then
  22287. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22288. else
  22289. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22290. fi
  22291. if test x$have_fcitx = xyes; then
  22292. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22293. else
  22294. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22295. fi
  22296. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22297. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22298. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22299. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22300. SUMMARY="${SUMMARY}configure script with:\n"
  22301. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22302. fi
  22303. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22304. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22305. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22306. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22307. SUMMARY="${SUMMARY}configure script with:\n"
  22308. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22309. fi
  22310. ac_config_commands="$ac_config_commands summary"
  22311. cat >confcache <<\_ACEOF
  22312. # This file is a shell script that caches the results of configure
  22313. # tests run on this system so they can be shared between configure
  22314. # scripts and configure runs, see configure's option --config-cache.
  22315. # It is not useful on other systems. If it contains results you don't
  22316. # want to keep, you may remove or edit it.
  22317. #
  22318. # config.status only pays attention to the cache file if you give it
  22319. # the --recheck option to rerun configure.
  22320. #
  22321. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22322. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22323. # following values.
  22324. _ACEOF
  22325. # The following way of writing the cache mishandles newlines in values,
  22326. # but we know of no workaround that is simple, portable, and efficient.
  22327. # So, we kill variables containing newlines.
  22328. # Ultrix sh set writes to stderr and can't be redirected directly,
  22329. # and sets the high bit in the cache file unless we assign to the vars.
  22330. (
  22331. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22332. eval ac_val=\$$ac_var
  22333. case $ac_val in #(
  22334. *${as_nl}*)
  22335. case $ac_var in #(
  22336. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22337. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22338. esac
  22339. case $ac_var in #(
  22340. _ | IFS | as_nl) ;; #(
  22341. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22342. *) { eval $ac_var=; unset $ac_var;} ;;
  22343. esac ;;
  22344. esac
  22345. done
  22346. (set) 2>&1 |
  22347. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22348. *${as_nl}ac_space=\ *)
  22349. # `set' does not quote correctly, so add quotes: double-quote
  22350. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22351. sed -n \
  22352. "s/'/'\\\\''/g;
  22353. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22354. ;; #(
  22355. *)
  22356. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22357. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22358. ;;
  22359. esac |
  22360. sort
  22361. ) |
  22362. sed '
  22363. /^ac_cv_env_/b end
  22364. t clear
  22365. :clear
  22366. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22367. t end
  22368. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22369. :end' >>confcache
  22370. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22371. if test -w "$cache_file"; then
  22372. if test "x$cache_file" != "x/dev/null"; then
  22373. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22374. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22375. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22376. cat confcache >"$cache_file"
  22377. else
  22378. case $cache_file in #(
  22379. */* | ?:*)
  22380. mv -f confcache "$cache_file"$$ &&
  22381. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22382. *)
  22383. mv -f confcache "$cache_file" ;;
  22384. esac
  22385. fi
  22386. fi
  22387. else
  22388. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22389. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22390. fi
  22391. fi
  22392. rm -f confcache
  22393. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22394. # Let make expand exec_prefix.
  22395. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22396. DEFS=-DHAVE_CONFIG_H
  22397. ac_libobjs=
  22398. ac_ltlibobjs=
  22399. U=
  22400. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22401. # 1. Remove the extension, and $U if already installed.
  22402. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22403. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22404. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22405. # will be set to the directory where LIBOBJS objects are built.
  22406. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22407. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22408. done
  22409. LIBOBJS=$ac_libobjs
  22410. LTLIBOBJS=$ac_ltlibobjs
  22411. : "${CONFIG_STATUS=./config.status}"
  22412. ac_write_fail=0
  22413. ac_clean_files_save=$ac_clean_files
  22414. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22415. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22416. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22417. as_write_fail=0
  22418. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22419. #! $SHELL
  22420. # Generated by $as_me.
  22421. # Run this file to recreate the current configuration.
  22422. # Compiler output produced by configure, useful for debugging
  22423. # configure, is in config.log if it exists.
  22424. debug=false
  22425. ac_cs_recheck=false
  22426. ac_cs_silent=false
  22427. SHELL=\${CONFIG_SHELL-$SHELL}
  22428. export SHELL
  22429. _ASEOF
  22430. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22431. ## -------------------- ##
  22432. ## M4sh Initialization. ##
  22433. ## -------------------- ##
  22434. # Be more Bourne compatible
  22435. DUALCASE=1; export DUALCASE # for MKS sh
  22436. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22437. emulate sh
  22438. NULLCMD=:
  22439. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22440. # is contrary to our usage. Disable this feature.
  22441. alias -g '${1+"$@"}'='"$@"'
  22442. setopt NO_GLOB_SUBST
  22443. else
  22444. case `(set -o) 2>/dev/null` in #(
  22445. *posix*) :
  22446. set -o posix ;; #(
  22447. *) :
  22448. ;;
  22449. esac
  22450. fi
  22451. as_nl='
  22452. '
  22453. export as_nl
  22454. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22455. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22456. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22457. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22458. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22459. # but without wasting forks for bash or zsh.
  22460. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22461. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22462. as_echo='print -r --'
  22463. as_echo_n='print -rn --'
  22464. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22465. as_echo='printf %s\n'
  22466. as_echo_n='printf %s'
  22467. else
  22468. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22469. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22470. as_echo_n='/usr/ucb/echo -n'
  22471. else
  22472. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22473. as_echo_n_body='eval
  22474. arg=$1;
  22475. case $arg in #(
  22476. *"$as_nl"*)
  22477. expr "X$arg" : "X\\(.*\\)$as_nl";
  22478. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22479. esac;
  22480. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22481. '
  22482. export as_echo_n_body
  22483. as_echo_n='sh -c $as_echo_n_body as_echo'
  22484. fi
  22485. export as_echo_body
  22486. as_echo='sh -c $as_echo_body as_echo'
  22487. fi
  22488. # The user is always right.
  22489. if test "${PATH_SEPARATOR+set}" != set; then
  22490. PATH_SEPARATOR=:
  22491. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22492. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22493. PATH_SEPARATOR=';'
  22494. }
  22495. fi
  22496. # IFS
  22497. # We need space, tab and new line, in precisely that order. Quoting is
  22498. # there to prevent editors from complaining about space-tab.
  22499. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22500. # splitting by setting IFS to empty value.)
  22501. IFS=" "" $as_nl"
  22502. # Find who we are. Look in the path if we contain no directory separator.
  22503. as_myself=
  22504. case $0 in #((
  22505. *[\\/]* ) as_myself=$0 ;;
  22506. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22507. for as_dir in $PATH
  22508. do
  22509. IFS=$as_save_IFS
  22510. test -z "$as_dir" && as_dir=.
  22511. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22512. done
  22513. IFS=$as_save_IFS
  22514. ;;
  22515. esac
  22516. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22517. # in which case we are not to be found in the path.
  22518. if test "x$as_myself" = x; then
  22519. as_myself=$0
  22520. fi
  22521. if test ! -f "$as_myself"; then
  22522. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22523. exit 1
  22524. fi
  22525. # Unset variables that we do not need and which cause bugs (e.g. in
  22526. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22527. # suppresses any "Segmentation fault" message there. '((' could
  22528. # trigger a bug in pdksh 5.2.14.
  22529. for as_var in BASH_ENV ENV MAIL MAILPATH
  22530. do eval test x\${$as_var+set} = xset \
  22531. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22532. done
  22533. PS1='$ '
  22534. PS2='> '
  22535. PS4='+ '
  22536. # NLS nuisances.
  22537. LC_ALL=C
  22538. export LC_ALL
  22539. LANGUAGE=C
  22540. export LANGUAGE
  22541. # CDPATH.
  22542. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22543. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22544. # ----------------------------------------
  22545. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22546. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22547. # script with STATUS, using 1 if that was 0.
  22548. as_fn_error ()
  22549. {
  22550. as_status=$1; test $as_status -eq 0 && as_status=1
  22551. if test "$4"; then
  22552. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22553. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22554. fi
  22555. $as_echo "$as_me: error: $2" >&2
  22556. as_fn_exit $as_status
  22557. } # as_fn_error
  22558. # as_fn_set_status STATUS
  22559. # -----------------------
  22560. # Set $? to STATUS, without forking.
  22561. as_fn_set_status ()
  22562. {
  22563. return $1
  22564. } # as_fn_set_status
  22565. # as_fn_exit STATUS
  22566. # -----------------
  22567. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22568. as_fn_exit ()
  22569. {
  22570. set +e
  22571. as_fn_set_status $1
  22572. exit $1
  22573. } # as_fn_exit
  22574. # as_fn_unset VAR
  22575. # ---------------
  22576. # Portably unset VAR.
  22577. as_fn_unset ()
  22578. {
  22579. { eval $1=; unset $1;}
  22580. }
  22581. as_unset=as_fn_unset
  22582. # as_fn_append VAR VALUE
  22583. # ----------------------
  22584. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22585. # advantage of any shell optimizations that allow amortized linear growth over
  22586. # repeated appends, instead of the typical quadratic growth present in naive
  22587. # implementations.
  22588. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22589. eval 'as_fn_append ()
  22590. {
  22591. eval $1+=\$2
  22592. }'
  22593. else
  22594. as_fn_append ()
  22595. {
  22596. eval $1=\$$1\$2
  22597. }
  22598. fi # as_fn_append
  22599. # as_fn_arith ARG...
  22600. # ------------------
  22601. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22602. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22603. # must be portable across $(()) and expr.
  22604. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22605. eval 'as_fn_arith ()
  22606. {
  22607. as_val=$(( $* ))
  22608. }'
  22609. else
  22610. as_fn_arith ()
  22611. {
  22612. as_val=`expr "$@" || test $? -eq 1`
  22613. }
  22614. fi # as_fn_arith
  22615. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22616. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22617. as_expr=expr
  22618. else
  22619. as_expr=false
  22620. fi
  22621. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22622. as_basename=basename
  22623. else
  22624. as_basename=false
  22625. fi
  22626. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22627. as_dirname=dirname
  22628. else
  22629. as_dirname=false
  22630. fi
  22631. as_me=`$as_basename -- "$0" ||
  22632. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22633. X"$0" : 'X\(//\)$' \| \
  22634. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22635. $as_echo X/"$0" |
  22636. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22637. s//\1/
  22638. q
  22639. }
  22640. /^X\/\(\/\/\)$/{
  22641. s//\1/
  22642. q
  22643. }
  22644. /^X\/\(\/\).*/{
  22645. s//\1/
  22646. q
  22647. }
  22648. s/.*/./; q'`
  22649. # Avoid depending upon Character Ranges.
  22650. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22651. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22652. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22653. as_cr_digits='0123456789'
  22654. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22655. ECHO_C= ECHO_N= ECHO_T=
  22656. case `echo -n x` in #(((((
  22657. -n*)
  22658. case `echo 'xy\c'` in
  22659. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22660. xy) ECHO_C='\c';;
  22661. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22662. ECHO_T=' ';;
  22663. esac;;
  22664. *)
  22665. ECHO_N='-n';;
  22666. esac
  22667. rm -f conf$$ conf$$.exe conf$$.file
  22668. if test -d conf$$.dir; then
  22669. rm -f conf$$.dir/conf$$.file
  22670. else
  22671. rm -f conf$$.dir
  22672. mkdir conf$$.dir 2>/dev/null
  22673. fi
  22674. if (echo >conf$$.file) 2>/dev/null; then
  22675. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22676. as_ln_s='ln -s'
  22677. # ... but there are two gotchas:
  22678. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22679. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22680. # In both cases, we have to default to `cp -pR'.
  22681. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22682. as_ln_s='cp -pR'
  22683. elif ln conf$$.file conf$$ 2>/dev/null; then
  22684. as_ln_s=ln
  22685. else
  22686. as_ln_s='cp -pR'
  22687. fi
  22688. else
  22689. as_ln_s='cp -pR'
  22690. fi
  22691. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22692. rmdir conf$$.dir 2>/dev/null
  22693. # as_fn_mkdir_p
  22694. # -------------
  22695. # Create "$as_dir" as a directory, including parents if necessary.
  22696. as_fn_mkdir_p ()
  22697. {
  22698. case $as_dir in #(
  22699. -*) as_dir=./$as_dir;;
  22700. esac
  22701. test -d "$as_dir" || eval $as_mkdir_p || {
  22702. as_dirs=
  22703. while :; do
  22704. case $as_dir in #(
  22705. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22706. *) as_qdir=$as_dir;;
  22707. esac
  22708. as_dirs="'$as_qdir' $as_dirs"
  22709. as_dir=`$as_dirname -- "$as_dir" ||
  22710. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22711. X"$as_dir" : 'X\(//\)[^/]' \| \
  22712. X"$as_dir" : 'X\(//\)$' \| \
  22713. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22714. $as_echo X"$as_dir" |
  22715. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22716. s//\1/
  22717. q
  22718. }
  22719. /^X\(\/\/\)[^/].*/{
  22720. s//\1/
  22721. q
  22722. }
  22723. /^X\(\/\/\)$/{
  22724. s//\1/
  22725. q
  22726. }
  22727. /^X\(\/\).*/{
  22728. s//\1/
  22729. q
  22730. }
  22731. s/.*/./; q'`
  22732. test -d "$as_dir" && break
  22733. done
  22734. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22735. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22736. } # as_fn_mkdir_p
  22737. if mkdir -p . 2>/dev/null; then
  22738. as_mkdir_p='mkdir -p "$as_dir"'
  22739. else
  22740. test -d ./-p && rmdir ./-p
  22741. as_mkdir_p=false
  22742. fi
  22743. # as_fn_executable_p FILE
  22744. # -----------------------
  22745. # Test if FILE is an executable regular file.
  22746. as_fn_executable_p ()
  22747. {
  22748. test -f "$1" && test -x "$1"
  22749. } # as_fn_executable_p
  22750. as_test_x='test -x'
  22751. as_executable_p=as_fn_executable_p
  22752. # Sed expression to map a string onto a valid CPP name.
  22753. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22754. # Sed expression to map a string onto a valid variable name.
  22755. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22756. exec 6>&1
  22757. ## ----------------------------------- ##
  22758. ## Main body of $CONFIG_STATUS script. ##
  22759. ## ----------------------------------- ##
  22760. _ASEOF
  22761. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22762. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22763. # Save the log message, to keep $0 and so on meaningful, and to
  22764. # report actual input values of CONFIG_FILES etc. instead of their
  22765. # values after options handling.
  22766. ac_log="
  22767. This file was extended by $as_me, which was
  22768. generated by GNU Autoconf 2.69. Invocation command line was
  22769. CONFIG_FILES = $CONFIG_FILES
  22770. CONFIG_HEADERS = $CONFIG_HEADERS
  22771. CONFIG_LINKS = $CONFIG_LINKS
  22772. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22773. $ $0 $@
  22774. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22775. "
  22776. _ACEOF
  22777. case $ac_config_files in *"
  22778. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22779. esac
  22780. case $ac_config_headers in *"
  22781. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22782. esac
  22783. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22784. # Files that config.status was made for.
  22785. config_files="$ac_config_files"
  22786. config_headers="$ac_config_headers"
  22787. config_commands="$ac_config_commands"
  22788. _ACEOF
  22789. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22790. ac_cs_usage="\
  22791. \`$as_me' instantiates files and other configuration actions
  22792. from templates according to the current configuration. Unless the files
  22793. and actions are specified as TAGs, all are instantiated by default.
  22794. Usage: $0 [OPTION]... [TAG]...
  22795. -h, --help print this help, then exit
  22796. -V, --version print version number and configuration settings, then exit
  22797. --config print configuration, then exit
  22798. -q, --quiet, --silent
  22799. do not print progress messages
  22800. -d, --debug don't remove temporary files
  22801. --recheck update $as_me by reconfiguring in the same conditions
  22802. --file=FILE[:TEMPLATE]
  22803. instantiate the configuration file FILE
  22804. --header=FILE[:TEMPLATE]
  22805. instantiate the configuration header FILE
  22806. Configuration files:
  22807. $config_files
  22808. Configuration headers:
  22809. $config_headers
  22810. Configuration commands:
  22811. $config_commands
  22812. Report bugs to the package provider."
  22813. _ACEOF
  22814. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22815. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22816. ac_cs_version="\\
  22817. config.status
  22818. configured by $0, generated by GNU Autoconf 2.69,
  22819. with options \\"\$ac_cs_config\\"
  22820. Copyright (C) 2012 Free Software Foundation, Inc.
  22821. This config.status script is free software; the Free Software Foundation
  22822. gives unlimited permission to copy, distribute and modify it."
  22823. ac_pwd='$ac_pwd'
  22824. srcdir='$srcdir'
  22825. INSTALL='$INSTALL'
  22826. AWK='$AWK'
  22827. test -n "\$AWK" || AWK=awk
  22828. _ACEOF
  22829. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22830. # The default lists apply if the user does not specify any file.
  22831. ac_need_defaults=:
  22832. while test $# != 0
  22833. do
  22834. case $1 in
  22835. --*=?*)
  22836. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22837. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22838. ac_shift=:
  22839. ;;
  22840. --*=)
  22841. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22842. ac_optarg=
  22843. ac_shift=:
  22844. ;;
  22845. *)
  22846. ac_option=$1
  22847. ac_optarg=$2
  22848. ac_shift=shift
  22849. ;;
  22850. esac
  22851. case $ac_option in
  22852. # Handling of the options.
  22853. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22854. ac_cs_recheck=: ;;
  22855. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22856. $as_echo "$ac_cs_version"; exit ;;
  22857. --config | --confi | --conf | --con | --co | --c )
  22858. $as_echo "$ac_cs_config"; exit ;;
  22859. --debug | --debu | --deb | --de | --d | -d )
  22860. debug=: ;;
  22861. --file | --fil | --fi | --f )
  22862. $ac_shift
  22863. case $ac_optarg in
  22864. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22865. '') as_fn_error $? "missing file argument" ;;
  22866. esac
  22867. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22868. ac_need_defaults=false;;
  22869. --header | --heade | --head | --hea )
  22870. $ac_shift
  22871. case $ac_optarg in
  22872. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22873. esac
  22874. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22875. ac_need_defaults=false;;
  22876. --he | --h)
  22877. # Conflict between --help and --header
  22878. as_fn_error $? "ambiguous option: \`$1'
  22879. Try \`$0 --help' for more information.";;
  22880. --help | --hel | -h )
  22881. $as_echo "$ac_cs_usage"; exit ;;
  22882. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22883. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22884. ac_cs_silent=: ;;
  22885. # This is an error.
  22886. -*) as_fn_error $? "unrecognized option: \`$1'
  22887. Try \`$0 --help' for more information." ;;
  22888. *) as_fn_append ac_config_targets " $1"
  22889. ac_need_defaults=false ;;
  22890. esac
  22891. shift
  22892. done
  22893. ac_configure_extra_args=
  22894. if $ac_cs_silent; then
  22895. exec 6>/dev/null
  22896. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22897. fi
  22898. _ACEOF
  22899. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22900. if \$ac_cs_recheck; then
  22901. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22902. shift
  22903. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22904. CONFIG_SHELL='$SHELL'
  22905. export CONFIG_SHELL
  22906. exec "\$@"
  22907. fi
  22908. _ACEOF
  22909. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22910. exec 5>>config.log
  22911. {
  22912. echo
  22913. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22914. ## Running $as_me. ##
  22915. _ASBOX
  22916. $as_echo "$ac_log"
  22917. } >&5
  22918. _ACEOF
  22919. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22920. #
  22921. # INIT-COMMANDS
  22922. #
  22923. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22924. # if CDPATH is set.
  22925. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22926. sed_quote_subst='$sed_quote_subst'
  22927. double_quote_subst='$double_quote_subst'
  22928. delay_variable_subst='$delay_variable_subst'
  22929. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22930. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22931. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22932. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22933. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22934. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22935. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22936. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22937. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22938. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22939. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22940. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22941. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22942. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22943. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22944. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22945. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22946. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22947. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22948. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22949. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22950. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22951. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22952. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22953. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22954. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22955. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22956. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22957. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22958. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22959. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22960. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22961. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22962. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22963. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22964. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22965. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22966. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22967. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22968. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22969. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22970. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22971. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22972. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22973. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22974. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22975. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22976. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22977. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22978. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22979. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22980. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22981. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22982. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22983. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22984. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22985. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22986. 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"`'
  22987. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22988. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22989. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22990. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22991. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22992. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22993. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22994. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22995. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22996. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22997. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22998. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22999. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23000. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23001. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23002. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23003. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23004. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23005. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23006. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23007. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23008. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23009. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23010. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23011. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23012. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23013. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23014. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23015. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23016. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23017. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23018. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23019. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23020. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23021. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23022. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23023. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23024. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23025. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23026. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23027. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23028. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23029. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23030. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23031. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23032. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23033. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23034. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23035. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23036. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23037. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23038. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23039. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23040. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23041. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23042. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23043. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23044. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23045. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23046. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23047. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23048. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23049. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23050. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23051. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23052. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23053. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23054. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23055. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23056. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23057. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23058. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23059. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23060. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23061. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23062. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23063. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23064. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23065. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23066. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23067. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23068. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23069. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23070. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23071. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23072. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23073. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23074. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23075. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23076. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23077. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23078. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23079. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23080. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23081. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23082. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23083. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23084. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23085. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23086. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23087. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23088. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23089. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23090. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23091. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23092. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23093. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23094. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23095. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23096. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23097. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23098. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23099. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23100. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23101. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23102. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23103. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23104. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23105. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23106. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23107. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23108. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23109. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23110. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23111. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23112. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23113. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23114. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23115. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23116. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23117. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23118. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23119. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23120. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23121. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23122. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23123. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23124. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23125. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23126. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23127. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23128. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23129. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23130. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23131. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23132. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23133. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23134. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23135. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23136. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23137. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23138. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23139. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23140. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23141. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23142. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23143. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23144. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23145. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23146. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23147. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23148. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23149. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23150. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23151. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23152. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23153. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23154. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23155. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23156. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23157. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23158. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23159. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23160. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23161. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23162. LTCC='$LTCC'
  23163. LTCFLAGS='$LTCFLAGS'
  23164. compiler='$compiler_DEFAULT'
  23165. # A function that is used when there is no print builtin or printf.
  23166. func_fallback_echo ()
  23167. {
  23168. eval 'cat <<_LTECHO_EOF
  23169. \$1
  23170. _LTECHO_EOF'
  23171. }
  23172. # Quote evaled strings.
  23173. for var in AS \
  23174. DLLTOOL \
  23175. OBJDUMP \
  23176. SHELL \
  23177. ECHO \
  23178. PATH_SEPARATOR \
  23179. SED \
  23180. GREP \
  23181. EGREP \
  23182. FGREP \
  23183. LD \
  23184. NM \
  23185. LN_S \
  23186. lt_SP2NL \
  23187. lt_NL2SP \
  23188. reload_flag \
  23189. deplibs_check_method \
  23190. file_magic_cmd \
  23191. file_magic_glob \
  23192. want_nocaseglob \
  23193. sharedlib_from_linklib_cmd \
  23194. AR \
  23195. AR_FLAGS \
  23196. archiver_list_spec \
  23197. STRIP \
  23198. RANLIB \
  23199. CC \
  23200. CFLAGS \
  23201. compiler \
  23202. lt_cv_sys_global_symbol_pipe \
  23203. lt_cv_sys_global_symbol_to_cdecl \
  23204. lt_cv_sys_global_symbol_to_c_name_address \
  23205. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23206. nm_file_list_spec \
  23207. lt_prog_compiler_no_builtin_flag \
  23208. lt_prog_compiler_pic \
  23209. lt_prog_compiler_wl \
  23210. lt_prog_compiler_static \
  23211. lt_cv_prog_compiler_c_o \
  23212. need_locks \
  23213. MANIFEST_TOOL \
  23214. DSYMUTIL \
  23215. NMEDIT \
  23216. LIPO \
  23217. OTOOL \
  23218. OTOOL64 \
  23219. shrext_cmds \
  23220. export_dynamic_flag_spec \
  23221. whole_archive_flag_spec \
  23222. compiler_needs_object \
  23223. with_gnu_ld \
  23224. allow_undefined_flag \
  23225. no_undefined_flag \
  23226. hardcode_libdir_flag_spec \
  23227. hardcode_libdir_separator \
  23228. exclude_expsyms \
  23229. include_expsyms \
  23230. file_list_spec \
  23231. variables_saved_for_relink \
  23232. libname_spec \
  23233. library_names_spec \
  23234. soname_spec \
  23235. install_override_mode \
  23236. finish_eval \
  23237. old_striplib \
  23238. striplib \
  23239. compiler_lib_search_dirs \
  23240. predep_objects \
  23241. postdep_objects \
  23242. predeps \
  23243. postdeps \
  23244. compiler_lib_search_path \
  23245. LD_RC \
  23246. LD_CXX \
  23247. reload_flag_RC \
  23248. reload_flag_CXX \
  23249. compiler_RC \
  23250. compiler_CXX \
  23251. lt_prog_compiler_no_builtin_flag_RC \
  23252. lt_prog_compiler_no_builtin_flag_CXX \
  23253. lt_prog_compiler_pic_RC \
  23254. lt_prog_compiler_pic_CXX \
  23255. lt_prog_compiler_wl_RC \
  23256. lt_prog_compiler_wl_CXX \
  23257. lt_prog_compiler_static_RC \
  23258. lt_prog_compiler_static_CXX \
  23259. lt_cv_prog_compiler_c_o_RC \
  23260. lt_cv_prog_compiler_c_o_CXX \
  23261. export_dynamic_flag_spec_RC \
  23262. export_dynamic_flag_spec_CXX \
  23263. whole_archive_flag_spec_RC \
  23264. whole_archive_flag_spec_CXX \
  23265. compiler_needs_object_RC \
  23266. compiler_needs_object_CXX \
  23267. with_gnu_ld_RC \
  23268. with_gnu_ld_CXX \
  23269. allow_undefined_flag_RC \
  23270. allow_undefined_flag_CXX \
  23271. no_undefined_flag_RC \
  23272. no_undefined_flag_CXX \
  23273. hardcode_libdir_flag_spec_RC \
  23274. hardcode_libdir_flag_spec_CXX \
  23275. hardcode_libdir_separator_RC \
  23276. hardcode_libdir_separator_CXX \
  23277. exclude_expsyms_RC \
  23278. exclude_expsyms_CXX \
  23279. include_expsyms_RC \
  23280. include_expsyms_CXX \
  23281. file_list_spec_RC \
  23282. file_list_spec_CXX \
  23283. compiler_lib_search_dirs_RC \
  23284. compiler_lib_search_dirs_CXX \
  23285. predep_objects_RC \
  23286. predep_objects_CXX \
  23287. postdep_objects_RC \
  23288. postdep_objects_CXX \
  23289. predeps_RC \
  23290. predeps_CXX \
  23291. postdeps_RC \
  23292. postdeps_CXX \
  23293. compiler_lib_search_path_RC \
  23294. compiler_lib_search_path_CXX; do
  23295. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23296. *[\\\\\\\`\\"\\\$]*)
  23297. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23298. ;;
  23299. *)
  23300. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23301. ;;
  23302. esac
  23303. done
  23304. # Double-quote double-evaled strings.
  23305. for var in reload_cmds \
  23306. old_postinstall_cmds \
  23307. old_postuninstall_cmds \
  23308. old_archive_cmds \
  23309. extract_expsyms_cmds \
  23310. old_archive_from_new_cmds \
  23311. old_archive_from_expsyms_cmds \
  23312. archive_cmds \
  23313. archive_expsym_cmds \
  23314. module_cmds \
  23315. module_expsym_cmds \
  23316. export_symbols_cmds \
  23317. prelink_cmds \
  23318. postlink_cmds \
  23319. postinstall_cmds \
  23320. postuninstall_cmds \
  23321. finish_cmds \
  23322. sys_lib_search_path_spec \
  23323. sys_lib_dlsearch_path_spec \
  23324. reload_cmds_RC \
  23325. reload_cmds_CXX \
  23326. old_archive_cmds_RC \
  23327. old_archive_cmds_CXX \
  23328. old_archive_from_new_cmds_RC \
  23329. old_archive_from_new_cmds_CXX \
  23330. old_archive_from_expsyms_cmds_RC \
  23331. old_archive_from_expsyms_cmds_CXX \
  23332. archive_cmds_RC \
  23333. archive_cmds_CXX \
  23334. archive_expsym_cmds_RC \
  23335. archive_expsym_cmds_CXX \
  23336. module_cmds_RC \
  23337. module_cmds_CXX \
  23338. module_expsym_cmds_RC \
  23339. module_expsym_cmds_CXX \
  23340. export_symbols_cmds_RC \
  23341. export_symbols_cmds_CXX \
  23342. prelink_cmds_RC \
  23343. prelink_cmds_CXX \
  23344. postlink_cmds_RC \
  23345. postlink_cmds_CXX; do
  23346. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23347. *[\\\\\\\`\\"\\\$]*)
  23348. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23349. ;;
  23350. *)
  23351. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23352. ;;
  23353. esac
  23354. done
  23355. ac_aux_dir='$ac_aux_dir'
  23356. xsi_shell='$xsi_shell'
  23357. lt_shell_append='$lt_shell_append'
  23358. # See if we are running on zsh, and set the options which allow our
  23359. # commands through without removal of \ escapes INIT.
  23360. if test -n "\${ZSH_VERSION+set}" ; then
  23361. setopt NO_GLOB_SUBST
  23362. fi
  23363. PACKAGE='$PACKAGE'
  23364. VERSION='$VERSION'
  23365. TIMESTAMP='$TIMESTAMP'
  23366. RM='$RM'
  23367. ofile='$ofile'
  23368. SUMMARY="$SUMMARY"
  23369. _ACEOF
  23370. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23371. # Handling of arguments.
  23372. for ac_config_target in $ac_config_targets
  23373. do
  23374. case $ac_config_target in
  23375. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23376. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23377. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23378. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23379. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23380. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23381. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23382. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23383. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23384. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23385. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23386. esac
  23387. done
  23388. # If the user did not use the arguments to specify the items to instantiate,
  23389. # then the envvar interface is used. Set only those that are not.
  23390. # We use the long form for the default assignment because of an extremely
  23391. # bizarre bug on SunOS 4.1.3.
  23392. if $ac_need_defaults; then
  23393. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23394. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23395. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23396. fi
  23397. # Have a temporary directory for convenience. Make it in the build tree
  23398. # simply because there is no reason against having it here, and in addition,
  23399. # creating and moving files from /tmp can sometimes cause problems.
  23400. # Hook for its removal unless debugging.
  23401. # Note that there is a small window in which the directory will not be cleaned:
  23402. # after its creation but before its name has been assigned to `$tmp'.
  23403. $debug ||
  23404. {
  23405. tmp= ac_tmp=
  23406. trap 'exit_status=$?
  23407. : "${ac_tmp:=$tmp}"
  23408. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23409. ' 0
  23410. trap 'as_fn_exit 1' 1 2 13 15
  23411. }
  23412. # Create a (secure) tmp directory for tmp files.
  23413. {
  23414. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23415. test -d "$tmp"
  23416. } ||
  23417. {
  23418. tmp=./conf$$-$RANDOM
  23419. (umask 077 && mkdir "$tmp")
  23420. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23421. ac_tmp=$tmp
  23422. # Set up the scripts for CONFIG_FILES section.
  23423. # No need to generate them if there are no CONFIG_FILES.
  23424. # This happens for instance with `./config.status config.h'.
  23425. if test -n "$CONFIG_FILES"; then
  23426. ac_cr=`echo X | tr X '\015'`
  23427. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23428. # But we know of no other shell where ac_cr would be empty at this
  23429. # point, so we can use a bashism as a fallback.
  23430. if test "x$ac_cr" = x; then
  23431. eval ac_cr=\$\'\\r\'
  23432. fi
  23433. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23434. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23435. ac_cs_awk_cr='\\r'
  23436. else
  23437. ac_cs_awk_cr=$ac_cr
  23438. fi
  23439. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23440. _ACEOF
  23441. {
  23442. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23443. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23444. echo "_ACEOF"
  23445. } >conf$$subs.sh ||
  23446. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23447. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23448. ac_delim='%!_!# '
  23449. for ac_last_try in false false false false false :; do
  23450. . ./conf$$subs.sh ||
  23451. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23452. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23453. if test $ac_delim_n = $ac_delim_num; then
  23454. break
  23455. elif $ac_last_try; then
  23456. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23457. else
  23458. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23459. fi
  23460. done
  23461. rm -f conf$$subs.sh
  23462. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23463. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23464. _ACEOF
  23465. sed -n '
  23466. h
  23467. s/^/S["/; s/!.*/"]=/
  23468. p
  23469. g
  23470. s/^[^!]*!//
  23471. :repl
  23472. t repl
  23473. s/'"$ac_delim"'$//
  23474. t delim
  23475. :nl
  23476. h
  23477. s/\(.\{148\}\)..*/\1/
  23478. t more1
  23479. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23480. p
  23481. n
  23482. b repl
  23483. :more1
  23484. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23485. p
  23486. g
  23487. s/.\{148\}//
  23488. t nl
  23489. :delim
  23490. h
  23491. s/\(.\{148\}\)..*/\1/
  23492. t more2
  23493. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23494. p
  23495. b
  23496. :more2
  23497. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23498. p
  23499. g
  23500. s/.\{148\}//
  23501. t delim
  23502. ' <conf$$subs.awk | sed '
  23503. /^[^""]/{
  23504. N
  23505. s/\n//
  23506. }
  23507. ' >>$CONFIG_STATUS || ac_write_fail=1
  23508. rm -f conf$$subs.awk
  23509. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23510. _ACAWK
  23511. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23512. for (key in S) S_is_set[key] = 1
  23513. FS = ""
  23514. }
  23515. {
  23516. line = $ 0
  23517. nfields = split(line, field, "@")
  23518. substed = 0
  23519. len = length(field[1])
  23520. for (i = 2; i < nfields; i++) {
  23521. key = field[i]
  23522. keylen = length(key)
  23523. if (S_is_set[key]) {
  23524. value = S[key]
  23525. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23526. len += length(value) + length(field[++i])
  23527. substed = 1
  23528. } else
  23529. len += 1 + keylen
  23530. }
  23531. print line
  23532. }
  23533. _ACAWK
  23534. _ACEOF
  23535. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23536. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23537. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23538. else
  23539. cat
  23540. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23541. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23542. _ACEOF
  23543. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23544. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23545. # trailing colons and then remove the whole line if VPATH becomes empty
  23546. # (actually we leave an empty line to preserve line numbers).
  23547. if test "x$srcdir" = x.; then
  23548. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23549. h
  23550. s///
  23551. s/^/:/
  23552. s/[ ]*$/:/
  23553. s/:\$(srcdir):/:/g
  23554. s/:\${srcdir}:/:/g
  23555. s/:@srcdir@:/:/g
  23556. s/^:*//
  23557. s/:*$//
  23558. x
  23559. s/\(=[ ]*\).*/\1/
  23560. G
  23561. s/\n//
  23562. s/^[^=]*=[ ]*$//
  23563. }'
  23564. fi
  23565. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23566. fi # test -n "$CONFIG_FILES"
  23567. # Set up the scripts for CONFIG_HEADERS section.
  23568. # No need to generate them if there are no CONFIG_HEADERS.
  23569. # This happens for instance with `./config.status Makefile'.
  23570. if test -n "$CONFIG_HEADERS"; then
  23571. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23572. BEGIN {
  23573. _ACEOF
  23574. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23575. # here-document in config.status, that substitutes the proper values into
  23576. # config.h.in to produce config.h.
  23577. # Create a delimiter string that does not exist in confdefs.h, to ease
  23578. # handling of long lines.
  23579. ac_delim='%!_!# '
  23580. for ac_last_try in false false :; do
  23581. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23582. if test -z "$ac_tt"; then
  23583. break
  23584. elif $ac_last_try; then
  23585. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23586. else
  23587. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23588. fi
  23589. done
  23590. # For the awk script, D is an array of macro values keyed by name,
  23591. # likewise P contains macro parameters if any. Preserve backslash
  23592. # newline sequences.
  23593. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23594. sed -n '
  23595. s/.\{148\}/&'"$ac_delim"'/g
  23596. t rset
  23597. :rset
  23598. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23599. t def
  23600. d
  23601. :def
  23602. s/\\$//
  23603. t bsnl
  23604. s/["\\]/\\&/g
  23605. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23606. D["\1"]=" \3"/p
  23607. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23608. d
  23609. :bsnl
  23610. s/["\\]/\\&/g
  23611. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23612. D["\1"]=" \3\\\\\\n"\\/p
  23613. t cont
  23614. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23615. t cont
  23616. d
  23617. :cont
  23618. n
  23619. s/.\{148\}/&'"$ac_delim"'/g
  23620. t clear
  23621. :clear
  23622. s/\\$//
  23623. t bsnlc
  23624. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23625. d
  23626. :bsnlc
  23627. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23628. b cont
  23629. ' <confdefs.h | sed '
  23630. s/'"$ac_delim"'/"\\\
  23631. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23632. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23633. for (key in D) D_is_set[key] = 1
  23634. FS = ""
  23635. }
  23636. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23637. line = \$ 0
  23638. split(line, arg, " ")
  23639. if (arg[1] == "#") {
  23640. defundef = arg[2]
  23641. mac1 = arg[3]
  23642. } else {
  23643. defundef = substr(arg[1], 2)
  23644. mac1 = arg[2]
  23645. }
  23646. split(mac1, mac2, "(") #)
  23647. macro = mac2[1]
  23648. prefix = substr(line, 1, index(line, defundef) - 1)
  23649. if (D_is_set[macro]) {
  23650. # Preserve the white space surrounding the "#".
  23651. print prefix "define", macro P[macro] D[macro]
  23652. next
  23653. } else {
  23654. # Replace #undef with comments. This is necessary, for example,
  23655. # in the case of _POSIX_SOURCE, which is predefined and required
  23656. # on some systems where configure will not decide to define it.
  23657. if (defundef == "undef") {
  23658. print "/*", prefix defundef, macro, "*/"
  23659. next
  23660. }
  23661. }
  23662. }
  23663. { print }
  23664. _ACAWK
  23665. _ACEOF
  23666. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23667. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23668. fi # test -n "$CONFIG_HEADERS"
  23669. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23670. shift
  23671. for ac_tag
  23672. do
  23673. case $ac_tag in
  23674. :[FHLC]) ac_mode=$ac_tag; continue;;
  23675. esac
  23676. case $ac_mode$ac_tag in
  23677. :[FHL]*:*);;
  23678. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23679. :[FH]-) ac_tag=-:-;;
  23680. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23681. esac
  23682. ac_save_IFS=$IFS
  23683. IFS=:
  23684. set x $ac_tag
  23685. IFS=$ac_save_IFS
  23686. shift
  23687. ac_file=$1
  23688. shift
  23689. case $ac_mode in
  23690. :L) ac_source=$1;;
  23691. :[FH])
  23692. ac_file_inputs=
  23693. for ac_f
  23694. do
  23695. case $ac_f in
  23696. -) ac_f="$ac_tmp/stdin";;
  23697. *) # Look for the file first in the build tree, then in the source tree
  23698. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23699. # because $ac_f cannot contain `:'.
  23700. test -f "$ac_f" ||
  23701. case $ac_f in
  23702. [\\/$]*) false;;
  23703. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23704. esac ||
  23705. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23706. esac
  23707. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23708. as_fn_append ac_file_inputs " '$ac_f'"
  23709. done
  23710. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23711. # use $as_me), people would be surprised to read:
  23712. # /* config.h. Generated by config.status. */
  23713. configure_input='Generated from '`
  23714. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23715. `' by configure.'
  23716. if test x"$ac_file" != x-; then
  23717. configure_input="$ac_file. $configure_input"
  23718. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23719. $as_echo "$as_me: creating $ac_file" >&6;}
  23720. fi
  23721. # Neutralize special characters interpreted by sed in replacement strings.
  23722. case $configure_input in #(
  23723. *\&* | *\|* | *\\* )
  23724. ac_sed_conf_input=`$as_echo "$configure_input" |
  23725. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23726. *) ac_sed_conf_input=$configure_input;;
  23727. esac
  23728. case $ac_tag in
  23729. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23730. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23731. esac
  23732. ;;
  23733. esac
  23734. ac_dir=`$as_dirname -- "$ac_file" ||
  23735. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23736. X"$ac_file" : 'X\(//\)[^/]' \| \
  23737. X"$ac_file" : 'X\(//\)$' \| \
  23738. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23739. $as_echo X"$ac_file" |
  23740. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23741. s//\1/
  23742. q
  23743. }
  23744. /^X\(\/\/\)[^/].*/{
  23745. s//\1/
  23746. q
  23747. }
  23748. /^X\(\/\/\)$/{
  23749. s//\1/
  23750. q
  23751. }
  23752. /^X\(\/\).*/{
  23753. s//\1/
  23754. q
  23755. }
  23756. s/.*/./; q'`
  23757. as_dir="$ac_dir"; as_fn_mkdir_p
  23758. ac_builddir=.
  23759. case "$ac_dir" in
  23760. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23761. *)
  23762. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23763. # A ".." for each directory in $ac_dir_suffix.
  23764. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23765. case $ac_top_builddir_sub in
  23766. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23767. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23768. esac ;;
  23769. esac
  23770. ac_abs_top_builddir=$ac_pwd
  23771. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23772. # for backward compatibility:
  23773. ac_top_builddir=$ac_top_build_prefix
  23774. case $srcdir in
  23775. .) # We are building in place.
  23776. ac_srcdir=.
  23777. ac_top_srcdir=$ac_top_builddir_sub
  23778. ac_abs_top_srcdir=$ac_pwd ;;
  23779. [\\/]* | ?:[\\/]* ) # Absolute name.
  23780. ac_srcdir=$srcdir$ac_dir_suffix;
  23781. ac_top_srcdir=$srcdir
  23782. ac_abs_top_srcdir=$srcdir ;;
  23783. *) # Relative name.
  23784. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23785. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23786. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23787. esac
  23788. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23789. case $ac_mode in
  23790. :F)
  23791. #
  23792. # CONFIG_FILE
  23793. #
  23794. case $INSTALL in
  23795. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23796. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23797. esac
  23798. _ACEOF
  23799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23800. # If the template does not know about datarootdir, expand it.
  23801. # FIXME: This hack should be removed a few years after 2.60.
  23802. ac_datarootdir_hack=; ac_datarootdir_seen=
  23803. ac_sed_dataroot='
  23804. /datarootdir/ {
  23805. p
  23806. q
  23807. }
  23808. /@datadir@/p
  23809. /@docdir@/p
  23810. /@infodir@/p
  23811. /@localedir@/p
  23812. /@mandir@/p'
  23813. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23814. *datarootdir*) ac_datarootdir_seen=yes;;
  23815. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23817. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23818. _ACEOF
  23819. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23820. ac_datarootdir_hack='
  23821. s&@datadir@&$datadir&g
  23822. s&@docdir@&$docdir&g
  23823. s&@infodir@&$infodir&g
  23824. s&@localedir@&$localedir&g
  23825. s&@mandir@&$mandir&g
  23826. s&\\\${datarootdir}&$datarootdir&g' ;;
  23827. esac
  23828. _ACEOF
  23829. # Neutralize VPATH when `$srcdir' = `.'.
  23830. # Shell code in configure.ac might set extrasub.
  23831. # FIXME: do we really want to maintain this feature?
  23832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23833. ac_sed_extra="$ac_vpsub
  23834. $extrasub
  23835. _ACEOF
  23836. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23837. :t
  23838. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23839. s|@configure_input@|$ac_sed_conf_input|;t t
  23840. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23841. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23842. s&@srcdir@&$ac_srcdir&;t t
  23843. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23844. s&@top_srcdir@&$ac_top_srcdir&;t t
  23845. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23846. s&@builddir@&$ac_builddir&;t t
  23847. s&@abs_builddir@&$ac_abs_builddir&;t t
  23848. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23849. s&@INSTALL@&$ac_INSTALL&;t t
  23850. $ac_datarootdir_hack
  23851. "
  23852. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23853. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23854. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23855. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23856. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23857. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23859. which seems to be undefined. Please make sure it is defined" >&5
  23860. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23861. which seems to be undefined. Please make sure it is defined" >&2;}
  23862. rm -f "$ac_tmp/stdin"
  23863. case $ac_file in
  23864. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23865. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23866. esac \
  23867. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23868. ;;
  23869. :H)
  23870. #
  23871. # CONFIG_HEADER
  23872. #
  23873. if test x"$ac_file" != x-; then
  23874. {
  23875. $as_echo "/* $configure_input */" \
  23876. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23877. } >"$ac_tmp/config.h" \
  23878. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23879. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23880. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23881. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23882. else
  23883. rm -f "$ac_file"
  23884. mv "$ac_tmp/config.h" "$ac_file" \
  23885. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23886. fi
  23887. else
  23888. $as_echo "/* $configure_input */" \
  23889. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23890. || as_fn_error $? "could not create -" "$LINENO" 5
  23891. fi
  23892. ;;
  23893. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23894. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23895. ;;
  23896. esac
  23897. case $ac_file$ac_mode in
  23898. "libtool":C)
  23899. # See if we are running on zsh, and set the options which allow our
  23900. # commands through without removal of \ escapes.
  23901. if test -n "${ZSH_VERSION+set}" ; then
  23902. setopt NO_GLOB_SUBST
  23903. fi
  23904. cfgfile="${ofile}T"
  23905. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23906. $RM "$cfgfile"
  23907. cat <<_LT_EOF >> "$cfgfile"
  23908. #! $SHELL
  23909. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23910. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23911. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23912. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23913. #
  23914. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23915. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23916. # Foundation, Inc.
  23917. # Written by Gordon Matzigkeit, 1996
  23918. #
  23919. # This file is part of GNU Libtool.
  23920. #
  23921. # GNU Libtool is free software; you can redistribute it and/or
  23922. # modify it under the terms of the GNU General Public License as
  23923. # published by the Free Software Foundation; either version 2 of
  23924. # the License, or (at your option) any later version.
  23925. #
  23926. # As a special exception to the GNU General Public License,
  23927. # if you distribute this file as part of a program or library that
  23928. # is built using GNU Libtool, you may include this file under the
  23929. # same distribution terms that you use for the rest of that program.
  23930. #
  23931. # GNU Libtool is distributed in the hope that it will be useful,
  23932. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23933. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23934. # GNU General Public License for more details.
  23935. #
  23936. # You should have received a copy of the GNU General Public License
  23937. # along with GNU Libtool; see the file COPYING. If not, a copy
  23938. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23939. # obtained by writing to the Free Software Foundation, Inc.,
  23940. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23941. # The names of the tagged configurations supported by this script.
  23942. available_tags="RC CXX "
  23943. # ### BEGIN LIBTOOL CONFIG
  23944. # Which release of libtool.m4 was used?
  23945. macro_version=$macro_version
  23946. macro_revision=$macro_revision
  23947. # Assembler program.
  23948. AS=$lt_AS
  23949. # DLL creation program.
  23950. DLLTOOL=$lt_DLLTOOL
  23951. # Object dumper program.
  23952. OBJDUMP=$lt_OBJDUMP
  23953. # Whether or not to build shared libraries.
  23954. build_libtool_libs=$enable_shared
  23955. # Whether or not to build static libraries.
  23956. build_old_libs=$enable_static
  23957. # What type of objects to build.
  23958. pic_mode=$pic_mode
  23959. # Whether or not to optimize for fast installation.
  23960. fast_install=$enable_fast_install
  23961. # Shell to use when invoking shell scripts.
  23962. SHELL=$lt_SHELL
  23963. # An echo program that protects backslashes.
  23964. ECHO=$lt_ECHO
  23965. # The PATH separator for the build system.
  23966. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23967. # The host system.
  23968. host_alias=$host_alias
  23969. host=$host
  23970. host_os=$host_os
  23971. # The build system.
  23972. build_alias=$build_alias
  23973. build=$build
  23974. build_os=$build_os
  23975. # A sed program that does not truncate output.
  23976. SED=$lt_SED
  23977. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23978. Xsed="\$SED -e 1s/^X//"
  23979. # A grep program that handles long lines.
  23980. GREP=$lt_GREP
  23981. # An ERE matcher.
  23982. EGREP=$lt_EGREP
  23983. # A literal string matcher.
  23984. FGREP=$lt_FGREP
  23985. # A BSD- or MS-compatible name lister.
  23986. NM=$lt_NM
  23987. # Whether we need soft or hard links.
  23988. LN_S=$lt_LN_S
  23989. # What is the maximum length of a command?
  23990. max_cmd_len=$max_cmd_len
  23991. # Object file suffix (normally "o").
  23992. objext=$ac_objext
  23993. # Executable file suffix (normally "").
  23994. exeext=$exeext
  23995. # whether the shell understands "unset".
  23996. lt_unset=$lt_unset
  23997. # turn spaces into newlines.
  23998. SP2NL=$lt_lt_SP2NL
  23999. # turn newlines into spaces.
  24000. NL2SP=$lt_lt_NL2SP
  24001. # convert \$build file names to \$host format.
  24002. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24003. # convert \$build files to toolchain format.
  24004. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24005. # Method to check whether dependent libraries are shared objects.
  24006. deplibs_check_method=$lt_deplibs_check_method
  24007. # Command to use when deplibs_check_method = "file_magic".
  24008. file_magic_cmd=$lt_file_magic_cmd
  24009. # How to find potential files when deplibs_check_method = "file_magic".
  24010. file_magic_glob=$lt_file_magic_glob
  24011. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24012. want_nocaseglob=$lt_want_nocaseglob
  24013. # Command to associate shared and link libraries.
  24014. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24015. # The archiver.
  24016. AR=$lt_AR
  24017. # Flags to create an archive.
  24018. AR_FLAGS=$lt_AR_FLAGS
  24019. # How to feed a file listing to the archiver.
  24020. archiver_list_spec=$lt_archiver_list_spec
  24021. # A symbol stripping program.
  24022. STRIP=$lt_STRIP
  24023. # Commands used to install an old-style archive.
  24024. RANLIB=$lt_RANLIB
  24025. old_postinstall_cmds=$lt_old_postinstall_cmds
  24026. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24027. # Whether to use a lock for old archive extraction.
  24028. lock_old_archive_extraction=$lock_old_archive_extraction
  24029. # A C compiler.
  24030. LTCC=$lt_CC
  24031. # LTCC compiler flags.
  24032. LTCFLAGS=$lt_CFLAGS
  24033. # Take the output of nm and produce a listing of raw symbols and C names.
  24034. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24035. # Transform the output of nm in a proper C declaration.
  24036. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24037. # Transform the output of nm in a C name address pair.
  24038. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24039. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24040. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24041. # Specify filename containing input files for \$NM.
  24042. nm_file_list_spec=$lt_nm_file_list_spec
  24043. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24044. lt_sysroot=$lt_sysroot
  24045. # The name of the directory that contains temporary libtool files.
  24046. objdir=$objdir
  24047. # Used to examine libraries when file_magic_cmd begins with "file".
  24048. MAGIC_CMD=$MAGIC_CMD
  24049. # Must we lock files when doing compilation?
  24050. need_locks=$lt_need_locks
  24051. # Manifest tool.
  24052. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24053. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24054. DSYMUTIL=$lt_DSYMUTIL
  24055. # Tool to change global to local symbols on Mac OS X.
  24056. NMEDIT=$lt_NMEDIT
  24057. # Tool to manipulate fat objects and archives on Mac OS X.
  24058. LIPO=$lt_LIPO
  24059. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24060. OTOOL=$lt_OTOOL
  24061. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24062. OTOOL64=$lt_OTOOL64
  24063. # Old archive suffix (normally "a").
  24064. libext=$libext
  24065. # Shared library suffix (normally ".so").
  24066. shrext_cmds=$lt_shrext_cmds
  24067. # The commands to extract the exported symbol list from a shared archive.
  24068. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24069. # Variables whose values should be saved in libtool wrapper scripts and
  24070. # restored at link time.
  24071. variables_saved_for_relink=$lt_variables_saved_for_relink
  24072. # Do we need the "lib" prefix for modules?
  24073. need_lib_prefix=$need_lib_prefix
  24074. # Do we need a version for libraries?
  24075. need_version=$need_version
  24076. # Library versioning type.
  24077. version_type=$version_type
  24078. # Shared library runtime path variable.
  24079. runpath_var=$runpath_var
  24080. # Shared library path variable.
  24081. shlibpath_var=$shlibpath_var
  24082. # Is shlibpath searched before the hard-coded library search path?
  24083. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24084. # Format of library name prefix.
  24085. libname_spec=$lt_libname_spec
  24086. # List of archive names. First name is the real one, the rest are links.
  24087. # The last name is the one that the linker finds with -lNAME
  24088. library_names_spec=$lt_library_names_spec
  24089. # The coded name of the library, if different from the real name.
  24090. soname_spec=$lt_soname_spec
  24091. # Permission mode override for installation of shared libraries.
  24092. install_override_mode=$lt_install_override_mode
  24093. # Command to use after installation of a shared archive.
  24094. postinstall_cmds=$lt_postinstall_cmds
  24095. # Command to use after uninstallation of a shared archive.
  24096. postuninstall_cmds=$lt_postuninstall_cmds
  24097. # Commands used to finish a libtool library installation in a directory.
  24098. finish_cmds=$lt_finish_cmds
  24099. # As "finish_cmds", except a single script fragment to be evaled but
  24100. # not shown.
  24101. finish_eval=$lt_finish_eval
  24102. # Whether we should hardcode library paths into libraries.
  24103. hardcode_into_libs=$hardcode_into_libs
  24104. # Compile-time system search path for libraries.
  24105. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24106. # Run-time system search path for libraries.
  24107. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24108. # Whether dlopen is supported.
  24109. dlopen_support=$enable_dlopen
  24110. # Whether dlopen of programs is supported.
  24111. dlopen_self=$enable_dlopen_self
  24112. # Whether dlopen of statically linked programs is supported.
  24113. dlopen_self_static=$enable_dlopen_self_static
  24114. # Commands to strip libraries.
  24115. old_striplib=$lt_old_striplib
  24116. striplib=$lt_striplib
  24117. # The linker used to build libraries.
  24118. LD=$lt_LD
  24119. # How to create reloadable object files.
  24120. reload_flag=$lt_reload_flag
  24121. reload_cmds=$lt_reload_cmds
  24122. # Commands used to build an old-style archive.
  24123. old_archive_cmds=$lt_old_archive_cmds
  24124. # A language specific compiler.
  24125. CC=$lt_compiler
  24126. # Is the compiler the GNU compiler?
  24127. with_gcc=$GCC
  24128. # Compiler flag to turn off builtin functions.
  24129. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24130. # Additional compiler flags for building library objects.
  24131. pic_flag=$lt_lt_prog_compiler_pic
  24132. # How to pass a linker flag through the compiler.
  24133. wl=$lt_lt_prog_compiler_wl
  24134. # Compiler flag to prevent dynamic linking.
  24135. link_static_flag=$lt_lt_prog_compiler_static
  24136. # Does compiler simultaneously support -c and -o options?
  24137. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24138. # Whether or not to add -lc for building shared libraries.
  24139. build_libtool_need_lc=$archive_cmds_need_lc
  24140. # Whether or not to disallow shared libs when runtime libs are static.
  24141. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24142. # Compiler flag to allow reflexive dlopens.
  24143. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24144. # Compiler flag to generate shared objects directly from archives.
  24145. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24146. # Whether the compiler copes with passing no objects directly.
  24147. compiler_needs_object=$lt_compiler_needs_object
  24148. # Create an old-style archive from a shared archive.
  24149. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24150. # Create a temporary old-style archive to link instead of a shared archive.
  24151. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24152. # Commands used to build a shared archive.
  24153. archive_cmds=$lt_archive_cmds
  24154. archive_expsym_cmds=$lt_archive_expsym_cmds
  24155. # Commands used to build a loadable module if different from building
  24156. # a shared archive.
  24157. module_cmds=$lt_module_cmds
  24158. module_expsym_cmds=$lt_module_expsym_cmds
  24159. # Whether we are building with GNU ld or not.
  24160. with_gnu_ld=$lt_with_gnu_ld
  24161. # Flag that allows shared libraries with undefined symbols to be built.
  24162. allow_undefined_flag=$lt_allow_undefined_flag
  24163. # Flag that enforces no undefined symbols.
  24164. no_undefined_flag=$lt_no_undefined_flag
  24165. # Flag to hardcode \$libdir into a binary during linking.
  24166. # This must work even if \$libdir does not exist
  24167. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24168. # Whether we need a single "-rpath" flag with a separated argument.
  24169. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24170. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24171. # DIR into the resulting binary.
  24172. hardcode_direct=$hardcode_direct
  24173. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24174. # DIR into the resulting binary and the resulting library dependency is
  24175. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24176. # library is relocated.
  24177. hardcode_direct_absolute=$hardcode_direct_absolute
  24178. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24179. # into the resulting binary.
  24180. hardcode_minus_L=$hardcode_minus_L
  24181. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24182. # into the resulting binary.
  24183. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24184. # Set to "yes" if building a shared library automatically hardcodes DIR
  24185. # into the library and all subsequent libraries and executables linked
  24186. # against it.
  24187. hardcode_automatic=$hardcode_automatic
  24188. # Set to yes if linker adds runtime paths of dependent libraries
  24189. # to runtime path list.
  24190. inherit_rpath=$inherit_rpath
  24191. # Whether libtool must link a program against all its dependency libraries.
  24192. link_all_deplibs=$link_all_deplibs
  24193. # Set to "yes" if exported symbols are required.
  24194. always_export_symbols=$always_export_symbols
  24195. # The commands to list exported symbols.
  24196. export_symbols_cmds=$lt_export_symbols_cmds
  24197. # Symbols that should not be listed in the preloaded symbols.
  24198. exclude_expsyms=$lt_exclude_expsyms
  24199. # Symbols that must always be exported.
  24200. include_expsyms=$lt_include_expsyms
  24201. # Commands necessary for linking programs (against libraries) with templates.
  24202. prelink_cmds=$lt_prelink_cmds
  24203. # Commands necessary for finishing linking programs.
  24204. postlink_cmds=$lt_postlink_cmds
  24205. # Specify filename containing input files.
  24206. file_list_spec=$lt_file_list_spec
  24207. # How to hardcode a shared library path into an executable.
  24208. hardcode_action=$hardcode_action
  24209. # The directories searched by this compiler when creating a shared library.
  24210. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24211. # Dependencies to place before and after the objects being linked to
  24212. # create a shared library.
  24213. predep_objects=$lt_predep_objects
  24214. postdep_objects=$lt_postdep_objects
  24215. predeps=$lt_predeps
  24216. postdeps=$lt_postdeps
  24217. # The library search path used internally by the compiler when linking
  24218. # a shared library.
  24219. compiler_lib_search_path=$lt_compiler_lib_search_path
  24220. # ### END LIBTOOL CONFIG
  24221. _LT_EOF
  24222. case $host_os in
  24223. aix3*)
  24224. cat <<\_LT_EOF >> "$cfgfile"
  24225. # AIX sometimes has problems with the GCC collect2 program. For some
  24226. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24227. # vanish in a puff of smoke.
  24228. if test "X${COLLECT_NAMES+set}" != Xset; then
  24229. COLLECT_NAMES=
  24230. export COLLECT_NAMES
  24231. fi
  24232. _LT_EOF
  24233. ;;
  24234. esac
  24235. ltmain="$ac_aux_dir/ltmain.sh"
  24236. # We use sed instead of cat because bash on DJGPP gets confused if
  24237. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24238. # text mode, it properly converts lines to CR/LF. This bash problem
  24239. # is reportedly fixed, but why not run on old versions too?
  24240. sed '$q' "$ltmain" >> "$cfgfile" \
  24241. || (rm -f "$cfgfile"; exit 1)
  24242. if test x"$xsi_shell" = xyes; then
  24243. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24244. func_dirname ()\
  24245. {\
  24246. \ case ${1} in\
  24247. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24248. \ * ) func_dirname_result="${3}" ;;\
  24249. \ esac\
  24250. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24251. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24252. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24253. test 0 -eq $? || _lt_function_replace_fail=:
  24254. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24255. func_basename ()\
  24256. {\
  24257. \ func_basename_result="${1##*/}"\
  24258. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24259. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24260. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24261. test 0 -eq $? || _lt_function_replace_fail=:
  24262. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24263. func_dirname_and_basename ()\
  24264. {\
  24265. \ case ${1} in\
  24266. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24267. \ * ) func_dirname_result="${3}" ;;\
  24268. \ esac\
  24269. \ func_basename_result="${1##*/}"\
  24270. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24271. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24272. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24273. test 0 -eq $? || _lt_function_replace_fail=:
  24274. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24275. func_stripname ()\
  24276. {\
  24277. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24278. \ # positional parameters, so assign one to ordinary parameter first.\
  24279. \ func_stripname_result=${3}\
  24280. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24281. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24282. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24283. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24284. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24285. test 0 -eq $? || _lt_function_replace_fail=:
  24286. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24287. func_split_long_opt ()\
  24288. {\
  24289. \ func_split_long_opt_name=${1%%=*}\
  24290. \ func_split_long_opt_arg=${1#*=}\
  24291. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24292. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24293. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24294. test 0 -eq $? || _lt_function_replace_fail=:
  24295. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24296. func_split_short_opt ()\
  24297. {\
  24298. \ func_split_short_opt_arg=${1#??}\
  24299. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24300. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24301. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24302. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24303. test 0 -eq $? || _lt_function_replace_fail=:
  24304. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24305. func_lo2o ()\
  24306. {\
  24307. \ case ${1} in\
  24308. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24309. \ *) func_lo2o_result=${1} ;;\
  24310. \ esac\
  24311. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24312. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24313. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24314. test 0 -eq $? || _lt_function_replace_fail=:
  24315. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24316. func_xform ()\
  24317. {\
  24318. func_xform_result=${1%.*}.lo\
  24319. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24320. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24321. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24322. test 0 -eq $? || _lt_function_replace_fail=:
  24323. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24324. func_arith ()\
  24325. {\
  24326. func_arith_result=$(( $* ))\
  24327. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24328. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24329. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24330. test 0 -eq $? || _lt_function_replace_fail=:
  24331. sed -e '/^func_len ()$/,/^} # func_len /c\
  24332. func_len ()\
  24333. {\
  24334. func_len_result=${#1}\
  24335. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24336. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24337. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24338. test 0 -eq $? || _lt_function_replace_fail=:
  24339. fi
  24340. if test x"$lt_shell_append" = xyes; then
  24341. sed -e '/^func_append ()$/,/^} # func_append /c\
  24342. func_append ()\
  24343. {\
  24344. eval "${1}+=\\${2}"\
  24345. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24346. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24347. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24348. test 0 -eq $? || _lt_function_replace_fail=:
  24349. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24350. func_append_quoted ()\
  24351. {\
  24352. \ func_quote_for_eval "${2}"\
  24353. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24354. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24355. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24356. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24357. test 0 -eq $? || _lt_function_replace_fail=:
  24358. # Save a `func_append' function call where possible by direct use of '+='
  24359. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24360. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24361. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24362. test 0 -eq $? || _lt_function_replace_fail=:
  24363. else
  24364. # Save a `func_append' function call even when '+=' is not available
  24365. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24366. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24367. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24368. test 0 -eq $? || _lt_function_replace_fail=:
  24369. fi
  24370. if test x"$_lt_function_replace_fail" = x":"; then
  24371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24372. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24373. fi
  24374. mv -f "$cfgfile" "$ofile" ||
  24375. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24376. chmod +x "$ofile"
  24377. cat <<_LT_EOF >> "$ofile"
  24378. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24379. # The linker used to build libraries.
  24380. LD=$lt_LD_RC
  24381. # How to create reloadable object files.
  24382. reload_flag=$lt_reload_flag_RC
  24383. reload_cmds=$lt_reload_cmds_RC
  24384. # Commands used to build an old-style archive.
  24385. old_archive_cmds=$lt_old_archive_cmds_RC
  24386. # A language specific compiler.
  24387. CC=$lt_compiler_RC
  24388. # Is the compiler the GNU compiler?
  24389. with_gcc=$GCC_RC
  24390. # Compiler flag to turn off builtin functions.
  24391. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24392. # Additional compiler flags for building library objects.
  24393. pic_flag=$lt_lt_prog_compiler_pic_RC
  24394. # How to pass a linker flag through the compiler.
  24395. wl=$lt_lt_prog_compiler_wl_RC
  24396. # Compiler flag to prevent dynamic linking.
  24397. link_static_flag=$lt_lt_prog_compiler_static_RC
  24398. # Does compiler simultaneously support -c and -o options?
  24399. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24400. # Whether or not to add -lc for building shared libraries.
  24401. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24402. # Whether or not to disallow shared libs when runtime libs are static.
  24403. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24404. # Compiler flag to allow reflexive dlopens.
  24405. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24406. # Compiler flag to generate shared objects directly from archives.
  24407. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24408. # Whether the compiler copes with passing no objects directly.
  24409. compiler_needs_object=$lt_compiler_needs_object_RC
  24410. # Create an old-style archive from a shared archive.
  24411. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24412. # Create a temporary old-style archive to link instead of a shared archive.
  24413. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24414. # Commands used to build a shared archive.
  24415. archive_cmds=$lt_archive_cmds_RC
  24416. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24417. # Commands used to build a loadable module if different from building
  24418. # a shared archive.
  24419. module_cmds=$lt_module_cmds_RC
  24420. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24421. # Whether we are building with GNU ld or not.
  24422. with_gnu_ld=$lt_with_gnu_ld_RC
  24423. # Flag that allows shared libraries with undefined symbols to be built.
  24424. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24425. # Flag that enforces no undefined symbols.
  24426. no_undefined_flag=$lt_no_undefined_flag_RC
  24427. # Flag to hardcode \$libdir into a binary during linking.
  24428. # This must work even if \$libdir does not exist
  24429. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24430. # Whether we need a single "-rpath" flag with a separated argument.
  24431. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24432. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24433. # DIR into the resulting binary.
  24434. hardcode_direct=$hardcode_direct_RC
  24435. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24436. # DIR into the resulting binary and the resulting library dependency is
  24437. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24438. # library is relocated.
  24439. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24440. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24441. # into the resulting binary.
  24442. hardcode_minus_L=$hardcode_minus_L_RC
  24443. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24444. # into the resulting binary.
  24445. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24446. # Set to "yes" if building a shared library automatically hardcodes DIR
  24447. # into the library and all subsequent libraries and executables linked
  24448. # against it.
  24449. hardcode_automatic=$hardcode_automatic_RC
  24450. # Set to yes if linker adds runtime paths of dependent libraries
  24451. # to runtime path list.
  24452. inherit_rpath=$inherit_rpath_RC
  24453. # Whether libtool must link a program against all its dependency libraries.
  24454. link_all_deplibs=$link_all_deplibs_RC
  24455. # Set to "yes" if exported symbols are required.
  24456. always_export_symbols=$always_export_symbols_RC
  24457. # The commands to list exported symbols.
  24458. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24459. # Symbols that should not be listed in the preloaded symbols.
  24460. exclude_expsyms=$lt_exclude_expsyms_RC
  24461. # Symbols that must always be exported.
  24462. include_expsyms=$lt_include_expsyms_RC
  24463. # Commands necessary for linking programs (against libraries) with templates.
  24464. prelink_cmds=$lt_prelink_cmds_RC
  24465. # Commands necessary for finishing linking programs.
  24466. postlink_cmds=$lt_postlink_cmds_RC
  24467. # Specify filename containing input files.
  24468. file_list_spec=$lt_file_list_spec_RC
  24469. # How to hardcode a shared library path into an executable.
  24470. hardcode_action=$hardcode_action_RC
  24471. # The directories searched by this compiler when creating a shared library.
  24472. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24473. # Dependencies to place before and after the objects being linked to
  24474. # create a shared library.
  24475. predep_objects=$lt_predep_objects_RC
  24476. postdep_objects=$lt_postdep_objects_RC
  24477. predeps=$lt_predeps_RC
  24478. postdeps=$lt_postdeps_RC
  24479. # The library search path used internally by the compiler when linking
  24480. # a shared library.
  24481. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24482. # ### END LIBTOOL TAG CONFIG: RC
  24483. _LT_EOF
  24484. cat <<_LT_EOF >> "$ofile"
  24485. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24486. # The linker used to build libraries.
  24487. LD=$lt_LD_CXX
  24488. # How to create reloadable object files.
  24489. reload_flag=$lt_reload_flag_CXX
  24490. reload_cmds=$lt_reload_cmds_CXX
  24491. # Commands used to build an old-style archive.
  24492. old_archive_cmds=$lt_old_archive_cmds_CXX
  24493. # A language specific compiler.
  24494. CC=$lt_compiler_CXX
  24495. # Is the compiler the GNU compiler?
  24496. with_gcc=$GCC_CXX
  24497. # Compiler flag to turn off builtin functions.
  24498. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24499. # Additional compiler flags for building library objects.
  24500. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24501. # How to pass a linker flag through the compiler.
  24502. wl=$lt_lt_prog_compiler_wl_CXX
  24503. # Compiler flag to prevent dynamic linking.
  24504. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24505. # Does compiler simultaneously support -c and -o options?
  24506. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24507. # Whether or not to add -lc for building shared libraries.
  24508. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24509. # Whether or not to disallow shared libs when runtime libs are static.
  24510. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24511. # Compiler flag to allow reflexive dlopens.
  24512. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24513. # Compiler flag to generate shared objects directly from archives.
  24514. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24515. # Whether the compiler copes with passing no objects directly.
  24516. compiler_needs_object=$lt_compiler_needs_object_CXX
  24517. # Create an old-style archive from a shared archive.
  24518. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24519. # Create a temporary old-style archive to link instead of a shared archive.
  24520. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24521. # Commands used to build a shared archive.
  24522. archive_cmds=$lt_archive_cmds_CXX
  24523. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24524. # Commands used to build a loadable module if different from building
  24525. # a shared archive.
  24526. module_cmds=$lt_module_cmds_CXX
  24527. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24528. # Whether we are building with GNU ld or not.
  24529. with_gnu_ld=$lt_with_gnu_ld_CXX
  24530. # Flag that allows shared libraries with undefined symbols to be built.
  24531. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24532. # Flag that enforces no undefined symbols.
  24533. no_undefined_flag=$lt_no_undefined_flag_CXX
  24534. # Flag to hardcode \$libdir into a binary during linking.
  24535. # This must work even if \$libdir does not exist
  24536. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24537. # Whether we need a single "-rpath" flag with a separated argument.
  24538. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24539. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24540. # DIR into the resulting binary.
  24541. hardcode_direct=$hardcode_direct_CXX
  24542. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24543. # DIR into the resulting binary and the resulting library dependency is
  24544. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24545. # library is relocated.
  24546. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24547. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24548. # into the resulting binary.
  24549. hardcode_minus_L=$hardcode_minus_L_CXX
  24550. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24551. # into the resulting binary.
  24552. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24553. # Set to "yes" if building a shared library automatically hardcodes DIR
  24554. # into the library and all subsequent libraries and executables linked
  24555. # against it.
  24556. hardcode_automatic=$hardcode_automatic_CXX
  24557. # Set to yes if linker adds runtime paths of dependent libraries
  24558. # to runtime path list.
  24559. inherit_rpath=$inherit_rpath_CXX
  24560. # Whether libtool must link a program against all its dependency libraries.
  24561. link_all_deplibs=$link_all_deplibs_CXX
  24562. # Set to "yes" if exported symbols are required.
  24563. always_export_symbols=$always_export_symbols_CXX
  24564. # The commands to list exported symbols.
  24565. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24566. # Symbols that should not be listed in the preloaded symbols.
  24567. exclude_expsyms=$lt_exclude_expsyms_CXX
  24568. # Symbols that must always be exported.
  24569. include_expsyms=$lt_include_expsyms_CXX
  24570. # Commands necessary for linking programs (against libraries) with templates.
  24571. prelink_cmds=$lt_prelink_cmds_CXX
  24572. # Commands necessary for finishing linking programs.
  24573. postlink_cmds=$lt_postlink_cmds_CXX
  24574. # Specify filename containing input files.
  24575. file_list_spec=$lt_file_list_spec_CXX
  24576. # How to hardcode a shared library path into an executable.
  24577. hardcode_action=$hardcode_action_CXX
  24578. # The directories searched by this compiler when creating a shared library.
  24579. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24580. # Dependencies to place before and after the objects being linked to
  24581. # create a shared library.
  24582. predep_objects=$lt_predep_objects_CXX
  24583. postdep_objects=$lt_postdep_objects_CXX
  24584. predeps=$lt_predeps_CXX
  24585. postdeps=$lt_postdeps_CXX
  24586. # The library search path used internally by the compiler when linking
  24587. # a shared library.
  24588. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24589. # ### END LIBTOOL TAG CONFIG: CXX
  24590. _LT_EOF
  24591. ;;
  24592. "sdl2_config":C) chmod a+x sdl2-config ;;
  24593. "summary":C) printf "$SUMMARY" ;;
  24594. esac
  24595. done # for ac_tag
  24596. as_fn_exit 0
  24597. _ACEOF
  24598. ac_clean_files=$ac_clean_files_save
  24599. test $ac_write_fail = 0 ||
  24600. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24601. # configure is writing to config.log, and then calls config.status.
  24602. # config.status does its own redirection, appending to config.log.
  24603. # Unfortunately, on DOS this fails, as config.log is still kept open
  24604. # by configure, so config.status won't be able to write to it; its
  24605. # output is simply discarded. So we exec the FD to /dev/null,
  24606. # effectively closing config.log, so it can be properly (re)opened and
  24607. # appended to by config.status. When coming back to configure, we
  24608. # need to make the FD available again.
  24609. if test "$no_create" != yes; then
  24610. ac_cs_success=:
  24611. ac_config_status_args=
  24612. test "$silent" = yes &&
  24613. ac_config_status_args="$ac_config_status_args --quiet"
  24614. exec 5>/dev/null
  24615. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24616. exec 5>>config.log
  24617. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24618. # would make configure fail if this is the last instruction.
  24619. $ac_cs_success || as_fn_exit 1
  24620. fi
  24621. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24623. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24624. fi