configure 893 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. bin_prefix_relpath
  605. cmake_prefix_relpath
  606. INSTALL_SDL2_CONFIG
  607. LIBUSB_LIBS
  608. LIBUSB_CFLAGS
  609. IBUS_LIBS
  610. IBUS_CFLAGS
  611. DBUS_LIBS
  612. DBUS_CFLAGS
  613. LIBGBM_LIBS
  614. LIBGBM_CFLAGS
  615. LIBDRM_LIBS
  616. LIBDRM_CFLAGS
  617. DIRECTFB_LIBS
  618. DIRECTFB_CFLAGS
  619. X_EXTRA_LIBS
  620. X_LIBS
  621. X_PRE_LIBS
  622. X_CFLAGS
  623. XMKMF
  624. RPI_LIBS
  625. RPI_CFLAGS
  626. DECOR_LIBS
  627. DECOR_CFLAGS
  628. FUSIONSOUND_LIBS
  629. FUSIONSOUND_CFLAGS
  630. ARTSCONFIG
  631. PULSEAUDIO_LIBS
  632. PULSEAUDIO_CFLAGS
  633. PIPEWIRE_LIBS
  634. PIPEWIRE_CFLAGS
  635. ESD_LIBS
  636. ESD_CFLAGS
  637. ESD_CONFIG
  638. JACK_LIBS
  639. JACK_CFLAGS
  640. ALSA_LIBS
  641. ALSA_CFLAGS
  642. POW_LIB
  643. LIBOBJS
  644. ALLOCA
  645. LIBTOOLLINKERTAG
  646. LINKER
  647. PKG_CONFIG_LIBDIR
  648. PKG_CONFIG_PATH
  649. PKG_CONFIG
  650. SET_MAKE
  651. INSTALL_DATA
  652. INSTALL_SCRIPT
  653. INSTALL_PROGRAM
  654. CXXCPP
  655. ac_ct_CXX
  656. CXXFLAGS
  657. CXX
  658. LT_AGE
  659. LT_REVISION
  660. LT_CURRENT
  661. LT_RELEASE
  662. RC
  663. CPP
  664. LT_SYS_LIBRARY_PATH
  665. OTOOL64
  666. OTOOL
  667. LIPO
  668. NMEDIT
  669. DSYMUTIL
  670. MANIFEST_TOOL
  671. AWK
  672. RANLIB
  673. STRIP
  674. ac_ct_AR
  675. AR
  676. LN_S
  677. NM
  678. ac_ct_DUMPBIN
  679. DUMPBIN
  680. LD
  681. FGREP
  682. EGREP
  683. GREP
  684. SED
  685. OBJEXT
  686. EXEEXT
  687. ac_ct_CC
  688. CPPFLAGS
  689. LDFLAGS
  690. CFLAGS
  691. CC
  692. host_os
  693. host_vendor
  694. host_cpu
  695. host
  696. build_os
  697. build_vendor
  698. build_cpu
  699. build
  700. LIBTOOL
  701. OBJDUMP
  702. DLLTOOL
  703. AS
  704. SDL_VERSION
  705. SDL_BINARY_AGE
  706. SDL_INTERFACE_AGE
  707. SDL_MICRO_VERSION
  708. SDL_MINOR_VERSION
  709. SDL_MAJOR_VERSION
  710. target_alias
  711. host_alias
  712. build_alias
  713. LIBS
  714. ECHO_T
  715. ECHO_N
  716. ECHO_C
  717. DEFS
  718. mandir
  719. localedir
  720. libdir
  721. psdir
  722. pdfdir
  723. dvidir
  724. htmldir
  725. infodir
  726. docdir
  727. oldincludedir
  728. includedir
  729. localstatedir
  730. sharedstatedir
  731. sysconfdir
  732. datadir
  733. datarootdir
  734. libexecdir
  735. sbindir
  736. bindir
  737. program_transform_name
  738. prefix
  739. exec_prefix
  740. PACKAGE_URL
  741. PACKAGE_BUGREPORT
  742. PACKAGE_STRING
  743. PACKAGE_VERSION
  744. PACKAGE_TARNAME
  745. PACKAGE_NAME
  746. PATH_SEPARATOR
  747. SHELL'
  748. ac_subst_files=''
  749. ac_user_opts='
  750. enable_option_checking
  751. enable_shared
  752. enable_static
  753. with_pic
  754. enable_fast_install
  755. with_aix_soname
  756. with_gnu_ld
  757. with_sysroot
  758. enable_libtool_lock
  759. enable_largefile
  760. enable_assertions
  761. enable_dependency_tracking
  762. enable_libc
  763. enable_gcc_atomics
  764. enable_atomic
  765. enable_audio
  766. enable_video
  767. enable_render
  768. enable_events
  769. enable_joystick
  770. enable_haptic
  771. enable_hidapi
  772. enable_sensor
  773. enable_power
  774. enable_filesystem
  775. enable_threads
  776. enable_timers
  777. enable_file
  778. enable_misc
  779. enable_locale
  780. enable_loadso
  781. enable_cpuinfo
  782. enable_assembly
  783. enable_ssemath
  784. enable_mmx
  785. enable_3dnow
  786. enable_sse
  787. enable_sse2
  788. enable_sse3
  789. enable_lsx
  790. enable_lasx
  791. enable_altivec
  792. enable_oss
  793. enable_alsa
  794. with_alsa_prefix
  795. with_alsa_inc_prefix
  796. enable_alsatest
  797. enable_alsa_shared
  798. enable_jack
  799. enable_jack_shared
  800. enable_esd
  801. with_esd_prefix
  802. with_esd_exec_prefix
  803. enable_esdtest
  804. enable_esd_shared
  805. enable_pipewire
  806. enable_pipewire_shared
  807. enable_pulseaudio
  808. enable_pulseaudio_shared
  809. enable_arts
  810. enable_arts_shared
  811. enable_nas
  812. enable_nas_shared
  813. enable_sndio
  814. enable_sndio_shared
  815. enable_fusionsound
  816. enable_fusionsound_shared
  817. enable_diskaudio
  818. enable_dummyaudio
  819. enable_libsamplerate
  820. enable_libsamplerate_shared
  821. enable_arm_simd
  822. enable_arm_neon
  823. enable_video_wayland
  824. enable_video_wayland_qt_touch
  825. enable_wayland_shared
  826. enable_libdecor
  827. enable_libdecor_shared
  828. enable_video_rpi
  829. enable_video_x11
  830. with_x
  831. enable_x11_shared
  832. enable_video_x11_xcursor
  833. enable_video_x11_xdbe
  834. enable_video_x11_xinput
  835. enable_video_x11_xfixes
  836. enable_video_x11_xrandr
  837. enable_video_x11_scrnsaver
  838. enable_video_x11_xshape
  839. enable_video_vivante
  840. enable_video_cocoa
  841. enable_video_metal
  842. enable_render_metal
  843. enable_video_directfb
  844. enable_directfb_shared
  845. enable_video_kmsdrm
  846. enable_kmsdrm_shared
  847. enable_video_dummy
  848. enable_video_offscreen
  849. enable_video_opengl
  850. enable_video_opengles
  851. enable_video_opengles1
  852. enable_video_opengles2
  853. enable_video_vulkan
  854. enable_libudev
  855. enable_dbus
  856. enable_ime
  857. enable_ibus
  858. enable_fcitx
  859. enable_joystick_mfi
  860. enable_pthreads
  861. enable_pthread_sem
  862. enable_directx
  863. enable_xinput
  864. enable_wasapi
  865. enable_hidapi_joystick
  866. enable_hidapi_libusb
  867. enable_clock_gettime
  868. enable_rpath
  869. enable_backgrounding_signal
  870. enable_foregrounding_signal
  871. enable_joystick_virtual
  872. enable_render_d3d
  873. enable_sdl2_config
  874. '
  875. ac_precious_vars='build_alias
  876. host_alias
  877. target_alias
  878. CC
  879. CFLAGS
  880. LDFLAGS
  881. LIBS
  882. CPPFLAGS
  883. LT_SYS_LIBRARY_PATH
  884. CPP
  885. CXX
  886. CXXFLAGS
  887. CCC
  888. CXXCPP
  889. PKG_CONFIG
  890. PKG_CONFIG_PATH
  891. PKG_CONFIG_LIBDIR
  892. JACK_CFLAGS
  893. JACK_LIBS
  894. PIPEWIRE_CFLAGS
  895. PIPEWIRE_LIBS
  896. PULSEAUDIO_CFLAGS
  897. PULSEAUDIO_LIBS
  898. FUSIONSOUND_CFLAGS
  899. FUSIONSOUND_LIBS
  900. DECOR_CFLAGS
  901. DECOR_LIBS
  902. RPI_CFLAGS
  903. RPI_LIBS
  904. XMKMF
  905. DIRECTFB_CFLAGS
  906. DIRECTFB_LIBS
  907. LIBDRM_CFLAGS
  908. LIBDRM_LIBS
  909. LIBGBM_CFLAGS
  910. LIBGBM_LIBS
  911. DBUS_CFLAGS
  912. DBUS_LIBS
  913. IBUS_CFLAGS
  914. IBUS_LIBS
  915. LIBUSB_CFLAGS
  916. LIBUSB_LIBS'
  917. # Initialize some variables set by options.
  918. ac_init_help=
  919. ac_init_version=false
  920. ac_unrecognized_opts=
  921. ac_unrecognized_sep=
  922. # The variables have the same names as the options, with
  923. # dashes changed to underlines.
  924. cache_file=/dev/null
  925. exec_prefix=NONE
  926. no_create=
  927. no_recursion=
  928. prefix=NONE
  929. program_prefix=NONE
  930. program_suffix=NONE
  931. program_transform_name=s,x,x,
  932. silent=
  933. site=
  934. srcdir=
  935. verbose=
  936. x_includes=NONE
  937. x_libraries=NONE
  938. # Installation directory options.
  939. # These are left unexpanded so users can "make install exec_prefix=/foo"
  940. # and all the variables that are supposed to be based on exec_prefix
  941. # by default will actually change.
  942. # Use braces instead of parens because sh, perl, etc. also accept them.
  943. # (The list follows the same order as the GNU Coding Standards.)
  944. bindir='${exec_prefix}/bin'
  945. sbindir='${exec_prefix}/sbin'
  946. libexecdir='${exec_prefix}/libexec'
  947. datarootdir='${prefix}/share'
  948. datadir='${datarootdir}'
  949. sysconfdir='${prefix}/etc'
  950. sharedstatedir='${prefix}/com'
  951. localstatedir='${prefix}/var'
  952. includedir='${prefix}/include'
  953. oldincludedir='/usr/include'
  954. docdir='${datarootdir}/doc/${PACKAGE}'
  955. infodir='${datarootdir}/info'
  956. htmldir='${docdir}'
  957. dvidir='${docdir}'
  958. pdfdir='${docdir}'
  959. psdir='${docdir}'
  960. libdir='${exec_prefix}/lib'
  961. localedir='${datarootdir}/locale'
  962. mandir='${datarootdir}/man'
  963. ac_prev=
  964. ac_dashdash=
  965. for ac_option
  966. do
  967. # If the previous option needs an argument, assign it.
  968. if test -n "$ac_prev"; then
  969. eval $ac_prev=\$ac_option
  970. ac_prev=
  971. continue
  972. fi
  973. case $ac_option in
  974. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  975. *=) ac_optarg= ;;
  976. *) ac_optarg=yes ;;
  977. esac
  978. # Accept the important Cygnus configure options, so we can diagnose typos.
  979. case $ac_dashdash$ac_option in
  980. --)
  981. ac_dashdash=yes ;;
  982. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  983. ac_prev=bindir ;;
  984. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  985. bindir=$ac_optarg ;;
  986. -build | --build | --buil | --bui | --bu)
  987. ac_prev=build_alias ;;
  988. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  989. build_alias=$ac_optarg ;;
  990. -cache-file | --cache-file | --cache-fil | --cache-fi \
  991. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  992. ac_prev=cache_file ;;
  993. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  994. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  995. cache_file=$ac_optarg ;;
  996. --config-cache | -C)
  997. cache_file=config.cache ;;
  998. -datadir | --datadir | --datadi | --datad)
  999. ac_prev=datadir ;;
  1000. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1001. datadir=$ac_optarg ;;
  1002. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1003. | --dataroo | --dataro | --datar)
  1004. ac_prev=datarootdir ;;
  1005. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1006. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1007. datarootdir=$ac_optarg ;;
  1008. -disable-* | --disable-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid feature name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "enable_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval enable_$ac_useropt=no ;;
  1023. -docdir | --docdir | --docdi | --doc | --do)
  1024. ac_prev=docdir ;;
  1025. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1026. docdir=$ac_optarg ;;
  1027. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1028. ac_prev=dvidir ;;
  1029. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1030. dvidir=$ac_optarg ;;
  1031. -enable-* | --enable-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid feature name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "enable_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval enable_$ac_useropt=\$ac_optarg ;;
  1046. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1047. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1048. | --exec | --exe | --ex)
  1049. ac_prev=exec_prefix ;;
  1050. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1051. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1052. | --exec=* | --exe=* | --ex=*)
  1053. exec_prefix=$ac_optarg ;;
  1054. -gas | --gas | --ga | --g)
  1055. # Obsolete; use --with-gas.
  1056. with_gas=yes ;;
  1057. -help | --help | --hel | --he | -h)
  1058. ac_init_help=long ;;
  1059. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1060. ac_init_help=recursive ;;
  1061. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1062. ac_init_help=short ;;
  1063. -host | --host | --hos | --ho)
  1064. ac_prev=host_alias ;;
  1065. -host=* | --host=* | --hos=* | --ho=*)
  1066. host_alias=$ac_optarg ;;
  1067. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1068. ac_prev=htmldir ;;
  1069. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1070. | --ht=*)
  1071. htmldir=$ac_optarg ;;
  1072. -includedir | --includedir | --includedi | --included | --include \
  1073. | --includ | --inclu | --incl | --inc)
  1074. ac_prev=includedir ;;
  1075. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1076. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1077. includedir=$ac_optarg ;;
  1078. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1079. ac_prev=infodir ;;
  1080. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1081. infodir=$ac_optarg ;;
  1082. -libdir | --libdir | --libdi | --libd)
  1083. ac_prev=libdir ;;
  1084. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1085. libdir=$ac_optarg ;;
  1086. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1087. | --libexe | --libex | --libe)
  1088. ac_prev=libexecdir ;;
  1089. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1090. | --libexe=* | --libex=* | --libe=*)
  1091. libexecdir=$ac_optarg ;;
  1092. -localedir | --localedir | --localedi | --localed | --locale)
  1093. ac_prev=localedir ;;
  1094. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1095. localedir=$ac_optarg ;;
  1096. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1097. | --localstate | --localstat | --localsta | --localst | --locals)
  1098. ac_prev=localstatedir ;;
  1099. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1100. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1101. localstatedir=$ac_optarg ;;
  1102. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1103. ac_prev=mandir ;;
  1104. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1105. mandir=$ac_optarg ;;
  1106. -nfp | --nfp | --nf)
  1107. # Obsolete; use --without-fp.
  1108. with_fp=no ;;
  1109. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1110. | --no-cr | --no-c | -n)
  1111. no_create=yes ;;
  1112. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1113. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1114. no_recursion=yes ;;
  1115. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1116. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1117. | --oldin | --oldi | --old | --ol | --o)
  1118. ac_prev=oldincludedir ;;
  1119. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1120. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1121. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1122. oldincludedir=$ac_optarg ;;
  1123. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1124. ac_prev=prefix ;;
  1125. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1126. prefix=$ac_optarg ;;
  1127. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1128. | --program-pre | --program-pr | --program-p)
  1129. ac_prev=program_prefix ;;
  1130. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1131. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1132. program_prefix=$ac_optarg ;;
  1133. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1134. | --program-suf | --program-su | --program-s)
  1135. ac_prev=program_suffix ;;
  1136. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1137. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1138. program_suffix=$ac_optarg ;;
  1139. -program-transform-name | --program-transform-name \
  1140. | --program-transform-nam | --program-transform-na \
  1141. | --program-transform-n | --program-transform- \
  1142. | --program-transform | --program-transfor \
  1143. | --program-transfo | --program-transf \
  1144. | --program-trans | --program-tran \
  1145. | --progr-tra | --program-tr | --program-t)
  1146. ac_prev=program_transform_name ;;
  1147. -program-transform-name=* | --program-transform-name=* \
  1148. | --program-transform-nam=* | --program-transform-na=* \
  1149. | --program-transform-n=* | --program-transform-=* \
  1150. | --program-transform=* | --program-transfor=* \
  1151. | --program-transfo=* | --program-transf=* \
  1152. | --program-trans=* | --program-tran=* \
  1153. | --progr-tra=* | --program-tr=* | --program-t=*)
  1154. program_transform_name=$ac_optarg ;;
  1155. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1156. ac_prev=pdfdir ;;
  1157. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1158. pdfdir=$ac_optarg ;;
  1159. -psdir | --psdir | --psdi | --psd | --ps)
  1160. ac_prev=psdir ;;
  1161. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1162. psdir=$ac_optarg ;;
  1163. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1164. | -silent | --silent | --silen | --sile | --sil)
  1165. silent=yes ;;
  1166. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1167. ac_prev=sbindir ;;
  1168. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1169. | --sbi=* | --sb=*)
  1170. sbindir=$ac_optarg ;;
  1171. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1172. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1173. | --sharedst | --shareds | --shared | --share | --shar \
  1174. | --sha | --sh)
  1175. ac_prev=sharedstatedir ;;
  1176. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1177. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1178. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1179. | --sha=* | --sh=*)
  1180. sharedstatedir=$ac_optarg ;;
  1181. -site | --site | --sit)
  1182. ac_prev=site ;;
  1183. -site=* | --site=* | --sit=*)
  1184. site=$ac_optarg ;;
  1185. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1186. ac_prev=srcdir ;;
  1187. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1188. srcdir=$ac_optarg ;;
  1189. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1190. | --syscon | --sysco | --sysc | --sys | --sy)
  1191. ac_prev=sysconfdir ;;
  1192. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1193. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1194. sysconfdir=$ac_optarg ;;
  1195. -target | --target | --targe | --targ | --tar | --ta | --t)
  1196. ac_prev=target_alias ;;
  1197. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1198. target_alias=$ac_optarg ;;
  1199. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1200. verbose=yes ;;
  1201. -version | --version | --versio | --versi | --vers | -V)
  1202. ac_init_version=: ;;
  1203. -with-* | --with-*)
  1204. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1205. # Reject names that are not valid shell variable names.
  1206. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207. as_fn_error $? "invalid package name: $ac_useropt"
  1208. ac_useropt_orig=$ac_useropt
  1209. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1210. case $ac_user_opts in
  1211. *"
  1212. "with_$ac_useropt"
  1213. "*) ;;
  1214. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1215. ac_unrecognized_sep=', ';;
  1216. esac
  1217. eval with_$ac_useropt=\$ac_optarg ;;
  1218. -without-* | --without-*)
  1219. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1220. # Reject names that are not valid shell variable names.
  1221. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1222. as_fn_error $? "invalid package name: $ac_useropt"
  1223. ac_useropt_orig=$ac_useropt
  1224. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1225. case $ac_user_opts in
  1226. *"
  1227. "with_$ac_useropt"
  1228. "*) ;;
  1229. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1230. ac_unrecognized_sep=', ';;
  1231. esac
  1232. eval with_$ac_useropt=no ;;
  1233. --x)
  1234. # Obsolete; use --with-x.
  1235. with_x=yes ;;
  1236. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1237. | --x-incl | --x-inc | --x-in | --x-i)
  1238. ac_prev=x_includes ;;
  1239. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1240. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1241. x_includes=$ac_optarg ;;
  1242. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1243. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1244. ac_prev=x_libraries ;;
  1245. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1246. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1247. x_libraries=$ac_optarg ;;
  1248. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1249. Try \`$0 --help' for more information"
  1250. ;;
  1251. *=*)
  1252. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1253. # Reject names that are not valid shell variable names.
  1254. case $ac_envvar in #(
  1255. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1256. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1257. esac
  1258. eval $ac_envvar=\$ac_optarg
  1259. export $ac_envvar ;;
  1260. *)
  1261. # FIXME: should be removed in autoconf 3.0.
  1262. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1263. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1264. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1265. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1266. ;;
  1267. esac
  1268. done
  1269. if test -n "$ac_prev"; then
  1270. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1271. as_fn_error $? "missing argument to $ac_option"
  1272. fi
  1273. if test -n "$ac_unrecognized_opts"; then
  1274. case $enable_option_checking in
  1275. no) ;;
  1276. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1277. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1278. esac
  1279. fi
  1280. # Check all directory arguments for consistency.
  1281. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1282. datadir sysconfdir sharedstatedir localstatedir includedir \
  1283. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1284. libdir localedir mandir
  1285. do
  1286. eval ac_val=\$$ac_var
  1287. # Remove trailing slashes.
  1288. case $ac_val in
  1289. */ )
  1290. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1291. eval $ac_var=\$ac_val;;
  1292. esac
  1293. # Be sure to have absolute directory names.
  1294. case $ac_val in
  1295. [\\/$]* | ?:[\\/]* ) continue;;
  1296. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1297. esac
  1298. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1299. done
  1300. # There might be people who depend on the old broken behavior: `$host'
  1301. # used to hold the argument of --host etc.
  1302. # FIXME: To remove some day.
  1303. build=$build_alias
  1304. host=$host_alias
  1305. target=$target_alias
  1306. # FIXME: To remove some day.
  1307. if test "x$host_alias" != x; then
  1308. if test "x$build_alias" = x; then
  1309. cross_compiling=maybe
  1310. elif test "x$build_alias" != "x$host_alias"; then
  1311. cross_compiling=yes
  1312. fi
  1313. fi
  1314. ac_tool_prefix=
  1315. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1316. test "$silent" = yes && exec 6>/dev/null
  1317. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1318. ac_ls_di=`ls -di .` &&
  1319. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1320. as_fn_error $? "working directory cannot be determined"
  1321. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1322. as_fn_error $? "pwd does not report name of working directory"
  1323. # Find the source files, if location was not specified.
  1324. if test -z "$srcdir"; then
  1325. ac_srcdir_defaulted=yes
  1326. # Try the directory containing this script, then the parent directory.
  1327. ac_confdir=`$as_dirname -- "$as_myself" ||
  1328. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1329. X"$as_myself" : 'X\(//\)[^/]' \| \
  1330. X"$as_myself" : 'X\(//\)$' \| \
  1331. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1332. $as_echo X"$as_myself" |
  1333. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1334. s//\1/
  1335. q
  1336. }
  1337. /^X\(\/\/\)[^/].*/{
  1338. s//\1/
  1339. q
  1340. }
  1341. /^X\(\/\/\)$/{
  1342. s//\1/
  1343. q
  1344. }
  1345. /^X\(\/\).*/{
  1346. s//\1/
  1347. q
  1348. }
  1349. s/.*/./; q'`
  1350. srcdir=$ac_confdir
  1351. if test ! -r "$srcdir/$ac_unique_file"; then
  1352. srcdir=..
  1353. fi
  1354. else
  1355. ac_srcdir_defaulted=no
  1356. fi
  1357. if test ! -r "$srcdir/$ac_unique_file"; then
  1358. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1359. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1360. fi
  1361. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1362. ac_abs_confdir=`(
  1363. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1364. pwd)`
  1365. # When building in place, set srcdir=.
  1366. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1367. srcdir=.
  1368. fi
  1369. # Remove unnecessary trailing slashes from srcdir.
  1370. # Double slashes in file names in object file debugging info
  1371. # mess up M-x gdb in Emacs.
  1372. case $srcdir in
  1373. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1374. esac
  1375. for ac_var in $ac_precious_vars; do
  1376. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1377. eval ac_env_${ac_var}_value=\$${ac_var}
  1378. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1379. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1380. done
  1381. #
  1382. # Report the --help message.
  1383. #
  1384. if test "$ac_init_help" = "long"; then
  1385. # Omit some internal or obsolete options to make the list less imposing.
  1386. # This message is too long to be a string in the A/UX 3.1 sh.
  1387. cat <<_ACEOF
  1388. \`configure' configures this package to adapt to many kinds of systems.
  1389. Usage: $0 [OPTION]... [VAR=VALUE]...
  1390. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1391. VAR=VALUE. See below for descriptions of some of the useful variables.
  1392. Defaults for the options are specified in brackets.
  1393. Configuration:
  1394. -h, --help display this help and exit
  1395. --help=short display options specific to this package
  1396. --help=recursive display the short help of all the included packages
  1397. -V, --version display version information and exit
  1398. -q, --quiet, --silent do not print \`checking ...' messages
  1399. --cache-file=FILE cache test results in FILE [disabled]
  1400. -C, --config-cache alias for \`--cache-file=config.cache'
  1401. -n, --no-create do not create output files
  1402. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1403. Installation directories:
  1404. --prefix=PREFIX install architecture-independent files in PREFIX
  1405. [$ac_default_prefix]
  1406. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1407. [PREFIX]
  1408. By default, \`make install' will install all the files in
  1409. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1410. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1411. for instance \`--prefix=\$HOME'.
  1412. For better control, use the options below.
  1413. Fine tuning of the installation directories:
  1414. --bindir=DIR user executables [EPREFIX/bin]
  1415. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1416. --libexecdir=DIR program executables [EPREFIX/libexec]
  1417. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1418. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1419. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1420. --libdir=DIR object code libraries [EPREFIX/lib]
  1421. --includedir=DIR C header files [PREFIX/include]
  1422. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1423. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1424. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1425. --infodir=DIR info documentation [DATAROOTDIR/info]
  1426. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1427. --mandir=DIR man documentation [DATAROOTDIR/man]
  1428. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1429. --htmldir=DIR html documentation [DOCDIR]
  1430. --dvidir=DIR dvi documentation [DOCDIR]
  1431. --pdfdir=DIR pdf documentation [DOCDIR]
  1432. --psdir=DIR ps documentation [DOCDIR]
  1433. _ACEOF
  1434. cat <<\_ACEOF
  1435. X features:
  1436. --x-includes=DIR X include files are in DIR
  1437. --x-libraries=DIR X library files are in DIR
  1438. System types:
  1439. --build=BUILD configure for building on BUILD [guessed]
  1440. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1441. _ACEOF
  1442. fi
  1443. if test -n "$ac_init_help"; then
  1444. cat <<\_ACEOF
  1445. Optional Features:
  1446. --disable-option-checking ignore unrecognized --enable/--with options
  1447. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1448. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1449. --enable-shared[=PKGS] build shared libraries [default=yes]
  1450. --enable-static[=PKGS] build static libraries [default=yes]
  1451. --enable-fast-install[=PKGS]
  1452. optimize for fast installation [default=yes]
  1453. --disable-libtool-lock avoid locking (might break parallel builds)
  1454. --disable-largefile omit support for large files
  1455. --enable-assertions Enable internal sanity checks
  1456. (auto/disabled/release/enabled/paranoid)
  1457. [default=auto]
  1458. --enable-dependency-tracking
  1459. Use gcc -MMD -MT dependency tracking [default=yes]
  1460. --enable-libc Use the system C library [default=yes]
  1461. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1462. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1463. --enable-audio Enable the audio subsystem [default=yes]
  1464. --enable-video Enable the video subsystem [default=yes]
  1465. --enable-render Enable the render subsystem [default=yes]
  1466. --enable-events Enable the events subsystem [default=yes]
  1467. --enable-joystick Enable the joystick subsystem [default=yes]
  1468. --enable-haptic Enable the haptic (force feedback) subsystem
  1469. [default=yes]
  1470. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1471. --enable-sensor Enable the sensor subsystem [default=yes]
  1472. --enable-power Enable the power subsystem [default=yes]
  1473. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1474. --enable-threads Enable the threading subsystem [default=yes]
  1475. --enable-timers Enable the timer subsystem [default=yes]
  1476. --enable-file Enable the file subsystem [default=yes]
  1477. --enable-misc Enable the misc subsystem [default=yes]
  1478. --enable-locale Enable the locale subsystem [default=yes]
  1479. --enable-loadso Enable the shared object loading subsystem
  1480. [default=yes]
  1481. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1482. --enable-assembly Enable assembly routines [default=yes]
  1483. --enable-ssemath Allow GCC to use SSE floating point math
  1484. [default=maybe]
  1485. --enable-mmx use MMX assembly routines [default=yes]
  1486. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1487. --enable-sse use SSE assembly routines [default=yes]
  1488. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1489. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1490. --enable-lsx use LSX assembly routines [default=yes]
  1491. --enable-lasx use LASX assembly routines [default=yes]
  1492. --enable-altivec use Altivec assembly routines [default=yes]
  1493. --enable-oss support the OSS audio API [default=maybe]
  1494. --enable-alsa support the ALSA audio API [default=yes]
  1495. --disable-alsatest Do not try to compile and run a test Alsa program
  1496. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1497. --enable-jack use JACK audio [default=yes]
  1498. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1499. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1500. --disable-esdtest Do not try to compile and run a test ESD program
  1501. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1502. --enable-pipewire use Pipewire audio [default=yes]
  1503. --enable-pipewire-shared
  1504. dynamically load Pipewire support [default=yes]
  1505. --enable-pulseaudio use PulseAudio [default=yes]
  1506. --enable-pulseaudio-shared
  1507. dynamically load PulseAudio support [default=yes]
  1508. --enable-arts support the Analog Real Time Synthesizer
  1509. [default=yes]
  1510. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1511. --enable-nas support the NAS audio API [default=yes]
  1512. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1513. --enable-sndio support the sndio audio API [default=yes]
  1514. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1515. --enable-fusionsound use FusionSound audio driver [default=no]
  1516. --enable-fusionsound-shared
  1517. dynamically load fusionsound audio support
  1518. [default=yes]
  1519. --enable-diskaudio support the disk writer audio driver [default=yes]
  1520. --enable-dummyaudio support the dummy audio driver [default=yes]
  1521. --enable-libsamplerate use libsamplerate for audio rate conversion
  1522. [default=yes]
  1523. --enable-libsamplerate-shared
  1524. dynamically load libsamplerate [default=yes]
  1525. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1526. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1527. --enable-video-wayland use Wayland video driver [default=yes]
  1528. --enable-video-wayland-qt-touch
  1529. QtWayland server support for Wayland video driver
  1530. [default=yes]
  1531. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1532. --enable-libdecor use libdecor for Wayland client-side decorations
  1533. [default=yes]
  1534. --enable-libdecor-shared
  1535. dynamically load libdecor [default=yes]
  1536. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1537. --enable-video-x11 use X11 video driver [default=yes]
  1538. --enable-x11-shared dynamically load X11 support [default=maybe]
  1539. --enable-video-x11-xcursor
  1540. enable X11 Xcursor support [default=yes]
  1541. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1542. --enable-video-x11-xinput
  1543. enable X11 XInput extension for manymouse, tablets,
  1544. etc [default=yes]
  1545. --enable-video-x11-xfixes
  1546. enable X11 Xfixes support [default=yes]
  1547. --enable-video-x11-xrandr
  1548. enable X11 Xrandr extension for fullscreen
  1549. [default=yes]
  1550. --enable-video-x11-scrnsaver
  1551. enable X11 screensaver extension [default=yes]
  1552. --enable-video-x11-xshape
  1553. enable X11 XShape support [default=yes]
  1554. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1555. --enable-video-cocoa use Cocoa video driver [default=yes]
  1556. --enable-video-metal include Metal support [default=yes]
  1557. --enable-render-metal enable the Metal render driver [default=yes]
  1558. --enable-video-directfb use DirectFB video driver [default=no]
  1559. --enable-directfb-shared
  1560. dynamically load directfb support [default=yes]
  1561. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1562. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1563. --enable-video-dummy use dummy video driver [default=yes]
  1564. --enable-video-offscreen
  1565. use offscreen video driver [default=no]
  1566. --enable-video-opengl include OpenGL support [default=yes]
  1567. --enable-video-opengles include OpenGL ES support [default=yes]
  1568. --enable-video-opengles1
  1569. include OpenGL ES 1.1 support [default=yes]
  1570. --enable-video-opengles2
  1571. include OpenGL ES 2.0 support [default=yes]
  1572. --enable-video-vulkan include Vulkan support [default=yes]
  1573. --enable-libudev enable libudev support [default=yes]
  1574. --enable-dbus enable D-Bus support [default=yes]
  1575. --enable-ime enable IME support [default=yes]
  1576. --enable-ibus enable IBus support [default=yes]
  1577. --enable-fcitx enable fcitx support [default=yes]
  1578. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1579. --enable-pthreads use POSIX threads for multi-threading
  1580. [default=maybe]
  1581. --enable-pthread-sem use pthread semaphores [default=maybe]
  1582. --enable-directx use DirectX for Windows audio/video [default=yes]
  1583. --enable-xinput use Xinput for Windows [default=yes]
  1584. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1585. --enable-hidapi-joystick
  1586. use HIDAPI for low level joystick drivers
  1587. [default=yes]
  1588. --enable-hidapi-libusb use libusb for low level joystick drivers
  1589. [default=maybe]
  1590. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1591. UNIX [default=yes]
  1592. --enable-rpath use an rpath when linking SDL [default=yes]
  1593. --enable-backgrounding-signal
  1594. number to use for magic backgrounding signal or 'no'
  1595. [default=no]
  1596. --enable-foregrounding-signal
  1597. number to use for magic foregrounding signal or 'no'
  1598. [default=no]
  1599. --enable-joystick-virtual
  1600. enable virtual joystick APIs [default=yes]
  1601. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1602. --enable-sdl2-config Install sdl2-config [default=yes]
  1603. Optional Packages:
  1604. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1605. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1606. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1607. both]
  1608. --with-aix-soname=aix|svr4|both
  1609. shared library versioning (aka "SONAME") variant to
  1610. provide on AIX, [default=aix].
  1611. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1612. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1613. compiler's sysroot if not specified).
  1614. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1615. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1616. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1617. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1618. --with-x use the X Window System
  1619. Some influential environment variables:
  1620. CC C compiler command
  1621. CFLAGS C compiler flags
  1622. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1623. nonstandard directory <lib dir>
  1624. LIBS libraries to pass to the linker, e.g. -l<library>
  1625. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1626. you have headers in a nonstandard directory <include dir>
  1627. LT_SYS_LIBRARY_PATH
  1628. User-defined run-time library search path.
  1629. CPP C preprocessor
  1630. CXX C++ compiler command
  1631. CXXFLAGS C++ compiler flags
  1632. CXXCPP C++ preprocessor
  1633. PKG_CONFIG path to pkg-config utility
  1634. PKG_CONFIG_PATH
  1635. directories to add to pkg-config's search path
  1636. PKG_CONFIG_LIBDIR
  1637. path overriding pkg-config's built-in search path
  1638. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1639. JACK_LIBS linker flags for JACK, overriding pkg-config
  1640. PIPEWIRE_CFLAGS
  1641. C compiler flags for PIPEWIRE, overriding pkg-config
  1642. PIPEWIRE_LIBS
  1643. linker flags for PIPEWIRE, overriding pkg-config
  1644. PULSEAUDIO_CFLAGS
  1645. C compiler flags for PULSEAUDIO, overriding pkg-config
  1646. PULSEAUDIO_LIBS
  1647. linker flags for PULSEAUDIO, overriding pkg-config
  1648. FUSIONSOUND_CFLAGS
  1649. C compiler flags for FUSIONSOUND, overriding pkg-config
  1650. FUSIONSOUND_LIBS
  1651. linker flags for FUSIONSOUND, overriding pkg-config
  1652. DECOR_CFLAGS
  1653. C compiler flags for DECOR, overriding pkg-config
  1654. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1655. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1656. RPI_LIBS linker flags for RPI, overriding pkg-config
  1657. XMKMF Path to xmkmf, Makefile generator for X Window System
  1658. DIRECTFB_CFLAGS
  1659. C compiler flags for DIRECTFB, overriding pkg-config
  1660. DIRECTFB_LIBS
  1661. linker flags for DIRECTFB, overriding pkg-config
  1662. LIBDRM_CFLAGS
  1663. C compiler flags for LIBDRM, overriding pkg-config
  1664. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1665. LIBGBM_CFLAGS
  1666. C compiler flags for LIBGBM, overriding pkg-config
  1667. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1668. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1669. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1670. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1671. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1672. LIBUSB_CFLAGS
  1673. C compiler flags for LIBUSB, overriding pkg-config
  1674. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1675. Use these variables to override the choices made by `configure' or to help
  1676. it to find libraries and programs with nonstandard names/locations.
  1677. Report bugs to the package provider.
  1678. _ACEOF
  1679. ac_status=$?
  1680. fi
  1681. if test "$ac_init_help" = "recursive"; then
  1682. # If there are subdirs, report their specific --help.
  1683. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1684. test -d "$ac_dir" ||
  1685. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1686. continue
  1687. ac_builddir=.
  1688. case "$ac_dir" in
  1689. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1690. *)
  1691. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1692. # A ".." for each directory in $ac_dir_suffix.
  1693. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1694. case $ac_top_builddir_sub in
  1695. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1696. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1697. esac ;;
  1698. esac
  1699. ac_abs_top_builddir=$ac_pwd
  1700. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1701. # for backward compatibility:
  1702. ac_top_builddir=$ac_top_build_prefix
  1703. case $srcdir in
  1704. .) # We are building in place.
  1705. ac_srcdir=.
  1706. ac_top_srcdir=$ac_top_builddir_sub
  1707. ac_abs_top_srcdir=$ac_pwd ;;
  1708. [\\/]* | ?:[\\/]* ) # Absolute name.
  1709. ac_srcdir=$srcdir$ac_dir_suffix;
  1710. ac_top_srcdir=$srcdir
  1711. ac_abs_top_srcdir=$srcdir ;;
  1712. *) # Relative name.
  1713. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1714. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1715. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1716. esac
  1717. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1718. cd "$ac_dir" || { ac_status=$?; continue; }
  1719. # Check for guested configure.
  1720. if test -f "$ac_srcdir/configure.gnu"; then
  1721. echo &&
  1722. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1723. elif test -f "$ac_srcdir/configure"; then
  1724. echo &&
  1725. $SHELL "$ac_srcdir/configure" --help=recursive
  1726. else
  1727. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1728. fi || ac_status=$?
  1729. cd "$ac_pwd" || { ac_status=$?; break; }
  1730. done
  1731. fi
  1732. test -n "$ac_init_help" && exit $ac_status
  1733. if $ac_init_version; then
  1734. cat <<\_ACEOF
  1735. configure
  1736. generated by GNU Autoconf 2.69
  1737. Copyright (C) 2012 Free Software Foundation, Inc.
  1738. This configure script is free software; the Free Software Foundation
  1739. gives unlimited permission to copy, distribute and modify it.
  1740. _ACEOF
  1741. exit
  1742. fi
  1743. ## ------------------------ ##
  1744. ## Autoconf initialization. ##
  1745. ## ------------------------ ##
  1746. # ac_fn_c_try_compile LINENO
  1747. # --------------------------
  1748. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1749. ac_fn_c_try_compile ()
  1750. {
  1751. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1752. rm -f conftest.$ac_objext
  1753. if { { ac_try="$ac_compile"
  1754. case "(($ac_try" in
  1755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1756. *) ac_try_echo=$ac_try;;
  1757. esac
  1758. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1759. $as_echo "$ac_try_echo"; } >&5
  1760. (eval "$ac_compile") 2>conftest.err
  1761. ac_status=$?
  1762. if test -s conftest.err; then
  1763. grep -v '^ *+' conftest.err >conftest.er1
  1764. cat conftest.er1 >&5
  1765. mv -f conftest.er1 conftest.err
  1766. fi
  1767. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1768. test $ac_status = 0; } && {
  1769. test -z "$ac_c_werror_flag" ||
  1770. test ! -s conftest.err
  1771. } && test -s conftest.$ac_objext; then :
  1772. ac_retval=0
  1773. else
  1774. $as_echo "$as_me: failed program was:" >&5
  1775. sed 's/^/| /' conftest.$ac_ext >&5
  1776. ac_retval=1
  1777. fi
  1778. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1779. as_fn_set_status $ac_retval
  1780. } # ac_fn_c_try_compile
  1781. # ac_fn_c_try_link LINENO
  1782. # -----------------------
  1783. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1784. ac_fn_c_try_link ()
  1785. {
  1786. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1787. rm -f conftest.$ac_objext conftest$ac_exeext
  1788. if { { ac_try="$ac_link"
  1789. case "(($ac_try" in
  1790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1791. *) ac_try_echo=$ac_try;;
  1792. esac
  1793. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1794. $as_echo "$ac_try_echo"; } >&5
  1795. (eval "$ac_link") 2>conftest.err
  1796. ac_status=$?
  1797. if test -s conftest.err; then
  1798. grep -v '^ *+' conftest.err >conftest.er1
  1799. cat conftest.er1 >&5
  1800. mv -f conftest.er1 conftest.err
  1801. fi
  1802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1803. test $ac_status = 0; } && {
  1804. test -z "$ac_c_werror_flag" ||
  1805. test ! -s conftest.err
  1806. } && test -s conftest$ac_exeext && {
  1807. test "$cross_compiling" = yes ||
  1808. test -x conftest$ac_exeext
  1809. }; then :
  1810. ac_retval=0
  1811. else
  1812. $as_echo "$as_me: failed program was:" >&5
  1813. sed 's/^/| /' conftest.$ac_ext >&5
  1814. ac_retval=1
  1815. fi
  1816. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1817. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1818. # interfere with the next link command; also delete a directory that is
  1819. # left behind by Apple's compiler. We do this before executing the actions.
  1820. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1821. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1822. as_fn_set_status $ac_retval
  1823. } # ac_fn_c_try_link
  1824. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1825. # -------------------------------------------------------
  1826. # Tests whether HEADER exists and can be compiled using the include files in
  1827. # INCLUDES, setting the cache variable VAR accordingly.
  1828. ac_fn_c_check_header_compile ()
  1829. {
  1830. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1832. $as_echo_n "checking for $2... " >&6; }
  1833. if eval \${$3+:} false; then :
  1834. $as_echo_n "(cached) " >&6
  1835. else
  1836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1837. /* end confdefs.h. */
  1838. $4
  1839. #include <$2>
  1840. _ACEOF
  1841. if ac_fn_c_try_compile "$LINENO"; then :
  1842. eval "$3=yes"
  1843. else
  1844. eval "$3=no"
  1845. fi
  1846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1847. fi
  1848. eval ac_res=\$$3
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1850. $as_echo "$ac_res" >&6; }
  1851. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1852. } # ac_fn_c_check_header_compile
  1853. # ac_fn_c_try_cpp LINENO
  1854. # ----------------------
  1855. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1856. ac_fn_c_try_cpp ()
  1857. {
  1858. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1859. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1860. case "(($ac_try" in
  1861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1862. *) ac_try_echo=$ac_try;;
  1863. esac
  1864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1865. $as_echo "$ac_try_echo"; } >&5
  1866. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1867. ac_status=$?
  1868. if test -s conftest.err; then
  1869. grep -v '^ *+' conftest.err >conftest.er1
  1870. cat conftest.er1 >&5
  1871. mv -f conftest.er1 conftest.err
  1872. fi
  1873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1874. test $ac_status = 0; } > conftest.i && {
  1875. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1876. test ! -s conftest.err
  1877. }; then :
  1878. ac_retval=0
  1879. else
  1880. $as_echo "$as_me: failed program was:" >&5
  1881. sed 's/^/| /' conftest.$ac_ext >&5
  1882. ac_retval=1
  1883. fi
  1884. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1885. as_fn_set_status $ac_retval
  1886. } # ac_fn_c_try_cpp
  1887. # ac_fn_c_try_run LINENO
  1888. # ----------------------
  1889. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1890. # that executables *can* be run.
  1891. ac_fn_c_try_run ()
  1892. {
  1893. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1894. if { { ac_try="$ac_link"
  1895. case "(($ac_try" in
  1896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1897. *) ac_try_echo=$ac_try;;
  1898. esac
  1899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1900. $as_echo "$ac_try_echo"; } >&5
  1901. (eval "$ac_link") 2>&5
  1902. ac_status=$?
  1903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1904. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1905. { { case "(($ac_try" in
  1906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1907. *) ac_try_echo=$ac_try;;
  1908. esac
  1909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1910. $as_echo "$ac_try_echo"; } >&5
  1911. (eval "$ac_try") 2>&5
  1912. ac_status=$?
  1913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1914. test $ac_status = 0; }; }; then :
  1915. ac_retval=0
  1916. else
  1917. $as_echo "$as_me: program exited with status $ac_status" >&5
  1918. $as_echo "$as_me: failed program was:" >&5
  1919. sed 's/^/| /' conftest.$ac_ext >&5
  1920. ac_retval=$ac_status
  1921. fi
  1922. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1923. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1924. as_fn_set_status $ac_retval
  1925. } # ac_fn_c_try_run
  1926. # ac_fn_c_check_func LINENO FUNC VAR
  1927. # ----------------------------------
  1928. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1929. ac_fn_c_check_func ()
  1930. {
  1931. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1933. $as_echo_n "checking for $2... " >&6; }
  1934. if eval \${$3+:} false; then :
  1935. $as_echo_n "(cached) " >&6
  1936. else
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1940. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1941. #define $2 innocuous_$2
  1942. /* System header to define __stub macros and hopefully few prototypes,
  1943. which can conflict with char $2 (); below.
  1944. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1945. <limits.h> exists even on freestanding compilers. */
  1946. #ifdef __STDC__
  1947. # include <limits.h>
  1948. #else
  1949. # include <assert.h>
  1950. #endif
  1951. #undef $2
  1952. /* Override any GCC internal prototype to avoid an error.
  1953. Use char because int might match the return type of a GCC
  1954. builtin and then its argument prototype would still apply. */
  1955. #ifdef __cplusplus
  1956. extern "C"
  1957. #endif
  1958. char $2 ();
  1959. /* The GNU C library defines this for functions which it implements
  1960. to always fail with ENOSYS. Some functions are actually named
  1961. something starting with __ and the normal name is an alias. */
  1962. #if defined __stub_$2 || defined __stub___$2
  1963. choke me
  1964. #endif
  1965. int
  1966. main ()
  1967. {
  1968. return $2 ();
  1969. ;
  1970. return 0;
  1971. }
  1972. _ACEOF
  1973. if ac_fn_c_try_link "$LINENO"; then :
  1974. eval "$3=yes"
  1975. else
  1976. eval "$3=no"
  1977. fi
  1978. rm -f core conftest.err conftest.$ac_objext \
  1979. conftest$ac_exeext conftest.$ac_ext
  1980. fi
  1981. eval ac_res=\$$3
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1983. $as_echo "$ac_res" >&6; }
  1984. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1985. } # ac_fn_c_check_func
  1986. # ac_fn_cxx_try_compile LINENO
  1987. # ----------------------------
  1988. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1989. ac_fn_cxx_try_compile ()
  1990. {
  1991. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1992. rm -f conftest.$ac_objext
  1993. if { { ac_try="$ac_compile"
  1994. case "(($ac_try" in
  1995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1996. *) ac_try_echo=$ac_try;;
  1997. esac
  1998. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1999. $as_echo "$ac_try_echo"; } >&5
  2000. (eval "$ac_compile") 2>conftest.err
  2001. ac_status=$?
  2002. if test -s conftest.err; then
  2003. grep -v '^ *+' conftest.err >conftest.er1
  2004. cat conftest.er1 >&5
  2005. mv -f conftest.er1 conftest.err
  2006. fi
  2007. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2008. test $ac_status = 0; } && {
  2009. test -z "$ac_cxx_werror_flag" ||
  2010. test ! -s conftest.err
  2011. } && test -s conftest.$ac_objext; then :
  2012. ac_retval=0
  2013. else
  2014. $as_echo "$as_me: failed program was:" >&5
  2015. sed 's/^/| /' conftest.$ac_ext >&5
  2016. ac_retval=1
  2017. fi
  2018. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2019. as_fn_set_status $ac_retval
  2020. } # ac_fn_cxx_try_compile
  2021. # ac_fn_cxx_try_cpp LINENO
  2022. # ------------------------
  2023. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2024. ac_fn_cxx_try_cpp ()
  2025. {
  2026. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2027. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2028. case "(($ac_try" in
  2029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2030. *) ac_try_echo=$ac_try;;
  2031. esac
  2032. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2033. $as_echo "$ac_try_echo"; } >&5
  2034. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2035. ac_status=$?
  2036. if test -s conftest.err; then
  2037. grep -v '^ *+' conftest.err >conftest.er1
  2038. cat conftest.er1 >&5
  2039. mv -f conftest.er1 conftest.err
  2040. fi
  2041. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2042. test $ac_status = 0; } > conftest.i && {
  2043. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2044. test ! -s conftest.err
  2045. }; then :
  2046. ac_retval=0
  2047. else
  2048. $as_echo "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. ac_retval=1
  2051. fi
  2052. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2053. as_fn_set_status $ac_retval
  2054. } # ac_fn_cxx_try_cpp
  2055. # ac_fn_cxx_try_link LINENO
  2056. # -------------------------
  2057. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2058. ac_fn_cxx_try_link ()
  2059. {
  2060. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061. rm -f conftest.$ac_objext conftest$ac_exeext
  2062. if { { ac_try="$ac_link"
  2063. case "(($ac_try" in
  2064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2065. *) ac_try_echo=$ac_try;;
  2066. esac
  2067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2068. $as_echo "$ac_try_echo"; } >&5
  2069. (eval "$ac_link") 2>conftest.err
  2070. ac_status=$?
  2071. if test -s conftest.err; then
  2072. grep -v '^ *+' conftest.err >conftest.er1
  2073. cat conftest.er1 >&5
  2074. mv -f conftest.er1 conftest.err
  2075. fi
  2076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2077. test $ac_status = 0; } && {
  2078. test -z "$ac_cxx_werror_flag" ||
  2079. test ! -s conftest.err
  2080. } && test -s conftest$ac_exeext && {
  2081. test "$cross_compiling" = yes ||
  2082. test -x conftest$ac_exeext
  2083. }; then :
  2084. ac_retval=0
  2085. else
  2086. $as_echo "$as_me: failed program was:" >&5
  2087. sed 's/^/| /' conftest.$ac_ext >&5
  2088. ac_retval=1
  2089. fi
  2090. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2091. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2092. # interfere with the next link command; also delete a directory that is
  2093. # left behind by Apple's compiler. We do this before executing the actions.
  2094. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2095. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2096. as_fn_set_status $ac_retval
  2097. } # ac_fn_cxx_try_link
  2098. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2099. # -------------------------------------------------------
  2100. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2101. # the include files in INCLUDES and setting the cache variable VAR
  2102. # accordingly.
  2103. ac_fn_c_check_header_mongrel ()
  2104. {
  2105. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2106. if eval \${$3+:} false; then :
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2108. $as_echo_n "checking for $2... " >&6; }
  2109. if eval \${$3+:} false; then :
  2110. $as_echo_n "(cached) " >&6
  2111. fi
  2112. eval ac_res=\$$3
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2114. $as_echo "$ac_res" >&6; }
  2115. else
  2116. # Is the header compilable?
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2118. $as_echo_n "checking $2 usability... " >&6; }
  2119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2120. /* end confdefs.h. */
  2121. $4
  2122. #include <$2>
  2123. _ACEOF
  2124. if ac_fn_c_try_compile "$LINENO"; then :
  2125. ac_header_compiler=yes
  2126. else
  2127. ac_header_compiler=no
  2128. fi
  2129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2131. $as_echo "$ac_header_compiler" >&6; }
  2132. # Is the header present?
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2134. $as_echo_n "checking $2 presence... " >&6; }
  2135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2136. /* end confdefs.h. */
  2137. #include <$2>
  2138. _ACEOF
  2139. if ac_fn_c_try_cpp "$LINENO"; then :
  2140. ac_header_preproc=yes
  2141. else
  2142. ac_header_preproc=no
  2143. fi
  2144. rm -f conftest.err conftest.i conftest.$ac_ext
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2146. $as_echo "$ac_header_preproc" >&6; }
  2147. # So? What about this header?
  2148. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2149. yes:no: )
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2151. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2153. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2154. ;;
  2155. no:yes:* )
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2157. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2159. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2161. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2163. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2165. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2166. ;;
  2167. esac
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2169. $as_echo_n "checking for $2... " >&6; }
  2170. if eval \${$3+:} false; then :
  2171. $as_echo_n "(cached) " >&6
  2172. else
  2173. eval "$3=\$ac_header_compiler"
  2174. fi
  2175. eval ac_res=\$$3
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2177. $as_echo "$ac_res" >&6; }
  2178. fi
  2179. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2180. } # ac_fn_c_check_header_mongrel
  2181. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2182. # -------------------------------------------
  2183. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2184. # variable VAR accordingly.
  2185. ac_fn_c_check_type ()
  2186. {
  2187. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2189. $as_echo_n "checking for $2... " >&6; }
  2190. if eval \${$3+:} false; then :
  2191. $as_echo_n "(cached) " >&6
  2192. else
  2193. eval "$3=no"
  2194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2195. /* end confdefs.h. */
  2196. $4
  2197. int
  2198. main ()
  2199. {
  2200. if (sizeof ($2))
  2201. return 0;
  2202. ;
  2203. return 0;
  2204. }
  2205. _ACEOF
  2206. if ac_fn_c_try_compile "$LINENO"; then :
  2207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2208. /* end confdefs.h. */
  2209. $4
  2210. int
  2211. main ()
  2212. {
  2213. if (sizeof (($2)))
  2214. return 0;
  2215. ;
  2216. return 0;
  2217. }
  2218. _ACEOF
  2219. if ac_fn_c_try_compile "$LINENO"; then :
  2220. else
  2221. eval "$3=yes"
  2222. fi
  2223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2224. fi
  2225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2226. fi
  2227. eval ac_res=\$$3
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2229. $as_echo "$ac_res" >&6; }
  2230. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2231. } # ac_fn_c_check_type
  2232. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2233. # ----------------------------------------------------
  2234. # Tries to find if the field MEMBER exists in type AGGR, after including
  2235. # INCLUDES, setting cache variable VAR accordingly.
  2236. ac_fn_c_check_member ()
  2237. {
  2238. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2240. $as_echo_n "checking for $2.$3... " >&6; }
  2241. if eval \${$4+:} false; then :
  2242. $as_echo_n "(cached) " >&6
  2243. else
  2244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2245. /* end confdefs.h. */
  2246. $5
  2247. int
  2248. main ()
  2249. {
  2250. static $2 ac_aggr;
  2251. if (ac_aggr.$3)
  2252. return 0;
  2253. ;
  2254. return 0;
  2255. }
  2256. _ACEOF
  2257. if ac_fn_c_try_compile "$LINENO"; then :
  2258. eval "$4=yes"
  2259. else
  2260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2261. /* end confdefs.h. */
  2262. $5
  2263. int
  2264. main ()
  2265. {
  2266. static $2 ac_aggr;
  2267. if (sizeof ac_aggr.$3)
  2268. return 0;
  2269. ;
  2270. return 0;
  2271. }
  2272. _ACEOF
  2273. if ac_fn_c_try_compile "$LINENO"; then :
  2274. eval "$4=yes"
  2275. else
  2276. eval "$4=no"
  2277. fi
  2278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2279. fi
  2280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2281. fi
  2282. eval ac_res=\$$4
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2284. $as_echo "$ac_res" >&6; }
  2285. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2286. } # ac_fn_c_check_member
  2287. cat >config.log <<_ACEOF
  2288. This file contains any messages produced by compilers while
  2289. running configure, to aid debugging if configure makes a mistake.
  2290. It was created by $as_me, which was
  2291. generated by GNU Autoconf 2.69. Invocation command line was
  2292. $ $0 $@
  2293. _ACEOF
  2294. exec 5>>config.log
  2295. {
  2296. cat <<_ASUNAME
  2297. ## --------- ##
  2298. ## Platform. ##
  2299. ## --------- ##
  2300. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2301. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2302. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2303. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2304. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2305. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2306. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2307. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2308. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2309. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2310. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2311. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2312. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2313. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2314. _ASUNAME
  2315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2316. for as_dir in $PATH
  2317. do
  2318. IFS=$as_save_IFS
  2319. test -z "$as_dir" && as_dir=.
  2320. $as_echo "PATH: $as_dir"
  2321. done
  2322. IFS=$as_save_IFS
  2323. } >&5
  2324. cat >&5 <<_ACEOF
  2325. ## ----------- ##
  2326. ## Core tests. ##
  2327. ## ----------- ##
  2328. _ACEOF
  2329. # Keep a trace of the command line.
  2330. # Strip out --no-create and --no-recursion so they do not pile up.
  2331. # Strip out --silent because we don't want to record it for future runs.
  2332. # Also quote any args containing shell meta-characters.
  2333. # Make two passes to allow for proper duplicate-argument suppression.
  2334. ac_configure_args=
  2335. ac_configure_args0=
  2336. ac_configure_args1=
  2337. ac_must_keep_next=false
  2338. for ac_pass in 1 2
  2339. do
  2340. for ac_arg
  2341. do
  2342. case $ac_arg in
  2343. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2344. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2345. | -silent | --silent | --silen | --sile | --sil)
  2346. continue ;;
  2347. *\'*)
  2348. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2349. esac
  2350. case $ac_pass in
  2351. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2352. 2)
  2353. as_fn_append ac_configure_args1 " '$ac_arg'"
  2354. if test $ac_must_keep_next = true; then
  2355. ac_must_keep_next=false # Got value, back to normal.
  2356. else
  2357. case $ac_arg in
  2358. *=* | --config-cache | -C | -disable-* | --disable-* \
  2359. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2360. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2361. | -with-* | --with-* | -without-* | --without-* | --x)
  2362. case "$ac_configure_args0 " in
  2363. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2364. esac
  2365. ;;
  2366. -* ) ac_must_keep_next=true ;;
  2367. esac
  2368. fi
  2369. as_fn_append ac_configure_args " '$ac_arg'"
  2370. ;;
  2371. esac
  2372. done
  2373. done
  2374. { ac_configure_args0=; unset ac_configure_args0;}
  2375. { ac_configure_args1=; unset ac_configure_args1;}
  2376. # When interrupted or exit'd, cleanup temporary files, and complete
  2377. # config.log. We remove comments because anyway the quotes in there
  2378. # would cause problems or look ugly.
  2379. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2380. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2381. trap 'exit_status=$?
  2382. # Save into config.log some information that might help in debugging.
  2383. {
  2384. echo
  2385. $as_echo "## ---------------- ##
  2386. ## Cache variables. ##
  2387. ## ---------------- ##"
  2388. echo
  2389. # The following way of writing the cache mishandles newlines in values,
  2390. (
  2391. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2392. eval ac_val=\$$ac_var
  2393. case $ac_val in #(
  2394. *${as_nl}*)
  2395. case $ac_var in #(
  2396. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2397. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2398. esac
  2399. case $ac_var in #(
  2400. _ | IFS | as_nl) ;; #(
  2401. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2402. *) { eval $ac_var=; unset $ac_var;} ;;
  2403. esac ;;
  2404. esac
  2405. done
  2406. (set) 2>&1 |
  2407. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2408. *${as_nl}ac_space=\ *)
  2409. sed -n \
  2410. "s/'\''/'\''\\\\'\'''\''/g;
  2411. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2412. ;; #(
  2413. *)
  2414. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2415. ;;
  2416. esac |
  2417. sort
  2418. )
  2419. echo
  2420. $as_echo "## ----------------- ##
  2421. ## Output variables. ##
  2422. ## ----------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_vars
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. $as_echo "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. if test -n "$ac_subst_files"; then
  2434. $as_echo "## ------------------- ##
  2435. ## File substitutions. ##
  2436. ## ------------------- ##"
  2437. echo
  2438. for ac_var in $ac_subst_files
  2439. do
  2440. eval ac_val=\$$ac_var
  2441. case $ac_val in
  2442. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2443. esac
  2444. $as_echo "$ac_var='\''$ac_val'\''"
  2445. done | sort
  2446. echo
  2447. fi
  2448. if test -s confdefs.h; then
  2449. $as_echo "## ----------- ##
  2450. ## confdefs.h. ##
  2451. ## ----------- ##"
  2452. echo
  2453. cat confdefs.h
  2454. echo
  2455. fi
  2456. test "$ac_signal" != 0 &&
  2457. $as_echo "$as_me: caught signal $ac_signal"
  2458. $as_echo "$as_me: exit $exit_status"
  2459. } >&5
  2460. rm -f core *.core core.conftest.* &&
  2461. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2462. exit $exit_status
  2463. ' 0
  2464. for ac_signal in 1 2 13 15; do
  2465. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2466. done
  2467. ac_signal=0
  2468. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2469. rm -f -r conftest* confdefs.h
  2470. $as_echo "/* confdefs.h */" > confdefs.h
  2471. # Predefined preprocessor variables.
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_NAME "$PACKAGE_NAME"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. #define PACKAGE_STRING "$PACKAGE_STRING"
  2483. _ACEOF
  2484. cat >>confdefs.h <<_ACEOF
  2485. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2486. _ACEOF
  2487. cat >>confdefs.h <<_ACEOF
  2488. #define PACKAGE_URL "$PACKAGE_URL"
  2489. _ACEOF
  2490. # Let the site file select an alternate cache file if it wants to.
  2491. # Prefer an explicitly selected file to automatically selected ones.
  2492. ac_site_file1=NONE
  2493. ac_site_file2=NONE
  2494. if test -n "$CONFIG_SITE"; then
  2495. # We do not want a PATH search for config.site.
  2496. case $CONFIG_SITE in #((
  2497. -*) ac_site_file1=./$CONFIG_SITE;;
  2498. */*) ac_site_file1=$CONFIG_SITE;;
  2499. *) ac_site_file1=./$CONFIG_SITE;;
  2500. esac
  2501. elif test "x$prefix" != xNONE; then
  2502. ac_site_file1=$prefix/share/config.site
  2503. ac_site_file2=$prefix/etc/config.site
  2504. else
  2505. ac_site_file1=$ac_default_prefix/share/config.site
  2506. ac_site_file2=$ac_default_prefix/etc/config.site
  2507. fi
  2508. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2509. do
  2510. test "x$ac_site_file" = xNONE && continue
  2511. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2513. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2514. sed 's/^/| /' "$ac_site_file" >&5
  2515. . "$ac_site_file" \
  2516. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2518. as_fn_error $? "failed to load site script $ac_site_file
  2519. See \`config.log' for more details" "$LINENO" 5; }
  2520. fi
  2521. done
  2522. if test -r "$cache_file"; then
  2523. # Some versions of bash will fail to source /dev/null (special files
  2524. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2525. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2527. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2528. case $cache_file in
  2529. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2530. *) . "./$cache_file";;
  2531. esac
  2532. fi
  2533. else
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2535. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2536. >$cache_file
  2537. fi
  2538. # Check that the precious variables saved in the cache have kept the same
  2539. # value.
  2540. ac_cache_corrupted=false
  2541. for ac_var in $ac_precious_vars; do
  2542. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2543. eval ac_new_set=\$ac_env_${ac_var}_set
  2544. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2545. eval ac_new_val=\$ac_env_${ac_var}_value
  2546. case $ac_old_set,$ac_new_set in
  2547. set,)
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2549. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2550. ac_cache_corrupted=: ;;
  2551. ,set)
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2553. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2554. ac_cache_corrupted=: ;;
  2555. ,);;
  2556. *)
  2557. if test "x$ac_old_val" != "x$ac_new_val"; then
  2558. # differences in whitespace do not lead to failure.
  2559. ac_old_val_w=`echo x $ac_old_val`
  2560. ac_new_val_w=`echo x $ac_new_val`
  2561. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2563. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2564. ac_cache_corrupted=:
  2565. else
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2567. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2568. eval $ac_var=\$ac_old_val
  2569. fi
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2571. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2573. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2574. fi;;
  2575. esac
  2576. # Pass precious variables to config.status.
  2577. if test "$ac_new_set" = set; then
  2578. case $ac_new_val in
  2579. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2580. *) ac_arg=$ac_var=$ac_new_val ;;
  2581. esac
  2582. case " $ac_configure_args " in
  2583. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2584. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2585. esac
  2586. fi
  2587. done
  2588. if $ac_cache_corrupted; then
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2590. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2592. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2593. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2594. fi
  2595. ## -------------------- ##
  2596. ## Main body of script. ##
  2597. ## -------------------- ##
  2598. ac_ext=c
  2599. ac_cpp='$CPP $CPPFLAGS'
  2600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2603. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2604. ac_aux_dir=
  2605. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2606. if test -f "$ac_dir/install-sh"; then
  2607. ac_aux_dir=$ac_dir
  2608. ac_install_sh="$ac_aux_dir/install-sh -c"
  2609. break
  2610. elif test -f "$ac_dir/install.sh"; then
  2611. ac_aux_dir=$ac_dir
  2612. ac_install_sh="$ac_aux_dir/install.sh -c"
  2613. break
  2614. elif test -f "$ac_dir/shtool"; then
  2615. ac_aux_dir=$ac_dir
  2616. ac_install_sh="$ac_aux_dir/shtool install -c"
  2617. break
  2618. fi
  2619. done
  2620. if test -z "$ac_aux_dir"; then
  2621. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2622. fi
  2623. # These three variables are undocumented and unsupported,
  2624. # and are intended to be withdrawn in a future Autoconf release.
  2625. # They can cause serious problems if a builder's source tree is in a directory
  2626. # whose full name contains unusual characters.
  2627. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2628. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2629. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2630. orig_CFLAGS="$CFLAGS"
  2631. # See docs/release_checklist.md
  2632. SDL_MAJOR_VERSION=2
  2633. SDL_MINOR_VERSION=23
  2634. SDL_MICRO_VERSION=0
  2635. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2636. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  2637. case "$SDL_MINOR_VERSION" in #(
  2638. *[02468]) :
  2639. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  2640. *) :
  2641. SDL_INTERFACE_AGE=0 ;; #(
  2642. *) :
  2643. ;;
  2644. esac
  2645. # libtool versioning
  2646. case `pwd` in
  2647. *\ * | *\ *)
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2649. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2650. esac
  2651. macro_version='2.4.6'
  2652. macro_revision='2.4.6'
  2653. ltmain=$ac_aux_dir/ltmain.sh
  2654. # Make sure we can run config.sub.
  2655. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2656. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2658. $as_echo_n "checking build system type... " >&6; }
  2659. if ${ac_cv_build+:} false; then :
  2660. $as_echo_n "(cached) " >&6
  2661. else
  2662. ac_build_alias=$build_alias
  2663. test "x$ac_build_alias" = x &&
  2664. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2665. test "x$ac_build_alias" = x &&
  2666. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2667. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2668. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2669. fi
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2671. $as_echo "$ac_cv_build" >&6; }
  2672. case $ac_cv_build in
  2673. *-*-*) ;;
  2674. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2675. esac
  2676. build=$ac_cv_build
  2677. ac_save_IFS=$IFS; IFS='-'
  2678. set x $ac_cv_build
  2679. shift
  2680. build_cpu=$1
  2681. build_vendor=$2
  2682. shift; shift
  2683. # Remember, the first character of IFS is used to create $*,
  2684. # except with old shells:
  2685. build_os=$*
  2686. IFS=$ac_save_IFS
  2687. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2689. $as_echo_n "checking host system type... " >&6; }
  2690. if ${ac_cv_host+:} false; then :
  2691. $as_echo_n "(cached) " >&6
  2692. else
  2693. if test "x$host_alias" = x; then
  2694. ac_cv_host=$ac_cv_build
  2695. else
  2696. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2697. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2698. fi
  2699. fi
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2701. $as_echo "$ac_cv_host" >&6; }
  2702. case $ac_cv_host in
  2703. *-*-*) ;;
  2704. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2705. esac
  2706. host=$ac_cv_host
  2707. ac_save_IFS=$IFS; IFS='-'
  2708. set x $ac_cv_host
  2709. shift
  2710. host_cpu=$1
  2711. host_vendor=$2
  2712. shift; shift
  2713. # Remember, the first character of IFS is used to create $*,
  2714. # except with old shells:
  2715. host_os=$*
  2716. IFS=$ac_save_IFS
  2717. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2718. # Backslashify metacharacters that are still active within
  2719. # double-quoted strings.
  2720. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2721. # Same as above, but do not quote variable references.
  2722. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2723. # Sed substitution to delay expansion of an escaped shell variable in a
  2724. # double_quote_subst'ed string.
  2725. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2726. # Sed substitution to delay expansion of an escaped single quote.
  2727. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2728. # Sed substitution to avoid accidental globbing in evaled expressions
  2729. no_glob_subst='s/\*/\\\*/g'
  2730. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2731. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2732. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2734. $as_echo_n "checking how to print strings... " >&6; }
  2735. # Test print first, because it will be a builtin if present.
  2736. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2737. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2738. ECHO='print -r --'
  2739. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2740. ECHO='printf %s\n'
  2741. else
  2742. # Use this function as a fallback that always works.
  2743. func_fallback_echo ()
  2744. {
  2745. eval 'cat <<_LTECHO_EOF
  2746. $1
  2747. _LTECHO_EOF'
  2748. }
  2749. ECHO='func_fallback_echo'
  2750. fi
  2751. # func_echo_all arg...
  2752. # Invoke $ECHO with all args, space-separated.
  2753. func_echo_all ()
  2754. {
  2755. $ECHO ""
  2756. }
  2757. case $ECHO in
  2758. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2759. $as_echo "printf" >&6; } ;;
  2760. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2761. $as_echo "print -r" >&6; } ;;
  2762. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2763. $as_echo "cat" >&6; } ;;
  2764. esac
  2765. ac_ext=c
  2766. ac_cpp='$CPP $CPPFLAGS'
  2767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2770. if test -n "$ac_tool_prefix"; then
  2771. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2772. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2774. $as_echo_n "checking for $ac_word... " >&6; }
  2775. if ${ac_cv_prog_CC+:} false; then :
  2776. $as_echo_n "(cached) " >&6
  2777. else
  2778. if test -n "$CC"; then
  2779. ac_cv_prog_CC="$CC" # Let the user override the test.
  2780. else
  2781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2782. for as_dir in $PATH
  2783. do
  2784. IFS=$as_save_IFS
  2785. test -z "$as_dir" && as_dir=.
  2786. for ac_exec_ext in '' $ac_executable_extensions; do
  2787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2788. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2790. break 2
  2791. fi
  2792. done
  2793. done
  2794. IFS=$as_save_IFS
  2795. fi
  2796. fi
  2797. CC=$ac_cv_prog_CC
  2798. if test -n "$CC"; then
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2800. $as_echo "$CC" >&6; }
  2801. else
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2803. $as_echo "no" >&6; }
  2804. fi
  2805. fi
  2806. if test -z "$ac_cv_prog_CC"; then
  2807. ac_ct_CC=$CC
  2808. # Extract the first word of "gcc", so it can be a program name with args.
  2809. set dummy gcc; ac_word=$2
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2811. $as_echo_n "checking for $ac_word... " >&6; }
  2812. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. if test -n "$ac_ct_CC"; then
  2816. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2825. ac_cv_prog_ac_ct_CC="gcc"
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2835. if test -n "$ac_ct_CC"; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2837. $as_echo "$ac_ct_CC" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. if test "x$ac_ct_CC" = x; then
  2843. CC=""
  2844. else
  2845. case $cross_compiling:$ac_tool_warned in
  2846. yes:)
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2848. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2849. ac_tool_warned=yes ;;
  2850. esac
  2851. CC=$ac_ct_CC
  2852. fi
  2853. else
  2854. CC="$ac_cv_prog_CC"
  2855. fi
  2856. if test -z "$CC"; then
  2857. if test -n "$ac_tool_prefix"; then
  2858. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2859. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2861. $as_echo_n "checking for $ac_word... " >&6; }
  2862. if ${ac_cv_prog_CC+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. if test -n "$CC"; then
  2866. ac_cv_prog_CC="$CC" # Let the user override the test.
  2867. else
  2868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2869. for as_dir in $PATH
  2870. do
  2871. IFS=$as_save_IFS
  2872. test -z "$as_dir" && as_dir=.
  2873. for ac_exec_ext in '' $ac_executable_extensions; do
  2874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2875. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2877. break 2
  2878. fi
  2879. done
  2880. done
  2881. IFS=$as_save_IFS
  2882. fi
  2883. fi
  2884. CC=$ac_cv_prog_CC
  2885. if test -n "$CC"; then
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2887. $as_echo "$CC" >&6; }
  2888. else
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2890. $as_echo "no" >&6; }
  2891. fi
  2892. fi
  2893. fi
  2894. if test -z "$CC"; then
  2895. # Extract the first word of "cc", so it can be a program name with args.
  2896. set dummy cc; ac_word=$2
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2898. $as_echo_n "checking for $ac_word... " >&6; }
  2899. if ${ac_cv_prog_CC+:} false; then :
  2900. $as_echo_n "(cached) " >&6
  2901. else
  2902. if test -n "$CC"; then
  2903. ac_cv_prog_CC="$CC" # Let the user override the test.
  2904. else
  2905. ac_prog_rejected=no
  2906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2907. for as_dir in $PATH
  2908. do
  2909. IFS=$as_save_IFS
  2910. test -z "$as_dir" && as_dir=.
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2913. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2914. ac_prog_rejected=yes
  2915. continue
  2916. fi
  2917. ac_cv_prog_CC="cc"
  2918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2919. break 2
  2920. fi
  2921. done
  2922. done
  2923. IFS=$as_save_IFS
  2924. if test $ac_prog_rejected = yes; then
  2925. # We found a bogon in the path, so make sure we never use it.
  2926. set dummy $ac_cv_prog_CC
  2927. shift
  2928. if test $# != 0; then
  2929. # We chose a different compiler from the bogus one.
  2930. # However, it has the same basename, so the bogon will be chosen
  2931. # first if we set CC to just the basename; use the full file name.
  2932. shift
  2933. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2934. fi
  2935. fi
  2936. fi
  2937. fi
  2938. CC=$ac_cv_prog_CC
  2939. if test -n "$CC"; then
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2941. $as_echo "$CC" >&6; }
  2942. else
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2944. $as_echo "no" >&6; }
  2945. fi
  2946. fi
  2947. if test -z "$CC"; then
  2948. if test -n "$ac_tool_prefix"; then
  2949. for ac_prog in cl.exe
  2950. do
  2951. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2952. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2954. $as_echo_n "checking for $ac_word... " >&6; }
  2955. if ${ac_cv_prog_CC+:} false; then :
  2956. $as_echo_n "(cached) " >&6
  2957. else
  2958. if test -n "$CC"; then
  2959. ac_cv_prog_CC="$CC" # Let the user override the test.
  2960. else
  2961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2962. for as_dir in $PATH
  2963. do
  2964. IFS=$as_save_IFS
  2965. test -z "$as_dir" && as_dir=.
  2966. for ac_exec_ext in '' $ac_executable_extensions; do
  2967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2968. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2970. break 2
  2971. fi
  2972. done
  2973. done
  2974. IFS=$as_save_IFS
  2975. fi
  2976. fi
  2977. CC=$ac_cv_prog_CC
  2978. if test -n "$CC"; then
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2980. $as_echo "$CC" >&6; }
  2981. else
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2983. $as_echo "no" >&6; }
  2984. fi
  2985. test -n "$CC" && break
  2986. done
  2987. fi
  2988. if test -z "$CC"; then
  2989. ac_ct_CC=$CC
  2990. for ac_prog in cl.exe
  2991. do
  2992. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2993. set dummy $ac_prog; ac_word=$2
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2995. $as_echo_n "checking for $ac_word... " >&6; }
  2996. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2997. $as_echo_n "(cached) " >&6
  2998. else
  2999. if test -n "$ac_ct_CC"; then
  3000. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3001. else
  3002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3003. for as_dir in $PATH
  3004. do
  3005. IFS=$as_save_IFS
  3006. test -z "$as_dir" && as_dir=.
  3007. for ac_exec_ext in '' $ac_executable_extensions; do
  3008. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3009. ac_cv_prog_ac_ct_CC="$ac_prog"
  3010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3011. break 2
  3012. fi
  3013. done
  3014. done
  3015. IFS=$as_save_IFS
  3016. fi
  3017. fi
  3018. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3019. if test -n "$ac_ct_CC"; then
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3021. $as_echo "$ac_ct_CC" >&6; }
  3022. else
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3024. $as_echo "no" >&6; }
  3025. fi
  3026. test -n "$ac_ct_CC" && break
  3027. done
  3028. if test "x$ac_ct_CC" = x; then
  3029. CC=""
  3030. else
  3031. case $cross_compiling:$ac_tool_warned in
  3032. yes:)
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3034. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3035. ac_tool_warned=yes ;;
  3036. esac
  3037. CC=$ac_ct_CC
  3038. fi
  3039. fi
  3040. fi
  3041. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3042. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3043. as_fn_error $? "no acceptable C compiler found in \$PATH
  3044. See \`config.log' for more details" "$LINENO" 5; }
  3045. # Provide some information about the compiler.
  3046. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3047. set X $ac_compile
  3048. ac_compiler=$2
  3049. for ac_option in --version -v -V -qversion; do
  3050. { { ac_try="$ac_compiler $ac_option >&5"
  3051. case "(($ac_try" in
  3052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053. *) ac_try_echo=$ac_try;;
  3054. esac
  3055. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3056. $as_echo "$ac_try_echo"; } >&5
  3057. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3058. ac_status=$?
  3059. if test -s conftest.err; then
  3060. sed '10a\
  3061. ... rest of stderr output deleted ...
  3062. 10q' conftest.err >conftest.er1
  3063. cat conftest.er1 >&5
  3064. fi
  3065. rm -f conftest.er1 conftest.err
  3066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3067. test $ac_status = 0; }
  3068. done
  3069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3070. /* end confdefs.h. */
  3071. int
  3072. main ()
  3073. {
  3074. ;
  3075. return 0;
  3076. }
  3077. _ACEOF
  3078. ac_clean_files_save=$ac_clean_files
  3079. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3080. # Try to create an executable without -o first, disregard a.out.
  3081. # It will help us diagnose broken compilers, and finding out an intuition
  3082. # of exeext.
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3084. $as_echo_n "checking whether the C compiler works... " >&6; }
  3085. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3086. # The possible output files:
  3087. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3088. ac_rmfiles=
  3089. for ac_file in $ac_files
  3090. do
  3091. case $ac_file in
  3092. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3093. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3094. esac
  3095. done
  3096. rm -f $ac_rmfiles
  3097. if { { ac_try="$ac_link_default"
  3098. case "(($ac_try" in
  3099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3100. *) ac_try_echo=$ac_try;;
  3101. esac
  3102. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3103. $as_echo "$ac_try_echo"; } >&5
  3104. (eval "$ac_link_default") 2>&5
  3105. ac_status=$?
  3106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3107. test $ac_status = 0; }; then :
  3108. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3109. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3110. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3111. # so that the user can short-circuit this test for compilers unknown to
  3112. # Autoconf.
  3113. for ac_file in $ac_files ''
  3114. do
  3115. test -f "$ac_file" || continue
  3116. case $ac_file in
  3117. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3118. ;;
  3119. [ab].out )
  3120. # We found the default executable, but exeext='' is most
  3121. # certainly right.
  3122. break;;
  3123. *.* )
  3124. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3125. then :; else
  3126. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3127. fi
  3128. # We set ac_cv_exeext here because the later test for it is not
  3129. # safe: cross compilers may not add the suffix if given an `-o'
  3130. # argument, so we may need to know it at that point already.
  3131. # Even if this section looks crufty: it has the advantage of
  3132. # actually working.
  3133. break;;
  3134. * )
  3135. break;;
  3136. esac
  3137. done
  3138. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3139. else
  3140. ac_file=''
  3141. fi
  3142. if test -z "$ac_file"; then :
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3144. $as_echo "no" >&6; }
  3145. $as_echo "$as_me: failed program was:" >&5
  3146. sed 's/^/| /' conftest.$ac_ext >&5
  3147. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3148. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3149. as_fn_error 77 "C compiler cannot create executables
  3150. See \`config.log' for more details" "$LINENO" 5; }
  3151. else
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3153. $as_echo "yes" >&6; }
  3154. fi
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3156. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3158. $as_echo "$ac_file" >&6; }
  3159. ac_exeext=$ac_cv_exeext
  3160. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3161. ac_clean_files=$ac_clean_files_save
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3163. $as_echo_n "checking for suffix of executables... " >&6; }
  3164. if { { ac_try="$ac_link"
  3165. case "(($ac_try" in
  3166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3167. *) ac_try_echo=$ac_try;;
  3168. esac
  3169. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3170. $as_echo "$ac_try_echo"; } >&5
  3171. (eval "$ac_link") 2>&5
  3172. ac_status=$?
  3173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3174. test $ac_status = 0; }; then :
  3175. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3176. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3177. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3178. # `rm'.
  3179. for ac_file in conftest.exe conftest conftest.*; do
  3180. test -f "$ac_file" || continue
  3181. case $ac_file in
  3182. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3183. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3184. break;;
  3185. * ) break;;
  3186. esac
  3187. done
  3188. else
  3189. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3190. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3191. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3192. See \`config.log' for more details" "$LINENO" 5; }
  3193. fi
  3194. rm -f conftest conftest$ac_cv_exeext
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3196. $as_echo "$ac_cv_exeext" >&6; }
  3197. rm -f conftest.$ac_ext
  3198. EXEEXT=$ac_cv_exeext
  3199. ac_exeext=$EXEEXT
  3200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3201. /* end confdefs.h. */
  3202. #include <stdio.h>
  3203. int
  3204. main ()
  3205. {
  3206. FILE *f = fopen ("conftest.out", "w");
  3207. return ferror (f) || fclose (f) != 0;
  3208. ;
  3209. return 0;
  3210. }
  3211. _ACEOF
  3212. ac_clean_files="$ac_clean_files conftest.out"
  3213. # Check that the compiler produces executables we can run. If not, either
  3214. # the compiler is broken, or we cross compile.
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3216. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3217. if test "$cross_compiling" != yes; then
  3218. { { ac_try="$ac_link"
  3219. case "(($ac_try" in
  3220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3221. *) ac_try_echo=$ac_try;;
  3222. esac
  3223. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3224. $as_echo "$ac_try_echo"; } >&5
  3225. (eval "$ac_link") 2>&5
  3226. ac_status=$?
  3227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3228. test $ac_status = 0; }
  3229. if { ac_try='./conftest$ac_cv_exeext'
  3230. { { case "(($ac_try" in
  3231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3232. *) ac_try_echo=$ac_try;;
  3233. esac
  3234. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3235. $as_echo "$ac_try_echo"; } >&5
  3236. (eval "$ac_try") 2>&5
  3237. ac_status=$?
  3238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3239. test $ac_status = 0; }; }; then
  3240. cross_compiling=no
  3241. else
  3242. if test "$cross_compiling" = maybe; then
  3243. cross_compiling=yes
  3244. else
  3245. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3246. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3247. as_fn_error $? "cannot run C compiled programs.
  3248. If you meant to cross compile, use \`--host'.
  3249. See \`config.log' for more details" "$LINENO" 5; }
  3250. fi
  3251. fi
  3252. fi
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3254. $as_echo "$cross_compiling" >&6; }
  3255. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3256. ac_clean_files=$ac_clean_files_save
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3258. $as_echo_n "checking for suffix of object files... " >&6; }
  3259. if ${ac_cv_objext+:} false; then :
  3260. $as_echo_n "(cached) " >&6
  3261. else
  3262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3263. /* end confdefs.h. */
  3264. int
  3265. main ()
  3266. {
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. rm -f conftest.o conftest.obj
  3272. if { { ac_try="$ac_compile"
  3273. case "(($ac_try" in
  3274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3275. *) ac_try_echo=$ac_try;;
  3276. esac
  3277. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3278. $as_echo "$ac_try_echo"; } >&5
  3279. (eval "$ac_compile") 2>&5
  3280. ac_status=$?
  3281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3282. test $ac_status = 0; }; then :
  3283. for ac_file in conftest.o conftest.obj conftest.*; do
  3284. test -f "$ac_file" || continue;
  3285. case $ac_file in
  3286. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3287. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3288. break;;
  3289. esac
  3290. done
  3291. else
  3292. $as_echo "$as_me: failed program was:" >&5
  3293. sed 's/^/| /' conftest.$ac_ext >&5
  3294. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3295. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3296. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3297. See \`config.log' for more details" "$LINENO" 5; }
  3298. fi
  3299. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3300. fi
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3302. $as_echo "$ac_cv_objext" >&6; }
  3303. OBJEXT=$ac_cv_objext
  3304. ac_objext=$OBJEXT
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3306. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3307. if ${ac_cv_c_compiler_gnu+:} false; then :
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3311. /* end confdefs.h. */
  3312. int
  3313. main ()
  3314. {
  3315. #ifndef __GNUC__
  3316. choke me
  3317. #endif
  3318. ;
  3319. return 0;
  3320. }
  3321. _ACEOF
  3322. if ac_fn_c_try_compile "$LINENO"; then :
  3323. ac_compiler_gnu=yes
  3324. else
  3325. ac_compiler_gnu=no
  3326. fi
  3327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3328. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3329. fi
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3331. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3332. if test $ac_compiler_gnu = yes; then
  3333. GCC=yes
  3334. else
  3335. GCC=
  3336. fi
  3337. ac_test_CFLAGS=${CFLAGS+set}
  3338. ac_save_CFLAGS=$CFLAGS
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3340. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3341. if ${ac_cv_prog_cc_g+:} false; then :
  3342. $as_echo_n "(cached) " >&6
  3343. else
  3344. ac_save_c_werror_flag=$ac_c_werror_flag
  3345. ac_c_werror_flag=yes
  3346. ac_cv_prog_cc_g=no
  3347. CFLAGS="-g"
  3348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3349. /* end confdefs.h. */
  3350. int
  3351. main ()
  3352. {
  3353. ;
  3354. return 0;
  3355. }
  3356. _ACEOF
  3357. if ac_fn_c_try_compile "$LINENO"; then :
  3358. ac_cv_prog_cc_g=yes
  3359. else
  3360. CFLAGS=""
  3361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3362. /* end confdefs.h. */
  3363. int
  3364. main ()
  3365. {
  3366. ;
  3367. return 0;
  3368. }
  3369. _ACEOF
  3370. if ac_fn_c_try_compile "$LINENO"; then :
  3371. else
  3372. ac_c_werror_flag=$ac_save_c_werror_flag
  3373. CFLAGS="-g"
  3374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3375. /* end confdefs.h. */
  3376. int
  3377. main ()
  3378. {
  3379. ;
  3380. return 0;
  3381. }
  3382. _ACEOF
  3383. if ac_fn_c_try_compile "$LINENO"; then :
  3384. ac_cv_prog_cc_g=yes
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3387. fi
  3388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3389. fi
  3390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3391. ac_c_werror_flag=$ac_save_c_werror_flag
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3394. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3395. if test "$ac_test_CFLAGS" = set; then
  3396. CFLAGS=$ac_save_CFLAGS
  3397. elif test $ac_cv_prog_cc_g = yes; then
  3398. if test "$GCC" = yes; then
  3399. CFLAGS="-g -O2"
  3400. else
  3401. CFLAGS="-g"
  3402. fi
  3403. else
  3404. if test "$GCC" = yes; then
  3405. CFLAGS="-O2"
  3406. else
  3407. CFLAGS=
  3408. fi
  3409. fi
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3411. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3412. if ${ac_cv_prog_cc_c89+:} false; then :
  3413. $as_echo_n "(cached) " >&6
  3414. else
  3415. ac_cv_prog_cc_c89=no
  3416. ac_save_CC=$CC
  3417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3418. /* end confdefs.h. */
  3419. #include <stdarg.h>
  3420. #include <stdio.h>
  3421. struct stat;
  3422. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3423. struct buf { int x; };
  3424. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3425. static char *e (p, i)
  3426. char **p;
  3427. int i;
  3428. {
  3429. return p[i];
  3430. }
  3431. static char *f (char * (*g) (char **, int), char **p, ...)
  3432. {
  3433. char *s;
  3434. va_list v;
  3435. va_start (v,p);
  3436. s = g (p, va_arg (v,int));
  3437. va_end (v);
  3438. return s;
  3439. }
  3440. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3441. function prototypes and stuff, but not '\xHH' hex character constants.
  3442. These don't provoke an error unfortunately, instead are silently treated
  3443. as 'x'. The following induces an error, until -std is added to get
  3444. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3445. array size at least. It's necessary to write '\x00'==0 to get something
  3446. that's true only with -std. */
  3447. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3448. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3449. inside strings and character constants. */
  3450. #define FOO(x) 'x'
  3451. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3452. int test (int i, double x);
  3453. struct s1 {int (*f) (int a);};
  3454. struct s2 {int (*f) (double a);};
  3455. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3456. int argc;
  3457. char **argv;
  3458. int
  3459. main ()
  3460. {
  3461. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3462. ;
  3463. return 0;
  3464. }
  3465. _ACEOF
  3466. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3467. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3468. do
  3469. CC="$ac_save_CC $ac_arg"
  3470. if ac_fn_c_try_compile "$LINENO"; then :
  3471. ac_cv_prog_cc_c89=$ac_arg
  3472. fi
  3473. rm -f core conftest.err conftest.$ac_objext
  3474. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3475. done
  3476. rm -f conftest.$ac_ext
  3477. CC=$ac_save_CC
  3478. fi
  3479. # AC_CACHE_VAL
  3480. case "x$ac_cv_prog_cc_c89" in
  3481. x)
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3483. $as_echo "none needed" >&6; } ;;
  3484. xno)
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3486. $as_echo "unsupported" >&6; } ;;
  3487. *)
  3488. CC="$CC $ac_cv_prog_cc_c89"
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3490. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3491. esac
  3492. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3493. fi
  3494. ac_ext=c
  3495. ac_cpp='$CPP $CPPFLAGS'
  3496. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3497. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3498. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3500. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3501. if ${ac_cv_path_SED+:} false; then :
  3502. $as_echo_n "(cached) " >&6
  3503. else
  3504. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3505. for ac_i in 1 2 3 4 5 6 7; do
  3506. ac_script="$ac_script$as_nl$ac_script"
  3507. done
  3508. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3509. { ac_script=; unset ac_script;}
  3510. if test -z "$SED"; then
  3511. ac_path_SED_found=false
  3512. # Loop through the user's path and test for each of PROGNAME-LIST
  3513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3514. for as_dir in $PATH
  3515. do
  3516. IFS=$as_save_IFS
  3517. test -z "$as_dir" && as_dir=.
  3518. for ac_prog in sed gsed; do
  3519. for ac_exec_ext in '' $ac_executable_extensions; do
  3520. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3521. as_fn_executable_p "$ac_path_SED" || continue
  3522. # Check for GNU ac_path_SED and select it if it is found.
  3523. # Check for GNU $ac_path_SED
  3524. case `"$ac_path_SED" --version 2>&1` in
  3525. *GNU*)
  3526. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3527. *)
  3528. ac_count=0
  3529. $as_echo_n 0123456789 >"conftest.in"
  3530. while :
  3531. do
  3532. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3533. mv "conftest.tmp" "conftest.in"
  3534. cp "conftest.in" "conftest.nl"
  3535. $as_echo '' >> "conftest.nl"
  3536. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3537. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3538. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3539. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3540. # Best one so far, save it but keep looking for a better one
  3541. ac_cv_path_SED="$ac_path_SED"
  3542. ac_path_SED_max=$ac_count
  3543. fi
  3544. # 10*(2^10) chars as input seems more than enough
  3545. test $ac_count -gt 10 && break
  3546. done
  3547. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3548. esac
  3549. $ac_path_SED_found && break 3
  3550. done
  3551. done
  3552. done
  3553. IFS=$as_save_IFS
  3554. if test -z "$ac_cv_path_SED"; then
  3555. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3556. fi
  3557. else
  3558. ac_cv_path_SED=$SED
  3559. fi
  3560. fi
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3562. $as_echo "$ac_cv_path_SED" >&6; }
  3563. SED="$ac_cv_path_SED"
  3564. rm -f conftest.sed
  3565. test -z "$SED" && SED=sed
  3566. Xsed="$SED -e 1s/^X//"
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3568. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3569. if ${ac_cv_path_GREP+:} false; then :
  3570. $as_echo_n "(cached) " >&6
  3571. else
  3572. if test -z "$GREP"; then
  3573. ac_path_GREP_found=false
  3574. # Loop through the user's path and test for each of PROGNAME-LIST
  3575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3576. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3577. do
  3578. IFS=$as_save_IFS
  3579. test -z "$as_dir" && as_dir=.
  3580. for ac_prog in grep ggrep; do
  3581. for ac_exec_ext in '' $ac_executable_extensions; do
  3582. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3583. as_fn_executable_p "$ac_path_GREP" || continue
  3584. # Check for GNU ac_path_GREP and select it if it is found.
  3585. # Check for GNU $ac_path_GREP
  3586. case `"$ac_path_GREP" --version 2>&1` in
  3587. *GNU*)
  3588. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3589. *)
  3590. ac_count=0
  3591. $as_echo_n 0123456789 >"conftest.in"
  3592. while :
  3593. do
  3594. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3595. mv "conftest.tmp" "conftest.in"
  3596. cp "conftest.in" "conftest.nl"
  3597. $as_echo 'GREP' >> "conftest.nl"
  3598. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3599. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3600. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3601. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3602. # Best one so far, save it but keep looking for a better one
  3603. ac_cv_path_GREP="$ac_path_GREP"
  3604. ac_path_GREP_max=$ac_count
  3605. fi
  3606. # 10*(2^10) chars as input seems more than enough
  3607. test $ac_count -gt 10 && break
  3608. done
  3609. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3610. esac
  3611. $ac_path_GREP_found && break 3
  3612. done
  3613. done
  3614. done
  3615. IFS=$as_save_IFS
  3616. if test -z "$ac_cv_path_GREP"; then
  3617. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3618. fi
  3619. else
  3620. ac_cv_path_GREP=$GREP
  3621. fi
  3622. fi
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3624. $as_echo "$ac_cv_path_GREP" >&6; }
  3625. GREP="$ac_cv_path_GREP"
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3627. $as_echo_n "checking for egrep... " >&6; }
  3628. if ${ac_cv_path_EGREP+:} false; then :
  3629. $as_echo_n "(cached) " >&6
  3630. else
  3631. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3632. then ac_cv_path_EGREP="$GREP -E"
  3633. else
  3634. if test -z "$EGREP"; then
  3635. ac_path_EGREP_found=false
  3636. # Loop through the user's path and test for each of PROGNAME-LIST
  3637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3638. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3639. do
  3640. IFS=$as_save_IFS
  3641. test -z "$as_dir" && as_dir=.
  3642. for ac_prog in egrep; do
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3645. as_fn_executable_p "$ac_path_EGREP" || continue
  3646. # Check for GNU ac_path_EGREP and select it if it is found.
  3647. # Check for GNU $ac_path_EGREP
  3648. case `"$ac_path_EGREP" --version 2>&1` in
  3649. *GNU*)
  3650. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3651. *)
  3652. ac_count=0
  3653. $as_echo_n 0123456789 >"conftest.in"
  3654. while :
  3655. do
  3656. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3657. mv "conftest.tmp" "conftest.in"
  3658. cp "conftest.in" "conftest.nl"
  3659. $as_echo 'EGREP' >> "conftest.nl"
  3660. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3661. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3662. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3663. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3664. # Best one so far, save it but keep looking for a better one
  3665. ac_cv_path_EGREP="$ac_path_EGREP"
  3666. ac_path_EGREP_max=$ac_count
  3667. fi
  3668. # 10*(2^10) chars as input seems more than enough
  3669. test $ac_count -gt 10 && break
  3670. done
  3671. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3672. esac
  3673. $ac_path_EGREP_found && break 3
  3674. done
  3675. done
  3676. done
  3677. IFS=$as_save_IFS
  3678. if test -z "$ac_cv_path_EGREP"; then
  3679. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3680. fi
  3681. else
  3682. ac_cv_path_EGREP=$EGREP
  3683. fi
  3684. fi
  3685. fi
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3687. $as_echo "$ac_cv_path_EGREP" >&6; }
  3688. EGREP="$ac_cv_path_EGREP"
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3690. $as_echo_n "checking for fgrep... " >&6; }
  3691. if ${ac_cv_path_FGREP+:} false; then :
  3692. $as_echo_n "(cached) " >&6
  3693. else
  3694. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3695. then ac_cv_path_FGREP="$GREP -F"
  3696. else
  3697. if test -z "$FGREP"; then
  3698. ac_path_FGREP_found=false
  3699. # Loop through the user's path and test for each of PROGNAME-LIST
  3700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3701. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3702. do
  3703. IFS=$as_save_IFS
  3704. test -z "$as_dir" && as_dir=.
  3705. for ac_prog in fgrep; do
  3706. for ac_exec_ext in '' $ac_executable_extensions; do
  3707. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3708. as_fn_executable_p "$ac_path_FGREP" || continue
  3709. # Check for GNU ac_path_FGREP and select it if it is found.
  3710. # Check for GNU $ac_path_FGREP
  3711. case `"$ac_path_FGREP" --version 2>&1` in
  3712. *GNU*)
  3713. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3714. *)
  3715. ac_count=0
  3716. $as_echo_n 0123456789 >"conftest.in"
  3717. while :
  3718. do
  3719. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3720. mv "conftest.tmp" "conftest.in"
  3721. cp "conftest.in" "conftest.nl"
  3722. $as_echo 'FGREP' >> "conftest.nl"
  3723. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3724. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3725. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3726. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3727. # Best one so far, save it but keep looking for a better one
  3728. ac_cv_path_FGREP="$ac_path_FGREP"
  3729. ac_path_FGREP_max=$ac_count
  3730. fi
  3731. # 10*(2^10) chars as input seems more than enough
  3732. test $ac_count -gt 10 && break
  3733. done
  3734. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3735. esac
  3736. $ac_path_FGREP_found && break 3
  3737. done
  3738. done
  3739. done
  3740. IFS=$as_save_IFS
  3741. if test -z "$ac_cv_path_FGREP"; then
  3742. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3743. fi
  3744. else
  3745. ac_cv_path_FGREP=$FGREP
  3746. fi
  3747. fi
  3748. fi
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3750. $as_echo "$ac_cv_path_FGREP" >&6; }
  3751. FGREP="$ac_cv_path_FGREP"
  3752. test -z "$GREP" && GREP=grep
  3753. # Check whether --with-gnu-ld was given.
  3754. if test "${with_gnu_ld+set}" = set; then :
  3755. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3756. else
  3757. with_gnu_ld=no
  3758. fi
  3759. ac_prog=ld
  3760. if test yes = "$GCC"; then
  3761. # Check if gcc -print-prog-name=ld gives a path.
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3763. $as_echo_n "checking for ld used by $CC... " >&6; }
  3764. case $host in
  3765. *-*-mingw*)
  3766. # gcc leaves a trailing carriage return, which upsets mingw
  3767. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3768. *)
  3769. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3770. esac
  3771. case $ac_prog in
  3772. # Accept absolute paths.
  3773. [\\/]* | ?:[\\/]*)
  3774. re_direlt='/[^/][^/]*/\.\./'
  3775. # Canonicalize the pathname of ld
  3776. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3777. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3778. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3779. done
  3780. test -z "$LD" && LD=$ac_prog
  3781. ;;
  3782. "")
  3783. # If it fails, then pretend we aren't using GCC.
  3784. ac_prog=ld
  3785. ;;
  3786. *)
  3787. # If it is relative, then search for the first ld in PATH.
  3788. with_gnu_ld=unknown
  3789. ;;
  3790. esac
  3791. elif test yes = "$with_gnu_ld"; then
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3793. $as_echo_n "checking for GNU ld... " >&6; }
  3794. else
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3796. $as_echo_n "checking for non-GNU ld... " >&6; }
  3797. fi
  3798. if ${lt_cv_path_LD+:} false; then :
  3799. $as_echo_n "(cached) " >&6
  3800. else
  3801. if test -z "$LD"; then
  3802. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3803. for ac_dir in $PATH; do
  3804. IFS=$lt_save_ifs
  3805. test -z "$ac_dir" && ac_dir=.
  3806. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3807. lt_cv_path_LD=$ac_dir/$ac_prog
  3808. # Check to see if the program is GNU ld. I'd rather use --version,
  3809. # but apparently some variants of GNU ld only accept -v.
  3810. # Break only if it was the GNU/non-GNU ld that we prefer.
  3811. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3812. *GNU* | *'with BFD'*)
  3813. test no != "$with_gnu_ld" && break
  3814. ;;
  3815. *)
  3816. test yes != "$with_gnu_ld" && break
  3817. ;;
  3818. esac
  3819. fi
  3820. done
  3821. IFS=$lt_save_ifs
  3822. else
  3823. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3824. fi
  3825. fi
  3826. LD=$lt_cv_path_LD
  3827. if test -n "$LD"; then
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3829. $as_echo "$LD" >&6; }
  3830. else
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3832. $as_echo "no" >&6; }
  3833. fi
  3834. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3836. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3837. if ${lt_cv_prog_gnu_ld+:} false; then :
  3838. $as_echo_n "(cached) " >&6
  3839. else
  3840. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3841. case `$LD -v 2>&1 </dev/null` in
  3842. *GNU* | *'with BFD'*)
  3843. lt_cv_prog_gnu_ld=yes
  3844. ;;
  3845. *)
  3846. lt_cv_prog_gnu_ld=no
  3847. ;;
  3848. esac
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3851. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3852. with_gnu_ld=$lt_cv_prog_gnu_ld
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3854. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3855. if ${lt_cv_path_NM+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -n "$NM"; then
  3859. # Let the user override the test.
  3860. lt_cv_path_NM=$NM
  3861. else
  3862. lt_nm_to_check=${ac_tool_prefix}nm
  3863. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3864. lt_nm_to_check="$lt_nm_to_check nm"
  3865. fi
  3866. for lt_tmp_nm in $lt_nm_to_check; do
  3867. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3868. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3869. IFS=$lt_save_ifs
  3870. test -z "$ac_dir" && ac_dir=.
  3871. tmp_nm=$ac_dir/$lt_tmp_nm
  3872. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3873. # Check to see if the nm accepts a BSD-compat flag.
  3874. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3875. # nm: unknown option "B" ignored
  3876. # Tru64's nm complains that /dev/null is an invalid object file
  3877. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3878. case $build_os in
  3879. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3880. *) lt_bad_file=/dev/null ;;
  3881. esac
  3882. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3883. *$lt_bad_file* | *'Invalid file or object type'*)
  3884. lt_cv_path_NM="$tmp_nm -B"
  3885. break 2
  3886. ;;
  3887. *)
  3888. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3889. */dev/null*)
  3890. lt_cv_path_NM="$tmp_nm -p"
  3891. break 2
  3892. ;;
  3893. *)
  3894. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3895. continue # so that we can try to find one that supports BSD flags
  3896. ;;
  3897. esac
  3898. ;;
  3899. esac
  3900. fi
  3901. done
  3902. IFS=$lt_save_ifs
  3903. done
  3904. : ${lt_cv_path_NM=no}
  3905. fi
  3906. fi
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3908. $as_echo "$lt_cv_path_NM" >&6; }
  3909. if test no != "$lt_cv_path_NM"; then
  3910. NM=$lt_cv_path_NM
  3911. else
  3912. # Didn't find any BSD compatible name lister, look for dumpbin.
  3913. if test -n "$DUMPBIN"; then :
  3914. # Let the user override the test.
  3915. else
  3916. if test -n "$ac_tool_prefix"; then
  3917. for ac_prog in dumpbin "link -dump"
  3918. do
  3919. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3920. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3922. $as_echo_n "checking for $ac_word... " >&6; }
  3923. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. if test -n "$DUMPBIN"; then
  3927. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3928. else
  3929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3930. for as_dir in $PATH
  3931. do
  3932. IFS=$as_save_IFS
  3933. test -z "$as_dir" && as_dir=.
  3934. for ac_exec_ext in '' $ac_executable_extensions; do
  3935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3936. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3938. break 2
  3939. fi
  3940. done
  3941. done
  3942. IFS=$as_save_IFS
  3943. fi
  3944. fi
  3945. DUMPBIN=$ac_cv_prog_DUMPBIN
  3946. if test -n "$DUMPBIN"; then
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3948. $as_echo "$DUMPBIN" >&6; }
  3949. else
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3951. $as_echo "no" >&6; }
  3952. fi
  3953. test -n "$DUMPBIN" && break
  3954. done
  3955. fi
  3956. if test -z "$DUMPBIN"; then
  3957. ac_ct_DUMPBIN=$DUMPBIN
  3958. for ac_prog in dumpbin "link -dump"
  3959. do
  3960. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3961. set dummy $ac_prog; ac_word=$2
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3963. $as_echo_n "checking for $ac_word... " >&6; }
  3964. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3965. $as_echo_n "(cached) " >&6
  3966. else
  3967. if test -n "$ac_ct_DUMPBIN"; then
  3968. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3969. else
  3970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971. for as_dir in $PATH
  3972. do
  3973. IFS=$as_save_IFS
  3974. test -z "$as_dir" && as_dir=.
  3975. for ac_exec_ext in '' $ac_executable_extensions; do
  3976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3977. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979. break 2
  3980. fi
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. fi
  3985. fi
  3986. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3987. if test -n "$ac_ct_DUMPBIN"; then
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3989. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3990. else
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3992. $as_echo "no" >&6; }
  3993. fi
  3994. test -n "$ac_ct_DUMPBIN" && break
  3995. done
  3996. if test "x$ac_ct_DUMPBIN" = x; then
  3997. DUMPBIN=":"
  3998. else
  3999. case $cross_compiling:$ac_tool_warned in
  4000. yes:)
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4003. ac_tool_warned=yes ;;
  4004. esac
  4005. DUMPBIN=$ac_ct_DUMPBIN
  4006. fi
  4007. fi
  4008. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4009. *COFF*)
  4010. DUMPBIN="$DUMPBIN -symbols -headers"
  4011. ;;
  4012. *)
  4013. DUMPBIN=:
  4014. ;;
  4015. esac
  4016. fi
  4017. if test : != "$DUMPBIN"; then
  4018. NM=$DUMPBIN
  4019. fi
  4020. fi
  4021. test -z "$NM" && NM=nm
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4023. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4024. if ${lt_cv_nm_interface+:} false; then :
  4025. $as_echo_n "(cached) " >&6
  4026. else
  4027. lt_cv_nm_interface="BSD nm"
  4028. echo "int some_variable = 0;" > conftest.$ac_ext
  4029. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4030. (eval "$ac_compile" 2>conftest.err)
  4031. cat conftest.err >&5
  4032. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4033. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4034. cat conftest.err >&5
  4035. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4036. cat conftest.out >&5
  4037. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4038. lt_cv_nm_interface="MS dumpbin"
  4039. fi
  4040. rm -f conftest*
  4041. fi
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4043. $as_echo "$lt_cv_nm_interface" >&6; }
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4045. $as_echo_n "checking whether ln -s works... " >&6; }
  4046. LN_S=$as_ln_s
  4047. if test "$LN_S" = "ln -s"; then
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4049. $as_echo "yes" >&6; }
  4050. else
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4052. $as_echo "no, using $LN_S" >&6; }
  4053. fi
  4054. # find the maximum length of command line arguments
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4056. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4057. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4058. $as_echo_n "(cached) " >&6
  4059. else
  4060. i=0
  4061. teststring=ABCD
  4062. case $build_os in
  4063. msdosdjgpp*)
  4064. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4065. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4066. # during glob expansion). Even if it were fixed, the result of this
  4067. # check would be larger than it should be.
  4068. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4069. ;;
  4070. gnu*)
  4071. # Under GNU Hurd, this test is not required because there is
  4072. # no limit to the length of command line arguments.
  4073. # Libtool will interpret -1 as no limit whatsoever
  4074. lt_cv_sys_max_cmd_len=-1;
  4075. ;;
  4076. cygwin* | mingw* | cegcc*)
  4077. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4078. # about 5 minutes as the teststring grows exponentially.
  4079. # Worse, since 9x/ME are not pre-emptively multitasking,
  4080. # you end up with a "frozen" computer, even though with patience
  4081. # the test eventually succeeds (with a max line length of 256k).
  4082. # Instead, let's just punt: use the minimum linelength reported by
  4083. # all of the supported platforms: 8192 (on NT/2K/XP).
  4084. lt_cv_sys_max_cmd_len=8192;
  4085. ;;
  4086. mint*)
  4087. # On MiNT this can take a long time and run out of memory.
  4088. lt_cv_sys_max_cmd_len=8192;
  4089. ;;
  4090. amigaos*)
  4091. # On AmigaOS with pdksh, this test takes hours, literally.
  4092. # So we just punt and use a minimum line length of 8192.
  4093. lt_cv_sys_max_cmd_len=8192;
  4094. ;;
  4095. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4096. # This has been around since 386BSD, at least. Likely further.
  4097. if test -x /sbin/sysctl; then
  4098. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4099. elif test -x /usr/sbin/sysctl; then
  4100. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4101. else
  4102. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4103. fi
  4104. # And add a safety zone
  4105. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4106. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4107. ;;
  4108. interix*)
  4109. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4110. lt_cv_sys_max_cmd_len=196608
  4111. ;;
  4112. os2*)
  4113. # The test takes a long time on OS/2.
  4114. lt_cv_sys_max_cmd_len=8192
  4115. ;;
  4116. osf*)
  4117. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4118. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4119. # nice to cause kernel panics so lets avoid the loop below.
  4120. # First set a reasonable default.
  4121. lt_cv_sys_max_cmd_len=16384
  4122. #
  4123. if test -x /sbin/sysconfig; then
  4124. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4125. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4126. esac
  4127. fi
  4128. ;;
  4129. sco3.2v5*)
  4130. lt_cv_sys_max_cmd_len=102400
  4131. ;;
  4132. sysv5* | sco5v6* | sysv4.2uw2*)
  4133. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4134. if test -n "$kargmax"; then
  4135. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4136. else
  4137. lt_cv_sys_max_cmd_len=32768
  4138. fi
  4139. ;;
  4140. *)
  4141. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4142. if test -n "$lt_cv_sys_max_cmd_len" && \
  4143. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4144. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4145. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4146. else
  4147. # Make teststring a little bigger before we do anything with it.
  4148. # a 1K string should be a reasonable start.
  4149. for i in 1 2 3 4 5 6 7 8; do
  4150. teststring=$teststring$teststring
  4151. done
  4152. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4153. # If test is not a shell built-in, we'll probably end up computing a
  4154. # maximum length that is only half of the actual maximum length, but
  4155. # we can't tell.
  4156. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4157. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4158. test 17 != "$i" # 1/2 MB should be enough
  4159. do
  4160. i=`expr $i + 1`
  4161. teststring=$teststring$teststring
  4162. done
  4163. # Only check the string length outside the loop.
  4164. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4165. teststring=
  4166. # Add a significant safety factor because C++ compilers can tack on
  4167. # massive amounts of additional arguments before passing them to the
  4168. # linker. It appears as though 1/2 is a usable value.
  4169. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4170. fi
  4171. ;;
  4172. esac
  4173. fi
  4174. if test -n "$lt_cv_sys_max_cmd_len"; then
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4176. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4177. else
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4179. $as_echo "none" >&6; }
  4180. fi
  4181. max_cmd_len=$lt_cv_sys_max_cmd_len
  4182. : ${CP="cp -f"}
  4183. : ${MV="mv -f"}
  4184. : ${RM="rm -f"}
  4185. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4186. lt_unset=unset
  4187. else
  4188. lt_unset=false
  4189. fi
  4190. # test EBCDIC or ASCII
  4191. case `echo X|tr X '\101'` in
  4192. A) # ASCII based system
  4193. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4194. lt_SP2NL='tr \040 \012'
  4195. lt_NL2SP='tr \015\012 \040\040'
  4196. ;;
  4197. *) # EBCDIC based system
  4198. lt_SP2NL='tr \100 \n'
  4199. lt_NL2SP='tr \r\n \100\100'
  4200. ;;
  4201. esac
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4203. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4204. if ${lt_cv_to_host_file_cmd+:} false; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. case $host in
  4208. *-*-mingw* )
  4209. case $build in
  4210. *-*-mingw* ) # actually msys
  4211. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4212. ;;
  4213. *-*-cygwin* )
  4214. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4215. ;;
  4216. * ) # otherwise, assume *nix
  4217. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4218. ;;
  4219. esac
  4220. ;;
  4221. *-*-cygwin* )
  4222. case $build in
  4223. *-*-mingw* ) # actually msys
  4224. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4225. ;;
  4226. *-*-cygwin* )
  4227. lt_cv_to_host_file_cmd=func_convert_file_noop
  4228. ;;
  4229. * ) # otherwise, assume *nix
  4230. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4231. ;;
  4232. esac
  4233. ;;
  4234. * ) # unhandled hosts (and "normal" native builds)
  4235. lt_cv_to_host_file_cmd=func_convert_file_noop
  4236. ;;
  4237. esac
  4238. fi
  4239. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4241. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4243. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4244. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4245. $as_echo_n "(cached) " >&6
  4246. else
  4247. #assume ordinary cross tools, or native build.
  4248. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4249. case $host in
  4250. *-*-mingw* )
  4251. case $build in
  4252. *-*-mingw* ) # actually msys
  4253. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4254. ;;
  4255. esac
  4256. ;;
  4257. esac
  4258. fi
  4259. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4261. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4263. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4264. if ${lt_cv_ld_reload_flag+:} false; then :
  4265. $as_echo_n "(cached) " >&6
  4266. else
  4267. lt_cv_ld_reload_flag='-r'
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4270. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4271. reload_flag=$lt_cv_ld_reload_flag
  4272. case $reload_flag in
  4273. "" | " "*) ;;
  4274. *) reload_flag=" $reload_flag" ;;
  4275. esac
  4276. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4277. case $host_os in
  4278. cygwin* | mingw* | pw32* | cegcc*)
  4279. if test yes != "$GCC"; then
  4280. reload_cmds=false
  4281. fi
  4282. ;;
  4283. darwin*)
  4284. if test yes = "$GCC"; then
  4285. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4286. else
  4287. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4288. fi
  4289. ;;
  4290. esac
  4291. if test -n "$ac_tool_prefix"; then
  4292. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4293. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4295. $as_echo_n "checking for $ac_word... " >&6; }
  4296. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4297. $as_echo_n "(cached) " >&6
  4298. else
  4299. if test -n "$OBJDUMP"; then
  4300. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4301. else
  4302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4303. for as_dir in $PATH
  4304. do
  4305. IFS=$as_save_IFS
  4306. test -z "$as_dir" && as_dir=.
  4307. for ac_exec_ext in '' $ac_executable_extensions; do
  4308. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4309. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4311. break 2
  4312. fi
  4313. done
  4314. done
  4315. IFS=$as_save_IFS
  4316. fi
  4317. fi
  4318. OBJDUMP=$ac_cv_prog_OBJDUMP
  4319. if test -n "$OBJDUMP"; then
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4321. $as_echo "$OBJDUMP" >&6; }
  4322. else
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4324. $as_echo "no" >&6; }
  4325. fi
  4326. fi
  4327. if test -z "$ac_cv_prog_OBJDUMP"; then
  4328. ac_ct_OBJDUMP=$OBJDUMP
  4329. # Extract the first word of "objdump", so it can be a program name with args.
  4330. set dummy objdump; ac_word=$2
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4332. $as_echo_n "checking for $ac_word... " >&6; }
  4333. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4334. $as_echo_n "(cached) " >&6
  4335. else
  4336. if test -n "$ac_ct_OBJDUMP"; then
  4337. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4338. else
  4339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4340. for as_dir in $PATH
  4341. do
  4342. IFS=$as_save_IFS
  4343. test -z "$as_dir" && as_dir=.
  4344. for ac_exec_ext in '' $ac_executable_extensions; do
  4345. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4346. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4348. break 2
  4349. fi
  4350. done
  4351. done
  4352. IFS=$as_save_IFS
  4353. fi
  4354. fi
  4355. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4356. if test -n "$ac_ct_OBJDUMP"; then
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4358. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4359. else
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4361. $as_echo "no" >&6; }
  4362. fi
  4363. if test "x$ac_ct_OBJDUMP" = x; then
  4364. OBJDUMP="false"
  4365. else
  4366. case $cross_compiling:$ac_tool_warned in
  4367. yes:)
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4369. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4370. ac_tool_warned=yes ;;
  4371. esac
  4372. OBJDUMP=$ac_ct_OBJDUMP
  4373. fi
  4374. else
  4375. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4376. fi
  4377. test -z "$OBJDUMP" && OBJDUMP=objdump
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4379. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4380. if ${lt_cv_deplibs_check_method+:} false; then :
  4381. $as_echo_n "(cached) " >&6
  4382. else
  4383. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4384. lt_cv_file_magic_test_file=
  4385. lt_cv_deplibs_check_method='unknown'
  4386. # Need to set the preceding variable on all platforms that support
  4387. # interlibrary dependencies.
  4388. # 'none' -- dependencies not supported.
  4389. # 'unknown' -- same as none, but documents that we really don't know.
  4390. # 'pass_all' -- all dependencies passed with no checks.
  4391. # 'test_compile' -- check by making test program.
  4392. # 'file_magic [[regex]]' -- check by looking for files in library path
  4393. # that responds to the $file_magic_cmd with a given extended regex.
  4394. # If you have 'file' or equivalent on your system and you're not sure
  4395. # whether 'pass_all' will *always* work, you probably want this one.
  4396. case $host_os in
  4397. aix[4-9]*)
  4398. lt_cv_deplibs_check_method=pass_all
  4399. ;;
  4400. beos*)
  4401. lt_cv_deplibs_check_method=pass_all
  4402. ;;
  4403. bsdi[45]*)
  4404. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4405. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4406. lt_cv_file_magic_test_file=/shlib/libc.so
  4407. ;;
  4408. cygwin*)
  4409. # func_win32_libid is a shell function defined in ltmain.sh
  4410. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4411. lt_cv_file_magic_cmd='func_win32_libid'
  4412. lt_cv_deplibs_check_method=pass_all # SDL customization
  4413. ;;
  4414. mingw* | pw32*)
  4415. # Base MSYS/MinGW do not provide the 'file' command needed by
  4416. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4417. # unless we find 'file', for example because we are cross-compiling.
  4418. if ( file / ) >/dev/null 2>&1; then
  4419. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4420. lt_cv_file_magic_cmd='func_win32_libid'
  4421. else
  4422. # Keep this pattern in sync with the one in func_win32_libid.
  4423. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4424. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4425. fi
  4426. lt_cv_deplibs_check_method=pass_all # SDL customization
  4427. ;;
  4428. cegcc*)
  4429. # use the weaker test based on 'objdump'. See mingw*.
  4430. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4431. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4432. ;;
  4433. darwin* | rhapsody*)
  4434. lt_cv_deplibs_check_method=pass_all
  4435. ;;
  4436. freebsd* | dragonfly* | midnightbsd*)
  4437. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4438. case $host_cpu in
  4439. i*86 )
  4440. # Not sure whether the presence of OpenBSD here was a mistake.
  4441. # Let's accept both of them until this is cleared up.
  4442. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4443. lt_cv_file_magic_cmd=/usr/bin/file
  4444. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4445. ;;
  4446. esac
  4447. else
  4448. lt_cv_deplibs_check_method=pass_all
  4449. fi
  4450. ;;
  4451. haiku*)
  4452. lt_cv_deplibs_check_method=pass_all
  4453. ;;
  4454. hpux10.20* | hpux11*)
  4455. lt_cv_file_magic_cmd=/usr/bin/file
  4456. case $host_cpu in
  4457. ia64*)
  4458. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4459. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4460. ;;
  4461. hppa*64*)
  4462. 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]'
  4463. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4464. ;;
  4465. *)
  4466. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4467. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4468. ;;
  4469. esac
  4470. ;;
  4471. interix[3-9]*)
  4472. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4473. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4474. ;;
  4475. irix5* | irix6* | nonstopux*)
  4476. case $LD in
  4477. *-32|*"-32 ") libmagic=32-bit;;
  4478. *-n32|*"-n32 ") libmagic=N32;;
  4479. *-64|*"-64 ") libmagic=64-bit;;
  4480. *) libmagic=never-match;;
  4481. esac
  4482. lt_cv_deplibs_check_method=pass_all
  4483. ;;
  4484. # This must be glibc/ELF.
  4485. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4486. lt_cv_deplibs_check_method=pass_all
  4487. ;;
  4488. netbsd*)
  4489. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4490. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4491. else
  4492. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4493. fi
  4494. ;;
  4495. newos6*)
  4496. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4497. lt_cv_file_magic_cmd=/usr/bin/file
  4498. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4499. ;;
  4500. *nto* | *qnx*)
  4501. lt_cv_deplibs_check_method=pass_all
  4502. ;;
  4503. openbsd* | bitrig*)
  4504. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4505. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4506. else
  4507. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4508. fi
  4509. ;;
  4510. osf3* | osf4* | osf5*)
  4511. lt_cv_deplibs_check_method=pass_all
  4512. ;;
  4513. rdos*)
  4514. lt_cv_deplibs_check_method=pass_all
  4515. ;;
  4516. solaris*)
  4517. lt_cv_deplibs_check_method=pass_all
  4518. ;;
  4519. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4520. lt_cv_deplibs_check_method=pass_all
  4521. ;;
  4522. sysv4 | sysv4.3*)
  4523. case $host_vendor in
  4524. motorola)
  4525. 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]'
  4526. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4527. ;;
  4528. ncr)
  4529. lt_cv_deplibs_check_method=pass_all
  4530. ;;
  4531. sequent)
  4532. lt_cv_file_magic_cmd='/bin/file'
  4533. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4534. ;;
  4535. sni)
  4536. lt_cv_file_magic_cmd='/bin/file'
  4537. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4538. lt_cv_file_magic_test_file=/lib/libc.so
  4539. ;;
  4540. siemens)
  4541. lt_cv_deplibs_check_method=pass_all
  4542. ;;
  4543. pc)
  4544. lt_cv_deplibs_check_method=pass_all
  4545. ;;
  4546. esac
  4547. ;;
  4548. tpf*)
  4549. lt_cv_deplibs_check_method=pass_all
  4550. ;;
  4551. os2*)
  4552. lt_cv_deplibs_check_method=pass_all
  4553. ;;
  4554. esac
  4555. fi
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4557. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4558. file_magic_glob=
  4559. want_nocaseglob=no
  4560. if test "$build" = "$host"; then
  4561. case $host_os in
  4562. mingw* | pw32*)
  4563. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4564. want_nocaseglob=yes
  4565. else
  4566. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4567. fi
  4568. ;;
  4569. esac
  4570. fi
  4571. file_magic_cmd=$lt_cv_file_magic_cmd
  4572. deplibs_check_method=$lt_cv_deplibs_check_method
  4573. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4574. if test -n "$ac_tool_prefix"; then
  4575. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4576. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4578. $as_echo_n "checking for $ac_word... " >&6; }
  4579. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4580. $as_echo_n "(cached) " >&6
  4581. else
  4582. if test -n "$DLLTOOL"; then
  4583. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4584. else
  4585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4586. for as_dir in $PATH
  4587. do
  4588. IFS=$as_save_IFS
  4589. test -z "$as_dir" && as_dir=.
  4590. for ac_exec_ext in '' $ac_executable_extensions; do
  4591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4592. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4594. break 2
  4595. fi
  4596. done
  4597. done
  4598. IFS=$as_save_IFS
  4599. fi
  4600. fi
  4601. DLLTOOL=$ac_cv_prog_DLLTOOL
  4602. if test -n "$DLLTOOL"; then
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4604. $as_echo "$DLLTOOL" >&6; }
  4605. else
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4607. $as_echo "no" >&6; }
  4608. fi
  4609. fi
  4610. if test -z "$ac_cv_prog_DLLTOOL"; then
  4611. ac_ct_DLLTOOL=$DLLTOOL
  4612. # Extract the first word of "dlltool", so it can be a program name with args.
  4613. set dummy dlltool; ac_word=$2
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4615. $as_echo_n "checking for $ac_word... " >&6; }
  4616. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4617. $as_echo_n "(cached) " >&6
  4618. else
  4619. if test -n "$ac_ct_DLLTOOL"; then
  4620. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4621. else
  4622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4623. for as_dir in $PATH
  4624. do
  4625. IFS=$as_save_IFS
  4626. test -z "$as_dir" && as_dir=.
  4627. for ac_exec_ext in '' $ac_executable_extensions; do
  4628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4629. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4631. break 2
  4632. fi
  4633. done
  4634. done
  4635. IFS=$as_save_IFS
  4636. fi
  4637. fi
  4638. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4639. if test -n "$ac_ct_DLLTOOL"; then
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4641. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4642. else
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4644. $as_echo "no" >&6; }
  4645. fi
  4646. if test "x$ac_ct_DLLTOOL" = x; then
  4647. DLLTOOL="false"
  4648. else
  4649. case $cross_compiling:$ac_tool_warned in
  4650. yes:)
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4652. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4653. ac_tool_warned=yes ;;
  4654. esac
  4655. DLLTOOL=$ac_ct_DLLTOOL
  4656. fi
  4657. else
  4658. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4659. fi
  4660. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4662. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4663. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4667. case $host_os in
  4668. cygwin* | mingw* | pw32* | cegcc*)
  4669. # two different shell functions defined in ltmain.sh;
  4670. # decide which one to use based on capabilities of $DLLTOOL
  4671. case `$DLLTOOL --help 2>&1` in
  4672. *--identify-strict*)
  4673. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4674. ;;
  4675. *)
  4676. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4677. ;;
  4678. esac
  4679. ;;
  4680. *)
  4681. # fallback: assume linklib IS sharedlib
  4682. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4683. ;;
  4684. esac
  4685. fi
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4687. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4688. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4689. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4690. if test -n "$ac_tool_prefix"; then
  4691. for ac_prog in ar
  4692. do
  4693. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4694. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4696. $as_echo_n "checking for $ac_word... " >&6; }
  4697. if ${ac_cv_prog_AR+:} false; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. if test -n "$AR"; then
  4701. ac_cv_prog_AR="$AR" # Let the user override the test.
  4702. else
  4703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4704. for as_dir in $PATH
  4705. do
  4706. IFS=$as_save_IFS
  4707. test -z "$as_dir" && as_dir=.
  4708. for ac_exec_ext in '' $ac_executable_extensions; do
  4709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4710. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4712. break 2
  4713. fi
  4714. done
  4715. done
  4716. IFS=$as_save_IFS
  4717. fi
  4718. fi
  4719. AR=$ac_cv_prog_AR
  4720. if test -n "$AR"; then
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4722. $as_echo "$AR" >&6; }
  4723. else
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4725. $as_echo "no" >&6; }
  4726. fi
  4727. test -n "$AR" && break
  4728. done
  4729. fi
  4730. if test -z "$AR"; then
  4731. ac_ct_AR=$AR
  4732. for ac_prog in ar
  4733. do
  4734. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4735. set dummy $ac_prog; ac_word=$2
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4737. $as_echo_n "checking for $ac_word... " >&6; }
  4738. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if test -n "$ac_ct_AR"; then
  4742. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4743. else
  4744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4745. for as_dir in $PATH
  4746. do
  4747. IFS=$as_save_IFS
  4748. test -z "$as_dir" && as_dir=.
  4749. for ac_exec_ext in '' $ac_executable_extensions; do
  4750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4751. ac_cv_prog_ac_ct_AR="$ac_prog"
  4752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4753. break 2
  4754. fi
  4755. done
  4756. done
  4757. IFS=$as_save_IFS
  4758. fi
  4759. fi
  4760. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4761. if test -n "$ac_ct_AR"; then
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4763. $as_echo "$ac_ct_AR" >&6; }
  4764. else
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4766. $as_echo "no" >&6; }
  4767. fi
  4768. test -n "$ac_ct_AR" && break
  4769. done
  4770. if test "x$ac_ct_AR" = x; then
  4771. AR="false"
  4772. else
  4773. case $cross_compiling:$ac_tool_warned in
  4774. yes:)
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4777. ac_tool_warned=yes ;;
  4778. esac
  4779. AR=$ac_ct_AR
  4780. fi
  4781. fi
  4782. : ${AR=ar}
  4783. : ${AR_FLAGS=cru}
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4785. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4786. if ${lt_cv_ar_at_file+:} false; then :
  4787. $as_echo_n "(cached) " >&6
  4788. else
  4789. lt_cv_ar_at_file=no
  4790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4791. /* end confdefs.h. */
  4792. int
  4793. main ()
  4794. {
  4795. ;
  4796. return 0;
  4797. }
  4798. _ACEOF
  4799. if ac_fn_c_try_compile "$LINENO"; then :
  4800. echo conftest.$ac_objext > conftest.lst
  4801. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4802. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4803. (eval $lt_ar_try) 2>&5
  4804. ac_status=$?
  4805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4806. test $ac_status = 0; }
  4807. if test 0 -eq "$ac_status"; then
  4808. # Ensure the archiver fails upon bogus file names.
  4809. rm -f conftest.$ac_objext libconftest.a
  4810. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4811. (eval $lt_ar_try) 2>&5
  4812. ac_status=$?
  4813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4814. test $ac_status = 0; }
  4815. if test 0 -ne "$ac_status"; then
  4816. lt_cv_ar_at_file=@
  4817. fi
  4818. fi
  4819. rm -f conftest.* libconftest.a
  4820. fi
  4821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4822. fi
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4824. $as_echo "$lt_cv_ar_at_file" >&6; }
  4825. if test no = "$lt_cv_ar_at_file"; then
  4826. archiver_list_spec=
  4827. else
  4828. archiver_list_spec=$lt_cv_ar_at_file
  4829. fi
  4830. if test -n "$ac_tool_prefix"; then
  4831. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4832. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4834. $as_echo_n "checking for $ac_word... " >&6; }
  4835. if ${ac_cv_prog_STRIP+:} false; then :
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. if test -n "$STRIP"; then
  4839. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4840. else
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_exec_ext in '' $ac_executable_extensions; do
  4847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4848. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4850. break 2
  4851. fi
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. fi
  4856. fi
  4857. STRIP=$ac_cv_prog_STRIP
  4858. if test -n "$STRIP"; then
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4860. $as_echo "$STRIP" >&6; }
  4861. else
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4863. $as_echo "no" >&6; }
  4864. fi
  4865. fi
  4866. if test -z "$ac_cv_prog_STRIP"; then
  4867. ac_ct_STRIP=$STRIP
  4868. # Extract the first word of "strip", so it can be a program name with args.
  4869. set dummy strip; ac_word=$2
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4871. $as_echo_n "checking for $ac_word... " >&6; }
  4872. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if test -n "$ac_ct_STRIP"; then
  4876. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4877. else
  4878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4879. for as_dir in $PATH
  4880. do
  4881. IFS=$as_save_IFS
  4882. test -z "$as_dir" && as_dir=.
  4883. for ac_exec_ext in '' $ac_executable_extensions; do
  4884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4885. ac_cv_prog_ac_ct_STRIP="strip"
  4886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4887. break 2
  4888. fi
  4889. done
  4890. done
  4891. IFS=$as_save_IFS
  4892. fi
  4893. fi
  4894. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4895. if test -n "$ac_ct_STRIP"; then
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4897. $as_echo "$ac_ct_STRIP" >&6; }
  4898. else
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4900. $as_echo "no" >&6; }
  4901. fi
  4902. if test "x$ac_ct_STRIP" = x; then
  4903. STRIP=":"
  4904. else
  4905. case $cross_compiling:$ac_tool_warned in
  4906. yes:)
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4909. ac_tool_warned=yes ;;
  4910. esac
  4911. STRIP=$ac_ct_STRIP
  4912. fi
  4913. else
  4914. STRIP="$ac_cv_prog_STRIP"
  4915. fi
  4916. test -z "$STRIP" && STRIP=:
  4917. if test -n "$ac_tool_prefix"; then
  4918. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4919. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4921. $as_echo_n "checking for $ac_word... " >&6; }
  4922. if ${ac_cv_prog_RANLIB+:} false; then :
  4923. $as_echo_n "(cached) " >&6
  4924. else
  4925. if test -n "$RANLIB"; then
  4926. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4927. else
  4928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4929. for as_dir in $PATH
  4930. do
  4931. IFS=$as_save_IFS
  4932. test -z "$as_dir" && as_dir=.
  4933. for ac_exec_ext in '' $ac_executable_extensions; do
  4934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4935. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4937. break 2
  4938. fi
  4939. done
  4940. done
  4941. IFS=$as_save_IFS
  4942. fi
  4943. fi
  4944. RANLIB=$ac_cv_prog_RANLIB
  4945. if test -n "$RANLIB"; then
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4947. $as_echo "$RANLIB" >&6; }
  4948. else
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4950. $as_echo "no" >&6; }
  4951. fi
  4952. fi
  4953. if test -z "$ac_cv_prog_RANLIB"; then
  4954. ac_ct_RANLIB=$RANLIB
  4955. # Extract the first word of "ranlib", so it can be a program name with args.
  4956. set dummy ranlib; ac_word=$2
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4958. $as_echo_n "checking for $ac_word... " >&6; }
  4959. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. if test -n "$ac_ct_RANLIB"; then
  4963. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4964. else
  4965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4966. for as_dir in $PATH
  4967. do
  4968. IFS=$as_save_IFS
  4969. test -z "$as_dir" && as_dir=.
  4970. for ac_exec_ext in '' $ac_executable_extensions; do
  4971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4972. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4974. break 2
  4975. fi
  4976. done
  4977. done
  4978. IFS=$as_save_IFS
  4979. fi
  4980. fi
  4981. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4982. if test -n "$ac_ct_RANLIB"; then
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4984. $as_echo "$ac_ct_RANLIB" >&6; }
  4985. else
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4987. $as_echo "no" >&6; }
  4988. fi
  4989. if test "x$ac_ct_RANLIB" = x; then
  4990. RANLIB=":"
  4991. else
  4992. case $cross_compiling:$ac_tool_warned in
  4993. yes:)
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4995. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4996. ac_tool_warned=yes ;;
  4997. esac
  4998. RANLIB=$ac_ct_RANLIB
  4999. fi
  5000. else
  5001. RANLIB="$ac_cv_prog_RANLIB"
  5002. fi
  5003. test -z "$RANLIB" && RANLIB=:
  5004. # Determine commands to create old-style static archives.
  5005. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5006. old_postinstall_cmds='chmod 644 $oldlib'
  5007. old_postuninstall_cmds=
  5008. if test -n "$RANLIB"; then
  5009. case $host_os in
  5010. bitrig* | openbsd*)
  5011. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5012. ;;
  5013. *)
  5014. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5015. ;;
  5016. esac
  5017. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5018. fi
  5019. case $host_os in
  5020. darwin*)
  5021. lock_old_archive_extraction=yes ;;
  5022. *)
  5023. lock_old_archive_extraction=no ;;
  5024. esac
  5025. for ac_prog in gawk mawk nawk awk
  5026. do
  5027. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5028. set dummy $ac_prog; ac_word=$2
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5030. $as_echo_n "checking for $ac_word... " >&6; }
  5031. if ${ac_cv_prog_AWK+:} false; then :
  5032. $as_echo_n "(cached) " >&6
  5033. else
  5034. if test -n "$AWK"; then
  5035. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5036. else
  5037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5038. for as_dir in $PATH
  5039. do
  5040. IFS=$as_save_IFS
  5041. test -z "$as_dir" && as_dir=.
  5042. for ac_exec_ext in '' $ac_executable_extensions; do
  5043. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5044. ac_cv_prog_AWK="$ac_prog"
  5045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5046. break 2
  5047. fi
  5048. done
  5049. done
  5050. IFS=$as_save_IFS
  5051. fi
  5052. fi
  5053. AWK=$ac_cv_prog_AWK
  5054. if test -n "$AWK"; then
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5056. $as_echo "$AWK" >&6; }
  5057. else
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5059. $as_echo "no" >&6; }
  5060. fi
  5061. test -n "$AWK" && break
  5062. done
  5063. # If no C compiler was specified, use CC.
  5064. LTCC=${LTCC-"$CC"}
  5065. # If no C compiler flags were specified, use CFLAGS.
  5066. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5067. # Allow CC to be a program name with arguments.
  5068. compiler=$CC
  5069. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5071. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5072. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5073. $as_echo_n "(cached) " >&6
  5074. else
  5075. # These are sane defaults that work on at least a few old systems.
  5076. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5077. # Character class describing NM global symbol codes.
  5078. symcode='[BCDEGRST]'
  5079. # Regexp to match symbols that can be accessed directly from C.
  5080. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5081. # Define system-specific variables.
  5082. case $host_os in
  5083. aix*)
  5084. symcode='[BCDT]'
  5085. ;;
  5086. cygwin* | mingw* | pw32* | cegcc*)
  5087. symcode='[ABCDGISTW]'
  5088. ;;
  5089. hpux*)
  5090. if test ia64 = "$host_cpu"; then
  5091. symcode='[ABCDEGRST]'
  5092. fi
  5093. ;;
  5094. irix* | nonstopux*)
  5095. symcode='[BCDEGRST]'
  5096. ;;
  5097. osf*)
  5098. symcode='[BCDEGQRST]'
  5099. ;;
  5100. solaris*)
  5101. symcode='[BCDRT]'
  5102. ;;
  5103. sco3.2v5*)
  5104. symcode='[DT]'
  5105. ;;
  5106. sysv4.2uw2*)
  5107. symcode='[DT]'
  5108. ;;
  5109. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5110. symcode='[ABDT]'
  5111. ;;
  5112. sysv4)
  5113. symcode='[DFNSTU]'
  5114. ;;
  5115. esac
  5116. # If we're using GNU nm, then use its standard symbol codes.
  5117. case `$NM -V 2>&1` in
  5118. *GNU* | *'with BFD'*)
  5119. symcode='[ABCDGIRSTW]' ;;
  5120. esac
  5121. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5122. # Gets list of data symbols to import.
  5123. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5124. # Adjust the below global symbol transforms to fixup imported variables.
  5125. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5126. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5127. lt_c_name_lib_hook="\
  5128. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5129. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5130. else
  5131. # Disable hooks by default.
  5132. lt_cv_sys_global_symbol_to_import=
  5133. lt_cdecl_hook=
  5134. lt_c_name_hook=
  5135. lt_c_name_lib_hook=
  5136. fi
  5137. # Transform an extracted symbol line into a proper C declaration.
  5138. # Some systems (esp. on ia64) link data and code symbols differently,
  5139. # so use this general approach.
  5140. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5141. $lt_cdecl_hook\
  5142. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5143. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5144. # Transform an extracted symbol line into symbol name and symbol address
  5145. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5146. $lt_c_name_hook\
  5147. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5148. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5149. # Transform an extracted symbol line into symbol name with lib prefix and
  5150. # symbol address.
  5151. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5152. $lt_c_name_lib_hook\
  5153. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5154. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5155. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5156. # Handle CRLF in mingw tool chain
  5157. opt_cr=
  5158. case $build_os in
  5159. mingw*)
  5160. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5161. ;;
  5162. esac
  5163. # Try without a prefix underscore, then with it.
  5164. for ac_symprfx in "" "_"; do
  5165. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5166. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5167. # Write the raw and C identifiers.
  5168. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5169. # Fake it for dumpbin and say T for any non-static function,
  5170. # D for any global variable and I for any imported variable.
  5171. # Also find C++ and __fastcall symbols from MSVC++,
  5172. # which start with @ or ?.
  5173. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5174. " {last_section=section; section=\$ 3};"\
  5175. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5176. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5177. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5178. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5179. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5180. " \$ 0!~/External *\|/{next};"\
  5181. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5182. " {if(hide[section]) next};"\
  5183. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5184. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5185. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5186. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5187. " ' prfx=^$ac_symprfx"
  5188. else
  5189. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5190. fi
  5191. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5192. # Check to see that the pipe works correctly.
  5193. pipe_works=no
  5194. rm -f conftest*
  5195. cat > conftest.$ac_ext <<_LT_EOF
  5196. #ifdef __cplusplus
  5197. extern "C" {
  5198. #endif
  5199. char nm_test_var;
  5200. void nm_test_func(void);
  5201. void nm_test_func(void){}
  5202. #ifdef __cplusplus
  5203. }
  5204. #endif
  5205. int main(){nm_test_var='a';nm_test_func();return(0);}
  5206. _LT_EOF
  5207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5208. (eval $ac_compile) 2>&5
  5209. ac_status=$?
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5211. test $ac_status = 0; }; then
  5212. # Now try to grab the symbols.
  5213. nlist=conftest.nm
  5214. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5215. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5216. ac_status=$?
  5217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5218. test $ac_status = 0; } && test -s "$nlist"; then
  5219. # Try sorting and uniquifying the output.
  5220. if sort "$nlist" | uniq > "$nlist"T; then
  5221. mv -f "$nlist"T "$nlist"
  5222. else
  5223. rm -f "$nlist"T
  5224. fi
  5225. # Make sure that we snagged all the symbols we need.
  5226. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5227. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5228. cat <<_LT_EOF > conftest.$ac_ext
  5229. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5230. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5231. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5232. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5233. # define LT_DLSYM_CONST
  5234. #elif defined __osf__
  5235. /* This system does not cope well with relocations in const data. */
  5236. # define LT_DLSYM_CONST
  5237. #else
  5238. # define LT_DLSYM_CONST const
  5239. #endif
  5240. #ifdef __cplusplus
  5241. extern "C" {
  5242. #endif
  5243. _LT_EOF
  5244. # Now generate the symbol file.
  5245. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5246. cat <<_LT_EOF >> conftest.$ac_ext
  5247. /* The mapping between symbol names and symbols. */
  5248. LT_DLSYM_CONST struct {
  5249. const char *name;
  5250. void *address;
  5251. }
  5252. lt__PROGRAM__LTX_preloaded_symbols[] =
  5253. {
  5254. { "@PROGRAM@", (void *) 0 },
  5255. _LT_EOF
  5256. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5257. cat <<\_LT_EOF >> conftest.$ac_ext
  5258. {0, (void *) 0}
  5259. };
  5260. /* This works around a problem in FreeBSD linker */
  5261. #ifdef FREEBSD_WORKAROUND
  5262. static const void *lt_preloaded_setup() {
  5263. return lt__PROGRAM__LTX_preloaded_symbols;
  5264. }
  5265. #endif
  5266. #ifdef __cplusplus
  5267. }
  5268. #endif
  5269. _LT_EOF
  5270. # Now try linking the two files.
  5271. mv conftest.$ac_objext conftstm.$ac_objext
  5272. lt_globsym_save_LIBS=$LIBS
  5273. lt_globsym_save_CFLAGS=$CFLAGS
  5274. LIBS=conftstm.$ac_objext
  5275. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5277. (eval $ac_link) 2>&5
  5278. ac_status=$?
  5279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5280. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5281. pipe_works=yes
  5282. fi
  5283. LIBS=$lt_globsym_save_LIBS
  5284. CFLAGS=$lt_globsym_save_CFLAGS
  5285. else
  5286. echo "cannot find nm_test_func in $nlist" >&5
  5287. fi
  5288. else
  5289. echo "cannot find nm_test_var in $nlist" >&5
  5290. fi
  5291. else
  5292. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5293. fi
  5294. else
  5295. echo "$progname: failed program was:" >&5
  5296. cat conftest.$ac_ext >&5
  5297. fi
  5298. rm -rf conftest* conftst*
  5299. # Do not use the global_symbol_pipe unless it works.
  5300. if test yes = "$pipe_works"; then
  5301. break
  5302. else
  5303. lt_cv_sys_global_symbol_pipe=
  5304. fi
  5305. done
  5306. fi
  5307. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5308. lt_cv_sys_global_symbol_to_cdecl=
  5309. fi
  5310. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5312. $as_echo "failed" >&6; }
  5313. else
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5315. $as_echo "ok" >&6; }
  5316. fi
  5317. # Response file support.
  5318. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5319. nm_file_list_spec='@'
  5320. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5321. nm_file_list_spec='@'
  5322. fi
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5324. $as_echo_n "checking for sysroot... " >&6; }
  5325. # Check whether --with-sysroot was given.
  5326. if test "${with_sysroot+set}" = set; then :
  5327. withval=$with_sysroot;
  5328. else
  5329. with_sysroot=no
  5330. fi
  5331. lt_sysroot=
  5332. case $with_sysroot in #(
  5333. yes)
  5334. if test yes = "$GCC"; then
  5335. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5336. fi
  5337. ;; #(
  5338. /*)
  5339. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5340. ;; #(
  5341. no|'')
  5342. ;; #(
  5343. *)
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5345. $as_echo "$with_sysroot" >&6; }
  5346. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5347. ;;
  5348. esac
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5350. $as_echo "${lt_sysroot:-no}" >&6; }
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5352. $as_echo_n "checking for a working dd... " >&6; }
  5353. if ${ac_cv_path_lt_DD+:} false; then :
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. printf 0123456789abcdef0123456789abcdef >conftest.i
  5357. cat conftest.i conftest.i >conftest2.i
  5358. : ${lt_DD:=$DD}
  5359. if test -z "$lt_DD"; then
  5360. ac_path_lt_DD_found=false
  5361. # Loop through the user's path and test for each of PROGNAME-LIST
  5362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5363. for as_dir in $PATH
  5364. do
  5365. IFS=$as_save_IFS
  5366. test -z "$as_dir" && as_dir=.
  5367. for ac_prog in dd; do
  5368. for ac_exec_ext in '' $ac_executable_extensions; do
  5369. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5370. as_fn_executable_p "$ac_path_lt_DD" || continue
  5371. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5372. cmp -s conftest.i conftest.out \
  5373. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5374. fi
  5375. $ac_path_lt_DD_found && break 3
  5376. done
  5377. done
  5378. done
  5379. IFS=$as_save_IFS
  5380. if test -z "$ac_cv_path_lt_DD"; then
  5381. :
  5382. fi
  5383. else
  5384. ac_cv_path_lt_DD=$lt_DD
  5385. fi
  5386. rm -f conftest.i conftest2.i conftest.out
  5387. fi
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5389. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5391. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5392. if ${lt_cv_truncate_bin+:} false; then :
  5393. $as_echo_n "(cached) " >&6
  5394. else
  5395. printf 0123456789abcdef0123456789abcdef >conftest.i
  5396. cat conftest.i conftest.i >conftest2.i
  5397. lt_cv_truncate_bin=
  5398. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5399. cmp -s conftest.i conftest.out \
  5400. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5401. fi
  5402. rm -f conftest.i conftest2.i conftest.out
  5403. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5404. fi
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5406. $as_echo "$lt_cv_truncate_bin" >&6; }
  5407. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5408. func_cc_basename ()
  5409. {
  5410. for cc_temp in $*""; do
  5411. case $cc_temp in
  5412. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5413. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5414. \-*) ;;
  5415. *) break;;
  5416. esac
  5417. done
  5418. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5419. }
  5420. # Check whether --enable-libtool-lock was given.
  5421. if test "${enable_libtool_lock+set}" = set; then :
  5422. enableval=$enable_libtool_lock;
  5423. fi
  5424. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5425. # Some flags need to be propagated to the compiler or linker for good
  5426. # libtool support.
  5427. case $host in
  5428. ia64-*-hpux*)
  5429. # Find out what ABI is being produced by ac_compile, and set mode
  5430. # options accordingly.
  5431. echo 'int i;' > conftest.$ac_ext
  5432. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5433. (eval $ac_compile) 2>&5
  5434. ac_status=$?
  5435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5436. test $ac_status = 0; }; then
  5437. case `/usr/bin/file conftest.$ac_objext` in
  5438. *ELF-32*)
  5439. HPUX_IA64_MODE=32
  5440. ;;
  5441. *ELF-64*)
  5442. HPUX_IA64_MODE=64
  5443. ;;
  5444. esac
  5445. fi
  5446. rm -rf conftest*
  5447. ;;
  5448. *-*-irix6*)
  5449. # Find out what ABI is being produced by ac_compile, and set linker
  5450. # options accordingly.
  5451. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5452. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5453. (eval $ac_compile) 2>&5
  5454. ac_status=$?
  5455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5456. test $ac_status = 0; }; then
  5457. if test yes = "$lt_cv_prog_gnu_ld"; then
  5458. case `/usr/bin/file conftest.$ac_objext` in
  5459. *32-bit*)
  5460. LD="${LD-ld} -melf32bsmip"
  5461. ;;
  5462. *N32*)
  5463. LD="${LD-ld} -melf32bmipn32"
  5464. ;;
  5465. *64-bit*)
  5466. LD="${LD-ld} -melf64bmip"
  5467. ;;
  5468. esac
  5469. else
  5470. case `/usr/bin/file conftest.$ac_objext` in
  5471. *32-bit*)
  5472. LD="${LD-ld} -32"
  5473. ;;
  5474. *N32*)
  5475. LD="${LD-ld} -n32"
  5476. ;;
  5477. *64-bit*)
  5478. LD="${LD-ld} -64"
  5479. ;;
  5480. esac
  5481. fi
  5482. fi
  5483. rm -rf conftest*
  5484. ;;
  5485. mips64*-*linux*)
  5486. # Find out what ABI is being produced by ac_compile, and set linker
  5487. # options accordingly.
  5488. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5489. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5490. (eval $ac_compile) 2>&5
  5491. ac_status=$?
  5492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5493. test $ac_status = 0; }; then
  5494. emul=elf
  5495. case `/usr/bin/file conftest.$ac_objext` in
  5496. *32-bit*)
  5497. emul="${emul}32"
  5498. ;;
  5499. *64-bit*)
  5500. emul="${emul}64"
  5501. ;;
  5502. esac
  5503. case `/usr/bin/file conftest.$ac_objext` in
  5504. *MSB*)
  5505. emul="${emul}btsmip"
  5506. ;;
  5507. *LSB*)
  5508. emul="${emul}ltsmip"
  5509. ;;
  5510. esac
  5511. case `/usr/bin/file conftest.$ac_objext` in
  5512. *N32*)
  5513. emul="${emul}n32"
  5514. ;;
  5515. esac
  5516. LD="${LD-ld} -m $emul"
  5517. fi
  5518. rm -rf conftest*
  5519. ;;
  5520. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5521. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5522. # Find out what ABI is being produced by ac_compile, and set linker
  5523. # options accordingly. Note that the listed cases only cover the
  5524. # situations where additional linker options are needed (such as when
  5525. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5526. # vice versa); the common cases where no linker options are needed do
  5527. # not appear in the list.
  5528. echo 'int i;' > conftest.$ac_ext
  5529. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5530. (eval $ac_compile) 2>&5
  5531. ac_status=$?
  5532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5533. test $ac_status = 0; }; then
  5534. case `/usr/bin/file conftest.o` in
  5535. *32-bit*)
  5536. case $host in
  5537. x86_64-*kfreebsd*-gnu)
  5538. LD="${LD-ld} -m elf_i386_fbsd"
  5539. ;;
  5540. x86_64-*linux*)
  5541. case `/usr/bin/file conftest.o` in
  5542. *x86-64*)
  5543. LD="${LD-ld} -m elf32_x86_64"
  5544. ;;
  5545. *)
  5546. LD="${LD-ld} -m elf_i386"
  5547. ;;
  5548. esac
  5549. ;;
  5550. powerpc64le-*linux*)
  5551. LD="${LD-ld} -m elf32lppclinux"
  5552. ;;
  5553. powerpc64-*linux*)
  5554. LD="${LD-ld} -m elf32ppclinux"
  5555. ;;
  5556. s390x-*linux*)
  5557. LD="${LD-ld} -m elf_s390"
  5558. ;;
  5559. sparc64-*linux*)
  5560. LD="${LD-ld} -m elf32_sparc"
  5561. ;;
  5562. esac
  5563. ;;
  5564. *64-bit*)
  5565. case $host in
  5566. x86_64-*kfreebsd*-gnu)
  5567. LD="${LD-ld} -m elf_x86_64_fbsd"
  5568. ;;
  5569. x86_64-*linux*)
  5570. LD="${LD-ld} -m elf_x86_64"
  5571. ;;
  5572. powerpcle-*linux*|powerpc64le-*linux*)
  5573. LD="${LD-ld} -m elf64lppc"
  5574. ;;
  5575. powerpc-*linux*|powerpc64-*linux*)
  5576. LD="${LD-ld} -m elf64ppc"
  5577. ;;
  5578. s390*-*linux*|s390*-*tpf*)
  5579. LD="${LD-ld} -m elf64_s390"
  5580. ;;
  5581. sparc*-*linux*)
  5582. LD="${LD-ld} -m elf64_sparc"
  5583. ;;
  5584. esac
  5585. ;;
  5586. esac
  5587. fi
  5588. rm -rf conftest*
  5589. ;;
  5590. *-*-sco3.2v5*)
  5591. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5592. SAVE_CFLAGS=$CFLAGS
  5593. CFLAGS="$CFLAGS -belf"
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5595. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5596. if ${lt_cv_cc_needs_belf+:} false; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. ac_ext=c
  5600. ac_cpp='$CPP $CPPFLAGS'
  5601. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5602. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5603. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5605. /* end confdefs.h. */
  5606. int
  5607. main ()
  5608. {
  5609. ;
  5610. return 0;
  5611. }
  5612. _ACEOF
  5613. if ac_fn_c_try_link "$LINENO"; then :
  5614. lt_cv_cc_needs_belf=yes
  5615. else
  5616. lt_cv_cc_needs_belf=no
  5617. fi
  5618. rm -f core conftest.err conftest.$ac_objext \
  5619. conftest$ac_exeext conftest.$ac_ext
  5620. ac_ext=c
  5621. ac_cpp='$CPP $CPPFLAGS'
  5622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5625. fi
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5627. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5628. if test yes != "$lt_cv_cc_needs_belf"; then
  5629. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5630. CFLAGS=$SAVE_CFLAGS
  5631. fi
  5632. ;;
  5633. *-*solaris*)
  5634. # Find out what ABI is being produced by ac_compile, and set linker
  5635. # options accordingly.
  5636. echo 'int i;' > conftest.$ac_ext
  5637. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5638. (eval $ac_compile) 2>&5
  5639. ac_status=$?
  5640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5641. test $ac_status = 0; }; then
  5642. case `/usr/bin/file conftest.o` in
  5643. *64-bit*)
  5644. case $lt_cv_prog_gnu_ld in
  5645. yes*)
  5646. case $host in
  5647. i?86-*-solaris*|x86_64-*-solaris*)
  5648. LD="${LD-ld} -m elf_x86_64"
  5649. ;;
  5650. sparc*-*-solaris*)
  5651. LD="${LD-ld} -m elf64_sparc"
  5652. ;;
  5653. esac
  5654. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5655. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5656. LD=${LD-ld}_sol2
  5657. fi
  5658. ;;
  5659. *)
  5660. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5661. LD="${LD-ld} -64"
  5662. fi
  5663. ;;
  5664. esac
  5665. ;;
  5666. esac
  5667. fi
  5668. rm -rf conftest*
  5669. ;;
  5670. esac
  5671. need_locks=$enable_libtool_lock
  5672. if test -n "$ac_tool_prefix"; then
  5673. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5674. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5676. $as_echo_n "checking for $ac_word... " >&6; }
  5677. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5678. $as_echo_n "(cached) " >&6
  5679. else
  5680. if test -n "$MANIFEST_TOOL"; then
  5681. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5682. else
  5683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5684. for as_dir in $PATH
  5685. do
  5686. IFS=$as_save_IFS
  5687. test -z "$as_dir" && as_dir=.
  5688. for ac_exec_ext in '' $ac_executable_extensions; do
  5689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5690. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5692. break 2
  5693. fi
  5694. done
  5695. done
  5696. IFS=$as_save_IFS
  5697. fi
  5698. fi
  5699. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5700. if test -n "$MANIFEST_TOOL"; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5702. $as_echo "$MANIFEST_TOOL" >&6; }
  5703. else
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5705. $as_echo "no" >&6; }
  5706. fi
  5707. fi
  5708. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5709. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5710. # Extract the first word of "mt", so it can be a program name with args.
  5711. set dummy mt; ac_word=$2
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5713. $as_echo_n "checking for $ac_word... " >&6; }
  5714. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5718. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5719. else
  5720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5721. for as_dir in $PATH
  5722. do
  5723. IFS=$as_save_IFS
  5724. test -z "$as_dir" && as_dir=.
  5725. for ac_exec_ext in '' $ac_executable_extensions; do
  5726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5727. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5729. break 2
  5730. fi
  5731. done
  5732. done
  5733. IFS=$as_save_IFS
  5734. fi
  5735. fi
  5736. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5737. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5739. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5740. else
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5742. $as_echo "no" >&6; }
  5743. fi
  5744. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5745. MANIFEST_TOOL=":"
  5746. else
  5747. case $cross_compiling:$ac_tool_warned in
  5748. yes:)
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5750. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5751. ac_tool_warned=yes ;;
  5752. esac
  5753. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5754. fi
  5755. else
  5756. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5757. fi
  5758. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5760. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5761. if ${lt_cv_path_mainfest_tool+:} false; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. lt_cv_path_mainfest_tool=no
  5765. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5766. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5767. cat conftest.err >&5
  5768. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5769. lt_cv_path_mainfest_tool=yes
  5770. fi
  5771. rm -f conftest*
  5772. fi
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5774. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5775. if test yes != "$lt_cv_path_mainfest_tool"; then
  5776. MANIFEST_TOOL=:
  5777. fi
  5778. case $host_os in
  5779. rhapsody* | darwin*)
  5780. if test -n "$ac_tool_prefix"; then
  5781. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5782. set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
  5786. $as_echo_n "(cached) " >&6
  5787. else
  5788. if test -n "$DSYMUTIL"; then
  5789. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
  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. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5808. if test -n "$DSYMUTIL"; then
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5810. $as_echo "$DSYMUTIL" >&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_DSYMUTIL"; then
  5817. ac_ct_DSYMUTIL=$DSYMUTIL
  5818. # Extract the first word of "dsymutil", so it can be a program name with args.
  5819. set dummy dsymutil; 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_DSYMUTIL+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. if test -n "$ac_ct_DSYMUTIL"; then
  5826. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil"
  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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5845. if test -n "$ac_ct_DSYMUTIL"; then
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5847. $as_echo "$ac_ct_DSYMUTIL" >&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_DSYMUTIL" = x; then
  5853. DSYMUTIL=":"
  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. DSYMUTIL=$ac_ct_DSYMUTIL
  5862. fi
  5863. else
  5864. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5865. fi
  5866. if test -n "$ac_tool_prefix"; then
  5867. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5868. set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then :
  5872. $as_echo_n "(cached) " >&6
  5873. else
  5874. if test -n "$NMEDIT"; then
  5875. ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
  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. NMEDIT=$ac_cv_prog_NMEDIT
  5894. if test -n "$NMEDIT"; then
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5896. $as_echo "$NMEDIT" >&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_NMEDIT"; then
  5903. ac_ct_NMEDIT=$NMEDIT
  5904. # Extract the first word of "nmedit", so it can be a program name with args.
  5905. set dummy nmedit; 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_NMEDIT+:} false; then :
  5909. $as_echo_n "(cached) " >&6
  5910. else
  5911. if test -n "$ac_ct_NMEDIT"; then
  5912. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_NMEDIT="nmedit"
  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_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5931. if test -n "$ac_ct_NMEDIT"; then
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5933. $as_echo "$ac_ct_NMEDIT" >&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_NMEDIT" = x; then
  5939. NMEDIT=":"
  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. NMEDIT=$ac_ct_NMEDIT
  5948. fi
  5949. else
  5950. NMEDIT="$ac_cv_prog_NMEDIT"
  5951. fi
  5952. if test -n "$ac_tool_prefix"; then
  5953. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5954. set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. if test -n "$LIPO"; then
  5961. ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
  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. LIPO=$ac_cv_prog_LIPO
  5980. if test -n "$LIPO"; then
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5982. $as_echo "$LIPO" >&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_LIPO"; then
  5989. ac_ct_LIPO=$LIPO
  5990. # Extract the first word of "lipo", so it can be a program name with args.
  5991. set dummy lipo; 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_LIPO+:} false; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. if test -n "$ac_ct_LIPO"; then
  5998. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_LIPO="lipo"
  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_LIPO=$ac_cv_prog_ac_ct_LIPO
  6017. if test -n "$ac_ct_LIPO"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6019. $as_echo "$ac_ct_LIPO" >&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_LIPO" = x; then
  6025. LIPO=":"
  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. LIPO=$ac_ct_LIPO
  6034. fi
  6035. else
  6036. LIPO="$ac_cv_prog_LIPO"
  6037. fi
  6038. if test -n "$ac_tool_prefix"; then
  6039. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6040. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6042. $as_echo_n "checking for $ac_word... " >&6; }
  6043. if ${ac_cv_prog_OTOOL+:} false; then :
  6044. $as_echo_n "(cached) " >&6
  6045. else
  6046. if test -n "$OTOOL"; then
  6047. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6048. else
  6049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6050. for as_dir in $PATH
  6051. do
  6052. IFS=$as_save_IFS
  6053. test -z "$as_dir" && as_dir=.
  6054. for ac_exec_ext in '' $ac_executable_extensions; do
  6055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6056. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6058. break 2
  6059. fi
  6060. done
  6061. done
  6062. IFS=$as_save_IFS
  6063. fi
  6064. fi
  6065. OTOOL=$ac_cv_prog_OTOOL
  6066. if test -n "$OTOOL"; then
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6068. $as_echo "$OTOOL" >&6; }
  6069. else
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6071. $as_echo "no" >&6; }
  6072. fi
  6073. fi
  6074. if test -z "$ac_cv_prog_OTOOL"; then
  6075. ac_ct_OTOOL=$OTOOL
  6076. # Extract the first word of "otool", so it can be a program name with args.
  6077. set dummy otool; ac_word=$2
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6079. $as_echo_n "checking for $ac_word... " >&6; }
  6080. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. if test -n "$ac_ct_OTOOL"; then
  6084. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6085. else
  6086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6087. for as_dir in $PATH
  6088. do
  6089. IFS=$as_save_IFS
  6090. test -z "$as_dir" && as_dir=.
  6091. for ac_exec_ext in '' $ac_executable_extensions; do
  6092. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6093. ac_cv_prog_ac_ct_OTOOL="otool"
  6094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6095. break 2
  6096. fi
  6097. done
  6098. done
  6099. IFS=$as_save_IFS
  6100. fi
  6101. fi
  6102. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6103. if test -n "$ac_ct_OTOOL"; then
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6105. $as_echo "$ac_ct_OTOOL" >&6; }
  6106. else
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6108. $as_echo "no" >&6; }
  6109. fi
  6110. if test "x$ac_ct_OTOOL" = x; then
  6111. OTOOL=":"
  6112. else
  6113. case $cross_compiling:$ac_tool_warned in
  6114. yes:)
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6116. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6117. ac_tool_warned=yes ;;
  6118. esac
  6119. OTOOL=$ac_ct_OTOOL
  6120. fi
  6121. else
  6122. OTOOL="$ac_cv_prog_OTOOL"
  6123. fi
  6124. if test -n "$ac_tool_prefix"; then
  6125. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6126. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6128. $as_echo_n "checking for $ac_word... " >&6; }
  6129. if ${ac_cv_prog_OTOOL64+:} false; then :
  6130. $as_echo_n "(cached) " >&6
  6131. else
  6132. if test -n "$OTOOL64"; then
  6133. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6134. else
  6135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6136. for as_dir in $PATH
  6137. do
  6138. IFS=$as_save_IFS
  6139. test -z "$as_dir" && as_dir=.
  6140. for ac_exec_ext in '' $ac_executable_extensions; do
  6141. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6142. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6144. break 2
  6145. fi
  6146. done
  6147. done
  6148. IFS=$as_save_IFS
  6149. fi
  6150. fi
  6151. OTOOL64=$ac_cv_prog_OTOOL64
  6152. if test -n "$OTOOL64"; then
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6154. $as_echo "$OTOOL64" >&6; }
  6155. else
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6157. $as_echo "no" >&6; }
  6158. fi
  6159. fi
  6160. if test -z "$ac_cv_prog_OTOOL64"; then
  6161. ac_ct_OTOOL64=$OTOOL64
  6162. # Extract the first word of "otool64", so it can be a program name with args.
  6163. set dummy otool64; ac_word=$2
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6165. $as_echo_n "checking for $ac_word... " >&6; }
  6166. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6167. $as_echo_n "(cached) " >&6
  6168. else
  6169. if test -n "$ac_ct_OTOOL64"; then
  6170. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6171. else
  6172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6173. for as_dir in $PATH
  6174. do
  6175. IFS=$as_save_IFS
  6176. test -z "$as_dir" && as_dir=.
  6177. for ac_exec_ext in '' $ac_executable_extensions; do
  6178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6179. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6181. break 2
  6182. fi
  6183. done
  6184. done
  6185. IFS=$as_save_IFS
  6186. fi
  6187. fi
  6188. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6189. if test -n "$ac_ct_OTOOL64"; then
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6191. $as_echo "$ac_ct_OTOOL64" >&6; }
  6192. else
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6194. $as_echo "no" >&6; }
  6195. fi
  6196. if test "x$ac_ct_OTOOL64" = x; then
  6197. OTOOL64=":"
  6198. else
  6199. case $cross_compiling:$ac_tool_warned in
  6200. yes:)
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6202. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6203. ac_tool_warned=yes ;;
  6204. esac
  6205. OTOOL64=$ac_ct_OTOOL64
  6206. fi
  6207. else
  6208. OTOOL64="$ac_cv_prog_OTOOL64"
  6209. fi
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6211. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6212. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. lt_cv_apple_cc_single_mod=no
  6216. if test -z "$LT_MULTI_MODULE"; then
  6217. # By default we will add the -single_module flag. You can override
  6218. # by either setting the environment variable LT_MULTI_MODULE
  6219. # non-empty at configure time, or by adding -multi_module to the
  6220. # link flags.
  6221. rm -rf libconftest.dylib*
  6222. echo "int foo(void){return 1;}" > conftest.c
  6223. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6224. -dynamiclib -Wl,-single_module conftest.c" >&5
  6225. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6226. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6227. _lt_result=$?
  6228. # If there is a non-empty error log, and "single_module"
  6229. # appears in it, assume the flag caused a linker warning
  6230. if test -s conftest.err && $GREP single_module conftest.err; then
  6231. cat conftest.err >&5
  6232. # Otherwise, if the output was created with a 0 exit code from
  6233. # the compiler, it worked.
  6234. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6235. lt_cv_apple_cc_single_mod=yes
  6236. else
  6237. cat conftest.err >&5
  6238. fi
  6239. rm -rf libconftest.dylib*
  6240. rm -f conftest.*
  6241. fi
  6242. fi
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6244. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6246. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6247. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6248. $as_echo_n "(cached) " >&6
  6249. else
  6250. lt_cv_ld_exported_symbols_list=no
  6251. save_LDFLAGS=$LDFLAGS
  6252. echo "_main" > conftest.sym
  6253. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6255. /* end confdefs.h. */
  6256. int
  6257. main ()
  6258. {
  6259. ;
  6260. return 0;
  6261. }
  6262. _ACEOF
  6263. if ac_fn_c_try_link "$LINENO"; then :
  6264. lt_cv_ld_exported_symbols_list=yes
  6265. else
  6266. lt_cv_ld_exported_symbols_list=no
  6267. fi
  6268. rm -f core conftest.err conftest.$ac_objext \
  6269. conftest$ac_exeext conftest.$ac_ext
  6270. LDFLAGS=$save_LDFLAGS
  6271. fi
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6273. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6275. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6276. if ${lt_cv_ld_force_load+:} false; then :
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. lt_cv_ld_force_load=no
  6280. cat > conftest.c << _LT_EOF
  6281. int forced_loaded() { return 2;}
  6282. _LT_EOF
  6283. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6284. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6285. echo "$AR cru libconftest.a conftest.o" >&5
  6286. $AR cru libconftest.a conftest.o 2>&5
  6287. echo "$RANLIB libconftest.a" >&5
  6288. $RANLIB libconftest.a 2>&5
  6289. cat > conftest.c << _LT_EOF
  6290. int main() { return 0;}
  6291. _LT_EOF
  6292. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6293. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6294. _lt_result=$?
  6295. if test -s conftest.err && $GREP force_load conftest.err; then
  6296. cat conftest.err >&5
  6297. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6298. lt_cv_ld_force_load=yes
  6299. else
  6300. cat conftest.err >&5
  6301. fi
  6302. rm -f conftest.err libconftest.a conftest conftest.c
  6303. rm -rf conftest.dSYM
  6304. fi
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6306. $as_echo "$lt_cv_ld_force_load" >&6; }
  6307. case $host_os in
  6308. rhapsody* | darwin1.[012])
  6309. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6310. darwin1.*)
  6311. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6312. darwin*)
  6313. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6314. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6315. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6316. *)
  6317. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6318. esac
  6319. ;;
  6320. esac
  6321. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6322. _lt_dar_single_mod='$single_module'
  6323. fi
  6324. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6325. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6326. else
  6327. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6328. fi
  6329. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6330. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6331. else
  6332. _lt_dsymutil=
  6333. fi
  6334. ;;
  6335. esac
  6336. # func_munge_path_list VARIABLE PATH
  6337. # -----------------------------------
  6338. # VARIABLE is name of variable containing _space_ separated list of
  6339. # directories to be munged by the contents of PATH, which is string
  6340. # having a format:
  6341. # "DIR[:DIR]:"
  6342. # string "DIR[ DIR]" will be prepended to VARIABLE
  6343. # ":DIR[:DIR]"
  6344. # string "DIR[ DIR]" will be appended to VARIABLE
  6345. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6346. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6347. # "DIRA[ DIRA]" will be appended to VARIABLE
  6348. # "DIR[:DIR]"
  6349. # VARIABLE will be replaced by "DIR[ DIR]"
  6350. func_munge_path_list ()
  6351. {
  6352. case x$2 in
  6353. x)
  6354. ;;
  6355. *:)
  6356. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6357. ;;
  6358. x:*)
  6359. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6360. ;;
  6361. *::*)
  6362. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6363. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6364. ;;
  6365. *)
  6366. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6367. ;;
  6368. esac
  6369. }
  6370. ac_ext=c
  6371. ac_cpp='$CPP $CPPFLAGS'
  6372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6376. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6377. # On Suns, sometimes $CPP names a directory.
  6378. if test -n "$CPP" && test -d "$CPP"; then
  6379. CPP=
  6380. fi
  6381. if test -z "$CPP"; then
  6382. if ${ac_cv_prog_CPP+:} false; then :
  6383. $as_echo_n "(cached) " >&6
  6384. else
  6385. # Double quotes because CPP needs to be expanded
  6386. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6387. do
  6388. ac_preproc_ok=false
  6389. for ac_c_preproc_warn_flag in '' yes
  6390. do
  6391. # Use a header file that comes with gcc, so configuring glibc
  6392. # with a fresh cross-compiler works.
  6393. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6394. # <limits.h> exists even on freestanding compilers.
  6395. # On the NeXT, cc -E runs the code through the compiler's parser,
  6396. # not just through cpp. "Syntax error" is here to catch this case.
  6397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6398. /* end confdefs.h. */
  6399. #ifdef __STDC__
  6400. # include <limits.h>
  6401. #else
  6402. # include <assert.h>
  6403. #endif
  6404. Syntax error
  6405. _ACEOF
  6406. if ac_fn_c_try_cpp "$LINENO"; then :
  6407. else
  6408. # Broken: fails on valid input.
  6409. continue
  6410. fi
  6411. rm -f conftest.err conftest.i conftest.$ac_ext
  6412. # OK, works on sane cases. Now check whether nonexistent headers
  6413. # can be detected and how.
  6414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6415. /* end confdefs.h. */
  6416. #include <ac_nonexistent.h>
  6417. _ACEOF
  6418. if ac_fn_c_try_cpp "$LINENO"; then :
  6419. # Broken: success on invalid input.
  6420. continue
  6421. else
  6422. # Passes both tests.
  6423. ac_preproc_ok=:
  6424. break
  6425. fi
  6426. rm -f conftest.err conftest.i conftest.$ac_ext
  6427. done
  6428. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6429. rm -f conftest.i conftest.err conftest.$ac_ext
  6430. if $ac_preproc_ok; then :
  6431. break
  6432. fi
  6433. done
  6434. ac_cv_prog_CPP=$CPP
  6435. fi
  6436. CPP=$ac_cv_prog_CPP
  6437. else
  6438. ac_cv_prog_CPP=$CPP
  6439. fi
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6441. $as_echo "$CPP" >&6; }
  6442. ac_preproc_ok=false
  6443. for ac_c_preproc_warn_flag in '' yes
  6444. do
  6445. # Use a header file that comes with gcc, so configuring glibc
  6446. # with a fresh cross-compiler works.
  6447. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6448. # <limits.h> exists even on freestanding compilers.
  6449. # On the NeXT, cc -E runs the code through the compiler's parser,
  6450. # not just through cpp. "Syntax error" is here to catch this case.
  6451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6452. /* end confdefs.h. */
  6453. #ifdef __STDC__
  6454. # include <limits.h>
  6455. #else
  6456. # include <assert.h>
  6457. #endif
  6458. Syntax error
  6459. _ACEOF
  6460. if ac_fn_c_try_cpp "$LINENO"; then :
  6461. else
  6462. # Broken: fails on valid input.
  6463. continue
  6464. fi
  6465. rm -f conftest.err conftest.i conftest.$ac_ext
  6466. # OK, works on sane cases. Now check whether nonexistent headers
  6467. # can be detected and how.
  6468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6469. /* end confdefs.h. */
  6470. #include <ac_nonexistent.h>
  6471. _ACEOF
  6472. if ac_fn_c_try_cpp "$LINENO"; then :
  6473. # Broken: success on invalid input.
  6474. continue
  6475. else
  6476. # Passes both tests.
  6477. ac_preproc_ok=:
  6478. break
  6479. fi
  6480. rm -f conftest.err conftest.i conftest.$ac_ext
  6481. done
  6482. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6483. rm -f conftest.i conftest.err conftest.$ac_ext
  6484. if $ac_preproc_ok; then :
  6485. else
  6486. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6488. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6489. See \`config.log' for more details" "$LINENO" 5; }
  6490. fi
  6491. ac_ext=c
  6492. ac_cpp='$CPP $CPPFLAGS'
  6493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6497. $as_echo_n "checking for ANSI C header files... " >&6; }
  6498. if ${ac_cv_header_stdc+:} false; then :
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6502. /* end confdefs.h. */
  6503. #include <stdlib.h>
  6504. #include <stdarg.h>
  6505. #include <string.h>
  6506. #include <float.h>
  6507. int
  6508. main ()
  6509. {
  6510. ;
  6511. return 0;
  6512. }
  6513. _ACEOF
  6514. if ac_fn_c_try_compile "$LINENO"; then :
  6515. ac_cv_header_stdc=yes
  6516. else
  6517. ac_cv_header_stdc=no
  6518. fi
  6519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6520. if test $ac_cv_header_stdc = yes; then
  6521. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6523. /* end confdefs.h. */
  6524. #include <string.h>
  6525. _ACEOF
  6526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6527. $EGREP "memchr" >/dev/null 2>&1; then :
  6528. else
  6529. ac_cv_header_stdc=no
  6530. fi
  6531. rm -f conftest*
  6532. fi
  6533. if test $ac_cv_header_stdc = yes; then
  6534. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6536. /* end confdefs.h. */
  6537. #include <stdlib.h>
  6538. _ACEOF
  6539. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6540. $EGREP "free" >/dev/null 2>&1; then :
  6541. else
  6542. ac_cv_header_stdc=no
  6543. fi
  6544. rm -f conftest*
  6545. fi
  6546. if test $ac_cv_header_stdc = yes; then
  6547. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6548. if test "$cross_compiling" = yes; then :
  6549. :
  6550. else
  6551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6552. /* end confdefs.h. */
  6553. #include <ctype.h>
  6554. #include <stdlib.h>
  6555. #if ((' ' & 0x0FF) == 0x020)
  6556. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6557. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6558. #else
  6559. # define ISLOWER(c) \
  6560. (('a' <= (c) && (c) <= 'i') \
  6561. || ('j' <= (c) && (c) <= 'r') \
  6562. || ('s' <= (c) && (c) <= 'z'))
  6563. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6564. #endif
  6565. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6566. int
  6567. main ()
  6568. {
  6569. int i;
  6570. for (i = 0; i < 256; i++)
  6571. if (XOR (islower (i), ISLOWER (i))
  6572. || toupper (i) != TOUPPER (i))
  6573. return 2;
  6574. return 0;
  6575. }
  6576. _ACEOF
  6577. if ac_fn_c_try_run "$LINENO"; then :
  6578. else
  6579. ac_cv_header_stdc=no
  6580. fi
  6581. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6582. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6583. fi
  6584. fi
  6585. fi
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6587. $as_echo "$ac_cv_header_stdc" >&6; }
  6588. if test $ac_cv_header_stdc = yes; then
  6589. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6590. fi
  6591. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6592. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6593. inttypes.h stdint.h unistd.h
  6594. do :
  6595. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6596. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6597. "
  6598. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6599. cat >>confdefs.h <<_ACEOF
  6600. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6601. _ACEOF
  6602. fi
  6603. done
  6604. for ac_header in dlfcn.h
  6605. do :
  6606. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6607. "
  6608. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6609. cat >>confdefs.h <<_ACEOF
  6610. #define HAVE_DLFCN_H 1
  6611. _ACEOF
  6612. fi
  6613. done
  6614. # Set options
  6615. enable_win32_dll=yes
  6616. case $host in
  6617. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6618. if test -n "$ac_tool_prefix"; then
  6619. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6620. set dummy ${ac_tool_prefix}as; ac_word=$2
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6622. $as_echo_n "checking for $ac_word... " >&6; }
  6623. if ${ac_cv_prog_AS+:} false; then :
  6624. $as_echo_n "(cached) " >&6
  6625. else
  6626. if test -n "$AS"; then
  6627. ac_cv_prog_AS="$AS" # Let the user override the test.
  6628. else
  6629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6630. for as_dir in $PATH
  6631. do
  6632. IFS=$as_save_IFS
  6633. test -z "$as_dir" && as_dir=.
  6634. for ac_exec_ext in '' $ac_executable_extensions; do
  6635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6636. ac_cv_prog_AS="${ac_tool_prefix}as"
  6637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6638. break 2
  6639. fi
  6640. done
  6641. done
  6642. IFS=$as_save_IFS
  6643. fi
  6644. fi
  6645. AS=$ac_cv_prog_AS
  6646. if test -n "$AS"; then
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6648. $as_echo "$AS" >&6; }
  6649. else
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6651. $as_echo "no" >&6; }
  6652. fi
  6653. fi
  6654. if test -z "$ac_cv_prog_AS"; then
  6655. ac_ct_AS=$AS
  6656. # Extract the first word of "as", so it can be a program name with args.
  6657. set dummy as; ac_word=$2
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6659. $as_echo_n "checking for $ac_word... " >&6; }
  6660. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6661. $as_echo_n "(cached) " >&6
  6662. else
  6663. if test -n "$ac_ct_AS"; then
  6664. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6665. else
  6666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6667. for as_dir in $PATH
  6668. do
  6669. IFS=$as_save_IFS
  6670. test -z "$as_dir" && as_dir=.
  6671. for ac_exec_ext in '' $ac_executable_extensions; do
  6672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6673. ac_cv_prog_ac_ct_AS="as"
  6674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6675. break 2
  6676. fi
  6677. done
  6678. done
  6679. IFS=$as_save_IFS
  6680. fi
  6681. fi
  6682. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6683. if test -n "$ac_ct_AS"; then
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6685. $as_echo "$ac_ct_AS" >&6; }
  6686. else
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6688. $as_echo "no" >&6; }
  6689. fi
  6690. if test "x$ac_ct_AS" = x; then
  6691. AS="false"
  6692. else
  6693. case $cross_compiling:$ac_tool_warned in
  6694. yes:)
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6696. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6697. ac_tool_warned=yes ;;
  6698. esac
  6699. AS=$ac_ct_AS
  6700. fi
  6701. else
  6702. AS="$ac_cv_prog_AS"
  6703. fi
  6704. if test -n "$ac_tool_prefix"; then
  6705. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6706. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6708. $as_echo_n "checking for $ac_word... " >&6; }
  6709. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6710. $as_echo_n "(cached) " >&6
  6711. else
  6712. if test -n "$DLLTOOL"; then
  6713. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6714. else
  6715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6716. for as_dir in $PATH
  6717. do
  6718. IFS=$as_save_IFS
  6719. test -z "$as_dir" && as_dir=.
  6720. for ac_exec_ext in '' $ac_executable_extensions; do
  6721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6722. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6724. break 2
  6725. fi
  6726. done
  6727. done
  6728. IFS=$as_save_IFS
  6729. fi
  6730. fi
  6731. DLLTOOL=$ac_cv_prog_DLLTOOL
  6732. if test -n "$DLLTOOL"; then
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6734. $as_echo "$DLLTOOL" >&6; }
  6735. else
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6737. $as_echo "no" >&6; }
  6738. fi
  6739. fi
  6740. if test -z "$ac_cv_prog_DLLTOOL"; then
  6741. ac_ct_DLLTOOL=$DLLTOOL
  6742. # Extract the first word of "dlltool", so it can be a program name with args.
  6743. set dummy dlltool; ac_word=$2
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6745. $as_echo_n "checking for $ac_word... " >&6; }
  6746. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6747. $as_echo_n "(cached) " >&6
  6748. else
  6749. if test -n "$ac_ct_DLLTOOL"; then
  6750. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6751. else
  6752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6753. for as_dir in $PATH
  6754. do
  6755. IFS=$as_save_IFS
  6756. test -z "$as_dir" && as_dir=.
  6757. for ac_exec_ext in '' $ac_executable_extensions; do
  6758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6759. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6761. break 2
  6762. fi
  6763. done
  6764. done
  6765. IFS=$as_save_IFS
  6766. fi
  6767. fi
  6768. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6769. if test -n "$ac_ct_DLLTOOL"; then
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6771. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6772. else
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6774. $as_echo "no" >&6; }
  6775. fi
  6776. if test "x$ac_ct_DLLTOOL" = x; then
  6777. DLLTOOL="false"
  6778. else
  6779. case $cross_compiling:$ac_tool_warned in
  6780. yes:)
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6782. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6783. ac_tool_warned=yes ;;
  6784. esac
  6785. DLLTOOL=$ac_ct_DLLTOOL
  6786. fi
  6787. else
  6788. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6789. fi
  6790. if test -n "$ac_tool_prefix"; then
  6791. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6792. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6794. $as_echo_n "checking for $ac_word... " >&6; }
  6795. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6796. $as_echo_n "(cached) " >&6
  6797. else
  6798. if test -n "$OBJDUMP"; then
  6799. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6800. else
  6801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6802. for as_dir in $PATH
  6803. do
  6804. IFS=$as_save_IFS
  6805. test -z "$as_dir" && as_dir=.
  6806. for ac_exec_ext in '' $ac_executable_extensions; do
  6807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6808. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6810. break 2
  6811. fi
  6812. done
  6813. done
  6814. IFS=$as_save_IFS
  6815. fi
  6816. fi
  6817. OBJDUMP=$ac_cv_prog_OBJDUMP
  6818. if test -n "$OBJDUMP"; then
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6820. $as_echo "$OBJDUMP" >&6; }
  6821. else
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6823. $as_echo "no" >&6; }
  6824. fi
  6825. fi
  6826. if test -z "$ac_cv_prog_OBJDUMP"; then
  6827. ac_ct_OBJDUMP=$OBJDUMP
  6828. # Extract the first word of "objdump", so it can be a program name with args.
  6829. set dummy objdump; ac_word=$2
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6831. $as_echo_n "checking for $ac_word... " >&6; }
  6832. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6833. $as_echo_n "(cached) " >&6
  6834. else
  6835. if test -n "$ac_ct_OBJDUMP"; then
  6836. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6837. else
  6838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6839. for as_dir in $PATH
  6840. do
  6841. IFS=$as_save_IFS
  6842. test -z "$as_dir" && as_dir=.
  6843. for ac_exec_ext in '' $ac_executable_extensions; do
  6844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6845. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6847. break 2
  6848. fi
  6849. done
  6850. done
  6851. IFS=$as_save_IFS
  6852. fi
  6853. fi
  6854. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6855. if test -n "$ac_ct_OBJDUMP"; then
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6857. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6858. else
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6860. $as_echo "no" >&6; }
  6861. fi
  6862. if test "x$ac_ct_OBJDUMP" = x; then
  6863. OBJDUMP="false"
  6864. else
  6865. case $cross_compiling:$ac_tool_warned in
  6866. yes:)
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6869. ac_tool_warned=yes ;;
  6870. esac
  6871. OBJDUMP=$ac_ct_OBJDUMP
  6872. fi
  6873. else
  6874. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6875. fi
  6876. ;;
  6877. esac
  6878. test -z "$AS" && AS=as
  6879. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6880. test -z "$OBJDUMP" && OBJDUMP=objdump
  6881. enable_dlopen=no
  6882. # Check whether --enable-shared was given.
  6883. if test "${enable_shared+set}" = set; then :
  6884. enableval=$enable_shared; p=${PACKAGE-default}
  6885. case $enableval in
  6886. yes) enable_shared=yes ;;
  6887. no) enable_shared=no ;;
  6888. *)
  6889. enable_shared=no
  6890. # Look at the argument we got. We use all the common list separators.
  6891. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6892. for pkg in $enableval; do
  6893. IFS=$lt_save_ifs
  6894. if test "X$pkg" = "X$p"; then
  6895. enable_shared=yes
  6896. fi
  6897. done
  6898. IFS=$lt_save_ifs
  6899. ;;
  6900. esac
  6901. else
  6902. enable_shared=yes
  6903. fi
  6904. # Check whether --enable-static was given.
  6905. if test "${enable_static+set}" = set; then :
  6906. enableval=$enable_static; p=${PACKAGE-default}
  6907. case $enableval in
  6908. yes) enable_static=yes ;;
  6909. no) enable_static=no ;;
  6910. *)
  6911. enable_static=no
  6912. # Look at the argument we got. We use all the common list separators.
  6913. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6914. for pkg in $enableval; do
  6915. IFS=$lt_save_ifs
  6916. if test "X$pkg" = "X$p"; then
  6917. enable_static=yes
  6918. fi
  6919. done
  6920. IFS=$lt_save_ifs
  6921. ;;
  6922. esac
  6923. else
  6924. enable_static=yes
  6925. fi
  6926. # Check whether --with-pic was given.
  6927. if test "${with_pic+set}" = set; then :
  6928. withval=$with_pic; lt_p=${PACKAGE-default}
  6929. case $withval in
  6930. yes|no) pic_mode=$withval ;;
  6931. *)
  6932. pic_mode=default
  6933. # Look at the argument we got. We use all the common list separators.
  6934. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6935. for lt_pkg in $withval; do
  6936. IFS=$lt_save_ifs
  6937. if test "X$lt_pkg" = "X$lt_p"; then
  6938. pic_mode=yes
  6939. fi
  6940. done
  6941. IFS=$lt_save_ifs
  6942. ;;
  6943. esac
  6944. else
  6945. pic_mode=default
  6946. fi
  6947. # Check whether --enable-fast-install was given.
  6948. if test "${enable_fast_install+set}" = set; then :
  6949. enableval=$enable_fast_install; p=${PACKAGE-default}
  6950. case $enableval in
  6951. yes) enable_fast_install=yes ;;
  6952. no) enable_fast_install=no ;;
  6953. *)
  6954. enable_fast_install=no
  6955. # Look at the argument we got. We use all the common list separators.
  6956. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6957. for pkg in $enableval; do
  6958. IFS=$lt_save_ifs
  6959. if test "X$pkg" = "X$p"; then
  6960. enable_fast_install=yes
  6961. fi
  6962. done
  6963. IFS=$lt_save_ifs
  6964. ;;
  6965. esac
  6966. else
  6967. enable_fast_install=yes
  6968. fi
  6969. shared_archive_member_spec=
  6970. case $host,$enable_shared in
  6971. power*-*-aix[5-9]*,yes)
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6973. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6974. # Check whether --with-aix-soname was given.
  6975. if test "${with_aix_soname+set}" = set; then :
  6976. withval=$with_aix_soname; case $withval in
  6977. aix|svr4|both)
  6978. ;;
  6979. *)
  6980. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6981. ;;
  6982. esac
  6983. lt_cv_with_aix_soname=$with_aix_soname
  6984. else
  6985. if ${lt_cv_with_aix_soname+:} false; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. lt_cv_with_aix_soname=aix
  6989. fi
  6990. with_aix_soname=$lt_cv_with_aix_soname
  6991. fi
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6993. $as_echo "$with_aix_soname" >&6; }
  6994. if test aix != "$with_aix_soname"; then
  6995. # For the AIX way of multilib, we name the shared archive member
  6996. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6997. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6998. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6999. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7000. if test 64 = "${OBJECT_MODE-32}"; then
  7001. shared_archive_member_spec=shr_64
  7002. else
  7003. shared_archive_member_spec=shr
  7004. fi
  7005. fi
  7006. ;;
  7007. *)
  7008. with_aix_soname=aix
  7009. ;;
  7010. esac
  7011. # This can be used to rebuild libtool when needed
  7012. LIBTOOL_DEPS=$ltmain
  7013. # Always use our own libtool.
  7014. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7015. test -z "$LN_S" && LN_S="ln -s"
  7016. if test -n "${ZSH_VERSION+set}"; then
  7017. setopt NO_GLOB_SUBST
  7018. fi
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7020. $as_echo_n "checking for objdir... " >&6; }
  7021. if ${lt_cv_objdir+:} false; then :
  7022. $as_echo_n "(cached) " >&6
  7023. else
  7024. rm -f .libs 2>/dev/null
  7025. mkdir .libs 2>/dev/null
  7026. if test -d .libs; then
  7027. lt_cv_objdir=.libs
  7028. else
  7029. # MS-DOS does not allow filenames that begin with a dot.
  7030. lt_cv_objdir=_libs
  7031. fi
  7032. rmdir .libs 2>/dev/null
  7033. fi
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7035. $as_echo "$lt_cv_objdir" >&6; }
  7036. objdir=$lt_cv_objdir
  7037. cat >>confdefs.h <<_ACEOF
  7038. #define LT_OBJDIR "$lt_cv_objdir/"
  7039. _ACEOF
  7040. case $host_os in
  7041. aix3*)
  7042. # AIX sometimes has problems with the GCC collect2 program. For some
  7043. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7044. # vanish in a puff of smoke.
  7045. if test set != "${COLLECT_NAMES+set}"; then
  7046. COLLECT_NAMES=
  7047. export COLLECT_NAMES
  7048. fi
  7049. ;;
  7050. esac
  7051. # Global variables:
  7052. ofile=libtool
  7053. can_build_shared=yes
  7054. # All known linkers require a '.a' archive for static linking (except MSVC,
  7055. # which needs '.lib').
  7056. libext=a
  7057. with_gnu_ld=$lt_cv_prog_gnu_ld
  7058. old_CC=$CC
  7059. old_CFLAGS=$CFLAGS
  7060. # Set sane defaults for various variables
  7061. test -z "$CC" && CC=cc
  7062. test -z "$LTCC" && LTCC=$CC
  7063. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7064. test -z "$LD" && LD=ld
  7065. test -z "$ac_objext" && ac_objext=o
  7066. func_cc_basename $compiler
  7067. cc_basename=$func_cc_basename_result
  7068. # Only perform the check for file, if the check method requires it
  7069. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7070. case $deplibs_check_method in
  7071. file_magic*)
  7072. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7074. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7075. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7076. $as_echo_n "(cached) " >&6
  7077. else
  7078. case $MAGIC_CMD in
  7079. [\\/*] | ?:[\\/]*)
  7080. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7081. ;;
  7082. *)
  7083. lt_save_MAGIC_CMD=$MAGIC_CMD
  7084. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7085. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7086. for ac_dir in $ac_dummy; do
  7087. IFS=$lt_save_ifs
  7088. test -z "$ac_dir" && ac_dir=.
  7089. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7090. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7091. if test -n "$file_magic_test_file"; then
  7092. case $deplibs_check_method in
  7093. "file_magic "*)
  7094. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7095. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7096. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7097. $EGREP "$file_magic_regex" > /dev/null; then
  7098. :
  7099. else
  7100. cat <<_LT_EOF 1>&2
  7101. *** Warning: the command libtool uses to detect shared libraries,
  7102. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7103. *** The result is that libtool may fail to recognize shared libraries
  7104. *** as such. This will affect the creation of libtool libraries that
  7105. *** depend on shared libraries, but programs linked with such libtool
  7106. *** libraries will work regardless of this problem. Nevertheless, you
  7107. *** may want to report the problem to your system manager and/or to
  7108. *** bug-libtool@gnu.org
  7109. _LT_EOF
  7110. fi ;;
  7111. esac
  7112. fi
  7113. break
  7114. fi
  7115. done
  7116. IFS=$lt_save_ifs
  7117. MAGIC_CMD=$lt_save_MAGIC_CMD
  7118. ;;
  7119. esac
  7120. fi
  7121. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7122. if test -n "$MAGIC_CMD"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7124. $as_echo "$MAGIC_CMD" >&6; }
  7125. else
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7127. $as_echo "no" >&6; }
  7128. fi
  7129. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7130. if test -n "$ac_tool_prefix"; then
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7132. $as_echo_n "checking for file... " >&6; }
  7133. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. case $MAGIC_CMD in
  7137. [\\/*] | ?:[\\/]*)
  7138. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7139. ;;
  7140. *)
  7141. lt_save_MAGIC_CMD=$MAGIC_CMD
  7142. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7143. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7144. for ac_dir in $ac_dummy; do
  7145. IFS=$lt_save_ifs
  7146. test -z "$ac_dir" && ac_dir=.
  7147. if test -f "$ac_dir/file"; then
  7148. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7149. if test -n "$file_magic_test_file"; then
  7150. case $deplibs_check_method in
  7151. "file_magic "*)
  7152. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7153. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7154. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7155. $EGREP "$file_magic_regex" > /dev/null; then
  7156. :
  7157. else
  7158. cat <<_LT_EOF 1>&2
  7159. *** Warning: the command libtool uses to detect shared libraries,
  7160. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7161. *** The result is that libtool may fail to recognize shared libraries
  7162. *** as such. This will affect the creation of libtool libraries that
  7163. *** depend on shared libraries, but programs linked with such libtool
  7164. *** libraries will work regardless of this problem. Nevertheless, you
  7165. *** may want to report the problem to your system manager and/or to
  7166. *** bug-libtool@gnu.org
  7167. _LT_EOF
  7168. fi ;;
  7169. esac
  7170. fi
  7171. break
  7172. fi
  7173. done
  7174. IFS=$lt_save_ifs
  7175. MAGIC_CMD=$lt_save_MAGIC_CMD
  7176. ;;
  7177. esac
  7178. fi
  7179. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7180. if test -n "$MAGIC_CMD"; then
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7182. $as_echo "$MAGIC_CMD" >&6; }
  7183. else
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7185. $as_echo "no" >&6; }
  7186. fi
  7187. else
  7188. MAGIC_CMD=:
  7189. fi
  7190. fi
  7191. fi
  7192. ;;
  7193. esac
  7194. # Use C for the default configuration in the libtool script
  7195. lt_save_CC=$CC
  7196. ac_ext=c
  7197. ac_cpp='$CPP $CPPFLAGS'
  7198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7201. # Source file extension for C test sources.
  7202. ac_ext=c
  7203. # Object file extension for compiled C test sources.
  7204. objext=o
  7205. objext=$objext
  7206. # Code to be used in simple compile tests
  7207. lt_simple_compile_test_code="int some_variable = 0;"
  7208. # Code to be used in simple link tests
  7209. lt_simple_link_test_code='int main(){return(0);}'
  7210. # If no C compiler was specified, use CC.
  7211. LTCC=${LTCC-"$CC"}
  7212. # If no C compiler flags were specified, use CFLAGS.
  7213. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7214. # Allow CC to be a program name with arguments.
  7215. compiler=$CC
  7216. # Save the default compiler, since it gets overwritten when the other
  7217. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7218. compiler_DEFAULT=$CC
  7219. # save warnings/boilerplate of simple test code
  7220. ac_outfile=conftest.$ac_objext
  7221. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7222. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7223. _lt_compiler_boilerplate=`cat conftest.err`
  7224. $RM conftest*
  7225. ac_outfile=conftest.$ac_objext
  7226. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7227. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7228. _lt_linker_boilerplate=`cat conftest.err`
  7229. $RM -r conftest*
  7230. ## CAVEAT EMPTOR:
  7231. ## There is no encapsulation within the following macros, do not change
  7232. ## the running order or otherwise move them around unless you know exactly
  7233. ## what you are doing...
  7234. if test -n "$compiler"; then
  7235. lt_prog_compiler_no_builtin_flag=
  7236. if test yes = "$GCC"; then
  7237. case $cc_basename in
  7238. nvcc*)
  7239. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7240. *)
  7241. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7242. esac
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7244. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7245. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7246. $as_echo_n "(cached) " >&6
  7247. else
  7248. lt_cv_prog_compiler_rtti_exceptions=no
  7249. ac_outfile=conftest.$ac_objext
  7250. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7251. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7252. # Insert the option either (1) after the last *FLAGS variable, or
  7253. # (2) before a word containing "conftest.", or (3) at the end.
  7254. # Note that $ac_compile itself does not contain backslashes and begins
  7255. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7256. # The option is referenced via a variable to avoid confusing sed.
  7257. lt_compile=`echo "$ac_compile" | $SED \
  7258. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7259. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7260. -e 's:$: $lt_compiler_flag:'`
  7261. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7262. (eval "$lt_compile" 2>conftest.err)
  7263. ac_status=$?
  7264. cat conftest.err >&5
  7265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7266. if (exit $ac_status) && test -s "$ac_outfile"; then
  7267. # The compiler can only warn and ignore the option if not recognized
  7268. # So say no if there are warnings other than the usual output.
  7269. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7270. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7271. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7272. lt_cv_prog_compiler_rtti_exceptions=yes
  7273. fi
  7274. fi
  7275. $RM conftest*
  7276. fi
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7278. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7279. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7280. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7281. else
  7282. :
  7283. fi
  7284. fi
  7285. lt_prog_compiler_wl=
  7286. lt_prog_compiler_pic=
  7287. lt_prog_compiler_static=
  7288. if test yes = "$GCC"; then
  7289. lt_prog_compiler_wl='-Wl,'
  7290. lt_prog_compiler_static='-static'
  7291. case $host_os in
  7292. aix*)
  7293. # All AIX code is PIC.
  7294. if test ia64 = "$host_cpu"; then
  7295. # AIX 5 now supports IA64 processor
  7296. lt_prog_compiler_static='-Bstatic'
  7297. fi
  7298. lt_prog_compiler_pic='-fPIC'
  7299. ;;
  7300. amigaos*)
  7301. case $host_cpu in
  7302. powerpc)
  7303. # see comment about AmigaOS4 .so support
  7304. lt_prog_compiler_pic='-fPIC'
  7305. ;;
  7306. m68k)
  7307. # FIXME: we need at least 68020 code to build shared libraries, but
  7308. # adding the '-m68020' flag to GCC prevents building anything better,
  7309. # like '-m68040'.
  7310. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7311. ;;
  7312. esac
  7313. ;;
  7314. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7315. # PIC is the default for these OSes.
  7316. ;;
  7317. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7318. # This hack is so that the source file can tell whether it is being
  7319. # built for inclusion in a dll (and should export symbols for example).
  7320. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7321. # (--disable-auto-import) libraries
  7322. lt_prog_compiler_pic='-DDLL_EXPORT'
  7323. case $host_os in
  7324. os2*)
  7325. lt_prog_compiler_static='$wl-static'
  7326. ;;
  7327. esac
  7328. ;;
  7329. darwin* | rhapsody*)
  7330. # PIC is the default on this platform
  7331. # Common symbols not allowed in MH_DYLIB files
  7332. lt_prog_compiler_pic='-fno-common'
  7333. ;;
  7334. haiku*)
  7335. # PIC is the default for Haiku.
  7336. # The "-static" flag exists, but is broken.
  7337. lt_prog_compiler_static=
  7338. ;;
  7339. hpux*)
  7340. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7341. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7342. # sets the default TLS model and affects inlining.
  7343. case $host_cpu in
  7344. hppa*64*)
  7345. # +Z the default
  7346. ;;
  7347. *)
  7348. lt_prog_compiler_pic='-fPIC'
  7349. ;;
  7350. esac
  7351. ;;
  7352. interix[3-9]*)
  7353. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7354. # Instead, we relocate shared libraries at runtime.
  7355. ;;
  7356. msdosdjgpp*)
  7357. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7358. # on systems that don't support them.
  7359. lt_prog_compiler_can_build_shared=no
  7360. enable_shared=no
  7361. ;;
  7362. *nto* | *qnx*)
  7363. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7364. # it will coredump.
  7365. lt_prog_compiler_pic='-fPIC -shared'
  7366. ;;
  7367. sysv4*MP*)
  7368. if test -d /usr/nec; then
  7369. lt_prog_compiler_pic=-Kconform_pic
  7370. fi
  7371. ;;
  7372. *)
  7373. lt_prog_compiler_pic='-fPIC'
  7374. ;;
  7375. esac
  7376. case $cc_basename in
  7377. nvcc*) # Cuda Compiler Driver 2.2
  7378. lt_prog_compiler_wl='-Xlinker '
  7379. if test -n "$lt_prog_compiler_pic"; then
  7380. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7381. fi
  7382. ;;
  7383. esac
  7384. else
  7385. # PORTME Check for flag to pass linker flags through the system compiler.
  7386. case $host_os in
  7387. aix*)
  7388. lt_prog_compiler_wl='-Wl,'
  7389. if test ia64 = "$host_cpu"; then
  7390. # AIX 5 now supports IA64 processor
  7391. lt_prog_compiler_static='-Bstatic'
  7392. else
  7393. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7394. fi
  7395. ;;
  7396. darwin* | rhapsody*)
  7397. # PIC is the default on this platform
  7398. # Common symbols not allowed in MH_DYLIB files
  7399. lt_prog_compiler_pic='-fno-common'
  7400. case $cc_basename in
  7401. nagfor*)
  7402. # NAG Fortran compiler
  7403. lt_prog_compiler_wl='-Wl,-Wl,,'
  7404. lt_prog_compiler_pic='-PIC'
  7405. lt_prog_compiler_static='-Bstatic'
  7406. ;;
  7407. esac
  7408. ;;
  7409. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7410. # This hack is so that the source file can tell whether it is being
  7411. # built for inclusion in a dll (and should export symbols for example).
  7412. lt_prog_compiler_pic='-DDLL_EXPORT'
  7413. case $host_os in
  7414. os2*)
  7415. lt_prog_compiler_static='$wl-static'
  7416. ;;
  7417. esac
  7418. ;;
  7419. hpux9* | hpux10* | hpux11*)
  7420. lt_prog_compiler_wl='-Wl,'
  7421. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7422. # not for PA HP-UX.
  7423. case $host_cpu in
  7424. hppa*64*|ia64*)
  7425. # +Z the default
  7426. ;;
  7427. *)
  7428. lt_prog_compiler_pic='+Z'
  7429. ;;
  7430. esac
  7431. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7432. lt_prog_compiler_static='$wl-a ${wl}archive'
  7433. ;;
  7434. irix5* | irix6* | nonstopux*)
  7435. lt_prog_compiler_wl='-Wl,'
  7436. # PIC (with -KPIC) is the default.
  7437. lt_prog_compiler_static='-non_shared'
  7438. ;;
  7439. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7440. case $cc_basename in
  7441. # old Intel for x86_64, which still supported -KPIC.
  7442. ecc*)
  7443. lt_prog_compiler_wl='-Wl,'
  7444. lt_prog_compiler_pic='-KPIC'
  7445. lt_prog_compiler_static='-static'
  7446. ;;
  7447. # icc used to be incompatible with GCC.
  7448. # ICC 10 doesn't accept -KPIC any more.
  7449. icc* | ifort*)
  7450. lt_prog_compiler_wl='-Wl,'
  7451. lt_prog_compiler_pic='-fPIC'
  7452. lt_prog_compiler_static='-static'
  7453. ;;
  7454. # Lahey Fortran 8.1.
  7455. lf95*)
  7456. lt_prog_compiler_wl='-Wl,'
  7457. lt_prog_compiler_pic='--shared'
  7458. lt_prog_compiler_static='--static'
  7459. ;;
  7460. nagfor*)
  7461. # NAG Fortran compiler
  7462. lt_prog_compiler_wl='-Wl,-Wl,,'
  7463. lt_prog_compiler_pic='-PIC'
  7464. lt_prog_compiler_static='-Bstatic'
  7465. ;;
  7466. tcc*)
  7467. # Fabrice Bellard et al's Tiny C Compiler
  7468. lt_prog_compiler_wl='-Wl,'
  7469. lt_prog_compiler_pic='-fPIC'
  7470. lt_prog_compiler_static='-static'
  7471. ;;
  7472. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7473. # Portland Group compilers (*not* the Pentium gcc compiler,
  7474. # which looks to be a dead project)
  7475. lt_prog_compiler_wl='-Wl,'
  7476. lt_prog_compiler_pic='-fpic'
  7477. lt_prog_compiler_static='-Bstatic'
  7478. ;;
  7479. ccc*)
  7480. lt_prog_compiler_wl='-Wl,'
  7481. # All Alpha code is PIC.
  7482. lt_prog_compiler_static='-non_shared'
  7483. ;;
  7484. xl* | bgxl* | bgf* | mpixl*)
  7485. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7486. lt_prog_compiler_wl='-Wl,'
  7487. lt_prog_compiler_pic='-qpic'
  7488. lt_prog_compiler_static='-qstaticlink'
  7489. ;;
  7490. *)
  7491. case `$CC -V 2>&1 | sed 5q` in
  7492. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7493. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7494. lt_prog_compiler_pic='-KPIC'
  7495. lt_prog_compiler_static='-Bstatic'
  7496. lt_prog_compiler_wl=''
  7497. ;;
  7498. *Sun\ F* | *Sun*Fortran*)
  7499. lt_prog_compiler_pic='-KPIC'
  7500. lt_prog_compiler_static='-Bstatic'
  7501. lt_prog_compiler_wl='-Qoption ld '
  7502. ;;
  7503. *Sun\ C*)
  7504. # Sun C 5.9
  7505. lt_prog_compiler_pic='-KPIC'
  7506. lt_prog_compiler_static='-Bstatic'
  7507. lt_prog_compiler_wl='-Wl,'
  7508. ;;
  7509. *Intel*\ [CF]*Compiler*)
  7510. lt_prog_compiler_wl='-Wl,'
  7511. lt_prog_compiler_pic='-fPIC'
  7512. lt_prog_compiler_static='-static'
  7513. ;;
  7514. *Portland\ Group*)
  7515. lt_prog_compiler_wl='-Wl,'
  7516. lt_prog_compiler_pic='-fpic'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. ;;
  7519. esac
  7520. ;;
  7521. esac
  7522. ;;
  7523. newsos6)
  7524. lt_prog_compiler_pic='-KPIC'
  7525. lt_prog_compiler_static='-Bstatic'
  7526. ;;
  7527. *nto* | *qnx*)
  7528. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7529. # it will coredump.
  7530. lt_prog_compiler_pic='-fPIC -shared'
  7531. ;;
  7532. osf3* | osf4* | osf5*)
  7533. lt_prog_compiler_wl='-Wl,'
  7534. # All OSF/1 code is PIC.
  7535. lt_prog_compiler_static='-non_shared'
  7536. ;;
  7537. rdos*)
  7538. lt_prog_compiler_static='-non_shared'
  7539. ;;
  7540. solaris*)
  7541. lt_prog_compiler_pic='-KPIC'
  7542. lt_prog_compiler_static='-Bstatic'
  7543. case $cc_basename in
  7544. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7545. lt_prog_compiler_wl='-Qoption ld ';;
  7546. *)
  7547. lt_prog_compiler_wl='-Wl,';;
  7548. esac
  7549. ;;
  7550. sunos4*)
  7551. lt_prog_compiler_wl='-Qoption ld '
  7552. lt_prog_compiler_pic='-PIC'
  7553. lt_prog_compiler_static='-Bstatic'
  7554. ;;
  7555. sysv4 | sysv4.2uw2* | sysv4.3*)
  7556. lt_prog_compiler_wl='-Wl,'
  7557. lt_prog_compiler_pic='-KPIC'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. ;;
  7560. sysv4*MP*)
  7561. if test -d /usr/nec; then
  7562. lt_prog_compiler_pic='-Kconform_pic'
  7563. lt_prog_compiler_static='-Bstatic'
  7564. fi
  7565. ;;
  7566. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7567. lt_prog_compiler_wl='-Wl,'
  7568. lt_prog_compiler_pic='-KPIC'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. ;;
  7571. unicos*)
  7572. lt_prog_compiler_wl='-Wl,'
  7573. lt_prog_compiler_can_build_shared=no
  7574. ;;
  7575. uts4*)
  7576. lt_prog_compiler_pic='-pic'
  7577. lt_prog_compiler_static='-Bstatic'
  7578. ;;
  7579. *)
  7580. lt_prog_compiler_can_build_shared=no
  7581. ;;
  7582. esac
  7583. fi
  7584. case $host_os in
  7585. # For platforms that do not support PIC, -DPIC is meaningless:
  7586. *djgpp*)
  7587. lt_prog_compiler_pic=
  7588. ;;
  7589. *)
  7590. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7591. ;;
  7592. esac
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7594. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7595. if ${lt_cv_prog_compiler_pic+:} false; then :
  7596. $as_echo_n "(cached) " >&6
  7597. else
  7598. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7599. fi
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7601. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7602. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7603. #
  7604. # Check to make sure the PIC flag actually works.
  7605. #
  7606. if test -n "$lt_prog_compiler_pic"; then
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7608. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7609. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7610. $as_echo_n "(cached) " >&6
  7611. else
  7612. lt_cv_prog_compiler_pic_works=no
  7613. ac_outfile=conftest.$ac_objext
  7614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7615. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7616. # Insert the option either (1) after the last *FLAGS variable, or
  7617. # (2) before a word containing "conftest.", or (3) at the end.
  7618. # Note that $ac_compile itself does not contain backslashes and begins
  7619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7620. # The option is referenced via a variable to avoid confusing sed.
  7621. lt_compile=`echo "$ac_compile" | $SED \
  7622. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7623. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7624. -e 's:$: $lt_compiler_flag:'`
  7625. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7626. (eval "$lt_compile" 2>conftest.err)
  7627. ac_status=$?
  7628. cat conftest.err >&5
  7629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7630. if (exit $ac_status) && test -s "$ac_outfile"; then
  7631. # The compiler can only warn and ignore the option if not recognized
  7632. # So say no if there are warnings other than the usual output.
  7633. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7634. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7635. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7636. lt_cv_prog_compiler_pic_works=yes
  7637. fi
  7638. fi
  7639. $RM conftest*
  7640. fi
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7642. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7643. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7644. case $lt_prog_compiler_pic in
  7645. "" | " "*) ;;
  7646. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7647. esac
  7648. else
  7649. lt_prog_compiler_pic=
  7650. lt_prog_compiler_can_build_shared=no
  7651. fi
  7652. fi
  7653. #
  7654. # Check to make sure the static flag actually works.
  7655. #
  7656. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7658. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7659. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7660. $as_echo_n "(cached) " >&6
  7661. else
  7662. lt_cv_prog_compiler_static_works=no
  7663. save_LDFLAGS=$LDFLAGS
  7664. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7665. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7666. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7667. # The linker can only warn and ignore the option if not recognized
  7668. # So say no if there are warnings
  7669. if test -s conftest.err; then
  7670. # Append any errors to the config.log.
  7671. cat conftest.err 1>&5
  7672. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7673. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7674. if diff conftest.exp conftest.er2 >/dev/null; then
  7675. lt_cv_prog_compiler_static_works=yes
  7676. fi
  7677. else
  7678. lt_cv_prog_compiler_static_works=yes
  7679. fi
  7680. fi
  7681. $RM -r conftest*
  7682. LDFLAGS=$save_LDFLAGS
  7683. fi
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7685. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7686. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7687. :
  7688. else
  7689. lt_prog_compiler_static=
  7690. fi
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7692. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7693. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7694. $as_echo_n "(cached) " >&6
  7695. else
  7696. lt_cv_prog_compiler_c_o=no
  7697. $RM -r conftest 2>/dev/null
  7698. mkdir conftest
  7699. cd conftest
  7700. mkdir out
  7701. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7702. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7703. # Insert the option either (1) after the last *FLAGS variable, or
  7704. # (2) before a word containing "conftest.", or (3) at the end.
  7705. # Note that $ac_compile itself does not contain backslashes and begins
  7706. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7707. lt_compile=`echo "$ac_compile" | $SED \
  7708. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7709. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7710. -e 's:$: $lt_compiler_flag:'`
  7711. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7712. (eval "$lt_compile" 2>out/conftest.err)
  7713. ac_status=$?
  7714. cat out/conftest.err >&5
  7715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7717. then
  7718. # The compiler can only warn and ignore the option if not recognized
  7719. # So say no if there are warnings
  7720. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7721. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7722. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7723. lt_cv_prog_compiler_c_o=yes
  7724. fi
  7725. fi
  7726. chmod u+w . 2>&5
  7727. $RM conftest*
  7728. # SGI C++ compiler will create directory out/ii_files/ for
  7729. # template instantiation
  7730. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7731. $RM out/* && rmdir out
  7732. cd ..
  7733. $RM -r conftest
  7734. $RM conftest*
  7735. fi
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7737. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7739. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7740. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7741. $as_echo_n "(cached) " >&6
  7742. else
  7743. lt_cv_prog_compiler_c_o=no
  7744. $RM -r conftest 2>/dev/null
  7745. mkdir conftest
  7746. cd conftest
  7747. mkdir out
  7748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7749. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7750. # Insert the option either (1) after the last *FLAGS variable, or
  7751. # (2) before a word containing "conftest.", or (3) at the end.
  7752. # Note that $ac_compile itself does not contain backslashes and begins
  7753. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7754. lt_compile=`echo "$ac_compile" | $SED \
  7755. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7756. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7757. -e 's:$: $lt_compiler_flag:'`
  7758. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7759. (eval "$lt_compile" 2>out/conftest.err)
  7760. ac_status=$?
  7761. cat out/conftest.err >&5
  7762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7763. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7764. then
  7765. # The compiler can only warn and ignore the option if not recognized
  7766. # So say no if there are warnings
  7767. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7768. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7769. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7770. lt_cv_prog_compiler_c_o=yes
  7771. fi
  7772. fi
  7773. chmod u+w . 2>&5
  7774. $RM conftest*
  7775. # SGI C++ compiler will create directory out/ii_files/ for
  7776. # template instantiation
  7777. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7778. $RM out/* && rmdir out
  7779. cd ..
  7780. $RM -r conftest
  7781. $RM conftest*
  7782. fi
  7783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7784. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7785. hard_links=nottested
  7786. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7787. # do not overwrite the value of need_locks provided by the user
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7789. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7790. hard_links=yes
  7791. $RM conftest*
  7792. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7793. touch conftest.a
  7794. ln conftest.a conftest.b 2>&5 || hard_links=no
  7795. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7797. $as_echo "$hard_links" >&6; }
  7798. if test no = "$hard_links"; then
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7800. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7801. need_locks=warn
  7802. fi
  7803. else
  7804. need_locks=no
  7805. fi
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7807. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7808. runpath_var=
  7809. allow_undefined_flag=
  7810. always_export_symbols=no
  7811. archive_cmds=
  7812. archive_expsym_cmds=
  7813. compiler_needs_object=no
  7814. enable_shared_with_static_runtimes=no
  7815. export_dynamic_flag_spec=
  7816. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7817. hardcode_automatic=no
  7818. hardcode_direct=no
  7819. hardcode_direct_absolute=no
  7820. hardcode_libdir_flag_spec=
  7821. hardcode_libdir_separator=
  7822. hardcode_minus_L=no
  7823. hardcode_shlibpath_var=unsupported
  7824. inherit_rpath=no
  7825. link_all_deplibs=unknown
  7826. module_cmds=
  7827. module_expsym_cmds=
  7828. old_archive_from_new_cmds=
  7829. old_archive_from_expsyms_cmds=
  7830. thread_safe_flag_spec=
  7831. whole_archive_flag_spec=
  7832. # include_expsyms should be a list of space-separated symbols to be *always*
  7833. # included in the symbol list
  7834. include_expsyms=
  7835. # exclude_expsyms can be an extended regexp of symbols to exclude
  7836. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7837. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7838. # as well as any symbol that contains 'd'.
  7839. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7840. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7841. # platforms (ab)use it in PIC code, but their linkers get confused if
  7842. # the symbol is explicitly referenced. Since portable code cannot
  7843. # rely on this symbol name, it's probably fine to never include it in
  7844. # preloaded symbol tables.
  7845. # Exclude shared library initialization/finalization symbols.
  7846. extract_expsyms_cmds=
  7847. case $host_os in
  7848. cygwin* | mingw* | pw32* | cegcc*)
  7849. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7850. # When not using gcc, we currently assume that we are using
  7851. # Microsoft Visual C++.
  7852. if test yes != "$GCC"; then
  7853. with_gnu_ld=no
  7854. fi
  7855. ;;
  7856. interix*)
  7857. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7858. with_gnu_ld=yes
  7859. ;;
  7860. openbsd* | bitrig*)
  7861. with_gnu_ld=no
  7862. ;;
  7863. esac
  7864. ld_shlibs=yes
  7865. # On some targets, GNU ld is compatible enough with the native linker
  7866. # that we're better off using the native interface for both.
  7867. lt_use_gnu_ld_interface=no
  7868. if test yes = "$with_gnu_ld"; then
  7869. case $host_os in
  7870. aix*)
  7871. # The AIX port of GNU ld has always aspired to compatibility
  7872. # with the native linker. However, as the warning in the GNU ld
  7873. # block says, versions before 2.19.5* couldn't really create working
  7874. # shared libraries, regardless of the interface used.
  7875. case `$LD -v 2>&1` in
  7876. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7877. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7878. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7879. *)
  7880. lt_use_gnu_ld_interface=yes
  7881. ;;
  7882. esac
  7883. ;;
  7884. *)
  7885. lt_use_gnu_ld_interface=yes
  7886. ;;
  7887. esac
  7888. fi
  7889. if test yes = "$lt_use_gnu_ld_interface"; then
  7890. # If archive_cmds runs LD, not CC, wlarc should be empty
  7891. wlarc='$wl'
  7892. # Set some defaults for GNU ld with shared library support. These
  7893. # are reset later if shared libraries are not supported. Putting them
  7894. # here allows them to be overridden if necessary.
  7895. runpath_var=LD_RUN_PATH
  7896. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7897. export_dynamic_flag_spec='$wl--export-dynamic'
  7898. # ancient GNU ld didn't support --whole-archive et. al.
  7899. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7900. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7901. else
  7902. whole_archive_flag_spec=
  7903. fi
  7904. supports_anon_versioning=no
  7905. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7906. *GNU\ gold*) supports_anon_versioning=yes ;;
  7907. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7908. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7909. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7910. *\ 2.11.*) ;; # other 2.11 versions
  7911. *) supports_anon_versioning=yes ;;
  7912. esac
  7913. # See if GNU ld supports shared libraries.
  7914. case $host_os in
  7915. aix[3-9]*)
  7916. # On AIX/PPC, the GNU linker is very broken
  7917. if test ia64 != "$host_cpu"; then
  7918. ld_shlibs=no
  7919. cat <<_LT_EOF 1>&2
  7920. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7921. *** to be unable to reliably create shared libraries on AIX.
  7922. *** Therefore, libtool is disabling shared libraries support. If you
  7923. *** really care for shared libraries, you may want to install binutils
  7924. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7925. *** You will then need to restart the configuration process.
  7926. _LT_EOF
  7927. fi
  7928. ;;
  7929. amigaos*)
  7930. case $host_cpu in
  7931. powerpc)
  7932. # see comment about AmigaOS4 .so support
  7933. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7934. archive_expsym_cmds=''
  7935. ;;
  7936. m68k)
  7937. 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)'
  7938. hardcode_libdir_flag_spec='-L$libdir'
  7939. hardcode_minus_L=yes
  7940. ;;
  7941. esac
  7942. ;;
  7943. beos*)
  7944. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7945. allow_undefined_flag=unsupported
  7946. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7947. # support --undefined. This deserves some investigation. FIXME
  7948. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7949. else
  7950. ld_shlibs=no
  7951. fi
  7952. ;;
  7953. cygwin* | mingw* | pw32* | cegcc*)
  7954. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7955. # as there is no search path for DLLs.
  7956. hardcode_libdir_flag_spec='-L$libdir'
  7957. export_dynamic_flag_spec='$wl--export-all-symbols'
  7958. allow_undefined_flag=unsupported
  7959. always_export_symbols=no
  7960. enable_shared_with_static_runtimes=yes
  7961. 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'
  7962. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7963. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7964. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7965. # If the export-symbols file already is a .def file, use it as
  7966. # is; otherwise, prepend EXPORTS...
  7967. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7968. cp $export_symbols $output_objdir/$soname.def;
  7969. else
  7970. echo EXPORTS > $output_objdir/$soname.def;
  7971. cat $export_symbols >> $output_objdir/$soname.def;
  7972. fi~
  7973. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7974. else
  7975. ld_shlibs=no
  7976. fi
  7977. ;;
  7978. haiku*)
  7979. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7980. link_all_deplibs=yes
  7981. ;;
  7982. os2*)
  7983. hardcode_libdir_flag_spec='-L$libdir'
  7984. hardcode_minus_L=yes
  7985. allow_undefined_flag=unsupported
  7986. shrext_cmds=.dll
  7987. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7988. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7989. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7990. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7991. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7992. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7993. emximp -o $lib $output_objdir/$libname.def'
  7994. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7995. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7996. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7997. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7998. prefix_cmds="$SED"~
  7999. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8000. prefix_cmds="$prefix_cmds -e 1d";
  8001. fi~
  8002. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8003. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8004. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8005. emximp -o $lib $output_objdir/$libname.def'
  8006. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8007. enable_shared_with_static_runtimes=yes
  8008. file_list_spec='@'
  8009. ;;
  8010. interix[3-9]*)
  8011. hardcode_direct=no
  8012. hardcode_shlibpath_var=no
  8013. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8014. export_dynamic_flag_spec='$wl-E'
  8015. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8016. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8017. # default) and relocated if they conflict, which is a slow very memory
  8018. # consuming and fragmenting process. To avoid this, we pick a random,
  8019. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8020. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8021. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8022. 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'
  8023. ;;
  8024. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8025. tmp_diet=no
  8026. if test linux-dietlibc = "$host_os"; then
  8027. case $cc_basename in
  8028. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8029. esac
  8030. fi
  8031. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8032. && test no = "$tmp_diet"
  8033. then
  8034. tmp_addflag=' $pic_flag'
  8035. tmp_sharedflag='-shared'
  8036. case $cc_basename,$host_cpu in
  8037. pgcc*) # Portland Group C compiler
  8038. 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'
  8039. tmp_addflag=' $pic_flag'
  8040. ;;
  8041. pgf77* | pgf90* | pgf95* | pgfortran*)
  8042. # Portland Group f77 and f90 compilers
  8043. 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'
  8044. tmp_addflag=' $pic_flag -Mnomain' ;;
  8045. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8046. tmp_addflag=' -i_dynamic' ;;
  8047. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8048. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8049. ifc* | ifort*) # Intel Fortran compiler
  8050. tmp_addflag=' -nofor_main' ;;
  8051. lf95*) # Lahey Fortran 8.1
  8052. whole_archive_flag_spec=
  8053. tmp_sharedflag='--shared' ;;
  8054. nagfor*) # NAGFOR 5.3
  8055. tmp_sharedflag='-Wl,-shared' ;;
  8056. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8057. tmp_sharedflag='-qmkshrobj'
  8058. tmp_addflag= ;;
  8059. nvcc*) # Cuda Compiler Driver 2.2
  8060. 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'
  8061. compiler_needs_object=yes
  8062. ;;
  8063. esac
  8064. case `$CC -V 2>&1 | sed 5q` in
  8065. *Sun\ C*) # Sun C 5.9
  8066. 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'
  8067. compiler_needs_object=yes
  8068. tmp_sharedflag='-G' ;;
  8069. *Sun\ F*) # Sun Fortran 8.3
  8070. tmp_sharedflag='-G' ;;
  8071. esac
  8072. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8073. if test yes = "$supports_anon_versioning"; then
  8074. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8075. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8076. echo "local: *; };" >> $output_objdir/$libname.ver~
  8077. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8078. fi
  8079. case $cc_basename in
  8080. tcc*)
  8081. export_dynamic_flag_spec='-rdynamic'
  8082. ;;
  8083. xlf* | bgf* | bgxlf* | mpixlf*)
  8084. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8085. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8086. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8087. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8088. if test yes = "$supports_anon_versioning"; then
  8089. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8090. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8091. echo "local: *; };" >> $output_objdir/$libname.ver~
  8092. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8093. fi
  8094. ;;
  8095. esac
  8096. else
  8097. ld_shlibs=no
  8098. fi
  8099. ;;
  8100. netbsd*)
  8101. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8102. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8103. wlarc=
  8104. else
  8105. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8106. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8107. fi
  8108. ;;
  8109. solaris*)
  8110. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8111. ld_shlibs=no
  8112. cat <<_LT_EOF 1>&2
  8113. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8114. *** create shared libraries on Solaris systems. Therefore, libtool
  8115. *** is disabling shared libraries support. We urge you to upgrade GNU
  8116. *** binutils to release 2.9.1 or newer. Another option is to modify
  8117. *** your PATH or compiler configuration so that the native linker is
  8118. *** used, and then restart.
  8119. _LT_EOF
  8120. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8121. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8122. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8123. else
  8124. ld_shlibs=no
  8125. fi
  8126. ;;
  8127. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8128. case `$LD -v 2>&1` in
  8129. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8130. ld_shlibs=no
  8131. cat <<_LT_EOF 1>&2
  8132. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8133. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8134. *** is disabling shared libraries support. We urge you to upgrade GNU
  8135. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8136. *** your PATH or compiler configuration so that the native linker is
  8137. *** used, and then restart.
  8138. _LT_EOF
  8139. ;;
  8140. *)
  8141. # For security reasons, it is highly recommended that you always
  8142. # use absolute paths for naming shared libraries, and exclude the
  8143. # DT_RUNPATH tag from executables and libraries. But doing so
  8144. # requires that you compile everything twice, which is a pain.
  8145. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8146. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8147. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8148. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8149. else
  8150. ld_shlibs=no
  8151. fi
  8152. ;;
  8153. esac
  8154. ;;
  8155. sunos4*)
  8156. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8157. wlarc=
  8158. hardcode_direct=yes
  8159. hardcode_shlibpath_var=no
  8160. ;;
  8161. *)
  8162. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8163. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8164. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8165. else
  8166. ld_shlibs=no
  8167. fi
  8168. ;;
  8169. esac
  8170. if test no = "$ld_shlibs"; then
  8171. runpath_var=
  8172. hardcode_libdir_flag_spec=
  8173. export_dynamic_flag_spec=
  8174. whole_archive_flag_spec=
  8175. fi
  8176. else
  8177. # PORTME fill in a description of your system's linker (not GNU ld)
  8178. case $host_os in
  8179. aix3*)
  8180. allow_undefined_flag=unsupported
  8181. always_export_symbols=yes
  8182. 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'
  8183. # Note: this linker hardcodes the directories in LIBPATH if there
  8184. # are no directories specified by -L.
  8185. hardcode_minus_L=yes
  8186. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8187. # Neither direct hardcoding nor static linking is supported with a
  8188. # broken collect2.
  8189. hardcode_direct=unsupported
  8190. fi
  8191. ;;
  8192. aix[4-9]*)
  8193. if test ia64 = "$host_cpu"; then
  8194. # On IA64, the linker does run time linking by default, so we don't
  8195. # have to do anything special.
  8196. aix_use_runtimelinking=no
  8197. exp_sym_flag='-Bexport'
  8198. no_entry_flag=
  8199. else
  8200. # If we're using GNU nm, then we don't want the "-C" option.
  8201. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8202. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8203. # weak defined symbols like other global defined symbols, whereas
  8204. # GNU nm marks them as "W".
  8205. # While the 'weak' keyword is ignored in the Export File, we need
  8206. # it in the Import File for the 'aix-soname' feature, so we have
  8207. # to replace the "-B" option with "-P" for AIX nm.
  8208. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8209. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8210. else
  8211. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8212. fi
  8213. aix_use_runtimelinking=no
  8214. # Test if we are trying to use run time linking or normal
  8215. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8216. # have runtime linking enabled, and use it for executables.
  8217. # For shared libraries, we enable/disable runtime linking
  8218. # depending on the kind of the shared library created -
  8219. # when "with_aix_soname,aix_use_runtimelinking" is:
  8220. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8221. # "aix,yes" lib.so shared, rtl:yes, for executables
  8222. # lib.a static archive
  8223. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8224. # lib.a(lib.so.V) shared, rtl:no, for executables
  8225. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8226. # lib.a(lib.so.V) shared, rtl:no
  8227. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8228. # lib.a static archive
  8229. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8230. for ld_flag in $LDFLAGS; do
  8231. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8232. aix_use_runtimelinking=yes
  8233. break
  8234. fi
  8235. done
  8236. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8237. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8238. # so we don't have lib.a shared libs to link our executables.
  8239. # We have to force runtime linking in this case.
  8240. aix_use_runtimelinking=yes
  8241. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8242. fi
  8243. ;;
  8244. esac
  8245. exp_sym_flag='-bexport'
  8246. no_entry_flag='-bnoentry'
  8247. fi
  8248. # When large executables or shared objects are built, AIX ld can
  8249. # have problems creating the table of contents. If linking a library
  8250. # or program results in "error TOC overflow" add -mminimal-toc to
  8251. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8252. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8253. archive_cmds=''
  8254. hardcode_direct=yes
  8255. hardcode_direct_absolute=yes
  8256. hardcode_libdir_separator=':'
  8257. link_all_deplibs=yes
  8258. file_list_spec='$wl-f,'
  8259. case $with_aix_soname,$aix_use_runtimelinking in
  8260. aix,*) ;; # traditional, no import file
  8261. svr4,* | *,yes) # use import file
  8262. # The Import File defines what to hardcode.
  8263. hardcode_direct=no
  8264. hardcode_direct_absolute=no
  8265. ;;
  8266. esac
  8267. if test yes = "$GCC"; then
  8268. case $host_os in aix4.[012]|aix4.[012].*)
  8269. # We only want to do this on AIX 4.2 and lower, the check
  8270. # below for broken collect2 doesn't work under 4.3+
  8271. collect2name=`$CC -print-prog-name=collect2`
  8272. if test -f "$collect2name" &&
  8273. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8274. then
  8275. # We have reworked collect2
  8276. :
  8277. else
  8278. # We have old collect2
  8279. hardcode_direct=unsupported
  8280. # It fails to find uninstalled libraries when the uninstalled
  8281. # path is not listed in the libpath. Setting hardcode_minus_L
  8282. # to unsupported forces relinking
  8283. hardcode_minus_L=yes
  8284. hardcode_libdir_flag_spec='-L$libdir'
  8285. hardcode_libdir_separator=
  8286. fi
  8287. ;;
  8288. esac
  8289. shared_flag='-shared'
  8290. if test yes = "$aix_use_runtimelinking"; then
  8291. shared_flag="$shared_flag "'$wl-G'
  8292. fi
  8293. # Need to ensure runtime linking is disabled for the traditional
  8294. # shared library, or the linker may eventually find shared libraries
  8295. # /with/ Import File - we do not want to mix them.
  8296. shared_flag_aix='-shared'
  8297. shared_flag_svr4='-shared $wl-G'
  8298. else
  8299. # not using gcc
  8300. if test ia64 = "$host_cpu"; then
  8301. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8302. # chokes on -Wl,-G. The following line is correct:
  8303. shared_flag='-G'
  8304. else
  8305. if test yes = "$aix_use_runtimelinking"; then
  8306. shared_flag='$wl-G'
  8307. else
  8308. shared_flag='$wl-bM:SRE'
  8309. fi
  8310. shared_flag_aix='$wl-bM:SRE'
  8311. shared_flag_svr4='$wl-G'
  8312. fi
  8313. fi
  8314. export_dynamic_flag_spec='$wl-bexpall'
  8315. # It seems that -bexpall does not export symbols beginning with
  8316. # underscore (_), so it is better to generate a list of symbols to export.
  8317. always_export_symbols=yes
  8318. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8319. # Warning - without using the other runtime loading flags (-brtl),
  8320. # -berok will link without error, but may produce a broken library.
  8321. allow_undefined_flag='-berok'
  8322. # Determine the default libpath from the value encoded in an
  8323. # empty executable.
  8324. if test set = "${lt_cv_aix_libpath+set}"; then
  8325. aix_libpath=$lt_cv_aix_libpath
  8326. else
  8327. if ${lt_cv_aix_libpath_+:} false; then :
  8328. $as_echo_n "(cached) " >&6
  8329. else
  8330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8331. /* end confdefs.h. */
  8332. int
  8333. main ()
  8334. {
  8335. ;
  8336. return 0;
  8337. }
  8338. _ACEOF
  8339. if ac_fn_c_try_link "$LINENO"; then :
  8340. lt_aix_libpath_sed='
  8341. /Import File Strings/,/^$/ {
  8342. /^0/ {
  8343. s/^0 *\([^ ]*\) *$/\1/
  8344. p
  8345. }
  8346. }'
  8347. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8348. # Check for a 64-bit object if we didn't find anything.
  8349. if test -z "$lt_cv_aix_libpath_"; then
  8350. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8351. fi
  8352. fi
  8353. rm -f core conftest.err conftest.$ac_objext \
  8354. conftest$ac_exeext conftest.$ac_ext
  8355. if test -z "$lt_cv_aix_libpath_"; then
  8356. lt_cv_aix_libpath_=/usr/lib:/lib
  8357. fi
  8358. fi
  8359. aix_libpath=$lt_cv_aix_libpath_
  8360. fi
  8361. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8362. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8363. else
  8364. if test ia64 = "$host_cpu"; then
  8365. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8366. allow_undefined_flag="-z nodefs"
  8367. 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"
  8368. else
  8369. # Determine the default libpath from the value encoded in an
  8370. # empty executable.
  8371. if test set = "${lt_cv_aix_libpath+set}"; then
  8372. aix_libpath=$lt_cv_aix_libpath
  8373. else
  8374. if ${lt_cv_aix_libpath_+:} false; then :
  8375. $as_echo_n "(cached) " >&6
  8376. else
  8377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8378. /* end confdefs.h. */
  8379. int
  8380. main ()
  8381. {
  8382. ;
  8383. return 0;
  8384. }
  8385. _ACEOF
  8386. if ac_fn_c_try_link "$LINENO"; then :
  8387. lt_aix_libpath_sed='
  8388. /Import File Strings/,/^$/ {
  8389. /^0/ {
  8390. s/^0 *\([^ ]*\) *$/\1/
  8391. p
  8392. }
  8393. }'
  8394. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8395. # Check for a 64-bit object if we didn't find anything.
  8396. if test -z "$lt_cv_aix_libpath_"; then
  8397. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8398. fi
  8399. fi
  8400. rm -f core conftest.err conftest.$ac_objext \
  8401. conftest$ac_exeext conftest.$ac_ext
  8402. if test -z "$lt_cv_aix_libpath_"; then
  8403. lt_cv_aix_libpath_=/usr/lib:/lib
  8404. fi
  8405. fi
  8406. aix_libpath=$lt_cv_aix_libpath_
  8407. fi
  8408. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8409. # Warning - without using the other run time loading flags,
  8410. # -berok will link without error, but may produce a broken library.
  8411. no_undefined_flag=' $wl-bernotok'
  8412. allow_undefined_flag=' $wl-berok'
  8413. if test yes = "$with_gnu_ld"; then
  8414. # We only use this code for GNU lds that support --whole-archive.
  8415. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8416. else
  8417. # Exported symbols can be pulled into shared objects from archives
  8418. whole_archive_flag_spec='$convenience'
  8419. fi
  8420. archive_cmds_need_lc=yes
  8421. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8422. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8423. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8424. if test svr4 != "$with_aix_soname"; then
  8425. # This is similar to how AIX traditionally builds its shared libraries.
  8426. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8427. fi
  8428. if test aix != "$with_aix_soname"; then
  8429. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8430. else
  8431. # used by -dlpreopen to get the symbols
  8432. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8433. fi
  8434. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8435. fi
  8436. fi
  8437. ;;
  8438. amigaos*)
  8439. case $host_cpu in
  8440. powerpc)
  8441. # see comment about AmigaOS4 .so support
  8442. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8443. archive_expsym_cmds=''
  8444. ;;
  8445. m68k)
  8446. 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)'
  8447. hardcode_libdir_flag_spec='-L$libdir'
  8448. hardcode_minus_L=yes
  8449. ;;
  8450. esac
  8451. ;;
  8452. bsdi[45]*)
  8453. export_dynamic_flag_spec=-rdynamic
  8454. ;;
  8455. cygwin* | mingw* | pw32* | cegcc*)
  8456. # When not using gcc, we currently assume that we are using
  8457. # Microsoft Visual C++.
  8458. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8459. # no search path for DLLs.
  8460. case $cc_basename in
  8461. cl*)
  8462. # Native MSVC
  8463. hardcode_libdir_flag_spec=' '
  8464. allow_undefined_flag=unsupported
  8465. always_export_symbols=yes
  8466. file_list_spec='@'
  8467. # Tell ltmain to make .lib files, not .a files.
  8468. libext=lib
  8469. # Tell ltmain to make .dll files, not .so files.
  8470. shrext_cmds=.dll
  8471. # FIXME: Setting linknames here is a bad hack.
  8472. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8473. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8474. cp "$export_symbols" "$output_objdir/$soname.def";
  8475. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8476. else
  8477. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8478. fi~
  8479. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8480. linknames='
  8481. # The linker will not automatically build a static lib if we build a DLL.
  8482. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8483. enable_shared_with_static_runtimes=yes
  8484. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8485. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8486. # Don't use ranlib
  8487. old_postinstall_cmds='chmod 644 $oldlib'
  8488. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8489. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8490. case $lt_outputfile in
  8491. *.exe|*.EXE) ;;
  8492. *)
  8493. lt_outputfile=$lt_outputfile.exe
  8494. lt_tool_outputfile=$lt_tool_outputfile.exe
  8495. ;;
  8496. esac~
  8497. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8498. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8499. $RM "$lt_outputfile.manifest";
  8500. fi'
  8501. ;;
  8502. *)
  8503. # Assume MSVC wrapper
  8504. hardcode_libdir_flag_spec=' '
  8505. allow_undefined_flag=unsupported
  8506. # Tell ltmain to make .lib files, not .a files.
  8507. libext=lib
  8508. # Tell ltmain to make .dll files, not .so files.
  8509. shrext_cmds=.dll
  8510. # FIXME: Setting linknames here is a bad hack.
  8511. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8512. # The linker will automatically build a .lib file if we build a DLL.
  8513. old_archive_from_new_cmds='true'
  8514. # FIXME: Should let the user specify the lib program.
  8515. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8516. enable_shared_with_static_runtimes=yes
  8517. ;;
  8518. esac
  8519. ;;
  8520. darwin* | rhapsody*)
  8521. archive_cmds_need_lc=no
  8522. hardcode_direct=no
  8523. hardcode_automatic=yes
  8524. hardcode_shlibpath_var=unsupported
  8525. if test yes = "$lt_cv_ld_force_load"; then
  8526. 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\"`'
  8527. else
  8528. whole_archive_flag_spec=''
  8529. fi
  8530. link_all_deplibs=yes
  8531. allow_undefined_flag=$_lt_dar_allow_undefined
  8532. case $cc_basename in
  8533. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8534. *) _lt_dar_can_shared=$GCC ;;
  8535. esac
  8536. if test yes = "$_lt_dar_can_shared"; then
  8537. output_verbose_link_cmd=func_echo_all
  8538. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8539. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8540. 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"
  8541. 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"
  8542. else
  8543. ld_shlibs=no
  8544. fi
  8545. ;;
  8546. dgux*)
  8547. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8548. hardcode_libdir_flag_spec='-L$libdir'
  8549. hardcode_shlibpath_var=no
  8550. ;;
  8551. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8552. # support. Future versions do this automatically, but an explicit c++rt0.o
  8553. # does not break anything, and helps significantly (at the cost of a little
  8554. # extra space).
  8555. freebsd2.2*)
  8556. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8557. hardcode_libdir_flag_spec='-R$libdir'
  8558. hardcode_direct=yes
  8559. hardcode_shlibpath_var=no
  8560. ;;
  8561. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8562. freebsd2.*)
  8563. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8564. hardcode_direct=yes
  8565. hardcode_minus_L=yes
  8566. hardcode_shlibpath_var=no
  8567. ;;
  8568. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8569. freebsd* | dragonfly* | midnightbsd*)
  8570. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8571. hardcode_libdir_flag_spec='-R$libdir'
  8572. hardcode_direct=yes
  8573. hardcode_shlibpath_var=no
  8574. ;;
  8575. hpux9*)
  8576. if test yes = "$GCC"; then
  8577. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8578. else
  8579. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8580. fi
  8581. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8582. hardcode_libdir_separator=:
  8583. hardcode_direct=yes
  8584. # hardcode_minus_L: Not really in the search PATH,
  8585. # but as the default location of the library.
  8586. hardcode_minus_L=yes
  8587. export_dynamic_flag_spec='$wl-E'
  8588. ;;
  8589. hpux10*)
  8590. if test yes,no = "$GCC,$with_gnu_ld"; then
  8591. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8592. else
  8593. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8594. fi
  8595. if test no = "$with_gnu_ld"; then
  8596. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8597. hardcode_libdir_separator=:
  8598. hardcode_direct=yes
  8599. hardcode_direct_absolute=yes
  8600. export_dynamic_flag_spec='$wl-E'
  8601. # hardcode_minus_L: Not really in the search PATH,
  8602. # but as the default location of the library.
  8603. hardcode_minus_L=yes
  8604. fi
  8605. ;;
  8606. hpux11*)
  8607. if test yes,no = "$GCC,$with_gnu_ld"; then
  8608. case $host_cpu in
  8609. hppa*64*)
  8610. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8611. ;;
  8612. ia64*)
  8613. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8614. ;;
  8615. *)
  8616. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8617. ;;
  8618. esac
  8619. else
  8620. case $host_cpu in
  8621. hppa*64*)
  8622. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8623. ;;
  8624. ia64*)
  8625. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8626. ;;
  8627. *)
  8628. # Older versions of the 11.00 compiler do not understand -b yet
  8629. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8631. $as_echo_n "checking if $CC understands -b... " >&6; }
  8632. if ${lt_cv_prog_compiler__b+:} false; then :
  8633. $as_echo_n "(cached) " >&6
  8634. else
  8635. lt_cv_prog_compiler__b=no
  8636. save_LDFLAGS=$LDFLAGS
  8637. LDFLAGS="$LDFLAGS -b"
  8638. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8639. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8640. # The linker can only warn and ignore the option if not recognized
  8641. # So say no if there are warnings
  8642. if test -s conftest.err; then
  8643. # Append any errors to the config.log.
  8644. cat conftest.err 1>&5
  8645. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8646. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8647. if diff conftest.exp conftest.er2 >/dev/null; then
  8648. lt_cv_prog_compiler__b=yes
  8649. fi
  8650. else
  8651. lt_cv_prog_compiler__b=yes
  8652. fi
  8653. fi
  8654. $RM -r conftest*
  8655. LDFLAGS=$save_LDFLAGS
  8656. fi
  8657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8658. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8659. if test yes = "$lt_cv_prog_compiler__b"; then
  8660. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8661. else
  8662. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8663. fi
  8664. ;;
  8665. esac
  8666. fi
  8667. if test no = "$with_gnu_ld"; then
  8668. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8669. hardcode_libdir_separator=:
  8670. case $host_cpu in
  8671. hppa*64*|ia64*)
  8672. hardcode_direct=no
  8673. hardcode_shlibpath_var=no
  8674. ;;
  8675. *)
  8676. hardcode_direct=yes
  8677. hardcode_direct_absolute=yes
  8678. export_dynamic_flag_spec='$wl-E'
  8679. # hardcode_minus_L: Not really in the search PATH,
  8680. # but as the default location of the library.
  8681. hardcode_minus_L=yes
  8682. ;;
  8683. esac
  8684. fi
  8685. ;;
  8686. irix5* | irix6* | nonstopux*)
  8687. if test yes = "$GCC"; then
  8688. 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'
  8689. # Try to use the -exported_symbol ld option, if it does not
  8690. # work, assume that -exports_file does not work either and
  8691. # implicitly export all symbols.
  8692. # This should be the same for all languages, so no per-tag cache variable.
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8694. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8695. if ${lt_cv_irix_exported_symbol+:} false; then :
  8696. $as_echo_n "(cached) " >&6
  8697. else
  8698. save_LDFLAGS=$LDFLAGS
  8699. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8701. /* end confdefs.h. */
  8702. int foo (void) { return 0; }
  8703. _ACEOF
  8704. if ac_fn_c_try_link "$LINENO"; then :
  8705. lt_cv_irix_exported_symbol=yes
  8706. else
  8707. lt_cv_irix_exported_symbol=no
  8708. fi
  8709. rm -f core conftest.err conftest.$ac_objext \
  8710. conftest$ac_exeext conftest.$ac_ext
  8711. LDFLAGS=$save_LDFLAGS
  8712. fi
  8713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8714. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8715. if test yes = "$lt_cv_irix_exported_symbol"; then
  8716. 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'
  8717. fi
  8718. else
  8719. 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'
  8720. 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'
  8721. fi
  8722. archive_cmds_need_lc='no'
  8723. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8724. hardcode_libdir_separator=:
  8725. inherit_rpath=yes
  8726. link_all_deplibs=yes
  8727. ;;
  8728. linux*)
  8729. case $cc_basename in
  8730. tcc*)
  8731. # Fabrice Bellard et al's Tiny C Compiler
  8732. ld_shlibs=yes
  8733. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8734. ;;
  8735. esac
  8736. ;;
  8737. netbsd*)
  8738. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8739. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8740. else
  8741. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8742. fi
  8743. hardcode_libdir_flag_spec='-R$libdir'
  8744. hardcode_direct=yes
  8745. hardcode_shlibpath_var=no
  8746. ;;
  8747. newsos6)
  8748. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8749. hardcode_direct=yes
  8750. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8751. hardcode_libdir_separator=:
  8752. hardcode_shlibpath_var=no
  8753. ;;
  8754. *nto* | *qnx*)
  8755. ;;
  8756. openbsd* | bitrig*)
  8757. if test -f /usr/libexec/ld.so; then
  8758. hardcode_direct=yes
  8759. hardcode_shlibpath_var=no
  8760. hardcode_direct_absolute=yes
  8761. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8762. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8763. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8764. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8765. export_dynamic_flag_spec='$wl-E'
  8766. else
  8767. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8768. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8769. fi
  8770. else
  8771. ld_shlibs=no
  8772. fi
  8773. ;;
  8774. os2*)
  8775. hardcode_libdir_flag_spec='-L$libdir'
  8776. hardcode_minus_L=yes
  8777. allow_undefined_flag=unsupported
  8778. shrext_cmds=.dll
  8779. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8780. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8781. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8782. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8783. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8784. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8785. emximp -o $lib $output_objdir/$libname.def'
  8786. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8787. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8788. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8789. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8790. prefix_cmds="$SED"~
  8791. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8792. prefix_cmds="$prefix_cmds -e 1d";
  8793. fi~
  8794. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8795. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8796. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8797. emximp -o $lib $output_objdir/$libname.def'
  8798. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8799. enable_shared_with_static_runtimes=yes
  8800. file_list_spec='@'
  8801. ;;
  8802. osf3*)
  8803. if test yes = "$GCC"; then
  8804. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8805. 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'
  8806. else
  8807. allow_undefined_flag=' -expect_unresolved \*'
  8808. 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'
  8809. fi
  8810. archive_cmds_need_lc='no'
  8811. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8812. hardcode_libdir_separator=:
  8813. ;;
  8814. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8815. if test yes = "$GCC"; then
  8816. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8817. 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'
  8818. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8819. else
  8820. allow_undefined_flag=' -expect_unresolved \*'
  8821. 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'
  8822. 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~
  8823. $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'
  8824. # Both c and cxx compiler support -rpath directly
  8825. hardcode_libdir_flag_spec='-rpath $libdir'
  8826. fi
  8827. archive_cmds_need_lc='no'
  8828. hardcode_libdir_separator=:
  8829. ;;
  8830. solaris*)
  8831. no_undefined_flag=' -z defs'
  8832. if test yes = "$GCC"; then
  8833. wlarc='$wl'
  8834. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8835. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8836. $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'
  8837. else
  8838. case `$CC -V 2>&1` in
  8839. *"Compilers 5.0"*)
  8840. wlarc=''
  8841. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8842. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8843. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8844. ;;
  8845. *)
  8846. wlarc='$wl'
  8847. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8848. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8849. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8850. ;;
  8851. esac
  8852. fi
  8853. hardcode_libdir_flag_spec='-R$libdir'
  8854. hardcode_shlibpath_var=no
  8855. case $host_os in
  8856. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8857. *)
  8858. # The compiler driver will combine and reorder linker options,
  8859. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8860. # but is careful enough not to reorder.
  8861. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8862. if test yes = "$GCC"; then
  8863. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8864. else
  8865. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8866. fi
  8867. ;;
  8868. esac
  8869. link_all_deplibs=yes
  8870. ;;
  8871. sunos4*)
  8872. if test sequent = "$host_vendor"; then
  8873. # Use $CC to link under sequent, because it throws in some extra .o
  8874. # files that make .init and .fini sections work.
  8875. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8876. else
  8877. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8878. fi
  8879. hardcode_libdir_flag_spec='-L$libdir'
  8880. hardcode_direct=yes
  8881. hardcode_minus_L=yes
  8882. hardcode_shlibpath_var=no
  8883. ;;
  8884. sysv4)
  8885. case $host_vendor in
  8886. sni)
  8887. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8888. hardcode_direct=yes # is this really true???
  8889. ;;
  8890. siemens)
  8891. ## LD is ld it makes a PLAMLIB
  8892. ## CC just makes a GrossModule.
  8893. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8894. reload_cmds='$CC -r -o $output$reload_objs'
  8895. hardcode_direct=no
  8896. ;;
  8897. motorola)
  8898. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8899. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8900. ;;
  8901. esac
  8902. runpath_var='LD_RUN_PATH'
  8903. hardcode_shlibpath_var=no
  8904. ;;
  8905. sysv4.3*)
  8906. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8907. hardcode_shlibpath_var=no
  8908. export_dynamic_flag_spec='-Bexport'
  8909. ;;
  8910. sysv4*MP*)
  8911. if test -d /usr/nec; then
  8912. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8913. hardcode_shlibpath_var=no
  8914. runpath_var=LD_RUN_PATH
  8915. hardcode_runpath_var=yes
  8916. ld_shlibs=yes
  8917. fi
  8918. ;;
  8919. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8920. no_undefined_flag='$wl-z,text'
  8921. archive_cmds_need_lc=no
  8922. hardcode_shlibpath_var=no
  8923. runpath_var='LD_RUN_PATH'
  8924. if test yes = "$GCC"; then
  8925. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8926. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8927. else
  8928. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8929. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8930. fi
  8931. ;;
  8932. sysv5* | sco3.2v5* | sco5v6*)
  8933. # Note: We CANNOT use -z defs as we might desire, because we do not
  8934. # link with -lc, and that would cause any symbols used from libc to
  8935. # always be unresolved, which means just about no library would
  8936. # ever link correctly. If we're not using GNU ld we use -z text
  8937. # though, which does catch some bad symbols but isn't as heavy-handed
  8938. # as -z defs.
  8939. no_undefined_flag='$wl-z,text'
  8940. allow_undefined_flag='$wl-z,nodefs'
  8941. archive_cmds_need_lc=no
  8942. hardcode_shlibpath_var=no
  8943. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8944. hardcode_libdir_separator=':'
  8945. link_all_deplibs=yes
  8946. export_dynamic_flag_spec='$wl-Bexport'
  8947. runpath_var='LD_RUN_PATH'
  8948. if test yes = "$GCC"; then
  8949. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8950. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8951. else
  8952. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8953. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8954. fi
  8955. ;;
  8956. uts4*)
  8957. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8958. hardcode_libdir_flag_spec='-L$libdir'
  8959. hardcode_shlibpath_var=no
  8960. ;;
  8961. *)
  8962. ld_shlibs=no
  8963. ;;
  8964. esac
  8965. if test sni = "$host_vendor"; then
  8966. case $host in
  8967. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8968. export_dynamic_flag_spec='$wl-Blargedynsym'
  8969. ;;
  8970. esac
  8971. fi
  8972. fi
  8973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8974. $as_echo "$ld_shlibs" >&6; }
  8975. test no = "$ld_shlibs" && can_build_shared=no
  8976. with_gnu_ld=$with_gnu_ld
  8977. #
  8978. # Do we need to explicitly link libc?
  8979. #
  8980. case "x$archive_cmds_need_lc" in
  8981. x|xyes)
  8982. # Assume -lc should be added
  8983. archive_cmds_need_lc=yes
  8984. if test yes,yes = "$GCC,$enable_shared"; then
  8985. case $archive_cmds in
  8986. *'~'*)
  8987. # FIXME: we may have to deal with multi-command sequences.
  8988. ;;
  8989. '$CC '*)
  8990. # Test whether the compiler implicitly links with -lc since on some
  8991. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8992. # to ld, don't add -lc before -lgcc.
  8993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8994. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8995. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8996. $as_echo_n "(cached) " >&6
  8997. else
  8998. $RM conftest*
  8999. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9000. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9001. (eval $ac_compile) 2>&5
  9002. ac_status=$?
  9003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9004. test $ac_status = 0; } 2>conftest.err; then
  9005. soname=conftest
  9006. lib=conftest
  9007. libobjs=conftest.$ac_objext
  9008. deplibs=
  9009. wl=$lt_prog_compiler_wl
  9010. pic_flag=$lt_prog_compiler_pic
  9011. compiler_flags=-v
  9012. linker_flags=-v
  9013. verstring=
  9014. output_objdir=.
  9015. libname=conftest
  9016. lt_save_allow_undefined_flag=$allow_undefined_flag
  9017. allow_undefined_flag=
  9018. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9019. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9020. ac_status=$?
  9021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9022. test $ac_status = 0; }
  9023. then
  9024. lt_cv_archive_cmds_need_lc=no
  9025. else
  9026. lt_cv_archive_cmds_need_lc=yes
  9027. fi
  9028. allow_undefined_flag=$lt_save_allow_undefined_flag
  9029. else
  9030. cat conftest.err 1>&5
  9031. fi
  9032. $RM conftest*
  9033. fi
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9035. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9036. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9037. ;;
  9038. esac
  9039. fi
  9040. ;;
  9041. esac
  9042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9043. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9044. if test yes = "$GCC"; then
  9045. case $host_os in
  9046. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9047. *) lt_awk_arg='/^libraries:/' ;;
  9048. esac
  9049. case $host_os in
  9050. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9051. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9052. esac
  9053. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9054. case $lt_search_path_spec in
  9055. *\;*)
  9056. # if the path contains ";" then we assume it to be the separator
  9057. # otherwise default to the standard path separator (i.e. ":") - it is
  9058. # assumed that no part of a normal pathname contains ";" but that should
  9059. # okay in the real world where ";" in dirpaths is itself problematic.
  9060. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9061. ;;
  9062. *)
  9063. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9064. ;;
  9065. esac
  9066. # Ok, now we have the path, separated by spaces, we can step through it
  9067. # and add multilib dir if necessary...
  9068. lt_tmp_lt_search_path_spec=
  9069. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9070. # ...but if some path component already ends with the multilib dir we assume
  9071. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9072. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9073. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9074. lt_multi_os_dir=
  9075. ;;
  9076. esac
  9077. for lt_sys_path in $lt_search_path_spec; do
  9078. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9079. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9080. elif test -n "$lt_multi_os_dir"; then
  9081. test -d "$lt_sys_path" && \
  9082. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9083. fi
  9084. done
  9085. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9086. BEGIN {RS = " "; FS = "/|\n";} {
  9087. lt_foo = "";
  9088. lt_count = 0;
  9089. for (lt_i = NF; lt_i > 0; lt_i--) {
  9090. if ($lt_i != "" && $lt_i != ".") {
  9091. if ($lt_i == "..") {
  9092. lt_count++;
  9093. } else {
  9094. if (lt_count == 0) {
  9095. lt_foo = "/" $lt_i lt_foo;
  9096. } else {
  9097. lt_count--;
  9098. }
  9099. }
  9100. }
  9101. }
  9102. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9103. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9104. }'`
  9105. # AWK program above erroneously prepends '/' to C:/dos/paths
  9106. # for these hosts.
  9107. case $host_os in
  9108. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9109. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9110. esac
  9111. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9112. else
  9113. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9114. fi
  9115. library_names_spec=
  9116. libname_spec='lib$name'
  9117. soname_spec=
  9118. shrext_cmds=.so
  9119. postinstall_cmds=
  9120. postuninstall_cmds=
  9121. finish_cmds=
  9122. finish_eval=
  9123. shlibpath_var=
  9124. shlibpath_overrides_runpath=unknown
  9125. version_type=none
  9126. dynamic_linker="$host_os ld.so"
  9127. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9128. need_lib_prefix=unknown
  9129. hardcode_into_libs=no
  9130. # when you set need_version to no, make sure it does not cause -set_version
  9131. # flags to be left without arguments
  9132. need_version=unknown
  9133. case $host_os in
  9134. aix3*)
  9135. version_type=linux # correct to gnu/linux during the next big refactor
  9136. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9137. shlibpath_var=LIBPATH
  9138. # AIX 3 has no versioning support, so we append a major version to the name.
  9139. soname_spec='$libname$release$shared_ext$major'
  9140. ;;
  9141. aix[4-9]*)
  9142. version_type=linux # correct to gnu/linux during the next big refactor
  9143. need_lib_prefix=no
  9144. need_version=no
  9145. hardcode_into_libs=yes
  9146. if test ia64 = "$host_cpu"; then
  9147. # AIX 5 supports IA64
  9148. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. else
  9151. # With GCC up to 2.95.x, collect2 would create an import file
  9152. # for dependence libraries. The import file would start with
  9153. # the line '#! .'. This would cause the generated library to
  9154. # depend on '.', always an invalid library. This was fixed in
  9155. # development snapshots of GCC prior to 3.0.
  9156. case $host_os in
  9157. aix4 | aix4.[01] | aix4.[01].*)
  9158. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9159. echo ' yes '
  9160. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9161. :
  9162. else
  9163. can_build_shared=no
  9164. fi
  9165. ;;
  9166. esac
  9167. # Using Import Files as archive members, it is possible to support
  9168. # filename-based versioning of shared library archives on AIX. While
  9169. # this would work for both with and without runtime linking, it will
  9170. # prevent static linking of such archives. So we do filename-based
  9171. # shared library versioning with .so extension only, which is used
  9172. # when both runtime linking and shared linking is enabled.
  9173. # Unfortunately, runtime linking may impact performance, so we do
  9174. # not want this to be the default eventually. Also, we use the
  9175. # versioned .so libs for executables only if there is the -brtl
  9176. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9177. # To allow for filename-based versioning support, we need to create
  9178. # libNAME.so.V as an archive file, containing:
  9179. # *) an Import File, referring to the versioned filename of the
  9180. # archive as well as the shared archive member, telling the
  9181. # bitwidth (32 or 64) of that shared object, and providing the
  9182. # list of exported symbols of that shared object, eventually
  9183. # decorated with the 'weak' keyword
  9184. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9185. # it being seen by the linker.
  9186. # At run time we better use the real file rather than another symlink,
  9187. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9188. case $with_aix_soname,$aix_use_runtimelinking in
  9189. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9190. # soname into executable. Probably we can add versioning support to
  9191. # collect2, so additional links can be useful in future.
  9192. aix,yes) # traditional libtool
  9193. dynamic_linker='AIX unversionable lib.so'
  9194. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9195. # instead of lib<name>.a to let people know that these are not
  9196. # typical AIX shared libraries.
  9197. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9198. ;;
  9199. aix,no) # traditional AIX only
  9200. dynamic_linker='AIX lib.a(lib.so.V)'
  9201. # We preserve .a as extension for shared libraries through AIX4.2
  9202. # and later when we are not doing run time linking.
  9203. library_names_spec='$libname$release.a $libname.a'
  9204. soname_spec='$libname$release$shared_ext$major'
  9205. ;;
  9206. svr4,*) # full svr4 only
  9207. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9208. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9209. # We do not specify a path in Import Files, so LIBPATH fires.
  9210. shlibpath_overrides_runpath=yes
  9211. ;;
  9212. *,yes) # both, prefer svr4
  9213. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9214. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9215. # unpreferred sharedlib libNAME.a needs extra handling
  9216. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9217. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9218. # We do not specify a path in Import Files, so LIBPATH fires.
  9219. shlibpath_overrides_runpath=yes
  9220. ;;
  9221. *,no) # both, prefer aix
  9222. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9223. library_names_spec='$libname$release.a $libname.a'
  9224. soname_spec='$libname$release$shared_ext$major'
  9225. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9226. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9227. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9228. ;;
  9229. esac
  9230. shlibpath_var=LIBPATH
  9231. fi
  9232. ;;
  9233. amigaos*)
  9234. case $host_cpu in
  9235. powerpc)
  9236. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9237. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9238. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9239. ;;
  9240. m68k)
  9241. library_names_spec='$libname.ixlibrary $libname.a'
  9242. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9243. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9244. ;;
  9245. esac
  9246. ;;
  9247. beos*)
  9248. library_names_spec='$libname$shared_ext'
  9249. dynamic_linker="$host_os ld.so"
  9250. shlibpath_var=LIBRARY_PATH
  9251. ;;
  9252. bsdi[45]*)
  9253. version_type=linux # correct to gnu/linux during the next big refactor
  9254. need_version=no
  9255. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9256. soname_spec='$libname$release$shared_ext$major'
  9257. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9258. shlibpath_var=LD_LIBRARY_PATH
  9259. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9260. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9261. # the default ld.so.conf also contains /usr/contrib/lib and
  9262. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9263. # libtool to hard-code these into programs
  9264. ;;
  9265. cygwin* | mingw* | pw32* | cegcc*)
  9266. version_type=windows
  9267. shrext_cmds=.dll
  9268. need_version=no
  9269. need_lib_prefix=no
  9270. case $GCC,$cc_basename in
  9271. yes,*)
  9272. # gcc
  9273. library_names_spec='$libname.dll.a'
  9274. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9275. postinstall_cmds='base_file=`basename \$file`~
  9276. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9277. dldir=$destdir/`dirname \$dlpath`~
  9278. test -d \$dldir || mkdir -p \$dldir~
  9279. $install_prog $dir/$dlname \$dldir/$dlname~
  9280. chmod a+x \$dldir/$dlname~
  9281. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9282. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9283. fi'
  9284. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9285. dlpath=$dir/\$dldll~
  9286. $RM \$dlpath'
  9287. shlibpath_overrides_runpath=yes
  9288. case $host_os in
  9289. cygwin*)
  9290. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9291. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9292. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9293. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9294. ;;
  9295. mingw* | cegcc*)
  9296. # MinGW DLLs use traditional 'lib' prefix
  9297. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9298. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9299. ;;
  9300. pw32*)
  9301. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9302. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9303. ;;
  9304. esac
  9305. dynamic_linker='Win32 ld.exe'
  9306. ;;
  9307. *,cl*)
  9308. # Native MSVC
  9309. libname_spec='$name'
  9310. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9311. library_names_spec='$libname.dll.lib'
  9312. case $build_os in
  9313. mingw*)
  9314. sys_lib_search_path_spec=
  9315. lt_save_ifs=$IFS
  9316. IFS=';'
  9317. for lt_path in $LIB
  9318. do
  9319. IFS=$lt_save_ifs
  9320. # Let DOS variable expansion print the short 8.3 style file name.
  9321. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9322. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9323. done
  9324. IFS=$lt_save_ifs
  9325. # Convert to MSYS style.
  9326. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9327. ;;
  9328. cygwin*)
  9329. # Convert to unix form, then to dos form, then back to unix form
  9330. # but this time dos style (no spaces!) so that the unix form looks
  9331. # like /cygdrive/c/PROGRA~1:/cygdr...
  9332. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9333. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9334. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9335. ;;
  9336. *)
  9337. sys_lib_search_path_spec=$LIB
  9338. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9339. # It is most probably a Windows format PATH.
  9340. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9341. else
  9342. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9343. fi
  9344. # FIXME: find the short name or the path components, as spaces are
  9345. # common. (e.g. "Program Files" -> "PROGRA~1")
  9346. ;;
  9347. esac
  9348. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9349. postinstall_cmds='base_file=`basename \$file`~
  9350. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9351. dldir=$destdir/`dirname \$dlpath`~
  9352. test -d \$dldir || mkdir -p \$dldir~
  9353. $install_prog $dir/$dlname \$dldir/$dlname'
  9354. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9355. dlpath=$dir/\$dldll~
  9356. $RM \$dlpath'
  9357. shlibpath_overrides_runpath=yes
  9358. dynamic_linker='Win32 link.exe'
  9359. ;;
  9360. *)
  9361. # Assume MSVC wrapper
  9362. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9363. dynamic_linker='Win32 ld.exe'
  9364. ;;
  9365. esac
  9366. # FIXME: first we should search . and the directory the executable is in
  9367. shlibpath_var=PATH
  9368. ;;
  9369. darwin* | rhapsody*)
  9370. dynamic_linker="$host_os dyld"
  9371. version_type=darwin
  9372. need_lib_prefix=no
  9373. need_version=no
  9374. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9375. soname_spec='$libname$release$major$shared_ext'
  9376. shlibpath_overrides_runpath=yes
  9377. shlibpath_var=DYLD_LIBRARY_PATH
  9378. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9379. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9380. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9381. ;;
  9382. dgux*)
  9383. version_type=linux # correct to gnu/linux during the next big refactor
  9384. need_lib_prefix=no
  9385. need_version=no
  9386. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9387. soname_spec='$libname$release$shared_ext$major'
  9388. shlibpath_var=LD_LIBRARY_PATH
  9389. ;;
  9390. freebsd* | dragonfly* | midnightbsd*)
  9391. # DragonFly does not have aout. When/if they implement a new
  9392. # versioning mechanism, adjust this.
  9393. if test -x /usr/bin/objformat; then
  9394. objformat=`/usr/bin/objformat`
  9395. else
  9396. case $host_os in
  9397. freebsd[23].*) objformat=aout ;;
  9398. *) objformat=elf ;;
  9399. esac
  9400. fi
  9401. version_type=freebsd-$objformat
  9402. case $version_type in
  9403. freebsd-elf*)
  9404. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9405. soname_spec='$libname$release$shared_ext$major'
  9406. need_version=no
  9407. need_lib_prefix=no
  9408. ;;
  9409. freebsd-*)
  9410. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9411. need_version=yes
  9412. ;;
  9413. esac
  9414. shlibpath_var=LD_LIBRARY_PATH
  9415. case $host_os in
  9416. freebsd2.*)
  9417. shlibpath_overrides_runpath=yes
  9418. ;;
  9419. freebsd3.[01]* | freebsdelf3.[01]*)
  9420. shlibpath_overrides_runpath=yes
  9421. hardcode_into_libs=yes
  9422. ;;
  9423. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9424. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9425. shlibpath_overrides_runpath=no
  9426. hardcode_into_libs=yes
  9427. ;;
  9428. *) # from 4.6 on, and DragonFly
  9429. shlibpath_overrides_runpath=yes
  9430. hardcode_into_libs=yes
  9431. ;;
  9432. esac
  9433. ;;
  9434. haiku*)
  9435. version_type=linux # correct to gnu/linux during the next big refactor
  9436. need_lib_prefix=no
  9437. need_version=no
  9438. dynamic_linker="$host_os runtime_loader"
  9439. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9440. soname_spec='$libname$release$shared_ext$major'
  9441. shlibpath_var=LIBRARY_PATH
  9442. shlibpath_overrides_runpath=no
  9443. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9444. hardcode_into_libs=yes
  9445. ;;
  9446. hpux9* | hpux10* | hpux11*)
  9447. # Give a soname corresponding to the major version so that dld.sl refuses to
  9448. # link against other versions.
  9449. version_type=sunos
  9450. need_lib_prefix=no
  9451. need_version=no
  9452. case $host_cpu in
  9453. ia64*)
  9454. shrext_cmds='.so'
  9455. hardcode_into_libs=yes
  9456. dynamic_linker="$host_os dld.so"
  9457. shlibpath_var=LD_LIBRARY_PATH
  9458. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9459. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9460. soname_spec='$libname$release$shared_ext$major'
  9461. if test 32 = "$HPUX_IA64_MODE"; then
  9462. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9463. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9464. else
  9465. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9466. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9467. fi
  9468. ;;
  9469. hppa*64*)
  9470. shrext_cmds='.sl'
  9471. hardcode_into_libs=yes
  9472. dynamic_linker="$host_os dld.sl"
  9473. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9474. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9475. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9476. soname_spec='$libname$release$shared_ext$major'
  9477. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9478. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9479. ;;
  9480. *)
  9481. shrext_cmds='.sl'
  9482. dynamic_linker="$host_os dld.sl"
  9483. shlibpath_var=SHLIB_PATH
  9484. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9485. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9486. soname_spec='$libname$release$shared_ext$major'
  9487. ;;
  9488. esac
  9489. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9490. postinstall_cmds='chmod 555 $lib'
  9491. # or fails outright, so override atomically:
  9492. install_override_mode=555
  9493. ;;
  9494. interix[3-9]*)
  9495. version_type=linux # correct to gnu/linux during the next big refactor
  9496. need_lib_prefix=no
  9497. need_version=no
  9498. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9499. soname_spec='$libname$release$shared_ext$major'
  9500. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9501. shlibpath_var=LD_LIBRARY_PATH
  9502. shlibpath_overrides_runpath=no
  9503. hardcode_into_libs=yes
  9504. ;;
  9505. irix5* | irix6* | nonstopux*)
  9506. case $host_os in
  9507. nonstopux*) version_type=nonstopux ;;
  9508. *)
  9509. if test yes = "$lt_cv_prog_gnu_ld"; then
  9510. version_type=linux # correct to gnu/linux during the next big refactor
  9511. else
  9512. version_type=irix
  9513. fi ;;
  9514. esac
  9515. need_lib_prefix=no
  9516. need_version=no
  9517. soname_spec='$libname$release$shared_ext$major'
  9518. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9519. case $host_os in
  9520. irix5* | nonstopux*)
  9521. libsuff= shlibsuff=
  9522. ;;
  9523. *)
  9524. case $LD in # libtool.m4 will add one of these switches to LD
  9525. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9526. libsuff= shlibsuff= libmagic=32-bit;;
  9527. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9528. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9529. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9530. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9531. *) libsuff= shlibsuff= libmagic=never-match;;
  9532. esac
  9533. ;;
  9534. esac
  9535. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9536. shlibpath_overrides_runpath=no
  9537. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9538. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9539. hardcode_into_libs=yes
  9540. ;;
  9541. # No shared lib support for Linux oldld, aout, or coff.
  9542. linux*oldld* | linux*aout* | linux*coff*)
  9543. dynamic_linker=no
  9544. ;;
  9545. linux*android*)
  9546. version_type=none # Android doesn't support versioned libraries.
  9547. need_lib_prefix=no
  9548. need_version=no
  9549. library_names_spec='$libname$release$shared_ext'
  9550. soname_spec='$libname$release$shared_ext'
  9551. finish_cmds=
  9552. shlibpath_var=LD_LIBRARY_PATH
  9553. shlibpath_overrides_runpath=yes
  9554. # This implies no fast_install, which is unacceptable.
  9555. # Some rework will be needed to allow for fast_install
  9556. # before this can be enabled.
  9557. hardcode_into_libs=yes
  9558. dynamic_linker='Android linker'
  9559. # Don't embed -rpath directories since the linker doesn't support them.
  9560. hardcode_libdir_flag_spec='-L$libdir'
  9561. ;;
  9562. # This must be glibc/ELF.
  9563. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9564. version_type=linux # correct to gnu/linux during the next big refactor
  9565. need_lib_prefix=no
  9566. need_version=no
  9567. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9568. soname_spec='$libname$release$shared_ext$major'
  9569. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9570. shlibpath_var=LD_LIBRARY_PATH
  9571. shlibpath_overrides_runpath=no
  9572. # Some binutils ld are patched to set DT_RUNPATH
  9573. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9574. $as_echo_n "(cached) " >&6
  9575. else
  9576. lt_cv_shlibpath_overrides_runpath=no
  9577. save_LDFLAGS=$LDFLAGS
  9578. save_libdir=$libdir
  9579. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9580. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9582. /* end confdefs.h. */
  9583. int
  9584. main ()
  9585. {
  9586. ;
  9587. return 0;
  9588. }
  9589. _ACEOF
  9590. if ac_fn_c_try_link "$LINENO"; then :
  9591. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9592. lt_cv_shlibpath_overrides_runpath=yes
  9593. fi
  9594. fi
  9595. rm -f core conftest.err conftest.$ac_objext \
  9596. conftest$ac_exeext conftest.$ac_ext
  9597. LDFLAGS=$save_LDFLAGS
  9598. libdir=$save_libdir
  9599. fi
  9600. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9601. # This implies no fast_install, which is unacceptable.
  9602. # Some rework will be needed to allow for fast_install
  9603. # before this can be enabled.
  9604. hardcode_into_libs=yes
  9605. # Add ABI-specific directories to the system library path.
  9606. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9607. # Ideally, we could use ldconfig to report *all* directores which are
  9608. # searched for libraries, however this is still not possible. Aside from not
  9609. # being certain /sbin/ldconfig is available, command
  9610. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9611. # even though it is searched at run-time. Try to do the best guess by
  9612. # appending ld.so.conf contents (and includes) to the search path.
  9613. if test -f /etc/ld.so.conf; then
  9614. 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' ' '`
  9615. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9616. fi
  9617. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9618. # powerpc, because MkLinux only supported shared libraries with the
  9619. # GNU dynamic linker. Since this was broken with cross compilers,
  9620. # most powerpc-linux boxes support dynamic linking these days and
  9621. # people can always --disable-shared, the test was removed, and we
  9622. # assume the GNU/Linux dynamic linker is in use.
  9623. dynamic_linker='GNU/Linux ld.so'
  9624. ;;
  9625. netbsd*)
  9626. version_type=sunos
  9627. need_lib_prefix=no
  9628. need_version=no
  9629. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9630. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9631. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9632. dynamic_linker='NetBSD (a.out) ld.so'
  9633. else
  9634. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9635. soname_spec='$libname$release$shared_ext$major'
  9636. dynamic_linker='NetBSD ld.elf_so'
  9637. fi
  9638. shlibpath_var=LD_LIBRARY_PATH
  9639. shlibpath_overrides_runpath=yes
  9640. hardcode_into_libs=yes
  9641. ;;
  9642. newsos6)
  9643. version_type=linux # correct to gnu/linux during the next big refactor
  9644. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9645. shlibpath_var=LD_LIBRARY_PATH
  9646. shlibpath_overrides_runpath=yes
  9647. ;;
  9648. *nto* | *qnx*)
  9649. version_type=qnx
  9650. need_lib_prefix=no
  9651. need_version=no
  9652. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9653. soname_spec='$libname$release$shared_ext$major'
  9654. shlibpath_var=LD_LIBRARY_PATH
  9655. shlibpath_overrides_runpath=no
  9656. hardcode_into_libs=yes
  9657. dynamic_linker='ldqnx.so'
  9658. ;;
  9659. openbsd* | bitrig*)
  9660. version_type=sunos
  9661. sys_lib_dlsearch_path_spec=/usr/lib
  9662. need_lib_prefix=no
  9663. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9664. need_version=no
  9665. else
  9666. need_version=yes
  9667. fi
  9668. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9669. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9670. shlibpath_var=LD_LIBRARY_PATH
  9671. shlibpath_overrides_runpath=yes
  9672. ;;
  9673. os2*)
  9674. libname_spec='$name'
  9675. shrext_cmds=.dll
  9676. need_lib_prefix=no
  9677. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9678. # SDL customization: removed versioning support.
  9679. # version_type=windows
  9680. # need_version=no
  9681. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9682. # v=$($ECHO $release$versuffix | tr -d .-);
  9683. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9684. # $ECHO $n$v`$shared_ext'
  9685. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9686. library_names_spec='${libname}_dll.$libext'
  9687. dynamic_linker='OS/2 ld.exe'
  9688. shlibpath_var=BEGINLIBPATH
  9689. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9690. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9691. postinstall_cmds='base_file=`basename \$file`~
  9692. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9693. dldir=$destdir/`dirname \$dlpath`~
  9694. test -d \$dldir || mkdir -p \$dldir~
  9695. $install_prog $dir/$dlname \$dldir/$dlname~
  9696. chmod a+x \$dldir/$dlname~
  9697. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9698. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9699. fi'
  9700. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9701. dlpath=$dir/\$dldll~
  9702. $RM \$dlpath'
  9703. ;;
  9704. osf3* | osf4* | osf5*)
  9705. version_type=osf
  9706. need_lib_prefix=no
  9707. need_version=no
  9708. soname_spec='$libname$release$shared_ext$major'
  9709. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9710. shlibpath_var=LD_LIBRARY_PATH
  9711. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9712. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9713. ;;
  9714. rdos*)
  9715. dynamic_linker=no
  9716. ;;
  9717. solaris*)
  9718. version_type=linux # correct to gnu/linux during the next big refactor
  9719. need_lib_prefix=no
  9720. need_version=no
  9721. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9722. soname_spec='$libname$release$shared_ext$major'
  9723. shlibpath_var=LD_LIBRARY_PATH
  9724. shlibpath_overrides_runpath=yes
  9725. hardcode_into_libs=yes
  9726. # ldd complains unless libraries are executable
  9727. postinstall_cmds='chmod +x $lib'
  9728. ;;
  9729. sunos4*)
  9730. version_type=sunos
  9731. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9732. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9733. shlibpath_var=LD_LIBRARY_PATH
  9734. shlibpath_overrides_runpath=yes
  9735. if test yes = "$with_gnu_ld"; then
  9736. need_lib_prefix=no
  9737. fi
  9738. need_version=yes
  9739. ;;
  9740. sysv4 | sysv4.3*)
  9741. version_type=linux # correct to gnu/linux during the next big refactor
  9742. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9743. soname_spec='$libname$release$shared_ext$major'
  9744. shlibpath_var=LD_LIBRARY_PATH
  9745. case $host_vendor in
  9746. sni)
  9747. shlibpath_overrides_runpath=no
  9748. need_lib_prefix=no
  9749. runpath_var=LD_RUN_PATH
  9750. ;;
  9751. siemens)
  9752. need_lib_prefix=no
  9753. ;;
  9754. motorola)
  9755. need_lib_prefix=no
  9756. need_version=no
  9757. shlibpath_overrides_runpath=no
  9758. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9759. ;;
  9760. esac
  9761. ;;
  9762. sysv4*MP*)
  9763. if test -d /usr/nec; then
  9764. version_type=linux # correct to gnu/linux during the next big refactor
  9765. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9766. soname_spec='$libname$shared_ext.$major'
  9767. shlibpath_var=LD_LIBRARY_PATH
  9768. fi
  9769. ;;
  9770. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9771. version_type=sco
  9772. need_lib_prefix=no
  9773. need_version=no
  9774. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9775. soname_spec='$libname$release$shared_ext$major'
  9776. shlibpath_var=LD_LIBRARY_PATH
  9777. shlibpath_overrides_runpath=yes
  9778. hardcode_into_libs=yes
  9779. if test yes = "$with_gnu_ld"; then
  9780. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9781. else
  9782. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9783. case $host_os in
  9784. sco3.2v5*)
  9785. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9786. ;;
  9787. esac
  9788. fi
  9789. sys_lib_dlsearch_path_spec='/usr/lib'
  9790. ;;
  9791. tpf*)
  9792. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9793. version_type=linux # correct to gnu/linux during the next big refactor
  9794. need_lib_prefix=no
  9795. need_version=no
  9796. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9797. shlibpath_var=LD_LIBRARY_PATH
  9798. shlibpath_overrides_runpath=no
  9799. hardcode_into_libs=yes
  9800. ;;
  9801. uts4*)
  9802. version_type=linux # correct to gnu/linux during the next big refactor
  9803. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9804. soname_spec='$libname$release$shared_ext$major'
  9805. shlibpath_var=LD_LIBRARY_PATH
  9806. ;;
  9807. *)
  9808. dynamic_linker=no
  9809. ;;
  9810. esac
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9812. $as_echo "$dynamic_linker" >&6; }
  9813. test no = "$dynamic_linker" && can_build_shared=no
  9814. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9815. if test yes = "$GCC"; then
  9816. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9817. fi
  9818. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9819. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9820. fi
  9821. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9822. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9823. fi
  9824. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9825. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9826. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9827. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9828. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9829. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9831. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9832. hardcode_action=
  9833. if test -n "$hardcode_libdir_flag_spec" ||
  9834. test -n "$runpath_var" ||
  9835. test yes = "$hardcode_automatic"; then
  9836. # We can hardcode non-existent directories.
  9837. if test no != "$hardcode_direct" &&
  9838. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9839. # have to relink, otherwise we might link with an installed library
  9840. # when we should be linking with a yet-to-be-installed one
  9841. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9842. test no != "$hardcode_minus_L"; then
  9843. # Linking always hardcodes the temporary library directory.
  9844. hardcode_action=relink
  9845. else
  9846. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9847. hardcode_action=immediate
  9848. fi
  9849. else
  9850. # We cannot hardcode anything, or else we can only hardcode existing
  9851. # directories.
  9852. hardcode_action=unsupported
  9853. fi
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9855. $as_echo "$hardcode_action" >&6; }
  9856. if test relink = "$hardcode_action" ||
  9857. test yes = "$inherit_rpath"; then
  9858. # Fast installation is not supported
  9859. enable_fast_install=no
  9860. elif test yes = "$shlibpath_overrides_runpath" ||
  9861. test no = "$enable_shared"; then
  9862. # Fast installation is not necessary
  9863. enable_fast_install=needless
  9864. fi
  9865. if test yes != "$enable_dlopen"; then
  9866. enable_dlopen=unknown
  9867. enable_dlopen_self=unknown
  9868. enable_dlopen_self_static=unknown
  9869. else
  9870. lt_cv_dlopen=no
  9871. lt_cv_dlopen_libs=
  9872. case $host_os in
  9873. beos*)
  9874. lt_cv_dlopen=load_add_on
  9875. lt_cv_dlopen_libs=
  9876. lt_cv_dlopen_self=yes
  9877. ;;
  9878. mingw* | pw32* | cegcc*)
  9879. lt_cv_dlopen=LoadLibrary
  9880. lt_cv_dlopen_libs=
  9881. ;;
  9882. cygwin*)
  9883. lt_cv_dlopen=dlopen
  9884. lt_cv_dlopen_libs=
  9885. ;;
  9886. darwin*)
  9887. # if libdl is installed we need to link against it
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9889. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9890. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9891. $as_echo_n "(cached) " >&6
  9892. else
  9893. ac_check_lib_save_LIBS=$LIBS
  9894. LIBS="-ldl $LIBS"
  9895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9896. /* end confdefs.h. */
  9897. /* Override any GCC internal prototype to avoid an error.
  9898. Use char because int might match the return type of a GCC
  9899. builtin and then its argument prototype would still apply. */
  9900. #ifdef __cplusplus
  9901. extern "C"
  9902. #endif
  9903. char dlopen ();
  9904. int
  9905. main ()
  9906. {
  9907. return dlopen ();
  9908. ;
  9909. return 0;
  9910. }
  9911. _ACEOF
  9912. if ac_fn_c_try_link "$LINENO"; then :
  9913. ac_cv_lib_dl_dlopen=yes
  9914. else
  9915. ac_cv_lib_dl_dlopen=no
  9916. fi
  9917. rm -f core conftest.err conftest.$ac_objext \
  9918. conftest$ac_exeext conftest.$ac_ext
  9919. LIBS=$ac_check_lib_save_LIBS
  9920. fi
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9922. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9923. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9924. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9925. else
  9926. lt_cv_dlopen=dyld
  9927. lt_cv_dlopen_libs=
  9928. lt_cv_dlopen_self=yes
  9929. fi
  9930. ;;
  9931. tpf*)
  9932. # Don't try to run any link tests for TPF. We know it's impossible
  9933. # because TPF is a cross-compiler, and we know how we open DSOs.
  9934. lt_cv_dlopen=dlopen
  9935. lt_cv_dlopen_libs=
  9936. lt_cv_dlopen_self=no
  9937. ;;
  9938. *)
  9939. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9940. if test "x$ac_cv_func_shl_load" = xyes; then :
  9941. lt_cv_dlopen=shl_load
  9942. else
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9944. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9945. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. ac_check_lib_save_LIBS=$LIBS
  9949. LIBS="-ldld $LIBS"
  9950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9951. /* end confdefs.h. */
  9952. /* Override any GCC internal prototype to avoid an error.
  9953. Use char because int might match the return type of a GCC
  9954. builtin and then its argument prototype would still apply. */
  9955. #ifdef __cplusplus
  9956. extern "C"
  9957. #endif
  9958. char shl_load ();
  9959. int
  9960. main ()
  9961. {
  9962. return shl_load ();
  9963. ;
  9964. return 0;
  9965. }
  9966. _ACEOF
  9967. if ac_fn_c_try_link "$LINENO"; then :
  9968. ac_cv_lib_dld_shl_load=yes
  9969. else
  9970. ac_cv_lib_dld_shl_load=no
  9971. fi
  9972. rm -f core conftest.err conftest.$ac_objext \
  9973. conftest$ac_exeext conftest.$ac_ext
  9974. LIBS=$ac_check_lib_save_LIBS
  9975. fi
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9977. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9978. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9979. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9980. else
  9981. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9982. if test "x$ac_cv_func_dlopen" = xyes; then :
  9983. lt_cv_dlopen=dlopen
  9984. else
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9986. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9987. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9988. $as_echo_n "(cached) " >&6
  9989. else
  9990. ac_check_lib_save_LIBS=$LIBS
  9991. LIBS="-ldl $LIBS"
  9992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9993. /* end confdefs.h. */
  9994. /* Override any GCC internal prototype to avoid an error.
  9995. Use char because int might match the return type of a GCC
  9996. builtin and then its argument prototype would still apply. */
  9997. #ifdef __cplusplus
  9998. extern "C"
  9999. #endif
  10000. char dlopen ();
  10001. int
  10002. main ()
  10003. {
  10004. return dlopen ();
  10005. ;
  10006. return 0;
  10007. }
  10008. _ACEOF
  10009. if ac_fn_c_try_link "$LINENO"; then :
  10010. ac_cv_lib_dl_dlopen=yes
  10011. else
  10012. ac_cv_lib_dl_dlopen=no
  10013. fi
  10014. rm -f core conftest.err conftest.$ac_objext \
  10015. conftest$ac_exeext conftest.$ac_ext
  10016. LIBS=$ac_check_lib_save_LIBS
  10017. fi
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10019. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10020. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10021. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10022. else
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10024. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10025. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10026. $as_echo_n "(cached) " >&6
  10027. else
  10028. ac_check_lib_save_LIBS=$LIBS
  10029. LIBS="-lsvld $LIBS"
  10030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10031. /* end confdefs.h. */
  10032. /* Override any GCC internal prototype to avoid an error.
  10033. Use char because int might match the return type of a GCC
  10034. builtin and then its argument prototype would still apply. */
  10035. #ifdef __cplusplus
  10036. extern "C"
  10037. #endif
  10038. char dlopen ();
  10039. int
  10040. main ()
  10041. {
  10042. return dlopen ();
  10043. ;
  10044. return 0;
  10045. }
  10046. _ACEOF
  10047. if ac_fn_c_try_link "$LINENO"; then :
  10048. ac_cv_lib_svld_dlopen=yes
  10049. else
  10050. ac_cv_lib_svld_dlopen=no
  10051. fi
  10052. rm -f core conftest.err conftest.$ac_objext \
  10053. conftest$ac_exeext conftest.$ac_ext
  10054. LIBS=$ac_check_lib_save_LIBS
  10055. fi
  10056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10057. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10058. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10059. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10060. else
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10062. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10063. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10064. $as_echo_n "(cached) " >&6
  10065. else
  10066. ac_check_lib_save_LIBS=$LIBS
  10067. LIBS="-ldld $LIBS"
  10068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10069. /* end confdefs.h. */
  10070. /* Override any GCC internal prototype to avoid an error.
  10071. Use char because int might match the return type of a GCC
  10072. builtin and then its argument prototype would still apply. */
  10073. #ifdef __cplusplus
  10074. extern "C"
  10075. #endif
  10076. char dld_link ();
  10077. int
  10078. main ()
  10079. {
  10080. return dld_link ();
  10081. ;
  10082. return 0;
  10083. }
  10084. _ACEOF
  10085. if ac_fn_c_try_link "$LINENO"; then :
  10086. ac_cv_lib_dld_dld_link=yes
  10087. else
  10088. ac_cv_lib_dld_dld_link=no
  10089. fi
  10090. rm -f core conftest.err conftest.$ac_objext \
  10091. conftest$ac_exeext conftest.$ac_ext
  10092. LIBS=$ac_check_lib_save_LIBS
  10093. fi
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10095. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10096. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10097. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10098. fi
  10099. fi
  10100. fi
  10101. fi
  10102. fi
  10103. fi
  10104. ;;
  10105. esac
  10106. if test no = "$lt_cv_dlopen"; then
  10107. enable_dlopen=no
  10108. else
  10109. enable_dlopen=yes
  10110. fi
  10111. case $lt_cv_dlopen in
  10112. dlopen)
  10113. save_CPPFLAGS=$CPPFLAGS
  10114. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10115. save_LDFLAGS=$LDFLAGS
  10116. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10117. save_LIBS=$LIBS
  10118. LIBS="$lt_cv_dlopen_libs $LIBS"
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10120. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10121. if ${lt_cv_dlopen_self+:} false; then :
  10122. $as_echo_n "(cached) " >&6
  10123. else
  10124. if test yes = "$cross_compiling"; then :
  10125. lt_cv_dlopen_self=cross
  10126. else
  10127. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10128. lt_status=$lt_dlunknown
  10129. cat > conftest.$ac_ext <<_LT_EOF
  10130. #line $LINENO "configure"
  10131. #include "confdefs.h"
  10132. #if HAVE_DLFCN_H
  10133. #include <dlfcn.h>
  10134. #endif
  10135. #include <stdio.h>
  10136. #ifdef RTLD_GLOBAL
  10137. # define LT_DLGLOBAL RTLD_GLOBAL
  10138. #else
  10139. # ifdef DL_GLOBAL
  10140. # define LT_DLGLOBAL DL_GLOBAL
  10141. # else
  10142. # define LT_DLGLOBAL 0
  10143. # endif
  10144. #endif
  10145. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10146. find out it does not work in some platform. */
  10147. #ifndef LT_DLLAZY_OR_NOW
  10148. # ifdef RTLD_LAZY
  10149. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10150. # else
  10151. # ifdef DL_LAZY
  10152. # define LT_DLLAZY_OR_NOW DL_LAZY
  10153. # else
  10154. # ifdef RTLD_NOW
  10155. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10156. # else
  10157. # ifdef DL_NOW
  10158. # define LT_DLLAZY_OR_NOW DL_NOW
  10159. # else
  10160. # define LT_DLLAZY_OR_NOW 0
  10161. # endif
  10162. # endif
  10163. # endif
  10164. # endif
  10165. #endif
  10166. /* When -fvisibility=hidden is used, assume the code has been annotated
  10167. correspondingly for the symbols needed. */
  10168. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10169. int fnord () __attribute__((visibility("default")));
  10170. #endif
  10171. int fnord () { return 42; }
  10172. int main ()
  10173. {
  10174. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10175. int status = $lt_dlunknown;
  10176. if (self)
  10177. {
  10178. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10179. else
  10180. {
  10181. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10182. else puts (dlerror ());
  10183. }
  10184. /* dlclose (self); */
  10185. }
  10186. else
  10187. puts (dlerror ());
  10188. return status;
  10189. }
  10190. _LT_EOF
  10191. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10192. (eval $ac_link) 2>&5
  10193. ac_status=$?
  10194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10195. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10196. (./conftest; exit; ) >&5 2>/dev/null
  10197. lt_status=$?
  10198. case x$lt_status in
  10199. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10200. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10201. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10202. esac
  10203. else :
  10204. # compilation failed
  10205. lt_cv_dlopen_self=no
  10206. fi
  10207. fi
  10208. rm -fr conftest*
  10209. fi
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10211. $as_echo "$lt_cv_dlopen_self" >&6; }
  10212. if test yes = "$lt_cv_dlopen_self"; then
  10213. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10215. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10216. if ${lt_cv_dlopen_self_static+:} false; then :
  10217. $as_echo_n "(cached) " >&6
  10218. else
  10219. if test yes = "$cross_compiling"; then :
  10220. lt_cv_dlopen_self_static=cross
  10221. else
  10222. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10223. lt_status=$lt_dlunknown
  10224. cat > conftest.$ac_ext <<_LT_EOF
  10225. #line $LINENO "configure"
  10226. #include "confdefs.h"
  10227. #if HAVE_DLFCN_H
  10228. #include <dlfcn.h>
  10229. #endif
  10230. #include <stdio.h>
  10231. #ifdef RTLD_GLOBAL
  10232. # define LT_DLGLOBAL RTLD_GLOBAL
  10233. #else
  10234. # ifdef DL_GLOBAL
  10235. # define LT_DLGLOBAL DL_GLOBAL
  10236. # else
  10237. # define LT_DLGLOBAL 0
  10238. # endif
  10239. #endif
  10240. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10241. find out it does not work in some platform. */
  10242. #ifndef LT_DLLAZY_OR_NOW
  10243. # ifdef RTLD_LAZY
  10244. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10245. # else
  10246. # ifdef DL_LAZY
  10247. # define LT_DLLAZY_OR_NOW DL_LAZY
  10248. # else
  10249. # ifdef RTLD_NOW
  10250. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10251. # else
  10252. # ifdef DL_NOW
  10253. # define LT_DLLAZY_OR_NOW DL_NOW
  10254. # else
  10255. # define LT_DLLAZY_OR_NOW 0
  10256. # endif
  10257. # endif
  10258. # endif
  10259. # endif
  10260. #endif
  10261. /* When -fvisibility=hidden is used, assume the code has been annotated
  10262. correspondingly for the symbols needed. */
  10263. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10264. int fnord () __attribute__((visibility("default")));
  10265. #endif
  10266. int fnord () { return 42; }
  10267. int main ()
  10268. {
  10269. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10270. int status = $lt_dlunknown;
  10271. if (self)
  10272. {
  10273. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10274. else
  10275. {
  10276. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10277. else puts (dlerror ());
  10278. }
  10279. /* dlclose (self); */
  10280. }
  10281. else
  10282. puts (dlerror ());
  10283. return status;
  10284. }
  10285. _LT_EOF
  10286. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10287. (eval $ac_link) 2>&5
  10288. ac_status=$?
  10289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10290. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10291. (./conftest; exit; ) >&5 2>/dev/null
  10292. lt_status=$?
  10293. case x$lt_status in
  10294. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10295. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10296. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10297. esac
  10298. else :
  10299. # compilation failed
  10300. lt_cv_dlopen_self_static=no
  10301. fi
  10302. fi
  10303. rm -fr conftest*
  10304. fi
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10306. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10307. fi
  10308. CPPFLAGS=$save_CPPFLAGS
  10309. LDFLAGS=$save_LDFLAGS
  10310. LIBS=$save_LIBS
  10311. ;;
  10312. esac
  10313. case $lt_cv_dlopen_self in
  10314. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10315. *) enable_dlopen_self=unknown ;;
  10316. esac
  10317. case $lt_cv_dlopen_self_static in
  10318. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10319. *) enable_dlopen_self_static=unknown ;;
  10320. esac
  10321. fi
  10322. striplib=
  10323. old_striplib=
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10325. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10326. if test -z "$STRIP"; then
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10328. $as_echo "no" >&6; }
  10329. else
  10330. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10331. old_striplib="$STRIP --strip-debug"
  10332. striplib="$STRIP --strip-unneeded"
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10334. $as_echo "yes" >&6; }
  10335. else
  10336. case $host_os in
  10337. darwin*)
  10338. # FIXME - insert some real tests, host_os isn't really good enough
  10339. striplib="$STRIP -x"
  10340. old_striplib="$STRIP -S"
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10342. $as_echo "yes" >&6; }
  10343. ;;
  10344. freebsd*)
  10345. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10346. old_striplib="$STRIP --strip-debug"
  10347. striplib="$STRIP --strip-unneeded"
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10349. $as_echo "yes" >&6; }
  10350. else
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10352. $as_echo "no" >&6; }
  10353. fi
  10354. ;;
  10355. *)
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10357. $as_echo "no" >&6; }
  10358. ;;
  10359. esac
  10360. fi
  10361. fi
  10362. # Report what library types will actually be built
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10364. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10366. $as_echo "$can_build_shared" >&6; }
  10367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10368. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10369. test no = "$can_build_shared" && enable_shared=no
  10370. # On AIX, shared libraries and static libraries use the same namespace, and
  10371. # are all built from PIC.
  10372. case $host_os in
  10373. aix3*)
  10374. test yes = "$enable_shared" && enable_static=no
  10375. if test -n "$RANLIB"; then
  10376. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10377. postinstall_cmds='$RANLIB $lib'
  10378. fi
  10379. ;;
  10380. aix[4-9]*)
  10381. if test ia64 != "$host_cpu"; then
  10382. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10383. yes,aix,yes) ;; # shared object as lib.so file only
  10384. yes,svr4,*) ;; # shared object as lib.so archive member only
  10385. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10386. esac
  10387. fi
  10388. ;;
  10389. esac
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10391. $as_echo "$enable_shared" >&6; }
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10393. $as_echo_n "checking whether to build static libraries... " >&6; }
  10394. # Make sure either enable_shared or enable_static is yes.
  10395. test yes = "$enable_shared" || enable_static=yes
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10397. $as_echo "$enable_static" >&6; }
  10398. fi
  10399. ac_ext=c
  10400. ac_cpp='$CPP $CPPFLAGS'
  10401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10404. CC=$lt_save_CC
  10405. ac_config_commands="$ac_config_commands libtool"
  10406. # Only expand once:
  10407. if test -n "$ac_tool_prefix"; then
  10408. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10409. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10411. $as_echo_n "checking for $ac_word... " >&6; }
  10412. if ${ac_cv_prog_RC+:} false; then :
  10413. $as_echo_n "(cached) " >&6
  10414. else
  10415. if test -n "$RC"; then
  10416. ac_cv_prog_RC="$RC" # Let the user override the test.
  10417. else
  10418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10419. for as_dir in $PATH
  10420. do
  10421. IFS=$as_save_IFS
  10422. test -z "$as_dir" && as_dir=.
  10423. for ac_exec_ext in '' $ac_executable_extensions; do
  10424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10425. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10427. break 2
  10428. fi
  10429. done
  10430. done
  10431. IFS=$as_save_IFS
  10432. fi
  10433. fi
  10434. RC=$ac_cv_prog_RC
  10435. if test -n "$RC"; then
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10437. $as_echo "$RC" >&6; }
  10438. else
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10440. $as_echo "no" >&6; }
  10441. fi
  10442. fi
  10443. if test -z "$ac_cv_prog_RC"; then
  10444. ac_ct_RC=$RC
  10445. # Extract the first word of "windres", so it can be a program name with args.
  10446. set dummy windres; ac_word=$2
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10448. $as_echo_n "checking for $ac_word... " >&6; }
  10449. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10450. $as_echo_n "(cached) " >&6
  10451. else
  10452. if test -n "$ac_ct_RC"; then
  10453. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10454. else
  10455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10456. for as_dir in $PATH
  10457. do
  10458. IFS=$as_save_IFS
  10459. test -z "$as_dir" && as_dir=.
  10460. for ac_exec_ext in '' $ac_executable_extensions; do
  10461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10462. ac_cv_prog_ac_ct_RC="windres"
  10463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10464. break 2
  10465. fi
  10466. done
  10467. done
  10468. IFS=$as_save_IFS
  10469. fi
  10470. fi
  10471. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10472. if test -n "$ac_ct_RC"; then
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10474. $as_echo "$ac_ct_RC" >&6; }
  10475. else
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10477. $as_echo "no" >&6; }
  10478. fi
  10479. if test "x$ac_ct_RC" = x; then
  10480. RC=""
  10481. else
  10482. case $cross_compiling:$ac_tool_warned in
  10483. yes:)
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10485. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10486. ac_tool_warned=yes ;;
  10487. esac
  10488. RC=$ac_ct_RC
  10489. fi
  10490. else
  10491. RC="$ac_cv_prog_RC"
  10492. fi
  10493. # Source file extension for RC test sources.
  10494. ac_ext=rc
  10495. # Object file extension for compiled RC test sources.
  10496. objext=o
  10497. objext_RC=$objext
  10498. # Code to be used in simple compile tests
  10499. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10500. # Code to be used in simple link tests
  10501. lt_simple_link_test_code=$lt_simple_compile_test_code
  10502. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10503. # If no C compiler was specified, use CC.
  10504. LTCC=${LTCC-"$CC"}
  10505. # If no C compiler flags were specified, use CFLAGS.
  10506. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10507. # Allow CC to be a program name with arguments.
  10508. compiler=$CC
  10509. # save warnings/boilerplate of simple test code
  10510. ac_outfile=conftest.$ac_objext
  10511. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10512. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10513. _lt_compiler_boilerplate=`cat conftest.err`
  10514. $RM conftest*
  10515. ac_outfile=conftest.$ac_objext
  10516. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10517. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10518. _lt_linker_boilerplate=`cat conftest.err`
  10519. $RM -r conftest*
  10520. # Allow CC to be a program name with arguments.
  10521. lt_save_CC=$CC
  10522. lt_save_CFLAGS=$CFLAGS
  10523. lt_save_GCC=$GCC
  10524. GCC=
  10525. CC=${RC-"windres"}
  10526. CFLAGS=
  10527. compiler=$CC
  10528. compiler_RC=$CC
  10529. func_cc_basename $compiler
  10530. cc_basename=$func_cc_basename_result
  10531. lt_cv_prog_compiler_c_o_RC=yes
  10532. if test -n "$compiler"; then
  10533. :
  10534. fi
  10535. GCC=$lt_save_GCC
  10536. ac_ext=c
  10537. ac_cpp='$CPP $CPPFLAGS'
  10538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10539. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10541. CC=$lt_save_CC
  10542. CFLAGS=$lt_save_CFLAGS
  10543. # For historical reasons, the library name redundantly includes the major
  10544. # version twice: libSDL2-2.0.so.0.
  10545. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  10546. LT_RELEASE=2.0
  10547. # Increment this if there is an incompatible change - but if that happens,
  10548. # we should rename the library from SDL2 to SDL3, at which point this would
  10549. # reset to 0 anyway.
  10550. LT_MAJOR=0
  10551. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10552. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  10553. LT_REVISION=$SDL_INTERFACE_AGE
  10554. ac_ext=c
  10555. ac_cpp='$CPP $CPPFLAGS'
  10556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10559. if test -n "$ac_tool_prefix"; then
  10560. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10561. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10563. $as_echo_n "checking for $ac_word... " >&6; }
  10564. if ${ac_cv_prog_CC+:} false; then :
  10565. $as_echo_n "(cached) " >&6
  10566. else
  10567. if test -n "$CC"; then
  10568. ac_cv_prog_CC="$CC" # Let the user override the test.
  10569. else
  10570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10571. for as_dir in $PATH
  10572. do
  10573. IFS=$as_save_IFS
  10574. test -z "$as_dir" && as_dir=.
  10575. for ac_exec_ext in '' $ac_executable_extensions; do
  10576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10577. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10579. break 2
  10580. fi
  10581. done
  10582. done
  10583. IFS=$as_save_IFS
  10584. fi
  10585. fi
  10586. CC=$ac_cv_prog_CC
  10587. if test -n "$CC"; then
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10589. $as_echo "$CC" >&6; }
  10590. else
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10592. $as_echo "no" >&6; }
  10593. fi
  10594. fi
  10595. if test -z "$ac_cv_prog_CC"; then
  10596. ac_ct_CC=$CC
  10597. # Extract the first word of "gcc", so it can be a program name with args.
  10598. set dummy gcc; ac_word=$2
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10600. $as_echo_n "checking for $ac_word... " >&6; }
  10601. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10602. $as_echo_n "(cached) " >&6
  10603. else
  10604. if test -n "$ac_ct_CC"; then
  10605. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10606. else
  10607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10608. for as_dir in $PATH
  10609. do
  10610. IFS=$as_save_IFS
  10611. test -z "$as_dir" && as_dir=.
  10612. for ac_exec_ext in '' $ac_executable_extensions; do
  10613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10614. ac_cv_prog_ac_ct_CC="gcc"
  10615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10616. break 2
  10617. fi
  10618. done
  10619. done
  10620. IFS=$as_save_IFS
  10621. fi
  10622. fi
  10623. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10624. if test -n "$ac_ct_CC"; then
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10626. $as_echo "$ac_ct_CC" >&6; }
  10627. else
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10629. $as_echo "no" >&6; }
  10630. fi
  10631. if test "x$ac_ct_CC" = x; then
  10632. CC=""
  10633. else
  10634. case $cross_compiling:$ac_tool_warned in
  10635. yes:)
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10637. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10638. ac_tool_warned=yes ;;
  10639. esac
  10640. CC=$ac_ct_CC
  10641. fi
  10642. else
  10643. CC="$ac_cv_prog_CC"
  10644. fi
  10645. if test -z "$CC"; then
  10646. if test -n "$ac_tool_prefix"; then
  10647. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10648. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10650. $as_echo_n "checking for $ac_word... " >&6; }
  10651. if ${ac_cv_prog_CC+:} false; then :
  10652. $as_echo_n "(cached) " >&6
  10653. else
  10654. if test -n "$CC"; then
  10655. ac_cv_prog_CC="$CC" # Let the user override the test.
  10656. else
  10657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10658. for as_dir in $PATH
  10659. do
  10660. IFS=$as_save_IFS
  10661. test -z "$as_dir" && as_dir=.
  10662. for ac_exec_ext in '' $ac_executable_extensions; do
  10663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10664. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10666. break 2
  10667. fi
  10668. done
  10669. done
  10670. IFS=$as_save_IFS
  10671. fi
  10672. fi
  10673. CC=$ac_cv_prog_CC
  10674. if test -n "$CC"; then
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10676. $as_echo "$CC" >&6; }
  10677. else
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10679. $as_echo "no" >&6; }
  10680. fi
  10681. fi
  10682. fi
  10683. if test -z "$CC"; then
  10684. # Extract the first word of "cc", so it can be a program name with args.
  10685. set dummy cc; ac_word=$2
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10687. $as_echo_n "checking for $ac_word... " >&6; }
  10688. if ${ac_cv_prog_CC+:} false; then :
  10689. $as_echo_n "(cached) " >&6
  10690. else
  10691. if test -n "$CC"; then
  10692. ac_cv_prog_CC="$CC" # Let the user override the test.
  10693. else
  10694. ac_prog_rejected=no
  10695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10696. for as_dir in $PATH
  10697. do
  10698. IFS=$as_save_IFS
  10699. test -z "$as_dir" && as_dir=.
  10700. for ac_exec_ext in '' $ac_executable_extensions; do
  10701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10702. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10703. ac_prog_rejected=yes
  10704. continue
  10705. fi
  10706. ac_cv_prog_CC="cc"
  10707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10708. break 2
  10709. fi
  10710. done
  10711. done
  10712. IFS=$as_save_IFS
  10713. if test $ac_prog_rejected = yes; then
  10714. # We found a bogon in the path, so make sure we never use it.
  10715. set dummy $ac_cv_prog_CC
  10716. shift
  10717. if test $# != 0; then
  10718. # We chose a different compiler from the bogus one.
  10719. # However, it has the same basename, so the bogon will be chosen
  10720. # first if we set CC to just the basename; use the full file name.
  10721. shift
  10722. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10723. fi
  10724. fi
  10725. fi
  10726. fi
  10727. CC=$ac_cv_prog_CC
  10728. if test -n "$CC"; then
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10730. $as_echo "$CC" >&6; }
  10731. else
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10733. $as_echo "no" >&6; }
  10734. fi
  10735. fi
  10736. if test -z "$CC"; then
  10737. if test -n "$ac_tool_prefix"; then
  10738. for ac_prog in cl.exe
  10739. do
  10740. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10741. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10743. $as_echo_n "checking for $ac_word... " >&6; }
  10744. if ${ac_cv_prog_CC+:} false; then :
  10745. $as_echo_n "(cached) " >&6
  10746. else
  10747. if test -n "$CC"; then
  10748. ac_cv_prog_CC="$CC" # Let the user override the test.
  10749. else
  10750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10751. for as_dir in $PATH
  10752. do
  10753. IFS=$as_save_IFS
  10754. test -z "$as_dir" && as_dir=.
  10755. for ac_exec_ext in '' $ac_executable_extensions; do
  10756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10757. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10759. break 2
  10760. fi
  10761. done
  10762. done
  10763. IFS=$as_save_IFS
  10764. fi
  10765. fi
  10766. CC=$ac_cv_prog_CC
  10767. if test -n "$CC"; then
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10769. $as_echo "$CC" >&6; }
  10770. else
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10772. $as_echo "no" >&6; }
  10773. fi
  10774. test -n "$CC" && break
  10775. done
  10776. fi
  10777. if test -z "$CC"; then
  10778. ac_ct_CC=$CC
  10779. for ac_prog in cl.exe
  10780. do
  10781. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10782. set dummy $ac_prog; ac_word=$2
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10784. $as_echo_n "checking for $ac_word... " >&6; }
  10785. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10786. $as_echo_n "(cached) " >&6
  10787. else
  10788. if test -n "$ac_ct_CC"; then
  10789. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10790. else
  10791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10792. for as_dir in $PATH
  10793. do
  10794. IFS=$as_save_IFS
  10795. test -z "$as_dir" && as_dir=.
  10796. for ac_exec_ext in '' $ac_executable_extensions; do
  10797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10798. ac_cv_prog_ac_ct_CC="$ac_prog"
  10799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10800. break 2
  10801. fi
  10802. done
  10803. done
  10804. IFS=$as_save_IFS
  10805. fi
  10806. fi
  10807. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10808. if test -n "$ac_ct_CC"; then
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10810. $as_echo "$ac_ct_CC" >&6; }
  10811. else
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10813. $as_echo "no" >&6; }
  10814. fi
  10815. test -n "$ac_ct_CC" && break
  10816. done
  10817. if test "x$ac_ct_CC" = x; then
  10818. CC=""
  10819. else
  10820. case $cross_compiling:$ac_tool_warned in
  10821. yes:)
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10823. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10824. ac_tool_warned=yes ;;
  10825. esac
  10826. CC=$ac_ct_CC
  10827. fi
  10828. fi
  10829. fi
  10830. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10831. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10832. as_fn_error $? "no acceptable C compiler found in \$PATH
  10833. See \`config.log' for more details" "$LINENO" 5; }
  10834. # Provide some information about the compiler.
  10835. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10836. set X $ac_compile
  10837. ac_compiler=$2
  10838. for ac_option in --version -v -V -qversion; do
  10839. { { ac_try="$ac_compiler $ac_option >&5"
  10840. case "(($ac_try" in
  10841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10842. *) ac_try_echo=$ac_try;;
  10843. esac
  10844. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10845. $as_echo "$ac_try_echo"; } >&5
  10846. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10847. ac_status=$?
  10848. if test -s conftest.err; then
  10849. sed '10a\
  10850. ... rest of stderr output deleted ...
  10851. 10q' conftest.err >conftest.er1
  10852. cat conftest.er1 >&5
  10853. fi
  10854. rm -f conftest.er1 conftest.err
  10855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10856. test $ac_status = 0; }
  10857. done
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10859. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10860. if ${ac_cv_c_compiler_gnu+:} false; then :
  10861. $as_echo_n "(cached) " >&6
  10862. else
  10863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10864. /* end confdefs.h. */
  10865. int
  10866. main ()
  10867. {
  10868. #ifndef __GNUC__
  10869. choke me
  10870. #endif
  10871. ;
  10872. return 0;
  10873. }
  10874. _ACEOF
  10875. if ac_fn_c_try_compile "$LINENO"; then :
  10876. ac_compiler_gnu=yes
  10877. else
  10878. ac_compiler_gnu=no
  10879. fi
  10880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10881. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10882. fi
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10884. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10885. if test $ac_compiler_gnu = yes; then
  10886. GCC=yes
  10887. else
  10888. GCC=
  10889. fi
  10890. ac_test_CFLAGS=${CFLAGS+set}
  10891. ac_save_CFLAGS=$CFLAGS
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10893. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10894. if ${ac_cv_prog_cc_g+:} false; then :
  10895. $as_echo_n "(cached) " >&6
  10896. else
  10897. ac_save_c_werror_flag=$ac_c_werror_flag
  10898. ac_c_werror_flag=yes
  10899. ac_cv_prog_cc_g=no
  10900. CFLAGS="-g"
  10901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10902. /* end confdefs.h. */
  10903. int
  10904. main ()
  10905. {
  10906. ;
  10907. return 0;
  10908. }
  10909. _ACEOF
  10910. if ac_fn_c_try_compile "$LINENO"; then :
  10911. ac_cv_prog_cc_g=yes
  10912. else
  10913. CFLAGS=""
  10914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10915. /* end confdefs.h. */
  10916. int
  10917. main ()
  10918. {
  10919. ;
  10920. return 0;
  10921. }
  10922. _ACEOF
  10923. if ac_fn_c_try_compile "$LINENO"; then :
  10924. else
  10925. ac_c_werror_flag=$ac_save_c_werror_flag
  10926. CFLAGS="-g"
  10927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10928. /* end confdefs.h. */
  10929. int
  10930. main ()
  10931. {
  10932. ;
  10933. return 0;
  10934. }
  10935. _ACEOF
  10936. if ac_fn_c_try_compile "$LINENO"; then :
  10937. ac_cv_prog_cc_g=yes
  10938. fi
  10939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10940. fi
  10941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10942. fi
  10943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10944. ac_c_werror_flag=$ac_save_c_werror_flag
  10945. fi
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10947. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10948. if test "$ac_test_CFLAGS" = set; then
  10949. CFLAGS=$ac_save_CFLAGS
  10950. elif test $ac_cv_prog_cc_g = yes; then
  10951. if test "$GCC" = yes; then
  10952. CFLAGS="-g -O2"
  10953. else
  10954. CFLAGS="-g"
  10955. fi
  10956. else
  10957. if test "$GCC" = yes; then
  10958. CFLAGS="-O2"
  10959. else
  10960. CFLAGS=
  10961. fi
  10962. fi
  10963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10964. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10965. if ${ac_cv_prog_cc_c89+:} false; then :
  10966. $as_echo_n "(cached) " >&6
  10967. else
  10968. ac_cv_prog_cc_c89=no
  10969. ac_save_CC=$CC
  10970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10971. /* end confdefs.h. */
  10972. #include <stdarg.h>
  10973. #include <stdio.h>
  10974. struct stat;
  10975. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10976. struct buf { int x; };
  10977. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10978. static char *e (p, i)
  10979. char **p;
  10980. int i;
  10981. {
  10982. return p[i];
  10983. }
  10984. static char *f (char * (*g) (char **, int), char **p, ...)
  10985. {
  10986. char *s;
  10987. va_list v;
  10988. va_start (v,p);
  10989. s = g (p, va_arg (v,int));
  10990. va_end (v);
  10991. return s;
  10992. }
  10993. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10994. function prototypes and stuff, but not '\xHH' hex character constants.
  10995. These don't provoke an error unfortunately, instead are silently treated
  10996. as 'x'. The following induces an error, until -std is added to get
  10997. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10998. array size at least. It's necessary to write '\x00'==0 to get something
  10999. that's true only with -std. */
  11000. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11001. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11002. inside strings and character constants. */
  11003. #define FOO(x) 'x'
  11004. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11005. int test (int i, double x);
  11006. struct s1 {int (*f) (int a);};
  11007. struct s2 {int (*f) (double a);};
  11008. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11009. int argc;
  11010. char **argv;
  11011. int
  11012. main ()
  11013. {
  11014. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11015. ;
  11016. return 0;
  11017. }
  11018. _ACEOF
  11019. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11020. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11021. do
  11022. CC="$ac_save_CC $ac_arg"
  11023. if ac_fn_c_try_compile "$LINENO"; then :
  11024. ac_cv_prog_cc_c89=$ac_arg
  11025. fi
  11026. rm -f core conftest.err conftest.$ac_objext
  11027. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11028. done
  11029. rm -f conftest.$ac_ext
  11030. CC=$ac_save_CC
  11031. fi
  11032. # AC_CACHE_VAL
  11033. case "x$ac_cv_prog_cc_c89" in
  11034. x)
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11036. $as_echo "none needed" >&6; } ;;
  11037. xno)
  11038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11039. $as_echo "unsupported" >&6; } ;;
  11040. *)
  11041. CC="$CC $ac_cv_prog_cc_c89"
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11043. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11044. esac
  11045. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11046. fi
  11047. ac_ext=c
  11048. ac_cpp='$CPP $CPPFLAGS'
  11049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11052. ac_ext=cpp
  11053. ac_cpp='$CXXCPP $CPPFLAGS'
  11054. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11055. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11056. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11057. if test -z "$CXX"; then
  11058. if test -n "$CCC"; then
  11059. CXX=$CCC
  11060. else
  11061. if test -n "$ac_tool_prefix"; then
  11062. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11063. do
  11064. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11065. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11067. $as_echo_n "checking for $ac_word... " >&6; }
  11068. if ${ac_cv_prog_CXX+:} false; then :
  11069. $as_echo_n "(cached) " >&6
  11070. else
  11071. if test -n "$CXX"; then
  11072. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11073. else
  11074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11075. for as_dir in $PATH
  11076. do
  11077. IFS=$as_save_IFS
  11078. test -z "$as_dir" && as_dir=.
  11079. for ac_exec_ext in '' $ac_executable_extensions; do
  11080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11081. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11083. break 2
  11084. fi
  11085. done
  11086. done
  11087. IFS=$as_save_IFS
  11088. fi
  11089. fi
  11090. CXX=$ac_cv_prog_CXX
  11091. if test -n "$CXX"; then
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11093. $as_echo "$CXX" >&6; }
  11094. else
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11096. $as_echo "no" >&6; }
  11097. fi
  11098. test -n "$CXX" && break
  11099. done
  11100. fi
  11101. if test -z "$CXX"; then
  11102. ac_ct_CXX=$CXX
  11103. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11104. do
  11105. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11106. set dummy $ac_prog; ac_word=$2
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11108. $as_echo_n "checking for $ac_word... " >&6; }
  11109. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11110. $as_echo_n "(cached) " >&6
  11111. else
  11112. if test -n "$ac_ct_CXX"; then
  11113. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11114. else
  11115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11116. for as_dir in $PATH
  11117. do
  11118. IFS=$as_save_IFS
  11119. test -z "$as_dir" && as_dir=.
  11120. for ac_exec_ext in '' $ac_executable_extensions; do
  11121. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11122. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11124. break 2
  11125. fi
  11126. done
  11127. done
  11128. IFS=$as_save_IFS
  11129. fi
  11130. fi
  11131. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11132. if test -n "$ac_ct_CXX"; then
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11134. $as_echo "$ac_ct_CXX" >&6; }
  11135. else
  11136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11137. $as_echo "no" >&6; }
  11138. fi
  11139. test -n "$ac_ct_CXX" && break
  11140. done
  11141. if test "x$ac_ct_CXX" = x; then
  11142. CXX="g++"
  11143. else
  11144. case $cross_compiling:$ac_tool_warned in
  11145. yes:)
  11146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11147. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11148. ac_tool_warned=yes ;;
  11149. esac
  11150. CXX=$ac_ct_CXX
  11151. fi
  11152. fi
  11153. fi
  11154. fi
  11155. # Provide some information about the compiler.
  11156. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11157. set X $ac_compile
  11158. ac_compiler=$2
  11159. for ac_option in --version -v -V -qversion; do
  11160. { { ac_try="$ac_compiler $ac_option >&5"
  11161. case "(($ac_try" in
  11162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11163. *) ac_try_echo=$ac_try;;
  11164. esac
  11165. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11166. $as_echo "$ac_try_echo"; } >&5
  11167. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11168. ac_status=$?
  11169. if test -s conftest.err; then
  11170. sed '10a\
  11171. ... rest of stderr output deleted ...
  11172. 10q' conftest.err >conftest.er1
  11173. cat conftest.er1 >&5
  11174. fi
  11175. rm -f conftest.er1 conftest.err
  11176. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11177. test $ac_status = 0; }
  11178. done
  11179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11180. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11181. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11182. $as_echo_n "(cached) " >&6
  11183. else
  11184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11185. /* end confdefs.h. */
  11186. int
  11187. main ()
  11188. {
  11189. #ifndef __GNUC__
  11190. choke me
  11191. #endif
  11192. ;
  11193. return 0;
  11194. }
  11195. _ACEOF
  11196. if ac_fn_cxx_try_compile "$LINENO"; then :
  11197. ac_compiler_gnu=yes
  11198. else
  11199. ac_compiler_gnu=no
  11200. fi
  11201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11202. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11203. fi
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11205. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11206. if test $ac_compiler_gnu = yes; then
  11207. GXX=yes
  11208. else
  11209. GXX=
  11210. fi
  11211. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11212. ac_save_CXXFLAGS=$CXXFLAGS
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11214. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11215. if ${ac_cv_prog_cxx_g+:} false; then :
  11216. $as_echo_n "(cached) " >&6
  11217. else
  11218. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11219. ac_cxx_werror_flag=yes
  11220. ac_cv_prog_cxx_g=no
  11221. CXXFLAGS="-g"
  11222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11223. /* end confdefs.h. */
  11224. int
  11225. main ()
  11226. {
  11227. ;
  11228. return 0;
  11229. }
  11230. _ACEOF
  11231. if ac_fn_cxx_try_compile "$LINENO"; then :
  11232. ac_cv_prog_cxx_g=yes
  11233. else
  11234. CXXFLAGS=""
  11235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11236. /* end confdefs.h. */
  11237. int
  11238. main ()
  11239. {
  11240. ;
  11241. return 0;
  11242. }
  11243. _ACEOF
  11244. if ac_fn_cxx_try_compile "$LINENO"; then :
  11245. else
  11246. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11247. CXXFLAGS="-g"
  11248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11249. /* end confdefs.h. */
  11250. int
  11251. main ()
  11252. {
  11253. ;
  11254. return 0;
  11255. }
  11256. _ACEOF
  11257. if ac_fn_cxx_try_compile "$LINENO"; then :
  11258. ac_cv_prog_cxx_g=yes
  11259. fi
  11260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11261. fi
  11262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11263. fi
  11264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11265. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11266. fi
  11267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11268. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11269. if test "$ac_test_CXXFLAGS" = set; then
  11270. CXXFLAGS=$ac_save_CXXFLAGS
  11271. elif test $ac_cv_prog_cxx_g = yes; then
  11272. if test "$GXX" = yes; then
  11273. CXXFLAGS="-g -O2"
  11274. else
  11275. CXXFLAGS="-g"
  11276. fi
  11277. else
  11278. if test "$GXX" = yes; then
  11279. CXXFLAGS="-O2"
  11280. else
  11281. CXXFLAGS=
  11282. fi
  11283. fi
  11284. ac_ext=c
  11285. ac_cpp='$CPP $CPPFLAGS'
  11286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11289. func_stripname_cnf ()
  11290. {
  11291. case $2 in
  11292. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11293. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11294. esac
  11295. } # func_stripname_cnf
  11296. if test -n "$CXX" && ( test no != "$CXX" &&
  11297. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11298. (test g++ != "$CXX"))); then
  11299. ac_ext=cpp
  11300. ac_cpp='$CXXCPP $CPPFLAGS'
  11301. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11302. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11303. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11305. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11306. if test -z "$CXXCPP"; then
  11307. if ${ac_cv_prog_CXXCPP+:} false; then :
  11308. $as_echo_n "(cached) " >&6
  11309. else
  11310. # Double quotes because CXXCPP needs to be expanded
  11311. for CXXCPP in "$CXX -E" "/lib/cpp"
  11312. do
  11313. ac_preproc_ok=false
  11314. for ac_cxx_preproc_warn_flag in '' yes
  11315. do
  11316. # Use a header file that comes with gcc, so configuring glibc
  11317. # with a fresh cross-compiler works.
  11318. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11319. # <limits.h> exists even on freestanding compilers.
  11320. # On the NeXT, cc -E runs the code through the compiler's parser,
  11321. # not just through cpp. "Syntax error" is here to catch this case.
  11322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11323. /* end confdefs.h. */
  11324. #ifdef __STDC__
  11325. # include <limits.h>
  11326. #else
  11327. # include <assert.h>
  11328. #endif
  11329. Syntax error
  11330. _ACEOF
  11331. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11332. else
  11333. # Broken: fails on valid input.
  11334. continue
  11335. fi
  11336. rm -f conftest.err conftest.i conftest.$ac_ext
  11337. # OK, works on sane cases. Now check whether nonexistent headers
  11338. # can be detected and how.
  11339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11340. /* end confdefs.h. */
  11341. #include <ac_nonexistent.h>
  11342. _ACEOF
  11343. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11344. # Broken: success on invalid input.
  11345. continue
  11346. else
  11347. # Passes both tests.
  11348. ac_preproc_ok=:
  11349. break
  11350. fi
  11351. rm -f conftest.err conftest.i conftest.$ac_ext
  11352. done
  11353. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11354. rm -f conftest.i conftest.err conftest.$ac_ext
  11355. if $ac_preproc_ok; then :
  11356. break
  11357. fi
  11358. done
  11359. ac_cv_prog_CXXCPP=$CXXCPP
  11360. fi
  11361. CXXCPP=$ac_cv_prog_CXXCPP
  11362. else
  11363. ac_cv_prog_CXXCPP=$CXXCPP
  11364. fi
  11365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11366. $as_echo "$CXXCPP" >&6; }
  11367. ac_preproc_ok=false
  11368. for ac_cxx_preproc_warn_flag in '' yes
  11369. do
  11370. # Use a header file that comes with gcc, so configuring glibc
  11371. # with a fresh cross-compiler works.
  11372. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11373. # <limits.h> exists even on freestanding compilers.
  11374. # On the NeXT, cc -E runs the code through the compiler's parser,
  11375. # not just through cpp. "Syntax error" is here to catch this case.
  11376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11377. /* end confdefs.h. */
  11378. #ifdef __STDC__
  11379. # include <limits.h>
  11380. #else
  11381. # include <assert.h>
  11382. #endif
  11383. Syntax error
  11384. _ACEOF
  11385. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11386. else
  11387. # Broken: fails on valid input.
  11388. continue
  11389. fi
  11390. rm -f conftest.err conftest.i conftest.$ac_ext
  11391. # OK, works on sane cases. Now check whether nonexistent headers
  11392. # can be detected and how.
  11393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11394. /* end confdefs.h. */
  11395. #include <ac_nonexistent.h>
  11396. _ACEOF
  11397. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11398. # Broken: success on invalid input.
  11399. continue
  11400. else
  11401. # Passes both tests.
  11402. ac_preproc_ok=:
  11403. break
  11404. fi
  11405. rm -f conftest.err conftest.i conftest.$ac_ext
  11406. done
  11407. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11408. rm -f conftest.i conftest.err conftest.$ac_ext
  11409. if $ac_preproc_ok; then :
  11410. else
  11411. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11412. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11413. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11414. See \`config.log' for more details" "$LINENO" 5; }
  11415. fi
  11416. ac_ext=c
  11417. ac_cpp='$CPP $CPPFLAGS'
  11418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11421. else
  11422. _lt_caught_CXX_error=yes
  11423. fi
  11424. ac_ext=cpp
  11425. ac_cpp='$CXXCPP $CPPFLAGS'
  11426. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11427. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11428. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11429. archive_cmds_need_lc_CXX=no
  11430. allow_undefined_flag_CXX=
  11431. always_export_symbols_CXX=no
  11432. archive_expsym_cmds_CXX=
  11433. compiler_needs_object_CXX=no
  11434. export_dynamic_flag_spec_CXX=
  11435. hardcode_direct_CXX=no
  11436. hardcode_direct_absolute_CXX=no
  11437. hardcode_libdir_flag_spec_CXX=
  11438. hardcode_libdir_separator_CXX=
  11439. hardcode_minus_L_CXX=no
  11440. hardcode_shlibpath_var_CXX=unsupported
  11441. hardcode_automatic_CXX=no
  11442. inherit_rpath_CXX=no
  11443. module_cmds_CXX=
  11444. module_expsym_cmds_CXX=
  11445. link_all_deplibs_CXX=unknown
  11446. old_archive_cmds_CXX=$old_archive_cmds
  11447. reload_flag_CXX=$reload_flag
  11448. reload_cmds_CXX=$reload_cmds
  11449. no_undefined_flag_CXX=
  11450. whole_archive_flag_spec_CXX=
  11451. enable_shared_with_static_runtimes_CXX=no
  11452. # Source file extension for C++ test sources.
  11453. ac_ext=cpp
  11454. # Object file extension for compiled C++ test sources.
  11455. objext=o
  11456. objext_CXX=$objext
  11457. # No sense in running all these tests if we already determined that
  11458. # the CXX compiler isn't working. Some variables (like enable_shared)
  11459. # are currently assumed to apply to all compilers on this platform,
  11460. # and will be corrupted by setting them based on a non-working compiler.
  11461. if test yes != "$_lt_caught_CXX_error"; then
  11462. # Code to be used in simple compile tests
  11463. lt_simple_compile_test_code="int some_variable = 0;"
  11464. # Code to be used in simple link tests
  11465. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11466. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11467. # If no C compiler was specified, use CC.
  11468. LTCC=${LTCC-"$CC"}
  11469. # If no C compiler flags were specified, use CFLAGS.
  11470. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11471. # Allow CC to be a program name with arguments.
  11472. compiler=$CC
  11473. # save warnings/boilerplate of simple test code
  11474. ac_outfile=conftest.$ac_objext
  11475. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11476. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11477. _lt_compiler_boilerplate=`cat conftest.err`
  11478. $RM conftest*
  11479. ac_outfile=conftest.$ac_objext
  11480. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11481. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11482. _lt_linker_boilerplate=`cat conftest.err`
  11483. $RM -r conftest*
  11484. # Allow CC to be a program name with arguments.
  11485. lt_save_CC=$CC
  11486. lt_save_CFLAGS=$CFLAGS
  11487. lt_save_LD=$LD
  11488. lt_save_GCC=$GCC
  11489. GCC=$GXX
  11490. lt_save_with_gnu_ld=$with_gnu_ld
  11491. lt_save_path_LD=$lt_cv_path_LD
  11492. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11493. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11494. else
  11495. $as_unset lt_cv_prog_gnu_ld
  11496. fi
  11497. if test -n "${lt_cv_path_LDCXX+set}"; then
  11498. lt_cv_path_LD=$lt_cv_path_LDCXX
  11499. else
  11500. $as_unset lt_cv_path_LD
  11501. fi
  11502. test -z "${LDCXX+set}" || LD=$LDCXX
  11503. CC=${CXX-"c++"}
  11504. CFLAGS=$CXXFLAGS
  11505. compiler=$CC
  11506. compiler_CXX=$CC
  11507. func_cc_basename $compiler
  11508. cc_basename=$func_cc_basename_result
  11509. if test -n "$compiler"; then
  11510. # We don't want -fno-exception when compiling C++ code, so set the
  11511. # no_builtin_flag separately
  11512. if test yes = "$GXX"; then
  11513. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11514. else
  11515. lt_prog_compiler_no_builtin_flag_CXX=
  11516. fi
  11517. if test yes = "$GXX"; then
  11518. # Set up default GNU C++ configuration
  11519. # Check whether --with-gnu-ld was given.
  11520. if test "${with_gnu_ld+set}" = set; then :
  11521. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11522. else
  11523. with_gnu_ld=no
  11524. fi
  11525. ac_prog=ld
  11526. if test yes = "$GCC"; then
  11527. # Check if gcc -print-prog-name=ld gives a path.
  11528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11529. $as_echo_n "checking for ld used by $CC... " >&6; }
  11530. case $host in
  11531. *-*-mingw*)
  11532. # gcc leaves a trailing carriage return, which upsets mingw
  11533. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11534. *)
  11535. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11536. esac
  11537. case $ac_prog in
  11538. # Accept absolute paths.
  11539. [\\/]* | ?:[\\/]*)
  11540. re_direlt='/[^/][^/]*/\.\./'
  11541. # Canonicalize the pathname of ld
  11542. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11543. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11544. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11545. done
  11546. test -z "$LD" && LD=$ac_prog
  11547. ;;
  11548. "")
  11549. # If it fails, then pretend we aren't using GCC.
  11550. ac_prog=ld
  11551. ;;
  11552. *)
  11553. # If it is relative, then search for the first ld in PATH.
  11554. with_gnu_ld=unknown
  11555. ;;
  11556. esac
  11557. elif test yes = "$with_gnu_ld"; then
  11558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11559. $as_echo_n "checking for GNU ld... " >&6; }
  11560. else
  11561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11562. $as_echo_n "checking for non-GNU ld... " >&6; }
  11563. fi
  11564. if ${lt_cv_path_LD+:} false; then :
  11565. $as_echo_n "(cached) " >&6
  11566. else
  11567. if test -z "$LD"; then
  11568. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11569. for ac_dir in $PATH; do
  11570. IFS=$lt_save_ifs
  11571. test -z "$ac_dir" && ac_dir=.
  11572. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11573. lt_cv_path_LD=$ac_dir/$ac_prog
  11574. # Check to see if the program is GNU ld. I'd rather use --version,
  11575. # but apparently some variants of GNU ld only accept -v.
  11576. # Break only if it was the GNU/non-GNU ld that we prefer.
  11577. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11578. *GNU* | *'with BFD'*)
  11579. test no != "$with_gnu_ld" && break
  11580. ;;
  11581. *)
  11582. test yes != "$with_gnu_ld" && break
  11583. ;;
  11584. esac
  11585. fi
  11586. done
  11587. IFS=$lt_save_ifs
  11588. else
  11589. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11590. fi
  11591. fi
  11592. LD=$lt_cv_path_LD
  11593. if test -n "$LD"; then
  11594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11595. $as_echo "$LD" >&6; }
  11596. else
  11597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11598. $as_echo "no" >&6; }
  11599. fi
  11600. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11602. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11603. if ${lt_cv_prog_gnu_ld+:} false; then :
  11604. $as_echo_n "(cached) " >&6
  11605. else
  11606. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11607. case `$LD -v 2>&1 </dev/null` in
  11608. *GNU* | *'with BFD'*)
  11609. lt_cv_prog_gnu_ld=yes
  11610. ;;
  11611. *)
  11612. lt_cv_prog_gnu_ld=no
  11613. ;;
  11614. esac
  11615. fi
  11616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11617. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11618. with_gnu_ld=$lt_cv_prog_gnu_ld
  11619. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11620. # archiving commands below assume that GNU ld is being used.
  11621. if test yes = "$with_gnu_ld"; then
  11622. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11623. 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'
  11624. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11625. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11626. # If archive_cmds runs LD, not CC, wlarc should be empty
  11627. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11628. # investigate it a little bit more. (MM)
  11629. wlarc='$wl'
  11630. # ancient GNU ld didn't support --whole-archive et. al.
  11631. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11632. $GREP 'no-whole-archive' > /dev/null; then
  11633. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11634. else
  11635. whole_archive_flag_spec_CXX=
  11636. fi
  11637. else
  11638. with_gnu_ld=no
  11639. wlarc=
  11640. # A generic and very simple default shared library creation
  11641. # command for GNU C++ for the case where it uses the native
  11642. # linker, instead of GNU ld. If possible, this setting should
  11643. # overridden to take advantage of the native linker features on
  11644. # the platform it is being used on.
  11645. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11646. fi
  11647. # Commands to make compiler produce verbose output that lists
  11648. # what "hidden" libraries, object files and flags are used when
  11649. # linking a shared library.
  11650. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11651. else
  11652. GXX=no
  11653. with_gnu_ld=no
  11654. wlarc=
  11655. fi
  11656. # PORTME: fill in a description of your system's C++ link characteristics
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11658. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11659. ld_shlibs_CXX=yes
  11660. case $host_os in
  11661. aix3*)
  11662. # FIXME: insert proper C++ library support
  11663. ld_shlibs_CXX=no
  11664. ;;
  11665. aix[4-9]*)
  11666. if test ia64 = "$host_cpu"; then
  11667. # On IA64, the linker does run time linking by default, so we don't
  11668. # have to do anything special.
  11669. aix_use_runtimelinking=no
  11670. exp_sym_flag='-Bexport'
  11671. no_entry_flag=
  11672. else
  11673. aix_use_runtimelinking=no
  11674. # Test if we are trying to use run time linking or normal
  11675. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11676. # have runtime linking enabled, and use it for executables.
  11677. # For shared libraries, we enable/disable runtime linking
  11678. # depending on the kind of the shared library created -
  11679. # when "with_aix_soname,aix_use_runtimelinking" is:
  11680. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11681. # "aix,yes" lib.so shared, rtl:yes, for executables
  11682. # lib.a static archive
  11683. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11684. # lib.a(lib.so.V) shared, rtl:no, for executables
  11685. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11686. # lib.a(lib.so.V) shared, rtl:no
  11687. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11688. # lib.a static archive
  11689. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11690. for ld_flag in $LDFLAGS; do
  11691. case $ld_flag in
  11692. *-brtl*)
  11693. aix_use_runtimelinking=yes
  11694. break
  11695. ;;
  11696. esac
  11697. done
  11698. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11699. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11700. # so we don't have lib.a shared libs to link our executables.
  11701. # We have to force runtime linking in this case.
  11702. aix_use_runtimelinking=yes
  11703. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11704. fi
  11705. ;;
  11706. esac
  11707. exp_sym_flag='-bexport'
  11708. no_entry_flag='-bnoentry'
  11709. fi
  11710. # When large executables or shared objects are built, AIX ld can
  11711. # have problems creating the table of contents. If linking a library
  11712. # or program results in "error TOC overflow" add -mminimal-toc to
  11713. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11714. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11715. archive_cmds_CXX=''
  11716. hardcode_direct_CXX=yes
  11717. hardcode_direct_absolute_CXX=yes
  11718. hardcode_libdir_separator_CXX=':'
  11719. link_all_deplibs_CXX=yes
  11720. file_list_spec_CXX='$wl-f,'
  11721. case $with_aix_soname,$aix_use_runtimelinking in
  11722. aix,*) ;; # no import file
  11723. svr4,* | *,yes) # use import file
  11724. # The Import File defines what to hardcode.
  11725. hardcode_direct_CXX=no
  11726. hardcode_direct_absolute_CXX=no
  11727. ;;
  11728. esac
  11729. if test yes = "$GXX"; then
  11730. case $host_os in aix4.[012]|aix4.[012].*)
  11731. # We only want to do this on AIX 4.2 and lower, the check
  11732. # below for broken collect2 doesn't work under 4.3+
  11733. collect2name=`$CC -print-prog-name=collect2`
  11734. if test -f "$collect2name" &&
  11735. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11736. then
  11737. # We have reworked collect2
  11738. :
  11739. else
  11740. # We have old collect2
  11741. hardcode_direct_CXX=unsupported
  11742. # It fails to find uninstalled libraries when the uninstalled
  11743. # path is not listed in the libpath. Setting hardcode_minus_L
  11744. # to unsupported forces relinking
  11745. hardcode_minus_L_CXX=yes
  11746. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11747. hardcode_libdir_separator_CXX=
  11748. fi
  11749. esac
  11750. shared_flag='-shared'
  11751. if test yes = "$aix_use_runtimelinking"; then
  11752. shared_flag=$shared_flag' $wl-G'
  11753. fi
  11754. # Need to ensure runtime linking is disabled for the traditional
  11755. # shared library, or the linker may eventually find shared libraries
  11756. # /with/ Import File - we do not want to mix them.
  11757. shared_flag_aix='-shared'
  11758. shared_flag_svr4='-shared $wl-G'
  11759. else
  11760. # not using gcc
  11761. if test ia64 = "$host_cpu"; then
  11762. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11763. # chokes on -Wl,-G. The following line is correct:
  11764. shared_flag='-G'
  11765. else
  11766. if test yes = "$aix_use_runtimelinking"; then
  11767. shared_flag='$wl-G'
  11768. else
  11769. shared_flag='$wl-bM:SRE'
  11770. fi
  11771. shared_flag_aix='$wl-bM:SRE'
  11772. shared_flag_svr4='$wl-G'
  11773. fi
  11774. fi
  11775. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11776. # It seems that -bexpall does not export symbols beginning with
  11777. # underscore (_), so it is better to generate a list of symbols to
  11778. # export.
  11779. always_export_symbols_CXX=yes
  11780. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11781. # Warning - without using the other runtime loading flags (-brtl),
  11782. # -berok will link without error, but may produce a broken library.
  11783. # The "-G" linker flag allows undefined symbols.
  11784. no_undefined_flag_CXX='-bernotok'
  11785. # Determine the default libpath from the value encoded in an empty
  11786. # executable.
  11787. if test set = "${lt_cv_aix_libpath+set}"; then
  11788. aix_libpath=$lt_cv_aix_libpath
  11789. else
  11790. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11791. $as_echo_n "(cached) " >&6
  11792. else
  11793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11794. /* end confdefs.h. */
  11795. int
  11796. main ()
  11797. {
  11798. ;
  11799. return 0;
  11800. }
  11801. _ACEOF
  11802. if ac_fn_cxx_try_link "$LINENO"; then :
  11803. lt_aix_libpath_sed='
  11804. /Import File Strings/,/^$/ {
  11805. /^0/ {
  11806. s/^0 *\([^ ]*\) *$/\1/
  11807. p
  11808. }
  11809. }'
  11810. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11811. # Check for a 64-bit object if we didn't find anything.
  11812. if test -z "$lt_cv_aix_libpath__CXX"; then
  11813. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11814. fi
  11815. fi
  11816. rm -f core conftest.err conftest.$ac_objext \
  11817. conftest$ac_exeext conftest.$ac_ext
  11818. if test -z "$lt_cv_aix_libpath__CXX"; then
  11819. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11820. fi
  11821. fi
  11822. aix_libpath=$lt_cv_aix_libpath__CXX
  11823. fi
  11824. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11825. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11826. else
  11827. if test ia64 = "$host_cpu"; then
  11828. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11829. allow_undefined_flag_CXX="-z nodefs"
  11830. 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"
  11831. else
  11832. # Determine the default libpath from the value encoded in an
  11833. # empty executable.
  11834. if test set = "${lt_cv_aix_libpath+set}"; then
  11835. aix_libpath=$lt_cv_aix_libpath
  11836. else
  11837. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11838. $as_echo_n "(cached) " >&6
  11839. else
  11840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11841. /* end confdefs.h. */
  11842. int
  11843. main ()
  11844. {
  11845. ;
  11846. return 0;
  11847. }
  11848. _ACEOF
  11849. if ac_fn_cxx_try_link "$LINENO"; then :
  11850. lt_aix_libpath_sed='
  11851. /Import File Strings/,/^$/ {
  11852. /^0/ {
  11853. s/^0 *\([^ ]*\) *$/\1/
  11854. p
  11855. }
  11856. }'
  11857. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11858. # Check for a 64-bit object if we didn't find anything.
  11859. if test -z "$lt_cv_aix_libpath__CXX"; then
  11860. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11861. fi
  11862. fi
  11863. rm -f core conftest.err conftest.$ac_objext \
  11864. conftest$ac_exeext conftest.$ac_ext
  11865. if test -z "$lt_cv_aix_libpath__CXX"; then
  11866. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11867. fi
  11868. fi
  11869. aix_libpath=$lt_cv_aix_libpath__CXX
  11870. fi
  11871. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11872. # Warning - without using the other run time loading flags,
  11873. # -berok will link without error, but may produce a broken library.
  11874. no_undefined_flag_CXX=' $wl-bernotok'
  11875. allow_undefined_flag_CXX=' $wl-berok'
  11876. if test yes = "$with_gnu_ld"; then
  11877. # We only use this code for GNU lds that support --whole-archive.
  11878. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11879. else
  11880. # Exported symbols can be pulled into shared objects from archives
  11881. whole_archive_flag_spec_CXX='$convenience'
  11882. fi
  11883. archive_cmds_need_lc_CXX=yes
  11884. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11885. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11886. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11887. if test svr4 != "$with_aix_soname"; then
  11888. # This is similar to how AIX traditionally builds its shared
  11889. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11890. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11891. fi
  11892. if test aix != "$with_aix_soname"; then
  11893. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11894. else
  11895. # used by -dlpreopen to get the symbols
  11896. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11897. fi
  11898. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11899. fi
  11900. fi
  11901. ;;
  11902. beos*)
  11903. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11904. allow_undefined_flag_CXX=unsupported
  11905. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11906. # support --undefined. This deserves some investigation. FIXME
  11907. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11908. else
  11909. ld_shlibs_CXX=no
  11910. fi
  11911. ;;
  11912. chorus*)
  11913. case $cc_basename in
  11914. *)
  11915. # FIXME: insert proper C++ library support
  11916. ld_shlibs_CXX=no
  11917. ;;
  11918. esac
  11919. ;;
  11920. cygwin* | mingw* | pw32* | cegcc*)
  11921. case $GXX,$cc_basename in
  11922. ,cl* | no,cl*)
  11923. # Native MSVC
  11924. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11925. # no search path for DLLs.
  11926. hardcode_libdir_flag_spec_CXX=' '
  11927. allow_undefined_flag_CXX=unsupported
  11928. always_export_symbols_CXX=yes
  11929. file_list_spec_CXX='@'
  11930. # Tell ltmain to make .lib files, not .a files.
  11931. libext=lib
  11932. # Tell ltmain to make .dll files, not .so files.
  11933. shrext_cmds=.dll
  11934. # FIXME: Setting linknames here is a bad hack.
  11935. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11936. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11937. cp "$export_symbols" "$output_objdir/$soname.def";
  11938. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11939. else
  11940. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11941. fi~
  11942. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11943. linknames='
  11944. # The linker will not automatically build a static lib if we build a DLL.
  11945. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11946. enable_shared_with_static_runtimes_CXX=yes
  11947. # Don't use ranlib
  11948. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11949. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11950. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11951. case $lt_outputfile in
  11952. *.exe|*.EXE) ;;
  11953. *)
  11954. lt_outputfile=$lt_outputfile.exe
  11955. lt_tool_outputfile=$lt_tool_outputfile.exe
  11956. ;;
  11957. esac~
  11958. func_to_tool_file "$lt_outputfile"~
  11959. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11960. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11961. $RM "$lt_outputfile.manifest";
  11962. fi'
  11963. ;;
  11964. *)
  11965. # g++
  11966. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11967. # as there is no search path for DLLs.
  11968. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11969. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11970. allow_undefined_flag_CXX=unsupported
  11971. always_export_symbols_CXX=no
  11972. enable_shared_with_static_runtimes_CXX=yes
  11973. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11974. 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'
  11975. # If the export-symbols file already is a .def file, use it as
  11976. # is; otherwise, prepend EXPORTS...
  11977. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11978. cp $export_symbols $output_objdir/$soname.def;
  11979. else
  11980. echo EXPORTS > $output_objdir/$soname.def;
  11981. cat $export_symbols >> $output_objdir/$soname.def;
  11982. fi~
  11983. $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'
  11984. else
  11985. ld_shlibs_CXX=no
  11986. fi
  11987. ;;
  11988. esac
  11989. ;;
  11990. darwin* | rhapsody*)
  11991. archive_cmds_need_lc_CXX=no
  11992. hardcode_direct_CXX=no
  11993. hardcode_automatic_CXX=yes
  11994. hardcode_shlibpath_var_CXX=unsupported
  11995. if test yes = "$lt_cv_ld_force_load"; then
  11996. 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\"`'
  11997. else
  11998. whole_archive_flag_spec_CXX=''
  11999. fi
  12000. link_all_deplibs_CXX=yes
  12001. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12002. case $cc_basename in
  12003. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12004. *) _lt_dar_can_shared=$GCC ;;
  12005. esac
  12006. if test yes = "$_lt_dar_can_shared"; then
  12007. output_verbose_link_cmd=func_echo_all
  12008. 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"
  12009. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12010. 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"
  12011. 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"
  12012. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12013. 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"
  12014. 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"
  12015. fi
  12016. else
  12017. ld_shlibs_CXX=no
  12018. fi
  12019. ;;
  12020. os2*)
  12021. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12022. hardcode_minus_L_CXX=yes
  12023. allow_undefined_flag_CXX=unsupported
  12024. shrext_cmds=.dll
  12025. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12026. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12027. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12028. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12029. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12030. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12031. emximp -o $lib $output_objdir/$libname.def'
  12032. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12033. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12034. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12035. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12036. prefix_cmds="$SED"~
  12037. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12038. prefix_cmds="$prefix_cmds -e 1d";
  12039. fi~
  12040. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12041. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12042. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12043. emximp -o $lib $output_objdir/$libname.def'
  12044. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12045. enable_shared_with_static_runtimes_CXX=yes
  12046. file_list_spec_CXX='@'
  12047. ;;
  12048. dgux*)
  12049. case $cc_basename in
  12050. ec++*)
  12051. # FIXME: insert proper C++ library support
  12052. ld_shlibs_CXX=no
  12053. ;;
  12054. ghcx*)
  12055. # Green Hills C++ Compiler
  12056. # FIXME: insert proper C++ library support
  12057. ld_shlibs_CXX=no
  12058. ;;
  12059. *)
  12060. # FIXME: insert proper C++ library support
  12061. ld_shlibs_CXX=no
  12062. ;;
  12063. esac
  12064. ;;
  12065. freebsd2.*)
  12066. # C++ shared libraries reported to be fairly broken before
  12067. # switch to ELF
  12068. ld_shlibs_CXX=no
  12069. ;;
  12070. freebsd-elf*)
  12071. archive_cmds_need_lc_CXX=no
  12072. ;;
  12073. freebsd* | dragonfly* | midnightbsd*)
  12074. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12075. # conventions
  12076. ld_shlibs_CXX=yes
  12077. ;;
  12078. haiku*)
  12079. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12080. link_all_deplibs_CXX=yes
  12081. ;;
  12082. hpux9*)
  12083. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12084. hardcode_libdir_separator_CXX=:
  12085. export_dynamic_flag_spec_CXX='$wl-E'
  12086. hardcode_direct_CXX=yes
  12087. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12088. # but as the default
  12089. # location of the library.
  12090. case $cc_basename in
  12091. CC*)
  12092. # FIXME: insert proper C++ library support
  12093. ld_shlibs_CXX=no
  12094. ;;
  12095. aCC*)
  12096. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12097. # Commands to make compiler produce verbose output that lists
  12098. # what "hidden" libraries, object files and flags are used when
  12099. # linking a shared library.
  12100. #
  12101. # There doesn't appear to be a way to prevent this compiler from
  12102. # explicitly linking system object files so we need to strip them
  12103. # from the output so that they don't get included in the library
  12104. # dependencies.
  12105. 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"'
  12106. ;;
  12107. *)
  12108. if test yes = "$GXX"; then
  12109. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12110. else
  12111. # FIXME: insert proper C++ library support
  12112. ld_shlibs_CXX=no
  12113. fi
  12114. ;;
  12115. esac
  12116. ;;
  12117. hpux10*|hpux11*)
  12118. if test no = "$with_gnu_ld"; then
  12119. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12120. hardcode_libdir_separator_CXX=:
  12121. case $host_cpu in
  12122. hppa*64*|ia64*)
  12123. ;;
  12124. *)
  12125. export_dynamic_flag_spec_CXX='$wl-E'
  12126. ;;
  12127. esac
  12128. fi
  12129. case $host_cpu in
  12130. hppa*64*|ia64*)
  12131. hardcode_direct_CXX=no
  12132. hardcode_shlibpath_var_CXX=no
  12133. ;;
  12134. *)
  12135. hardcode_direct_CXX=yes
  12136. hardcode_direct_absolute_CXX=yes
  12137. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12138. # but as the default
  12139. # location of the library.
  12140. ;;
  12141. esac
  12142. case $cc_basename in
  12143. CC*)
  12144. # FIXME: insert proper C++ library support
  12145. ld_shlibs_CXX=no
  12146. ;;
  12147. aCC*)
  12148. case $host_cpu in
  12149. hppa*64*)
  12150. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12151. ;;
  12152. ia64*)
  12153. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12154. ;;
  12155. *)
  12156. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12157. ;;
  12158. esac
  12159. # Commands to make compiler produce verbose output that lists
  12160. # what "hidden" libraries, object files and flags are used when
  12161. # linking a shared library.
  12162. #
  12163. # There doesn't appear to be a way to prevent this compiler from
  12164. # explicitly linking system object files so we need to strip them
  12165. # from the output so that they don't get included in the library
  12166. # dependencies.
  12167. 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"'
  12168. ;;
  12169. *)
  12170. if test yes = "$GXX"; then
  12171. if test no = "$with_gnu_ld"; then
  12172. case $host_cpu in
  12173. hppa*64*)
  12174. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12175. ;;
  12176. ia64*)
  12177. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12178. ;;
  12179. *)
  12180. 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'
  12181. ;;
  12182. esac
  12183. fi
  12184. else
  12185. # FIXME: insert proper C++ library support
  12186. ld_shlibs_CXX=no
  12187. fi
  12188. ;;
  12189. esac
  12190. ;;
  12191. interix[3-9]*)
  12192. hardcode_direct_CXX=no
  12193. hardcode_shlibpath_var_CXX=no
  12194. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12195. export_dynamic_flag_spec_CXX='$wl-E'
  12196. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12197. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12198. # default) and relocated if they conflict, which is a slow very memory
  12199. # consuming and fragmenting process. To avoid this, we pick a random,
  12200. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12201. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12202. 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'
  12203. 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'
  12204. ;;
  12205. irix5* | irix6*)
  12206. case $cc_basename in
  12207. CC*)
  12208. # SGI C++
  12209. 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'
  12210. # Archives containing C++ object files must be created using
  12211. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12212. # necessary to make sure instantiated templates are included
  12213. # in the archive.
  12214. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12215. ;;
  12216. *)
  12217. if test yes = "$GXX"; then
  12218. if test no = "$with_gnu_ld"; then
  12219. 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'
  12220. else
  12221. 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'
  12222. fi
  12223. fi
  12224. link_all_deplibs_CXX=yes
  12225. ;;
  12226. esac
  12227. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12228. hardcode_libdir_separator_CXX=:
  12229. inherit_rpath_CXX=yes
  12230. ;;
  12231. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12232. case $cc_basename in
  12233. KCC*)
  12234. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12235. # KCC will only create a shared library if the output file
  12236. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12237. # to its proper name (with version) after linking.
  12238. 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'
  12239. 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'
  12240. # Commands to make compiler produce verbose output that lists
  12241. # what "hidden" libraries, object files and flags are used when
  12242. # linking a shared library.
  12243. #
  12244. # There doesn't appear to be a way to prevent this compiler from
  12245. # explicitly linking system object files so we need to strip them
  12246. # from the output so that they don't get included in the library
  12247. # dependencies.
  12248. 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"'
  12249. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12250. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12251. # Archives containing C++ object files must be created using
  12252. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12253. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12254. ;;
  12255. icpc* | ecpc* )
  12256. # Intel C++
  12257. with_gnu_ld=yes
  12258. # version 8.0 and above of icpc choke on multiply defined symbols
  12259. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12260. # earlier do not add the objects themselves.
  12261. case `$CC -V 2>&1` in
  12262. *"Version 7."*)
  12263. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12264. 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'
  12265. ;;
  12266. *) # Version 8.0 or newer
  12267. tmp_idyn=
  12268. case $host_cpu in
  12269. ia64*) tmp_idyn=' -i_dynamic';;
  12270. esac
  12271. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12272. 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'
  12273. ;;
  12274. esac
  12275. archive_cmds_need_lc_CXX=no
  12276. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12277. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12278. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12279. ;;
  12280. pgCC* | pgcpp*)
  12281. # Portland Group C++ compiler
  12282. case `$CC -V` in
  12283. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12284. prelink_cmds_CXX='tpldir=Template.dir~
  12285. rm -rf $tpldir~
  12286. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12287. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12288. old_archive_cmds_CXX='tpldir=Template.dir~
  12289. rm -rf $tpldir~
  12290. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12291. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12292. $RANLIB $oldlib'
  12293. archive_cmds_CXX='tpldir=Template.dir~
  12294. rm -rf $tpldir~
  12295. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12296. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12297. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12298. rm -rf $tpldir~
  12299. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12300. $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'
  12301. ;;
  12302. *) # Version 6 and above use weak symbols
  12303. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12304. 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'
  12305. ;;
  12306. esac
  12307. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12308. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12309. 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'
  12310. ;;
  12311. cxx*)
  12312. # Compaq C++
  12313. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12314. 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'
  12315. runpath_var=LD_RUN_PATH
  12316. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12317. hardcode_libdir_separator_CXX=:
  12318. # Commands to make compiler produce verbose output that lists
  12319. # what "hidden" libraries, object files and flags are used when
  12320. # linking a shared library.
  12321. #
  12322. # There doesn't appear to be a way to prevent this compiler from
  12323. # explicitly linking system object files so we need to strip them
  12324. # from the output so that they don't get included in the library
  12325. # dependencies.
  12326. 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'
  12327. ;;
  12328. xl* | mpixl* | bgxl*)
  12329. # IBM XL 8.0 on PPC, with GNU ld
  12330. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12331. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12332. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12333. if test yes = "$supports_anon_versioning"; then
  12334. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12335. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12336. echo "local: *; };" >> $output_objdir/$libname.ver~
  12337. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12338. fi
  12339. ;;
  12340. *)
  12341. case `$CC -V 2>&1 | sed 5q` in
  12342. *Sun\ C*)
  12343. # Sun C++ 5.9
  12344. no_undefined_flag_CXX=' -zdefs'
  12345. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12346. 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'
  12347. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12348. 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'
  12349. compiler_needs_object_CXX=yes
  12350. # Not sure whether something based on
  12351. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12352. # would be better.
  12353. output_verbose_link_cmd='func_echo_all'
  12354. # Archives containing C++ object files must be created using
  12355. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12356. # necessary to make sure instantiated templates are included
  12357. # in the archive.
  12358. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12359. ;;
  12360. esac
  12361. ;;
  12362. esac
  12363. ;;
  12364. lynxos*)
  12365. # FIXME: insert proper C++ library support
  12366. ld_shlibs_CXX=no
  12367. ;;
  12368. m88k*)
  12369. # FIXME: insert proper C++ library support
  12370. ld_shlibs_CXX=no
  12371. ;;
  12372. mvs*)
  12373. case $cc_basename in
  12374. cxx*)
  12375. # FIXME: insert proper C++ library support
  12376. ld_shlibs_CXX=no
  12377. ;;
  12378. *)
  12379. # FIXME: insert proper C++ library support
  12380. ld_shlibs_CXX=no
  12381. ;;
  12382. esac
  12383. ;;
  12384. netbsd*)
  12385. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12386. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12387. wlarc=
  12388. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12389. hardcode_direct_CXX=yes
  12390. hardcode_shlibpath_var_CXX=no
  12391. fi
  12392. # Workaround some broken pre-1.5 toolchains
  12393. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12394. ;;
  12395. *nto* | *qnx*)
  12396. ld_shlibs_CXX=yes
  12397. ;;
  12398. openbsd* | bitrig*)
  12399. if test -f /usr/libexec/ld.so; then
  12400. hardcode_direct_CXX=yes
  12401. hardcode_shlibpath_var_CXX=no
  12402. hardcode_direct_absolute_CXX=yes
  12403. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12404. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12405. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12406. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12407. export_dynamic_flag_spec_CXX='$wl-E'
  12408. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12409. fi
  12410. output_verbose_link_cmd=func_echo_all
  12411. else
  12412. ld_shlibs_CXX=no
  12413. fi
  12414. ;;
  12415. osf3* | osf4* | osf5*)
  12416. case $cc_basename in
  12417. KCC*)
  12418. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12419. # KCC will only create a shared library if the output file
  12420. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12421. # to its proper name (with version) after linking.
  12422. 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'
  12423. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12424. hardcode_libdir_separator_CXX=:
  12425. # Archives containing C++ object files must be created using
  12426. # the KAI C++ compiler.
  12427. case $host in
  12428. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12429. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12430. esac
  12431. ;;
  12432. RCC*)
  12433. # Rational C++ 2.4.1
  12434. # FIXME: insert proper C++ library support
  12435. ld_shlibs_CXX=no
  12436. ;;
  12437. cxx*)
  12438. case $host in
  12439. osf3*)
  12440. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12441. 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'
  12442. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12443. ;;
  12444. *)
  12445. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12446. 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'
  12447. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12448. echo "-hidden">> $lib.exp~
  12449. $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~
  12450. $RM $lib.exp'
  12451. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12452. ;;
  12453. esac
  12454. hardcode_libdir_separator_CXX=:
  12455. # Commands to make compiler produce verbose output that lists
  12456. # what "hidden" libraries, object files and flags are used when
  12457. # linking a shared library.
  12458. #
  12459. # There doesn't appear to be a way to prevent this compiler from
  12460. # explicitly linking system object files so we need to strip them
  12461. # from the output so that they don't get included in the library
  12462. # dependencies.
  12463. 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"'
  12464. ;;
  12465. *)
  12466. if test yes,no = "$GXX,$with_gnu_ld"; then
  12467. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12468. case $host in
  12469. osf3*)
  12470. 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'
  12471. ;;
  12472. *)
  12473. 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'
  12474. ;;
  12475. esac
  12476. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12477. hardcode_libdir_separator_CXX=:
  12478. # Commands to make compiler produce verbose output that lists
  12479. # what "hidden" libraries, object files and flags are used when
  12480. # linking a shared library.
  12481. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12482. else
  12483. # FIXME: insert proper C++ library support
  12484. ld_shlibs_CXX=no
  12485. fi
  12486. ;;
  12487. esac
  12488. ;;
  12489. psos*)
  12490. # FIXME: insert proper C++ library support
  12491. ld_shlibs_CXX=no
  12492. ;;
  12493. sunos4*)
  12494. case $cc_basename in
  12495. CC*)
  12496. # Sun C++ 4.x
  12497. # FIXME: insert proper C++ library support
  12498. ld_shlibs_CXX=no
  12499. ;;
  12500. lcc*)
  12501. # Lucid
  12502. # FIXME: insert proper C++ library support
  12503. ld_shlibs_CXX=no
  12504. ;;
  12505. *)
  12506. # FIXME: insert proper C++ library support
  12507. ld_shlibs_CXX=no
  12508. ;;
  12509. esac
  12510. ;;
  12511. solaris*)
  12512. case $cc_basename in
  12513. CC* | sunCC*)
  12514. # Sun C++ 4.2, 5.x and Centerline C++
  12515. archive_cmds_need_lc_CXX=yes
  12516. no_undefined_flag_CXX=' -zdefs'
  12517. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12518. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12519. $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'
  12520. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12521. hardcode_shlibpath_var_CXX=no
  12522. case $host_os in
  12523. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12524. *)
  12525. # The compiler driver will combine and reorder linker options,
  12526. # but understands '-z linker_flag'.
  12527. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12528. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12529. ;;
  12530. esac
  12531. link_all_deplibs_CXX=yes
  12532. output_verbose_link_cmd='func_echo_all'
  12533. # Archives containing C++ object files must be created using
  12534. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12535. # necessary to make sure instantiated templates are included
  12536. # in the archive.
  12537. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12538. ;;
  12539. gcx*)
  12540. # Green Hills C++ Compiler
  12541. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12542. # The C++ compiler must be used to create the archive.
  12543. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12544. ;;
  12545. *)
  12546. # GNU C++ compiler with Solaris linker
  12547. if test yes,no = "$GXX,$with_gnu_ld"; then
  12548. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12549. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12550. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12551. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12552. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12553. # Commands to make compiler produce verbose output that lists
  12554. # what "hidden" libraries, object files and flags are used when
  12555. # linking a shared library.
  12556. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12557. else
  12558. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12559. # platform.
  12560. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12561. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12562. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12563. # Commands to make compiler produce verbose output that lists
  12564. # what "hidden" libraries, object files and flags are used when
  12565. # linking a shared library.
  12566. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12567. fi
  12568. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12569. case $host_os in
  12570. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12571. *)
  12572. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12573. ;;
  12574. esac
  12575. fi
  12576. ;;
  12577. esac
  12578. ;;
  12579. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12580. no_undefined_flag_CXX='$wl-z,text'
  12581. archive_cmds_need_lc_CXX=no
  12582. hardcode_shlibpath_var_CXX=no
  12583. runpath_var='LD_RUN_PATH'
  12584. case $cc_basename in
  12585. CC*)
  12586. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12587. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12588. ;;
  12589. *)
  12590. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12591. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12592. ;;
  12593. esac
  12594. ;;
  12595. sysv5* | sco3.2v5* | sco5v6*)
  12596. # Note: We CANNOT use -z defs as we might desire, because we do not
  12597. # link with -lc, and that would cause any symbols used from libc to
  12598. # always be unresolved, which means just about no library would
  12599. # ever link correctly. If we're not using GNU ld we use -z text
  12600. # though, which does catch some bad symbols but isn't as heavy-handed
  12601. # as -z defs.
  12602. no_undefined_flag_CXX='$wl-z,text'
  12603. allow_undefined_flag_CXX='$wl-z,nodefs'
  12604. archive_cmds_need_lc_CXX=no
  12605. hardcode_shlibpath_var_CXX=no
  12606. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12607. hardcode_libdir_separator_CXX=':'
  12608. link_all_deplibs_CXX=yes
  12609. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12610. runpath_var='LD_RUN_PATH'
  12611. case $cc_basename in
  12612. CC*)
  12613. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12614. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12615. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12616. '"$old_archive_cmds_CXX"
  12617. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12618. '"$reload_cmds_CXX"
  12619. ;;
  12620. *)
  12621. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12622. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12623. ;;
  12624. esac
  12625. ;;
  12626. tandem*)
  12627. case $cc_basename in
  12628. NCC*)
  12629. # NonStop-UX NCC 3.20
  12630. # FIXME: insert proper C++ library support
  12631. ld_shlibs_CXX=no
  12632. ;;
  12633. *)
  12634. # FIXME: insert proper C++ library support
  12635. ld_shlibs_CXX=no
  12636. ;;
  12637. esac
  12638. ;;
  12639. vxworks*)
  12640. # FIXME: insert proper C++ library support
  12641. ld_shlibs_CXX=no
  12642. ;;
  12643. *)
  12644. # FIXME: insert proper C++ library support
  12645. ld_shlibs_CXX=no
  12646. ;;
  12647. esac
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12649. $as_echo "$ld_shlibs_CXX" >&6; }
  12650. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12651. GCC_CXX=$GXX
  12652. LD_CXX=$LD
  12653. ## CAVEAT EMPTOR:
  12654. ## There is no encapsulation within the following macros, do not change
  12655. ## the running order or otherwise move them around unless you know exactly
  12656. ## what you are doing...
  12657. # Dependencies to place before and after the object being linked:
  12658. predep_objects_CXX=
  12659. postdep_objects_CXX=
  12660. predeps_CXX=
  12661. postdeps_CXX=
  12662. compiler_lib_search_path_CXX=
  12663. cat > conftest.$ac_ext <<_LT_EOF
  12664. class Foo
  12665. {
  12666. public:
  12667. Foo (void) { a = 0; }
  12668. private:
  12669. int a;
  12670. };
  12671. _LT_EOF
  12672. _lt_libdeps_save_CFLAGS=$CFLAGS
  12673. case "$CC $CFLAGS " in #(
  12674. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12675. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12676. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12677. esac
  12678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12679. (eval $ac_compile) 2>&5
  12680. ac_status=$?
  12681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12682. test $ac_status = 0; }; then
  12683. # Parse the compiler output and extract the necessary
  12684. # objects, libraries and library flags.
  12685. # Sentinel used to keep track of whether or not we are before
  12686. # the conftest object file.
  12687. pre_test_object_deps_done=no
  12688. for p in `eval "$output_verbose_link_cmd"`; do
  12689. case $prev$p in
  12690. -L* | -R* | -l*)
  12691. # Some compilers place space between "-{L,R}" and the path.
  12692. # Remove the space.
  12693. if test x-L = "x$p" ||
  12694. test x-R = "x$p" ||
  12695. test x-l = "x$p"; then
  12696. prev=$p
  12697. continue
  12698. fi
  12699. # Expand the sysroot to ease extracting the directories later.
  12700. if test -z "$prev"; then
  12701. case $p in
  12702. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12703. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12704. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12705. esac
  12706. fi
  12707. case $p in
  12708. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12709. esac
  12710. if test no = "$pre_test_object_deps_done"; then
  12711. case $prev in
  12712. -L | -R)
  12713. # Internal compiler library paths should come after those
  12714. # provided the user. The postdeps already come after the
  12715. # user supplied libs so there is no need to process them.
  12716. if test -z "$compiler_lib_search_path_CXX"; then
  12717. compiler_lib_search_path_CXX=$prev$p
  12718. else
  12719. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12720. fi
  12721. ;;
  12722. # The "-l" case would never come before the object being
  12723. # linked, so don't bother handling this case.
  12724. esac
  12725. else
  12726. if test -z "$postdeps_CXX"; then
  12727. postdeps_CXX=$prev$p
  12728. else
  12729. postdeps_CXX="${postdeps_CXX} $prev$p"
  12730. fi
  12731. fi
  12732. prev=
  12733. ;;
  12734. *.lto.$objext) ;; # Ignore GCC LTO objects
  12735. *.$objext)
  12736. # This assumes that the test object file only shows up
  12737. # once in the compiler output.
  12738. if test "$p" = "conftest.$objext"; then
  12739. pre_test_object_deps_done=yes
  12740. continue
  12741. fi
  12742. if test no = "$pre_test_object_deps_done"; then
  12743. if test -z "$predep_objects_CXX"; then
  12744. predep_objects_CXX=$p
  12745. else
  12746. predep_objects_CXX="$predep_objects_CXX $p"
  12747. fi
  12748. else
  12749. if test -z "$postdep_objects_CXX"; then
  12750. postdep_objects_CXX=$p
  12751. else
  12752. postdep_objects_CXX="$postdep_objects_CXX $p"
  12753. fi
  12754. fi
  12755. ;;
  12756. *) ;; # Ignore the rest.
  12757. esac
  12758. done
  12759. # Clean up.
  12760. rm -f a.out a.exe
  12761. else
  12762. echo "libtool.m4: error: problem compiling CXX test program"
  12763. fi
  12764. $RM -f confest.$objext
  12765. CFLAGS=$_lt_libdeps_save_CFLAGS
  12766. # PORTME: override above test on systems where it is broken
  12767. case $host_os in
  12768. interix[3-9]*)
  12769. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12770. # hack all around it, let's just trust "g++" to DTRT.
  12771. predep_objects_CXX=
  12772. postdep_objects_CXX=
  12773. postdeps_CXX=
  12774. ;;
  12775. esac
  12776. case " $postdeps_CXX " in
  12777. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12778. esac
  12779. compiler_lib_search_dirs_CXX=
  12780. if test -n "${compiler_lib_search_path_CXX}"; then
  12781. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12782. fi
  12783. lt_prog_compiler_wl_CXX=
  12784. lt_prog_compiler_pic_CXX=
  12785. lt_prog_compiler_static_CXX=
  12786. # C++ specific cases for pic, static, wl, etc.
  12787. if test yes = "$GXX"; then
  12788. lt_prog_compiler_wl_CXX='-Wl,'
  12789. lt_prog_compiler_static_CXX='-static'
  12790. case $host_os in
  12791. aix*)
  12792. # All AIX code is PIC.
  12793. if test ia64 = "$host_cpu"; then
  12794. # AIX 5 now supports IA64 processor
  12795. lt_prog_compiler_static_CXX='-Bstatic'
  12796. fi
  12797. lt_prog_compiler_pic_CXX='-fPIC'
  12798. ;;
  12799. amigaos*)
  12800. case $host_cpu in
  12801. powerpc)
  12802. # see comment about AmigaOS4 .so support
  12803. lt_prog_compiler_pic_CXX='-fPIC'
  12804. ;;
  12805. m68k)
  12806. # FIXME: we need at least 68020 code to build shared libraries, but
  12807. # adding the '-m68020' flag to GCC prevents building anything better,
  12808. # like '-m68040'.
  12809. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12810. ;;
  12811. esac
  12812. ;;
  12813. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12814. # PIC is the default for these OSes.
  12815. ;;
  12816. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12817. # This hack is so that the source file can tell whether it is being
  12818. # built for inclusion in a dll (and should export symbols for example).
  12819. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12820. # (--disable-auto-import) libraries
  12821. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12822. case $host_os in
  12823. os2*)
  12824. lt_prog_compiler_static_CXX='$wl-static'
  12825. ;;
  12826. esac
  12827. ;;
  12828. darwin* | rhapsody*)
  12829. # PIC is the default on this platform
  12830. # Common symbols not allowed in MH_DYLIB files
  12831. lt_prog_compiler_pic_CXX='-fno-common'
  12832. ;;
  12833. *djgpp*)
  12834. # DJGPP does not support shared libraries at all
  12835. lt_prog_compiler_pic_CXX=
  12836. ;;
  12837. haiku*)
  12838. # PIC is the default for Haiku.
  12839. # The "-static" flag exists, but is broken.
  12840. lt_prog_compiler_static_CXX=
  12841. ;;
  12842. interix[3-9]*)
  12843. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12844. # Instead, we relocate shared libraries at runtime.
  12845. ;;
  12846. sysv4*MP*)
  12847. if test -d /usr/nec; then
  12848. lt_prog_compiler_pic_CXX=-Kconform_pic
  12849. fi
  12850. ;;
  12851. hpux*)
  12852. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12853. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12854. # sets the default TLS model and affects inlining.
  12855. case $host_cpu in
  12856. hppa*64*)
  12857. ;;
  12858. *)
  12859. lt_prog_compiler_pic_CXX='-fPIC'
  12860. ;;
  12861. esac
  12862. ;;
  12863. *qnx* | *nto*)
  12864. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12865. # it will coredump.
  12866. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12867. ;;
  12868. *)
  12869. lt_prog_compiler_pic_CXX='-fPIC'
  12870. ;;
  12871. esac
  12872. else
  12873. case $host_os in
  12874. aix[4-9]*)
  12875. # All AIX code is PIC.
  12876. if test ia64 = "$host_cpu"; then
  12877. # AIX 5 now supports IA64 processor
  12878. lt_prog_compiler_static_CXX='-Bstatic'
  12879. else
  12880. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12881. fi
  12882. ;;
  12883. chorus*)
  12884. case $cc_basename in
  12885. cxch68*)
  12886. # Green Hills C++ Compiler
  12887. # _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"
  12888. ;;
  12889. esac
  12890. ;;
  12891. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12892. # This hack is so that the source file can tell whether it is being
  12893. # built for inclusion in a dll (and should export symbols for example).
  12894. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12895. ;;
  12896. dgux*)
  12897. case $cc_basename in
  12898. ec++*)
  12899. lt_prog_compiler_pic_CXX='-KPIC'
  12900. ;;
  12901. ghcx*)
  12902. # Green Hills C++ Compiler
  12903. lt_prog_compiler_pic_CXX='-pic'
  12904. ;;
  12905. *)
  12906. ;;
  12907. esac
  12908. ;;
  12909. freebsd* | dragonfly* | midnightbsd*)
  12910. # FreeBSD uses GNU C++
  12911. ;;
  12912. hpux9* | hpux10* | hpux11*)
  12913. case $cc_basename in
  12914. CC*)
  12915. lt_prog_compiler_wl_CXX='-Wl,'
  12916. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12917. if test ia64 != "$host_cpu"; then
  12918. lt_prog_compiler_pic_CXX='+Z'
  12919. fi
  12920. ;;
  12921. aCC*)
  12922. lt_prog_compiler_wl_CXX='-Wl,'
  12923. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12924. case $host_cpu in
  12925. hppa*64*|ia64*)
  12926. # +Z the default
  12927. ;;
  12928. *)
  12929. lt_prog_compiler_pic_CXX='+Z'
  12930. ;;
  12931. esac
  12932. ;;
  12933. *)
  12934. ;;
  12935. esac
  12936. ;;
  12937. interix*)
  12938. # This is c89, which is MS Visual C++ (no shared libs)
  12939. # Anyone wants to do a port?
  12940. ;;
  12941. irix5* | irix6* | nonstopux*)
  12942. case $cc_basename in
  12943. CC*)
  12944. lt_prog_compiler_wl_CXX='-Wl,'
  12945. lt_prog_compiler_static_CXX='-non_shared'
  12946. # CC pic flag -KPIC is the default.
  12947. ;;
  12948. *)
  12949. ;;
  12950. esac
  12951. ;;
  12952. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12953. case $cc_basename in
  12954. KCC*)
  12955. # KAI C++ Compiler
  12956. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12957. lt_prog_compiler_pic_CXX='-fPIC'
  12958. ;;
  12959. ecpc* )
  12960. # old Intel C++ for x86_64, which still supported -KPIC.
  12961. lt_prog_compiler_wl_CXX='-Wl,'
  12962. lt_prog_compiler_pic_CXX='-KPIC'
  12963. lt_prog_compiler_static_CXX='-static'
  12964. ;;
  12965. icpc* )
  12966. # Intel C++, used to be incompatible with GCC.
  12967. # ICC 10 doesn't accept -KPIC any more.
  12968. lt_prog_compiler_wl_CXX='-Wl,'
  12969. lt_prog_compiler_pic_CXX='-fPIC'
  12970. lt_prog_compiler_static_CXX='-static'
  12971. ;;
  12972. pgCC* | pgcpp*)
  12973. # Portland Group C++ compiler
  12974. lt_prog_compiler_wl_CXX='-Wl,'
  12975. lt_prog_compiler_pic_CXX='-fpic'
  12976. lt_prog_compiler_static_CXX='-Bstatic'
  12977. ;;
  12978. cxx*)
  12979. # Compaq C++
  12980. # Make sure the PIC flag is empty. It appears that all Alpha
  12981. # Linux and Compaq Tru64 Unix objects are PIC.
  12982. lt_prog_compiler_pic_CXX=
  12983. lt_prog_compiler_static_CXX='-non_shared'
  12984. ;;
  12985. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12986. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12987. lt_prog_compiler_wl_CXX='-Wl,'
  12988. lt_prog_compiler_pic_CXX='-qpic'
  12989. lt_prog_compiler_static_CXX='-qstaticlink'
  12990. ;;
  12991. *)
  12992. case `$CC -V 2>&1 | sed 5q` in
  12993. *Sun\ C*)
  12994. # Sun C++ 5.9
  12995. lt_prog_compiler_pic_CXX='-KPIC'
  12996. lt_prog_compiler_static_CXX='-Bstatic'
  12997. lt_prog_compiler_wl_CXX='-Qoption ld '
  12998. ;;
  12999. esac
  13000. ;;
  13001. esac
  13002. ;;
  13003. lynxos*)
  13004. ;;
  13005. m88k*)
  13006. ;;
  13007. mvs*)
  13008. case $cc_basename in
  13009. cxx*)
  13010. lt_prog_compiler_pic_CXX='-W c,exportall'
  13011. ;;
  13012. *)
  13013. ;;
  13014. esac
  13015. ;;
  13016. netbsd*)
  13017. ;;
  13018. *qnx* | *nto*)
  13019. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13020. # it will coredump.
  13021. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13022. ;;
  13023. osf3* | osf4* | osf5*)
  13024. case $cc_basename in
  13025. KCC*)
  13026. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13027. ;;
  13028. RCC*)
  13029. # Rational C++ 2.4.1
  13030. lt_prog_compiler_pic_CXX='-pic'
  13031. ;;
  13032. cxx*)
  13033. # Digital/Compaq C++
  13034. lt_prog_compiler_wl_CXX='-Wl,'
  13035. # Make sure the PIC flag is empty. It appears that all Alpha
  13036. # Linux and Compaq Tru64 Unix objects are PIC.
  13037. lt_prog_compiler_pic_CXX=
  13038. lt_prog_compiler_static_CXX='-non_shared'
  13039. ;;
  13040. *)
  13041. ;;
  13042. esac
  13043. ;;
  13044. psos*)
  13045. ;;
  13046. solaris*)
  13047. case $cc_basename in
  13048. CC* | sunCC*)
  13049. # Sun C++ 4.2, 5.x and Centerline C++
  13050. lt_prog_compiler_pic_CXX='-KPIC'
  13051. lt_prog_compiler_static_CXX='-Bstatic'
  13052. lt_prog_compiler_wl_CXX='-Qoption ld '
  13053. ;;
  13054. gcx*)
  13055. # Green Hills C++ Compiler
  13056. lt_prog_compiler_pic_CXX='-PIC'
  13057. ;;
  13058. *)
  13059. ;;
  13060. esac
  13061. ;;
  13062. sunos4*)
  13063. case $cc_basename in
  13064. CC*)
  13065. # Sun C++ 4.x
  13066. lt_prog_compiler_pic_CXX='-pic'
  13067. lt_prog_compiler_static_CXX='-Bstatic'
  13068. ;;
  13069. lcc*)
  13070. # Lucid
  13071. lt_prog_compiler_pic_CXX='-pic'
  13072. ;;
  13073. *)
  13074. ;;
  13075. esac
  13076. ;;
  13077. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13078. case $cc_basename in
  13079. CC*)
  13080. lt_prog_compiler_wl_CXX='-Wl,'
  13081. lt_prog_compiler_pic_CXX='-KPIC'
  13082. lt_prog_compiler_static_CXX='-Bstatic'
  13083. ;;
  13084. esac
  13085. ;;
  13086. tandem*)
  13087. case $cc_basename in
  13088. NCC*)
  13089. # NonStop-UX NCC 3.20
  13090. lt_prog_compiler_pic_CXX='-KPIC'
  13091. ;;
  13092. *)
  13093. ;;
  13094. esac
  13095. ;;
  13096. vxworks*)
  13097. ;;
  13098. *)
  13099. lt_prog_compiler_can_build_shared_CXX=no
  13100. ;;
  13101. esac
  13102. fi
  13103. case $host_os in
  13104. # For platforms that do not support PIC, -DPIC is meaningless:
  13105. *djgpp*)
  13106. lt_prog_compiler_pic_CXX=
  13107. ;;
  13108. *)
  13109. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13110. ;;
  13111. esac
  13112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13113. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13114. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13115. $as_echo_n "(cached) " >&6
  13116. else
  13117. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13118. fi
  13119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13120. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13121. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13122. #
  13123. # Check to make sure the PIC flag actually works.
  13124. #
  13125. if test -n "$lt_prog_compiler_pic_CXX"; then
  13126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13127. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13128. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13129. $as_echo_n "(cached) " >&6
  13130. else
  13131. lt_cv_prog_compiler_pic_works_CXX=no
  13132. ac_outfile=conftest.$ac_objext
  13133. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13134. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13135. # Insert the option either (1) after the last *FLAGS variable, or
  13136. # (2) before a word containing "conftest.", or (3) at the end.
  13137. # Note that $ac_compile itself does not contain backslashes and begins
  13138. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13139. # The option is referenced via a variable to avoid confusing sed.
  13140. lt_compile=`echo "$ac_compile" | $SED \
  13141. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13142. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13143. -e 's:$: $lt_compiler_flag:'`
  13144. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13145. (eval "$lt_compile" 2>conftest.err)
  13146. ac_status=$?
  13147. cat conftest.err >&5
  13148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13149. if (exit $ac_status) && test -s "$ac_outfile"; then
  13150. # The compiler can only warn and ignore the option if not recognized
  13151. # So say no if there are warnings other than the usual output.
  13152. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13153. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13154. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13155. lt_cv_prog_compiler_pic_works_CXX=yes
  13156. fi
  13157. fi
  13158. $RM conftest*
  13159. fi
  13160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13161. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13162. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13163. case $lt_prog_compiler_pic_CXX in
  13164. "" | " "*) ;;
  13165. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13166. esac
  13167. else
  13168. lt_prog_compiler_pic_CXX=
  13169. lt_prog_compiler_can_build_shared_CXX=no
  13170. fi
  13171. fi
  13172. #
  13173. # Check to make sure the static flag actually works.
  13174. #
  13175. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13177. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13178. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13179. $as_echo_n "(cached) " >&6
  13180. else
  13181. lt_cv_prog_compiler_static_works_CXX=no
  13182. save_LDFLAGS=$LDFLAGS
  13183. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13184. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13185. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13186. # The linker can only warn and ignore the option if not recognized
  13187. # So say no if there are warnings
  13188. if test -s conftest.err; then
  13189. # Append any errors to the config.log.
  13190. cat conftest.err 1>&5
  13191. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13192. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13193. if diff conftest.exp conftest.er2 >/dev/null; then
  13194. lt_cv_prog_compiler_static_works_CXX=yes
  13195. fi
  13196. else
  13197. lt_cv_prog_compiler_static_works_CXX=yes
  13198. fi
  13199. fi
  13200. $RM -r conftest*
  13201. LDFLAGS=$save_LDFLAGS
  13202. fi
  13203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13204. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13205. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13206. :
  13207. else
  13208. lt_prog_compiler_static_CXX=
  13209. fi
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13211. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13212. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13213. $as_echo_n "(cached) " >&6
  13214. else
  13215. lt_cv_prog_compiler_c_o_CXX=no
  13216. $RM -r conftest 2>/dev/null
  13217. mkdir conftest
  13218. cd conftest
  13219. mkdir out
  13220. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13221. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13222. # Insert the option either (1) after the last *FLAGS variable, or
  13223. # (2) before a word containing "conftest.", or (3) at the end.
  13224. # Note that $ac_compile itself does not contain backslashes and begins
  13225. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13226. lt_compile=`echo "$ac_compile" | $SED \
  13227. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13228. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13229. -e 's:$: $lt_compiler_flag:'`
  13230. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13231. (eval "$lt_compile" 2>out/conftest.err)
  13232. ac_status=$?
  13233. cat out/conftest.err >&5
  13234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13235. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13236. then
  13237. # The compiler can only warn and ignore the option if not recognized
  13238. # So say no if there are warnings
  13239. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13240. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13241. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13242. lt_cv_prog_compiler_c_o_CXX=yes
  13243. fi
  13244. fi
  13245. chmod u+w . 2>&5
  13246. $RM conftest*
  13247. # SGI C++ compiler will create directory out/ii_files/ for
  13248. # template instantiation
  13249. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13250. $RM out/* && rmdir out
  13251. cd ..
  13252. $RM -r conftest
  13253. $RM conftest*
  13254. fi
  13255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13256. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13258. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13259. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13260. $as_echo_n "(cached) " >&6
  13261. else
  13262. lt_cv_prog_compiler_c_o_CXX=no
  13263. $RM -r conftest 2>/dev/null
  13264. mkdir conftest
  13265. cd conftest
  13266. mkdir out
  13267. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13268. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13269. # Insert the option either (1) after the last *FLAGS variable, or
  13270. # (2) before a word containing "conftest.", or (3) at the end.
  13271. # Note that $ac_compile itself does not contain backslashes and begins
  13272. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13273. lt_compile=`echo "$ac_compile" | $SED \
  13274. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13275. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13276. -e 's:$: $lt_compiler_flag:'`
  13277. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13278. (eval "$lt_compile" 2>out/conftest.err)
  13279. ac_status=$?
  13280. cat out/conftest.err >&5
  13281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13282. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13283. then
  13284. # The compiler can only warn and ignore the option if not recognized
  13285. # So say no if there are warnings
  13286. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13287. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13288. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13289. lt_cv_prog_compiler_c_o_CXX=yes
  13290. fi
  13291. fi
  13292. chmod u+w . 2>&5
  13293. $RM conftest*
  13294. # SGI C++ compiler will create directory out/ii_files/ for
  13295. # template instantiation
  13296. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13297. $RM out/* && rmdir out
  13298. cd ..
  13299. $RM -r conftest
  13300. $RM conftest*
  13301. fi
  13302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13303. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13304. hard_links=nottested
  13305. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13306. # do not overwrite the value of need_locks provided by the user
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13308. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13309. hard_links=yes
  13310. $RM conftest*
  13311. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13312. touch conftest.a
  13313. ln conftest.a conftest.b 2>&5 || hard_links=no
  13314. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13316. $as_echo "$hard_links" >&6; }
  13317. if test no = "$hard_links"; then
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13319. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13320. need_locks=warn
  13321. fi
  13322. else
  13323. need_locks=no
  13324. fi
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13326. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13327. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13328. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13329. case $host_os in
  13330. aix[4-9]*)
  13331. # If we're using GNU nm, then we don't want the "-C" option.
  13332. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13333. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13334. # weak defined symbols like other global defined symbols, whereas
  13335. # GNU nm marks them as "W".
  13336. # While the 'weak' keyword is ignored in the Export File, we need
  13337. # it in the Import File for the 'aix-soname' feature, so we have
  13338. # to replace the "-B" option with "-P" for AIX nm.
  13339. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13340. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13341. else
  13342. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13343. fi
  13344. ;;
  13345. pw32*)
  13346. export_symbols_cmds_CXX=$ltdll_cmds
  13347. ;;
  13348. cygwin* | mingw* | cegcc*)
  13349. case $cc_basename in
  13350. cl*)
  13351. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13352. ;;
  13353. *)
  13354. 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'
  13355. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13356. ;;
  13357. esac
  13358. ;;
  13359. *)
  13360. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13361. ;;
  13362. esac
  13363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13364. $as_echo "$ld_shlibs_CXX" >&6; }
  13365. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13366. with_gnu_ld_CXX=$with_gnu_ld
  13367. #
  13368. # Do we need to explicitly link libc?
  13369. #
  13370. case "x$archive_cmds_need_lc_CXX" in
  13371. x|xyes)
  13372. # Assume -lc should be added
  13373. archive_cmds_need_lc_CXX=yes
  13374. if test yes,yes = "$GCC,$enable_shared"; then
  13375. case $archive_cmds_CXX in
  13376. *'~'*)
  13377. # FIXME: we may have to deal with multi-command sequences.
  13378. ;;
  13379. '$CC '*)
  13380. # Test whether the compiler implicitly links with -lc since on some
  13381. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13382. # to ld, don't add -lc before -lgcc.
  13383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13384. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13385. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13386. $as_echo_n "(cached) " >&6
  13387. else
  13388. $RM conftest*
  13389. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13390. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13391. (eval $ac_compile) 2>&5
  13392. ac_status=$?
  13393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13394. test $ac_status = 0; } 2>conftest.err; then
  13395. soname=conftest
  13396. lib=conftest
  13397. libobjs=conftest.$ac_objext
  13398. deplibs=
  13399. wl=$lt_prog_compiler_wl_CXX
  13400. pic_flag=$lt_prog_compiler_pic_CXX
  13401. compiler_flags=-v
  13402. linker_flags=-v
  13403. verstring=
  13404. output_objdir=.
  13405. libname=conftest
  13406. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13407. allow_undefined_flag_CXX=
  13408. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13409. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13410. ac_status=$?
  13411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13412. test $ac_status = 0; }
  13413. then
  13414. lt_cv_archive_cmds_need_lc_CXX=no
  13415. else
  13416. lt_cv_archive_cmds_need_lc_CXX=yes
  13417. fi
  13418. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13419. else
  13420. cat conftest.err 1>&5
  13421. fi
  13422. $RM conftest*
  13423. fi
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13425. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13426. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13427. ;;
  13428. esac
  13429. fi
  13430. ;;
  13431. esac
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13433. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13434. library_names_spec=
  13435. libname_spec='lib$name'
  13436. soname_spec=
  13437. shrext_cmds=.so
  13438. postinstall_cmds=
  13439. postuninstall_cmds=
  13440. finish_cmds=
  13441. finish_eval=
  13442. shlibpath_var=
  13443. shlibpath_overrides_runpath=unknown
  13444. version_type=none
  13445. dynamic_linker="$host_os ld.so"
  13446. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13447. need_lib_prefix=unknown
  13448. hardcode_into_libs=no
  13449. # when you set need_version to no, make sure it does not cause -set_version
  13450. # flags to be left without arguments
  13451. need_version=unknown
  13452. case $host_os in
  13453. aix3*)
  13454. version_type=linux # correct to gnu/linux during the next big refactor
  13455. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13456. shlibpath_var=LIBPATH
  13457. # AIX 3 has no versioning support, so we append a major version to the name.
  13458. soname_spec='$libname$release$shared_ext$major'
  13459. ;;
  13460. aix[4-9]*)
  13461. version_type=linux # correct to gnu/linux during the next big refactor
  13462. need_lib_prefix=no
  13463. need_version=no
  13464. hardcode_into_libs=yes
  13465. if test ia64 = "$host_cpu"; then
  13466. # AIX 5 supports IA64
  13467. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13468. shlibpath_var=LD_LIBRARY_PATH
  13469. else
  13470. # With GCC up to 2.95.x, collect2 would create an import file
  13471. # for dependence libraries. The import file would start with
  13472. # the line '#! .'. This would cause the generated library to
  13473. # depend on '.', always an invalid library. This was fixed in
  13474. # development snapshots of GCC prior to 3.0.
  13475. case $host_os in
  13476. aix4 | aix4.[01] | aix4.[01].*)
  13477. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13478. echo ' yes '
  13479. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13480. :
  13481. else
  13482. can_build_shared=no
  13483. fi
  13484. ;;
  13485. esac
  13486. # Using Import Files as archive members, it is possible to support
  13487. # filename-based versioning of shared library archives on AIX. While
  13488. # this would work for both with and without runtime linking, it will
  13489. # prevent static linking of such archives. So we do filename-based
  13490. # shared library versioning with .so extension only, which is used
  13491. # when both runtime linking and shared linking is enabled.
  13492. # Unfortunately, runtime linking may impact performance, so we do
  13493. # not want this to be the default eventually. Also, we use the
  13494. # versioned .so libs for executables only if there is the -brtl
  13495. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13496. # To allow for filename-based versioning support, we need to create
  13497. # libNAME.so.V as an archive file, containing:
  13498. # *) an Import File, referring to the versioned filename of the
  13499. # archive as well as the shared archive member, telling the
  13500. # bitwidth (32 or 64) of that shared object, and providing the
  13501. # list of exported symbols of that shared object, eventually
  13502. # decorated with the 'weak' keyword
  13503. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13504. # it being seen by the linker.
  13505. # At run time we better use the real file rather than another symlink,
  13506. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13507. case $with_aix_soname,$aix_use_runtimelinking in
  13508. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13509. # soname into executable. Probably we can add versioning support to
  13510. # collect2, so additional links can be useful in future.
  13511. aix,yes) # traditional libtool
  13512. dynamic_linker='AIX unversionable lib.so'
  13513. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13514. # instead of lib<name>.a to let people know that these are not
  13515. # typical AIX shared libraries.
  13516. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13517. ;;
  13518. aix,no) # traditional AIX only
  13519. dynamic_linker='AIX lib.a(lib.so.V)'
  13520. # We preserve .a as extension for shared libraries through AIX4.2
  13521. # and later when we are not doing run time linking.
  13522. library_names_spec='$libname$release.a $libname.a'
  13523. soname_spec='$libname$release$shared_ext$major'
  13524. ;;
  13525. svr4,*) # full svr4 only
  13526. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13527. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13528. # We do not specify a path in Import Files, so LIBPATH fires.
  13529. shlibpath_overrides_runpath=yes
  13530. ;;
  13531. *,yes) # both, prefer svr4
  13532. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13533. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13534. # unpreferred sharedlib libNAME.a needs extra handling
  13535. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13536. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13537. # We do not specify a path in Import Files, so LIBPATH fires.
  13538. shlibpath_overrides_runpath=yes
  13539. ;;
  13540. *,no) # both, prefer aix
  13541. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13542. library_names_spec='$libname$release.a $libname.a'
  13543. soname_spec='$libname$release$shared_ext$major'
  13544. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13545. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13546. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13547. ;;
  13548. esac
  13549. shlibpath_var=LIBPATH
  13550. fi
  13551. ;;
  13552. amigaos*)
  13553. case $host_cpu in
  13554. powerpc)
  13555. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13556. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13557. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13558. ;;
  13559. m68k)
  13560. library_names_spec='$libname.ixlibrary $libname.a'
  13561. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13562. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  13563. ;;
  13564. esac
  13565. ;;
  13566. beos*)
  13567. library_names_spec='$libname$shared_ext'
  13568. dynamic_linker="$host_os ld.so"
  13569. shlibpath_var=LIBRARY_PATH
  13570. ;;
  13571. bsdi[45]*)
  13572. version_type=linux # correct to gnu/linux during the next big refactor
  13573. need_version=no
  13574. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13575. soname_spec='$libname$release$shared_ext$major'
  13576. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13577. shlibpath_var=LD_LIBRARY_PATH
  13578. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13579. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13580. # the default ld.so.conf also contains /usr/contrib/lib and
  13581. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13582. # libtool to hard-code these into programs
  13583. ;;
  13584. cygwin* | mingw* | pw32* | cegcc*)
  13585. version_type=windows
  13586. shrext_cmds=.dll
  13587. need_version=no
  13588. need_lib_prefix=no
  13589. case $GCC,$cc_basename in
  13590. yes,*)
  13591. # gcc
  13592. library_names_spec='$libname.dll.a'
  13593. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13594. postinstall_cmds='base_file=`basename \$file`~
  13595. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13596. dldir=$destdir/`dirname \$dlpath`~
  13597. test -d \$dldir || mkdir -p \$dldir~
  13598. $install_prog $dir/$dlname \$dldir/$dlname~
  13599. chmod a+x \$dldir/$dlname~
  13600. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13601. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13602. fi'
  13603. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13604. dlpath=$dir/\$dldll~
  13605. $RM \$dlpath'
  13606. shlibpath_overrides_runpath=yes
  13607. case $host_os in
  13608. cygwin*)
  13609. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13610. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13611. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13612. ;;
  13613. mingw* | cegcc*)
  13614. # MinGW DLLs use traditional 'lib' prefix
  13615. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13616. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13617. ;;
  13618. pw32*)
  13619. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13620. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13621. ;;
  13622. esac
  13623. dynamic_linker='Win32 ld.exe'
  13624. ;;
  13625. *,cl*)
  13626. # Native MSVC
  13627. libname_spec='$name'
  13628. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13629. library_names_spec='$libname.dll.lib'
  13630. case $build_os in
  13631. mingw*)
  13632. sys_lib_search_path_spec=
  13633. lt_save_ifs=$IFS
  13634. IFS=';'
  13635. for lt_path in $LIB
  13636. do
  13637. IFS=$lt_save_ifs
  13638. # Let DOS variable expansion print the short 8.3 style file name.
  13639. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13640. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13641. done
  13642. IFS=$lt_save_ifs
  13643. # Convert to MSYS style.
  13644. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13645. ;;
  13646. cygwin*)
  13647. # Convert to unix form, then to dos form, then back to unix form
  13648. # but this time dos style (no spaces!) so that the unix form looks
  13649. # like /cygdrive/c/PROGRA~1:/cygdr...
  13650. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13651. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13652. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13653. ;;
  13654. *)
  13655. sys_lib_search_path_spec=$LIB
  13656. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13657. # It is most probably a Windows format PATH.
  13658. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13659. else
  13660. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13661. fi
  13662. # FIXME: find the short name or the path components, as spaces are
  13663. # common. (e.g. "Program Files" -> "PROGRA~1")
  13664. ;;
  13665. esac
  13666. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13667. postinstall_cmds='base_file=`basename \$file`~
  13668. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13669. dldir=$destdir/`dirname \$dlpath`~
  13670. test -d \$dldir || mkdir -p \$dldir~
  13671. $install_prog $dir/$dlname \$dldir/$dlname'
  13672. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13673. dlpath=$dir/\$dldll~
  13674. $RM \$dlpath'
  13675. shlibpath_overrides_runpath=yes
  13676. dynamic_linker='Win32 link.exe'
  13677. ;;
  13678. *)
  13679. # Assume MSVC wrapper
  13680. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13681. dynamic_linker='Win32 ld.exe'
  13682. ;;
  13683. esac
  13684. # FIXME: first we should search . and the directory the executable is in
  13685. shlibpath_var=PATH
  13686. ;;
  13687. darwin* | rhapsody*)
  13688. dynamic_linker="$host_os dyld"
  13689. version_type=darwin
  13690. need_lib_prefix=no
  13691. need_version=no
  13692. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13693. soname_spec='$libname$release$major$shared_ext'
  13694. shlibpath_overrides_runpath=yes
  13695. shlibpath_var=DYLD_LIBRARY_PATH
  13696. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13697. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13698. ;;
  13699. dgux*)
  13700. version_type=linux # correct to gnu/linux during the next big refactor
  13701. need_lib_prefix=no
  13702. need_version=no
  13703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13704. soname_spec='$libname$release$shared_ext$major'
  13705. shlibpath_var=LD_LIBRARY_PATH
  13706. ;;
  13707. freebsd* | dragonfly* | midnightbsd*)
  13708. # DragonFly does not have aout. When/if they implement a new
  13709. # versioning mechanism, adjust this.
  13710. if test -x /usr/bin/objformat; then
  13711. objformat=`/usr/bin/objformat`
  13712. else
  13713. case $host_os in
  13714. freebsd[23].*) objformat=aout ;;
  13715. *) objformat=elf ;;
  13716. esac
  13717. fi
  13718. version_type=freebsd-$objformat
  13719. case $version_type in
  13720. freebsd-elf*)
  13721. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13722. soname_spec='$libname$release$shared_ext$major'
  13723. need_version=no
  13724. need_lib_prefix=no
  13725. ;;
  13726. freebsd-*)
  13727. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13728. need_version=yes
  13729. ;;
  13730. esac
  13731. shlibpath_var=LD_LIBRARY_PATH
  13732. case $host_os in
  13733. freebsd2.*)
  13734. shlibpath_overrides_runpath=yes
  13735. ;;
  13736. freebsd3.[01]* | freebsdelf3.[01]*)
  13737. shlibpath_overrides_runpath=yes
  13738. hardcode_into_libs=yes
  13739. ;;
  13740. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13741. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13742. shlibpath_overrides_runpath=no
  13743. hardcode_into_libs=yes
  13744. ;;
  13745. *) # from 4.6 on, and DragonFly
  13746. shlibpath_overrides_runpath=yes
  13747. hardcode_into_libs=yes
  13748. ;;
  13749. esac
  13750. ;;
  13751. haiku*)
  13752. version_type=linux # correct to gnu/linux during the next big refactor
  13753. need_lib_prefix=no
  13754. need_version=no
  13755. dynamic_linker="$host_os runtime_loader"
  13756. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13757. soname_spec='$libname$release$shared_ext$major'
  13758. shlibpath_var=LIBRARY_PATH
  13759. shlibpath_overrides_runpath=no
  13760. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13761. hardcode_into_libs=yes
  13762. ;;
  13763. hpux9* | hpux10* | hpux11*)
  13764. # Give a soname corresponding to the major version so that dld.sl refuses to
  13765. # link against other versions.
  13766. version_type=sunos
  13767. need_lib_prefix=no
  13768. need_version=no
  13769. case $host_cpu in
  13770. ia64*)
  13771. shrext_cmds='.so'
  13772. hardcode_into_libs=yes
  13773. dynamic_linker="$host_os dld.so"
  13774. shlibpath_var=LD_LIBRARY_PATH
  13775. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13776. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13777. soname_spec='$libname$release$shared_ext$major'
  13778. if test 32 = "$HPUX_IA64_MODE"; then
  13779. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13780. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13781. else
  13782. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13783. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13784. fi
  13785. ;;
  13786. hppa*64*)
  13787. shrext_cmds='.sl'
  13788. hardcode_into_libs=yes
  13789. dynamic_linker="$host_os dld.sl"
  13790. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13791. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13792. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13793. soname_spec='$libname$release$shared_ext$major'
  13794. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13795. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13796. ;;
  13797. *)
  13798. shrext_cmds='.sl'
  13799. dynamic_linker="$host_os dld.sl"
  13800. shlibpath_var=SHLIB_PATH
  13801. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13802. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13803. soname_spec='$libname$release$shared_ext$major'
  13804. ;;
  13805. esac
  13806. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13807. postinstall_cmds='chmod 555 $lib'
  13808. # or fails outright, so override atomically:
  13809. install_override_mode=555
  13810. ;;
  13811. interix[3-9]*)
  13812. version_type=linux # correct to gnu/linux during the next big refactor
  13813. need_lib_prefix=no
  13814. need_version=no
  13815. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13816. soname_spec='$libname$release$shared_ext$major'
  13817. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13818. shlibpath_var=LD_LIBRARY_PATH
  13819. shlibpath_overrides_runpath=no
  13820. hardcode_into_libs=yes
  13821. ;;
  13822. irix5* | irix6* | nonstopux*)
  13823. case $host_os in
  13824. nonstopux*) version_type=nonstopux ;;
  13825. *)
  13826. if test yes = "$lt_cv_prog_gnu_ld"; then
  13827. version_type=linux # correct to gnu/linux during the next big refactor
  13828. else
  13829. version_type=irix
  13830. fi ;;
  13831. esac
  13832. need_lib_prefix=no
  13833. need_version=no
  13834. soname_spec='$libname$release$shared_ext$major'
  13835. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13836. case $host_os in
  13837. irix5* | nonstopux*)
  13838. libsuff= shlibsuff=
  13839. ;;
  13840. *)
  13841. case $LD in # libtool.m4 will add one of these switches to LD
  13842. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13843. libsuff= shlibsuff= libmagic=32-bit;;
  13844. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13845. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13846. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13847. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13848. *) libsuff= shlibsuff= libmagic=never-match;;
  13849. esac
  13850. ;;
  13851. esac
  13852. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13853. shlibpath_overrides_runpath=no
  13854. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13855. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13856. hardcode_into_libs=yes
  13857. ;;
  13858. # No shared lib support for Linux oldld, aout, or coff.
  13859. linux*oldld* | linux*aout* | linux*coff*)
  13860. dynamic_linker=no
  13861. ;;
  13862. linux*android*)
  13863. version_type=none # Android doesn't support versioned libraries.
  13864. need_lib_prefix=no
  13865. need_version=no
  13866. library_names_spec='$libname$release$shared_ext'
  13867. soname_spec='$libname$release$shared_ext'
  13868. finish_cmds=
  13869. shlibpath_var=LD_LIBRARY_PATH
  13870. shlibpath_overrides_runpath=yes
  13871. # This implies no fast_install, which is unacceptable.
  13872. # Some rework will be needed to allow for fast_install
  13873. # before this can be enabled.
  13874. hardcode_into_libs=yes
  13875. dynamic_linker='Android linker'
  13876. # Don't embed -rpath directories since the linker doesn't support them.
  13877. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13878. ;;
  13879. # This must be glibc/ELF.
  13880. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13881. version_type=linux # correct to gnu/linux during the next big refactor
  13882. need_lib_prefix=no
  13883. need_version=no
  13884. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13885. soname_spec='$libname$release$shared_ext$major'
  13886. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13887. shlibpath_var=LD_LIBRARY_PATH
  13888. shlibpath_overrides_runpath=no
  13889. # Some binutils ld are patched to set DT_RUNPATH
  13890. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13891. $as_echo_n "(cached) " >&6
  13892. else
  13893. lt_cv_shlibpath_overrides_runpath=no
  13894. save_LDFLAGS=$LDFLAGS
  13895. save_libdir=$libdir
  13896. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13897. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13899. /* end confdefs.h. */
  13900. int
  13901. main ()
  13902. {
  13903. ;
  13904. return 0;
  13905. }
  13906. _ACEOF
  13907. if ac_fn_cxx_try_link "$LINENO"; then :
  13908. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13909. lt_cv_shlibpath_overrides_runpath=yes
  13910. fi
  13911. fi
  13912. rm -f core conftest.err conftest.$ac_objext \
  13913. conftest$ac_exeext conftest.$ac_ext
  13914. LDFLAGS=$save_LDFLAGS
  13915. libdir=$save_libdir
  13916. fi
  13917. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13918. # This implies no fast_install, which is unacceptable.
  13919. # Some rework will be needed to allow for fast_install
  13920. # before this can be enabled.
  13921. hardcode_into_libs=yes
  13922. # Add ABI-specific directories to the system library path.
  13923. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13924. # Ideally, we could use ldconfig to report *all* directores which are
  13925. # searched for libraries, however this is still not possible. Aside from not
  13926. # being certain /sbin/ldconfig is available, command
  13927. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13928. # even though it is searched at run-time. Try to do the best guess by
  13929. # appending ld.so.conf contents (and includes) to the search path.
  13930. if test -f /etc/ld.so.conf; then
  13931. 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' ' '`
  13932. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13933. fi
  13934. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13935. # powerpc, because MkLinux only supported shared libraries with the
  13936. # GNU dynamic linker. Since this was broken with cross compilers,
  13937. # most powerpc-linux boxes support dynamic linking these days and
  13938. # people can always --disable-shared, the test was removed, and we
  13939. # assume the GNU/Linux dynamic linker is in use.
  13940. dynamic_linker='GNU/Linux ld.so'
  13941. ;;
  13942. netbsd*)
  13943. version_type=sunos
  13944. need_lib_prefix=no
  13945. need_version=no
  13946. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13947. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13948. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13949. dynamic_linker='NetBSD (a.out) ld.so'
  13950. else
  13951. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13952. soname_spec='$libname$release$shared_ext$major'
  13953. dynamic_linker='NetBSD ld.elf_so'
  13954. fi
  13955. shlibpath_var=LD_LIBRARY_PATH
  13956. shlibpath_overrides_runpath=yes
  13957. hardcode_into_libs=yes
  13958. ;;
  13959. newsos6)
  13960. version_type=linux # correct to gnu/linux during the next big refactor
  13961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13962. shlibpath_var=LD_LIBRARY_PATH
  13963. shlibpath_overrides_runpath=yes
  13964. ;;
  13965. *nto* | *qnx*)
  13966. version_type=qnx
  13967. need_lib_prefix=no
  13968. need_version=no
  13969. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13970. soname_spec='$libname$release$shared_ext$major'
  13971. shlibpath_var=LD_LIBRARY_PATH
  13972. shlibpath_overrides_runpath=no
  13973. hardcode_into_libs=yes
  13974. dynamic_linker='ldqnx.so'
  13975. ;;
  13976. openbsd* | bitrig*)
  13977. version_type=sunos
  13978. sys_lib_dlsearch_path_spec=/usr/lib
  13979. need_lib_prefix=no
  13980. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13981. need_version=no
  13982. else
  13983. need_version=yes
  13984. fi
  13985. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13986. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13987. shlibpath_var=LD_LIBRARY_PATH
  13988. shlibpath_overrides_runpath=yes
  13989. ;;
  13990. os2*)
  13991. libname_spec='$name'
  13992. shrext_cmds=.dll
  13993. need_lib_prefix=no
  13994. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13995. # SDL customization: removed versioning support.
  13996. # version_type=windows
  13997. # need_version=no
  13998. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13999. # v=$($ECHO $release$versuffix | tr -d .-);
  14000. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14001. # $ECHO $n$v`$shared_ext'
  14002. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  14003. library_names_spec='${libname}_dll.$libext'
  14004. dynamic_linker='OS/2 ld.exe'
  14005. shlibpath_var=BEGINLIBPATH
  14006. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14007. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14008. postinstall_cmds='base_file=`basename \$file`~
  14009. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14010. dldir=$destdir/`dirname \$dlpath`~
  14011. test -d \$dldir || mkdir -p \$dldir~
  14012. $install_prog $dir/$dlname \$dldir/$dlname~
  14013. chmod a+x \$dldir/$dlname~
  14014. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14015. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14016. fi'
  14017. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14018. dlpath=$dir/\$dldll~
  14019. $RM \$dlpath'
  14020. ;;
  14021. osf3* | osf4* | osf5*)
  14022. version_type=osf
  14023. need_lib_prefix=no
  14024. need_version=no
  14025. soname_spec='$libname$release$shared_ext$major'
  14026. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14027. shlibpath_var=LD_LIBRARY_PATH
  14028. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14029. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14030. ;;
  14031. rdos*)
  14032. dynamic_linker=no
  14033. ;;
  14034. solaris*)
  14035. version_type=linux # correct to gnu/linux during the next big refactor
  14036. need_lib_prefix=no
  14037. need_version=no
  14038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14039. soname_spec='$libname$release$shared_ext$major'
  14040. shlibpath_var=LD_LIBRARY_PATH
  14041. shlibpath_overrides_runpath=yes
  14042. hardcode_into_libs=yes
  14043. # ldd complains unless libraries are executable
  14044. postinstall_cmds='chmod +x $lib'
  14045. ;;
  14046. sunos4*)
  14047. version_type=sunos
  14048. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14049. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14050. shlibpath_var=LD_LIBRARY_PATH
  14051. shlibpath_overrides_runpath=yes
  14052. if test yes = "$with_gnu_ld"; then
  14053. need_lib_prefix=no
  14054. fi
  14055. need_version=yes
  14056. ;;
  14057. sysv4 | sysv4.3*)
  14058. version_type=linux # correct to gnu/linux during the next big refactor
  14059. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14060. soname_spec='$libname$release$shared_ext$major'
  14061. shlibpath_var=LD_LIBRARY_PATH
  14062. case $host_vendor in
  14063. sni)
  14064. shlibpath_overrides_runpath=no
  14065. need_lib_prefix=no
  14066. runpath_var=LD_RUN_PATH
  14067. ;;
  14068. siemens)
  14069. need_lib_prefix=no
  14070. ;;
  14071. motorola)
  14072. need_lib_prefix=no
  14073. need_version=no
  14074. shlibpath_overrides_runpath=no
  14075. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14076. ;;
  14077. esac
  14078. ;;
  14079. sysv4*MP*)
  14080. if test -d /usr/nec; then
  14081. version_type=linux # correct to gnu/linux during the next big refactor
  14082. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14083. soname_spec='$libname$shared_ext.$major'
  14084. shlibpath_var=LD_LIBRARY_PATH
  14085. fi
  14086. ;;
  14087. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14088. version_type=sco
  14089. need_lib_prefix=no
  14090. need_version=no
  14091. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14092. soname_spec='$libname$release$shared_ext$major'
  14093. shlibpath_var=LD_LIBRARY_PATH
  14094. shlibpath_overrides_runpath=yes
  14095. hardcode_into_libs=yes
  14096. if test yes = "$with_gnu_ld"; then
  14097. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14098. else
  14099. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14100. case $host_os in
  14101. sco3.2v5*)
  14102. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14103. ;;
  14104. esac
  14105. fi
  14106. sys_lib_dlsearch_path_spec='/usr/lib'
  14107. ;;
  14108. tpf*)
  14109. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14110. version_type=linux # correct to gnu/linux during the next big refactor
  14111. need_lib_prefix=no
  14112. need_version=no
  14113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14114. shlibpath_var=LD_LIBRARY_PATH
  14115. shlibpath_overrides_runpath=no
  14116. hardcode_into_libs=yes
  14117. ;;
  14118. uts4*)
  14119. version_type=linux # correct to gnu/linux during the next big refactor
  14120. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14121. soname_spec='$libname$release$shared_ext$major'
  14122. shlibpath_var=LD_LIBRARY_PATH
  14123. ;;
  14124. *)
  14125. dynamic_linker=no
  14126. ;;
  14127. esac
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14129. $as_echo "$dynamic_linker" >&6; }
  14130. test no = "$dynamic_linker" && can_build_shared=no
  14131. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14132. if test yes = "$GCC"; then
  14133. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14134. fi
  14135. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14136. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14137. fi
  14138. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14139. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14140. fi
  14141. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14142. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14143. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14144. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14145. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14146. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14148. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14149. hardcode_action_CXX=
  14150. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14151. test -n "$runpath_var_CXX" ||
  14152. test yes = "$hardcode_automatic_CXX"; then
  14153. # We can hardcode non-existent directories.
  14154. if test no != "$hardcode_direct_CXX" &&
  14155. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14156. # have to relink, otherwise we might link with an installed library
  14157. # when we should be linking with a yet-to-be-installed one
  14158. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14159. test no != "$hardcode_minus_L_CXX"; then
  14160. # Linking always hardcodes the temporary library directory.
  14161. hardcode_action_CXX=relink
  14162. else
  14163. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14164. hardcode_action_CXX=immediate
  14165. fi
  14166. else
  14167. # We cannot hardcode anything, or else we can only hardcode existing
  14168. # directories.
  14169. hardcode_action_CXX=unsupported
  14170. fi
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14172. $as_echo "$hardcode_action_CXX" >&6; }
  14173. if test relink = "$hardcode_action_CXX" ||
  14174. test yes = "$inherit_rpath_CXX"; then
  14175. # Fast installation is not supported
  14176. enable_fast_install=no
  14177. elif test yes = "$shlibpath_overrides_runpath" ||
  14178. test no = "$enable_shared"; then
  14179. # Fast installation is not necessary
  14180. enable_fast_install=needless
  14181. fi
  14182. fi # test -n "$compiler"
  14183. CC=$lt_save_CC
  14184. CFLAGS=$lt_save_CFLAGS
  14185. LDCXX=$LD
  14186. LD=$lt_save_LD
  14187. GCC=$lt_save_GCC
  14188. with_gnu_ld=$lt_save_with_gnu_ld
  14189. lt_cv_path_LDCXX=$lt_cv_path_LD
  14190. lt_cv_path_LD=$lt_save_path_LD
  14191. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14192. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14193. fi # test yes != "$_lt_caught_CXX_error"
  14194. ac_ext=c
  14195. ac_cpp='$CPP $CPPFLAGS'
  14196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14199. # Check whether --enable-largefile was given.
  14200. if test "${enable_largefile+set}" = set; then :
  14201. enableval=$enable_largefile;
  14202. fi
  14203. if test "$enable_largefile" != no; then
  14204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  14205. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  14206. if ${ac_cv_sys_largefile_CC+:} false; then :
  14207. $as_echo_n "(cached) " >&6
  14208. else
  14209. ac_cv_sys_largefile_CC=no
  14210. if test "$GCC" != yes; then
  14211. ac_save_CC=$CC
  14212. while :; do
  14213. # IRIX 6.2 and later do not support large files by default,
  14214. # so use the C compiler's -n32 option if that helps.
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. #include <sys/types.h>
  14218. /* Check that off_t can represent 2**63 - 1 correctly.
  14219. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14220. since some C++ compilers masquerading as C compilers
  14221. incorrectly reject 9223372036854775807. */
  14222. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14223. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14224. && LARGE_OFF_T % 2147483647 == 1)
  14225. ? 1 : -1];
  14226. int
  14227. main ()
  14228. {
  14229. ;
  14230. return 0;
  14231. }
  14232. _ACEOF
  14233. if ac_fn_c_try_compile "$LINENO"; then :
  14234. break
  14235. fi
  14236. rm -f core conftest.err conftest.$ac_objext
  14237. CC="$CC -n32"
  14238. if ac_fn_c_try_compile "$LINENO"; then :
  14239. ac_cv_sys_largefile_CC=' -n32'; break
  14240. fi
  14241. rm -f core conftest.err conftest.$ac_objext
  14242. break
  14243. done
  14244. CC=$ac_save_CC
  14245. rm -f conftest.$ac_ext
  14246. fi
  14247. fi
  14248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  14249. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  14250. if test "$ac_cv_sys_largefile_CC" != no; then
  14251. CC=$CC$ac_cv_sys_largefile_CC
  14252. fi
  14253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  14254. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  14255. if ${ac_cv_sys_file_offset_bits+:} false; then :
  14256. $as_echo_n "(cached) " >&6
  14257. else
  14258. while :; do
  14259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14260. /* end confdefs.h. */
  14261. #include <sys/types.h>
  14262. /* Check that off_t can represent 2**63 - 1 correctly.
  14263. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14264. since some C++ compilers masquerading as C compilers
  14265. incorrectly reject 9223372036854775807. */
  14266. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14267. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14268. && LARGE_OFF_T % 2147483647 == 1)
  14269. ? 1 : -1];
  14270. int
  14271. main ()
  14272. {
  14273. ;
  14274. return 0;
  14275. }
  14276. _ACEOF
  14277. if ac_fn_c_try_compile "$LINENO"; then :
  14278. ac_cv_sys_file_offset_bits=no; break
  14279. fi
  14280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14282. /* end confdefs.h. */
  14283. #define _FILE_OFFSET_BITS 64
  14284. #include <sys/types.h>
  14285. /* Check that off_t can represent 2**63 - 1 correctly.
  14286. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14287. since some C++ compilers masquerading as C compilers
  14288. incorrectly reject 9223372036854775807. */
  14289. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14290. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14291. && LARGE_OFF_T % 2147483647 == 1)
  14292. ? 1 : -1];
  14293. int
  14294. main ()
  14295. {
  14296. ;
  14297. return 0;
  14298. }
  14299. _ACEOF
  14300. if ac_fn_c_try_compile "$LINENO"; then :
  14301. ac_cv_sys_file_offset_bits=64; break
  14302. fi
  14303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14304. ac_cv_sys_file_offset_bits=unknown
  14305. break
  14306. done
  14307. fi
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  14309. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  14310. case $ac_cv_sys_file_offset_bits in #(
  14311. no | unknown) ;;
  14312. *)
  14313. cat >>confdefs.h <<_ACEOF
  14314. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  14315. _ACEOF
  14316. ;;
  14317. esac
  14318. rm -rf conftest*
  14319. if test $ac_cv_sys_file_offset_bits = unknown; then
  14320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  14321. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  14322. if ${ac_cv_sys_large_files+:} false; then :
  14323. $as_echo_n "(cached) " >&6
  14324. else
  14325. while :; do
  14326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14327. /* end confdefs.h. */
  14328. #include <sys/types.h>
  14329. /* Check that off_t can represent 2**63 - 1 correctly.
  14330. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14331. since some C++ compilers masquerading as C compilers
  14332. incorrectly reject 9223372036854775807. */
  14333. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14334. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14335. && LARGE_OFF_T % 2147483647 == 1)
  14336. ? 1 : -1];
  14337. int
  14338. main ()
  14339. {
  14340. ;
  14341. return 0;
  14342. }
  14343. _ACEOF
  14344. if ac_fn_c_try_compile "$LINENO"; then :
  14345. ac_cv_sys_large_files=no; break
  14346. fi
  14347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14349. /* end confdefs.h. */
  14350. #define _LARGE_FILES 1
  14351. #include <sys/types.h>
  14352. /* Check that off_t can represent 2**63 - 1 correctly.
  14353. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14354. since some C++ compilers masquerading as C compilers
  14355. incorrectly reject 9223372036854775807. */
  14356. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14357. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14358. && LARGE_OFF_T % 2147483647 == 1)
  14359. ? 1 : -1];
  14360. int
  14361. main ()
  14362. {
  14363. ;
  14364. return 0;
  14365. }
  14366. _ACEOF
  14367. if ac_fn_c_try_compile "$LINENO"; then :
  14368. ac_cv_sys_large_files=1; break
  14369. fi
  14370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14371. ac_cv_sys_large_files=unknown
  14372. break
  14373. done
  14374. fi
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  14376. $as_echo "$ac_cv_sys_large_files" >&6; }
  14377. case $ac_cv_sys_large_files in #(
  14378. no | unknown) ;;
  14379. *)
  14380. cat >>confdefs.h <<_ACEOF
  14381. #define _LARGE_FILES $ac_cv_sys_large_files
  14382. _ACEOF
  14383. ;;
  14384. esac
  14385. rm -rf conftest*
  14386. fi
  14387. fi
  14388. # Find a good install program. We prefer a C program (faster),
  14389. # so one script is as good as another. But avoid the broken or
  14390. # incompatible versions:
  14391. # SysV /etc/install, /usr/sbin/install
  14392. # SunOS /usr/etc/install
  14393. # IRIX /sbin/install
  14394. # AIX /bin/install
  14395. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14396. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14397. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14398. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14399. # OS/2's system install, which has a completely different semantic
  14400. # ./install, which can be erroneously created by make from ./install.sh.
  14401. # Reject install programs that cannot install multiple files.
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14403. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14404. if test -z "$INSTALL"; then
  14405. if ${ac_cv_path_install+:} false; then :
  14406. $as_echo_n "(cached) " >&6
  14407. else
  14408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14409. for as_dir in $PATH
  14410. do
  14411. IFS=$as_save_IFS
  14412. test -z "$as_dir" && as_dir=.
  14413. # Account for people who put trailing slashes in PATH elements.
  14414. case $as_dir/ in #((
  14415. ./ | .// | /[cC]/* | \
  14416. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14417. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14418. /usr/ucb/* ) ;;
  14419. *)
  14420. # OSF1 and SCO ODT 3.0 have their own names for install.
  14421. # Don't use installbsd from OSF since it installs stuff as root
  14422. # by default.
  14423. for ac_prog in ginstall scoinst install; do
  14424. for ac_exec_ext in '' $ac_executable_extensions; do
  14425. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14426. if test $ac_prog = install &&
  14427. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14428. # AIX install. It has an incompatible calling convention.
  14429. :
  14430. elif test $ac_prog = install &&
  14431. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14432. # program-specific install script used by HP pwplus--don't use.
  14433. :
  14434. else
  14435. rm -rf conftest.one conftest.two conftest.dir
  14436. echo one > conftest.one
  14437. echo two > conftest.two
  14438. mkdir conftest.dir
  14439. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14440. test -s conftest.one && test -s conftest.two &&
  14441. test -s conftest.dir/conftest.one &&
  14442. test -s conftest.dir/conftest.two
  14443. then
  14444. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14445. break 3
  14446. fi
  14447. fi
  14448. fi
  14449. done
  14450. done
  14451. ;;
  14452. esac
  14453. done
  14454. IFS=$as_save_IFS
  14455. rm -rf conftest.one conftest.two conftest.dir
  14456. fi
  14457. if test "${ac_cv_path_install+set}" = set; then
  14458. INSTALL=$ac_cv_path_install
  14459. else
  14460. # As a last resort, use the slow shell script. Don't cache a
  14461. # value for INSTALL within a source directory, because that will
  14462. # break other packages using the cache if that directory is
  14463. # removed, or if the value is a relative name.
  14464. INSTALL=$ac_install_sh
  14465. fi
  14466. fi
  14467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14468. $as_echo "$INSTALL" >&6; }
  14469. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14470. # It thinks the first close brace ends the variable substitution.
  14471. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14472. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14473. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14475. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14476. set x ${MAKE-make}
  14477. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14478. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14479. $as_echo_n "(cached) " >&6
  14480. else
  14481. cat >conftest.make <<\_ACEOF
  14482. SHELL = /bin/sh
  14483. all:
  14484. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14485. _ACEOF
  14486. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14487. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14488. *@@@%%%=?*=@@@%%%*)
  14489. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14490. *)
  14491. eval ac_cv_prog_make_${ac_make}_set=no;;
  14492. esac
  14493. rm -f conftest.make
  14494. fi
  14495. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14497. $as_echo "yes" >&6; }
  14498. SET_MAKE=
  14499. else
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14501. $as_echo "no" >&6; }
  14502. SET_MAKE="MAKE=${MAKE-make}"
  14503. fi
  14504. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14505. if test -n "$ac_tool_prefix"; then
  14506. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14507. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14509. $as_echo_n "checking for $ac_word... " >&6; }
  14510. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14511. $as_echo_n "(cached) " >&6
  14512. else
  14513. case $PKG_CONFIG in
  14514. [\\/]* | ?:[\\/]*)
  14515. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14516. ;;
  14517. *)
  14518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14519. for as_dir in $PATH
  14520. do
  14521. IFS=$as_save_IFS
  14522. test -z "$as_dir" && as_dir=.
  14523. for ac_exec_ext in '' $ac_executable_extensions; do
  14524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14525. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14527. break 2
  14528. fi
  14529. done
  14530. done
  14531. IFS=$as_save_IFS
  14532. ;;
  14533. esac
  14534. fi
  14535. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14536. if test -n "$PKG_CONFIG"; then
  14537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14538. $as_echo "$PKG_CONFIG" >&6; }
  14539. else
  14540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14541. $as_echo "no" >&6; }
  14542. fi
  14543. fi
  14544. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14545. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14546. # Extract the first word of "pkg-config", so it can be a program name with args.
  14547. set dummy pkg-config; ac_word=$2
  14548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14549. $as_echo_n "checking for $ac_word... " >&6; }
  14550. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14551. $as_echo_n "(cached) " >&6
  14552. else
  14553. case $ac_pt_PKG_CONFIG in
  14554. [\\/]* | ?:[\\/]*)
  14555. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14556. ;;
  14557. *)
  14558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14559. for as_dir in $PATH
  14560. do
  14561. IFS=$as_save_IFS
  14562. test -z "$as_dir" && as_dir=.
  14563. for ac_exec_ext in '' $ac_executable_extensions; do
  14564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14565. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14567. break 2
  14568. fi
  14569. done
  14570. done
  14571. IFS=$as_save_IFS
  14572. ;;
  14573. esac
  14574. fi
  14575. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14576. if test -n "$ac_pt_PKG_CONFIG"; then
  14577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14578. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14579. else
  14580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14581. $as_echo "no" >&6; }
  14582. fi
  14583. if test "x$ac_pt_PKG_CONFIG" = x; then
  14584. PKG_CONFIG=""
  14585. else
  14586. case $cross_compiling:$ac_tool_warned in
  14587. yes:)
  14588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14590. ac_tool_warned=yes ;;
  14591. esac
  14592. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14593. fi
  14594. else
  14595. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14596. fi
  14597. fi
  14598. if test -n "$PKG_CONFIG"; then
  14599. _pkg_min_version=0.9.0
  14600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14601. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14602. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14604. $as_echo "yes" >&6; }
  14605. else
  14606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14607. $as_echo "no" >&6; }
  14608. PKG_CONFIG=""
  14609. fi
  14610. fi
  14611. case "$host" in
  14612. *-*-mingw*)
  14613. # Except on msys, where make can't handle full pathnames (bug 1972)
  14614. ;;
  14615. *)
  14616. srcdir=`cd $srcdir && pwd`
  14617. ;;
  14618. esac
  14619. INCLUDE="-I$srcdir/include"
  14620. case "$host" in
  14621. *-*-nto-qnx*)
  14622. ;;
  14623. *)
  14624. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14625. ;;
  14626. esac
  14627. case "$host" in
  14628. *-*-haiku*)
  14629. LINKER='$(CXX)'
  14630. LIBTOOLLINKERTAG='CXX'
  14631. ;;
  14632. *)
  14633. LINKER='$(CC)'
  14634. LIBTOOLLINKERTAG='CC'
  14635. ;;
  14636. esac
  14637. if test x$srcdir != x.; then
  14638. INCLUDE="-Iinclude $INCLUDE"
  14639. elif test -d .git; then
  14640. as_fn_error $? "
  14641. *** When building from a git clone you should configure and build in a
  14642. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14643. " "$LINENO" 5
  14644. fi
  14645. BASE_CFLAGS=""
  14646. BASE_LDFLAGS=""
  14647. case "$host" in
  14648. *-*-cygwin*)
  14649. # We build SDL on cygwin without the UNIX emulation layer
  14650. save_CFLAGS="$CFLAGS"
  14651. have_no_cygwin=no
  14652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14653. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14654. CFLAGS="$save_CFLAGS -mno-cygwin"
  14655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14656. /* end confdefs.h. */
  14657. int
  14658. main ()
  14659. {
  14660. ;
  14661. return 0;
  14662. }
  14663. _ACEOF
  14664. if ac_fn_c_try_compile "$LINENO"; then :
  14665. have_no_cygwin=yes
  14666. fi
  14667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14669. $as_echo "$have_no_cygwin" >&6; }
  14670. CFLAGS="$save_CFLAGS"
  14671. if test x$have_no_cygwin = xyes; then
  14672. BASE_CFLAGS="-mno-cygwin"
  14673. BASE_LDFLAGS="-mno-cygwin"
  14674. fi
  14675. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14676. ;;
  14677. esac
  14678. # Uncomment the following line if you want to force SDL and applications
  14679. # built with it to be compiled for a particular architecture.
  14680. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14681. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14682. # The default optimization for SDL is -O3 (Bug #31)
  14683. if test "x$orig_CFLAGS" = x; then
  14684. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14685. fi
  14686. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14687. BUILD_LDFLAGS="$LDFLAGS"
  14688. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14689. ## These are common directories to find software packages
  14690. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14691. # if test -d $path/include; then
  14692. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14693. # fi
  14694. # if test -d $path/lib; then
  14695. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14696. # fi
  14697. #done
  14698. SDL_CFLAGS="$BASE_CFLAGS"
  14699. SDL_LIBS="-lSDL2"
  14700. if test "x$BASE_LDFLAGS" != x; then
  14701. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14702. fi
  14703. if test "x$EXTRA_CFLAGS" != x; then
  14704. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14705. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14706. fi
  14707. if test "x$EXTRA_LDFLAGS" != x; then
  14708. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14709. fi
  14710. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14711. find_lib()
  14712. {
  14713. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14714. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14715. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14716. if test "$cross_compiling" = yes; then
  14717. host_lib_path=""
  14718. else
  14719. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14720. fi
  14721. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14722. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14723. if test x$lib != x; then
  14724. echo $lib
  14725. return
  14726. fi
  14727. done
  14728. # Try again, this time allowing more than one version digit after the .so
  14729. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14730. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14731. if test x$lib != x; then
  14732. echo $lib
  14733. return
  14734. fi
  14735. done
  14736. }
  14737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14738. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14739. if ${ac_cv_c_const+:} false; then :
  14740. $as_echo_n "(cached) " >&6
  14741. else
  14742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14743. /* end confdefs.h. */
  14744. int
  14745. main ()
  14746. {
  14747. #ifndef __cplusplus
  14748. /* Ultrix mips cc rejects this sort of thing. */
  14749. typedef int charset[2];
  14750. const charset cs = { 0, 0 };
  14751. /* SunOS 4.1.1 cc rejects this. */
  14752. char const *const *pcpcc;
  14753. char **ppc;
  14754. /* NEC SVR4.0.2 mips cc rejects this. */
  14755. struct point {int x, y;};
  14756. static struct point const zero = {0,0};
  14757. /* AIX XL C 1.02.0.0 rejects this.
  14758. It does not let you subtract one const X* pointer from another in
  14759. an arm of an if-expression whose if-part is not a constant
  14760. expression */
  14761. const char *g = "string";
  14762. pcpcc = &g + (g ? g-g : 0);
  14763. /* HPUX 7.0 cc rejects these. */
  14764. ++pcpcc;
  14765. ppc = (char**) pcpcc;
  14766. pcpcc = (char const *const *) ppc;
  14767. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14768. char tx;
  14769. char *t = &tx;
  14770. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14771. *t++ = 0;
  14772. if (s) return 0;
  14773. }
  14774. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14775. int x[] = {25, 17};
  14776. const int *foo = &x[0];
  14777. ++foo;
  14778. }
  14779. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14780. typedef const int *iptr;
  14781. iptr p = 0;
  14782. ++p;
  14783. }
  14784. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14785. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14786. struct s { int j; const int *ap[3]; } bx;
  14787. struct s *b = &bx; b->j = 5;
  14788. }
  14789. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14790. const int foo = 10;
  14791. if (!foo) return 0;
  14792. }
  14793. return !cs[0] && !zero.x;
  14794. #endif
  14795. ;
  14796. return 0;
  14797. }
  14798. _ACEOF
  14799. if ac_fn_c_try_compile "$LINENO"; then :
  14800. ac_cv_c_const=yes
  14801. else
  14802. ac_cv_c_const=no
  14803. fi
  14804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14805. fi
  14806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14807. $as_echo "$ac_cv_c_const" >&6; }
  14808. if test $ac_cv_c_const = no; then
  14809. $as_echo "#define const /**/" >>confdefs.h
  14810. fi
  14811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14812. $as_echo_n "checking for inline... " >&6; }
  14813. if ${ac_cv_c_inline+:} false; then :
  14814. $as_echo_n "(cached) " >&6
  14815. else
  14816. ac_cv_c_inline=no
  14817. for ac_kw in inline __inline__ __inline; do
  14818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14819. /* end confdefs.h. */
  14820. #ifndef __cplusplus
  14821. typedef int foo_t;
  14822. static $ac_kw foo_t static_foo () {return 0; }
  14823. $ac_kw foo_t foo () {return 0; }
  14824. #endif
  14825. _ACEOF
  14826. if ac_fn_c_try_compile "$LINENO"; then :
  14827. ac_cv_c_inline=$ac_kw
  14828. fi
  14829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14830. test "$ac_cv_c_inline" != no && break
  14831. done
  14832. fi
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14834. $as_echo "$ac_cv_c_inline" >&6; }
  14835. case $ac_cv_c_inline in
  14836. inline | yes) ;;
  14837. *)
  14838. case $ac_cv_c_inline in
  14839. no) ac_val=;;
  14840. *) ac_val=$ac_cv_c_inline;;
  14841. esac
  14842. cat >>confdefs.h <<_ACEOF
  14843. #ifndef __cplusplus
  14844. #define inline $ac_val
  14845. #endif
  14846. _ACEOF
  14847. ;;
  14848. esac
  14849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14850. $as_echo_n "checking for working volatile... " >&6; }
  14851. if ${ac_cv_c_volatile+:} false; then :
  14852. $as_echo_n "(cached) " >&6
  14853. else
  14854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14855. /* end confdefs.h. */
  14856. int
  14857. main ()
  14858. {
  14859. volatile int x;
  14860. int * volatile y = (int *) 0;
  14861. return !x && !y;
  14862. ;
  14863. return 0;
  14864. }
  14865. _ACEOF
  14866. if ac_fn_c_try_compile "$LINENO"; then :
  14867. ac_cv_c_volatile=yes
  14868. else
  14869. ac_cv_c_volatile=no
  14870. fi
  14871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14872. fi
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14874. $as_echo "$ac_cv_c_volatile" >&6; }
  14875. if test $ac_cv_c_volatile = no; then
  14876. $as_echo "#define volatile /**/" >>confdefs.h
  14877. fi
  14878. # Check whether --enable-assertions was given.
  14879. if test "${enable_assertions+set}" = set; then :
  14880. enableval=$enable_assertions;
  14881. else
  14882. enable_assertions=auto
  14883. fi
  14884. case "$enable_assertions" in
  14885. auto) # Use optimization settings to determine assertion level
  14886. ;;
  14887. disabled)
  14888. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14889. ;;
  14890. release)
  14891. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14892. ;;
  14893. enabled)
  14894. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14895. ;;
  14896. paranoid)
  14897. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14898. ;;
  14899. *)
  14900. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14901. ;;
  14902. esac
  14903. cat >>confdefs.h <<_ACEOF
  14904. #define SDL_BUILD_MAJOR_VERSION $SDL_MAJOR_VERSION
  14905. _ACEOF
  14906. cat >>confdefs.h <<_ACEOF
  14907. #define SDL_BUILD_MINOR_VERSION $SDL_MINOR_VERSION
  14908. _ACEOF
  14909. cat >>confdefs.h <<_ACEOF
  14910. #define SDL_BUILD_MICRO_VERSION $SDL_MICRO_VERSION
  14911. _ACEOF
  14912. # Check whether --enable-dependency-tracking was given.
  14913. if test "${enable_dependency_tracking+set}" = set; then :
  14914. enableval=$enable_dependency_tracking;
  14915. else
  14916. enable_dependency_tracking=yes
  14917. fi
  14918. if test x$enable_dependency_tracking = xyes; then
  14919. have_gcc_mmd_mt=no
  14920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14921. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14923. /* end confdefs.h. */
  14924. #if !defined(__GNUC__) || __GNUC__ < 3
  14925. #error Dependency tracking requires GCC 3.0 or newer
  14926. #endif
  14927. int
  14928. main ()
  14929. {
  14930. ;
  14931. return 0;
  14932. }
  14933. _ACEOF
  14934. if ac_fn_c_try_compile "$LINENO"; then :
  14935. have_gcc_mmd_mt=yes
  14936. fi
  14937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14939. $as_echo "$have_gcc_mmd_mt" >&6; }
  14940. if test x$have_gcc_mmd_mt = xyes; then
  14941. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14942. fi
  14943. fi
  14944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14945. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14946. have_no_undefined=no
  14947. case "$host" in
  14948. *-*-openbsd*)
  14949. ;;
  14950. *)
  14951. save_LDFLAGS="$LDFLAGS"
  14952. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14954. /* end confdefs.h. */
  14955. int
  14956. main ()
  14957. {
  14958. ;
  14959. return 0;
  14960. }
  14961. _ACEOF
  14962. if ac_fn_c_try_link "$LINENO"; then :
  14963. have_no_undefined=yes
  14964. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14965. fi
  14966. rm -f core conftest.err conftest.$ac_objext \
  14967. conftest$ac_exeext conftest.$ac_ext
  14968. LDFLAGS="$save_LDFLAGS"
  14969. ;;
  14970. esac
  14971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14972. $as_echo "$have_no_undefined" >&6; }
  14973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14974. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14975. have_dynamicbase=no
  14976. case "$host" in
  14977. *)
  14978. save_LDFLAGS="$LDFLAGS"
  14979. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14981. /* end confdefs.h. */
  14982. int
  14983. main ()
  14984. {
  14985. ;
  14986. return 0;
  14987. }
  14988. _ACEOF
  14989. if ac_fn_c_try_link "$LINENO"; then :
  14990. have_dynamicbase=yes
  14991. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14992. fi
  14993. rm -f core conftest.err conftest.$ac_objext \
  14994. conftest$ac_exeext conftest.$ac_ext
  14995. LDFLAGS="$save_LDFLAGS"
  14996. ;;
  14997. esac
  14998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14999. $as_echo "$have_dynamicbase" >&6; }
  15000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  15001. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  15002. have_nxcompat=no
  15003. case "$host" in
  15004. *)
  15005. save_LDFLAGS="$LDFLAGS"
  15006. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  15007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15008. /* end confdefs.h. */
  15009. int
  15010. main ()
  15011. {
  15012. ;
  15013. return 0;
  15014. }
  15015. _ACEOF
  15016. if ac_fn_c_try_link "$LINENO"; then :
  15017. have_nxcompat=yes
  15018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  15019. fi
  15020. rm -f core conftest.err conftest.$ac_objext \
  15021. conftest$ac_exeext conftest.$ac_ext
  15022. LDFLAGS="$save_LDFLAGS"
  15023. ;;
  15024. esac
  15025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  15026. $as_echo "$have_nxcompat" >&6; }
  15027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  15028. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  15029. have_high_entropy_va=no
  15030. case "$host" in
  15031. *)
  15032. save_LDFLAGS="$LDFLAGS"
  15033. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  15034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15035. /* end confdefs.h. */
  15036. int
  15037. main ()
  15038. {
  15039. ;
  15040. return 0;
  15041. }
  15042. _ACEOF
  15043. if ac_fn_c_try_link "$LINENO"; then :
  15044. have_high_entropy_va=yes
  15045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  15046. fi
  15047. rm -f core conftest.err conftest.$ac_objext \
  15048. conftest$ac_exeext conftest.$ac_ext
  15049. LDFLAGS="$save_LDFLAGS"
  15050. ;;
  15051. esac
  15052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  15053. $as_echo "$have_high_entropy_va" >&6; }
  15054. # Check whether --enable-libc was given.
  15055. if test "${enable_libc+set}" = set; then :
  15056. enableval=$enable_libc;
  15057. else
  15058. enable_libc=yes
  15059. fi
  15060. if test x$enable_libc = xyes; then
  15061. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15063. $as_echo_n "checking for ANSI C header files... " >&6; }
  15064. if ${ac_cv_header_stdc+:} false; then :
  15065. $as_echo_n "(cached) " >&6
  15066. else
  15067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15068. /* end confdefs.h. */
  15069. #include <stdlib.h>
  15070. #include <stdarg.h>
  15071. #include <string.h>
  15072. #include <float.h>
  15073. int
  15074. main ()
  15075. {
  15076. ;
  15077. return 0;
  15078. }
  15079. _ACEOF
  15080. if ac_fn_c_try_compile "$LINENO"; then :
  15081. ac_cv_header_stdc=yes
  15082. else
  15083. ac_cv_header_stdc=no
  15084. fi
  15085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15086. if test $ac_cv_header_stdc = yes; then
  15087. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15089. /* end confdefs.h. */
  15090. #include <string.h>
  15091. _ACEOF
  15092. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15093. $EGREP "memchr" >/dev/null 2>&1; then :
  15094. else
  15095. ac_cv_header_stdc=no
  15096. fi
  15097. rm -f conftest*
  15098. fi
  15099. if test $ac_cv_header_stdc = yes; then
  15100. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15102. /* end confdefs.h. */
  15103. #include <stdlib.h>
  15104. _ACEOF
  15105. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15106. $EGREP "free" >/dev/null 2>&1; then :
  15107. else
  15108. ac_cv_header_stdc=no
  15109. fi
  15110. rm -f conftest*
  15111. fi
  15112. if test $ac_cv_header_stdc = yes; then
  15113. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15114. if test "$cross_compiling" = yes; then :
  15115. :
  15116. else
  15117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15118. /* end confdefs.h. */
  15119. #include <ctype.h>
  15120. #include <stdlib.h>
  15121. #if ((' ' & 0x0FF) == 0x020)
  15122. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15123. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15124. #else
  15125. # define ISLOWER(c) \
  15126. (('a' <= (c) && (c) <= 'i') \
  15127. || ('j' <= (c) && (c) <= 'r') \
  15128. || ('s' <= (c) && (c) <= 'z'))
  15129. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15130. #endif
  15131. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15132. int
  15133. main ()
  15134. {
  15135. int i;
  15136. for (i = 0; i < 256; i++)
  15137. if (XOR (islower (i), ISLOWER (i))
  15138. || toupper (i) != TOUPPER (i))
  15139. return 2;
  15140. return 0;
  15141. }
  15142. _ACEOF
  15143. if ac_fn_c_try_run "$LINENO"; then :
  15144. else
  15145. ac_cv_header_stdc=no
  15146. fi
  15147. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15148. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15149. fi
  15150. fi
  15151. fi
  15152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15153. $as_echo "$ac_cv_header_stdc" >&6; }
  15154. if test $ac_cv_header_stdc = yes; then
  15155. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15156. fi
  15157. 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
  15158. do :
  15159. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15160. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15161. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15162. cat >>confdefs.h <<_ACEOF
  15163. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15164. _ACEOF
  15165. fi
  15166. done
  15167. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  15168. if test "x$ac_cv_type_size_t" = xyes; then :
  15169. else
  15170. cat >>confdefs.h <<_ACEOF
  15171. #define size_t unsigned int
  15172. _ACEOF
  15173. fi
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  15175. $as_echo_n "checking for M_PI in math.h... " >&6; }
  15176. if ${ac_cv_define_M_PI+:} false; then :
  15177. $as_echo_n "(cached) " >&6
  15178. else
  15179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15180. /* end confdefs.h. */
  15181. #include <math.h>
  15182. #ifdef M_PI
  15183. YES_IS_DEFINED
  15184. #endif
  15185. _ACEOF
  15186. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15187. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  15188. ac_cv_define_M_PI=yes
  15189. else
  15190. ac_cv_define_M_PI=no
  15191. fi
  15192. rm -f conftest*
  15193. fi
  15194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  15195. $as_echo "$ac_cv_define_M_PI" >&6; }
  15196. if test "$ac_cv_define_M_PI" = "yes" ; then
  15197. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  15198. fi
  15199. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  15200. # for constant arguments. Useless!
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  15202. $as_echo_n "checking for working alloca.h... " >&6; }
  15203. if ${ac_cv_working_alloca_h+:} false; then :
  15204. $as_echo_n "(cached) " >&6
  15205. else
  15206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15207. /* end confdefs.h. */
  15208. #include <alloca.h>
  15209. int
  15210. main ()
  15211. {
  15212. char *p = (char *) alloca (2 * sizeof (int));
  15213. if (p) return 0;
  15214. ;
  15215. return 0;
  15216. }
  15217. _ACEOF
  15218. if ac_fn_c_try_link "$LINENO"; then :
  15219. ac_cv_working_alloca_h=yes
  15220. else
  15221. ac_cv_working_alloca_h=no
  15222. fi
  15223. rm -f core conftest.err conftest.$ac_objext \
  15224. conftest$ac_exeext conftest.$ac_ext
  15225. fi
  15226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15227. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15228. if test $ac_cv_working_alloca_h = yes; then
  15229. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15230. fi
  15231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15232. $as_echo_n "checking for alloca... " >&6; }
  15233. if ${ac_cv_func_alloca_works+:} false; then :
  15234. $as_echo_n "(cached) " >&6
  15235. else
  15236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15237. /* end confdefs.h. */
  15238. #ifdef __GNUC__
  15239. # define alloca __builtin_alloca
  15240. #else
  15241. # ifdef _MSC_VER
  15242. # include <malloc.h>
  15243. # define alloca _alloca
  15244. # else
  15245. # ifdef HAVE_ALLOCA_H
  15246. # include <alloca.h>
  15247. # else
  15248. # ifdef _AIX
  15249. #pragma alloca
  15250. # else
  15251. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15252. void *alloca (size_t);
  15253. # endif
  15254. # endif
  15255. # endif
  15256. # endif
  15257. #endif
  15258. int
  15259. main ()
  15260. {
  15261. char *p = (char *) alloca (1);
  15262. if (p) return 0;
  15263. ;
  15264. return 0;
  15265. }
  15266. _ACEOF
  15267. if ac_fn_c_try_link "$LINENO"; then :
  15268. ac_cv_func_alloca_works=yes
  15269. else
  15270. ac_cv_func_alloca_works=no
  15271. fi
  15272. rm -f core conftest.err conftest.$ac_objext \
  15273. conftest$ac_exeext conftest.$ac_ext
  15274. fi
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15276. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15277. if test $ac_cv_func_alloca_works = yes; then
  15278. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15279. else
  15280. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15281. # that cause trouble. Some versions do not even contain alloca or
  15282. # contain a buggy version. If you still want to use their alloca,
  15283. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15284. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15285. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15287. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15288. if ${ac_cv_os_cray+:} false; then :
  15289. $as_echo_n "(cached) " >&6
  15290. else
  15291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15292. /* end confdefs.h. */
  15293. #if defined CRAY && ! defined CRAY2
  15294. webecray
  15295. #else
  15296. wenotbecray
  15297. #endif
  15298. _ACEOF
  15299. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15300. $EGREP "webecray" >/dev/null 2>&1; then :
  15301. ac_cv_os_cray=yes
  15302. else
  15303. ac_cv_os_cray=no
  15304. fi
  15305. rm -f conftest*
  15306. fi
  15307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15308. $as_echo "$ac_cv_os_cray" >&6; }
  15309. if test $ac_cv_os_cray = yes; then
  15310. for ac_func in _getb67 GETB67 getb67; do
  15311. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15312. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15313. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15314. cat >>confdefs.h <<_ACEOF
  15315. #define CRAY_STACKSEG_END $ac_func
  15316. _ACEOF
  15317. break
  15318. fi
  15319. done
  15320. fi
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15322. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15323. if ${ac_cv_c_stack_direction+:} false; then :
  15324. $as_echo_n "(cached) " >&6
  15325. else
  15326. if test "$cross_compiling" = yes; then :
  15327. ac_cv_c_stack_direction=0
  15328. else
  15329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15330. /* end confdefs.h. */
  15331. $ac_includes_default
  15332. int
  15333. find_stack_direction (int *addr, int depth)
  15334. {
  15335. int dir, dummy = 0;
  15336. if (! addr)
  15337. addr = &dummy;
  15338. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15339. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15340. return dir + dummy;
  15341. }
  15342. int
  15343. main (int argc, char **argv)
  15344. {
  15345. return find_stack_direction (0, argc + !argv + 20) < 0;
  15346. }
  15347. _ACEOF
  15348. if ac_fn_c_try_run "$LINENO"; then :
  15349. ac_cv_c_stack_direction=1
  15350. else
  15351. ac_cv_c_stack_direction=-1
  15352. fi
  15353. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15354. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15355. fi
  15356. fi
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15358. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15359. cat >>confdefs.h <<_ACEOF
  15360. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15361. _ACEOF
  15362. fi
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15364. $as_echo_n "checking for working memcmp... " >&6; }
  15365. if ${ac_cv_func_memcmp_working+:} false; then :
  15366. $as_echo_n "(cached) " >&6
  15367. else
  15368. if test "$cross_compiling" = yes; then :
  15369. ac_cv_func_memcmp_working=no
  15370. else
  15371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15372. /* end confdefs.h. */
  15373. $ac_includes_default
  15374. int
  15375. main ()
  15376. {
  15377. /* Some versions of memcmp are not 8-bit clean. */
  15378. char c0 = '\100', c1 = '\200', c2 = '\201';
  15379. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15380. return 1;
  15381. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15382. or more and with at least one buffer not starting on a 4-byte boundary.
  15383. William Lewis provided this test program. */
  15384. {
  15385. char foo[21];
  15386. char bar[21];
  15387. int i;
  15388. for (i = 0; i < 4; i++)
  15389. {
  15390. char *a = foo + i;
  15391. char *b = bar + i;
  15392. strcpy (a, "--------01111111");
  15393. strcpy (b, "--------10000000");
  15394. if (memcmp (a, b, 16) >= 0)
  15395. return 1;
  15396. }
  15397. return 0;
  15398. }
  15399. ;
  15400. return 0;
  15401. }
  15402. _ACEOF
  15403. if ac_fn_c_try_run "$LINENO"; then :
  15404. ac_cv_func_memcmp_working=yes
  15405. else
  15406. ac_cv_func_memcmp_working=no
  15407. fi
  15408. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15409. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15410. fi
  15411. fi
  15412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15413. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15414. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15415. *" memcmp.$ac_objext "* ) ;;
  15416. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15417. ;;
  15418. esac
  15419. if test x$ac_cv_func_memcmp_working = xyes; then
  15420. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15421. fi
  15422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15423. $as_echo_n "checking for working strtod... " >&6; }
  15424. if ${ac_cv_func_strtod+:} false; then :
  15425. $as_echo_n "(cached) " >&6
  15426. else
  15427. if test "$cross_compiling" = yes; then :
  15428. ac_cv_func_strtod=no
  15429. else
  15430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15431. /* end confdefs.h. */
  15432. $ac_includes_default
  15433. #ifndef strtod
  15434. double strtod ();
  15435. #endif
  15436. int
  15437. main()
  15438. {
  15439. {
  15440. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15441. char *string = " +69";
  15442. char *term;
  15443. double value;
  15444. value = strtod (string, &term);
  15445. if (value != 69 || term != (string + 4))
  15446. return 1;
  15447. }
  15448. {
  15449. /* Under Solaris 2.4, strtod returns the wrong value for the
  15450. terminating character under some conditions. */
  15451. char *string = "NaN";
  15452. char *term;
  15453. strtod (string, &term);
  15454. if (term != string && *(term - 1) == 0)
  15455. return 1;
  15456. }
  15457. return 0;
  15458. }
  15459. _ACEOF
  15460. if ac_fn_c_try_run "$LINENO"; then :
  15461. ac_cv_func_strtod=yes
  15462. else
  15463. ac_cv_func_strtod=no
  15464. fi
  15465. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15466. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15467. fi
  15468. fi
  15469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15470. $as_echo "$ac_cv_func_strtod" >&6; }
  15471. if test $ac_cv_func_strtod = no; then
  15472. case " $LIBOBJS " in
  15473. *" strtod.$ac_objext "* ) ;;
  15474. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15475. ;;
  15476. esac
  15477. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15478. if test "x$ac_cv_func_pow" = xyes; then :
  15479. fi
  15480. if test $ac_cv_func_pow = no; then
  15481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15482. $as_echo_n "checking for pow in -lm... " >&6; }
  15483. if ${ac_cv_lib_m_pow+:} false; then :
  15484. $as_echo_n "(cached) " >&6
  15485. else
  15486. ac_check_lib_save_LIBS=$LIBS
  15487. LIBS="-lm $LIBS"
  15488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15489. /* end confdefs.h. */
  15490. /* Override any GCC internal prototype to avoid an error.
  15491. Use char because int might match the return type of a GCC
  15492. builtin and then its argument prototype would still apply. */
  15493. #ifdef __cplusplus
  15494. extern "C"
  15495. #endif
  15496. char pow ();
  15497. int
  15498. main ()
  15499. {
  15500. return pow ();
  15501. ;
  15502. return 0;
  15503. }
  15504. _ACEOF
  15505. if ac_fn_c_try_link "$LINENO"; then :
  15506. ac_cv_lib_m_pow=yes
  15507. else
  15508. ac_cv_lib_m_pow=no
  15509. fi
  15510. rm -f core conftest.err conftest.$ac_objext \
  15511. conftest$ac_exeext conftest.$ac_ext
  15512. LIBS=$ac_check_lib_save_LIBS
  15513. fi
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15515. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15516. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15517. POW_LIB=-lm
  15518. else
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15520. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15521. fi
  15522. fi
  15523. fi
  15524. if test x$ac_cv_func_strtod = xyes; then
  15525. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15526. fi
  15527. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15528. if test "x$ac_cv_func_mprotect" = xyes; then :
  15529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15530. /* end confdefs.h. */
  15531. #include <sys/types.h>
  15532. #include <sys/mman.h>
  15533. int
  15534. main ()
  15535. {
  15536. ;
  15537. return 0;
  15538. }
  15539. _ACEOF
  15540. if ac_fn_c_try_compile "$LINENO"; then :
  15541. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15542. fi
  15543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15544. fi
  15545. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv bsearch 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
  15546. do :
  15547. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15548. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15549. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15550. cat >>confdefs.h <<_ACEOF
  15551. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15552. _ACEOF
  15553. fi
  15554. done
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15556. $as_echo_n "checking for pow in -lm... " >&6; }
  15557. if ${ac_cv_lib_m_pow+:} false; then :
  15558. $as_echo_n "(cached) " >&6
  15559. else
  15560. ac_check_lib_save_LIBS=$LIBS
  15561. LIBS="-lm $LIBS"
  15562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15563. /* end confdefs.h. */
  15564. /* Override any GCC internal prototype to avoid an error.
  15565. Use char because int might match the return type of a GCC
  15566. builtin and then its argument prototype would still apply. */
  15567. #ifdef __cplusplus
  15568. extern "C"
  15569. #endif
  15570. char pow ();
  15571. int
  15572. main ()
  15573. {
  15574. return pow ();
  15575. ;
  15576. return 0;
  15577. }
  15578. _ACEOF
  15579. if ac_fn_c_try_link "$LINENO"; then :
  15580. ac_cv_lib_m_pow=yes
  15581. else
  15582. ac_cv_lib_m_pow=no
  15583. fi
  15584. rm -f core conftest.err conftest.$ac_objext \
  15585. conftest$ac_exeext conftest.$ac_ext
  15586. LIBS=$ac_check_lib_save_LIBS
  15587. fi
  15588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15589. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15590. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15591. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15592. fi
  15593. 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
  15594. do :
  15595. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15596. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15597. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15598. cat >>confdefs.h <<_ACEOF
  15599. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15600. _ACEOF
  15601. fi
  15602. done
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15604. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15605. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15606. $as_echo_n "(cached) " >&6
  15607. else
  15608. ac_check_lib_save_LIBS=$LIBS
  15609. LIBS="-liconv $LIBS"
  15610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15611. /* end confdefs.h. */
  15612. /* Override any GCC internal prototype to avoid an error.
  15613. Use char because int might match the return type of a GCC
  15614. builtin and then its argument prototype would still apply. */
  15615. #ifdef __cplusplus
  15616. extern "C"
  15617. #endif
  15618. char iconv_open ();
  15619. int
  15620. main ()
  15621. {
  15622. return iconv_open ();
  15623. ;
  15624. return 0;
  15625. }
  15626. _ACEOF
  15627. if ac_fn_c_try_link "$LINENO"; then :
  15628. ac_cv_lib_iconv_iconv_open=yes
  15629. else
  15630. ac_cv_lib_iconv_iconv_open=no
  15631. fi
  15632. rm -f core conftest.err conftest.$ac_objext \
  15633. conftest$ac_exeext conftest.$ac_ext
  15634. LIBS=$ac_check_lib_save_LIBS
  15635. fi
  15636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15637. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15638. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15639. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15640. fi
  15641. for ac_func in iconv
  15642. do :
  15643. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15644. if test "x$ac_cv_func_iconv" = xyes; then :
  15645. cat >>confdefs.h <<_ACEOF
  15646. #define HAVE_ICONV 1
  15647. _ACEOF
  15648. fi
  15649. done
  15650. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15651. "
  15652. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15653. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15654. fi
  15655. for ac_header in libunwind.h
  15656. do :
  15657. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15658. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15659. cat >>confdefs.h <<_ACEOF
  15660. #define HAVE_LIBUNWIND_H 1
  15661. _ACEOF
  15662. fi
  15663. done
  15664. fi
  15665. # Check whether --enable-gcc-atomics was given.
  15666. if test "${enable_gcc_atomics+set}" = set; then :
  15667. enableval=$enable_gcc_atomics;
  15668. else
  15669. enable_gcc_atomics=yes
  15670. fi
  15671. if test x$enable_gcc_atomics = xyes; then
  15672. have_gcc_atomics=no
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15674. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15676. /* end confdefs.h. */
  15677. int
  15678. main ()
  15679. {
  15680. int a;
  15681. void *x, *y, *z;
  15682. __sync_lock_test_and_set(&a, 4);
  15683. __sync_lock_test_and_set(&x, y);
  15684. __sync_fetch_and_add(&a, 1);
  15685. __sync_bool_compare_and_swap(&a, 5, 10);
  15686. __sync_bool_compare_and_swap(&x, y, z);
  15687. ;
  15688. return 0;
  15689. }
  15690. _ACEOF
  15691. if ac_fn_c_try_link "$LINENO"; then :
  15692. have_gcc_atomics=yes
  15693. fi
  15694. rm -f core conftest.err conftest.$ac_objext \
  15695. conftest$ac_exeext conftest.$ac_ext
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15697. $as_echo "$have_gcc_atomics" >&6; }
  15698. if test x$have_gcc_atomics = xyes; then
  15699. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15700. else
  15701. # See if we have the minimum operation needed for GCC atomics
  15702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15703. /* end confdefs.h. */
  15704. int
  15705. main ()
  15706. {
  15707. int a;
  15708. __sync_lock_test_and_set(&a, 1);
  15709. __sync_lock_release(&a);
  15710. ;
  15711. return 0;
  15712. }
  15713. _ACEOF
  15714. if ac_fn_c_try_link "$LINENO"; then :
  15715. have_gcc_sync_lock_test_and_set=yes
  15716. fi
  15717. rm -f core conftest.err conftest.$ac_objext \
  15718. conftest$ac_exeext conftest.$ac_ext
  15719. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15720. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15721. fi
  15722. fi
  15723. fi
  15724. # Standard C sources
  15725. SOURCES="$SOURCES $srcdir/src/*.c"
  15726. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15727. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15728. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15729. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15730. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15731. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15732. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15733. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15734. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15735. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15736. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15737. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15738. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15739. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15740. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15741. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15742. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15743. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15744. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15745. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15746. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15747. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15748. case "$host" in
  15749. *-*-emscripten*)
  15750. default_atomic=no
  15751. ;;
  15752. *)
  15753. default_atomic=yes
  15754. ;;
  15755. esac
  15756. # Check whether --enable-atomic was given.
  15757. if test "${enable_atomic+set}" = set; then :
  15758. enableval=$enable_atomic;
  15759. else
  15760. enable_atomic=$default_atomic
  15761. fi
  15762. if test x$enable_atomic != xyes; then
  15763. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15764. else
  15765. SUMMARY_modules="${SUMMARY_modules} atomic"
  15766. fi
  15767. # Check whether --enable-audio was given.
  15768. if test "${enable_audio+set}" = set; then :
  15769. enableval=$enable_audio;
  15770. else
  15771. enable_audio=yes
  15772. fi
  15773. if test x$enable_audio != xyes; then
  15774. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15775. else
  15776. SUMMARY_modules="${SUMMARY_modules} audio"
  15777. fi
  15778. # Check whether --enable-video was given.
  15779. if test "${enable_video+set}" = set; then :
  15780. enableval=$enable_video;
  15781. else
  15782. enable_video=yes
  15783. fi
  15784. if test x$enable_video != xyes; then
  15785. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15786. else
  15787. SUMMARY_modules="${SUMMARY_modules} video"
  15788. fi
  15789. # Check whether --enable-render was given.
  15790. if test "${enable_render+set}" = set; then :
  15791. enableval=$enable_render;
  15792. else
  15793. enable_render=yes
  15794. fi
  15795. if test x$enable_render != xyes; then
  15796. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15797. else
  15798. SUMMARY_modules="${SUMMARY_modules} render"
  15799. fi
  15800. # Check whether --enable-events was given.
  15801. if test "${enable_events+set}" = set; then :
  15802. enableval=$enable_events;
  15803. else
  15804. enable_events=yes
  15805. fi
  15806. if test x$enable_events != xyes; then
  15807. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15808. else
  15809. SUMMARY_modules="${SUMMARY_modules} events"
  15810. fi
  15811. # Check whether --enable-joystick was given.
  15812. if test "${enable_joystick+set}" = set; then :
  15813. enableval=$enable_joystick;
  15814. else
  15815. enable_joystick=yes
  15816. fi
  15817. if test x$enable_joystick != xyes; then
  15818. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15819. else
  15820. SUMMARY_modules="${SUMMARY_modules} joystick"
  15821. fi
  15822. # Check whether --enable-haptic was given.
  15823. if test "${enable_haptic+set}" = set; then :
  15824. enableval=$enable_haptic;
  15825. else
  15826. enable_haptic=yes
  15827. fi
  15828. if test x$enable_haptic != xyes; then
  15829. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15830. else
  15831. SUMMARY_modules="${SUMMARY_modules} haptic"
  15832. fi
  15833. # Check whether --enable-hidapi was given.
  15834. if test "${enable_hidapi+set}" = set; then :
  15835. enableval=$enable_hidapi;
  15836. else
  15837. enable_hidapi=yes
  15838. fi
  15839. if test x$enable_hidapi != xyes; then
  15840. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15841. else
  15842. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15843. fi
  15844. # Check whether --enable-sensor was given.
  15845. if test "${enable_sensor+set}" = set; then :
  15846. enableval=$enable_sensor;
  15847. else
  15848. enable_sensor=yes
  15849. fi
  15850. if test x$enable_sensor != xyes; then
  15851. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15852. else
  15853. SUMMARY_modules="${SUMMARY_modules} sensor"
  15854. fi
  15855. # Check whether --enable-power was given.
  15856. if test "${enable_power+set}" = set; then :
  15857. enableval=$enable_power;
  15858. else
  15859. enable_power=yes
  15860. fi
  15861. if test x$enable_power != xyes; then
  15862. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15863. else
  15864. SUMMARY_modules="${SUMMARY_modules} power"
  15865. fi
  15866. # Check whether --enable-filesystem was given.
  15867. if test "${enable_filesystem+set}" = set; then :
  15868. enableval=$enable_filesystem;
  15869. else
  15870. enable_filesystem=yes
  15871. fi
  15872. if test x$enable_filesystem != xyes; then
  15873. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15874. else
  15875. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15876. fi
  15877. # Check whether --enable-threads was given.
  15878. if test "${enable_threads+set}" = set; then :
  15879. enableval=$enable_threads;
  15880. else
  15881. enable_threads=yes
  15882. fi
  15883. if test x$enable_threads != xyes; then
  15884. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15885. else
  15886. SUMMARY_modules="${SUMMARY_modules} threads"
  15887. fi
  15888. # Check whether --enable-timers was given.
  15889. if test "${enable_timers+set}" = set; then :
  15890. enableval=$enable_timers;
  15891. else
  15892. enable_timers=yes
  15893. fi
  15894. if test x$enable_timers != xyes; then
  15895. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15896. else
  15897. SUMMARY_modules="${SUMMARY_modules} timers"
  15898. fi
  15899. # Check whether --enable-file was given.
  15900. if test "${enable_file+set}" = set; then :
  15901. enableval=$enable_file;
  15902. else
  15903. enable_file=yes
  15904. fi
  15905. if test x$enable_file != xyes; then
  15906. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15907. else
  15908. SUMMARY_modules="${SUMMARY_modules} file"
  15909. fi
  15910. # Check whether --enable-misc was given.
  15911. if test "${enable_misc+set}" = set; then :
  15912. enableval=$enable_misc;
  15913. else
  15914. enable_misc=yes
  15915. fi
  15916. if test x$enable_misc != xyes; then
  15917. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15918. else
  15919. SUMMARY_modules="${SUMMARY_modules} misc"
  15920. fi
  15921. # Check whether --enable-locale was given.
  15922. if test "${enable_locale+set}" = set; then :
  15923. enableval=$enable_locale;
  15924. else
  15925. enable_locale=yes
  15926. fi
  15927. if test x$enable_locale != xyes; then
  15928. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15929. else
  15930. SUMMARY_modules="${SUMMARY_modules} locale"
  15931. fi
  15932. # Check whether --enable-loadso was given.
  15933. if test "${enable_loadso+set}" = set; then :
  15934. enableval=$enable_loadso;
  15935. else
  15936. enable_loadso=yes
  15937. fi
  15938. if test x$enable_loadso != xyes; then
  15939. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15940. else
  15941. SUMMARY_modules="${SUMMARY_modules} loadso"
  15942. fi
  15943. # Check whether --enable-cpuinfo was given.
  15944. if test "${enable_cpuinfo+set}" = set; then :
  15945. enableval=$enable_cpuinfo;
  15946. else
  15947. enable_cpuinfo=yes
  15948. fi
  15949. if test x$enable_cpuinfo != xyes; then
  15950. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15951. else
  15952. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15953. fi
  15954. # Check whether --enable-assembly was given.
  15955. if test "${enable_assembly+set}" = set; then :
  15956. enableval=$enable_assembly;
  15957. else
  15958. enable_assembly=yes
  15959. fi
  15960. if test x$enable_assembly = xyes; then
  15961. SUMMARY_modules="${SUMMARY_modules} assembly"
  15962. # Make sure that we don't generate floating point code that would
  15963. # cause illegal instruction exceptions on older processors
  15964. case "$host" in
  15965. *-*-darwin*)
  15966. # Don't need to worry about Apple hardware, it's all SSE capable
  15967. default_ssemath=yes
  15968. ;;
  15969. *64-*-*)
  15970. # x86 64-bit architectures all have SSE instructions
  15971. default_ssemath=yes
  15972. ;;
  15973. *)
  15974. default_ssemath=no
  15975. ;;
  15976. esac
  15977. # Check whether --enable-ssemath was given.
  15978. if test "${enable_ssemath+set}" = set; then :
  15979. enableval=$enable_ssemath;
  15980. else
  15981. enable_ssemath=$default_ssemath
  15982. fi
  15983. if test x$enable_ssemath = xno; then
  15984. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15985. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15986. fi
  15987. fi
  15988. # Check whether --enable-mmx was given.
  15989. if test "${enable_mmx+set}" = set; then :
  15990. enableval=$enable_mmx;
  15991. else
  15992. enable_mmx=yes
  15993. fi
  15994. if test x$enable_mmx = xyes; then
  15995. save_CFLAGS="$CFLAGS"
  15996. have_gcc_mmx=no
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15998. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15999. mmx_CFLAGS="-mmmx"
  16000. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  16001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16002. /* end confdefs.h. */
  16003. #ifdef __MINGW32__
  16004. #include <_mingw.h>
  16005. #ifdef __MINGW64_VERSION_MAJOR
  16006. #include <intrin.h>
  16007. #else
  16008. #include <mmintrin.h>
  16009. #endif
  16010. #else
  16011. #include <mmintrin.h>
  16012. #endif
  16013. #ifndef __MMX__
  16014. #error Assembler CPP flag not enabled
  16015. #endif
  16016. int
  16017. main ()
  16018. {
  16019. ;
  16020. return 0;
  16021. }
  16022. _ACEOF
  16023. if ac_fn_c_try_compile "$LINENO"; then :
  16024. have_gcc_mmx=yes
  16025. fi
  16026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  16028. $as_echo "$have_gcc_mmx" >&6; }
  16029. CFLAGS="$save_CFLAGS"
  16030. if test x$have_gcc_mmx = xyes; then
  16031. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  16032. SUMMARY_math="${SUMMARY_math} mmx"
  16033. fi
  16034. fi
  16035. # Check whether --enable-3dnow was given.
  16036. if test "${enable_3dnow+set}" = set; then :
  16037. enableval=$enable_3dnow;
  16038. else
  16039. enable_3dnow=yes
  16040. fi
  16041. if test x$enable_3dnow = xyes; then
  16042. save_CFLAGS="$CFLAGS"
  16043. have_gcc_3dnow=no
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  16045. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  16046. amd3dnow_CFLAGS="-m3dnow"
  16047. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  16048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16049. /* end confdefs.h. */
  16050. #include <mm3dnow.h>
  16051. #ifndef __3dNOW__
  16052. #error Assembler CPP flag not enabled
  16053. #endif
  16054. int
  16055. main ()
  16056. {
  16057. void *p = 0;
  16058. _m_prefetch(p);
  16059. ;
  16060. return 0;
  16061. }
  16062. _ACEOF
  16063. if ac_fn_c_try_link "$LINENO"; then :
  16064. have_gcc_3dnow=yes
  16065. fi
  16066. rm -f core conftest.err conftest.$ac_objext \
  16067. conftest$ac_exeext conftest.$ac_ext
  16068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  16069. $as_echo "$have_gcc_3dnow" >&6; }
  16070. CFLAGS="$save_CFLAGS"
  16071. if test x$have_gcc_3dnow = xyes; then
  16072. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  16073. SUMMARY_math="${SUMMARY_math} 3dnow"
  16074. fi
  16075. fi
  16076. # Check whether --enable-sse was given.
  16077. if test "${enable_sse+set}" = set; then :
  16078. enableval=$enable_sse;
  16079. else
  16080. enable_sse=yes
  16081. fi
  16082. if test x$enable_sse = xyes; then
  16083. save_CFLAGS="$CFLAGS"
  16084. have_gcc_sse=no
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  16086. $as_echo_n "checking for GCC -msse option... " >&6; }
  16087. sse_CFLAGS="-msse"
  16088. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  16089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16090. /* end confdefs.h. */
  16091. #ifdef __MINGW32__
  16092. #include <_mingw.h>
  16093. #ifdef __MINGW64_VERSION_MAJOR
  16094. #include <intrin.h>
  16095. #else
  16096. #include <xmmintrin.h>
  16097. #endif
  16098. #else
  16099. #include <xmmintrin.h>
  16100. #endif
  16101. #ifndef __SSE__
  16102. #error Assembler CPP flag not enabled
  16103. #endif
  16104. int
  16105. main ()
  16106. {
  16107. ;
  16108. return 0;
  16109. }
  16110. _ACEOF
  16111. if ac_fn_c_try_compile "$LINENO"; then :
  16112. have_gcc_sse=yes
  16113. fi
  16114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  16116. $as_echo "$have_gcc_sse" >&6; }
  16117. CFLAGS="$save_CFLAGS"
  16118. if test x$have_gcc_sse = xyes; then
  16119. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  16120. SUMMARY_math="${SUMMARY_math} sse"
  16121. fi
  16122. fi
  16123. # Check whether --enable-sse2 was given.
  16124. if test "${enable_sse2+set}" = set; then :
  16125. enableval=$enable_sse2;
  16126. else
  16127. enable_sse2=$default_ssemath
  16128. fi
  16129. if test x$enable_sse2 = xyes; then
  16130. save_CFLAGS="$CFLAGS"
  16131. have_gcc_sse2=no
  16132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  16133. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  16134. sse2_CFLAGS="-msse2"
  16135. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  16136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16137. /* end confdefs.h. */
  16138. #ifdef __MINGW32__
  16139. #include <_mingw.h>
  16140. #ifdef __MINGW64_VERSION_MAJOR
  16141. #include <intrin.h>
  16142. #else
  16143. #include <emmintrin.h>
  16144. #endif
  16145. #else
  16146. #include <emmintrin.h>
  16147. #endif
  16148. #ifndef __SSE2__
  16149. #error Assembler CPP flag not enabled
  16150. #endif
  16151. int
  16152. main ()
  16153. {
  16154. ;
  16155. return 0;
  16156. }
  16157. _ACEOF
  16158. if ac_fn_c_try_compile "$LINENO"; then :
  16159. have_gcc_sse2=yes
  16160. fi
  16161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  16163. $as_echo "$have_gcc_sse2" >&6; }
  16164. CFLAGS="$save_CFLAGS"
  16165. if test x$have_gcc_sse2 = xyes; then
  16166. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  16167. SUMMARY_math="${SUMMARY_math} sse2"
  16168. fi
  16169. fi
  16170. # Check whether --enable-sse3 was given.
  16171. if test "${enable_sse3+set}" = set; then :
  16172. enableval=$enable_sse3;
  16173. else
  16174. enable_sse3=$default_ssemath
  16175. fi
  16176. if test x$enable_sse3 = xyes; then
  16177. save_CFLAGS="$CFLAGS"
  16178. have_gcc_sse3=no
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  16180. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  16181. sse3_CFLAGS="-msse3"
  16182. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  16183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16184. /* end confdefs.h. */
  16185. #ifdef __MINGW32__
  16186. #include <_mingw.h>
  16187. #ifdef __MINGW64_VERSION_MAJOR
  16188. #include <intrin.h>
  16189. #else
  16190. #include <pmmintrin.h>
  16191. #endif
  16192. #else
  16193. #include <pmmintrin.h>
  16194. #endif
  16195. #ifndef __SSE2__
  16196. #error Assembler CPP flag not enabled
  16197. #endif
  16198. int
  16199. main ()
  16200. {
  16201. ;
  16202. return 0;
  16203. }
  16204. _ACEOF
  16205. if ac_fn_c_try_compile "$LINENO"; then :
  16206. have_gcc_sse3=yes
  16207. fi
  16208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  16210. $as_echo "$have_gcc_sse3" >&6; }
  16211. CFLAGS="$save_CFLAGS"
  16212. if test x$have_gcc_sse3 = xyes; then
  16213. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16214. SUMMARY_math="${SUMMARY_math} sse3"
  16215. fi
  16216. fi
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16218. $as_echo_n "checking for immintrin.h... " >&6; }
  16219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16220. /* end confdefs.h. */
  16221. #include <immintrin.h>
  16222. int
  16223. main ()
  16224. {
  16225. ;
  16226. return 0;
  16227. }
  16228. _ACEOF
  16229. if ac_fn_c_try_compile "$LINENO"; then :
  16230. have_immintrin_h_hdr=yes
  16231. else
  16232. have_immintrin_h_hdr=no
  16233. fi
  16234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16236. $as_echo "$have_immintrin_h_hdr" >&6; }
  16237. if test x$have_immintrin_h_hdr = xyes; then
  16238. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16239. fi
  16240. # Check whether --enable-lsx was given.
  16241. if test "${enable_lsx+set}" = set; then :
  16242. enableval=$enable_lsx;
  16243. else
  16244. enable_lsx=yes
  16245. fi
  16246. if test x$enable_lsx = xyes; then
  16247. save_CFLAGS="$CFLAGS"
  16248. have_gcc_lsx=no
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  16250. $as_echo_n "checking for GCC -mlsx option... " >&6; }
  16251. lsx_CFLAGS="-mlsx"
  16252. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  16253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16254. /* end confdefs.h. */
  16255. #ifndef __loongarch_sx
  16256. #error Assembler CPP flag not enabled
  16257. #endif
  16258. int
  16259. main ()
  16260. {
  16261. ;
  16262. return 0;
  16263. }
  16264. _ACEOF
  16265. if ac_fn_c_try_compile "$LINENO"; then :
  16266. have_gcc_lsx=yes
  16267. fi
  16268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  16270. $as_echo "$have_gcc_lsx" >&6; }
  16271. CFLAGS="$save_CFLAGS"
  16272. if test x$have_gcc_lsx = xyes; then
  16273. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  16274. SUMMARY_math="${SUMMARY_math} lsx"
  16275. fi
  16276. fi
  16277. ac_fn_c_check_header_mongrel "$LINENO" "lsxintrin.h" "ac_cv_header_lsxintrin_h" "$ac_includes_default"
  16278. if test "x$ac_cv_header_lsxintrin_h" = xyes; then :
  16279. have_lsx_h_hdr=yes
  16280. else
  16281. have_lsx_h_hdr=no
  16282. fi
  16283. if test x$have_lsx_h_hdr = xyes; then
  16284. $as_echo "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  16285. fi
  16286. # Check whether --enable-lasx was given.
  16287. if test "${enable_lasx+set}" = set; then :
  16288. enableval=$enable_lasx;
  16289. else
  16290. enable_LASX=yes
  16291. fi
  16292. if test x$enable_LASX = xyes; then
  16293. save_CFLAGS="$CFLAGS"
  16294. have_gcc_lasx=no
  16295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  16296. $as_echo_n "checking for GCC -mlasx option... " >&6; }
  16297. lasx_CFLAGS="-mlasx"
  16298. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  16299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16300. /* end confdefs.h. */
  16301. #ifndef __loongarch_asx
  16302. #error Assembler CPP flag not enabled
  16303. #endif
  16304. int
  16305. main ()
  16306. {
  16307. ;
  16308. return 0;
  16309. }
  16310. _ACEOF
  16311. if ac_fn_c_try_compile "$LINENO"; then :
  16312. have_gcc_lasx=yes
  16313. fi
  16314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  16316. $as_echo "$have_gcc_lasx" >&6; }
  16317. CFLAGS="$save_CFLAGS"
  16318. if test x$have_gcc_lasx = xyes; then
  16319. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  16320. SUMMARY_math="${SUMMARY_math} lasx"
  16321. fi
  16322. fi
  16323. ac_fn_c_check_header_mongrel "$LINENO" "lasxintrin.h" "ac_cv_header_lasxintrin_h" "$ac_includes_default"
  16324. if test "x$ac_cv_header_lasxintrin_h" = xyes; then :
  16325. have_lasx_h_hdr=yes
  16326. else
  16327. have_lasx_h_hdr=no
  16328. fi
  16329. if test x$have_lasx_h_hdr = xyes; then
  16330. $as_echo "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  16331. fi
  16332. # Check whether --enable-altivec was given.
  16333. if test "${enable_altivec+set}" = set; then :
  16334. enableval=$enable_altivec;
  16335. else
  16336. enable_altivec=yes
  16337. fi
  16338. if test x$enable_altivec = xyes; then
  16339. save_CFLAGS="$CFLAGS"
  16340. have_gcc_altivec=no
  16341. have_altivec_h_hdr=no
  16342. altivec_CFLAGS="-maltivec"
  16343. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16345. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16347. /* end confdefs.h. */
  16348. #include <altivec.h>
  16349. vector unsigned int vzero() {
  16350. return vec_splat_u32(0);
  16351. }
  16352. int
  16353. main ()
  16354. {
  16355. ;
  16356. return 0;
  16357. }
  16358. _ACEOF
  16359. if ac_fn_c_try_compile "$LINENO"; then :
  16360. have_gcc_altivec=yes
  16361. have_altivec_h_hdr=yes
  16362. fi
  16363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16365. $as_echo "$have_gcc_altivec" >&6; }
  16366. if test x$have_gcc_altivec = xno; then
  16367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16368. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16370. /* end confdefs.h. */
  16371. vector unsigned int vzero() {
  16372. return vec_splat_u32(0);
  16373. }
  16374. int
  16375. main ()
  16376. {
  16377. ;
  16378. return 0;
  16379. }
  16380. _ACEOF
  16381. if ac_fn_c_try_compile "$LINENO"; then :
  16382. have_gcc_altivec=yes
  16383. fi
  16384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16386. $as_echo "$have_gcc_altivec" >&6; }
  16387. fi
  16388. if test x$have_gcc_altivec = xno; then
  16389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16390. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16391. altivec_CFLAGS="-faltivec"
  16392. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16394. /* end confdefs.h. */
  16395. #include <altivec.h>
  16396. vector unsigned int vzero() {
  16397. return vec_splat_u32(0);
  16398. }
  16399. int
  16400. main ()
  16401. {
  16402. ;
  16403. return 0;
  16404. }
  16405. _ACEOF
  16406. if ac_fn_c_try_compile "$LINENO"; then :
  16407. have_gcc_altivec=yes
  16408. have_altivec_h_hdr=yes
  16409. fi
  16410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16412. $as_echo "$have_gcc_altivec" >&6; }
  16413. fi
  16414. if test x$have_gcc_altivec = xno; then
  16415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16416. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16418. /* end confdefs.h. */
  16419. vector unsigned int vzero() {
  16420. return vec_splat_u32(0);
  16421. }
  16422. int
  16423. main ()
  16424. {
  16425. ;
  16426. return 0;
  16427. }
  16428. _ACEOF
  16429. if ac_fn_c_try_compile "$LINENO"; then :
  16430. have_gcc_altivec=yes
  16431. fi
  16432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16434. $as_echo "$have_gcc_altivec" >&6; }
  16435. fi
  16436. CFLAGS="$save_CFLAGS"
  16437. if test x$have_gcc_altivec = xyes; then
  16438. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16439. if test x$have_altivec_h_hdr = xyes; then
  16440. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16441. fi
  16442. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16443. SUMMARY_math="${SUMMARY_math} altivec"
  16444. fi
  16445. fi
  16446. fi
  16447. CheckOSS()
  16448. {
  16449. # Check whether --enable-oss was given.
  16450. if test "${enable_oss+set}" = set; then :
  16451. enableval=$enable_oss;
  16452. else
  16453. enable_oss=maybe
  16454. fi
  16455. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16456. # use sndio instead. So on there, we default to disabled. You can force
  16457. # it on if you really want, though.
  16458. if test x$enable_oss = xmaybe; then
  16459. enable_oss=yes
  16460. case "$host" in
  16461. *-*-openbsd*)
  16462. enable_oss=no;;
  16463. esac
  16464. fi
  16465. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16467. $as_echo_n "checking for OSS audio support... " >&6; }
  16468. have_oss=no
  16469. if test x$have_oss != xyes; then
  16470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16471. /* end confdefs.h. */
  16472. #include <sys/soundcard.h>
  16473. int
  16474. main ()
  16475. {
  16476. int arg = SNDCTL_DSP_SETFRAGMENT;
  16477. ;
  16478. return 0;
  16479. }
  16480. _ACEOF
  16481. if ac_fn_c_try_compile "$LINENO"; then :
  16482. have_oss=yes
  16483. fi
  16484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16485. fi
  16486. if test x$have_oss != xyes; then
  16487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16488. /* end confdefs.h. */
  16489. #include <soundcard.h>
  16490. int
  16491. main ()
  16492. {
  16493. int arg = SNDCTL_DSP_SETFRAGMENT;
  16494. ;
  16495. return 0;
  16496. }
  16497. _ACEOF
  16498. if ac_fn_c_try_compile "$LINENO"; then :
  16499. have_oss=yes
  16500. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16501. fi
  16502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16503. fi
  16504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16505. $as_echo "$have_oss" >&6; }
  16506. if test x$have_oss = xyes; then
  16507. SUMMARY_audio="${SUMMARY_audio} oss"
  16508. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16509. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16510. have_audio=yes
  16511. # We may need to link with ossaudio emulation library
  16512. case "$host" in
  16513. *-*-openbsd*|*-*-netbsd*)
  16514. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16515. esac
  16516. fi
  16517. fi
  16518. }
  16519. CheckALSA()
  16520. {
  16521. # Check whether --enable-alsa was given.
  16522. if test "${enable_alsa+set}" = set; then :
  16523. enableval=$enable_alsa;
  16524. else
  16525. enable_alsa=yes
  16526. fi
  16527. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16528. alsa_save_CFLAGS="$CFLAGS"
  16529. alsa_save_LDFLAGS="$LDFLAGS"
  16530. alsa_save_LIBS="$LIBS"
  16531. alsa_found=yes
  16532. # Check whether --with-alsa-prefix was given.
  16533. if test "${with_alsa_prefix+set}" = set; then :
  16534. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16535. else
  16536. alsa_prefix=""
  16537. fi
  16538. # Check whether --with-alsa-inc-prefix was given.
  16539. if test "${with_alsa_inc_prefix+set}" = set; then :
  16540. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16541. else
  16542. alsa_inc_prefix=""
  16543. fi
  16544. # Check whether --enable-alsatest was given.
  16545. if test "${enable_alsatest+set}" = set; then :
  16546. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16547. else
  16548. enable_alsatest=yes
  16549. fi
  16550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16551. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16552. if test "$alsa_inc_prefix" != "" ; then
  16553. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16554. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16555. fi
  16556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16557. $as_echo "$ALSA_CFLAGS" >&6; }
  16558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16559. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16560. if test "$alsa_prefix" != "" ; then
  16561. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16562. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16563. fi
  16564. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16565. LIBS=`echo $LIBS | sed 's/-lm//'`
  16566. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16567. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16568. LIBS=`echo $LIBS | sed 's/ //'`
  16569. LIBS="$ALSA_LIBS $LIBS"
  16570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16571. $as_echo "$ALSA_LIBS" >&6; }
  16572. min_alsa_version=1.0.11
  16573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16574. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16575. no_alsa=""
  16576. alsa_min_major_version=`echo $min_alsa_version | \
  16577. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16578. alsa_min_minor_version=`echo $min_alsa_version | \
  16579. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16580. alsa_min_micro_version=`echo $min_alsa_version | \
  16581. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16582. ac_ext=c
  16583. ac_cpp='$CPP $CPPFLAGS'
  16584. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16585. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16586. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16588. /* end confdefs.h. */
  16589. #include <alsa/asoundlib.h>
  16590. int
  16591. main ()
  16592. {
  16593. /* ensure backward compatibility */
  16594. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16595. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16596. #endif
  16597. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16598. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16599. #endif
  16600. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16601. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16602. #endif
  16603. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16604. exit(0);
  16605. # else
  16606. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16607. # error not present
  16608. # endif
  16609. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16610. exit(0);
  16611. # else
  16612. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16613. # error not present
  16614. # endif
  16615. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16616. # error not present
  16617. # endif
  16618. # endif
  16619. # endif
  16620. exit(0);
  16621. ;
  16622. return 0;
  16623. }
  16624. _ACEOF
  16625. if ac_fn_c_try_compile "$LINENO"; then :
  16626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16627. $as_echo "found." >&6; }
  16628. else
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16630. $as_echo "not present." >&6; }
  16631. alsa_found=no
  16632. fi
  16633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16634. ac_ext=c
  16635. ac_cpp='$CPP $CPPFLAGS'
  16636. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16637. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16638. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16639. if test "x$enable_alsatest" = "xyes"; then
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16641. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16642. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16643. $as_echo_n "(cached) " >&6
  16644. else
  16645. ac_check_lib_save_LIBS=$LIBS
  16646. LIBS="-lasound $LIBS"
  16647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16648. /* end confdefs.h. */
  16649. /* Override any GCC internal prototype to avoid an error.
  16650. Use char because int might match the return type of a GCC
  16651. builtin and then its argument prototype would still apply. */
  16652. #ifdef __cplusplus
  16653. extern "C"
  16654. #endif
  16655. char snd_ctl_open ();
  16656. int
  16657. main ()
  16658. {
  16659. return snd_ctl_open ();
  16660. ;
  16661. return 0;
  16662. }
  16663. _ACEOF
  16664. if ac_fn_c_try_link "$LINENO"; then :
  16665. ac_cv_lib_asound_snd_ctl_open=yes
  16666. else
  16667. ac_cv_lib_asound_snd_ctl_open=no
  16668. fi
  16669. rm -f core conftest.err conftest.$ac_objext \
  16670. conftest$ac_exeext conftest.$ac_ext
  16671. LIBS=$ac_check_lib_save_LIBS
  16672. fi
  16673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16674. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16675. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16676. cat >>confdefs.h <<_ACEOF
  16677. #define HAVE_LIBASOUND 1
  16678. _ACEOF
  16679. LIBS="-lasound $LIBS"
  16680. else
  16681. alsa_found=no
  16682. fi
  16683. fi
  16684. if test "x$alsa_found" = "xyes" ; then
  16685. have_alsa=yes
  16686. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16687. LIBS=`echo $LIBS | sed 's/ //'`
  16688. LIBS="-lasound $LIBS"
  16689. fi
  16690. if test "x$alsa_found" = "xno" ; then
  16691. have_alsa=no
  16692. CFLAGS="$alsa_save_CFLAGS"
  16693. LDFLAGS="$alsa_save_LDFLAGS"
  16694. LIBS="$alsa_save_LIBS"
  16695. ALSA_CFLAGS=""
  16696. ALSA_LIBS=""
  16697. fi
  16698. # Restore all flags from before the ALSA detection runs
  16699. CFLAGS="$alsa_save_CFLAGS"
  16700. LDFLAGS="$alsa_save_LDFLAGS"
  16701. LIBS="$alsa_save_LIBS"
  16702. if test x$have_alsa = xyes; then
  16703. # Check whether --enable-alsa-shared was given.
  16704. if test "${enable_alsa_shared+set}" = set; then :
  16705. enableval=$enable_alsa_shared;
  16706. else
  16707. enable_alsa_shared=yes
  16708. fi
  16709. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16710. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16711. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16712. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16713. if test x$have_loadso != xyes && \
  16714. test x$enable_alsa_shared = xyes; then
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16716. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16717. fi
  16718. if test x$have_loadso = xyes && \
  16719. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16720. echo "-- dynamic libasound -> $alsa_lib"
  16721. cat >>confdefs.h <<_ACEOF
  16722. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16723. _ACEOF
  16724. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16725. else
  16726. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16727. SUMMARY_audio="${SUMMARY_audio} alsa"
  16728. fi
  16729. have_audio=yes
  16730. fi
  16731. fi
  16732. }
  16733. CheckJACK()
  16734. {
  16735. # Check whether --enable-jack was given.
  16736. if test "${enable_jack+set}" = set; then :
  16737. enableval=$enable_jack;
  16738. else
  16739. enable_jack=yes
  16740. fi
  16741. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16742. pkg_failed=no
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16744. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16745. if test -n "$JACK_CFLAGS"; then
  16746. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16747. elif test -n "$PKG_CONFIG"; then
  16748. if test -n "$PKG_CONFIG" && \
  16749. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16750. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16751. ac_status=$?
  16752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16753. test $ac_status = 0; }; then
  16754. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16755. test "x$?" != "x0" && pkg_failed=yes
  16756. else
  16757. pkg_failed=yes
  16758. fi
  16759. else
  16760. pkg_failed=untried
  16761. fi
  16762. if test -n "$JACK_LIBS"; then
  16763. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16764. elif test -n "$PKG_CONFIG"; then
  16765. if test -n "$PKG_CONFIG" && \
  16766. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16767. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16768. ac_status=$?
  16769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16770. test $ac_status = 0; }; then
  16771. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16772. test "x$?" != "x0" && pkg_failed=yes
  16773. else
  16774. pkg_failed=yes
  16775. fi
  16776. else
  16777. pkg_failed=untried
  16778. fi
  16779. if test $pkg_failed = yes; then
  16780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16781. $as_echo "no" >&6; }
  16782. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16783. _pkg_short_errors_supported=yes
  16784. else
  16785. _pkg_short_errors_supported=no
  16786. fi
  16787. if test $_pkg_short_errors_supported = yes; then
  16788. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16789. else
  16790. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16791. fi
  16792. # Put the nasty error message in config.log where it belongs
  16793. echo "$JACK_PKG_ERRORS" >&5
  16794. audio_jack=no
  16795. elif test $pkg_failed = untried; then
  16796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16797. $as_echo "no" >&6; }
  16798. audio_jack=no
  16799. else
  16800. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16801. JACK_LIBS=$pkg_cv_JACK_LIBS
  16802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16803. $as_echo "yes" >&6; }
  16804. audio_jack=yes
  16805. fi
  16806. if test x$audio_jack = xyes; then
  16807. # Check whether --enable-jack-shared was given.
  16808. if test "${enable_jack_shared+set}" = set; then :
  16809. enableval=$enable_jack_shared;
  16810. else
  16811. enable_jack_shared=yes
  16812. fi
  16813. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16814. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16815. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16816. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16817. if test x$have_loadso != xyes && \
  16818. test x$enable_jack_shared = xyes; then
  16819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16820. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16821. fi
  16822. if test x$have_loadso = xyes && \
  16823. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16824. echo "-- dynamic libjack -> $jack_lib"
  16825. cat >>confdefs.h <<_ACEOF
  16826. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16827. _ACEOF
  16828. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16829. case "$host" in
  16830. # On Solaris, jack must be linked deferred explicitly
  16831. # to prevent undefined symbol failures.
  16832. *-*-solaris*)
  16833. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16834. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16835. esac
  16836. else
  16837. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16838. SUMMARY_audio="${SUMMARY_audio} jack"
  16839. fi
  16840. have_audio=yes
  16841. fi
  16842. fi
  16843. }
  16844. CheckESD()
  16845. {
  16846. # Check whether --enable-esd was given.
  16847. if test "${enable_esd+set}" = set; then :
  16848. enableval=$enable_esd;
  16849. else
  16850. enable_esd=yes
  16851. fi
  16852. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16853. # Check whether --with-esd-prefix was given.
  16854. if test "${with_esd_prefix+set}" = set; then :
  16855. withval=$with_esd_prefix; esd_prefix="$withval"
  16856. else
  16857. esd_prefix=""
  16858. fi
  16859. # Check whether --with-esd-exec-prefix was given.
  16860. if test "${with_esd_exec_prefix+set}" = set; then :
  16861. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16862. else
  16863. esd_exec_prefix=""
  16864. fi
  16865. # Check whether --enable-esdtest was given.
  16866. if test "${enable_esdtest+set}" = set; then :
  16867. enableval=$enable_esdtest;
  16868. else
  16869. enable_esdtest=yes
  16870. fi
  16871. if test x$esd_exec_prefix != x ; then
  16872. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16873. if test x${ESD_CONFIG+set} != xset ; then
  16874. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16875. fi
  16876. fi
  16877. if test x$esd_prefix != x ; then
  16878. esd_args="$esd_args --prefix=$esd_prefix"
  16879. if test x${ESD_CONFIG+set} != xset ; then
  16880. ESD_CONFIG=$esd_prefix/bin/esd-config
  16881. fi
  16882. fi
  16883. # Extract the first word of "esd-config", so it can be a program name with args.
  16884. set dummy esd-config; ac_word=$2
  16885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16886. $as_echo_n "checking for $ac_word... " >&6; }
  16887. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16888. $as_echo_n "(cached) " >&6
  16889. else
  16890. case $ESD_CONFIG in
  16891. [\\/]* | ?:[\\/]*)
  16892. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16893. ;;
  16894. *)
  16895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16896. for as_dir in $PATH
  16897. do
  16898. IFS=$as_save_IFS
  16899. test -z "$as_dir" && as_dir=.
  16900. for ac_exec_ext in '' $ac_executable_extensions; do
  16901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16902. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16904. break 2
  16905. fi
  16906. done
  16907. done
  16908. IFS=$as_save_IFS
  16909. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16910. ;;
  16911. esac
  16912. fi
  16913. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16914. if test -n "$ESD_CONFIG"; then
  16915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16916. $as_echo "$ESD_CONFIG" >&6; }
  16917. else
  16918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16919. $as_echo "no" >&6; }
  16920. fi
  16921. min_esd_version=0.2.8
  16922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16923. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16924. no_esd=""
  16925. if test "$ESD_CONFIG" = "no" ; then
  16926. no_esd=yes
  16927. else
  16928. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16929. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16930. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16931. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16932. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16933. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16934. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16935. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16936. if test "x$enable_esdtest" = "xyes" ; then
  16937. ac_ext=c
  16938. ac_cpp='$CPP $CPPFLAGS'
  16939. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16940. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16941. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16942. ac_save_CFLAGS="$CFLAGS"
  16943. ac_save_LIBS="$LIBS"
  16944. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16945. LIBS="$LIBS $ESD_LIBS"
  16946. rm -f conf.esdtest
  16947. if test "$cross_compiling" = yes; then :
  16948. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16949. else
  16950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16951. /* end confdefs.h. */
  16952. #include <stdio.h>
  16953. #include <stdlib.h>
  16954. #include <esd.h>
  16955. int main (void)
  16956. {
  16957. int major, minor, micro;
  16958. FILE *fp = fopen("conf.esdtest", "w");
  16959. if (fp) fclose(fp);
  16960. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16961. printf("%s, bad version string\n", "$min_esd_version");
  16962. exit(1);
  16963. }
  16964. if (($esd_major_version > major) ||
  16965. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16966. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16967. {
  16968. return 0;
  16969. }
  16970. else
  16971. {
  16972. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16973. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16974. printf("*** best to upgrade to the required version.\n");
  16975. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16976. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16977. printf("*** config.cache before re-running configure\n");
  16978. return 1;
  16979. }
  16980. }
  16981. _ACEOF
  16982. if ac_fn_c_try_run "$LINENO"; then :
  16983. else
  16984. no_esd=yes
  16985. fi
  16986. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16987. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16988. fi
  16989. CFLAGS="$ac_save_CFLAGS"
  16990. LIBS="$ac_save_LIBS"
  16991. ac_ext=c
  16992. ac_cpp='$CPP $CPPFLAGS'
  16993. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16994. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16995. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16996. fi
  16997. fi
  16998. if test "x$no_esd" = x ; then
  16999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17000. $as_echo "yes" >&6; }
  17001. have_esd=yes
  17002. else
  17003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17004. $as_echo "no" >&6; }
  17005. if test "$ESD_CONFIG" = "no" ; then
  17006. echo "*** The esd-config script installed by ESD could not be found"
  17007. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  17008. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  17009. echo "*** full path to esd-config."
  17010. else
  17011. if test -f conf.esdtest ; then
  17012. :
  17013. else
  17014. echo "*** Could not run ESD test program, checking why..."
  17015. CFLAGS="$CFLAGS $ESD_CFLAGS"
  17016. LIBS="$LIBS $ESD_LIBS"
  17017. ac_ext=c
  17018. ac_cpp='$CPP $CPPFLAGS'
  17019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17023. /* end confdefs.h. */
  17024. #include <stdio.h>
  17025. #include <esd.h>
  17026. int
  17027. main ()
  17028. {
  17029. return 0;
  17030. ;
  17031. return 0;
  17032. }
  17033. _ACEOF
  17034. if ac_fn_c_try_link "$LINENO"; then :
  17035. echo "*** The test program compiled, but did not run. This usually means"
  17036. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  17037. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  17038. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  17039. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  17040. echo "*** is required on your system"
  17041. echo "***"
  17042. echo "*** If you have an old version installed, it is best to remove it, although"
  17043. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  17044. else
  17045. echo "*** The test program failed to compile or link. See the file config.log for the"
  17046. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  17047. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  17048. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  17049. fi
  17050. rm -f core conftest.err conftest.$ac_objext \
  17051. conftest$ac_exeext conftest.$ac_ext
  17052. CFLAGS="$ac_save_CFLAGS"
  17053. LIBS="$ac_save_LIBS"
  17054. ac_ext=c
  17055. ac_cpp='$CPP $CPPFLAGS'
  17056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17059. fi
  17060. fi
  17061. ESD_CFLAGS=""
  17062. ESD_LIBS=""
  17063. have_esd=no
  17064. fi
  17065. rm -f conf.esdtest
  17066. if test x$have_esd = xyes; then
  17067. # Check whether --enable-esd-shared was given.
  17068. if test "${enable_esd_shared+set}" = set; then :
  17069. enableval=$enable_esd_shared;
  17070. else
  17071. enable_esd_shared=yes
  17072. fi
  17073. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17074. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  17075. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  17076. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  17077. if test x$have_loadso != xyes && \
  17078. test x$enable_esd_shared = xyes; then
  17079. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  17080. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  17081. fi
  17082. if test x$have_loadso = xyes && \
  17083. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  17084. echo "-- dynamic libesd -> $esd_lib"
  17085. cat >>confdefs.h <<_ACEOF
  17086. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  17087. _ACEOF
  17088. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  17089. else
  17090. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  17091. SUMMARY_audio="${SUMMARY_audio} esd"
  17092. fi
  17093. have_audio=yes
  17094. fi
  17095. fi
  17096. }
  17097. CheckPipewire()
  17098. {
  17099. # Check whether --enable-pipewire was given.
  17100. if test "${enable_pipewire+set}" = set; then :
  17101. enableval=$enable_pipewire;
  17102. else
  17103. enable_pipewire=yes
  17104. fi
  17105. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  17106. pkg_failed=no
  17107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  17108. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  17109. if test -n "$PIPEWIRE_CFLAGS"; then
  17110. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  17111. elif test -n "$PKG_CONFIG"; then
  17112. if test -n "$PKG_CONFIG" && \
  17113. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  17114. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  17115. ac_status=$?
  17116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17117. test $ac_status = 0; }; then
  17118. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  17119. test "x$?" != "x0" && pkg_failed=yes
  17120. else
  17121. pkg_failed=yes
  17122. fi
  17123. else
  17124. pkg_failed=untried
  17125. fi
  17126. if test -n "$PIPEWIRE_LIBS"; then
  17127. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  17128. elif test -n "$PKG_CONFIG"; then
  17129. if test -n "$PKG_CONFIG" && \
  17130. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  17131. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  17132. ac_status=$?
  17133. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17134. test $ac_status = 0; }; then
  17135. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  17136. test "x$?" != "x0" && pkg_failed=yes
  17137. else
  17138. pkg_failed=yes
  17139. fi
  17140. else
  17141. pkg_failed=untried
  17142. fi
  17143. if test $pkg_failed = yes; then
  17144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17145. $as_echo "no" >&6; }
  17146. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17147. _pkg_short_errors_supported=yes
  17148. else
  17149. _pkg_short_errors_supported=no
  17150. fi
  17151. if test $_pkg_short_errors_supported = yes; then
  17152. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  17153. else
  17154. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  17155. fi
  17156. # Put the nasty error message in config.log where it belongs
  17157. echo "$PIPEWIRE_PKG_ERRORS" >&5
  17158. audio_pipewire=no
  17159. elif test $pkg_failed = untried; then
  17160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17161. $as_echo "no" >&6; }
  17162. audio_pipewire=no
  17163. else
  17164. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  17165. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  17166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17167. $as_echo "yes" >&6; }
  17168. audio_pipewire=yes
  17169. fi
  17170. if test x$audio_pipewire = xyes; then
  17171. # Check whether --enable-pipewire-shared was given.
  17172. if test "${enable_pipewire_shared+set}" = set; then :
  17173. enableval=$enable_pipewire_shared;
  17174. else
  17175. enable_pipewire_shared=yes
  17176. fi
  17177. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17178. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  17179. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  17180. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  17181. if test x$have_loadso != xyes && \
  17182. test x$enable_pipewire_shared = xyes; then
  17183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  17184. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  17185. fi
  17186. if test x$have_loadso = xyes && \
  17187. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  17188. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  17189. cat >>confdefs.h <<_ACEOF
  17190. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  17191. _ACEOF
  17192. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  17193. else
  17194. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  17195. SUMMARY_audio="${SUMMARY_audio} pipewire"
  17196. fi
  17197. have_audio=yes
  17198. fi
  17199. fi
  17200. }
  17201. CheckPulseAudio()
  17202. {
  17203. # Check whether --enable-pulseaudio was given.
  17204. if test "${enable_pulseaudio+set}" = set; then :
  17205. enableval=$enable_pulseaudio;
  17206. else
  17207. enable_pulseaudio=yes
  17208. fi
  17209. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  17210. pkg_failed=no
  17211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  17212. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  17213. if test -n "$PULSEAUDIO_CFLAGS"; then
  17214. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  17215. elif test -n "$PKG_CONFIG"; then
  17216. if test -n "$PKG_CONFIG" && \
  17217. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  17218. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  17219. ac_status=$?
  17220. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17221. test $ac_status = 0; }; then
  17222. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  17223. test "x$?" != "x0" && pkg_failed=yes
  17224. else
  17225. pkg_failed=yes
  17226. fi
  17227. else
  17228. pkg_failed=untried
  17229. fi
  17230. if test -n "$PULSEAUDIO_LIBS"; then
  17231. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  17232. elif test -n "$PKG_CONFIG"; then
  17233. if test -n "$PKG_CONFIG" && \
  17234. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  17235. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  17236. ac_status=$?
  17237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17238. test $ac_status = 0; }; then
  17239. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  17240. test "x$?" != "x0" && pkg_failed=yes
  17241. else
  17242. pkg_failed=yes
  17243. fi
  17244. else
  17245. pkg_failed=untried
  17246. fi
  17247. if test $pkg_failed = yes; then
  17248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17249. $as_echo "no" >&6; }
  17250. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17251. _pkg_short_errors_supported=yes
  17252. else
  17253. _pkg_short_errors_supported=no
  17254. fi
  17255. if test $_pkg_short_errors_supported = yes; then
  17256. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  17257. else
  17258. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  17259. fi
  17260. # Put the nasty error message in config.log where it belongs
  17261. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  17262. audio_pulseaudio=no
  17263. elif test $pkg_failed = untried; then
  17264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17265. $as_echo "no" >&6; }
  17266. audio_pulseaudio=no
  17267. else
  17268. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  17269. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  17270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17271. $as_echo "yes" >&6; }
  17272. audio_pulseaudio=yes
  17273. fi
  17274. if test x$audio_pulseaudio = xyes; then
  17275. # Check whether --enable-pulseaudio-shared was given.
  17276. if test "${enable_pulseaudio_shared+set}" = set; then :
  17277. enableval=$enable_pulseaudio_shared;
  17278. else
  17279. enable_pulseaudio_shared=yes
  17280. fi
  17281. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17282. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  17283. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  17284. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  17285. if test x$have_loadso != xyes && \
  17286. test x$enable_pulseaudio_shared = xyes; then
  17287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  17288. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  17289. fi
  17290. if test x$have_loadso = xyes && \
  17291. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  17292. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  17293. cat >>confdefs.h <<_ACEOF
  17294. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  17295. _ACEOF
  17296. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  17297. case "$host" in
  17298. # On Solaris, pulseaudio must be linked deferred explicitly
  17299. # to prevent undefined symbol failures.
  17300. *-*-solaris*)
  17301. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  17302. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  17303. esac
  17304. else
  17305. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17306. SUMMARY_audio="${SUMMARY_audio} pulse"
  17307. fi
  17308. have_audio=yes
  17309. fi
  17310. fi
  17311. }
  17312. CheckARTSC()
  17313. {
  17314. # Check whether --enable-arts was given.
  17315. if test "${enable_arts+set}" = set; then :
  17316. enableval=$enable_arts;
  17317. else
  17318. enable_arts=yes
  17319. fi
  17320. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17321. # Extract the first word of "artsc-config", so it can be a program name with args.
  17322. set dummy artsc-config; ac_word=$2
  17323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17324. $as_echo_n "checking for $ac_word... " >&6; }
  17325. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17326. $as_echo_n "(cached) " >&6
  17327. else
  17328. case $ARTSCONFIG in
  17329. [\\/]* | ?:[\\/]*)
  17330. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17331. ;;
  17332. *)
  17333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17334. for as_dir in $PATH
  17335. do
  17336. IFS=$as_save_IFS
  17337. test -z "$as_dir" && as_dir=.
  17338. for ac_exec_ext in '' $ac_executable_extensions; do
  17339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17340. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17342. break 2
  17343. fi
  17344. done
  17345. done
  17346. IFS=$as_save_IFS
  17347. ;;
  17348. esac
  17349. fi
  17350. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17351. if test -n "$ARTSCONFIG"; then
  17352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17353. $as_echo "$ARTSCONFIG" >&6; }
  17354. else
  17355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17356. $as_echo "no" >&6; }
  17357. fi
  17358. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17359. : # arts isn't installed
  17360. else
  17361. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17362. ARTS_LIBS=`$ARTSCONFIG --libs`
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17364. $as_echo_n "checking for aRts development environment... " >&6; }
  17365. audio_arts=no
  17366. save_CFLAGS="$CFLAGS"
  17367. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17369. /* end confdefs.h. */
  17370. #include <artsc.h>
  17371. int
  17372. main ()
  17373. {
  17374. arts_stream_t stream;
  17375. ;
  17376. return 0;
  17377. }
  17378. _ACEOF
  17379. if ac_fn_c_try_compile "$LINENO"; then :
  17380. audio_arts=yes
  17381. fi
  17382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17383. CFLAGS="$save_CFLAGS"
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17385. $as_echo "$audio_arts" >&6; }
  17386. if test x$audio_arts = xyes; then
  17387. # Check whether --enable-arts-shared was given.
  17388. if test "${enable_arts_shared+set}" = set; then :
  17389. enableval=$enable_arts_shared;
  17390. else
  17391. enable_arts_shared=yes
  17392. fi
  17393. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17394. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17395. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17396. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17397. if test x$have_loadso != xyes && \
  17398. test x$enable_arts_shared = xyes; then
  17399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17400. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17401. fi
  17402. if test x$have_loadso = xyes && \
  17403. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17404. echo "-- dynamic libartsc -> $arts_lib"
  17405. cat >>confdefs.h <<_ACEOF
  17406. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17407. _ACEOF
  17408. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17409. else
  17410. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17411. SUMMARY_audio="${SUMMARY_audio} arts"
  17412. fi
  17413. have_audio=yes
  17414. fi
  17415. fi
  17416. fi
  17417. }
  17418. CheckNAS()
  17419. {
  17420. # Check whether --enable-nas was given.
  17421. if test "${enable_nas+set}" = set; then :
  17422. enableval=$enable_nas;
  17423. else
  17424. enable_nas=yes
  17425. fi
  17426. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17427. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17428. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17429. have_nas_hdr=yes
  17430. fi
  17431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17432. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17433. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17434. $as_echo_n "(cached) " >&6
  17435. else
  17436. ac_check_lib_save_LIBS=$LIBS
  17437. LIBS="-laudio $LIBS"
  17438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17439. /* end confdefs.h. */
  17440. /* Override any GCC internal prototype to avoid an error.
  17441. Use char because int might match the return type of a GCC
  17442. builtin and then its argument prototype would still apply. */
  17443. #ifdef __cplusplus
  17444. extern "C"
  17445. #endif
  17446. char AuOpenServer ();
  17447. int
  17448. main ()
  17449. {
  17450. return AuOpenServer ();
  17451. ;
  17452. return 0;
  17453. }
  17454. _ACEOF
  17455. if ac_fn_c_try_link "$LINENO"; then :
  17456. ac_cv_lib_audio_AuOpenServer=yes
  17457. else
  17458. ac_cv_lib_audio_AuOpenServer=no
  17459. fi
  17460. rm -f core conftest.err conftest.$ac_objext \
  17461. conftest$ac_exeext conftest.$ac_ext
  17462. LIBS=$ac_check_lib_save_LIBS
  17463. fi
  17464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17465. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17466. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17467. have_nas_lib=yes
  17468. fi
  17469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17470. $as_echo_n "checking for NAS audio support... " >&6; }
  17471. have_nas=no
  17472. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17473. have_nas=yes
  17474. NAS_LIBS="-laudio"
  17475. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17476. have_nas=yes
  17477. NAS_CFLAGS="-I/usr/X11R6/include/"
  17478. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17479. fi
  17480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17481. $as_echo "$have_nas" >&6; }
  17482. if test x$have_nas = xyes; then
  17483. # Check whether --enable-nas-shared was given.
  17484. if test "${enable_nas_shared+set}" = set; then :
  17485. enableval=$enable_nas_shared;
  17486. else
  17487. enable_nas_shared=yes
  17488. fi
  17489. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17490. if test x$have_loadso != xyes && \
  17491. test x$enable_nas_shared = xyes; then
  17492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17493. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17494. fi
  17495. if test x$have_loadso = xyes && \
  17496. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17497. echo "-- dynamic libaudio -> $nas_lib"
  17498. cat >>confdefs.h <<_ACEOF
  17499. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17500. _ACEOF
  17501. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17502. else
  17503. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17504. SUMMARY_audio="${SUMMARY_audio} nas"
  17505. fi
  17506. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17507. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17508. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17509. have_audio=yes
  17510. fi
  17511. fi
  17512. }
  17513. CheckSNDIO()
  17514. {
  17515. # Check whether --enable-sndio was given.
  17516. if test "${enable_sndio+set}" = set; then :
  17517. enableval=$enable_sndio;
  17518. else
  17519. enable_sndio=yes
  17520. fi
  17521. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17522. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17523. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17524. have_sndio_hdr=yes
  17525. fi
  17526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17527. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17528. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17529. $as_echo_n "(cached) " >&6
  17530. else
  17531. ac_check_lib_save_LIBS=$LIBS
  17532. LIBS="-lsndio $LIBS"
  17533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17534. /* end confdefs.h. */
  17535. /* Override any GCC internal prototype to avoid an error.
  17536. Use char because int might match the return type of a GCC
  17537. builtin and then its argument prototype would still apply. */
  17538. #ifdef __cplusplus
  17539. extern "C"
  17540. #endif
  17541. char sio_open ();
  17542. int
  17543. main ()
  17544. {
  17545. return sio_open ();
  17546. ;
  17547. return 0;
  17548. }
  17549. _ACEOF
  17550. if ac_fn_c_try_link "$LINENO"; then :
  17551. ac_cv_lib_sndio_sio_open=yes
  17552. else
  17553. ac_cv_lib_sndio_sio_open=no
  17554. fi
  17555. rm -f core conftest.err conftest.$ac_objext \
  17556. conftest$ac_exeext conftest.$ac_ext
  17557. LIBS=$ac_check_lib_save_LIBS
  17558. fi
  17559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17560. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17561. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17562. have_sndio_lib=yes
  17563. fi
  17564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17565. $as_echo_n "checking for sndio audio support... " >&6; }
  17566. have_sndio=no
  17567. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17568. have_sndio=yes
  17569. SNDIO_LIBS="-lsndio"
  17570. fi
  17571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17572. $as_echo "$have_sndio" >&6; }
  17573. if test x$have_sndio = xyes; then
  17574. # Check whether --enable-sndio-shared was given.
  17575. if test "${enable_sndio_shared+set}" = set; then :
  17576. enableval=$enable_sndio_shared;
  17577. else
  17578. enable_sndio_shared=yes
  17579. fi
  17580. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17581. if test x$have_loadso != xyes && \
  17582. test x$enable_sndio_shared = xyes; then
  17583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17584. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17585. fi
  17586. if test x$have_loadso = xyes && \
  17587. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17588. echo "-- dynamic libsndio -> $sndio_lib"
  17589. cat >>confdefs.h <<_ACEOF
  17590. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17591. _ACEOF
  17592. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17593. else
  17594. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17595. SUMMARY_audio="${SUMMARY_audio} sndio"
  17596. fi
  17597. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17598. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17599. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17600. have_audio=yes
  17601. fi
  17602. fi
  17603. }
  17604. CheckFusionSound()
  17605. {
  17606. # Check whether --enable-fusionsound was given.
  17607. if test "${enable_fusionsound+set}" = set; then :
  17608. enableval=$enable_fusionsound;
  17609. else
  17610. enable_fusionsound=no
  17611. fi
  17612. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17613. pkg_failed=no
  17614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17615. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17616. if test -n "$FUSIONSOUND_CFLAGS"; then
  17617. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17618. elif test -n "$PKG_CONFIG"; then
  17619. if test -n "$PKG_CONFIG" && \
  17620. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17621. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17622. ac_status=$?
  17623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17624. test $ac_status = 0; }; then
  17625. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17626. test "x$?" != "x0" && pkg_failed=yes
  17627. else
  17628. pkg_failed=yes
  17629. fi
  17630. else
  17631. pkg_failed=untried
  17632. fi
  17633. if test -n "$FUSIONSOUND_LIBS"; then
  17634. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17635. elif test -n "$PKG_CONFIG"; then
  17636. if test -n "$PKG_CONFIG" && \
  17637. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17638. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17639. ac_status=$?
  17640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17641. test $ac_status = 0; }; then
  17642. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17643. test "x$?" != "x0" && pkg_failed=yes
  17644. else
  17645. pkg_failed=yes
  17646. fi
  17647. else
  17648. pkg_failed=untried
  17649. fi
  17650. if test $pkg_failed = yes; then
  17651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17652. $as_echo "no" >&6; }
  17653. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17654. _pkg_short_errors_supported=yes
  17655. else
  17656. _pkg_short_errors_supported=no
  17657. fi
  17658. if test $_pkg_short_errors_supported = yes; then
  17659. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17660. else
  17661. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17662. fi
  17663. # Put the nasty error message in config.log where it belongs
  17664. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17665. fusionsound=no
  17666. elif test $pkg_failed = untried; then
  17667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17668. $as_echo "no" >&6; }
  17669. fusionsound=no
  17670. else
  17671. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17672. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17674. $as_echo "yes" >&6; }
  17675. fusionsound=yes
  17676. fi
  17677. if test x$fusionsound = xyes; then
  17678. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17679. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17680. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17681. # Check whether --enable-fusionsound-shared was given.
  17682. if test "${enable_fusionsound_shared+set}" = set; then :
  17683. enableval=$enable_fusionsound_shared;
  17684. else
  17685. enable_fusionsound_shared=yes
  17686. fi
  17687. fusionsound_shared=no
  17688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17689. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17690. if test x$have_loadso != xyes && \
  17691. test x$enable_fusionsound_shared = xyes; then
  17692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17693. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17694. fi
  17695. if test x$have_loadso = xyes && \
  17696. test x$enable_fusionsound_shared = xyes; then
  17697. cat >>confdefs.h <<_ACEOF
  17698. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17699. _ACEOF
  17700. fusionsound_shared=yes
  17701. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17702. else
  17703. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17704. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17705. fi
  17706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17707. $as_echo "$fusionsound_shared" >&6; }
  17708. have_audio=yes
  17709. fi
  17710. fi
  17711. }
  17712. CheckDiskAudio()
  17713. {
  17714. # Check whether --enable-diskaudio was given.
  17715. if test "${enable_diskaudio+set}" = set; then :
  17716. enableval=$enable_diskaudio;
  17717. else
  17718. enable_diskaudio=yes
  17719. fi
  17720. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17721. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17722. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17723. SUMMARY_audio="${SUMMARY_audio} disk"
  17724. have_audio=yes
  17725. fi
  17726. }
  17727. CheckDummyAudio()
  17728. {
  17729. # Check whether --enable-dummyaudio was given.
  17730. if test "${enable_dummyaudio+set}" = set; then :
  17731. enableval=$enable_dummyaudio;
  17732. else
  17733. enable_dummyaudio=yes
  17734. fi
  17735. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17736. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17737. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17738. SUMMARY_audio="${SUMMARY_audio} dummy"
  17739. have_audio=yes
  17740. fi
  17741. }
  17742. CheckLibSampleRate()
  17743. {
  17744. # Check whether --enable-libsamplerate was given.
  17745. if test "${enable_libsamplerate+set}" = set; then :
  17746. enableval=$enable_libsamplerate;
  17747. else
  17748. enable_libsamplerate=yes
  17749. fi
  17750. if test x$enable_libsamplerate = xyes; then
  17751. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17752. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17753. have_samplerate_h_hdr=yes
  17754. else
  17755. have_samplerate_h_hdr=no
  17756. fi
  17757. if test x$have_samplerate_h_hdr = xyes; then
  17758. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17759. # Check whether --enable-libsamplerate-shared was given.
  17760. if test "${enable_libsamplerate_shared+set}" = set; then :
  17761. enableval=$enable_libsamplerate_shared;
  17762. else
  17763. enable_libsamplerate_shared=yes
  17764. fi
  17765. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17766. if test x$have_loadso != xyes && \
  17767. test x$enable_libsamplerate_shared = xyes; then
  17768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17769. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17770. fi
  17771. if test x$have_loadso = xyes && \
  17772. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17773. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17774. cat >>confdefs.h <<_ACEOF
  17775. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17776. _ACEOF
  17777. else
  17778. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17779. fi
  17780. fi
  17781. fi
  17782. }
  17783. CheckARM()
  17784. {
  17785. # Check whether --enable-arm-simd was given.
  17786. if test "${enable_arm_simd+set}" = set; then :
  17787. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17788. else
  17789. enable_arm_simd=no
  17790. fi
  17791. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17792. save_CFLAGS="$CFLAGS"
  17793. have_arm_simd=no
  17794. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17796. $as_echo_n "checking for ARM SIMD... " >&6; }
  17797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17798. /* end confdefs.h. */
  17799. .text
  17800. .arch armv6
  17801. .object_arch armv4
  17802. .arm
  17803. .altmacro
  17804. #ifndef __ARM_EABI__
  17805. #error EABI is required (to be sure that calling conventions are compatible)
  17806. #endif
  17807. pld [r0]
  17808. uqadd8 r0, r0, r0
  17809. _ACEOF
  17810. if ac_fn_c_try_compile "$LINENO"; then :
  17811. have_arm_simd=yes
  17812. fi
  17813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17815. $as_echo "$have_arm_simd" >&6; }
  17816. CFLAGS="$save_CFLAGS"
  17817. if test x$have_arm_simd = xyes; then
  17818. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17819. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17820. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17821. fi
  17822. fi
  17823. }
  17824. CheckNEON()
  17825. {
  17826. # Check whether --enable-arm-neon was given.
  17827. if test "${enable_arm_neon+set}" = set; then :
  17828. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17829. else
  17830. enable_arm_neon=no
  17831. fi
  17832. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17833. save_CFLAGS="$CFLAGS"
  17834. have_arm_neon=no
  17835. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17837. $as_echo_n "checking for ARM NEON... " >&6; }
  17838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17839. /* end confdefs.h. */
  17840. .text
  17841. .fpu neon
  17842. .arch armv7a
  17843. .object_arch armv4
  17844. .eabi_attribute 10, 0
  17845. .arm
  17846. .altmacro
  17847. #ifndef __ARM_EABI__
  17848. #error EABI is required (to be sure that calling conventions are compatible)
  17849. #endif
  17850. pld [r0]
  17851. vmovn.u16 d0, q0
  17852. _ACEOF
  17853. if ac_fn_c_try_compile "$LINENO"; then :
  17854. have_arm_neon=yes
  17855. fi
  17856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17858. $as_echo "$have_arm_neon" >&6; }
  17859. CFLAGS="$save_CFLAGS"
  17860. if test x$have_arm_neon = xyes; then
  17861. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17862. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17863. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17864. fi
  17865. fi
  17866. }
  17867. CheckObjectiveCARC()
  17868. {
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  17870. $as_echo_n "checking for clang -fobjc-arc option... " >&6; }
  17871. have_clang_objc_arc=no
  17872. save_CFLAGS="$CFLAGS"
  17873. CFLAGS="$save_CFLAGS -fobjc-arc"
  17874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17875. /* end confdefs.h. */
  17876. int x = 0;
  17877. int
  17878. main ()
  17879. {
  17880. ;
  17881. return 0;
  17882. }
  17883. _ACEOF
  17884. if ac_fn_c_try_compile "$LINENO"; then :
  17885. have_clang_objc_arc=yes
  17886. fi
  17887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  17889. $as_echo "$have_clang_objc_arc" >&6; }
  17890. CFLAGS="$save_CFLAGS"
  17891. if test x$have_clang_objc_arc = xyes; then
  17892. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  17893. fi
  17894. }
  17895. CheckVisibilityHidden()
  17896. {
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17898. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17899. have_gcc_fvisibility=no
  17900. visibility_CFLAGS="-fvisibility=hidden"
  17901. save_CFLAGS="$CFLAGS"
  17902. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17904. /* end confdefs.h. */
  17905. #if !defined(__GNUC__) || __GNUC__ < 4
  17906. #error SDL only uses visibility attributes in GCC 4 or newer
  17907. #endif
  17908. int
  17909. main ()
  17910. {
  17911. ;
  17912. return 0;
  17913. }
  17914. _ACEOF
  17915. if ac_fn_c_try_compile "$LINENO"; then :
  17916. have_gcc_fvisibility=yes
  17917. fi
  17918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17920. $as_echo "$have_gcc_fvisibility" >&6; }
  17921. CFLAGS="$save_CFLAGS"
  17922. if test x$have_gcc_fvisibility = xyes; then
  17923. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17924. fi
  17925. }
  17926. CheckNoStrictAliasing()
  17927. {
  17928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17929. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17930. have_gcc_no_strict_aliasing=no
  17931. save_CFLAGS="$CFLAGS"
  17932. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17934. /* end confdefs.h. */
  17935. int x = 0;
  17936. int
  17937. main ()
  17938. {
  17939. ;
  17940. return 0;
  17941. }
  17942. _ACEOF
  17943. if ac_fn_c_try_compile "$LINENO"; then :
  17944. have_gcc_no_strict_aliasing=yes
  17945. fi
  17946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17948. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17949. CFLAGS="$save_CFLAGS"
  17950. if test x$have_gcc_no_strict_aliasing = xyes; then
  17951. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17952. fi
  17953. }
  17954. CheckStackBoundary()
  17955. {
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17957. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17958. have_gcc_preferred_stack_boundary=no
  17959. save_CFLAGS="$CFLAGS"
  17960. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17962. /* end confdefs.h. */
  17963. int x = 0;
  17964. int
  17965. main ()
  17966. {
  17967. ;
  17968. return 0;
  17969. }
  17970. _ACEOF
  17971. if ac_fn_c_try_compile "$LINENO"; then :
  17972. have_gcc_preferred_stack_boundary=yes
  17973. fi
  17974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17976. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17977. CFLAGS="$save_CFLAGS"
  17978. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17979. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17980. fi
  17981. }
  17982. CheckDeclarationAfterStatement()
  17983. {
  17984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17985. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17986. have_gcc_declaration_after_statement=no
  17987. save_CFLAGS="$CFLAGS"
  17988. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17990. /* end confdefs.h. */
  17991. int x = 0;
  17992. int
  17993. main ()
  17994. {
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. if ac_fn_c_try_compile "$LINENO"; then :
  18000. have_gcc_declaration_after_statement=yes
  18001. fi
  18002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  18004. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  18005. CFLAGS="$save_CFLAGS"
  18006. if test x$have_gcc_declaration_after_statement = xyes; then
  18007. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  18008. fi
  18009. }
  18010. CheckWarnAll()
  18011. {
  18012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  18013. $as_echo_n "checking for GCC -Wall option... " >&6; }
  18014. have_gcc_Wall=no
  18015. save_CFLAGS="$CFLAGS"
  18016. CFLAGS="$save_CFLAGS -Wall"
  18017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18018. /* end confdefs.h. */
  18019. int x = 0;
  18020. int
  18021. main ()
  18022. {
  18023. ;
  18024. return 0;
  18025. }
  18026. _ACEOF
  18027. if ac_fn_c_try_compile "$LINENO"; then :
  18028. have_gcc_Wall=yes
  18029. fi
  18030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  18032. $as_echo "$have_gcc_Wall" >&6; }
  18033. CFLAGS="$save_CFLAGS"
  18034. if test x$have_gcc_Wall = xyes; then
  18035. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  18036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  18037. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  18038. need_gcc_Wno_multichar=no
  18039. case "$host" in
  18040. *-*-haiku*)
  18041. need_gcc_Wno_multichar=yes
  18042. ;;
  18043. esac
  18044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  18045. $as_echo "$need_gcc_Wno_multichar" >&6; }
  18046. if test x$need_gcc_Wno_multichar = xyes; then
  18047. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  18048. fi
  18049. fi
  18050. }
  18051. CheckWayland()
  18052. {
  18053. # Check whether --enable-video-wayland was given.
  18054. if test "${enable_video_wayland+set}" = set; then :
  18055. enableval=$enable_video_wayland;
  18056. else
  18057. enable_video_wayland=yes
  18058. fi
  18059. # Check whether --enable-video-wayland-qt-touch was given.
  18060. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  18061. enableval=$enable_video_wayland_qt_touch;
  18062. else
  18063. enable_video_wayland_qt_touch=yes
  18064. fi
  18065. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  18066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  18067. $as_echo_n "checking for Wayland support... " >&6; }
  18068. video_wayland=no
  18069. if test x$video_opengl_egl = xyes && \
  18070. test x$video_opengles_v2 = xyes; then
  18071. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  18072. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  18073. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  18074. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  18075. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  18076. WAYLAND_SCANNER_CODE_MODE=private-code
  18077. else
  18078. WAYLAND_SCANNER_CODE_MODE=code
  18079. fi
  18080. video_wayland=yes
  18081. fi
  18082. fi
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  18084. $as_echo "$video_wayland" >&6; }
  18085. if test x$video_wayland = xyes; then
  18086. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  18087. if test x$enable_video_wayland_qt_touch = xyes; then
  18088. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  18089. fi
  18090. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  18091. SOURCES="$SOURCES $WAYLAND_SOURCES"
  18092. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  18093. # Check whether --enable-wayland-shared was given.
  18094. if test "${enable_wayland_shared+set}" = set; then :
  18095. enableval=$enable_wayland_shared;
  18096. else
  18097. enable_wayland_shared=maybe
  18098. fi
  18099. case "$host" in
  18100. *)
  18101. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18102. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18103. if test x$wayland_egl_lib = x; then
  18104. # This works in Ubuntu 13.10, maybe others
  18105. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18106. fi
  18107. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18108. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18109. ;;
  18110. esac
  18111. if test x$enable_wayland_shared = xmaybe; then
  18112. enable_wayland_shared=yes
  18113. fi
  18114. if test x$have_loadso != xyes && \
  18115. test x$enable_wayland_shared = xyes; then
  18116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  18117. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  18118. enable_wayland_shared=no
  18119. fi
  18120. if test x$have_loadso = xyes && \
  18121. test x$enable_wayland_shared = xyes && \
  18122. test x$wayland_client_lib != x && \
  18123. test x$wayland_egl_lib != x && \
  18124. test x$wayland_cursor_lib != x && \
  18125. test x$xkbcommon_lib != x; then
  18126. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  18127. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  18128. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  18129. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  18130. cat >>confdefs.h <<_ACEOF
  18131. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  18132. _ACEOF
  18133. cat >>confdefs.h <<_ACEOF
  18134. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  18135. _ACEOF
  18136. cat >>confdefs.h <<_ACEOF
  18137. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  18138. _ACEOF
  18139. cat >>confdefs.h <<_ACEOF
  18140. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  18141. _ACEOF
  18142. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  18143. else
  18144. enable_wayland_shared=no
  18145. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  18146. SUMMARY_video="${SUMMARY_video} wayland"
  18147. fi
  18148. have_video=yes
  18149. # Check whether --enable-libdecor was given.
  18150. if test "${enable_libdecor+set}" = set; then :
  18151. enableval=$enable_libdecor;
  18152. else
  18153. enable_libdecor=yes
  18154. fi
  18155. if test x$enable_libdecor = xyes; then
  18156. pkg_failed=no
  18157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  18158. $as_echo_n "checking for libdecor-0... " >&6; }
  18159. if test -n "$DECOR_CFLAGS"; then
  18160. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  18161. elif test -n "$PKG_CONFIG"; then
  18162. if test -n "$PKG_CONFIG" && \
  18163. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  18164. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  18165. ac_status=$?
  18166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18167. test $ac_status = 0; }; then
  18168. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  18169. test "x$?" != "x0" && pkg_failed=yes
  18170. else
  18171. pkg_failed=yes
  18172. fi
  18173. else
  18174. pkg_failed=untried
  18175. fi
  18176. if test -n "$DECOR_LIBS"; then
  18177. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  18178. elif test -n "$PKG_CONFIG"; then
  18179. if test -n "$PKG_CONFIG" && \
  18180. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  18181. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  18182. ac_status=$?
  18183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18184. test $ac_status = 0; }; then
  18185. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  18186. test "x$?" != "x0" && pkg_failed=yes
  18187. else
  18188. pkg_failed=yes
  18189. fi
  18190. else
  18191. pkg_failed=untried
  18192. fi
  18193. if test $pkg_failed = yes; then
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18195. $as_echo "no" >&6; }
  18196. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18197. _pkg_short_errors_supported=yes
  18198. else
  18199. _pkg_short_errors_supported=no
  18200. fi
  18201. if test $_pkg_short_errors_supported = yes; then
  18202. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  18203. else
  18204. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  18205. fi
  18206. # Put the nasty error message in config.log where it belongs
  18207. echo "$DECOR_PKG_ERRORS" >&5
  18208. video_libdecor=no
  18209. elif test $pkg_failed = untried; then
  18210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18211. $as_echo "no" >&6; }
  18212. video_libdecor=no
  18213. else
  18214. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  18215. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  18216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18217. $as_echo "yes" >&6; }
  18218. video_libdecor=yes
  18219. fi
  18220. if test x$video_libdecor = xyes; then
  18221. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  18222. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  18223. # Check whether --enable-libdecor-shared was given.
  18224. if test "${enable_libdecor_shared+set}" = set; then :
  18225. enableval=$enable_libdecor_shared;
  18226. else
  18227. enable_libdecor_shared=yes
  18228. fi
  18229. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18230. if test x$enable_wayland_shared != xyes; then
  18231. enable_libdecor_shared=no
  18232. fi
  18233. if test x$have_loadso != xyes && \
  18234. test x$enable_libdecor_shared = xyes; then
  18235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  18236. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  18237. fi
  18238. if test x$have_loadso = xyes && \
  18239. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  18240. echo "-- dynamic libdecor -> $decor_lib"
  18241. cat >>confdefs.h <<_ACEOF
  18242. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  18243. _ACEOF
  18244. else
  18245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  18246. fi
  18247. fi
  18248. fi
  18249. fi
  18250. fi
  18251. }
  18252. CheckNativeClient()
  18253. {
  18254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18255. /* end confdefs.h. */
  18256. #if !defined(__native_client__)
  18257. #error "NO NACL"
  18258. #endif
  18259. int
  18260. main ()
  18261. {
  18262. ;
  18263. return 0;
  18264. }
  18265. _ACEOF
  18266. if ac_fn_c_try_compile "$LINENO"; then :
  18267. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  18268. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  18269. $as_echo "#define HAVE_POW 1" >>confdefs.h
  18270. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  18271. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18272. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18273. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  18274. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  18275. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  18276. SUMMARY_audio="${SUMMARY_audio} nacl"
  18277. have_audio=yes
  18278. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  18279. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  18280. have_video=yes
  18281. fi
  18282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18283. }
  18284. CheckRPI()
  18285. {
  18286. # Check whether --enable-video-rpi was given.
  18287. if test "${enable_video_rpi+set}" = set; then :
  18288. enableval=$enable_video_rpi;
  18289. else
  18290. enable_video_rpi=yes
  18291. fi
  18292. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  18293. pkg_failed=no
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  18295. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  18296. if test -n "$RPI_CFLAGS"; then
  18297. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  18298. elif test -n "$PKG_CONFIG"; then
  18299. if test -n "$PKG_CONFIG" && \
  18300. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18301. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18302. ac_status=$?
  18303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18304. test $ac_status = 0; }; then
  18305. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  18306. test "x$?" != "x0" && pkg_failed=yes
  18307. else
  18308. pkg_failed=yes
  18309. fi
  18310. else
  18311. pkg_failed=untried
  18312. fi
  18313. if test -n "$RPI_LIBS"; then
  18314. pkg_cv_RPI_LIBS="$RPI_LIBS"
  18315. elif test -n "$PKG_CONFIG"; then
  18316. if test -n "$PKG_CONFIG" && \
  18317. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18318. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18319. ac_status=$?
  18320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18321. test $ac_status = 0; }; then
  18322. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  18323. test "x$?" != "x0" && pkg_failed=yes
  18324. else
  18325. pkg_failed=yes
  18326. fi
  18327. else
  18328. pkg_failed=untried
  18329. fi
  18330. if test $pkg_failed = yes; then
  18331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18332. $as_echo "no" >&6; }
  18333. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18334. _pkg_short_errors_supported=yes
  18335. else
  18336. _pkg_short_errors_supported=no
  18337. fi
  18338. if test $_pkg_short_errors_supported = yes; then
  18339. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18340. else
  18341. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18342. fi
  18343. # Put the nasty error message in config.log where it belongs
  18344. echo "$RPI_PKG_ERRORS" >&5
  18345. video_rpi=no
  18346. elif test $pkg_failed = untried; then
  18347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18348. $as_echo "no" >&6; }
  18349. video_rpi=no
  18350. else
  18351. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18352. RPI_LIBS=$pkg_cv_RPI_LIBS
  18353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18354. $as_echo "yes" >&6; }
  18355. video_rpi=yes
  18356. fi
  18357. if test x$video_rpi = xno; then
  18358. if test x$ARCH = xnetbsd; then
  18359. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18360. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18361. else
  18362. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18363. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18364. fi
  18365. fi
  18366. # Save the original compiler flags and libraries
  18367. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18368. # Add the Raspberry Pi compiler flags and libraries
  18369. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18371. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18372. have_video_rpi=no
  18373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18374. /* end confdefs.h. */
  18375. #include <bcm_host.h>
  18376. #include <EGL/eglplatform.h>
  18377. int
  18378. main ()
  18379. {
  18380. EGL_DISPMANX_WINDOW_T window;
  18381. bcm_host_init();
  18382. ;
  18383. return 0;
  18384. }
  18385. _ACEOF
  18386. if ac_fn_c_try_link "$LINENO"; then :
  18387. have_video_rpi=yes
  18388. fi
  18389. rm -f core conftest.err conftest.$ac_objext \
  18390. conftest$ac_exeext conftest.$ac_ext
  18391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18392. $as_echo "$have_video_rpi" >&6; }
  18393. # Restore the compiler flags and libraries
  18394. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18395. if test x$have_video_rpi = xyes; then
  18396. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18397. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18398. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18399. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18400. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18401. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18402. SUMMARY_video="${SUMMARY_video} rpi"
  18403. have_video=yes
  18404. fi
  18405. fi
  18406. }
  18407. CheckX11()
  18408. {
  18409. # Check whether --enable-video-x11 was given.
  18410. if test "${enable_video_x11+set}" = set; then :
  18411. enableval=$enable_video_x11;
  18412. else
  18413. enable_video_x11=yes
  18414. fi
  18415. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18416. case "$host" in
  18417. *-*-darwin*)
  18418. # This isn't necessary for X11, but fixes GLX detection
  18419. if test "x$x_includes" = xNONE && \
  18420. test "x$x_libraries" = xNONE && \
  18421. test -d /opt/X11/include && \
  18422. test -d /opt/X11/lib; then
  18423. x_includes="/opt/X11/include"
  18424. x_libraries="/opt/X11/lib"
  18425. fi
  18426. ;;
  18427. esac
  18428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18429. $as_echo_n "checking for X... " >&6; }
  18430. # Check whether --with-x was given.
  18431. if test "${with_x+set}" = set; then :
  18432. withval=$with_x;
  18433. fi
  18434. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18435. if test "x$with_x" = xno; then
  18436. # The user explicitly disabled X.
  18437. have_x=disabled
  18438. else
  18439. case $x_includes,$x_libraries in #(
  18440. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18441. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18442. $as_echo_n "(cached) " >&6
  18443. else
  18444. # One or both of the vars are not set, and there is no cached value.
  18445. ac_x_includes=no
  18446. ac_x_libraries=no
  18447. # Do we need to do anything special at all?
  18448. ac_save_LIBS=$LIBS
  18449. LIBS="-lX11 $LIBS"
  18450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18451. /* end confdefs.h. */
  18452. #include <X11/Xlib.h>
  18453. int
  18454. main ()
  18455. {
  18456. XrmInitialize ()
  18457. ;
  18458. return 0;
  18459. }
  18460. _ACEOF
  18461. if ac_fn_c_try_link "$LINENO"; then :
  18462. # We can compile and link X programs with no special options.
  18463. ac_x_includes=
  18464. ac_x_libraries=
  18465. fi
  18466. rm -f core conftest.err conftest.$ac_objext \
  18467. conftest$ac_exeext conftest.$ac_ext
  18468. LIBS="$ac_save_LIBS"
  18469. # If that didn't work, only try xmkmf and filesystem searches
  18470. # for native compilation.
  18471. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18472. rm -f -r conftest.dir
  18473. if mkdir conftest.dir; then
  18474. cd conftest.dir
  18475. cat >Imakefile <<'_ACEOF'
  18476. incroot:
  18477. @echo incroot='${INCROOT}'
  18478. usrlibdir:
  18479. @echo usrlibdir='${USRLIBDIR}'
  18480. libdir:
  18481. @echo libdir='${LIBDIR}'
  18482. _ACEOF
  18483. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18484. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18485. for ac_var in incroot usrlibdir libdir; do
  18486. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18487. done
  18488. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18489. for ac_extension in a so sl dylib la dll; do
  18490. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18491. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18492. ac_im_usrlibdir=$ac_im_libdir; break
  18493. fi
  18494. done
  18495. # Screen out bogus values from the imake configuration. They are
  18496. # bogus both because they are the default anyway, and because
  18497. # using them would break gcc on systems where it needs fixed includes.
  18498. case $ac_im_incroot in
  18499. /usr/include) ac_x_includes= ;;
  18500. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18501. esac
  18502. case $ac_im_usrlibdir in
  18503. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18504. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18505. esac
  18506. fi
  18507. cd ..
  18508. rm -f -r conftest.dir
  18509. fi
  18510. # Standard set of common directories for X headers.
  18511. # Check X11 before X11Rn because it is often a symlink to the current release.
  18512. ac_x_header_dirs='
  18513. /usr/X11/include
  18514. /usr/X11R7/include
  18515. /usr/X11R6/include
  18516. /usr/X11R5/include
  18517. /usr/X11R4/include
  18518. /usr/include/X11
  18519. /usr/include/X11R7
  18520. /usr/include/X11R6
  18521. /usr/include/X11R5
  18522. /usr/include/X11R4
  18523. /usr/local/X11/include
  18524. /usr/local/X11R7/include
  18525. /usr/local/X11R6/include
  18526. /usr/local/X11R5/include
  18527. /usr/local/X11R4/include
  18528. /usr/local/include/X11
  18529. /usr/local/include/X11R7
  18530. /usr/local/include/X11R6
  18531. /usr/local/include/X11R5
  18532. /usr/local/include/X11R4
  18533. /opt/X11/include
  18534. /usr/X386/include
  18535. /usr/x386/include
  18536. /usr/XFree86/include/X11
  18537. /usr/include
  18538. /usr/local/include
  18539. /usr/unsupported/include
  18540. /usr/athena/include
  18541. /usr/local/x11r5/include
  18542. /usr/lpp/Xamples/include
  18543. /usr/openwin/include
  18544. /usr/openwin/share/include'
  18545. if test "$ac_x_includes" = no; then
  18546. # Guess where to find include files, by looking for Xlib.h.
  18547. # First, try using that file with no special directory specified.
  18548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18549. /* end confdefs.h. */
  18550. #include <X11/Xlib.h>
  18551. _ACEOF
  18552. if ac_fn_c_try_cpp "$LINENO"; then :
  18553. # We can compile using X headers with no special include directory.
  18554. ac_x_includes=
  18555. else
  18556. for ac_dir in $ac_x_header_dirs; do
  18557. if test -r "$ac_dir/X11/Xlib.h"; then
  18558. ac_x_includes=$ac_dir
  18559. break
  18560. fi
  18561. done
  18562. fi
  18563. rm -f conftest.err conftest.i conftest.$ac_ext
  18564. fi # $ac_x_includes = no
  18565. if test "$ac_x_libraries" = no; then
  18566. # Check for the libraries.
  18567. # See if we find them without any special options.
  18568. # Don't add to $LIBS permanently.
  18569. ac_save_LIBS=$LIBS
  18570. LIBS="-lX11 $LIBS"
  18571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18572. /* end confdefs.h. */
  18573. #include <X11/Xlib.h>
  18574. int
  18575. main ()
  18576. {
  18577. XrmInitialize ()
  18578. ;
  18579. return 0;
  18580. }
  18581. _ACEOF
  18582. if ac_fn_c_try_link "$LINENO"; then :
  18583. LIBS=$ac_save_LIBS
  18584. # We can link X programs with no special library path.
  18585. ac_x_libraries=
  18586. else
  18587. LIBS=$ac_save_LIBS
  18588. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18589. do
  18590. # Don't even attempt the hair of trying to link an X program!
  18591. for ac_extension in a so sl dylib la dll; do
  18592. if test -r "$ac_dir/libX11.$ac_extension"; then
  18593. ac_x_libraries=$ac_dir
  18594. break 2
  18595. fi
  18596. done
  18597. done
  18598. fi
  18599. rm -f core conftest.err conftest.$ac_objext \
  18600. conftest$ac_exeext conftest.$ac_ext
  18601. fi # $ac_x_libraries = no
  18602. fi
  18603. # Record the results.
  18604. case $ac_x_includes,$ac_x_libraries in #(
  18605. no,* | *,no | *\'*) :
  18606. # Didn't find X, or a directory has "'" in its name.
  18607. ac_cv_have_x="have_x=no" ;; #(
  18608. *) :
  18609. # Record where we found X for the cache.
  18610. ac_cv_have_x="have_x=yes\
  18611. ac_x_includes='$ac_x_includes'\
  18612. ac_x_libraries='$ac_x_libraries'" ;;
  18613. esac
  18614. fi
  18615. ;; #(
  18616. *) have_x=yes;;
  18617. esac
  18618. eval "$ac_cv_have_x"
  18619. fi # $with_x != no
  18620. if test "$have_x" != yes; then
  18621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18622. $as_echo "$have_x" >&6; }
  18623. no_x=yes
  18624. else
  18625. # If each of the values was on the command line, it overrides each guess.
  18626. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18627. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18628. # Update the cache value to reflect the command line values.
  18629. ac_cv_have_x="have_x=yes\
  18630. ac_x_includes='$x_includes'\
  18631. ac_x_libraries='$x_libraries'"
  18632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18633. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18634. fi
  18635. if test "$no_x" = yes; then
  18636. # Not all programs may use this symbol, but it does not hurt to define it.
  18637. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18638. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18639. else
  18640. if test -n "$x_includes"; then
  18641. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18642. fi
  18643. # It would also be nice to do this for all -L options, not just this one.
  18644. if test -n "$x_libraries"; then
  18645. X_LIBS="$X_LIBS -L$x_libraries"
  18646. # For Solaris; some versions of Sun CC require a space after -R and
  18647. # others require no space. Words are not sufficient . . . .
  18648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18649. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18650. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18651. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18652. ac_c_werror_flag=yes
  18653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18654. /* end confdefs.h. */
  18655. int
  18656. main ()
  18657. {
  18658. ;
  18659. return 0;
  18660. }
  18661. _ACEOF
  18662. if ac_fn_c_try_link "$LINENO"; then :
  18663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18664. $as_echo "no" >&6; }
  18665. X_LIBS="$X_LIBS -R$x_libraries"
  18666. else
  18667. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18669. /* end confdefs.h. */
  18670. int
  18671. main ()
  18672. {
  18673. ;
  18674. return 0;
  18675. }
  18676. _ACEOF
  18677. if ac_fn_c_try_link "$LINENO"; then :
  18678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18679. $as_echo "yes" >&6; }
  18680. X_LIBS="$X_LIBS -R $x_libraries"
  18681. else
  18682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18683. $as_echo "neither works" >&6; }
  18684. fi
  18685. rm -f core conftest.err conftest.$ac_objext \
  18686. conftest$ac_exeext conftest.$ac_ext
  18687. fi
  18688. rm -f core conftest.err conftest.$ac_objext \
  18689. conftest$ac_exeext conftest.$ac_ext
  18690. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18691. LIBS=$ac_xsave_LIBS
  18692. fi
  18693. # Check for system-dependent libraries X programs must link with.
  18694. # Do this before checking for the system-independent R6 libraries
  18695. # (-lICE), since we may need -lsocket or whatever for X linking.
  18696. if test "$ISC" = yes; then
  18697. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18698. else
  18699. # Martyn Johnson says this is needed for Ultrix, if the X
  18700. # libraries were built with DECnet support. And Karl Berry says
  18701. # the Alpha needs dnet_stub (dnet does not exist).
  18702. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18704. /* end confdefs.h. */
  18705. /* Override any GCC internal prototype to avoid an error.
  18706. Use char because int might match the return type of a GCC
  18707. builtin and then its argument prototype would still apply. */
  18708. #ifdef __cplusplus
  18709. extern "C"
  18710. #endif
  18711. char XOpenDisplay ();
  18712. int
  18713. main ()
  18714. {
  18715. return XOpenDisplay ();
  18716. ;
  18717. return 0;
  18718. }
  18719. _ACEOF
  18720. if ac_fn_c_try_link "$LINENO"; then :
  18721. else
  18722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18723. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18724. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18725. $as_echo_n "(cached) " >&6
  18726. else
  18727. ac_check_lib_save_LIBS=$LIBS
  18728. LIBS="-ldnet $LIBS"
  18729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18730. /* end confdefs.h. */
  18731. /* Override any GCC internal prototype to avoid an error.
  18732. Use char because int might match the return type of a GCC
  18733. builtin and then its argument prototype would still apply. */
  18734. #ifdef __cplusplus
  18735. extern "C"
  18736. #endif
  18737. char dnet_ntoa ();
  18738. int
  18739. main ()
  18740. {
  18741. return dnet_ntoa ();
  18742. ;
  18743. return 0;
  18744. }
  18745. _ACEOF
  18746. if ac_fn_c_try_link "$LINENO"; then :
  18747. ac_cv_lib_dnet_dnet_ntoa=yes
  18748. else
  18749. ac_cv_lib_dnet_dnet_ntoa=no
  18750. fi
  18751. rm -f core conftest.err conftest.$ac_objext \
  18752. conftest$ac_exeext conftest.$ac_ext
  18753. LIBS=$ac_check_lib_save_LIBS
  18754. fi
  18755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18756. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18757. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18758. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18759. fi
  18760. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18762. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18763. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18764. $as_echo_n "(cached) " >&6
  18765. else
  18766. ac_check_lib_save_LIBS=$LIBS
  18767. LIBS="-ldnet_stub $LIBS"
  18768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18769. /* end confdefs.h. */
  18770. /* Override any GCC internal prototype to avoid an error.
  18771. Use char because int might match the return type of a GCC
  18772. builtin and then its argument prototype would still apply. */
  18773. #ifdef __cplusplus
  18774. extern "C"
  18775. #endif
  18776. char dnet_ntoa ();
  18777. int
  18778. main ()
  18779. {
  18780. return dnet_ntoa ();
  18781. ;
  18782. return 0;
  18783. }
  18784. _ACEOF
  18785. if ac_fn_c_try_link "$LINENO"; then :
  18786. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18787. else
  18788. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18789. fi
  18790. rm -f core conftest.err conftest.$ac_objext \
  18791. conftest$ac_exeext conftest.$ac_ext
  18792. LIBS=$ac_check_lib_save_LIBS
  18793. fi
  18794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18795. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18796. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18797. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18798. fi
  18799. fi
  18800. fi
  18801. rm -f core conftest.err conftest.$ac_objext \
  18802. conftest$ac_exeext conftest.$ac_ext
  18803. LIBS="$ac_xsave_LIBS"
  18804. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18805. # to get the SysV transport functions.
  18806. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18807. # needs -lnsl.
  18808. # The nsl library prevents programs from opening the X display
  18809. # on Irix 5.2, according to T.E. Dickey.
  18810. # The functions gethostbyname, getservbyname, and inet_addr are
  18811. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18812. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18813. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18814. fi
  18815. if test $ac_cv_func_gethostbyname = no; then
  18816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18817. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18818. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18819. $as_echo_n "(cached) " >&6
  18820. else
  18821. ac_check_lib_save_LIBS=$LIBS
  18822. LIBS="-lnsl $LIBS"
  18823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18824. /* end confdefs.h. */
  18825. /* Override any GCC internal prototype to avoid an error.
  18826. Use char because int might match the return type of a GCC
  18827. builtin and then its argument prototype would still apply. */
  18828. #ifdef __cplusplus
  18829. extern "C"
  18830. #endif
  18831. char gethostbyname ();
  18832. int
  18833. main ()
  18834. {
  18835. return gethostbyname ();
  18836. ;
  18837. return 0;
  18838. }
  18839. _ACEOF
  18840. if ac_fn_c_try_link "$LINENO"; then :
  18841. ac_cv_lib_nsl_gethostbyname=yes
  18842. else
  18843. ac_cv_lib_nsl_gethostbyname=no
  18844. fi
  18845. rm -f core conftest.err conftest.$ac_objext \
  18846. conftest$ac_exeext conftest.$ac_ext
  18847. LIBS=$ac_check_lib_save_LIBS
  18848. fi
  18849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18850. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18851. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18852. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18853. fi
  18854. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18856. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18857. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18858. $as_echo_n "(cached) " >&6
  18859. else
  18860. ac_check_lib_save_LIBS=$LIBS
  18861. LIBS="-lbsd $LIBS"
  18862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18863. /* end confdefs.h. */
  18864. /* Override any GCC internal prototype to avoid an error.
  18865. Use char because int might match the return type of a GCC
  18866. builtin and then its argument prototype would still apply. */
  18867. #ifdef __cplusplus
  18868. extern "C"
  18869. #endif
  18870. char gethostbyname ();
  18871. int
  18872. main ()
  18873. {
  18874. return gethostbyname ();
  18875. ;
  18876. return 0;
  18877. }
  18878. _ACEOF
  18879. if ac_fn_c_try_link "$LINENO"; then :
  18880. ac_cv_lib_bsd_gethostbyname=yes
  18881. else
  18882. ac_cv_lib_bsd_gethostbyname=no
  18883. fi
  18884. rm -f core conftest.err conftest.$ac_objext \
  18885. conftest$ac_exeext conftest.$ac_ext
  18886. LIBS=$ac_check_lib_save_LIBS
  18887. fi
  18888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18889. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18890. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18891. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18892. fi
  18893. fi
  18894. fi
  18895. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18896. # socket/setsockopt and other routines are undefined under SCO ODT
  18897. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18898. # on later versions), says Simon Leinen: it contains gethostby*
  18899. # variants that don't use the name server (or something). -lsocket
  18900. # must be given before -lnsl if both are needed. We assume that
  18901. # if connect needs -lnsl, so does gethostbyname.
  18902. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18903. if test "x$ac_cv_func_connect" = xyes; then :
  18904. fi
  18905. if test $ac_cv_func_connect = no; then
  18906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18907. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18908. if ${ac_cv_lib_socket_connect+:} false; then :
  18909. $as_echo_n "(cached) " >&6
  18910. else
  18911. ac_check_lib_save_LIBS=$LIBS
  18912. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18914. /* end confdefs.h. */
  18915. /* Override any GCC internal prototype to avoid an error.
  18916. Use char because int might match the return type of a GCC
  18917. builtin and then its argument prototype would still apply. */
  18918. #ifdef __cplusplus
  18919. extern "C"
  18920. #endif
  18921. char connect ();
  18922. int
  18923. main ()
  18924. {
  18925. return connect ();
  18926. ;
  18927. return 0;
  18928. }
  18929. _ACEOF
  18930. if ac_fn_c_try_link "$LINENO"; then :
  18931. ac_cv_lib_socket_connect=yes
  18932. else
  18933. ac_cv_lib_socket_connect=no
  18934. fi
  18935. rm -f core conftest.err conftest.$ac_objext \
  18936. conftest$ac_exeext conftest.$ac_ext
  18937. LIBS=$ac_check_lib_save_LIBS
  18938. fi
  18939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18940. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18941. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18942. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18943. fi
  18944. fi
  18945. # Guillermo Gomez says -lposix is necessary on A/UX.
  18946. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18947. if test "x$ac_cv_func_remove" = xyes; then :
  18948. fi
  18949. if test $ac_cv_func_remove = no; then
  18950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18951. $as_echo_n "checking for remove in -lposix... " >&6; }
  18952. if ${ac_cv_lib_posix_remove+:} false; then :
  18953. $as_echo_n "(cached) " >&6
  18954. else
  18955. ac_check_lib_save_LIBS=$LIBS
  18956. LIBS="-lposix $LIBS"
  18957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18958. /* end confdefs.h. */
  18959. /* Override any GCC internal prototype to avoid an error.
  18960. Use char because int might match the return type of a GCC
  18961. builtin and then its argument prototype would still apply. */
  18962. #ifdef __cplusplus
  18963. extern "C"
  18964. #endif
  18965. char remove ();
  18966. int
  18967. main ()
  18968. {
  18969. return remove ();
  18970. ;
  18971. return 0;
  18972. }
  18973. _ACEOF
  18974. if ac_fn_c_try_link "$LINENO"; then :
  18975. ac_cv_lib_posix_remove=yes
  18976. else
  18977. ac_cv_lib_posix_remove=no
  18978. fi
  18979. rm -f core conftest.err conftest.$ac_objext \
  18980. conftest$ac_exeext conftest.$ac_ext
  18981. LIBS=$ac_check_lib_save_LIBS
  18982. fi
  18983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18984. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18985. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18986. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18987. fi
  18988. fi
  18989. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18990. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18991. if test "x$ac_cv_func_shmat" = xyes; then :
  18992. fi
  18993. if test $ac_cv_func_shmat = no; then
  18994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18995. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18996. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18997. $as_echo_n "(cached) " >&6
  18998. else
  18999. ac_check_lib_save_LIBS=$LIBS
  19000. LIBS="-lipc $LIBS"
  19001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19002. /* end confdefs.h. */
  19003. /* Override any GCC internal prototype to avoid an error.
  19004. Use char because int might match the return type of a GCC
  19005. builtin and then its argument prototype would still apply. */
  19006. #ifdef __cplusplus
  19007. extern "C"
  19008. #endif
  19009. char shmat ();
  19010. int
  19011. main ()
  19012. {
  19013. return shmat ();
  19014. ;
  19015. return 0;
  19016. }
  19017. _ACEOF
  19018. if ac_fn_c_try_link "$LINENO"; then :
  19019. ac_cv_lib_ipc_shmat=yes
  19020. else
  19021. ac_cv_lib_ipc_shmat=no
  19022. fi
  19023. rm -f core conftest.err conftest.$ac_objext \
  19024. conftest$ac_exeext conftest.$ac_ext
  19025. LIBS=$ac_check_lib_save_LIBS
  19026. fi
  19027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  19028. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  19029. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  19030. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  19031. fi
  19032. fi
  19033. fi
  19034. # Check for libraries that X11R6 Xt/Xaw programs need.
  19035. ac_save_LDFLAGS=$LDFLAGS
  19036. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  19037. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  19038. # check for ICE first), but we must link in the order -lSM -lICE or
  19039. # we get undefined symbols. So assume we have SM if we have ICE.
  19040. # These have to be linked with before -lX11, unlike the other
  19041. # libraries we check for below, so use a different variable.
  19042. # John Interrante, Karl Berry
  19043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  19044. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  19045. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  19046. $as_echo_n "(cached) " >&6
  19047. else
  19048. ac_check_lib_save_LIBS=$LIBS
  19049. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  19050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19051. /* end confdefs.h. */
  19052. /* Override any GCC internal prototype to avoid an error.
  19053. Use char because int might match the return type of a GCC
  19054. builtin and then its argument prototype would still apply. */
  19055. #ifdef __cplusplus
  19056. extern "C"
  19057. #endif
  19058. char IceConnectionNumber ();
  19059. int
  19060. main ()
  19061. {
  19062. return IceConnectionNumber ();
  19063. ;
  19064. return 0;
  19065. }
  19066. _ACEOF
  19067. if ac_fn_c_try_link "$LINENO"; then :
  19068. ac_cv_lib_ICE_IceConnectionNumber=yes
  19069. else
  19070. ac_cv_lib_ICE_IceConnectionNumber=no
  19071. fi
  19072. rm -f core conftest.err conftest.$ac_objext \
  19073. conftest$ac_exeext conftest.$ac_ext
  19074. LIBS=$ac_check_lib_save_LIBS
  19075. fi
  19076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  19077. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  19078. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  19079. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  19080. fi
  19081. LDFLAGS=$ac_save_LDFLAGS
  19082. fi
  19083. if test x$have_x = xyes; then
  19084. # Check whether --enable-x11-shared was given.
  19085. if test "${enable_x11_shared+set}" = set; then :
  19086. enableval=$enable_x11_shared;
  19087. else
  19088. enable_x11_shared=maybe
  19089. fi
  19090. case "$host" in
  19091. *-*-darwin*)
  19092. # Apple now puts this in /opt/X11
  19093. x11_lib='/opt/X11/lib/libX11.6.dylib'
  19094. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  19095. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  19096. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  19097. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  19098. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  19099. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  19100. xss_lib='/opt/X11/lib/libXss.1.dylib'
  19101. ;;
  19102. *-*-openbsd*)
  19103. x11_lib='libX11.so'
  19104. x11ext_lib='libXext.so'
  19105. xcursor_lib='libXcursor.so'
  19106. xinput_lib='libXi.so'
  19107. xfixes_lib='libXfixes.so'
  19108. xrandr_lib='libXrandr.so'
  19109. xrender_lib='libXrender.so'
  19110. xss_lib='libXss.so'
  19111. ;;
  19112. *)
  19113. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19114. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19115. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19116. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19117. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19118. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19119. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19120. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19121. ;;
  19122. esac
  19123. if test x$ac_cv_func_shmat != xyes; then
  19124. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  19125. fi
  19126. CFLAGS="$CFLAGS $X_CFLAGS"
  19127. LDFLAGS="$LDFLAGS $X_LIBS"
  19128. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  19129. #include <X11/Xproto.h>
  19130. "
  19131. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  19132. have_xext_h_hdr=yes
  19133. else
  19134. have_xext_h_hdr=no
  19135. fi
  19136. if test x$have_xext_h_hdr != xyes; then
  19137. as_fn_error $? "
  19138. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  19139. " "$LINENO" 5
  19140. fi
  19141. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  19142. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  19143. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  19144. # Needed so SDL applications can include SDL_syswm.h
  19145. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  19146. if test x$enable_x11_shared = xmaybe; then
  19147. enable_x11_shared=yes
  19148. fi
  19149. if test x$have_loadso != xyes && \
  19150. test x$enable_x11_shared = xyes; then
  19151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  19152. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  19153. enable_x11_shared=no
  19154. fi
  19155. if test x$have_loadso = xyes && \
  19156. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  19157. echo "-- dynamic libX11 -> $x11_lib"
  19158. echo "-- dynamic libX11ext -> $x11ext_lib"
  19159. cat >>confdefs.h <<_ACEOF
  19160. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  19161. _ACEOF
  19162. cat >>confdefs.h <<_ACEOF
  19163. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  19164. _ACEOF
  19165. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  19166. else
  19167. enable_x11_shared=no
  19168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  19169. SUMMARY_video="${SUMMARY_video} x11"
  19170. fi
  19171. have_video=yes
  19172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  19173. $as_echo_n "checking for XGenericEvent... " >&6; }
  19174. have_XGenericEvent=no
  19175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19176. /* end confdefs.h. */
  19177. #include <X11/Xlib.h>
  19178. int
  19179. main ()
  19180. {
  19181. Display *display;
  19182. XEvent event;
  19183. XGenericEventCookie *cookie = &event.xcookie;
  19184. XNextEvent(display, &event);
  19185. XGetEventData(display, cookie);
  19186. XFreeEventData(display, cookie);
  19187. ;
  19188. return 0;
  19189. }
  19190. _ACEOF
  19191. if ac_fn_c_try_compile "$LINENO"; then :
  19192. have_XGenericEvent=yes
  19193. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  19194. fi
  19195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  19197. $as_echo "$have_XGenericEvent" >&6; }
  19198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  19199. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  19200. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  19201. $as_echo_n "(cached) " >&6
  19202. else
  19203. ac_check_lib_save_LIBS=$LIBS
  19204. LIBS="-lX11 $LIBS"
  19205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19206. /* end confdefs.h. */
  19207. /* Override any GCC internal prototype to avoid an error.
  19208. Use char because int might match the return type of a GCC
  19209. builtin and then its argument prototype would still apply. */
  19210. #ifdef __cplusplus
  19211. extern "C"
  19212. #endif
  19213. char XkbKeycodeToKeysym ();
  19214. int
  19215. main ()
  19216. {
  19217. return XkbKeycodeToKeysym ();
  19218. ;
  19219. return 0;
  19220. }
  19221. _ACEOF
  19222. if ac_fn_c_try_link "$LINENO"; then :
  19223. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  19224. else
  19225. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  19226. fi
  19227. rm -f core conftest.err conftest.$ac_objext \
  19228. conftest$ac_exeext conftest.$ac_ext
  19229. LIBS=$ac_check_lib_save_LIBS
  19230. fi
  19231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  19232. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  19233. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  19234. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  19235. fi
  19236. # Check whether --enable-video-x11-xcursor was given.
  19237. if test "${enable_video_x11_xcursor+set}" = set; then :
  19238. enableval=$enable_video_x11_xcursor;
  19239. else
  19240. enable_video_x11_xcursor=yes
  19241. fi
  19242. if test x$enable_video_x11_xcursor = xyes; then
  19243. definitely_enable_video_x11_xcursor=no
  19244. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  19245. "
  19246. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  19247. have_xcursor_h_hdr=yes
  19248. else
  19249. have_xcursor_h_hdr=no
  19250. fi
  19251. if test x$have_xcursor_h_hdr = xyes; then
  19252. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  19253. echo "-- dynamic libXcursor -> $xcursor_lib"
  19254. cat >>confdefs.h <<_ACEOF
  19255. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  19256. _ACEOF
  19257. definitely_enable_video_x11_xcursor=yes
  19258. else
  19259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  19260. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  19261. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  19262. $as_echo_n "(cached) " >&6
  19263. else
  19264. ac_check_lib_save_LIBS=$LIBS
  19265. LIBS="-lXcursor $LIBS"
  19266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19267. /* end confdefs.h. */
  19268. /* Override any GCC internal prototype to avoid an error.
  19269. Use char because int might match the return type of a GCC
  19270. builtin and then its argument prototype would still apply. */
  19271. #ifdef __cplusplus
  19272. extern "C"
  19273. #endif
  19274. char XcursorImageCreate ();
  19275. int
  19276. main ()
  19277. {
  19278. return XcursorImageCreate ();
  19279. ;
  19280. return 0;
  19281. }
  19282. _ACEOF
  19283. if ac_fn_c_try_link "$LINENO"; then :
  19284. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  19285. else
  19286. ac_cv_lib_Xcursor_XcursorImageCreate=no
  19287. fi
  19288. rm -f core conftest.err conftest.$ac_objext \
  19289. conftest$ac_exeext conftest.$ac_ext
  19290. LIBS=$ac_check_lib_save_LIBS
  19291. fi
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  19293. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  19294. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  19295. have_xcursor_lib=yes
  19296. fi
  19297. if test x$have_xcursor_lib = xyes ; then
  19298. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  19299. definitely_enable_video_x11_xcursor=yes
  19300. fi
  19301. fi
  19302. fi
  19303. fi
  19304. if test x$definitely_enable_video_x11_xcursor = xyes; then
  19305. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  19306. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  19307. fi
  19308. # Check whether --enable-video-x11-xdbe was given.
  19309. if test "${enable_video_x11_xdbe+set}" = set; then :
  19310. enableval=$enable_video_x11_xdbe;
  19311. else
  19312. enable_video_x11_xdbe=yes
  19313. fi
  19314. if test x$enable_video_x11_xdbe = xyes; then
  19315. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  19316. "
  19317. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  19318. have_dbe_h_hdr=yes
  19319. else
  19320. have_dbe_h_hdr=no
  19321. fi
  19322. if test x$have_dbe_h_hdr = xyes; then
  19323. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  19324. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  19325. fi
  19326. fi
  19327. # Check whether --enable-video-x11-xinput was given.
  19328. if test "${enable_video_x11_xinput+set}" = set; then :
  19329. enableval=$enable_video_x11_xinput;
  19330. else
  19331. enable_video_x11_xinput=yes
  19332. fi
  19333. if test x$enable_video_x11_xinput = xyes; then
  19334. definitely_enable_video_x11_xinput=no
  19335. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19336. "
  19337. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19338. have_xinput_h_hdr=yes
  19339. else
  19340. have_xinput_h_hdr=no
  19341. fi
  19342. if test x$have_xinput_h_hdr = xyes; then
  19343. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19344. echo "-- dynamic libXi -> $xinput_lib"
  19345. cat >>confdefs.h <<_ACEOF
  19346. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19347. _ACEOF
  19348. definitely_enable_video_x11_xinput=yes
  19349. else
  19350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19351. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19352. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19353. $as_echo_n "(cached) " >&6
  19354. else
  19355. ac_check_lib_save_LIBS=$LIBS
  19356. LIBS="-lXi $LIBS"
  19357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19358. /* end confdefs.h. */
  19359. /* Override any GCC internal prototype to avoid an error.
  19360. Use char because int might match the return type of a GCC
  19361. builtin and then its argument prototype would still apply. */
  19362. #ifdef __cplusplus
  19363. extern "C"
  19364. #endif
  19365. char XOpenDevice ();
  19366. int
  19367. main ()
  19368. {
  19369. return XOpenDevice ();
  19370. ;
  19371. return 0;
  19372. }
  19373. _ACEOF
  19374. if ac_fn_c_try_link "$LINENO"; then :
  19375. ac_cv_lib_Xi_XOpenDevice=yes
  19376. else
  19377. ac_cv_lib_Xi_XOpenDevice=no
  19378. fi
  19379. rm -f core conftest.err conftest.$ac_objext \
  19380. conftest$ac_exeext conftest.$ac_ext
  19381. LIBS=$ac_check_lib_save_LIBS
  19382. fi
  19383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19384. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19385. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19386. have_xinput_lib=yes
  19387. fi
  19388. if test x$have_xinput_lib = xyes ; then
  19389. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19390. definitely_enable_video_x11_xinput=yes
  19391. fi
  19392. fi
  19393. fi
  19394. fi
  19395. if test x$definitely_enable_video_x11_xinput = xyes; then
  19396. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19397. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19399. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19400. have_xinput2_multitouch=no
  19401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19402. /* end confdefs.h. */
  19403. #include <X11/Xlib.h>
  19404. #include <X11/Xproto.h>
  19405. #include <X11/extensions/XInput2.h>
  19406. int
  19407. main ()
  19408. {
  19409. int event_type = XI_TouchBegin;
  19410. XITouchClassInfo *t;
  19411. ;
  19412. return 0;
  19413. }
  19414. _ACEOF
  19415. if ac_fn_c_try_compile "$LINENO"; then :
  19416. have_xinput2_multitouch=yes
  19417. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19418. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19419. fi
  19420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19422. $as_echo "$have_xinput2_multitouch" >&6; }
  19423. fi
  19424. # Check whether --enable-video-x11-xfixes was given.
  19425. if test "${enable_video_x11_xfixes+set}" = set; then :
  19426. enableval=$enable_video_x11_xfixes;
  19427. else
  19428. enable_video_x11_xfixes=yes
  19429. fi
  19430. if test x$enable_video_x11_xfixes = xyes; then
  19431. definitely_enable_video_x11_xfixes=no
  19432. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19434. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19436. /* end confdefs.h. */
  19437. #include <X11/Xlib.h>
  19438. #include <X11/Xproto.h>
  19439. #include <X11/extensions/XInput2.h>
  19440. #include <X11/extensions/Xfixes.h>
  19441. int
  19442. main ()
  19443. {
  19444. BarrierEventID b;
  19445. ;
  19446. return 0;
  19447. }
  19448. _ACEOF
  19449. if ac_fn_c_try_compile "$LINENO"; then :
  19450. have_xfixes_h_hdr=yes
  19451. else
  19452. have_xfixes_h_hdr=no
  19453. fi
  19454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19456. $as_echo "$have_xfixes_h_hdr" >&6; }
  19457. if test x$have_xfixes_h_hdr = xyes; then
  19458. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19459. echo "-- dynamic libXfixes -> $xfixes_lib"
  19460. cat >>confdefs.h <<_ACEOF
  19461. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19462. _ACEOF
  19463. definitely_enable_video_x11_xfixes=yes
  19464. else
  19465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19466. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19467. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19468. $as_echo_n "(cached) " >&6
  19469. else
  19470. ac_check_lib_save_LIBS=$LIBS
  19471. LIBS="-lXfixes $LIBS"
  19472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19473. /* end confdefs.h. */
  19474. /* Override any GCC internal prototype to avoid an error.
  19475. Use char because int might match the return type of a GCC
  19476. builtin and then its argument prototype would still apply. */
  19477. #ifdef __cplusplus
  19478. extern "C"
  19479. #endif
  19480. char XFixesCreatePointerBarrier ();
  19481. int
  19482. main ()
  19483. {
  19484. return XFixesCreatePointerBarrier ();
  19485. ;
  19486. return 0;
  19487. }
  19488. _ACEOF
  19489. if ac_fn_c_try_link "$LINENO"; then :
  19490. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19491. else
  19492. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19493. fi
  19494. rm -f core conftest.err conftest.$ac_objext \
  19495. conftest$ac_exeext conftest.$ac_ext
  19496. LIBS=$ac_check_lib_save_LIBS
  19497. fi
  19498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19499. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19500. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19501. have_xfixes_lib=yes
  19502. fi
  19503. if test x$have_xfixes_lib = xyes ; then
  19504. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19505. definitely_enable_video_x11_xfixes=yes
  19506. fi
  19507. fi
  19508. fi
  19509. fi
  19510. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19511. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19512. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19513. fi
  19514. # Check whether --enable-video-x11-xrandr was given.
  19515. if test "${enable_video_x11_xrandr+set}" = set; then :
  19516. enableval=$enable_video_x11_xrandr;
  19517. else
  19518. enable_video_x11_xrandr=yes
  19519. fi
  19520. if test x$enable_video_x11_xrandr = xyes; then
  19521. definitely_enable_video_x11_xrandr=no
  19522. have_xrandr_h_hdr=no
  19523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19524. /* end confdefs.h. */
  19525. #include <X11/Xlib.h>
  19526. #include <X11/extensions/Xrandr.h>
  19527. int
  19528. main ()
  19529. {
  19530. XRRScreenResources *res = NULL;
  19531. ;
  19532. return 0;
  19533. }
  19534. _ACEOF
  19535. if ac_fn_c_try_compile "$LINENO"; then :
  19536. have_xrandr_h_hdr=yes
  19537. fi
  19538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19539. if test x$have_xrandr_h_hdr = xyes; then
  19540. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19541. echo "-- dynamic libXrandr -> $xrandr_lib"
  19542. cat >>confdefs.h <<_ACEOF
  19543. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19544. _ACEOF
  19545. definitely_enable_video_x11_xrandr=yes
  19546. else
  19547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19548. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19549. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19550. $as_echo_n "(cached) " >&6
  19551. else
  19552. ac_check_lib_save_LIBS=$LIBS
  19553. LIBS="-lXrandr $LIBS"
  19554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19555. /* end confdefs.h. */
  19556. /* Override any GCC internal prototype to avoid an error.
  19557. Use char because int might match the return type of a GCC
  19558. builtin and then its argument prototype would still apply. */
  19559. #ifdef __cplusplus
  19560. extern "C"
  19561. #endif
  19562. char XRRQueryExtension ();
  19563. int
  19564. main ()
  19565. {
  19566. return XRRQueryExtension ();
  19567. ;
  19568. return 0;
  19569. }
  19570. _ACEOF
  19571. if ac_fn_c_try_link "$LINENO"; then :
  19572. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19573. else
  19574. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19575. fi
  19576. rm -f core conftest.err conftest.$ac_objext \
  19577. conftest$ac_exeext conftest.$ac_ext
  19578. LIBS=$ac_check_lib_save_LIBS
  19579. fi
  19580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19581. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19582. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19583. have_xrandr_lib=yes
  19584. fi
  19585. if test x$have_xrandr_lib = xyes ; then
  19586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19587. definitely_enable_video_x11_xrandr=yes
  19588. fi
  19589. fi
  19590. fi
  19591. fi
  19592. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19593. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19594. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19595. fi
  19596. # Check whether --enable-video-x11-scrnsaver was given.
  19597. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19598. enableval=$enable_video_x11_scrnsaver;
  19599. else
  19600. enable_video_x11_scrnsaver=yes
  19601. fi
  19602. if test x$enable_video_x11_scrnsaver = xyes; then
  19603. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19604. "
  19605. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19606. have_scrnsaver_h_hdr=yes
  19607. else
  19608. have_scrnsaver_h_hdr=no
  19609. fi
  19610. if test x$have_scrnsaver_h_hdr = xyes; then
  19611. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19612. echo "-- dynamic libXss -> $xss_lib"
  19613. cat >>confdefs.h <<_ACEOF
  19614. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19615. _ACEOF
  19616. definitely_enable_video_x11_scrnsaver=yes
  19617. else
  19618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19619. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19620. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19621. $as_echo_n "(cached) " >&6
  19622. else
  19623. ac_check_lib_save_LIBS=$LIBS
  19624. LIBS="-lXss $LIBS"
  19625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19626. /* end confdefs.h. */
  19627. /* Override any GCC internal prototype to avoid an error.
  19628. Use char because int might match the return type of a GCC
  19629. builtin and then its argument prototype would still apply. */
  19630. #ifdef __cplusplus
  19631. extern "C"
  19632. #endif
  19633. char XScreenSaverSuspend ();
  19634. int
  19635. main ()
  19636. {
  19637. return XScreenSaverSuspend ();
  19638. ;
  19639. return 0;
  19640. }
  19641. _ACEOF
  19642. if ac_fn_c_try_link "$LINENO"; then :
  19643. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19644. else
  19645. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19646. fi
  19647. rm -f core conftest.err conftest.$ac_objext \
  19648. conftest$ac_exeext conftest.$ac_ext
  19649. LIBS=$ac_check_lib_save_LIBS
  19650. fi
  19651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19652. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19653. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19654. have_xss_lib=yes
  19655. fi
  19656. if test x$have_xss_lib = xyes ; then
  19657. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19658. definitely_enable_video_x11_scrnsaver=yes
  19659. fi
  19660. fi
  19661. fi
  19662. fi
  19663. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19664. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19665. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19666. fi
  19667. # Check whether --enable-video-x11-xshape was given.
  19668. if test "${enable_video_x11_xshape+set}" = set; then :
  19669. enableval=$enable_video_x11_xshape;
  19670. else
  19671. enable_video_x11_xshape=yes
  19672. fi
  19673. if test x$enable_video_x11_xshape = xyes; then
  19674. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19675. "
  19676. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19677. have_shape_h_hdr=yes
  19678. else
  19679. have_shape_h_hdr=no
  19680. fi
  19681. if test x$have_shape_h_hdr = xyes; then
  19682. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19683. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19684. fi
  19685. fi
  19686. fi
  19687. fi
  19688. if test x$have_x != xyes; then
  19689. # Prevent Mesa from including X11 headers
  19690. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19691. fi
  19692. }
  19693. CheckVivanteVideo()
  19694. {
  19695. # Check whether --enable-video-vivante was given.
  19696. if test "${enable_video_vivante+set}" = set; then :
  19697. enableval=$enable_video_vivante;
  19698. else
  19699. enable_video_vivante=yes
  19700. fi
  19701. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19703. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19704. have_vivante_vdk=no
  19705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19706. /* end confdefs.h. */
  19707. #define LINUX
  19708. #define EGL_API_FB
  19709. #include <gc_vdk.h>
  19710. int
  19711. main ()
  19712. {
  19713. ;
  19714. return 0;
  19715. }
  19716. _ACEOF
  19717. if ac_fn_c_try_compile "$LINENO"; then :
  19718. have_vivante_vdk=yes
  19719. fi
  19720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19722. $as_echo "$have_vivante_vdk" >&6; }
  19723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19724. $as_echo_n "checking for Vivante FB API... " >&6; }
  19725. have_vivante_egl=no
  19726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19727. /* end confdefs.h. */
  19728. #define LINUX
  19729. #define EGL_API_FB
  19730. #include <EGL/eglvivante.h>
  19731. int
  19732. main ()
  19733. {
  19734. ;
  19735. return 0;
  19736. }
  19737. _ACEOF
  19738. if ac_fn_c_try_compile "$LINENO"; then :
  19739. have_vivante_egl=yes
  19740. fi
  19741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19743. $as_echo "$have_vivante_egl" >&6; }
  19744. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19745. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19746. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19747. if test x$have_vivante_vdk = xyes; then
  19748. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19749. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19750. fi
  19751. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19752. SUMMARY_video="${SUMMARY_video} vivante"
  19753. have_video=yes
  19754. fi
  19755. fi
  19756. }
  19757. CheckHaikuVideo()
  19758. {
  19759. if test x$enable_video = xyes; then
  19760. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19761. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19762. have_video=yes
  19763. SUMMARY_video="${SUMMARY_video} haiku"
  19764. fi
  19765. }
  19766. CheckCOCOA()
  19767. {
  19768. # Check whether --enable-video-cocoa was given.
  19769. if test "${enable_video_cocoa+set}" = set; then :
  19770. enableval=$enable_video_cocoa;
  19771. else
  19772. enable_video_cocoa=yes
  19773. fi
  19774. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19775. save_CFLAGS="$CFLAGS"
  19776. CFLAGS="$CFLAGS -x objective-c"
  19777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19778. $as_echo_n "checking for Cocoa framework... " >&6; }
  19779. have_cocoa=no
  19780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19781. /* end confdefs.h. */
  19782. #import <Cocoa/Cocoa.h>
  19783. int
  19784. main ()
  19785. {
  19786. ;
  19787. return 0;
  19788. }
  19789. _ACEOF
  19790. if ac_fn_c_try_compile "$LINENO"; then :
  19791. have_cocoa=yes
  19792. fi
  19793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19795. $as_echo "$have_cocoa" >&6; }
  19796. CFLAGS="$save_CFLAGS"
  19797. if test x$have_cocoa = xyes; then
  19798. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19799. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19800. SUMMARY_video="${SUMMARY_video} cocoa"
  19801. have_video=yes
  19802. fi
  19803. fi
  19804. }
  19805. CheckMETAL()
  19806. {
  19807. # Check whether --enable-video-metal was given.
  19808. if test "${enable_video_metal+set}" = set; then :
  19809. enableval=$enable_video_metal;
  19810. else
  19811. enable_video_metal=yes
  19812. fi
  19813. # Check whether --enable-render-metal was given.
  19814. if test "${enable_render_metal+set}" = set; then :
  19815. enableval=$enable_render_metal;
  19816. else
  19817. enable_render_metal=yes
  19818. fi
  19819. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19820. save_CFLAGS="$CFLAGS"
  19821. CFLAGS="$CFLAGS -x objective-c"
  19822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19823. $as_echo_n "checking for Metal framework... " >&6; }
  19824. have_metal=no
  19825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19826. /* end confdefs.h. */
  19827. #import <Cocoa/Cocoa.h>
  19828. #import <Metal/Metal.h>
  19829. #import <QuartzCore/CAMetalLayer.h>
  19830. #if TARGET_CPU_X86
  19831. #error Metal doesn't work on this configuration
  19832. #endif
  19833. int
  19834. main ()
  19835. {
  19836. ;
  19837. return 0;
  19838. }
  19839. _ACEOF
  19840. if ac_fn_c_try_compile "$LINENO"; then :
  19841. have_metal=yes
  19842. fi
  19843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19844. CFLAGS="$save_CFLAGS"
  19845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19846. $as_echo "$have_metal" >&6; }
  19847. if test x$have_metal = xyes; then
  19848. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19849. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19850. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19851. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19852. fi
  19853. SUMMARY_video="${SUMMARY_video} metal"
  19854. else
  19855. enable_video_metal=no
  19856. enable_render_metal=no
  19857. fi
  19858. fi
  19859. }
  19860. CheckDirectFB()
  19861. {
  19862. # Check whether --enable-video-directfb was given.
  19863. if test "${enable_video_directfb+set}" = set; then :
  19864. enableval=$enable_video_directfb;
  19865. else
  19866. enable_video_directfb=no
  19867. fi
  19868. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19869. pkg_failed=no
  19870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19871. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19872. if test -n "$DIRECTFB_CFLAGS"; then
  19873. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19874. elif test -n "$PKG_CONFIG"; then
  19875. if test -n "$PKG_CONFIG" && \
  19876. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19877. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19878. ac_status=$?
  19879. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19880. test $ac_status = 0; }; then
  19881. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19882. test "x$?" != "x0" && pkg_failed=yes
  19883. else
  19884. pkg_failed=yes
  19885. fi
  19886. else
  19887. pkg_failed=untried
  19888. fi
  19889. if test -n "$DIRECTFB_LIBS"; then
  19890. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19891. elif test -n "$PKG_CONFIG"; then
  19892. if test -n "$PKG_CONFIG" && \
  19893. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19894. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19895. ac_status=$?
  19896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19897. test $ac_status = 0; }; then
  19898. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19899. test "x$?" != "x0" && pkg_failed=yes
  19900. else
  19901. pkg_failed=yes
  19902. fi
  19903. else
  19904. pkg_failed=untried
  19905. fi
  19906. if test $pkg_failed = yes; then
  19907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19908. $as_echo "no" >&6; }
  19909. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19910. _pkg_short_errors_supported=yes
  19911. else
  19912. _pkg_short_errors_supported=no
  19913. fi
  19914. if test $_pkg_short_errors_supported = yes; then
  19915. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19916. else
  19917. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19918. fi
  19919. # Put the nasty error message in config.log where it belongs
  19920. echo "$DIRECTFB_PKG_ERRORS" >&5
  19921. video_directfb=no
  19922. elif test $pkg_failed = untried; then
  19923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19924. $as_echo "no" >&6; }
  19925. video_directfb=no
  19926. else
  19927. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19928. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19930. $as_echo "yes" >&6; }
  19931. video_directfb=yes
  19932. fi
  19933. if test x$video_directfb = xyes; then
  19934. # SuSE 11.1 installs directfb-config without directfb-devel
  19935. save_CPPFLAGS="$CPPFLAGS"
  19936. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19937. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19938. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19939. have_directfb_hdr=yes
  19940. else
  19941. have_directfb_hdr=no
  19942. fi
  19943. CPPFLAGS="$save_CPPFLAGS"
  19944. video_directfb=$have_directfb_hdr
  19945. fi
  19946. if test x$video_directfb = xyes; then
  19947. # Check whether --enable-directfb-shared was given.
  19948. if test "${enable_directfb_shared+set}" = set; then :
  19949. enableval=$enable_directfb_shared;
  19950. else
  19951. enable_directfb_shared=yes
  19952. fi
  19953. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19954. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19955. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19956. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19957. directfb_shared=no
  19958. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19959. if test x$have_loadso != xyes && \
  19960. test x$enable_directfb_shared = xyes; then
  19961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19962. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19963. fi
  19964. if test x$have_loadso = xyes && \
  19965. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19966. directfb_shared=yes
  19967. echo "-- dynamic libdirectfb -> $directfb_lib"
  19968. cat >>confdefs.h <<_ACEOF
  19969. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19970. _ACEOF
  19971. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19972. else
  19973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19974. SUMMARY_video="${SUMMARY_video} directfb"
  19975. fi
  19976. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19977. have_video=yes
  19978. fi
  19979. fi
  19980. }
  19981. CheckKMSDRM()
  19982. {
  19983. # Check whether --enable-video-kmsdrm was given.
  19984. if test "${enable_video_kmsdrm+set}" = set; then :
  19985. enableval=$enable_video_kmsdrm;
  19986. else
  19987. enable_video_kmsdrm=yes
  19988. fi
  19989. if test x$enable_video = xyes && \
  19990. test x$enable_video_kmsdrm = xyes && \
  19991. test x$video_opengl_egl = xyes; then
  19992. video_kmsdrm=no
  19993. pkg_failed=no
  19994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19995. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19996. if test -n "$LIBDRM_CFLAGS"; then
  19997. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19998. elif test -n "$PKG_CONFIG"; then
  19999. if test -n "$PKG_CONFIG" && \
  20000. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  20001. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  20002. ac_status=$?
  20003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20004. test $ac_status = 0; }; then
  20005. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  20006. test "x$?" != "x0" && pkg_failed=yes
  20007. else
  20008. pkg_failed=yes
  20009. fi
  20010. else
  20011. pkg_failed=untried
  20012. fi
  20013. if test -n "$LIBDRM_LIBS"; then
  20014. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  20015. elif test -n "$PKG_CONFIG"; then
  20016. if test -n "$PKG_CONFIG" && \
  20017. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  20018. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  20019. ac_status=$?
  20020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20021. test $ac_status = 0; }; then
  20022. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  20023. test "x$?" != "x0" && pkg_failed=yes
  20024. else
  20025. pkg_failed=yes
  20026. fi
  20027. else
  20028. pkg_failed=untried
  20029. fi
  20030. if test $pkg_failed = yes; then
  20031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20032. $as_echo "no" >&6; }
  20033. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20034. _pkg_short_errors_supported=yes
  20035. else
  20036. _pkg_short_errors_supported=no
  20037. fi
  20038. if test $_pkg_short_errors_supported = yes; then
  20039. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  20040. else
  20041. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  20042. fi
  20043. # Put the nasty error message in config.log where it belongs
  20044. echo "$LIBDRM_PKG_ERRORS" >&5
  20045. libdrm_avail=no
  20046. elif test $pkg_failed = untried; then
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20048. $as_echo "no" >&6; }
  20049. libdrm_avail=no
  20050. else
  20051. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  20052. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20054. $as_echo "yes" >&6; }
  20055. libdrm_avail=yes
  20056. fi
  20057. pkg_failed=no
  20058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  20059. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  20060. if test -n "$LIBGBM_CFLAGS"; then
  20061. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  20062. elif test -n "$PKG_CONFIG"; then
  20063. if test -n "$PKG_CONFIG" && \
  20064. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  20065. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  20066. ac_status=$?
  20067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20068. test $ac_status = 0; }; then
  20069. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  20070. test "x$?" != "x0" && pkg_failed=yes
  20071. else
  20072. pkg_failed=yes
  20073. fi
  20074. else
  20075. pkg_failed=untried
  20076. fi
  20077. if test -n "$LIBGBM_LIBS"; then
  20078. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  20079. elif test -n "$PKG_CONFIG"; then
  20080. if test -n "$PKG_CONFIG" && \
  20081. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  20082. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  20083. ac_status=$?
  20084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20085. test $ac_status = 0; }; then
  20086. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  20087. test "x$?" != "x0" && pkg_failed=yes
  20088. else
  20089. pkg_failed=yes
  20090. fi
  20091. else
  20092. pkg_failed=untried
  20093. fi
  20094. if test $pkg_failed = yes; then
  20095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20096. $as_echo "no" >&6; }
  20097. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20098. _pkg_short_errors_supported=yes
  20099. else
  20100. _pkg_short_errors_supported=no
  20101. fi
  20102. if test $_pkg_short_errors_supported = yes; then
  20103. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  20104. else
  20105. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  20106. fi
  20107. # Put the nasty error message in config.log where it belongs
  20108. echo "$LIBGBM_PKG_ERRORS" >&5
  20109. libgbm_avail=no
  20110. elif test $pkg_failed = untried; then
  20111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20112. $as_echo "no" >&6; }
  20113. libgbm_avail=no
  20114. else
  20115. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  20116. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  20117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20118. $as_echo "yes" >&6; }
  20119. libgbm_avail=yes
  20120. fi
  20121. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  20122. video_kmsdrm=yes
  20123. fi
  20124. if test x$video_kmsdrm = xyes; then
  20125. # Check whether --enable-kmsdrm-shared was given.
  20126. if test "${enable_kmsdrm_shared+set}" = set; then :
  20127. enableval=$enable_kmsdrm_shared;
  20128. else
  20129. enable_kmsdrm_shared=yes
  20130. fi
  20131. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  20132. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  20133. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  20134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  20135. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  20136. kmsdrm_shared=no
  20137. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  20138. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  20139. if test x$have_loadso != xyes && \
  20140. test x$enable_kmsdrm_shared = xyes; then
  20141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  20142. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  20143. fi
  20144. if test x$have_loadso = xyes && \
  20145. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  20146. kmsdrm_shared=yes
  20147. cat >>confdefs.h <<_ACEOF
  20148. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  20149. _ACEOF
  20150. cat >>confdefs.h <<_ACEOF
  20151. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  20152. _ACEOF
  20153. cat >>confdefs.h <<_ACEOF
  20154. #define HAVE_KMSDRM_SHARED "TRUE"
  20155. _ACEOF
  20156. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  20157. else
  20158. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  20159. SUMMARY_video="${SUMMARY_video} kmsdrm"
  20160. fi
  20161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  20162. $as_echo "$kmsdrm_shared" >&6; }
  20163. if test x$kmsdrm_shared = xyes; then
  20164. echo "-- dynamic libdrm -> $drm_lib"
  20165. echo "-- dynamic libgbm -> $gbm_lib"
  20166. fi
  20167. have_video=yes
  20168. fi
  20169. fi
  20170. }
  20171. CheckDummyVideo()
  20172. {
  20173. # Check whether --enable-video-dummy was given.
  20174. if test "${enable_video_dummy+set}" = set; then :
  20175. enableval=$enable_video_dummy;
  20176. else
  20177. enable_video_dummy=yes
  20178. fi
  20179. if test x$enable_video_dummy = xyes; then
  20180. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  20181. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  20182. have_video=yes
  20183. SUMMARY_video="${SUMMARY_video} dummy"
  20184. fi
  20185. }
  20186. CheckOffscreenVideo()
  20187. {
  20188. # Check whether --enable-video-offscreen was given.
  20189. if test "${enable_video_offscreen+set}" = set; then :
  20190. enableval=$enable_video_offscreen;
  20191. else
  20192. enable_video_offscreen=no
  20193. fi
  20194. if test x$enable_video_offscreen = xyes; then
  20195. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  20196. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  20197. have_video=yes
  20198. SUMMARY_video="${SUMMARY_video} offscreen"
  20199. fi
  20200. }
  20201. CheckQNXVideo()
  20202. {
  20203. if test x$enable_video = xyes; then
  20204. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  20205. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  20206. have_video=yes
  20207. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  20208. SUMMARY_video="${SUMMARY_video} qnx"
  20209. fi
  20210. }
  20211. CheckQNXAudio()
  20212. {
  20213. if test x$enable_audio = xyes; then
  20214. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  20215. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  20216. have_audio=yes
  20217. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  20218. SUMMARY_audio="${SUMMARY_audio} qsa"
  20219. fi
  20220. }
  20221. # Check whether --enable-video-opengl was given.
  20222. if test "${enable_video_opengl+set}" = set; then :
  20223. enableval=$enable_video_opengl;
  20224. else
  20225. enable_video_opengl=yes
  20226. fi
  20227. CheckGLX()
  20228. {
  20229. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  20231. $as_echo_n "checking for GLX support... " >&6; }
  20232. video_opengl_glx=no
  20233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20234. /* end confdefs.h. */
  20235. #include <GL/glx.h>
  20236. int
  20237. main ()
  20238. {
  20239. ;
  20240. return 0;
  20241. }
  20242. _ACEOF
  20243. if ac_fn_c_try_compile "$LINENO"; then :
  20244. video_opengl_glx=yes
  20245. fi
  20246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  20248. $as_echo "$video_opengl_glx" >&6; }
  20249. if test x$video_opengl_glx = xyes; then
  20250. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20251. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  20252. fi
  20253. fi
  20254. }
  20255. # Check whether --enable-video-opengles was given.
  20256. if test "${enable_video_opengles+set}" = set; then :
  20257. enableval=$enable_video_opengles;
  20258. else
  20259. enable_video_opengles=yes
  20260. fi
  20261. # Check whether --enable-video-opengles1 was given.
  20262. if test "${enable_video_opengles1+set}" = set; then :
  20263. enableval=$enable_video_opengles1;
  20264. else
  20265. enable_video_opengles1=yes
  20266. fi
  20267. # Check whether --enable-video-opengles2 was given.
  20268. if test "${enable_video_opengles2+set}" = set; then :
  20269. enableval=$enable_video_opengles2;
  20270. else
  20271. enable_video_opengles2=yes
  20272. fi
  20273. CheckEGL()
  20274. {
  20275. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20277. $as_echo_n "checking for EGL support... " >&6; }
  20278. video_opengl_egl=no
  20279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20280. /* end confdefs.h. */
  20281. #define LINUX
  20282. #define EGL_API_FB
  20283. #define MESA_EGL_NO_X11_HEADERS
  20284. #define EGL_NO_X11
  20285. #include <EGL/egl.h>
  20286. #include <EGL/eglext.h>
  20287. int
  20288. main ()
  20289. {
  20290. ;
  20291. return 0;
  20292. }
  20293. _ACEOF
  20294. if ac_fn_c_try_compile "$LINENO"; then :
  20295. video_opengl_egl=yes
  20296. fi
  20297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20299. $as_echo "$video_opengl_egl" >&6; }
  20300. if test x$video_opengl_egl = xyes; then
  20301. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20302. fi
  20303. fi
  20304. }
  20305. CheckOpenGL()
  20306. {
  20307. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20309. $as_echo_n "checking for OpenGL headers... " >&6; }
  20310. video_opengl=no
  20311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20312. /* end confdefs.h. */
  20313. #include <GL/gl.h>
  20314. #include <GL/glext.h>
  20315. int
  20316. main ()
  20317. {
  20318. ;
  20319. return 0;
  20320. }
  20321. _ACEOF
  20322. if ac_fn_c_try_compile "$LINENO"; then :
  20323. video_opengl=yes
  20324. fi
  20325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20327. $as_echo "$video_opengl" >&6; }
  20328. if test x$video_opengl = xyes; then
  20329. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20330. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20331. SUMMARY_video="${SUMMARY_video} opengl"
  20332. fi
  20333. fi
  20334. }
  20335. CheckOpenGLES()
  20336. {
  20337. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20338. if test x$enable_video_opengles1 = xyes; then
  20339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20340. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20341. video_opengles_v1=no
  20342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20343. /* end confdefs.h. */
  20344. #include <GLES/gl.h>
  20345. #include <GLES/glext.h>
  20346. int
  20347. main ()
  20348. {
  20349. ;
  20350. return 0;
  20351. }
  20352. _ACEOF
  20353. if ac_fn_c_try_compile "$LINENO"; then :
  20354. video_opengles_v1=yes
  20355. fi
  20356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20358. $as_echo "$video_opengles_v1" >&6; }
  20359. if test x$video_opengles_v1 = xyes; then
  20360. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20361. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20362. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20363. fi
  20364. fi
  20365. if test x$enable_video_opengles2 = xyes; then
  20366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20367. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20368. video_opengles_v2=no
  20369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20370. /* end confdefs.h. */
  20371. #include <GLES2/gl2.h>
  20372. #include <GLES2/gl2ext.h>
  20373. int
  20374. main ()
  20375. {
  20376. ;
  20377. return 0;
  20378. }
  20379. _ACEOF
  20380. if ac_fn_c_try_compile "$LINENO"; then :
  20381. video_opengles_v2=yes
  20382. fi
  20383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20385. $as_echo "$video_opengles_v2" >&6; }
  20386. if test x$video_opengles_v2 = xyes; then
  20387. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20388. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20389. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20390. fi
  20391. fi
  20392. fi
  20393. }
  20394. CheckWINDOWSGL()
  20395. {
  20396. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20397. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20398. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20399. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20400. SUMMARY_video="${SUMMARY_video} opengl"
  20401. fi
  20402. }
  20403. CheckWINDOWSGLES()
  20404. {
  20405. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20407. $as_echo_n "checking for EGL support... " >&6; }
  20408. video_opengl_egl=no
  20409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20410. /* end confdefs.h. */
  20411. #include <EGL/egl.h>
  20412. int
  20413. main ()
  20414. {
  20415. ;
  20416. return 0;
  20417. }
  20418. _ACEOF
  20419. if ac_fn_c_try_compile "$LINENO"; then :
  20420. video_opengl_egl=yes
  20421. fi
  20422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20424. $as_echo "$video_opengl_egl" >&6; }
  20425. if test x$video_opengl_egl = xyes; then
  20426. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20427. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20428. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20429. fi
  20430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20431. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20432. video_opengles_v2=no
  20433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20434. /* end confdefs.h. */
  20435. #include <GLES2/gl2.h>
  20436. #include <GLES2/gl2ext.h>
  20437. int
  20438. main ()
  20439. {
  20440. ;
  20441. return 0;
  20442. }
  20443. _ACEOF
  20444. if ac_fn_c_try_compile "$LINENO"; then :
  20445. video_opengles_v2=yes
  20446. fi
  20447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20449. $as_echo "$video_opengles_v2" >&6; }
  20450. if test x$video_opengles_v2 = xyes; then
  20451. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20452. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20453. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20454. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20455. fi
  20456. fi
  20457. }
  20458. CheckHaikuGL()
  20459. {
  20460. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20461. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20462. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20463. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20465. SUMMARY_video="${SUMMARY_video} opengl"
  20466. fi
  20467. }
  20468. CheckMacGL()
  20469. {
  20470. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20471. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20472. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20473. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20474. SUMMARY_video="${SUMMARY_video} opengl"
  20475. fi
  20476. }
  20477. CheckMacGLES()
  20478. {
  20479. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20480. video_opengl_egl=yes
  20481. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20482. video_opengles_v2=yes
  20483. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20484. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20485. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20486. fi
  20487. }
  20488. CheckEmscriptenGLES()
  20489. {
  20490. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20492. $as_echo_n "checking for EGL support... " >&6; }
  20493. video_opengl_egl=no
  20494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20495. /* end confdefs.h. */
  20496. #include <EGL/egl.h>
  20497. int
  20498. main ()
  20499. {
  20500. ;
  20501. return 0;
  20502. }
  20503. _ACEOF
  20504. if ac_fn_c_try_compile "$LINENO"; then :
  20505. video_opengl_egl=yes
  20506. fi
  20507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20509. $as_echo "$video_opengl_egl" >&6; }
  20510. if test x$video_opengl_egl = xyes; then
  20511. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20512. fi
  20513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20514. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20515. video_opengles_v2=no
  20516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20517. /* end confdefs.h. */
  20518. #include <GLES2/gl2.h>
  20519. #include <GLES2/gl2ext.h>
  20520. int
  20521. main ()
  20522. {
  20523. ;
  20524. return 0;
  20525. }
  20526. _ACEOF
  20527. if ac_fn_c_try_compile "$LINENO"; then :
  20528. video_opengles_v2=yes
  20529. fi
  20530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20532. $as_echo "$video_opengles_v2" >&6; }
  20533. if test x$video_opengles_v2 = xyes; then
  20534. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20535. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20536. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20537. fi
  20538. fi
  20539. }
  20540. # Check whether --enable-video-vulkan was given.
  20541. if test "${enable_video_vulkan+set}" = set; then :
  20542. enableval=$enable_video_vulkan;
  20543. else
  20544. enable_video_vulkan=yes
  20545. fi
  20546. CheckVulkan()
  20547. {
  20548. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20549. case "$host" in
  20550. *-*-android*)
  20551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20552. /* end confdefs.h. */
  20553. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20554. #error Vulkan doesn't work on this configuration
  20555. #endif
  20556. int
  20557. main ()
  20558. {
  20559. ;
  20560. return 0;
  20561. }
  20562. _ACEOF
  20563. if ac_fn_c_try_compile "$LINENO"; then :
  20564. else
  20565. enable_video_vulkan=no
  20566. fi
  20567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20568. ;;
  20569. *-*-darwin*)
  20570. save_CFLAGS="$CFLAGS"
  20571. CFLAGS="$CFLAGS -x objective-c"
  20572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20573. /* end confdefs.h. */
  20574. #include <Cocoa/Cocoa.h>
  20575. #include <Metal/Metal.h>
  20576. #include <QuartzCore/CAMetalLayer.h>
  20577. #if TARGET_CPU_X86
  20578. #error Vulkan doesn't work on this configuration
  20579. #endif
  20580. int
  20581. main ()
  20582. {
  20583. ;
  20584. return 0;
  20585. }
  20586. _ACEOF
  20587. if ac_fn_c_try_compile "$LINENO"; then :
  20588. else
  20589. enable_video_vulkan=no
  20590. fi
  20591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20592. CFLAGS="$save_CFLAGS"
  20593. ;;
  20594. *)
  20595. ;;
  20596. esac
  20597. if test x$enable_video_vulkan = xno; then
  20598. # For reasons I am totally unable to see, I get an undefined macro error if
  20599. # I put this in the AC_TRY_COMPILE.
  20600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20601. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20602. fi
  20603. fi
  20604. if test x$have_loadso != xyes; then
  20605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20606. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20607. enable_video_vulkan=no
  20608. fi
  20609. if test x$enable_video_vulkan = xyes; then
  20610. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20611. SUMMARY_video="${SUMMARY_video} vulkan"
  20612. fi
  20613. }
  20614. CheckInputEvents()
  20615. {
  20616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20617. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20618. use_input_events=no
  20619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20620. /* end confdefs.h. */
  20621. #include <linux/input.h>
  20622. int
  20623. main ()
  20624. {
  20625. #ifndef EVIOCGNAME
  20626. #error EVIOCGNAME() ioctl not available
  20627. #endif
  20628. ;
  20629. return 0;
  20630. }
  20631. _ACEOF
  20632. if ac_fn_c_try_compile "$LINENO"; then :
  20633. use_input_events=yes
  20634. fi
  20635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20637. $as_echo "$use_input_events" >&6; }
  20638. if test x$use_input_events = xyes; then
  20639. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20640. SUMMARY_input="${SUMMARY_input} linuxev"
  20641. fi
  20642. }
  20643. CheckInputKD()
  20644. {
  20645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20646. $as_echo_n "checking for Linux kd.h... " >&6; }
  20647. use_input_kd=no
  20648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20649. /* end confdefs.h. */
  20650. #include <linux/kd.h>
  20651. #include <linux/keyboard.h>
  20652. int
  20653. main ()
  20654. {
  20655. struct kbentry kbe;
  20656. kbe.kb_table = KG_CTRL;
  20657. ioctl(0, KDGKBENT, &kbe);
  20658. ;
  20659. return 0;
  20660. }
  20661. _ACEOF
  20662. if ac_fn_c_try_compile "$LINENO"; then :
  20663. use_input_kd=yes
  20664. fi
  20665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20667. $as_echo "$use_input_kd" >&6; }
  20668. if test x$use_input_kd = xyes; then
  20669. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20670. SUMMARY_input="${SUMMARY_input} linuxkd"
  20671. fi
  20672. }
  20673. CheckInputKBIO()
  20674. {
  20675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20676. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20677. use_input_kbio=no
  20678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20679. /* end confdefs.h. */
  20680. #include <sys/kbio.h>
  20681. #include <sys/ioctl.h>
  20682. int
  20683. main ()
  20684. {
  20685. accentmap_t accTable;
  20686. ioctl(0, KDENABIO, 1);
  20687. ;
  20688. return 0;
  20689. }
  20690. _ACEOF
  20691. if ac_fn_c_try_compile "$LINENO"; then :
  20692. use_input_kbio=yes
  20693. fi
  20694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20696. $as_echo "$use_input_kbio" >&6; }
  20697. if test x$use_input_kbio = xyes; then
  20698. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20699. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20700. fi
  20701. }
  20702. CheckInputWSCONS()
  20703. {
  20704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20705. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20706. use_input_wscons=no
  20707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20708. /* end confdefs.h. */
  20709. #include <sys/time.h>
  20710. #include <dev/wscons/wsconsio.h>
  20711. #include <dev/wscons/wsksymdef.h>
  20712. #include <dev/wscons/wsksymvar.h>
  20713. #include <sys/ioctl.h>
  20714. int
  20715. main ()
  20716. {
  20717. struct wskbd_map_data data;
  20718. ioctl(0, WSKBDIO_GETMAP, &data);
  20719. ;
  20720. return 0;
  20721. }
  20722. _ACEOF
  20723. if ac_fn_c_try_compile "$LINENO"; then :
  20724. use_input_wscons=yes
  20725. fi
  20726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20728. $as_echo "$use_input_wscons" >&6; }
  20729. if test x$use_input_wscons = xyes; then
  20730. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20731. SUMMARY_input="${SUMMARY_input} wscons"
  20732. fi
  20733. }
  20734. CheckLibUDev()
  20735. {
  20736. # Check whether --enable-libudev was given.
  20737. if test "${enable_libudev+set}" = set; then :
  20738. enableval=$enable_libudev;
  20739. else
  20740. enable_libudev=yes
  20741. fi
  20742. if test x$enable_libudev = xyes; then
  20743. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20744. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20745. have_libudev_h_hdr=yes
  20746. else
  20747. have_libudev_h_hdr=no
  20748. fi
  20749. if test x$have_libudev_h_hdr = xyes; then
  20750. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20751. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20752. if test x$udev_lib != x; then
  20753. echo "-- dynamic udev -> $udev_lib"
  20754. cat >>confdefs.h <<_ACEOF
  20755. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20756. _ACEOF
  20757. fi
  20758. fi
  20759. fi
  20760. }
  20761. CheckDBus()
  20762. {
  20763. # Check whether --enable-dbus was given.
  20764. if test "${enable_dbus+set}" = set; then :
  20765. enableval=$enable_dbus;
  20766. else
  20767. enable_dbus=yes
  20768. fi
  20769. if test x$enable_dbus = xyes; then
  20770. pkg_failed=no
  20771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20772. $as_echo_n "checking for dbus-1... " >&6; }
  20773. if test -n "$DBUS_CFLAGS"; then
  20774. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20775. elif test -n "$PKG_CONFIG"; then
  20776. if test -n "$PKG_CONFIG" && \
  20777. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20778. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20779. ac_status=$?
  20780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20781. test $ac_status = 0; }; then
  20782. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20783. test "x$?" != "x0" && pkg_failed=yes
  20784. else
  20785. pkg_failed=yes
  20786. fi
  20787. else
  20788. pkg_failed=untried
  20789. fi
  20790. if test -n "$DBUS_LIBS"; then
  20791. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20792. elif test -n "$PKG_CONFIG"; then
  20793. if test -n "$PKG_CONFIG" && \
  20794. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20795. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20796. ac_status=$?
  20797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20798. test $ac_status = 0; }; then
  20799. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20800. test "x$?" != "x0" && pkg_failed=yes
  20801. else
  20802. pkg_failed=yes
  20803. fi
  20804. else
  20805. pkg_failed=untried
  20806. fi
  20807. if test $pkg_failed = yes; then
  20808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20809. $as_echo "no" >&6; }
  20810. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20811. _pkg_short_errors_supported=yes
  20812. else
  20813. _pkg_short_errors_supported=no
  20814. fi
  20815. if test $_pkg_short_errors_supported = yes; then
  20816. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20817. else
  20818. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20819. fi
  20820. # Put the nasty error message in config.log where it belongs
  20821. echo "$DBUS_PKG_ERRORS" >&5
  20822. have_dbus=no
  20823. elif test $pkg_failed = untried; then
  20824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20825. $as_echo "no" >&6; }
  20826. have_dbus=no
  20827. else
  20828. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20829. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20831. $as_echo "yes" >&6; }
  20832. have_dbus=yes
  20833. fi
  20834. save_CPPFLAGS="$CPPFLAGS"
  20835. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20836. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20837. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20838. have_dbus_dbus_h_hdr=yes
  20839. else
  20840. have_dbus_dbus_h_hdr=no
  20841. fi
  20842. CPPFLAGS="$save_CPPFLAGS"
  20843. if test x$have_dbus_dbus_h_hdr = xyes; then
  20844. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20845. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20846. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20847. fi
  20848. fi
  20849. }
  20850. CheckIME()
  20851. {
  20852. # Check whether --enable-ime was given.
  20853. if test "${enable_ime+set}" = set; then :
  20854. enableval=$enable_ime;
  20855. else
  20856. enable_ime=yes
  20857. fi
  20858. if test x$enable_ime = xyes; then
  20859. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20860. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20861. fi
  20862. }
  20863. CheckInotify()
  20864. {
  20865. save_LIBS="$LIBS"
  20866. case "$host" in
  20867. *-*-freebsd*) LIBS="$LIBS -linotify"
  20868. ;;
  20869. esac
  20870. for ac_header in sys/inotify.h
  20871. do :
  20872. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20873. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20874. cat >>confdefs.h <<_ACEOF
  20875. #define HAVE_SYS_INOTIFY_H 1
  20876. _ACEOF
  20877. have_inotify_inotify_h_hdr=yes
  20878. fi
  20879. done
  20880. for ac_func in inotify_init
  20881. do :
  20882. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20883. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20884. cat >>confdefs.h <<_ACEOF
  20885. #define HAVE_INOTIFY_INIT 1
  20886. _ACEOF
  20887. have_inotify=yes
  20888. fi
  20889. done
  20890. for ac_func in inotify_init1
  20891. do :
  20892. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20893. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20894. cat >>confdefs.h <<_ACEOF
  20895. #define HAVE_INOTIFY_INIT1 1
  20896. _ACEOF
  20897. fi
  20898. done
  20899. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20900. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20901. case "$host" in
  20902. *-*-freebsd*)
  20903. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20904. ;;
  20905. esac
  20906. fi
  20907. LIBS="$save_LIBS"
  20908. }
  20909. CheckIBus()
  20910. {
  20911. # Check whether --enable-ibus was given.
  20912. if test "${enable_ibus+set}" = set; then :
  20913. enableval=$enable_ibus;
  20914. else
  20915. enable_ibus=yes
  20916. fi
  20917. if test x$enable_ibus = xyes; then
  20918. pkg_failed=no
  20919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20920. $as_echo_n "checking for ibus-1.0... " >&6; }
  20921. if test -n "$IBUS_CFLAGS"; then
  20922. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20923. elif test -n "$PKG_CONFIG"; then
  20924. if test -n "$PKG_CONFIG" && \
  20925. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20926. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20927. ac_status=$?
  20928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20929. test $ac_status = 0; }; then
  20930. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20931. test "x$?" != "x0" && pkg_failed=yes
  20932. else
  20933. pkg_failed=yes
  20934. fi
  20935. else
  20936. pkg_failed=untried
  20937. fi
  20938. if test -n "$IBUS_LIBS"; then
  20939. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20940. elif test -n "$PKG_CONFIG"; then
  20941. if test -n "$PKG_CONFIG" && \
  20942. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20943. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20944. ac_status=$?
  20945. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20946. test $ac_status = 0; }; then
  20947. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20948. test "x$?" != "x0" && pkg_failed=yes
  20949. else
  20950. pkg_failed=yes
  20951. fi
  20952. else
  20953. pkg_failed=untried
  20954. fi
  20955. if test $pkg_failed = yes; then
  20956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20957. $as_echo "no" >&6; }
  20958. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20959. _pkg_short_errors_supported=yes
  20960. else
  20961. _pkg_short_errors_supported=no
  20962. fi
  20963. if test $_pkg_short_errors_supported = yes; then
  20964. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20965. else
  20966. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20967. fi
  20968. # Put the nasty error message in config.log where it belongs
  20969. echo "$IBUS_PKG_ERRORS" >&5
  20970. have_ibus=no
  20971. elif test $pkg_failed = untried; then
  20972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20973. $as_echo "no" >&6; }
  20974. have_ibus=no
  20975. else
  20976. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20977. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20979. $as_echo "yes" >&6; }
  20980. have_ibus=yes
  20981. fi
  20982. save_CPPFLAGS="$CPPFLAGS"
  20983. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20984. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20985. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20986. have_ibus_ibus_h_hdr=yes
  20987. else
  20988. have_ibus_ibus_h_hdr=no
  20989. fi
  20990. CPPFLAGS="$save_CPPFLAGS"
  20991. if test x$have_ibus_ibus_h_hdr = xyes; then
  20992. if test x$enable_ime != xyes; then
  20993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20994. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20995. have_ibus_ibus_h_hdr=no
  20996. elif test x$enable_dbus != xyes; then
  20997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20998. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20999. have_ibus_ibus_h_hdr=no
  21000. elif test x$have_inotify_inotify_h_hdr != xyes; then
  21001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  21002. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  21003. have_ibus_ibus_h_hdr=no
  21004. else
  21005. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  21006. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  21007. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  21008. fi
  21009. fi
  21010. fi
  21011. }
  21012. CheckFcitx()
  21013. {
  21014. # Check whether --enable-fcitx was given.
  21015. if test "${enable_fcitx+set}" = set; then :
  21016. enableval=$enable_fcitx;
  21017. else
  21018. enable_fcitx=yes
  21019. fi
  21020. if test x$enable_fcitx = xyes; then
  21021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  21022. $as_echo_n "checking for fcitx support... " >&6; }
  21023. have_fcitx=no
  21024. if test x$enable_ime != xyes; then
  21025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  21026. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  21027. elif test x$have_dbus_dbus_h_hdr != xyes; then
  21028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  21029. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  21030. else
  21031. have_fcitx=yes
  21032. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  21033. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  21034. fi
  21035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  21036. $as_echo "$have_fcitx" >&6; }
  21037. fi
  21038. }
  21039. CheckJoystickMFI()
  21040. {
  21041. # Check whether --enable-joystick-mfi was given.
  21042. if test "${enable_joystick_mfi+set}" = set; then :
  21043. enableval=$enable_joystick_mfi;
  21044. else
  21045. enable_joystick_mfi=yes
  21046. fi
  21047. if test x$enable_joystick_mfi = xyes; then
  21048. save_CFLAGS="$CFLAGS"
  21049. save_LDFLAGS="$LDFLAGS"
  21050. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  21051. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  21053. $as_echo_n "checking for GameController framework... " >&6; }
  21054. enable_joystick_mfi=no
  21055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21056. /* end confdefs.h. */
  21057. #include <AvailabilityMacros.h>
  21058. #include <TargetConditionals.h>
  21059. #import <GameController/GameController.h>
  21060. int
  21061. main ()
  21062. {
  21063. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  21064. #error GameController framework doesn't work on this configuration
  21065. #endif
  21066. #if TARGET_CPU_X86
  21067. #error GameController framework doesn't work on this configuration
  21068. #endif
  21069. ;
  21070. return 0;
  21071. }
  21072. _ACEOF
  21073. if ac_fn_c_try_link "$LINENO"; then :
  21074. enable_joystick_mfi=yes
  21075. fi
  21076. rm -f core conftest.err conftest.$ac_objext \
  21077. conftest$ac_exeext conftest.$ac_ext
  21078. CFLAGS="$save_CFLAGS"
  21079. LDFLAGS="$save_LDFLAGS"
  21080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  21081. $as_echo "$enable_joystick_mfi" >&6; }
  21082. if test x$enable_joystick_mfi = xyes; then
  21083. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21084. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  21085. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21086. fi
  21087. fi
  21088. }
  21089. CheckPTHREAD()
  21090. {
  21091. case "$host" in
  21092. *-*-emscripten*)
  21093. enable_pthreads_default=no
  21094. ;;
  21095. *)
  21096. enable_pthreads_default=yes
  21097. ;;
  21098. esac
  21099. # Check whether --enable-pthreads was given.
  21100. if test "${enable_pthreads+set}" = set; then :
  21101. enableval=$enable_pthreads;
  21102. else
  21103. enable_pthreads=maybe
  21104. fi
  21105. # Check whether --enable-pthread-sem was given.
  21106. if test "${enable_pthread_sem+set}" = set; then :
  21107. enableval=$enable_pthread_sem;
  21108. else
  21109. enable_pthread_sem=maybe
  21110. fi
  21111. if test x$enable_pthreads = xmaybe; then
  21112. enable_pthreads=$enable_pthreads_default
  21113. fi
  21114. if test x$enable_pthread_sem = xmaybe; then
  21115. enable_pthread_sem=$enable_pthreads
  21116. fi
  21117. case "$host" in
  21118. *-*-android*)
  21119. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21120. pthread_lib=""
  21121. ;;
  21122. *-*-linux*|*-*-uclinux*)
  21123. pthread_cflags="-D_REENTRANT"
  21124. pthread_lib="-lpthread"
  21125. ;;
  21126. *-*-bsdi*)
  21127. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21128. pthread_lib=""
  21129. ;;
  21130. *-*-darwin*)
  21131. pthread_cflags="-D_THREAD_SAFE"
  21132. # causes Carbon.p complaints?
  21133. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21134. ;;
  21135. *-*-freebsd*|*-*-dragonfly*)
  21136. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21137. pthread_lib="-pthread"
  21138. ;;
  21139. *-*-netbsd*)
  21140. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21141. pthread_lib="-lpthread"
  21142. ;;
  21143. *-*-openbsd*)
  21144. pthread_cflags="-D_REENTRANT"
  21145. pthread_lib="-pthread"
  21146. ;;
  21147. *-*-solaris2.9)
  21148. # From Solaris 9+, posix4's preferred name is rt.
  21149. pthread_cflags="-D_REENTRANT"
  21150. pthread_lib="-lpthread -lrt"
  21151. ;;
  21152. *-*-solaris2.10)
  21153. # Solaris 10+ merged pthread into libc.
  21154. pthread_cflags="-D_REENTRANT"
  21155. pthread_lib="-lrt"
  21156. ;;
  21157. *-*-solaris*)
  21158. # Solaris 11+ merged rt into libc.
  21159. pthread_cflags="-D_REENTRANT"
  21160. pthread_lib=""
  21161. ;;
  21162. *-*-sysv5*)
  21163. pthread_cflags="-D_REENTRANT -Kthread"
  21164. pthread_lib=""
  21165. ;;
  21166. *-*-aix*)
  21167. pthread_cflags="-D_REENTRANT -mthreads"
  21168. pthread_lib="-lpthread"
  21169. ;;
  21170. *-*-hpux11*)
  21171. pthread_cflags="-D_REENTRANT"
  21172. pthread_lib="-L/usr/lib -lpthread"
  21173. ;;
  21174. *-*-haiku*)
  21175. pthread_cflags="-D_REENTRANT"
  21176. pthread_lib=""
  21177. ;;
  21178. *-*-nto*)
  21179. pthread_cflags="-D_REENTRANT"
  21180. pthread_lib=""
  21181. ;;
  21182. *-*-emscripten*)
  21183. pthread_cflags="-D_REENTRANT -pthread"
  21184. pthread_lib="-pthread"
  21185. ;;
  21186. *)
  21187. pthread_cflags="-D_REENTRANT"
  21188. pthread_lib="-lpthread"
  21189. ;;
  21190. esac
  21191. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  21192. # Save the original compiler flags and libraries
  21193. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21194. # Add the pthread compiler flags and libraries
  21195. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21196. # Check to see if we have pthread support on this system
  21197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  21198. $as_echo_n "checking for pthreads... " >&6; }
  21199. use_pthreads=no
  21200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21201. /* end confdefs.h. */
  21202. #include <pthread.h>
  21203. int
  21204. main ()
  21205. {
  21206. pthread_attr_t type;
  21207. pthread_attr_init(&type);
  21208. ;
  21209. return 0;
  21210. }
  21211. _ACEOF
  21212. if ac_fn_c_try_link "$LINENO"; then :
  21213. use_pthreads=yes
  21214. fi
  21215. rm -f core conftest.err conftest.$ac_objext \
  21216. conftest$ac_exeext conftest.$ac_ext
  21217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  21218. $as_echo "$use_pthreads" >&6; }
  21219. # Restore the compiler flags and libraries
  21220. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21221. # Do futher testing if we have pthread support...
  21222. if test x$use_pthreads = xyes; then
  21223. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  21224. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  21225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  21226. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  21227. # Save the original compiler flags and libraries
  21228. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21229. # Add the pthread compiler flags and libraries
  21230. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21231. # Check to see if recursive mutexes are available
  21232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  21233. $as_echo_n "checking for recursive mutexes... " >&6; }
  21234. has_recursive_mutexes=no
  21235. if test x$has_recursive_mutexes = xno; then
  21236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21237. /* end confdefs.h. */
  21238. #define _GNU_SOURCE 1
  21239. #include <pthread.h>
  21240. int
  21241. main ()
  21242. {
  21243. pthread_mutexattr_t attr;
  21244. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  21245. ;
  21246. return 0;
  21247. }
  21248. _ACEOF
  21249. if ac_fn_c_try_link "$LINENO"; then :
  21250. has_recursive_mutexes=yes
  21251. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  21252. fi
  21253. rm -f core conftest.err conftest.$ac_objext \
  21254. conftest$ac_exeext conftest.$ac_ext
  21255. fi
  21256. if test x$has_recursive_mutexes = xno; then
  21257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21258. /* end confdefs.h. */
  21259. #define _GNU_SOURCE 1
  21260. #include <pthread.h>
  21261. int
  21262. main ()
  21263. {
  21264. pthread_mutexattr_t attr;
  21265. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  21266. ;
  21267. return 0;
  21268. }
  21269. _ACEOF
  21270. if ac_fn_c_try_link "$LINENO"; then :
  21271. has_recursive_mutexes=yes
  21272. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  21273. fi
  21274. rm -f core conftest.err conftest.$ac_objext \
  21275. conftest$ac_exeext conftest.$ac_ext
  21276. fi
  21277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21278. $as_echo "$has_recursive_mutexes" >&6; }
  21279. # Check to see if pthread semaphore support is missing
  21280. if test x$enable_pthread_sem = xyes; then
  21281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21282. $as_echo_n "checking for pthread semaphores... " >&6; }
  21283. have_pthread_sem=no
  21284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21285. /* end confdefs.h. */
  21286. #include <pthread.h>
  21287. #include <semaphore.h>
  21288. int
  21289. main ()
  21290. {
  21291. ;
  21292. return 0;
  21293. }
  21294. _ACEOF
  21295. if ac_fn_c_try_compile "$LINENO"; then :
  21296. have_pthread_sem=yes
  21297. fi
  21298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21300. $as_echo "$have_pthread_sem" >&6; }
  21301. fi
  21302. if test x$have_pthread_sem = xyes; then
  21303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21304. $as_echo_n "checking for sem_timedwait... " >&6; }
  21305. have_sem_timedwait=no
  21306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21307. /* end confdefs.h. */
  21308. #include <pthread.h>
  21309. #include <semaphore.h>
  21310. int
  21311. main ()
  21312. {
  21313. sem_timedwait(NULL, NULL);
  21314. ;
  21315. return 0;
  21316. }
  21317. _ACEOF
  21318. if ac_fn_c_try_link "$LINENO"; then :
  21319. have_sem_timedwait=yes
  21320. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21321. fi
  21322. rm -f core conftest.err conftest.$ac_objext \
  21323. conftest$ac_exeext conftest.$ac_ext
  21324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21325. $as_echo "$have_sem_timedwait" >&6; }
  21326. fi
  21327. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21328. "
  21329. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21330. have_pthread_np_h=yes
  21331. else
  21332. have_pthread_np_h=no
  21333. fi
  21334. if test x$have_pthread_np_h = xyes; then
  21335. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21336. fi
  21337. # Check to see if pthread naming is available
  21338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21339. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21341. /* end confdefs.h. */
  21342. /* Override any GCC internal prototype to avoid an error.
  21343. Use char because int might match the return type of a GCC
  21344. builtin and then its argument prototype would still apply. */
  21345. #ifdef __cplusplus
  21346. extern "C"
  21347. #endif
  21348. char pthread_setname_np ();
  21349. int
  21350. main ()
  21351. {
  21352. return pthread_setname_np ();
  21353. ;
  21354. return 0;
  21355. }
  21356. _ACEOF
  21357. if ac_fn_c_try_link "$LINENO"; then :
  21358. has_pthread_setname_np=yes
  21359. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21360. else
  21361. has_pthread_setname_np=no
  21362. fi
  21363. rm -f core conftest.err conftest.$ac_objext \
  21364. conftest$ac_exeext conftest.$ac_ext
  21365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21366. $as_echo "$has_pthread_setname_np" >&6; }
  21367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21368. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21370. /* end confdefs.h. */
  21371. /* Override any GCC internal prototype to avoid an error.
  21372. Use char because int might match the return type of a GCC
  21373. builtin and then its argument prototype would still apply. */
  21374. #ifdef __cplusplus
  21375. extern "C"
  21376. #endif
  21377. char pthread_set_name_np ();
  21378. int
  21379. main ()
  21380. {
  21381. return pthread_set_name_np ();
  21382. ;
  21383. return 0;
  21384. }
  21385. _ACEOF
  21386. if ac_fn_c_try_link "$LINENO"; then :
  21387. has_pthread_set_name_np=yes
  21388. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21389. else
  21390. has_pthread_set_name_np=no
  21391. fi
  21392. rm -f core conftest.err conftest.$ac_objext \
  21393. conftest$ac_exeext conftest.$ac_ext
  21394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21395. $as_echo "$has_pthread_set_name_np" >&6; }
  21396. # Restore the compiler flags and libraries
  21397. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21398. # Basic thread creation functions
  21399. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21400. # Semaphores
  21401. # We can fake these with mutexes and condition variables if necessary
  21402. if test x$have_pthread_sem = xyes; then
  21403. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21404. else
  21405. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21406. fi
  21407. # Mutexes
  21408. # We can fake these with semaphores if necessary
  21409. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21410. # Condition variables
  21411. # We can fake these with semaphores and mutexes if necessary
  21412. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21413. # Thread local storage
  21414. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21415. have_threads=yes
  21416. fi
  21417. fi
  21418. }
  21419. CheckWINDOWS()
  21420. {
  21421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21422. $as_echo_n "checking Windows compiler... " >&6; }
  21423. have_win32_gcc=no
  21424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21425. /* end confdefs.h. */
  21426. #include <windows.h>
  21427. int
  21428. main ()
  21429. {
  21430. ;
  21431. return 0;
  21432. }
  21433. _ACEOF
  21434. if ac_fn_c_try_compile "$LINENO"; then :
  21435. have_win32_gcc=yes
  21436. fi
  21437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21439. $as_echo "$have_win32_gcc" >&6; }
  21440. if test x$have_win32_gcc != xyes; then
  21441. as_fn_error $? "
  21442. *** Your compiler ($CC) does not produce Windows executables!
  21443. " "$LINENO" 5
  21444. fi
  21445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21446. $as_echo_n "checking Windows CE... " >&6; }
  21447. have_wince=no
  21448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21449. /* end confdefs.h. */
  21450. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21451. #error This is not Windows CE
  21452. #endif
  21453. int
  21454. main ()
  21455. {
  21456. ;
  21457. return 0;
  21458. }
  21459. _ACEOF
  21460. if ac_fn_c_try_compile "$LINENO"; then :
  21461. have_wince=yes
  21462. as_fn_error $? "
  21463. *** Sorry, Windows CE is no longer supported.
  21464. " "$LINENO" 5
  21465. fi
  21466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21468. $as_echo "$have_wince" >&6; }
  21469. # This fixes Windows stack alignment with newer GCC
  21470. CheckStackBoundary
  21471. # headers needed elsewhere
  21472. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21473. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21474. have_tpcshrd_h=yes
  21475. fi
  21476. if test x$have_tpcshrd_h = xyes; then
  21477. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21478. fi
  21479. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21480. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21481. have_roapi_h=yes
  21482. fi
  21483. if test x$have_roapi_h = xyes; then
  21484. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21485. fi
  21486. }
  21487. CheckOS2()
  21488. {
  21489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21490. $as_echo_n "checking OS/2 compiler... " >&6; }
  21491. have_os2_gcc=no
  21492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21493. /* end confdefs.h. */
  21494. #include <os2.h>
  21495. int
  21496. main ()
  21497. {
  21498. ;
  21499. return 0;
  21500. }
  21501. _ACEOF
  21502. if ac_fn_c_try_compile "$LINENO"; then :
  21503. have_os2_gcc=yes
  21504. fi
  21505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21507. $as_echo "$have_os2_gcc" >&6; }
  21508. if test x$have_os2_gcc != xyes; then
  21509. as_fn_error $? "
  21510. *** Your compiler ($CC) does not produce OS/2 executables!
  21511. " "$LINENO" 5
  21512. fi
  21513. }
  21514. CheckDIRECTX()
  21515. {
  21516. # Check whether --enable-directx was given.
  21517. if test "${enable_directx+set}" = set; then :
  21518. enableval=$enable_directx;
  21519. else
  21520. enable_directx=yes
  21521. fi
  21522. if test x$enable_directx = xyes; then
  21523. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21524. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21525. have_d3d=yes
  21526. fi
  21527. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21528. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21529. have_d3d11=yes
  21530. fi
  21531. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21532. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21533. have_ddraw=yes
  21534. fi
  21535. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21536. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21537. have_dsound=yes
  21538. fi
  21539. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21540. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21541. have_dinput=yes
  21542. fi
  21543. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21544. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21545. have_dxgi=yes
  21546. fi
  21547. if test x$have_ddraw = xyes; then
  21548. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21549. fi
  21550. if test x$have_dinput = xyes; then
  21551. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21552. fi
  21553. if test x$have_dsound = xyes; then
  21554. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21555. fi
  21556. if test x$have_dxgi = xyes; then
  21557. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21558. fi
  21559. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21560. # FIXME: ...so force it off for now.
  21561. case "$host" in
  21562. *-*-cygwin*)
  21563. have_dinput=false
  21564. ;;
  21565. esac
  21566. fi
  21567. # Check whether --enable-xinput was given.
  21568. if test "${enable_xinput+set}" = set; then :
  21569. enableval=$enable_xinput;
  21570. else
  21571. enable_xinput=yes
  21572. fi
  21573. if test x$enable_xinput = xyes; then
  21574. have_xinput_gamepadex=no
  21575. have_xinput_stateex=no
  21576. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21577. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21578. have_xinput=yes
  21579. fi
  21580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21581. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21583. /* end confdefs.h. */
  21584. #include <windows.h>
  21585. #include <xinput.h>
  21586. XINPUT_GAMEPAD_EX x1;
  21587. int
  21588. main ()
  21589. {
  21590. ;
  21591. return 0;
  21592. }
  21593. _ACEOF
  21594. if ac_fn_c_try_compile "$LINENO"; then :
  21595. have_xinput_gamepadex=yes
  21596. fi
  21597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21599. $as_echo "$have_xinput_gamepadex" >&6; }
  21600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21601. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21603. /* end confdefs.h. */
  21604. #include <windows.h>
  21605. #include <xinput.h>
  21606. XINPUT_STATE_EX s1;
  21607. int
  21608. main ()
  21609. {
  21610. ;
  21611. return 0;
  21612. }
  21613. _ACEOF
  21614. if ac_fn_c_try_compile "$LINENO"; then :
  21615. have_xinput_stateex=yes
  21616. fi
  21617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21619. $as_echo "$have_xinput_stateex" >&6; }
  21620. if test x$have_xinput = xyes; then
  21621. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21622. fi
  21623. if test x$have_xinput_gamepadex = xyes; then
  21624. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21625. fi
  21626. if test x$have_xinput_stateex = xyes; then
  21627. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21628. fi
  21629. fi
  21630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21631. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21633. /* end confdefs.h. */
  21634. #define COBJMACROS
  21635. #include <windows.gaming.input.h>
  21636. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21637. int
  21638. main ()
  21639. {
  21640. ;
  21641. return 0;
  21642. }
  21643. _ACEOF
  21644. if ac_fn_c_try_compile "$LINENO"; then :
  21645. have_wgi=yes
  21646. else
  21647. have_wgi=no
  21648. fi
  21649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21651. $as_echo "$have_wgi" >&6; }
  21652. if test x$have_wgi = xyes; then
  21653. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21654. fi
  21655. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21656. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21657. have_wasapi=yes
  21658. fi
  21659. if test x$have_wasapi = xyes; then
  21660. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21661. fi
  21662. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21663. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21664. else
  21665. have_wasapi=no
  21666. fi
  21667. if test x$have_wasapi = xyes; then
  21668. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21669. fi
  21670. # Check whether --enable-wasapi was given.
  21671. if test "${enable_wasapi+set}" = set; then :
  21672. enableval=$enable_wasapi;
  21673. else
  21674. enable_wasapi=yes
  21675. fi
  21676. }
  21677. CheckDLOPEN()
  21678. {
  21679. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21680. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21681. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21682. have_dlfcn_h=yes
  21683. else
  21684. have_dlfcn_h=no
  21685. fi
  21686. have_dlopen=no
  21687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21688. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21689. if ${ac_cv_lib_c_dlopen+:} false; then :
  21690. $as_echo_n "(cached) " >&6
  21691. else
  21692. ac_check_lib_save_LIBS=$LIBS
  21693. LIBS="-lc $LIBS"
  21694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21695. /* end confdefs.h. */
  21696. /* Override any GCC internal prototype to avoid an error.
  21697. Use char because int might match the return type of a GCC
  21698. builtin and then its argument prototype would still apply. */
  21699. #ifdef __cplusplus
  21700. extern "C"
  21701. #endif
  21702. char dlopen ();
  21703. int
  21704. main ()
  21705. {
  21706. return dlopen ();
  21707. ;
  21708. return 0;
  21709. }
  21710. _ACEOF
  21711. if ac_fn_c_try_link "$LINENO"; then :
  21712. ac_cv_lib_c_dlopen=yes
  21713. else
  21714. ac_cv_lib_c_dlopen=no
  21715. fi
  21716. rm -f core conftest.err conftest.$ac_objext \
  21717. conftest$ac_exeext conftest.$ac_ext
  21718. LIBS=$ac_check_lib_save_LIBS
  21719. fi
  21720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21721. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21722. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21723. have_dlopen=yes
  21724. else
  21725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21726. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21727. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21728. $as_echo_n "(cached) " >&6
  21729. else
  21730. ac_check_lib_save_LIBS=$LIBS
  21731. LIBS="-ldl $LIBS"
  21732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21733. /* end confdefs.h. */
  21734. /* Override any GCC internal prototype to avoid an error.
  21735. Use char because int might match the return type of a GCC
  21736. builtin and then its argument prototype would still apply. */
  21737. #ifdef __cplusplus
  21738. extern "C"
  21739. #endif
  21740. char dlopen ();
  21741. int
  21742. main ()
  21743. {
  21744. return dlopen ();
  21745. ;
  21746. return 0;
  21747. }
  21748. _ACEOF
  21749. if ac_fn_c_try_link "$LINENO"; then :
  21750. ac_cv_lib_dl_dlopen=yes
  21751. else
  21752. ac_cv_lib_dl_dlopen=no
  21753. fi
  21754. rm -f core conftest.err conftest.$ac_objext \
  21755. conftest$ac_exeext conftest.$ac_ext
  21756. LIBS=$ac_check_lib_save_LIBS
  21757. fi
  21758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21759. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21760. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21761. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21762. fi
  21763. fi
  21764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21765. $as_echo_n "checking for dlopen... " >&6; }
  21766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21767. $as_echo "$have_dlopen" >&6; }
  21768. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21769. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21770. if test x$enable_loadso = xyes; then
  21771. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21772. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21773. have_loadso=yes
  21774. fi
  21775. fi
  21776. }
  21777. CheckO_CLOEXEC()
  21778. {
  21779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21780. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21782. /* end confdefs.h. */
  21783. #include <fcntl.h>
  21784. int flag = O_CLOEXEC;
  21785. int
  21786. main ()
  21787. {
  21788. ;
  21789. return 0;
  21790. }
  21791. _ACEOF
  21792. if ac_fn_c_try_compile "$LINENO"; then :
  21793. have_o_cloexec=yes
  21794. else
  21795. have_o_cloexec=no
  21796. fi
  21797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21799. $as_echo "$have_o_cloexec" >&6; }
  21800. if test $have_o_cloexec = yes; then
  21801. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21802. fi
  21803. }
  21804. CheckUSBHID()
  21805. {
  21806. case "$host" in
  21807. *-*-*bsd*|*-*-dragonfly*)
  21808. if test x$enable_joystick = xyes; then
  21809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21810. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21811. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21812. $as_echo_n "(cached) " >&6
  21813. else
  21814. ac_check_lib_save_LIBS=$LIBS
  21815. LIBS="-lusbhid $LIBS"
  21816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21817. /* end confdefs.h. */
  21818. /* Override any GCC internal prototype to avoid an error.
  21819. Use char because int might match the return type of a GCC
  21820. builtin and then its argument prototype would still apply. */
  21821. #ifdef __cplusplus
  21822. extern "C"
  21823. #endif
  21824. char hid_init ();
  21825. int
  21826. main ()
  21827. {
  21828. return hid_init ();
  21829. ;
  21830. return 0;
  21831. }
  21832. _ACEOF
  21833. if ac_fn_c_try_link "$LINENO"; then :
  21834. ac_cv_lib_usbhid_hid_init=yes
  21835. else
  21836. ac_cv_lib_usbhid_hid_init=no
  21837. fi
  21838. rm -f core conftest.err conftest.$ac_objext \
  21839. conftest$ac_exeext conftest.$ac_ext
  21840. LIBS=$ac_check_lib_save_LIBS
  21841. fi
  21842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21843. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21844. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21845. have_libusbhid=yes
  21846. fi
  21847. if test x$have_libusbhid = xyes; then
  21848. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21849. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21850. USB_CFLAGS="-DHAVE_USBHID_H"
  21851. fi
  21852. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21853. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21854. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21855. fi
  21856. USB_LIBS="$USB_LIBS -lusbhid"
  21857. else
  21858. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21859. if test "x$ac_cv_header_usb_h" = xyes; then :
  21860. USB_CFLAGS="-DHAVE_USB_H"
  21861. fi
  21862. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21863. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21864. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21865. fi
  21866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21867. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21868. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21869. $as_echo_n "(cached) " >&6
  21870. else
  21871. ac_check_lib_save_LIBS=$LIBS
  21872. LIBS="-lusb $LIBS"
  21873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21874. /* end confdefs.h. */
  21875. /* Override any GCC internal prototype to avoid an error.
  21876. Use char because int might match the return type of a GCC
  21877. builtin and then its argument prototype would still apply. */
  21878. #ifdef __cplusplus
  21879. extern "C"
  21880. #endif
  21881. char hid_init ();
  21882. int
  21883. main ()
  21884. {
  21885. return hid_init ();
  21886. ;
  21887. return 0;
  21888. }
  21889. _ACEOF
  21890. if ac_fn_c_try_link "$LINENO"; then :
  21891. ac_cv_lib_usb_hid_init=yes
  21892. else
  21893. ac_cv_lib_usb_hid_init=no
  21894. fi
  21895. rm -f core conftest.err conftest.$ac_objext \
  21896. conftest$ac_exeext conftest.$ac_ext
  21897. LIBS=$ac_check_lib_save_LIBS
  21898. fi
  21899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21900. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21901. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21902. USB_LIBS="$USB_LIBS -lusb"
  21903. fi
  21904. fi
  21905. save_CFLAGS="$CFLAGS"
  21906. CFLAGS="$CFLAGS $USB_CFLAGS"
  21907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21908. $as_echo_n "checking for usbhid... " >&6; }
  21909. have_usbhid=no
  21910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21911. /* end confdefs.h. */
  21912. #include <sys/types.h>
  21913. #if defined(HAVE_USB_H)
  21914. #include <usb.h>
  21915. #endif
  21916. #ifdef __DragonFly__
  21917. # include <bus/u4b/usb.h>
  21918. # include <bus/u4b/usbhid.h>
  21919. #else
  21920. # include <dev/usb/usb.h>
  21921. # include <dev/usb/usbhid.h>
  21922. #endif
  21923. #if defined(HAVE_USBHID_H)
  21924. #include <usbhid.h>
  21925. #elif defined(HAVE_LIBUSB_H)
  21926. #include <libusb.h>
  21927. #elif defined(HAVE_LIBUSBHID_H)
  21928. #include <libusbhid.h>
  21929. #endif
  21930. int
  21931. main ()
  21932. {
  21933. struct report_desc *repdesc;
  21934. struct usb_ctl_report *repbuf;
  21935. hid_kind_t hidkind;
  21936. ;
  21937. return 0;
  21938. }
  21939. _ACEOF
  21940. if ac_fn_c_try_compile "$LINENO"; then :
  21941. have_usbhid=yes
  21942. fi
  21943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21945. $as_echo "$have_usbhid" >&6; }
  21946. if test x$have_usbhid = xyes; then
  21947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21948. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21949. have_usbhid_ucr_data=no
  21950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21951. /* end confdefs.h. */
  21952. #include <sys/types.h>
  21953. #if defined(HAVE_USB_H)
  21954. #include <usb.h>
  21955. #endif
  21956. #ifdef __DragonFly__
  21957. # include <bus/u4b/usb.h>
  21958. # include <bus/u4b/usbhid.h>
  21959. #else
  21960. # include <dev/usb/usb.h>
  21961. # include <dev/usb/usbhid.h>
  21962. #endif
  21963. #if defined(HAVE_USBHID_H)
  21964. #include <usbhid.h>
  21965. #elif defined(HAVE_LIBUSB_H)
  21966. #include <libusb.h>
  21967. #elif defined(HAVE_LIBUSBHID_H)
  21968. #include <libusbhid.h>
  21969. #endif
  21970. int
  21971. main ()
  21972. {
  21973. struct usb_ctl_report buf;
  21974. if (buf.ucr_data) { }
  21975. ;
  21976. return 0;
  21977. }
  21978. _ACEOF
  21979. if ac_fn_c_try_compile "$LINENO"; then :
  21980. have_usbhid_ucr_data=yes
  21981. fi
  21982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21983. if test x$have_usbhid_ucr_data = xyes; then
  21984. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21985. fi
  21986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21987. $as_echo "$have_usbhid_ucr_data" >&6; }
  21988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21989. $as_echo_n "checking for new usbhid API... " >&6; }
  21990. have_usbhid_new=no
  21991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21992. /* end confdefs.h. */
  21993. #include <sys/types.h>
  21994. #if defined(HAVE_USB_H)
  21995. #include <usb.h>
  21996. #endif
  21997. #ifdef __DragonFly__
  21998. #include <bus/u4b/usb.h>
  21999. #include <bus/u4b/usbhid.h>
  22000. #else
  22001. #include <dev/usb/usb.h>
  22002. #include <dev/usb/usbhid.h>
  22003. #endif
  22004. #if defined(HAVE_USBHID_H)
  22005. #include <usbhid.h>
  22006. #elif defined(HAVE_LIBUSB_H)
  22007. #include <libusb.h>
  22008. #elif defined(HAVE_LIBUSBHID_H)
  22009. #include <libusbhid.h>
  22010. #endif
  22011. int
  22012. main ()
  22013. {
  22014. report_desc_t d;
  22015. hid_start_parse(d, 1, 1);
  22016. ;
  22017. return 0;
  22018. }
  22019. _ACEOF
  22020. if ac_fn_c_try_compile "$LINENO"; then :
  22021. have_usbhid_new=yes
  22022. fi
  22023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22024. if test x$have_usbhid_new = xyes; then
  22025. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  22026. fi
  22027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  22028. $as_echo "$have_usbhid_new" >&6; }
  22029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  22030. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  22031. have_machine_joystick=no
  22032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22033. /* end confdefs.h. */
  22034. #include <machine/joystick.h>
  22035. int
  22036. main ()
  22037. {
  22038. struct joystick t;
  22039. ;
  22040. return 0;
  22041. }
  22042. _ACEOF
  22043. if ac_fn_c_try_compile "$LINENO"; then :
  22044. have_machine_joystick=yes
  22045. fi
  22046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22047. if test x$have_machine_joystick = xyes; then
  22048. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  22049. fi
  22050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  22051. $as_echo "$have_machine_joystick" >&6; }
  22052. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  22053. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  22054. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  22055. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  22056. have_joystick=yes
  22057. fi
  22058. CFLAGS="$save_CFLAGS"
  22059. fi
  22060. ;;
  22061. esac
  22062. }
  22063. CheckHIDAPI()
  22064. {
  22065. # Check whether --enable-hidapi-joystick was given.
  22066. if test "${enable_hidapi_joystick+set}" = set; then :
  22067. enableval=$enable_hidapi_joystick;
  22068. else
  22069. enable_hidapi_joystick=yes
  22070. fi
  22071. # Check whether --enable-hidapi-libusb was given.
  22072. if test "${enable_hidapi_libusb+set}" = set; then :
  22073. enableval=$enable_hidapi_libusb;
  22074. else
  22075. enable_hidapi_libusb=maybe
  22076. fi
  22077. if test x$enable_hidapi = xyes; then
  22078. case "$host" in
  22079. # libusb does not support iOS
  22080. *-ios-* )
  22081. enable_hidapi_libusb=no
  22082. ;;
  22083. # On the other hand, *BSD specifically uses libusb only
  22084. *-*-*bsd* )
  22085. enable_hidapi_libusb=yes
  22086. require_hidapi_libusb=yes
  22087. ;;
  22088. *-*-os2* )
  22089. enable_hidapi_libusb=yes
  22090. ;;
  22091. esac
  22092. hidapi_support=yes
  22093. if test x$enable_hidapi_libusb = xyes; then
  22094. pkg_failed=no
  22095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  22096. $as_echo_n "checking for libusb-1.0... " >&6; }
  22097. if test -n "$LIBUSB_CFLAGS"; then
  22098. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  22099. elif test -n "$PKG_CONFIG"; then
  22100. if test -n "$PKG_CONFIG" && \
  22101. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  22102. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  22103. ac_status=$?
  22104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22105. test $ac_status = 0; }; then
  22106. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  22107. test "x$?" != "x0" && pkg_failed=yes
  22108. else
  22109. pkg_failed=yes
  22110. fi
  22111. else
  22112. pkg_failed=untried
  22113. fi
  22114. if test -n "$LIBUSB_LIBS"; then
  22115. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  22116. elif test -n "$PKG_CONFIG"; then
  22117. if test -n "$PKG_CONFIG" && \
  22118. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  22119. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  22120. ac_status=$?
  22121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22122. test $ac_status = 0; }; then
  22123. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  22124. test "x$?" != "x0" && pkg_failed=yes
  22125. else
  22126. pkg_failed=yes
  22127. fi
  22128. else
  22129. pkg_failed=untried
  22130. fi
  22131. if test $pkg_failed = yes; then
  22132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22133. $as_echo "no" >&6; }
  22134. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22135. _pkg_short_errors_supported=yes
  22136. else
  22137. _pkg_short_errors_supported=no
  22138. fi
  22139. if test $_pkg_short_errors_supported = yes; then
  22140. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  22141. else
  22142. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  22143. fi
  22144. # Put the nasty error message in config.log where it belongs
  22145. echo "$LIBUSB_PKG_ERRORS" >&5
  22146. have_libusb=no
  22147. elif test $pkg_failed = untried; then
  22148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22149. $as_echo "no" >&6; }
  22150. have_libusb=no
  22151. else
  22152. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  22153. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  22154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22155. $as_echo "yes" >&6; }
  22156. have_libusb=yes
  22157. fi
  22158. save_CPPFLAGS="$CPPFLAGS"
  22159. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  22160. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22161. if test "x$ac_cv_header_libusb_h" = xyes; then :
  22162. have_libusb_h=yes
  22163. else
  22164. have_libusb_h=no
  22165. fi
  22166. CPPFLAGS="$save_CPPFLAGS"
  22167. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  22168. hidapi_support=no
  22169. fi
  22170. fi
  22171. if test x$hidapi_support = xyes; then
  22172. if test x$have_libusb_h = xyes; then
  22173. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  22174. if test x$require_hidapi_libusb = xyes; then
  22175. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  22176. else
  22177. if test x$have_loadso != xyes; then
  22178. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  22179. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  22180. fi
  22181. # libusb is loaded dynamically, so don't add it to LDFLAGS
  22182. libusb_lib=""
  22183. case "$host" in
  22184. *-*-darwin* )
  22185. libusb_lib="libusb-1.0.0.dylib"
  22186. ;;
  22187. *-*-cygwin* | *-*-mingw* )
  22188. libusb_lib="libusb-1.0.dll"
  22189. ;;
  22190. *-*-os2* )
  22191. libusb_lib="usb100.dll"
  22192. ;;
  22193. esac
  22194. if test x$libusb_lib = x; then
  22195. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22196. fi
  22197. cat >>confdefs.h <<_ACEOF
  22198. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  22199. _ACEOF
  22200. fi
  22201. fi
  22202. fi
  22203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  22204. $as_echo_n "checking for hidapi joystick support... " >&6; }
  22205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  22206. $as_echo "$hidapi_support" >&6; }
  22207. fi
  22208. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  22209. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  22210. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  22211. fi
  22212. }
  22213. CheckClockGettime()
  22214. {
  22215. # Check whether --enable-clock_gettime was given.
  22216. if test "${enable_clock_gettime+set}" = set; then :
  22217. enableval=$enable_clock_gettime;
  22218. else
  22219. enable_clock_gettime=yes
  22220. fi
  22221. if test x$enable_clock_gettime = xyes; then
  22222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  22223. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  22224. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  22225. $as_echo_n "(cached) " >&6
  22226. else
  22227. ac_check_lib_save_LIBS=$LIBS
  22228. LIBS="-lrt $LIBS"
  22229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22230. /* end confdefs.h. */
  22231. /* Override any GCC internal prototype to avoid an error.
  22232. Use char because int might match the return type of a GCC
  22233. builtin and then its argument prototype would still apply. */
  22234. #ifdef __cplusplus
  22235. extern "C"
  22236. #endif
  22237. char clock_gettime ();
  22238. int
  22239. main ()
  22240. {
  22241. return clock_gettime ();
  22242. ;
  22243. return 0;
  22244. }
  22245. _ACEOF
  22246. if ac_fn_c_try_link "$LINENO"; then :
  22247. ac_cv_lib_rt_clock_gettime=yes
  22248. else
  22249. ac_cv_lib_rt_clock_gettime=no
  22250. fi
  22251. rm -f core conftest.err conftest.$ac_objext \
  22252. conftest$ac_exeext conftest.$ac_ext
  22253. LIBS=$ac_check_lib_save_LIBS
  22254. fi
  22255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  22256. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  22257. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  22258. have_clock_gettime=yes
  22259. fi
  22260. if test x$have_clock_gettime = xyes; then
  22261. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  22263. else
  22264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  22265. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  22266. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  22267. $as_echo_n "(cached) " >&6
  22268. else
  22269. ac_check_lib_save_LIBS=$LIBS
  22270. LIBS="-lc $LIBS"
  22271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22272. /* end confdefs.h. */
  22273. /* Override any GCC internal prototype to avoid an error.
  22274. Use char because int might match the return type of a GCC
  22275. builtin and then its argument prototype would still apply. */
  22276. #ifdef __cplusplus
  22277. extern "C"
  22278. #endif
  22279. char clock_gettime ();
  22280. int
  22281. main ()
  22282. {
  22283. return clock_gettime ();
  22284. ;
  22285. return 0;
  22286. }
  22287. _ACEOF
  22288. if ac_fn_c_try_link "$LINENO"; then :
  22289. ac_cv_lib_c_clock_gettime=yes
  22290. else
  22291. ac_cv_lib_c_clock_gettime=no
  22292. fi
  22293. rm -f core conftest.err conftest.$ac_objext \
  22294. conftest$ac_exeext conftest.$ac_ext
  22295. LIBS=$ac_check_lib_save_LIBS
  22296. fi
  22297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22298. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22299. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22300. have_clock_gettime=yes
  22301. fi
  22302. if test x$have_clock_gettime = xyes; then
  22303. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22304. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22305. fi
  22306. fi
  22307. fi
  22308. }
  22309. CheckLinuxVersion()
  22310. {
  22311. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22312. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22313. have_linux_version_h=yes
  22314. fi
  22315. if test x$have_linux_version_h = xyes; then
  22316. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22317. fi
  22318. }
  22319. CheckRPATH()
  22320. {
  22321. # Check whether --enable-rpath was given.
  22322. if test "${enable_rpath+set}" = set; then :
  22323. enableval=$enable_rpath;
  22324. else
  22325. enable_rpath=yes
  22326. fi
  22327. }
  22328. CheckEventSignals()
  22329. {
  22330. # Check whether --enable-backgrounding-signal was given.
  22331. if test "${enable_backgrounding_signal+set}" = set; then :
  22332. enableval=$enable_backgrounding_signal;
  22333. else
  22334. enable_backgrounding_signal=no
  22335. fi
  22336. if test x$enable_backgrounding_signal != xno; then
  22337. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22338. fi
  22339. # Check whether --enable-foregrounding-signal was given.
  22340. if test "${enable_foregrounding_signal+set}" = set; then :
  22341. enableval=$enable_foregrounding_signal;
  22342. else
  22343. enable_foregrounding_signal=no
  22344. fi
  22345. if test x$enable_foregrounding_signal != xno; then
  22346. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22347. fi
  22348. }
  22349. CheckVirtualJoystick()
  22350. {
  22351. # Check whether --enable-joystick-virtual was given.
  22352. if test "${enable_joystick_virtual+set}" = set; then :
  22353. enableval=$enable_joystick_virtual;
  22354. else
  22355. enable_joystick_virtual=yes
  22356. fi
  22357. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22358. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22359. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22360. have_joystick_virtual=yes
  22361. fi
  22362. }
  22363. CheckWarnAll
  22364. CheckNoStrictAliasing
  22365. CheckEventSignals
  22366. have_locale=no
  22367. case "$host" in
  22368. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22369. case "$host" in
  22370. *-*-android*)
  22371. # Android
  22372. ARCH=android
  22373. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22374. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22375. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22376. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22377. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22378. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22379. if test x$enable_video = xyes; then
  22380. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22381. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22382. SUMMARY_video="${SUMMARY_video} android"
  22383. have_video=yes
  22384. fi
  22385. ;;
  22386. *-*-linux*) ARCH=linux ;;
  22387. *-*-uclinux*) ARCH=linux ;;
  22388. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22389. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22390. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22391. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22392. *-*-bsdi*) ARCH=bsdi ;;
  22393. *-*-freebsd*) ARCH=freebsd ;;
  22394. *-*-dragonfly*) ARCH=freebsd ;;
  22395. *-*-netbsd*) ARCH=netbsd ;;
  22396. *-*-openbsd*) ARCH=openbsd ;;
  22397. *-*-sysv5*) ARCH=sysv5 ;;
  22398. *-*-solaris*) ARCH=solaris ;;
  22399. *-*-hpux*) ARCH=hpux ;;
  22400. *-*-aix*) ARCH=aix ;;
  22401. *-*-minix*) ARCH=minix ;;
  22402. *-*-nto*) ARCH=nto
  22403. CheckQNXVideo
  22404. ;;
  22405. esac
  22406. CheckVisibilityHidden
  22407. CheckDeclarationAfterStatement
  22408. CheckDummyVideo
  22409. CheckOffscreenVideo
  22410. CheckDiskAudio
  22411. CheckDummyAudio
  22412. CheckDLOPEN
  22413. CheckARM
  22414. CheckNEON
  22415. CheckO_CLOEXEC
  22416. CheckOSS
  22417. CheckALSA
  22418. CheckPipewire
  22419. CheckPulseAudio
  22420. CheckJACK
  22421. CheckARTSC
  22422. CheckESD
  22423. CheckNAS
  22424. CheckSNDIO
  22425. CheckFusionSound
  22426. CheckLibSampleRate
  22427. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22428. CheckRPI
  22429. CheckX11
  22430. CheckDirectFB
  22431. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22432. CheckEGL
  22433. CheckKMSDRM
  22434. CheckGLX
  22435. CheckOpenGL
  22436. CheckOpenGLES
  22437. CheckVulkan
  22438. CheckWayland
  22439. CheckInputEvents
  22440. CheckLibUDev
  22441. CheckDBus
  22442. CheckIME
  22443. CheckInotify
  22444. CheckIBus
  22445. CheckFcitx
  22446. case $ARCH in
  22447. linux)
  22448. CheckInputKD
  22449. ;;
  22450. freebsd)
  22451. CheckInputKBIO
  22452. ;;
  22453. openbsd|netbsd)
  22454. CheckInputWSCONS
  22455. ;;
  22456. esac
  22457. CheckUSBHID
  22458. CheckHIDAPI
  22459. CheckPTHREAD
  22460. CheckClockGettime
  22461. CheckLinuxVersion
  22462. CheckRPATH
  22463. CheckVivanteVideo
  22464. # Set up files for the misc library
  22465. if test x$enable_misc = xyes; then
  22466. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22467. have_misc=yes
  22468. fi
  22469. # Set up files for the locale library
  22470. if test x$enable_locale = xyes; then
  22471. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22472. have_locale=yes
  22473. fi
  22474. # Set up files for the audio library
  22475. if test x$enable_audio = xyes; then
  22476. case $ARCH in
  22477. sysv5|solaris|hpux)
  22478. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22479. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22480. SUMMARY_audio="${SUMMARY_audio} sun"
  22481. have_audio=yes
  22482. ;;
  22483. netbsd) # Don't use this on OpenBSD, it's busted.
  22484. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22485. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22486. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22487. have_audio=yes
  22488. ;;
  22489. aix)
  22490. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22491. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22492. SUMMARY_audio="${SUMMARY_audio} paudio"
  22493. have_audio=yes
  22494. ;;
  22495. android)
  22496. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22497. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22498. SUMMARY_audio="${SUMMARY_audio} android"
  22499. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22500. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22501. SUMMARY_audio="${SUMMARY_audio} openslES"
  22502. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22503. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22504. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22505. have_audio=yes
  22506. ;;
  22507. nto)
  22508. CheckQNXAudio
  22509. ;;
  22510. esac
  22511. fi
  22512. # Set up files for the joystick library
  22513. if test x$enable_joystick = xyes; then
  22514. case $ARCH in
  22515. linux)
  22516. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22517. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22518. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22519. have_joystick=yes
  22520. ;;
  22521. freebsd)
  22522. if test x$use_input_events = xyes; then
  22523. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22524. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22525. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22526. have_joystick=yes
  22527. fi
  22528. ;;
  22529. android)
  22530. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22531. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22532. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22533. have_joystick=yes
  22534. ;;
  22535. esac
  22536. fi
  22537. # Set up files for the haptic library
  22538. if test x$enable_haptic = xyes; then
  22539. case $ARCH in
  22540. linux|freebsd)
  22541. if test x$use_input_events = xyes; then
  22542. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22543. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22544. have_haptic=yes
  22545. fi
  22546. ;;
  22547. android)
  22548. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22549. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22550. have_haptic=yes
  22551. ;;
  22552. esac
  22553. fi
  22554. # Set up files for the sensor library
  22555. if test x$enable_sensor = xyes; then
  22556. case $ARCH in
  22557. android)
  22558. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22559. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22560. have_sensor=yes
  22561. ;;
  22562. esac
  22563. fi
  22564. # Set up files for the power library
  22565. if test x$enable_power = xyes; then
  22566. case $ARCH in
  22567. linux)
  22568. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22569. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22570. have_power=yes
  22571. ;;
  22572. android)
  22573. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22574. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22575. have_power=yes
  22576. ;;
  22577. esac
  22578. fi
  22579. # Set up files for the filesystem library
  22580. if test x$enable_filesystem = xyes; then
  22581. case $ARCH in
  22582. android)
  22583. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22584. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22585. have_filesystem=yes
  22586. ;;
  22587. *)
  22588. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22589. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22590. have_filesystem=yes
  22591. ;;
  22592. esac
  22593. fi
  22594. # Set up files for the timer library
  22595. if test x$enable_timers = xyes; then
  22596. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22597. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22598. have_timers=yes
  22599. fi
  22600. # Set up files for udev hotplugging support
  22601. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22602. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22603. fi
  22604. # Set up files for evdev input
  22605. if test x$use_input_events = xyes; then
  22606. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22607. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22608. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22609. fi
  22610. # Set up files for wscons input
  22611. if test x$use_input_wscons = xyes; then
  22612. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22613. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22614. fi
  22615. # Set up other core UNIX files
  22616. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22617. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22618. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22619. ;;
  22620. *-*-cygwin* | *-*-mingw*)
  22621. ARCH=win32
  22622. if test "$build" != "$host"; then # cross-compiling
  22623. # Default cross-compile location
  22624. ac_default_prefix=/usr/local/cross-tools/$host
  22625. else
  22626. # Look for the location of the tools and install there
  22627. if test "$BUILD_PREFIX" != ""; then
  22628. ac_default_prefix=$BUILD_PREFIX
  22629. fi
  22630. fi
  22631. if test x$enable_loadso = xyes; then
  22632. have_loadso=yes
  22633. fi
  22634. CheckDeclarationAfterStatement
  22635. CheckDummyVideo
  22636. CheckOffscreenVideo
  22637. CheckDiskAudio
  22638. CheckDummyAudio
  22639. CheckWINDOWS
  22640. CheckWINDOWSGL
  22641. CheckWINDOWSGLES
  22642. CheckVulkan
  22643. CheckDIRECTX
  22644. CheckHIDAPI
  22645. # Set up the core platform files
  22646. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22647. # Set up files for the misc library
  22648. if test x$enable_misc = xyes; then
  22649. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22650. have_misc=yes
  22651. fi
  22652. # Use the Windows locale APIs.
  22653. if test x$enable_locale = xyes; then
  22654. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22655. have_locale=yes
  22656. fi
  22657. # Set up files for the video library
  22658. if test x$enable_video = xyes; then
  22659. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22660. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22661. have_video=yes
  22662. # Check whether --enable-render-d3d was given.
  22663. if test "${enable_render_d3d+set}" = set; then :
  22664. enableval=$enable_render_d3d;
  22665. else
  22666. enable_render_d3d=yes
  22667. fi
  22668. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22669. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22670. SUMMARY_video="${SUMMARY_video} d3d9"
  22671. fi
  22672. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22673. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22674. SUMMARY_video="${SUMMARY_video} d3d11"
  22675. fi
  22676. fi
  22677. # Set up files for the audio library
  22678. if test x$enable_audio = xyes; then
  22679. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22680. SUMMARY_audio="${SUMMARY_audio} winmm"
  22681. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22682. if test x$have_dsound = xyes; then
  22683. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22684. SUMMARY_audio="${SUMMARY_audio} directsound"
  22685. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22686. fi
  22687. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22688. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22689. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22690. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22691. fi
  22692. have_audio=yes
  22693. fi
  22694. # Set up files for the joystick library
  22695. if test x$enable_joystick = xyes; then
  22696. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22697. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22698. if test x$have_xinput = xyes; then
  22699. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22700. fi
  22701. if test x$have_wgi = xyes; then
  22702. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22703. fi
  22704. if test x$have_dinput = xyes; then
  22705. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22707. fi
  22708. fi
  22709. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22710. have_joystick=yes
  22711. fi
  22712. if test x$enable_haptic = xyes; then
  22713. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22714. if test x$have_xinput = xyes; then
  22715. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22716. fi
  22717. if test x$have_dinput = xyes; then
  22718. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22719. fi
  22720. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22721. have_haptic=yes
  22722. fi
  22723. fi
  22724. # Set up files for the sensor library
  22725. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22726. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22727. have_winsensors=yes
  22728. else
  22729. have_winsensors=no
  22730. fi
  22731. if test x$have_winsensors = xyes; then
  22732. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22733. fi
  22734. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22735. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22736. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22737. have_sensor=yes
  22738. fi
  22739. # Set up files for the power library
  22740. if test x$enable_power = xyes; then
  22741. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22742. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22743. have_power=yes
  22744. fi
  22745. # Set up files for the filesystem library
  22746. if test x$enable_filesystem = xyes; then
  22747. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22748. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22749. have_filesystem=yes
  22750. fi
  22751. # Set up files for the thread library
  22752. if test x$enable_threads = xyes; then
  22753. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22754. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22755. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22756. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22757. have_threads=yes
  22758. fi
  22759. # Set up files for the timer library
  22760. if test x$enable_timers = xyes; then
  22761. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22762. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22763. have_timers=yes
  22764. fi
  22765. # Set up files for the shared object loading library
  22766. if test x$enable_loadso = xyes; then
  22767. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22768. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22769. fi
  22770. # Set up the system libraries we need
  22771. if test -f /lib/w32api/libuuid.a; then
  22772. LIBUUID=/lib/w32api/libuuid.a
  22773. else
  22774. LIBUUID=-luuid
  22775. fi
  22776. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22777. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22778. # The Windows platform requires special setup
  22779. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22780. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22781. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22782. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22783. # Check to see if this is a mingw or cygwin build
  22784. have_mingw32=
  22785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22786. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22787. if ${ac_cv_lib_mingw32_main+:} false; then :
  22788. $as_echo_n "(cached) " >&6
  22789. else
  22790. ac_check_lib_save_LIBS=$LIBS
  22791. LIBS="-lmingw32 $LIBS"
  22792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22793. /* end confdefs.h. */
  22794. int
  22795. main ()
  22796. {
  22797. return main ();
  22798. ;
  22799. return 0;
  22800. }
  22801. _ACEOF
  22802. if ac_fn_c_try_link "$LINENO"; then :
  22803. ac_cv_lib_mingw32_main=yes
  22804. else
  22805. ac_cv_lib_mingw32_main=no
  22806. fi
  22807. rm -f core conftest.err conftest.$ac_objext \
  22808. conftest$ac_exeext conftest.$ac_ext
  22809. LIBS=$ac_check_lib_save_LIBS
  22810. fi
  22811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22812. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22813. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22814. have_mingw32=yes
  22815. fi
  22816. if test x$have_mingw32 = xyes; then
  22817. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22818. else
  22819. SDL_LIBS="-lcygwin $SDL_LIBS"
  22820. fi
  22821. ;;
  22822. *-*-beos*)
  22823. as_fn_error $? "
  22824. *** BeOS support has been removed as of SDL 2.0.2.
  22825. " "$LINENO" 5
  22826. ;;
  22827. *-*-haiku*)
  22828. ARCH=haiku
  22829. ac_default_prefix=/boot/system
  22830. CheckDummyVideo
  22831. CheckOffscreenVideo
  22832. CheckDiskAudio
  22833. CheckDummyAudio
  22834. CheckDLOPEN
  22835. CheckO_CLOEXEC
  22836. CheckHaikuVideo
  22837. CheckHaikuGL
  22838. CheckPTHREAD
  22839. # Set up files for the audio library
  22840. if test x$enable_audio = xyes; then
  22841. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22842. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22843. SUMMARY_audio="${SUMMARY_audio} haiku"
  22844. have_audio=yes
  22845. fi
  22846. # Set up files for the joystick library
  22847. if test x$enable_joystick = xyes; then
  22848. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22849. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22850. have_joystick=yes
  22851. fi
  22852. # Set up files for the timer library
  22853. if test x$enable_timers = xyes; then
  22854. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22855. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22856. have_timers=yes
  22857. fi
  22858. # Set up files for the system power library
  22859. if test x$enable_power = xyes; then
  22860. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22861. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22862. have_power=yes
  22863. fi
  22864. # Set up files for the system filesystem library
  22865. if test x$enable_filesystem = xyes; then
  22866. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22867. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22868. have_filesystem=yes
  22869. fi
  22870. # Set up files for the misc library
  22871. if test x$enable_misc = xyes; then
  22872. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22873. have_misc=yes
  22874. fi
  22875. # Set up files for the locale library
  22876. if test x$enable_locale = xyes; then
  22877. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22878. have_locale=yes
  22879. fi
  22880. # The Haiku platform requires special setup.
  22881. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22882. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22883. ;;
  22884. *-ios-*)
  22885. ARCH=ios
  22886. CheckVisibilityHidden
  22887. CheckDeclarationAfterStatement
  22888. CheckDummyVideo
  22889. CheckOffscreenVideo
  22890. CheckDiskAudio
  22891. CheckDummyAudio
  22892. CheckDLOPEN
  22893. CheckO_CLOEXEC
  22894. CheckMETAL
  22895. CheckVulkan
  22896. CheckPTHREAD
  22897. # Set up files for the misc library
  22898. if test x$enable_misc = xyes; then
  22899. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22900. have_misc=yes
  22901. fi
  22902. # Set up files for the locale library
  22903. if test x$enable_locale = xyes; then
  22904. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22905. have_locale=yes
  22906. fi
  22907. # Set up files for the audio library
  22908. if test x$enable_audio = xyes; then
  22909. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22910. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22911. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22912. have_audio=yes
  22913. fi
  22914. # Set up files for the joystick library
  22915. if test x$enable_joystick = xyes; then
  22916. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22917. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22918. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22919. have_joystick=yes
  22920. else
  22921. # Need this code for accelerometer as joystick support
  22922. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22923. fi
  22924. # Set up files for the haptic library
  22925. #if test x$enable_haptic = xyes; then
  22926. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22927. # have_haptic=yes
  22928. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22929. #fi
  22930. # Set up files for the sensor library
  22931. if test x$enable_sensor = xyes; then
  22932. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22933. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22934. have_sensor=yes
  22935. fi
  22936. # Set up files for the power library
  22937. if test x$enable_power = xyes; then
  22938. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22939. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22940. have_power=yes
  22941. fi
  22942. # Set up files for the filesystem library
  22943. if test x$enable_filesystem = xyes; then
  22944. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22945. have_filesystem=yes
  22946. fi
  22947. # Set up additional files for the file library
  22948. if test x$enable_file = xyes; then
  22949. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22950. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22951. fi
  22952. # Set up files for the timer library
  22953. if test x$enable_timers = xyes; then
  22954. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22955. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22956. have_timers=yes
  22957. fi
  22958. # Set up other core UNIX files
  22959. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22960. # The iOS platform requires special setup.
  22961. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22962. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22963. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22964. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22965. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22966. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22967. SUMMARY_video="${SUMMARY_video} uikit"
  22968. have_video=yes
  22969. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22972. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22978. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22980. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22981. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22982. fi
  22983. ;;
  22984. *-*-darwin* )
  22985. # This could be either full "Mac OS X", or plain "Darwin" which is
  22986. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22987. # Next line is broken, and a few files below require Mac OS X (full)
  22988. ARCH=macosx
  22989. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22990. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22991. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22992. CheckObjectiveCARC
  22993. CheckVisibilityHidden
  22994. CheckDeclarationAfterStatement
  22995. CheckDummyVideo
  22996. CheckOffscreenVideo
  22997. CheckDiskAudio
  22998. CheckDummyAudio
  22999. CheckDLOPEN
  23000. CheckO_CLOEXEC
  23001. CheckCOCOA
  23002. CheckMETAL
  23003. CheckX11
  23004. CheckMacGL
  23005. CheckMacGLES
  23006. CheckGLX
  23007. CheckOpenGL
  23008. CheckVulkan
  23009. CheckPTHREAD
  23010. CheckHIDAPI
  23011. # Set up files for the misc library
  23012. if test x$enable_misc = xyes; then
  23013. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  23014. have_misc=yes
  23015. fi
  23016. # Set up files for the locale library
  23017. if test x$enable_locale = xyes; then
  23018. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  23019. have_locale=yes
  23020. fi
  23021. # Set up files for the audio library
  23022. if test x$enable_audio = xyes; then
  23023. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  23024. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  23025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  23026. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23027. have_audio=yes
  23028. fi
  23029. # Set up files for the joystick library
  23030. if test x$enable_joystick = xyes; then
  23031. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  23032. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  23033. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23034. CheckJoystickMFI
  23035. have_joystick=yes
  23036. fi
  23037. # Set up files for the haptic library
  23038. if test x$enable_haptic = xyes; then
  23039. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  23040. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23041. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23042. have_haptic=yes
  23043. fi
  23044. # Set up files for the power library
  23045. if test x$enable_power = xyes; then
  23046. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  23047. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  23048. have_power=yes
  23049. fi
  23050. # Set up files for the filesystem library
  23051. if test x$enable_filesystem = xyes; then
  23052. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  23053. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  23054. have_filesystem=yes
  23055. fi
  23056. # Set up files for the timer library
  23057. if test x$enable_timers = xyes; then
  23058. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23059. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23060. have_timers=yes
  23061. fi
  23062. # Set up additional files for the file library
  23063. if test x$enable_file = xyes; then
  23064. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23065. fi
  23066. # Set up other core UNIX files
  23067. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23068. # The Mac OS X platform requires special setup.
  23069. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  23070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  23071. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  23072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  23073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  23074. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  23075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  23076. fi
  23077. ;;
  23078. *-nacl|*-pnacl)
  23079. ARCH=nacl
  23080. CheckNativeClient
  23081. CheckDummyAudio
  23082. CheckDummyVideo
  23083. CheckOffscreenVideo
  23084. CheckInputEvents
  23085. CheckPTHREAD
  23086. CheckO_CLOEXEC
  23087. # Set up files for the timer library
  23088. if test x$enable_timers = xyes; then
  23089. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23090. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23091. have_timers=yes
  23092. fi
  23093. if test x$enable_filesystem = xyes; then
  23094. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  23095. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  23096. have_filesystem=yes
  23097. fi
  23098. ;;
  23099. *-*-emscripten* )
  23100. if test x$enable_video = xyes; then
  23101. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  23102. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  23103. have_video=yes
  23104. SUMMARY_video="${SUMMARY_video} emscripten"
  23105. fi
  23106. if test x$enable_audio = xyes; then
  23107. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  23108. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  23109. have_audio=yes
  23110. SUMMARY_audio="${SUMMARY_audio} emscripten"
  23111. fi
  23112. CheckVisibilityHidden
  23113. CheckDeclarationAfterStatement
  23114. CheckDummyVideo
  23115. CheckOffscreenVideo
  23116. CheckDiskAudio
  23117. CheckDummyAudio
  23118. CheckPTHREAD
  23119. CheckDLOPEN
  23120. CheckClockGettime
  23121. CheckEmscriptenGLES
  23122. # Set up files for the misc library
  23123. if test x$enable_misc = xyes; then
  23124. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  23125. have_misc=yes
  23126. fi
  23127. # Set up files for the power library
  23128. if test x$enable_power = xyes; then
  23129. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  23130. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  23131. have_power=yes
  23132. fi
  23133. # Set up files for the joystick library
  23134. if test x$enable_joystick = xyes; then
  23135. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  23136. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  23137. have_joystick=yes
  23138. fi
  23139. # Set up files for the filesystem library
  23140. if test x$enable_filesystem = xyes; then
  23141. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  23142. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  23143. have_filesystem=yes
  23144. fi
  23145. # Set up files for the timer library
  23146. if test x$enable_timers = xyes; then
  23147. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23148. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23149. have_timers=yes
  23150. fi
  23151. # Set up files for the locale library
  23152. if test x$enable_locale = xyes; then
  23153. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  23154. have_locale=yes
  23155. fi
  23156. ;;
  23157. *-*-riscos*)
  23158. ARCH=riscos
  23159. CheckVisibilityHidden
  23160. CheckDeclarationAfterStatement
  23161. CheckDummyVideo
  23162. CheckOffscreenVideo
  23163. CheckDiskAudio
  23164. CheckDummyAudio
  23165. CheckDLOPEN
  23166. CheckO_CLOEXEC
  23167. CheckOSS
  23168. CheckPTHREAD
  23169. CheckClockGettime
  23170. # Set up files for the misc library
  23171. if test x$enable_misc = xyes; then
  23172. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  23173. have_misc=yes
  23174. fi
  23175. # Set up files for the video library
  23176. if test x$enable_video = xyes; then
  23177. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  23178. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  23179. have_video=yes
  23180. SUMMARY_video="${SUMMARY_video} riscos"
  23181. fi
  23182. # Set up files for the filesystem library
  23183. if test x$enable_filesystem = xyes; then
  23184. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  23185. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  23186. have_filesystem=yes
  23187. fi
  23188. # Set up files for the timer library
  23189. if test x$enable_timers = xyes; then
  23190. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23191. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23192. have_timers=yes
  23193. fi
  23194. ;;
  23195. *-*-os2*)
  23196. ARCH=os2
  23197. if test "$build" != "$host"; then # cross-compiling
  23198. # Default cross-compile location
  23199. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  23200. else
  23201. # Look for the location of the tools and install there
  23202. if test "$BUILD_PREFIX" != ""; then
  23203. ac_default_prefix=$BUILD_PREFIX
  23204. fi
  23205. fi
  23206. enable_static=no # disable static builds
  23207. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  23208. CheckOS2
  23209. CheckDeclarationAfterStatement
  23210. CheckDummyVideo
  23211. CheckDiskAudio
  23212. CheckDummyAudio
  23213. CheckHIDAPI
  23214. # Set up the core platform files
  23215. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  23216. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  23217. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  23218. fi
  23219. # Use the Unix locale APIs.
  23220. if test x$enable_locale = xyes; then
  23221. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23222. have_locale=yes
  23223. fi
  23224. # Set up files for the video library
  23225. if test x$enable_video = xyes; then
  23226. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  23227. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  23228. have_video=yes
  23229. SUMMARY_video="${SUMMARY_video} os/2"
  23230. fi
  23231. # Set up files for the audio library
  23232. if test x$enable_audio = xyes; then
  23233. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  23234. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  23235. have_audio=yes
  23236. SUMMARY_audio="${SUMMARY_audio} os/2"
  23237. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  23238. fi
  23239. # Set up files for the thread library
  23240. if test x$enable_threads = xyes; then
  23241. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  23242. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  23243. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23244. have_threads=yes
  23245. fi
  23246. # Set up files for the timer library
  23247. if test x$enable_timers = xyes; then
  23248. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  23249. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  23250. have_timers=yes
  23251. fi
  23252. # Set up files for the shared object loading library
  23253. if test x$enable_loadso = xyes; then
  23254. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  23255. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  23256. have_loadso=yes
  23257. fi
  23258. # Set up files for the filesystem library
  23259. if test x$enable_filesystem = xyes; then
  23260. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  23261. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  23262. have_filesystem=yes
  23263. fi
  23264. # Set up files for the joystick library
  23265. if test x$enable_joystick = xyes; then
  23266. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  23267. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  23268. have_joystick=yes
  23269. fi
  23270. ;;
  23271. *)
  23272. as_fn_error $? "
  23273. *** Unsupported host: Please add to configure.ac
  23274. " "$LINENO" 5
  23275. ;;
  23276. esac
  23277. CheckVirtualJoystick
  23278. # Check whether to install sdl2-config
  23279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  23280. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  23281. # Check whether --enable-sdl2-config was given.
  23282. if test "${enable_sdl2_config+set}" = set; then :
  23283. enableval=$enable_sdl2_config; case "${enableval}" in
  23284. yes) enable_sdl2_config="TRUE" ;;
  23285. no) enable_sdl2_config="FALSE" ;;
  23286. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  23287. esac
  23288. else
  23289. enable_sdl2_config="TRUE"
  23290. fi
  23291. if test "$enable_sdl2_config" = "TRUE"; then
  23292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23293. $as_echo "yes" >&6; }
  23294. else
  23295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23296. $as_echo "no" >&6; }
  23297. fi
  23298. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23299. # Verify that we have all the platform specific files we need
  23300. if test x$have_audio != xyes; then
  23301. if test x$enable_audio = xyes; then
  23302. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23303. fi
  23304. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23305. fi
  23306. if test x$have_video != xyes; then
  23307. if test x$enable_video = xyes; then
  23308. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23309. fi
  23310. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23311. fi
  23312. if test x$have_misc != xyes; then
  23313. if test x$enable_misc = xyes; then
  23314. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23315. fi
  23316. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23317. fi
  23318. if test x$have_locale != xyes; then
  23319. if test x$enable_locale = xyes; then
  23320. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23321. fi
  23322. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23323. fi
  23324. if test x$have_joystick != xyes; then
  23325. if test x$enable_joystick = xyes; then
  23326. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23327. fi
  23328. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23329. fi
  23330. if test x$have_haptic != xyes; then
  23331. if test x$enable_haptic = xyes; then
  23332. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23333. fi
  23334. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23335. fi
  23336. if test x$have_sensor != xyes; then
  23337. if test x$enable_sensor = xyes; then
  23338. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23339. fi
  23340. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23341. fi
  23342. if test x$have_threads != xyes; then
  23343. if test x$enable_threads = xyes; then
  23344. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23345. fi
  23346. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23347. fi
  23348. if test x$have_timers != xyes; then
  23349. if test x$enable_timers = xyes; then
  23350. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23351. fi
  23352. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23353. fi
  23354. if test x$have_filesystem != xyes; then
  23355. if test x$enable_filesystem = xyes; then
  23356. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23357. fi
  23358. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23359. fi
  23360. if test x$have_loadso != xyes; then
  23361. if test x$enable_loadso = xyes; then
  23362. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23363. fi
  23364. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23365. fi
  23366. if test x$SDLMAIN_SOURCES = x; then
  23367. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23368. fi
  23369. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23370. if test x$video_wayland = xyes; then
  23371. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23372. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23373. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23374. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23375. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23376. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23377. echo ;\
  23378. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23379. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23380. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23381. echo ;\
  23382. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23383. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23384. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23385. echo ;\
  23386. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23387. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23388. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23389. done ;\
  23390. echo ;\
  23391. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23392. fi
  23393. OBJECTS=`echo $SOURCES`
  23394. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23395. for EXT in asm cc m c S; do
  23396. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23397. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23398. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23399. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23400. done
  23401. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23402. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23403. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23404. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23405. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23406. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23407. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23408. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23409. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23410. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23411. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23412. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23413. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23414. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23415. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23416. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23417. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23418. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23419. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23420. # Set runtime shared library paths as needed
  23421. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23422. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23423. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23425. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23426. have_enable_new_dtags=no
  23427. save_LDFLAGS="$LDFLAGS"
  23428. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23430. /* end confdefs.h. */
  23431. int
  23432. main ()
  23433. {
  23434. ;
  23435. return 0;
  23436. }
  23437. _ACEOF
  23438. if ac_fn_c_try_link "$LINENO"; then :
  23439. have_enable_new_dtags=yes
  23440. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23441. fi
  23442. rm -f core conftest.err conftest.$ac_objext \
  23443. conftest$ac_exeext conftest.$ac_ext
  23444. LDFLAGS="$save_LDFLAGS"
  23445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23446. $as_echo "$have_enable_new_dtags" >&6; }
  23447. fi
  23448. if test $ARCH = solaris; then
  23449. SDL_RLD_FLAGS="-R\${libdir}"
  23450. fi
  23451. else
  23452. SDL_RLD_FLAGS=""
  23453. fi
  23454. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23455. eval pkg_prefix=$prefix
  23456. eval pkg_cmakedir=$libdir/cmake/SDL2
  23457. cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  23458. eval pkg_bindir=$bindir
  23459. bin_prefix_relpath="$(echo -n "pkg_bindir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  23460. if test x$enable_shared = xyes; then
  23461. PKGCONFIG_LIBS_PRIV="
  23462. Libs.private:"
  23463. ENABLE_SHARED_TRUE=
  23464. ENABLE_SHARED_FALSE="#"
  23465. else
  23466. PKGCONFIG_LIBS_PRIV=
  23467. ENABLE_SHARED_TRUE="#"
  23468. ENABLE_SHARED_FALSE=
  23469. fi
  23470. if test x$enable_static = xyes; then
  23471. ENABLE_STATIC_TRUE=
  23472. ENABLE_STATIC_FALSE="#"
  23473. else
  23474. ENABLE_STATIC_TRUE="#"
  23475. ENABLE_STATIC_FALSE=
  23476. fi
  23477. cat >Makefile.rules <<__EOF__
  23478. # Build rules for objects
  23479. -include \$(OBJECTS:.lo=.d)
  23480. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23481. $srcdir/src/SDL.c: update-revision
  23482. $DEPENDS
  23483. $VERSION_DEPENDS
  23484. $SDLMAIN_DEPENDS
  23485. $SDLTEST_DEPENDS
  23486. $WAYLAND_PROTOCOLS_DEPENDS
  23487. __EOF__
  23488. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23489. ac_config_commands="$ac_config_commands sdl2_config"
  23490. SUMMARY="SDL2 Configure Summary:\n"
  23491. if test x$enable_shared = xyes; then
  23492. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23493. fi
  23494. if test x$enable_static = xyes; then
  23495. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23496. fi
  23497. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23498. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23499. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23500. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23501. if test x$have_x = xyes; then
  23502. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23503. fi
  23504. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23505. if test x$have_joystick_virtual = xyes; then
  23506. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23507. else
  23508. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23509. fi
  23510. if test x$have_samplerate_h_hdr = xyes; then
  23511. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23512. else
  23513. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23514. fi
  23515. if test x$have_libudev_h_hdr = xyes; then
  23516. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23517. else
  23518. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23519. fi
  23520. if test x$have_dbus_dbus_h_hdr = xyes; then
  23521. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23522. else
  23523. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23524. fi
  23525. if test x$enable_ime = xyes; then
  23526. SUMMARY="${SUMMARY}Using ime : YES\n"
  23527. else
  23528. SUMMARY="${SUMMARY}Using ime : NO\n"
  23529. fi
  23530. if test x$have_ibus_ibus_h_hdr = xyes; then
  23531. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23532. else
  23533. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23534. fi
  23535. if test x$have_fcitx = xyes; then
  23536. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23537. else
  23538. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23539. fi
  23540. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23541. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23542. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23543. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23544. SUMMARY="${SUMMARY}configure script with:\n"
  23545. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23546. fi
  23547. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23548. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23549. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23550. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23551. SUMMARY="${SUMMARY}configure script with:\n"
  23552. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23553. fi
  23554. ac_config_commands="$ac_config_commands summary"
  23555. cat >confcache <<\_ACEOF
  23556. # This file is a shell script that caches the results of configure
  23557. # tests run on this system so they can be shared between configure
  23558. # scripts and configure runs, see configure's option --config-cache.
  23559. # It is not useful on other systems. If it contains results you don't
  23560. # want to keep, you may remove or edit it.
  23561. #
  23562. # config.status only pays attention to the cache file if you give it
  23563. # the --recheck option to rerun configure.
  23564. #
  23565. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23566. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23567. # following values.
  23568. _ACEOF
  23569. # The following way of writing the cache mishandles newlines in values,
  23570. # but we know of no workaround that is simple, portable, and efficient.
  23571. # So, we kill variables containing newlines.
  23572. # Ultrix sh set writes to stderr and can't be redirected directly,
  23573. # and sets the high bit in the cache file unless we assign to the vars.
  23574. (
  23575. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23576. eval ac_val=\$$ac_var
  23577. case $ac_val in #(
  23578. *${as_nl}*)
  23579. case $ac_var in #(
  23580. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23581. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23582. esac
  23583. case $ac_var in #(
  23584. _ | IFS | as_nl) ;; #(
  23585. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23586. *) { eval $ac_var=; unset $ac_var;} ;;
  23587. esac ;;
  23588. esac
  23589. done
  23590. (set) 2>&1 |
  23591. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23592. *${as_nl}ac_space=\ *)
  23593. # `set' does not quote correctly, so add quotes: double-quote
  23594. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23595. sed -n \
  23596. "s/'/'\\\\''/g;
  23597. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23598. ;; #(
  23599. *)
  23600. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23601. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23602. ;;
  23603. esac |
  23604. sort
  23605. ) |
  23606. sed '
  23607. /^ac_cv_env_/b end
  23608. t clear
  23609. :clear
  23610. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23611. t end
  23612. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23613. :end' >>confcache
  23614. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23615. if test -w "$cache_file"; then
  23616. if test "x$cache_file" != "x/dev/null"; then
  23617. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23618. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23619. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23620. cat confcache >"$cache_file"
  23621. else
  23622. case $cache_file in #(
  23623. */* | ?:*)
  23624. mv -f confcache "$cache_file"$$ &&
  23625. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23626. *)
  23627. mv -f confcache "$cache_file" ;;
  23628. esac
  23629. fi
  23630. fi
  23631. else
  23632. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23633. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23634. fi
  23635. fi
  23636. rm -f confcache
  23637. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23638. # Let make expand exec_prefix.
  23639. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23640. DEFS=-DHAVE_CONFIG_H
  23641. ac_libobjs=
  23642. ac_ltlibobjs=
  23643. U=
  23644. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23645. # 1. Remove the extension, and $U if already installed.
  23646. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23647. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23648. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23649. # will be set to the directory where LIBOBJS objects are built.
  23650. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23651. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23652. done
  23653. LIBOBJS=$ac_libobjs
  23654. LTLIBOBJS=$ac_ltlibobjs
  23655. : "${CONFIG_STATUS=./config.status}"
  23656. ac_write_fail=0
  23657. ac_clean_files_save=$ac_clean_files
  23658. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23659. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23660. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23661. as_write_fail=0
  23662. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23663. #! $SHELL
  23664. # Generated by $as_me.
  23665. # Run this file to recreate the current configuration.
  23666. # Compiler output produced by configure, useful for debugging
  23667. # configure, is in config.log if it exists.
  23668. debug=false
  23669. ac_cs_recheck=false
  23670. ac_cs_silent=false
  23671. SHELL=\${CONFIG_SHELL-$SHELL}
  23672. export SHELL
  23673. _ASEOF
  23674. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23675. ## -------------------- ##
  23676. ## M4sh Initialization. ##
  23677. ## -------------------- ##
  23678. # Be more Bourne compatible
  23679. DUALCASE=1; export DUALCASE # for MKS sh
  23680. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23681. emulate sh
  23682. NULLCMD=:
  23683. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23684. # is contrary to our usage. Disable this feature.
  23685. alias -g '${1+"$@"}'='"$@"'
  23686. setopt NO_GLOB_SUBST
  23687. else
  23688. case `(set -o) 2>/dev/null` in #(
  23689. *posix*) :
  23690. set -o posix ;; #(
  23691. *) :
  23692. ;;
  23693. esac
  23694. fi
  23695. as_nl='
  23696. '
  23697. export as_nl
  23698. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23699. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23700. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23701. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23702. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23703. # but without wasting forks for bash or zsh.
  23704. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23705. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23706. as_echo='print -r --'
  23707. as_echo_n='print -rn --'
  23708. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23709. as_echo='printf %s\n'
  23710. as_echo_n='printf %s'
  23711. else
  23712. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23713. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23714. as_echo_n='/usr/ucb/echo -n'
  23715. else
  23716. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23717. as_echo_n_body='eval
  23718. arg=$1;
  23719. case $arg in #(
  23720. *"$as_nl"*)
  23721. expr "X$arg" : "X\\(.*\\)$as_nl";
  23722. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23723. esac;
  23724. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23725. '
  23726. export as_echo_n_body
  23727. as_echo_n='sh -c $as_echo_n_body as_echo'
  23728. fi
  23729. export as_echo_body
  23730. as_echo='sh -c $as_echo_body as_echo'
  23731. fi
  23732. # The user is always right.
  23733. if test "${PATH_SEPARATOR+set}" != set; then
  23734. PATH_SEPARATOR=:
  23735. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23736. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23737. PATH_SEPARATOR=';'
  23738. }
  23739. fi
  23740. # IFS
  23741. # We need space, tab and new line, in precisely that order. Quoting is
  23742. # there to prevent editors from complaining about space-tab.
  23743. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23744. # splitting by setting IFS to empty value.)
  23745. IFS=" "" $as_nl"
  23746. # Find who we are. Look in the path if we contain no directory separator.
  23747. as_myself=
  23748. case $0 in #((
  23749. *[\\/]* ) as_myself=$0 ;;
  23750. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23751. for as_dir in $PATH
  23752. do
  23753. IFS=$as_save_IFS
  23754. test -z "$as_dir" && as_dir=.
  23755. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23756. done
  23757. IFS=$as_save_IFS
  23758. ;;
  23759. esac
  23760. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23761. # in which case we are not to be found in the path.
  23762. if test "x$as_myself" = x; then
  23763. as_myself=$0
  23764. fi
  23765. if test ! -f "$as_myself"; then
  23766. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23767. exit 1
  23768. fi
  23769. # Unset variables that we do not need and which cause bugs (e.g. in
  23770. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23771. # suppresses any "Segmentation fault" message there. '((' could
  23772. # trigger a bug in pdksh 5.2.14.
  23773. for as_var in BASH_ENV ENV MAIL MAILPATH
  23774. do eval test x\${$as_var+set} = xset \
  23775. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23776. done
  23777. PS1='$ '
  23778. PS2='> '
  23779. PS4='+ '
  23780. # NLS nuisances.
  23781. LC_ALL=C
  23782. export LC_ALL
  23783. LANGUAGE=C
  23784. export LANGUAGE
  23785. # CDPATH.
  23786. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23787. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23788. # ----------------------------------------
  23789. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23790. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23791. # script with STATUS, using 1 if that was 0.
  23792. as_fn_error ()
  23793. {
  23794. as_status=$1; test $as_status -eq 0 && as_status=1
  23795. if test "$4"; then
  23796. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23797. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23798. fi
  23799. $as_echo "$as_me: error: $2" >&2
  23800. as_fn_exit $as_status
  23801. } # as_fn_error
  23802. # as_fn_set_status STATUS
  23803. # -----------------------
  23804. # Set $? to STATUS, without forking.
  23805. as_fn_set_status ()
  23806. {
  23807. return $1
  23808. } # as_fn_set_status
  23809. # as_fn_exit STATUS
  23810. # -----------------
  23811. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23812. as_fn_exit ()
  23813. {
  23814. set +e
  23815. as_fn_set_status $1
  23816. exit $1
  23817. } # as_fn_exit
  23818. # as_fn_unset VAR
  23819. # ---------------
  23820. # Portably unset VAR.
  23821. as_fn_unset ()
  23822. {
  23823. { eval $1=; unset $1;}
  23824. }
  23825. as_unset=as_fn_unset
  23826. # as_fn_append VAR VALUE
  23827. # ----------------------
  23828. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23829. # advantage of any shell optimizations that allow amortized linear growth over
  23830. # repeated appends, instead of the typical quadratic growth present in naive
  23831. # implementations.
  23832. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23833. eval 'as_fn_append ()
  23834. {
  23835. eval $1+=\$2
  23836. }'
  23837. else
  23838. as_fn_append ()
  23839. {
  23840. eval $1=\$$1\$2
  23841. }
  23842. fi # as_fn_append
  23843. # as_fn_arith ARG...
  23844. # ------------------
  23845. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23846. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23847. # must be portable across $(()) and expr.
  23848. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23849. eval 'as_fn_arith ()
  23850. {
  23851. as_val=$(( $* ))
  23852. }'
  23853. else
  23854. as_fn_arith ()
  23855. {
  23856. as_val=`expr "$@" || test $? -eq 1`
  23857. }
  23858. fi # as_fn_arith
  23859. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23860. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23861. as_expr=expr
  23862. else
  23863. as_expr=false
  23864. fi
  23865. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23866. as_basename=basename
  23867. else
  23868. as_basename=false
  23869. fi
  23870. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23871. as_dirname=dirname
  23872. else
  23873. as_dirname=false
  23874. fi
  23875. as_me=`$as_basename -- "$0" ||
  23876. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23877. X"$0" : 'X\(//\)$' \| \
  23878. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23879. $as_echo X/"$0" |
  23880. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23881. s//\1/
  23882. q
  23883. }
  23884. /^X\/\(\/\/\)$/{
  23885. s//\1/
  23886. q
  23887. }
  23888. /^X\/\(\/\).*/{
  23889. s//\1/
  23890. q
  23891. }
  23892. s/.*/./; q'`
  23893. # Avoid depending upon Character Ranges.
  23894. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23895. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23896. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23897. as_cr_digits='0123456789'
  23898. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23899. ECHO_C= ECHO_N= ECHO_T=
  23900. case `echo -n x` in #(((((
  23901. -n*)
  23902. case `echo 'xy\c'` in
  23903. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23904. xy) ECHO_C='\c';;
  23905. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23906. ECHO_T=' ';;
  23907. esac;;
  23908. *)
  23909. ECHO_N='-n';;
  23910. esac
  23911. rm -f conf$$ conf$$.exe conf$$.file
  23912. if test -d conf$$.dir; then
  23913. rm -f conf$$.dir/conf$$.file
  23914. else
  23915. rm -f conf$$.dir
  23916. mkdir conf$$.dir 2>/dev/null
  23917. fi
  23918. if (echo >conf$$.file) 2>/dev/null; then
  23919. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23920. as_ln_s='ln -s'
  23921. # ... but there are two gotchas:
  23922. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23923. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23924. # In both cases, we have to default to `cp -pR'.
  23925. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23926. as_ln_s='cp -pR'
  23927. elif ln conf$$.file conf$$ 2>/dev/null; then
  23928. as_ln_s=ln
  23929. else
  23930. as_ln_s='cp -pR'
  23931. fi
  23932. else
  23933. as_ln_s='cp -pR'
  23934. fi
  23935. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23936. rmdir conf$$.dir 2>/dev/null
  23937. # as_fn_mkdir_p
  23938. # -------------
  23939. # Create "$as_dir" as a directory, including parents if necessary.
  23940. as_fn_mkdir_p ()
  23941. {
  23942. case $as_dir in #(
  23943. -*) as_dir=./$as_dir;;
  23944. esac
  23945. test -d "$as_dir" || eval $as_mkdir_p || {
  23946. as_dirs=
  23947. while :; do
  23948. case $as_dir in #(
  23949. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23950. *) as_qdir=$as_dir;;
  23951. esac
  23952. as_dirs="'$as_qdir' $as_dirs"
  23953. as_dir=`$as_dirname -- "$as_dir" ||
  23954. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23955. X"$as_dir" : 'X\(//\)[^/]' \| \
  23956. X"$as_dir" : 'X\(//\)$' \| \
  23957. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23958. $as_echo X"$as_dir" |
  23959. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23960. s//\1/
  23961. q
  23962. }
  23963. /^X\(\/\/\)[^/].*/{
  23964. s//\1/
  23965. q
  23966. }
  23967. /^X\(\/\/\)$/{
  23968. s//\1/
  23969. q
  23970. }
  23971. /^X\(\/\).*/{
  23972. s//\1/
  23973. q
  23974. }
  23975. s/.*/./; q'`
  23976. test -d "$as_dir" && break
  23977. done
  23978. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23979. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23980. } # as_fn_mkdir_p
  23981. if mkdir -p . 2>/dev/null; then
  23982. as_mkdir_p='mkdir -p "$as_dir"'
  23983. else
  23984. test -d ./-p && rmdir ./-p
  23985. as_mkdir_p=false
  23986. fi
  23987. # as_fn_executable_p FILE
  23988. # -----------------------
  23989. # Test if FILE is an executable regular file.
  23990. as_fn_executable_p ()
  23991. {
  23992. test -f "$1" && test -x "$1"
  23993. } # as_fn_executable_p
  23994. as_test_x='test -x'
  23995. as_executable_p=as_fn_executable_p
  23996. # Sed expression to map a string onto a valid CPP name.
  23997. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23998. # Sed expression to map a string onto a valid variable name.
  23999. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24000. exec 6>&1
  24001. ## ----------------------------------- ##
  24002. ## Main body of $CONFIG_STATUS script. ##
  24003. ## ----------------------------------- ##
  24004. _ASEOF
  24005. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  24006. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24007. # Save the log message, to keep $0 and so on meaningful, and to
  24008. # report actual input values of CONFIG_FILES etc. instead of their
  24009. # values after options handling.
  24010. ac_log="
  24011. This file was extended by $as_me, which was
  24012. generated by GNU Autoconf 2.69. Invocation command line was
  24013. CONFIG_FILES = $CONFIG_FILES
  24014. CONFIG_HEADERS = $CONFIG_HEADERS
  24015. CONFIG_LINKS = $CONFIG_LINKS
  24016. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24017. $ $0 $@
  24018. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  24019. "
  24020. _ACEOF
  24021. case $ac_config_files in *"
  24022. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  24023. esac
  24024. case $ac_config_headers in *"
  24025. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  24026. esac
  24027. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24028. # Files that config.status was made for.
  24029. config_files="$ac_config_files"
  24030. config_headers="$ac_config_headers"
  24031. config_commands="$ac_config_commands"
  24032. _ACEOF
  24033. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24034. ac_cs_usage="\
  24035. \`$as_me' instantiates files and other configuration actions
  24036. from templates according to the current configuration. Unless the files
  24037. and actions are specified as TAGs, all are instantiated by default.
  24038. Usage: $0 [OPTION]... [TAG]...
  24039. -h, --help print this help, then exit
  24040. -V, --version print version number and configuration settings, then exit
  24041. --config print configuration, then exit
  24042. -q, --quiet, --silent
  24043. do not print progress messages
  24044. -d, --debug don't remove temporary files
  24045. --recheck update $as_me by reconfiguring in the same conditions
  24046. --file=FILE[:TEMPLATE]
  24047. instantiate the configuration file FILE
  24048. --header=FILE[:TEMPLATE]
  24049. instantiate the configuration header FILE
  24050. Configuration files:
  24051. $config_files
  24052. Configuration headers:
  24053. $config_headers
  24054. Configuration commands:
  24055. $config_commands
  24056. Report bugs to the package provider."
  24057. _ACEOF
  24058. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24059. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  24060. ac_cs_version="\\
  24061. config.status
  24062. configured by $0, generated by GNU Autoconf 2.69,
  24063. with options \\"\$ac_cs_config\\"
  24064. Copyright (C) 2012 Free Software Foundation, Inc.
  24065. This config.status script is free software; the Free Software Foundation
  24066. gives unlimited permission to copy, distribute and modify it."
  24067. ac_pwd='$ac_pwd'
  24068. srcdir='$srcdir'
  24069. INSTALL='$INSTALL'
  24070. AWK='$AWK'
  24071. test -n "\$AWK" || AWK=awk
  24072. _ACEOF
  24073. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24074. # The default lists apply if the user does not specify any file.
  24075. ac_need_defaults=:
  24076. while test $# != 0
  24077. do
  24078. case $1 in
  24079. --*=?*)
  24080. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24081. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  24082. ac_shift=:
  24083. ;;
  24084. --*=)
  24085. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24086. ac_optarg=
  24087. ac_shift=:
  24088. ;;
  24089. *)
  24090. ac_option=$1
  24091. ac_optarg=$2
  24092. ac_shift=shift
  24093. ;;
  24094. esac
  24095. case $ac_option in
  24096. # Handling of the options.
  24097. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24098. ac_cs_recheck=: ;;
  24099. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  24100. $as_echo "$ac_cs_version"; exit ;;
  24101. --config | --confi | --conf | --con | --co | --c )
  24102. $as_echo "$ac_cs_config"; exit ;;
  24103. --debug | --debu | --deb | --de | --d | -d )
  24104. debug=: ;;
  24105. --file | --fil | --fi | --f )
  24106. $ac_shift
  24107. case $ac_optarg in
  24108. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24109. '') as_fn_error $? "missing file argument" ;;
  24110. esac
  24111. as_fn_append CONFIG_FILES " '$ac_optarg'"
  24112. ac_need_defaults=false;;
  24113. --header | --heade | --head | --hea )
  24114. $ac_shift
  24115. case $ac_optarg in
  24116. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24117. esac
  24118. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  24119. ac_need_defaults=false;;
  24120. --he | --h)
  24121. # Conflict between --help and --header
  24122. as_fn_error $? "ambiguous option: \`$1'
  24123. Try \`$0 --help' for more information.";;
  24124. --help | --hel | -h )
  24125. $as_echo "$ac_cs_usage"; exit ;;
  24126. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24127. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24128. ac_cs_silent=: ;;
  24129. # This is an error.
  24130. -*) as_fn_error $? "unrecognized option: \`$1'
  24131. Try \`$0 --help' for more information." ;;
  24132. *) as_fn_append ac_config_targets " $1"
  24133. ac_need_defaults=false ;;
  24134. esac
  24135. shift
  24136. done
  24137. ac_configure_extra_args=
  24138. if $ac_cs_silent; then
  24139. exec 6>/dev/null
  24140. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24141. fi
  24142. _ACEOF
  24143. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24144. if \$ac_cs_recheck; then
  24145. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24146. shift
  24147. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  24148. CONFIG_SHELL='$SHELL'
  24149. export CONFIG_SHELL
  24150. exec "\$@"
  24151. fi
  24152. _ACEOF
  24153. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24154. exec 5>>config.log
  24155. {
  24156. echo
  24157. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24158. ## Running $as_me. ##
  24159. _ASBOX
  24160. $as_echo "$ac_log"
  24161. } >&5
  24162. _ACEOF
  24163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24164. #
  24165. # INIT-COMMANDS
  24166. #
  24167. # The HP-UX ksh and POSIX shell print the target directory to stdout
  24168. # if CDPATH is set.
  24169. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  24170. sed_quote_subst='$sed_quote_subst'
  24171. double_quote_subst='$double_quote_subst'
  24172. delay_variable_subst='$delay_variable_subst'
  24173. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  24174. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  24175. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  24176. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  24177. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  24178. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  24179. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  24180. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  24181. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  24182. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  24183. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  24184. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  24185. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  24186. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  24187. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  24188. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  24189. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  24190. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  24191. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  24192. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  24193. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  24194. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  24195. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  24196. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  24197. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  24198. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  24199. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  24200. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  24201. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  24202. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  24203. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  24204. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  24205. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  24206. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  24207. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  24208. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  24209. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  24210. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  24211. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  24212. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  24213. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  24214. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  24215. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  24216. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  24217. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  24218. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  24219. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  24220. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24221. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24222. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  24223. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  24224. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  24225. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  24226. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  24227. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  24228. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  24229. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  24230. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  24231. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  24232. 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"`'
  24233. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  24234. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  24235. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  24236. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  24237. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  24238. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  24239. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  24240. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  24241. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  24242. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  24243. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  24244. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  24245. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  24246. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  24247. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  24248. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  24249. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  24250. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  24251. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  24252. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  24253. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24254. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  24255. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  24256. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  24257. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  24258. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  24259. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  24260. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24261. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  24262. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24263. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  24264. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24265. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  24266. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24267. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24268. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  24269. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  24270. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  24271. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  24272. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  24273. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24274. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  24275. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  24276. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  24277. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  24278. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  24279. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  24280. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  24281. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  24282. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  24283. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  24284. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  24285. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  24286. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24287. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24288. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24289. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24290. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24291. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24292. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24293. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24294. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24295. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24296. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24297. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24298. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24299. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24300. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24301. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24302. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24303. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24304. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24305. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24306. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24307. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24308. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24309. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24310. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24311. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24312. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24313. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24314. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24315. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24316. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24317. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24318. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24319. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24320. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24321. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24322. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24323. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24324. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24325. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24326. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24327. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24328. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24329. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24330. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24331. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24332. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24333. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24334. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24335. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24336. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24337. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24338. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24339. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24340. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24341. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24342. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24343. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24344. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24345. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24346. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24347. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24348. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24349. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24350. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24351. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24352. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24353. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24354. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24355. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24356. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24357. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24358. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24359. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24360. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24361. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24362. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24363. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24364. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24365. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24366. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24367. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24368. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24369. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24370. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24371. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24372. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24373. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24374. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24375. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24376. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24377. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24378. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24379. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24380. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24381. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24382. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24383. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24384. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24385. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24386. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24387. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24388. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24389. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24390. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24391. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24392. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24393. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24394. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24395. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24396. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24397. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24398. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24399. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24400. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24401. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24402. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24403. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24404. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24405. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24406. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24407. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24408. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24409. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24410. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24411. LTCC='$LTCC'
  24412. LTCFLAGS='$LTCFLAGS'
  24413. compiler='$compiler_DEFAULT'
  24414. # A function that is used when there is no print builtin or printf.
  24415. func_fallback_echo ()
  24416. {
  24417. eval 'cat <<_LTECHO_EOF
  24418. \$1
  24419. _LTECHO_EOF'
  24420. }
  24421. # Quote evaled strings.
  24422. for var in AS \
  24423. DLLTOOL \
  24424. OBJDUMP \
  24425. SHELL \
  24426. ECHO \
  24427. PATH_SEPARATOR \
  24428. SED \
  24429. GREP \
  24430. EGREP \
  24431. FGREP \
  24432. LD \
  24433. NM \
  24434. LN_S \
  24435. lt_SP2NL \
  24436. lt_NL2SP \
  24437. reload_flag \
  24438. deplibs_check_method \
  24439. file_magic_cmd \
  24440. file_magic_glob \
  24441. want_nocaseglob \
  24442. sharedlib_from_linklib_cmd \
  24443. AR \
  24444. AR_FLAGS \
  24445. archiver_list_spec \
  24446. STRIP \
  24447. RANLIB \
  24448. CC \
  24449. CFLAGS \
  24450. compiler \
  24451. lt_cv_sys_global_symbol_pipe \
  24452. lt_cv_sys_global_symbol_to_cdecl \
  24453. lt_cv_sys_global_symbol_to_import \
  24454. lt_cv_sys_global_symbol_to_c_name_address \
  24455. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24456. lt_cv_nm_interface \
  24457. nm_file_list_spec \
  24458. lt_cv_truncate_bin \
  24459. lt_prog_compiler_no_builtin_flag \
  24460. lt_prog_compiler_pic \
  24461. lt_prog_compiler_wl \
  24462. lt_prog_compiler_static \
  24463. lt_cv_prog_compiler_c_o \
  24464. need_locks \
  24465. MANIFEST_TOOL \
  24466. DSYMUTIL \
  24467. NMEDIT \
  24468. LIPO \
  24469. OTOOL \
  24470. OTOOL64 \
  24471. shrext_cmds \
  24472. export_dynamic_flag_spec \
  24473. whole_archive_flag_spec \
  24474. compiler_needs_object \
  24475. with_gnu_ld \
  24476. allow_undefined_flag \
  24477. no_undefined_flag \
  24478. hardcode_libdir_flag_spec \
  24479. hardcode_libdir_separator \
  24480. exclude_expsyms \
  24481. include_expsyms \
  24482. file_list_spec \
  24483. variables_saved_for_relink \
  24484. libname_spec \
  24485. library_names_spec \
  24486. soname_spec \
  24487. install_override_mode \
  24488. finish_eval \
  24489. old_striplib \
  24490. striplib \
  24491. compiler_lib_search_dirs \
  24492. predep_objects \
  24493. postdep_objects \
  24494. predeps \
  24495. postdeps \
  24496. compiler_lib_search_path \
  24497. LD_RC \
  24498. LD_CXX \
  24499. reload_flag_RC \
  24500. reload_flag_CXX \
  24501. compiler_RC \
  24502. compiler_CXX \
  24503. lt_prog_compiler_no_builtin_flag_RC \
  24504. lt_prog_compiler_no_builtin_flag_CXX \
  24505. lt_prog_compiler_pic_RC \
  24506. lt_prog_compiler_pic_CXX \
  24507. lt_prog_compiler_wl_RC \
  24508. lt_prog_compiler_wl_CXX \
  24509. lt_prog_compiler_static_RC \
  24510. lt_prog_compiler_static_CXX \
  24511. lt_cv_prog_compiler_c_o_RC \
  24512. lt_cv_prog_compiler_c_o_CXX \
  24513. export_dynamic_flag_spec_RC \
  24514. export_dynamic_flag_spec_CXX \
  24515. whole_archive_flag_spec_RC \
  24516. whole_archive_flag_spec_CXX \
  24517. compiler_needs_object_RC \
  24518. compiler_needs_object_CXX \
  24519. with_gnu_ld_RC \
  24520. with_gnu_ld_CXX \
  24521. allow_undefined_flag_RC \
  24522. allow_undefined_flag_CXX \
  24523. no_undefined_flag_RC \
  24524. no_undefined_flag_CXX \
  24525. hardcode_libdir_flag_spec_RC \
  24526. hardcode_libdir_flag_spec_CXX \
  24527. hardcode_libdir_separator_RC \
  24528. hardcode_libdir_separator_CXX \
  24529. exclude_expsyms_RC \
  24530. exclude_expsyms_CXX \
  24531. include_expsyms_RC \
  24532. include_expsyms_CXX \
  24533. file_list_spec_RC \
  24534. file_list_spec_CXX \
  24535. compiler_lib_search_dirs_RC \
  24536. compiler_lib_search_dirs_CXX \
  24537. predep_objects_RC \
  24538. predep_objects_CXX \
  24539. postdep_objects_RC \
  24540. postdep_objects_CXX \
  24541. predeps_RC \
  24542. predeps_CXX \
  24543. postdeps_RC \
  24544. postdeps_CXX \
  24545. compiler_lib_search_path_RC \
  24546. compiler_lib_search_path_CXX; do
  24547. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24548. *[\\\\\\\`\\"\\\$]*)
  24549. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24550. ;;
  24551. *)
  24552. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24553. ;;
  24554. esac
  24555. done
  24556. # Double-quote double-evaled strings.
  24557. for var in reload_cmds \
  24558. old_postinstall_cmds \
  24559. old_postuninstall_cmds \
  24560. old_archive_cmds \
  24561. extract_expsyms_cmds \
  24562. old_archive_from_new_cmds \
  24563. old_archive_from_expsyms_cmds \
  24564. archive_cmds \
  24565. archive_expsym_cmds \
  24566. module_cmds \
  24567. module_expsym_cmds \
  24568. export_symbols_cmds \
  24569. prelink_cmds \
  24570. postlink_cmds \
  24571. postinstall_cmds \
  24572. postuninstall_cmds \
  24573. finish_cmds \
  24574. sys_lib_search_path_spec \
  24575. configure_time_dlsearch_path \
  24576. configure_time_lt_sys_library_path \
  24577. reload_cmds_RC \
  24578. reload_cmds_CXX \
  24579. old_archive_cmds_RC \
  24580. old_archive_cmds_CXX \
  24581. old_archive_from_new_cmds_RC \
  24582. old_archive_from_new_cmds_CXX \
  24583. old_archive_from_expsyms_cmds_RC \
  24584. old_archive_from_expsyms_cmds_CXX \
  24585. archive_cmds_RC \
  24586. archive_cmds_CXX \
  24587. archive_expsym_cmds_RC \
  24588. archive_expsym_cmds_CXX \
  24589. module_cmds_RC \
  24590. module_cmds_CXX \
  24591. module_expsym_cmds_RC \
  24592. module_expsym_cmds_CXX \
  24593. export_symbols_cmds_RC \
  24594. export_symbols_cmds_CXX \
  24595. prelink_cmds_RC \
  24596. prelink_cmds_CXX \
  24597. postlink_cmds_RC \
  24598. postlink_cmds_CXX; do
  24599. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24600. *[\\\\\\\`\\"\\\$]*)
  24601. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24602. ;;
  24603. *)
  24604. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24605. ;;
  24606. esac
  24607. done
  24608. ac_aux_dir='$ac_aux_dir'
  24609. # See if we are running on zsh, and set the options that allow our
  24610. # commands through without removal of \ escapes INIT.
  24611. if test -n "\${ZSH_VERSION+set}"; then
  24612. setopt NO_GLOB_SUBST
  24613. fi
  24614. PACKAGE='$PACKAGE'
  24615. VERSION='$VERSION'
  24616. RM='$RM'
  24617. ofile='$ofile'
  24618. SUMMARY="$SUMMARY"
  24619. _ACEOF
  24620. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24621. # Handling of arguments.
  24622. for ac_config_target in $ac_config_targets
  24623. do
  24624. case $ac_config_target in
  24625. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24626. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24627. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24628. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24629. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24630. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24631. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24632. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24633. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24634. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24635. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24636. esac
  24637. done
  24638. # If the user did not use the arguments to specify the items to instantiate,
  24639. # then the envvar interface is used. Set only those that are not.
  24640. # We use the long form for the default assignment because of an extremely
  24641. # bizarre bug on SunOS 4.1.3.
  24642. if $ac_need_defaults; then
  24643. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24644. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24645. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24646. fi
  24647. # Have a temporary directory for convenience. Make it in the build tree
  24648. # simply because there is no reason against having it here, and in addition,
  24649. # creating and moving files from /tmp can sometimes cause problems.
  24650. # Hook for its removal unless debugging.
  24651. # Note that there is a small window in which the directory will not be cleaned:
  24652. # after its creation but before its name has been assigned to `$tmp'.
  24653. $debug ||
  24654. {
  24655. tmp= ac_tmp=
  24656. trap 'exit_status=$?
  24657. : "${ac_tmp:=$tmp}"
  24658. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24659. ' 0
  24660. trap 'as_fn_exit 1' 1 2 13 15
  24661. }
  24662. # Create a (secure) tmp directory for tmp files.
  24663. {
  24664. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24665. test -d "$tmp"
  24666. } ||
  24667. {
  24668. tmp=./conf$$-$RANDOM
  24669. (umask 077 && mkdir "$tmp")
  24670. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24671. ac_tmp=$tmp
  24672. # Set up the scripts for CONFIG_FILES section.
  24673. # No need to generate them if there are no CONFIG_FILES.
  24674. # This happens for instance with `./config.status config.h'.
  24675. if test -n "$CONFIG_FILES"; then
  24676. ac_cr=`echo X | tr X '\015'`
  24677. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24678. # But we know of no other shell where ac_cr would be empty at this
  24679. # point, so we can use a bashism as a fallback.
  24680. if test "x$ac_cr" = x; then
  24681. eval ac_cr=\$\'\\r\'
  24682. fi
  24683. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24684. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24685. ac_cs_awk_cr='\\r'
  24686. else
  24687. ac_cs_awk_cr=$ac_cr
  24688. fi
  24689. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24690. _ACEOF
  24691. {
  24692. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24693. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24694. echo "_ACEOF"
  24695. } >conf$$subs.sh ||
  24696. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24697. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24698. ac_delim='%!_!# '
  24699. for ac_last_try in false false false false false :; do
  24700. . ./conf$$subs.sh ||
  24701. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24702. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24703. if test $ac_delim_n = $ac_delim_num; then
  24704. break
  24705. elif $ac_last_try; then
  24706. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24707. else
  24708. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24709. fi
  24710. done
  24711. rm -f conf$$subs.sh
  24712. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24713. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24714. _ACEOF
  24715. sed -n '
  24716. h
  24717. s/^/S["/; s/!.*/"]=/
  24718. p
  24719. g
  24720. s/^[^!]*!//
  24721. :repl
  24722. t repl
  24723. s/'"$ac_delim"'$//
  24724. t delim
  24725. :nl
  24726. h
  24727. s/\(.\{148\}\)..*/\1/
  24728. t more1
  24729. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24730. p
  24731. n
  24732. b repl
  24733. :more1
  24734. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24735. p
  24736. g
  24737. s/.\{148\}//
  24738. t nl
  24739. :delim
  24740. h
  24741. s/\(.\{148\}\)..*/\1/
  24742. t more2
  24743. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24744. p
  24745. b
  24746. :more2
  24747. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24748. p
  24749. g
  24750. s/.\{148\}//
  24751. t delim
  24752. ' <conf$$subs.awk | sed '
  24753. /^[^""]/{
  24754. N
  24755. s/\n//
  24756. }
  24757. ' >>$CONFIG_STATUS || ac_write_fail=1
  24758. rm -f conf$$subs.awk
  24759. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24760. _ACAWK
  24761. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24762. for (key in S) S_is_set[key] = 1
  24763. FS = ""
  24764. }
  24765. {
  24766. line = $ 0
  24767. nfields = split(line, field, "@")
  24768. substed = 0
  24769. len = length(field[1])
  24770. for (i = 2; i < nfields; i++) {
  24771. key = field[i]
  24772. keylen = length(key)
  24773. if (S_is_set[key]) {
  24774. value = S[key]
  24775. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24776. len += length(value) + length(field[++i])
  24777. substed = 1
  24778. } else
  24779. len += 1 + keylen
  24780. }
  24781. print line
  24782. }
  24783. _ACAWK
  24784. _ACEOF
  24785. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24786. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24787. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24788. else
  24789. cat
  24790. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24791. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24792. _ACEOF
  24793. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24794. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24795. # trailing colons and then remove the whole line if VPATH becomes empty
  24796. # (actually we leave an empty line to preserve line numbers).
  24797. if test "x$srcdir" = x.; then
  24798. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24799. h
  24800. s///
  24801. s/^/:/
  24802. s/[ ]*$/:/
  24803. s/:\$(srcdir):/:/g
  24804. s/:\${srcdir}:/:/g
  24805. s/:@srcdir@:/:/g
  24806. s/^:*//
  24807. s/:*$//
  24808. x
  24809. s/\(=[ ]*\).*/\1/
  24810. G
  24811. s/\n//
  24812. s/^[^=]*=[ ]*$//
  24813. }'
  24814. fi
  24815. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24816. fi # test -n "$CONFIG_FILES"
  24817. # Set up the scripts for CONFIG_HEADERS section.
  24818. # No need to generate them if there are no CONFIG_HEADERS.
  24819. # This happens for instance with `./config.status Makefile'.
  24820. if test -n "$CONFIG_HEADERS"; then
  24821. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24822. BEGIN {
  24823. _ACEOF
  24824. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24825. # here-document in config.status, that substitutes the proper values into
  24826. # config.h.in to produce config.h.
  24827. # Create a delimiter string that does not exist in confdefs.h, to ease
  24828. # handling of long lines.
  24829. ac_delim='%!_!# '
  24830. for ac_last_try in false false :; do
  24831. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24832. if test -z "$ac_tt"; then
  24833. break
  24834. elif $ac_last_try; then
  24835. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24836. else
  24837. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24838. fi
  24839. done
  24840. # For the awk script, D is an array of macro values keyed by name,
  24841. # likewise P contains macro parameters if any. Preserve backslash
  24842. # newline sequences.
  24843. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24844. sed -n '
  24845. s/.\{148\}/&'"$ac_delim"'/g
  24846. t rset
  24847. :rset
  24848. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24849. t def
  24850. d
  24851. :def
  24852. s/\\$//
  24853. t bsnl
  24854. s/["\\]/\\&/g
  24855. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24856. D["\1"]=" \3"/p
  24857. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24858. d
  24859. :bsnl
  24860. s/["\\]/\\&/g
  24861. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24862. D["\1"]=" \3\\\\\\n"\\/p
  24863. t cont
  24864. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24865. t cont
  24866. d
  24867. :cont
  24868. n
  24869. s/.\{148\}/&'"$ac_delim"'/g
  24870. t clear
  24871. :clear
  24872. s/\\$//
  24873. t bsnlc
  24874. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24875. d
  24876. :bsnlc
  24877. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24878. b cont
  24879. ' <confdefs.h | sed '
  24880. s/'"$ac_delim"'/"\\\
  24881. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24882. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24883. for (key in D) D_is_set[key] = 1
  24884. FS = ""
  24885. }
  24886. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24887. line = \$ 0
  24888. split(line, arg, " ")
  24889. if (arg[1] == "#") {
  24890. defundef = arg[2]
  24891. mac1 = arg[3]
  24892. } else {
  24893. defundef = substr(arg[1], 2)
  24894. mac1 = arg[2]
  24895. }
  24896. split(mac1, mac2, "(") #)
  24897. macro = mac2[1]
  24898. prefix = substr(line, 1, index(line, defundef) - 1)
  24899. if (D_is_set[macro]) {
  24900. # Preserve the white space surrounding the "#".
  24901. print prefix "define", macro P[macro] D[macro]
  24902. next
  24903. } else {
  24904. # Replace #undef with comments. This is necessary, for example,
  24905. # in the case of _POSIX_SOURCE, which is predefined and required
  24906. # on some systems where configure will not decide to define it.
  24907. if (defundef == "undef") {
  24908. print "/*", prefix defundef, macro, "*/"
  24909. next
  24910. }
  24911. }
  24912. }
  24913. { print }
  24914. _ACAWK
  24915. _ACEOF
  24916. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24917. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24918. fi # test -n "$CONFIG_HEADERS"
  24919. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24920. shift
  24921. for ac_tag
  24922. do
  24923. case $ac_tag in
  24924. :[FHLC]) ac_mode=$ac_tag; continue;;
  24925. esac
  24926. case $ac_mode$ac_tag in
  24927. :[FHL]*:*);;
  24928. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24929. :[FH]-) ac_tag=-:-;;
  24930. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24931. esac
  24932. ac_save_IFS=$IFS
  24933. IFS=:
  24934. set x $ac_tag
  24935. IFS=$ac_save_IFS
  24936. shift
  24937. ac_file=$1
  24938. shift
  24939. case $ac_mode in
  24940. :L) ac_source=$1;;
  24941. :[FH])
  24942. ac_file_inputs=
  24943. for ac_f
  24944. do
  24945. case $ac_f in
  24946. -) ac_f="$ac_tmp/stdin";;
  24947. *) # Look for the file first in the build tree, then in the source tree
  24948. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24949. # because $ac_f cannot contain `:'.
  24950. test -f "$ac_f" ||
  24951. case $ac_f in
  24952. [\\/$]*) false;;
  24953. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24954. esac ||
  24955. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24956. esac
  24957. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24958. as_fn_append ac_file_inputs " '$ac_f'"
  24959. done
  24960. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24961. # use $as_me), people would be surprised to read:
  24962. # /* config.h. Generated by config.status. */
  24963. configure_input='Generated from '`
  24964. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24965. `' by configure.'
  24966. if test x"$ac_file" != x-; then
  24967. configure_input="$ac_file. $configure_input"
  24968. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24969. $as_echo "$as_me: creating $ac_file" >&6;}
  24970. fi
  24971. # Neutralize special characters interpreted by sed in replacement strings.
  24972. case $configure_input in #(
  24973. *\&* | *\|* | *\\* )
  24974. ac_sed_conf_input=`$as_echo "$configure_input" |
  24975. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24976. *) ac_sed_conf_input=$configure_input;;
  24977. esac
  24978. case $ac_tag in
  24979. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24980. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24981. esac
  24982. ;;
  24983. esac
  24984. ac_dir=`$as_dirname -- "$ac_file" ||
  24985. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24986. X"$ac_file" : 'X\(//\)[^/]' \| \
  24987. X"$ac_file" : 'X\(//\)$' \| \
  24988. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24989. $as_echo X"$ac_file" |
  24990. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24991. s//\1/
  24992. q
  24993. }
  24994. /^X\(\/\/\)[^/].*/{
  24995. s//\1/
  24996. q
  24997. }
  24998. /^X\(\/\/\)$/{
  24999. s//\1/
  25000. q
  25001. }
  25002. /^X\(\/\).*/{
  25003. s//\1/
  25004. q
  25005. }
  25006. s/.*/./; q'`
  25007. as_dir="$ac_dir"; as_fn_mkdir_p
  25008. ac_builddir=.
  25009. case "$ac_dir" in
  25010. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25011. *)
  25012. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  25013. # A ".." for each directory in $ac_dir_suffix.
  25014. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  25015. case $ac_top_builddir_sub in
  25016. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25017. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25018. esac ;;
  25019. esac
  25020. ac_abs_top_builddir=$ac_pwd
  25021. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25022. # for backward compatibility:
  25023. ac_top_builddir=$ac_top_build_prefix
  25024. case $srcdir in
  25025. .) # We are building in place.
  25026. ac_srcdir=.
  25027. ac_top_srcdir=$ac_top_builddir_sub
  25028. ac_abs_top_srcdir=$ac_pwd ;;
  25029. [\\/]* | ?:[\\/]* ) # Absolute name.
  25030. ac_srcdir=$srcdir$ac_dir_suffix;
  25031. ac_top_srcdir=$srcdir
  25032. ac_abs_top_srcdir=$srcdir ;;
  25033. *) # Relative name.
  25034. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25035. ac_top_srcdir=$ac_top_build_prefix$srcdir
  25036. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25037. esac
  25038. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25039. case $ac_mode in
  25040. :F)
  25041. #
  25042. # CONFIG_FILE
  25043. #
  25044. case $INSTALL in
  25045. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25046. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  25047. esac
  25048. _ACEOF
  25049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25050. # If the template does not know about datarootdir, expand it.
  25051. # FIXME: This hack should be removed a few years after 2.60.
  25052. ac_datarootdir_hack=; ac_datarootdir_seen=
  25053. ac_sed_dataroot='
  25054. /datarootdir/ {
  25055. p
  25056. q
  25057. }
  25058. /@datadir@/p
  25059. /@docdir@/p
  25060. /@infodir@/p
  25061. /@localedir@/p
  25062. /@mandir@/p'
  25063. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  25064. *datarootdir*) ac_datarootdir_seen=yes;;
  25065. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  25066. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  25067. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  25068. _ACEOF
  25069. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25070. ac_datarootdir_hack='
  25071. s&@datadir@&$datadir&g
  25072. s&@docdir@&$docdir&g
  25073. s&@infodir@&$infodir&g
  25074. s&@localedir@&$localedir&g
  25075. s&@mandir@&$mandir&g
  25076. s&\\\${datarootdir}&$datarootdir&g' ;;
  25077. esac
  25078. _ACEOF
  25079. # Neutralize VPATH when `$srcdir' = `.'.
  25080. # Shell code in configure.ac might set extrasub.
  25081. # FIXME: do we really want to maintain this feature?
  25082. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25083. ac_sed_extra="$ac_vpsub
  25084. $extrasub
  25085. _ACEOF
  25086. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25087. :t
  25088. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25089. s|@configure_input@|$ac_sed_conf_input|;t t
  25090. s&@top_builddir@&$ac_top_builddir_sub&;t t
  25091. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  25092. s&@srcdir@&$ac_srcdir&;t t
  25093. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  25094. s&@top_srcdir@&$ac_top_srcdir&;t t
  25095. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25096. s&@builddir@&$ac_builddir&;t t
  25097. s&@abs_builddir@&$ac_abs_builddir&;t t
  25098. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25099. s&@INSTALL@&$ac_INSTALL&;t t
  25100. $ac_datarootdir_hack
  25101. "
  25102. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  25103. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25104. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25105. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  25106. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  25107. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  25108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25109. which seems to be undefined. Please make sure it is defined" >&5
  25110. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25111. which seems to be undefined. Please make sure it is defined" >&2;}
  25112. rm -f "$ac_tmp/stdin"
  25113. case $ac_file in
  25114. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  25115. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  25116. esac \
  25117. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25118. ;;
  25119. :H)
  25120. #
  25121. # CONFIG_HEADER
  25122. #
  25123. if test x"$ac_file" != x-; then
  25124. {
  25125. $as_echo "/* $configure_input */" \
  25126. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  25127. } >"$ac_tmp/config.h" \
  25128. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25129. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  25130. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  25131. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  25132. else
  25133. rm -f "$ac_file"
  25134. mv "$ac_tmp/config.h" "$ac_file" \
  25135. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25136. fi
  25137. else
  25138. $as_echo "/* $configure_input */" \
  25139. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  25140. || as_fn_error $? "could not create -" "$LINENO" 5
  25141. fi
  25142. ;;
  25143. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  25144. $as_echo "$as_me: executing $ac_file commands" >&6;}
  25145. ;;
  25146. esac
  25147. case $ac_file$ac_mode in
  25148. "libtool":C)
  25149. # See if we are running on zsh, and set the options that allow our
  25150. # commands through without removal of \ escapes.
  25151. if test -n "${ZSH_VERSION+set}"; then
  25152. setopt NO_GLOB_SUBST
  25153. fi
  25154. cfgfile=${ofile}T
  25155. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  25156. $RM "$cfgfile"
  25157. cat <<_LT_EOF >> "$cfgfile"
  25158. #! $SHELL
  25159. # Generated automatically by $as_me ($PACKAGE) $VERSION
  25160. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25161. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  25162. # Provide generalized library-building support services.
  25163. # Written by Gordon Matzigkeit, 1996
  25164. # Copyright (C) 2014 Free Software Foundation, Inc.
  25165. # This is free software; see the source for copying conditions. There is NO
  25166. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  25167. # GNU Libtool is free software; you can redistribute it and/or modify
  25168. # it under the terms of the GNU General Public License as published by
  25169. # the Free Software Foundation; either version 2 of of the License, or
  25170. # (at your option) any later version.
  25171. #
  25172. # As a special exception to the GNU General Public License, if you
  25173. # distribute this file as part of a program or library that is built
  25174. # using GNU Libtool, you may include this file under the same
  25175. # distribution terms that you use for the rest of that program.
  25176. #
  25177. # GNU Libtool is distributed in the hope that it will be useful, but
  25178. # WITHOUT ANY WARRANTY; without even the implied warranty of
  25179. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25180. # GNU General Public License for more details.
  25181. #
  25182. # You should have received a copy of the GNU General Public License
  25183. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  25184. # The names of the tagged configurations supported by this script.
  25185. available_tags='RC CXX '
  25186. # Configured defaults for sys_lib_dlsearch_path munging.
  25187. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  25188. # ### BEGIN LIBTOOL CONFIG
  25189. # Which release of libtool.m4 was used?
  25190. macro_version=$macro_version
  25191. macro_revision=$macro_revision
  25192. # Assembler program.
  25193. AS=$lt_AS
  25194. # DLL creation program.
  25195. DLLTOOL=$lt_DLLTOOL
  25196. # Object dumper program.
  25197. OBJDUMP=$lt_OBJDUMP
  25198. # Whether or not to build shared libraries.
  25199. build_libtool_libs=$enable_shared
  25200. # Whether or not to build static libraries.
  25201. build_old_libs=$enable_static
  25202. # What type of objects to build.
  25203. pic_mode=$pic_mode
  25204. # Whether or not to optimize for fast installation.
  25205. fast_install=$enable_fast_install
  25206. # Shared archive member basename,for filename based shared library versioning on AIX.
  25207. shared_archive_member_spec=$shared_archive_member_spec
  25208. # Shell to use when invoking shell scripts.
  25209. SHELL=$lt_SHELL
  25210. # An echo program that protects backslashes.
  25211. ECHO=$lt_ECHO
  25212. # The PATH separator for the build system.
  25213. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  25214. # The host system.
  25215. host_alias=$host_alias
  25216. host=$host
  25217. host_os=$host_os
  25218. # The build system.
  25219. build_alias=$build_alias
  25220. build=$build
  25221. build_os=$build_os
  25222. # A sed program that does not truncate output.
  25223. SED=$lt_SED
  25224. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  25225. Xsed="\$SED -e 1s/^X//"
  25226. # A grep program that handles long lines.
  25227. GREP=$lt_GREP
  25228. # An ERE matcher.
  25229. EGREP=$lt_EGREP
  25230. # A literal string matcher.
  25231. FGREP=$lt_FGREP
  25232. # A BSD- or MS-compatible name lister.
  25233. NM=$lt_NM
  25234. # Whether we need soft or hard links.
  25235. LN_S=$lt_LN_S
  25236. # What is the maximum length of a command?
  25237. max_cmd_len=$max_cmd_len
  25238. # Object file suffix (normally "o").
  25239. objext=$ac_objext
  25240. # Executable file suffix (normally "").
  25241. exeext=$exeext
  25242. # whether the shell understands "unset".
  25243. lt_unset=$lt_unset
  25244. # turn spaces into newlines.
  25245. SP2NL=$lt_lt_SP2NL
  25246. # turn newlines into spaces.
  25247. NL2SP=$lt_lt_NL2SP
  25248. # convert \$build file names to \$host format.
  25249. to_host_file_cmd=$lt_cv_to_host_file_cmd
  25250. # convert \$build files to toolchain format.
  25251. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  25252. # Method to check whether dependent libraries are shared objects.
  25253. deplibs_check_method=$lt_deplibs_check_method
  25254. # Command to use when deplibs_check_method = "file_magic".
  25255. file_magic_cmd=$lt_file_magic_cmd
  25256. # How to find potential files when deplibs_check_method = "file_magic".
  25257. file_magic_glob=$lt_file_magic_glob
  25258. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  25259. want_nocaseglob=$lt_want_nocaseglob
  25260. # Command to associate shared and link libraries.
  25261. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  25262. # The archiver.
  25263. AR=$lt_AR
  25264. # Flags to create an archive.
  25265. AR_FLAGS=$lt_AR_FLAGS
  25266. # How to feed a file listing to the archiver.
  25267. archiver_list_spec=$lt_archiver_list_spec
  25268. # A symbol stripping program.
  25269. STRIP=$lt_STRIP
  25270. # Commands used to install an old-style archive.
  25271. RANLIB=$lt_RANLIB
  25272. old_postinstall_cmds=$lt_old_postinstall_cmds
  25273. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25274. # Whether to use a lock for old archive extraction.
  25275. lock_old_archive_extraction=$lock_old_archive_extraction
  25276. # A C compiler.
  25277. LTCC=$lt_CC
  25278. # LTCC compiler flags.
  25279. LTCFLAGS=$lt_CFLAGS
  25280. # Take the output of nm and produce a listing of raw symbols and C names.
  25281. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25282. # Transform the output of nm in a proper C declaration.
  25283. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25284. # Transform the output of nm into a list of symbols to manually relocate.
  25285. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  25286. # Transform the output of nm in a C name address pair.
  25287. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25288. # Transform the output of nm in a C name address pair when lib prefix is needed.
  25289. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25290. # The name lister interface.
  25291. nm_interface=$lt_lt_cv_nm_interface
  25292. # Specify filename containing input files for \$NM.
  25293. nm_file_list_spec=$lt_nm_file_list_spec
  25294. # The root where to search for dependent libraries,and where our libraries should be installed.
  25295. lt_sysroot=$lt_sysroot
  25296. # Command to truncate a binary pipe.
  25297. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25298. # The name of the directory that contains temporary libtool files.
  25299. objdir=$objdir
  25300. # Used to examine libraries when file_magic_cmd begins with "file".
  25301. MAGIC_CMD=$MAGIC_CMD
  25302. # Must we lock files when doing compilation?
  25303. need_locks=$lt_need_locks
  25304. # Manifest tool.
  25305. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25306. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25307. DSYMUTIL=$lt_DSYMUTIL
  25308. # Tool to change global to local symbols on Mac OS X.
  25309. NMEDIT=$lt_NMEDIT
  25310. # Tool to manipulate fat objects and archives on Mac OS X.
  25311. LIPO=$lt_LIPO
  25312. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25313. OTOOL=$lt_OTOOL
  25314. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25315. OTOOL64=$lt_OTOOL64
  25316. # Old archive suffix (normally "a").
  25317. libext=$libext
  25318. # Shared library suffix (normally ".so").
  25319. shrext_cmds=$lt_shrext_cmds
  25320. # The commands to extract the exported symbol list from a shared archive.
  25321. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25322. # Variables whose values should be saved in libtool wrapper scripts and
  25323. # restored at link time.
  25324. variables_saved_for_relink=$lt_variables_saved_for_relink
  25325. # Do we need the "lib" prefix for modules?
  25326. need_lib_prefix=$need_lib_prefix
  25327. # Do we need a version for libraries?
  25328. need_version=$need_version
  25329. # Library versioning type.
  25330. version_type=$version_type
  25331. # Shared library runtime path variable.
  25332. runpath_var=$runpath_var
  25333. # Shared library path variable.
  25334. shlibpath_var=$shlibpath_var
  25335. # Is shlibpath searched before the hard-coded library search path?
  25336. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25337. # Format of library name prefix.
  25338. libname_spec=$lt_libname_spec
  25339. # List of archive names. First name is the real one, the rest are links.
  25340. # The last name is the one that the linker finds with -lNAME
  25341. library_names_spec=$lt_library_names_spec
  25342. # The coded name of the library, if different from the real name.
  25343. soname_spec=$lt_soname_spec
  25344. # Permission mode override for installation of shared libraries.
  25345. install_override_mode=$lt_install_override_mode
  25346. # Command to use after installation of a shared archive.
  25347. postinstall_cmds=$lt_postinstall_cmds
  25348. # Command to use after uninstallation of a shared archive.
  25349. postuninstall_cmds=$lt_postuninstall_cmds
  25350. # Commands used to finish a libtool library installation in a directory.
  25351. finish_cmds=$lt_finish_cmds
  25352. # As "finish_cmds", except a single script fragment to be evaled but
  25353. # not shown.
  25354. finish_eval=$lt_finish_eval
  25355. # Whether we should hardcode library paths into libraries.
  25356. hardcode_into_libs=$hardcode_into_libs
  25357. # Compile-time system search path for libraries.
  25358. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25359. # Detected run-time system search path for libraries.
  25360. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25361. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25362. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25363. # Whether dlopen is supported.
  25364. dlopen_support=$enable_dlopen
  25365. # Whether dlopen of programs is supported.
  25366. dlopen_self=$enable_dlopen_self
  25367. # Whether dlopen of statically linked programs is supported.
  25368. dlopen_self_static=$enable_dlopen_self_static
  25369. # Commands to strip libraries.
  25370. old_striplib=$lt_old_striplib
  25371. striplib=$lt_striplib
  25372. # The linker used to build libraries.
  25373. LD=$lt_LD
  25374. # How to create reloadable object files.
  25375. reload_flag=$lt_reload_flag
  25376. reload_cmds=$lt_reload_cmds
  25377. # Commands used to build an old-style archive.
  25378. old_archive_cmds=$lt_old_archive_cmds
  25379. # A language specific compiler.
  25380. CC=$lt_compiler
  25381. # Is the compiler the GNU compiler?
  25382. with_gcc=$GCC
  25383. # Compiler flag to turn off builtin functions.
  25384. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25385. # Additional compiler flags for building library objects.
  25386. pic_flag=$lt_lt_prog_compiler_pic
  25387. # How to pass a linker flag through the compiler.
  25388. wl=$lt_lt_prog_compiler_wl
  25389. # Compiler flag to prevent dynamic linking.
  25390. link_static_flag=$lt_lt_prog_compiler_static
  25391. # Does compiler simultaneously support -c and -o options?
  25392. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25393. # Whether or not to add -lc for building shared libraries.
  25394. build_libtool_need_lc=$archive_cmds_need_lc
  25395. # Whether or not to disallow shared libs when runtime libs are static.
  25396. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25397. # Compiler flag to allow reflexive dlopens.
  25398. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25399. # Compiler flag to generate shared objects directly from archives.
  25400. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25401. # Whether the compiler copes with passing no objects directly.
  25402. compiler_needs_object=$lt_compiler_needs_object
  25403. # Create an old-style archive from a shared archive.
  25404. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25405. # Create a temporary old-style archive to link instead of a shared archive.
  25406. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25407. # Commands used to build a shared archive.
  25408. archive_cmds=$lt_archive_cmds
  25409. archive_expsym_cmds=$lt_archive_expsym_cmds
  25410. # Commands used to build a loadable module if different from building
  25411. # a shared archive.
  25412. module_cmds=$lt_module_cmds
  25413. module_expsym_cmds=$lt_module_expsym_cmds
  25414. # Whether we are building with GNU ld or not.
  25415. with_gnu_ld=$lt_with_gnu_ld
  25416. # Flag that allows shared libraries with undefined symbols to be built.
  25417. allow_undefined_flag=$lt_allow_undefined_flag
  25418. # Flag that enforces no undefined symbols.
  25419. no_undefined_flag=$lt_no_undefined_flag
  25420. # Flag to hardcode \$libdir into a binary during linking.
  25421. # This must work even if \$libdir does not exist
  25422. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25423. # Whether we need a single "-rpath" flag with a separated argument.
  25424. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25425. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25426. # DIR into the resulting binary.
  25427. hardcode_direct=$hardcode_direct
  25428. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25429. # DIR into the resulting binary and the resulting library dependency is
  25430. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25431. # library is relocated.
  25432. hardcode_direct_absolute=$hardcode_direct_absolute
  25433. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25434. # into the resulting binary.
  25435. hardcode_minus_L=$hardcode_minus_L
  25436. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25437. # into the resulting binary.
  25438. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25439. # Set to "yes" if building a shared library automatically hardcodes DIR
  25440. # into the library and all subsequent libraries and executables linked
  25441. # against it.
  25442. hardcode_automatic=$hardcode_automatic
  25443. # Set to yes if linker adds runtime paths of dependent libraries
  25444. # to runtime path list.
  25445. inherit_rpath=$inherit_rpath
  25446. # Whether libtool must link a program against all its dependency libraries.
  25447. link_all_deplibs=$link_all_deplibs
  25448. # Set to "yes" if exported symbols are required.
  25449. always_export_symbols=$always_export_symbols
  25450. # The commands to list exported symbols.
  25451. export_symbols_cmds=$lt_export_symbols_cmds
  25452. # Symbols that should not be listed in the preloaded symbols.
  25453. exclude_expsyms=$lt_exclude_expsyms
  25454. # Symbols that must always be exported.
  25455. include_expsyms=$lt_include_expsyms
  25456. # Commands necessary for linking programs (against libraries) with templates.
  25457. prelink_cmds=$lt_prelink_cmds
  25458. # Commands necessary for finishing linking programs.
  25459. postlink_cmds=$lt_postlink_cmds
  25460. # Specify filename containing input files.
  25461. file_list_spec=$lt_file_list_spec
  25462. # How to hardcode a shared library path into an executable.
  25463. hardcode_action=$hardcode_action
  25464. # The directories searched by this compiler when creating a shared library.
  25465. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25466. # Dependencies to place before and after the objects being linked to
  25467. # create a shared library.
  25468. predep_objects=$lt_predep_objects
  25469. postdep_objects=$lt_postdep_objects
  25470. predeps=$lt_predeps
  25471. postdeps=$lt_postdeps
  25472. # The library search path used internally by the compiler when linking
  25473. # a shared library.
  25474. compiler_lib_search_path=$lt_compiler_lib_search_path
  25475. # ### END LIBTOOL CONFIG
  25476. _LT_EOF
  25477. cat <<'_LT_EOF' >> "$cfgfile"
  25478. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25479. # func_munge_path_list VARIABLE PATH
  25480. # -----------------------------------
  25481. # VARIABLE is name of variable containing _space_ separated list of
  25482. # directories to be munged by the contents of PATH, which is string
  25483. # having a format:
  25484. # "DIR[:DIR]:"
  25485. # string "DIR[ DIR]" will be prepended to VARIABLE
  25486. # ":DIR[:DIR]"
  25487. # string "DIR[ DIR]" will be appended to VARIABLE
  25488. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25489. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25490. # "DIRA[ DIRA]" will be appended to VARIABLE
  25491. # "DIR[:DIR]"
  25492. # VARIABLE will be replaced by "DIR[ DIR]"
  25493. func_munge_path_list ()
  25494. {
  25495. case x$2 in
  25496. x)
  25497. ;;
  25498. *:)
  25499. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25500. ;;
  25501. x:*)
  25502. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25503. ;;
  25504. *::*)
  25505. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25506. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25507. ;;
  25508. *)
  25509. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25510. ;;
  25511. esac
  25512. }
  25513. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25514. func_cc_basename ()
  25515. {
  25516. for cc_temp in $*""; do
  25517. case $cc_temp in
  25518. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25519. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25520. \-*) ;;
  25521. *) break;;
  25522. esac
  25523. done
  25524. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25525. }
  25526. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25527. _LT_EOF
  25528. case $host_os in
  25529. aix3*)
  25530. cat <<\_LT_EOF >> "$cfgfile"
  25531. # AIX sometimes has problems with the GCC collect2 program. For some
  25532. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25533. # vanish in a puff of smoke.
  25534. if test set != "${COLLECT_NAMES+set}"; then
  25535. COLLECT_NAMES=
  25536. export COLLECT_NAMES
  25537. fi
  25538. _LT_EOF
  25539. ;;
  25540. esac
  25541. ltmain=$ac_aux_dir/ltmain.sh
  25542. # We use sed instead of cat because bash on DJGPP gets confused if
  25543. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25544. # text mode, it properly converts lines to CR/LF. This bash problem
  25545. # is reportedly fixed, but why not run on old versions too?
  25546. sed '$q' "$ltmain" >> "$cfgfile" \
  25547. || (rm -f "$cfgfile"; exit 1)
  25548. mv -f "$cfgfile" "$ofile" ||
  25549. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25550. chmod +x "$ofile"
  25551. cat <<_LT_EOF >> "$ofile"
  25552. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25553. # The linker used to build libraries.
  25554. LD=$lt_LD_RC
  25555. # How to create reloadable object files.
  25556. reload_flag=$lt_reload_flag_RC
  25557. reload_cmds=$lt_reload_cmds_RC
  25558. # Commands used to build an old-style archive.
  25559. old_archive_cmds=$lt_old_archive_cmds_RC
  25560. # A language specific compiler.
  25561. CC=$lt_compiler_RC
  25562. # Is the compiler the GNU compiler?
  25563. with_gcc=$GCC_RC
  25564. # Compiler flag to turn off builtin functions.
  25565. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25566. # Additional compiler flags for building library objects.
  25567. pic_flag=$lt_lt_prog_compiler_pic_RC
  25568. # How to pass a linker flag through the compiler.
  25569. wl=$lt_lt_prog_compiler_wl_RC
  25570. # Compiler flag to prevent dynamic linking.
  25571. link_static_flag=$lt_lt_prog_compiler_static_RC
  25572. # Does compiler simultaneously support -c and -o options?
  25573. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25574. # Whether or not to add -lc for building shared libraries.
  25575. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25576. # Whether or not to disallow shared libs when runtime libs are static.
  25577. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25578. # Compiler flag to allow reflexive dlopens.
  25579. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25580. # Compiler flag to generate shared objects directly from archives.
  25581. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25582. # Whether the compiler copes with passing no objects directly.
  25583. compiler_needs_object=$lt_compiler_needs_object_RC
  25584. # Create an old-style archive from a shared archive.
  25585. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25586. # Create a temporary old-style archive to link instead of a shared archive.
  25587. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25588. # Commands used to build a shared archive.
  25589. archive_cmds=$lt_archive_cmds_RC
  25590. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25591. # Commands used to build a loadable module if different from building
  25592. # a shared archive.
  25593. module_cmds=$lt_module_cmds_RC
  25594. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25595. # Whether we are building with GNU ld or not.
  25596. with_gnu_ld=$lt_with_gnu_ld_RC
  25597. # Flag that allows shared libraries with undefined symbols to be built.
  25598. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25599. # Flag that enforces no undefined symbols.
  25600. no_undefined_flag=$lt_no_undefined_flag_RC
  25601. # Flag to hardcode \$libdir into a binary during linking.
  25602. # This must work even if \$libdir does not exist
  25603. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25604. # Whether we need a single "-rpath" flag with a separated argument.
  25605. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25606. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25607. # DIR into the resulting binary.
  25608. hardcode_direct=$hardcode_direct_RC
  25609. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25610. # DIR into the resulting binary and the resulting library dependency is
  25611. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25612. # library is relocated.
  25613. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25614. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25615. # into the resulting binary.
  25616. hardcode_minus_L=$hardcode_minus_L_RC
  25617. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25618. # into the resulting binary.
  25619. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25620. # Set to "yes" if building a shared library automatically hardcodes DIR
  25621. # into the library and all subsequent libraries and executables linked
  25622. # against it.
  25623. hardcode_automatic=$hardcode_automatic_RC
  25624. # Set to yes if linker adds runtime paths of dependent libraries
  25625. # to runtime path list.
  25626. inherit_rpath=$inherit_rpath_RC
  25627. # Whether libtool must link a program against all its dependency libraries.
  25628. link_all_deplibs=$link_all_deplibs_RC
  25629. # Set to "yes" if exported symbols are required.
  25630. always_export_symbols=$always_export_symbols_RC
  25631. # The commands to list exported symbols.
  25632. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25633. # Symbols that should not be listed in the preloaded symbols.
  25634. exclude_expsyms=$lt_exclude_expsyms_RC
  25635. # Symbols that must always be exported.
  25636. include_expsyms=$lt_include_expsyms_RC
  25637. # Commands necessary for linking programs (against libraries) with templates.
  25638. prelink_cmds=$lt_prelink_cmds_RC
  25639. # Commands necessary for finishing linking programs.
  25640. postlink_cmds=$lt_postlink_cmds_RC
  25641. # Specify filename containing input files.
  25642. file_list_spec=$lt_file_list_spec_RC
  25643. # How to hardcode a shared library path into an executable.
  25644. hardcode_action=$hardcode_action_RC
  25645. # The directories searched by this compiler when creating a shared library.
  25646. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25647. # Dependencies to place before and after the objects being linked to
  25648. # create a shared library.
  25649. predep_objects=$lt_predep_objects_RC
  25650. postdep_objects=$lt_postdep_objects_RC
  25651. predeps=$lt_predeps_RC
  25652. postdeps=$lt_postdeps_RC
  25653. # The library search path used internally by the compiler when linking
  25654. # a shared library.
  25655. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25656. # ### END LIBTOOL TAG CONFIG: RC
  25657. _LT_EOF
  25658. cat <<_LT_EOF >> "$ofile"
  25659. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25660. # The linker used to build libraries.
  25661. LD=$lt_LD_CXX
  25662. # How to create reloadable object files.
  25663. reload_flag=$lt_reload_flag_CXX
  25664. reload_cmds=$lt_reload_cmds_CXX
  25665. # Commands used to build an old-style archive.
  25666. old_archive_cmds=$lt_old_archive_cmds_CXX
  25667. # A language specific compiler.
  25668. CC=$lt_compiler_CXX
  25669. # Is the compiler the GNU compiler?
  25670. with_gcc=$GCC_CXX
  25671. # Compiler flag to turn off builtin functions.
  25672. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25673. # Additional compiler flags for building library objects.
  25674. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25675. # How to pass a linker flag through the compiler.
  25676. wl=$lt_lt_prog_compiler_wl_CXX
  25677. # Compiler flag to prevent dynamic linking.
  25678. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25679. # Does compiler simultaneously support -c and -o options?
  25680. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25681. # Whether or not to add -lc for building shared libraries.
  25682. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25683. # Whether or not to disallow shared libs when runtime libs are static.
  25684. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25685. # Compiler flag to allow reflexive dlopens.
  25686. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25687. # Compiler flag to generate shared objects directly from archives.
  25688. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25689. # Whether the compiler copes with passing no objects directly.
  25690. compiler_needs_object=$lt_compiler_needs_object_CXX
  25691. # Create an old-style archive from a shared archive.
  25692. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25693. # Create a temporary old-style archive to link instead of a shared archive.
  25694. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25695. # Commands used to build a shared archive.
  25696. archive_cmds=$lt_archive_cmds_CXX
  25697. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25698. # Commands used to build a loadable module if different from building
  25699. # a shared archive.
  25700. module_cmds=$lt_module_cmds_CXX
  25701. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25702. # Whether we are building with GNU ld or not.
  25703. with_gnu_ld=$lt_with_gnu_ld_CXX
  25704. # Flag that allows shared libraries with undefined symbols to be built.
  25705. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25706. # Flag that enforces no undefined symbols.
  25707. no_undefined_flag=$lt_no_undefined_flag_CXX
  25708. # Flag to hardcode \$libdir into a binary during linking.
  25709. # This must work even if \$libdir does not exist
  25710. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25711. # Whether we need a single "-rpath" flag with a separated argument.
  25712. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25713. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25714. # DIR into the resulting binary.
  25715. hardcode_direct=$hardcode_direct_CXX
  25716. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25717. # DIR into the resulting binary and the resulting library dependency is
  25718. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25719. # library is relocated.
  25720. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25721. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25722. # into the resulting binary.
  25723. hardcode_minus_L=$hardcode_minus_L_CXX
  25724. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25725. # into the resulting binary.
  25726. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25727. # Set to "yes" if building a shared library automatically hardcodes DIR
  25728. # into the library and all subsequent libraries and executables linked
  25729. # against it.
  25730. hardcode_automatic=$hardcode_automatic_CXX
  25731. # Set to yes if linker adds runtime paths of dependent libraries
  25732. # to runtime path list.
  25733. inherit_rpath=$inherit_rpath_CXX
  25734. # Whether libtool must link a program against all its dependency libraries.
  25735. link_all_deplibs=$link_all_deplibs_CXX
  25736. # Set to "yes" if exported symbols are required.
  25737. always_export_symbols=$always_export_symbols_CXX
  25738. # The commands to list exported symbols.
  25739. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25740. # Symbols that should not be listed in the preloaded symbols.
  25741. exclude_expsyms=$lt_exclude_expsyms_CXX
  25742. # Symbols that must always be exported.
  25743. include_expsyms=$lt_include_expsyms_CXX
  25744. # Commands necessary for linking programs (against libraries) with templates.
  25745. prelink_cmds=$lt_prelink_cmds_CXX
  25746. # Commands necessary for finishing linking programs.
  25747. postlink_cmds=$lt_postlink_cmds_CXX
  25748. # Specify filename containing input files.
  25749. file_list_spec=$lt_file_list_spec_CXX
  25750. # How to hardcode a shared library path into an executable.
  25751. hardcode_action=$hardcode_action_CXX
  25752. # The directories searched by this compiler when creating a shared library.
  25753. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25754. # Dependencies to place before and after the objects being linked to
  25755. # create a shared library.
  25756. predep_objects=$lt_predep_objects_CXX
  25757. postdep_objects=$lt_postdep_objects_CXX
  25758. predeps=$lt_predeps_CXX
  25759. postdeps=$lt_postdeps_CXX
  25760. # The library search path used internally by the compiler when linking
  25761. # a shared library.
  25762. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25763. # ### END LIBTOOL TAG CONFIG: CXX
  25764. _LT_EOF
  25765. ;;
  25766. "sdl2_config":C) chmod a+x sdl2-config ;;
  25767. "summary":C) printf "$SUMMARY" ;;
  25768. esac
  25769. done # for ac_tag
  25770. as_fn_exit 0
  25771. _ACEOF
  25772. ac_clean_files=$ac_clean_files_save
  25773. test $ac_write_fail = 0 ||
  25774. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25775. # configure is writing to config.log, and then calls config.status.
  25776. # config.status does its own redirection, appending to config.log.
  25777. # Unfortunately, on DOS this fails, as config.log is still kept open
  25778. # by configure, so config.status won't be able to write to it; its
  25779. # output is simply discarded. So we exec the FD to /dev/null,
  25780. # effectively closing config.log, so it can be properly (re)opened and
  25781. # appended to by config.status. When coming back to configure, we
  25782. # need to make the FD available again.
  25783. if test "$no_create" != yes; then
  25784. ac_cs_success=:
  25785. ac_config_status_args=
  25786. test "$silent" = yes &&
  25787. ac_config_status_args="$ac_config_status_args --quiet"
  25788. exec 5>/dev/null
  25789. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25790. exec 5>>config.log
  25791. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25792. # would make configure fail if this is the last instruction.
  25793. $ac_cs_success || as_fn_exit 1
  25794. fi
  25795. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25797. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25798. fi