configure 823 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. INSTALL_SDL2_CONFIG
  603. LIBUSB_LIBS
  604. LIBUSB_CFLAGS
  605. FCITX_LIBS
  606. FCITX_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. ESD_LIBS
  630. ESD_CFLAGS
  631. ESD_CONFIG
  632. JACK_LIBS
  633. JACK_CFLAGS
  634. ALSA_LIBS
  635. ALSA_CFLAGS
  636. POW_LIB
  637. LIBOBJS
  638. ALLOCA
  639. PKG_CONFIG_LIBDIR
  640. PKG_CONFIG_PATH
  641. PKG_CONFIG
  642. WINDRES
  643. SET_MAKE
  644. INSTALL_DATA
  645. INSTALL_SCRIPT
  646. INSTALL_PROGRAM
  647. CXXCPP
  648. ac_ct_CXX
  649. CXXFLAGS
  650. CXX
  651. LT_AGE
  652. LT_REVISION
  653. LT_CURRENT
  654. LT_RELEASE
  655. CPP
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. AWK
  663. RANLIB
  664. STRIP
  665. ac_ct_AR
  666. AR
  667. LN_S
  668. NM
  669. ac_ct_DUMPBIN
  670. DUMPBIN
  671. LD
  672. FGREP
  673. EGREP
  674. GREP
  675. SED
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. host_os
  684. host_vendor
  685. host_cpu
  686. host
  687. build_os
  688. build_vendor
  689. build_cpu
  690. build
  691. LIBTOOL
  692. OBJDUMP
  693. DLLTOOL
  694. AS
  695. SDL_VERSION
  696. SDL_BINARY_AGE
  697. SDL_INTERFACE_AGE
  698. SDL_MICRO_VERSION
  699. SDL_MINOR_VERSION
  700. SDL_MAJOR_VERSION
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_assertions
  750. enable_dependency_tracking
  751. enable_libc
  752. enable_gcc_atomics
  753. enable_atomic
  754. enable_audio
  755. enable_video
  756. enable_render
  757. enable_events
  758. enable_joystick
  759. enable_haptic
  760. enable_sensor
  761. enable_power
  762. enable_filesystem
  763. enable_threads
  764. enable_timers
  765. enable_file
  766. enable_loadso
  767. enable_cpuinfo
  768. enable_assembly
  769. enable_ssemath
  770. enable_mmx
  771. enable_3dnow
  772. enable_sse
  773. enable_sse2
  774. enable_sse3
  775. enable_altivec
  776. enable_oss
  777. enable_alsa
  778. with_alsa_prefix
  779. with_alsa_inc_prefix
  780. enable_alsatest
  781. enable_alsa_shared
  782. enable_jack
  783. enable_jack_shared
  784. enable_esd
  785. with_esd_prefix
  786. with_esd_exec_prefix
  787. enable_esdtest
  788. enable_esd_shared
  789. enable_pulseaudio
  790. enable_pulseaudio_shared
  791. enable_arts
  792. enable_arts_shared
  793. enable_nas
  794. enable_nas_shared
  795. enable_sndio
  796. enable_sndio_shared
  797. enable_fusionsound
  798. enable_fusionsound_shared
  799. enable_diskaudio
  800. enable_dummyaudio
  801. enable_libsamplerate
  802. enable_libsamplerate_shared
  803. enable_arm_simd
  804. enable_arm_neon
  805. enable_video_wayland
  806. enable_video_wayland_qt_touch
  807. enable_wayland_shared
  808. enable_video_rpi
  809. enable_video_x11
  810. with_x
  811. enable_x11_shared
  812. enable_video_x11_xcursor
  813. enable_video_x11_xdbe
  814. enable_video_x11_xinerama
  815. enable_video_x11_xinput
  816. enable_video_x11_xrandr
  817. enable_video_x11_scrnsaver
  818. enable_video_x11_xshape
  819. enable_video_x11_vm
  820. enable_video_vivante
  821. enable_video_cocoa
  822. enable_video_metal
  823. enable_render_metal
  824. enable_video_directfb
  825. enable_directfb_shared
  826. enable_video_kmsdrm
  827. enable_kmsdrm_shared
  828. enable_video_dummy
  829. enable_video_opengl
  830. enable_video_opengles
  831. enable_video_opengles1
  832. enable_video_opengles2
  833. enable_video_vulkan
  834. enable_libudev
  835. enable_dbus
  836. enable_ime
  837. enable_ibus
  838. enable_fcitx
  839. enable_input_tslib
  840. enable_pthreads
  841. enable_pthread_sem
  842. enable_directx
  843. enable_wasapi
  844. enable_sdl_dlopen
  845. enable_hidapi
  846. enable_clock_gettime
  847. enable_rpath
  848. enable_backgrounding_signal
  849. enable_foregrounding_signal
  850. enable_render_d3d
  851. enable_sdl2_config
  852. '
  853. ac_precious_vars='build_alias
  854. host_alias
  855. target_alias
  856. CC
  857. CFLAGS
  858. LDFLAGS
  859. LIBS
  860. CPPFLAGS
  861. CPP
  862. CXX
  863. CXXFLAGS
  864. CCC
  865. CXXCPP
  866. PKG_CONFIG
  867. PKG_CONFIG_PATH
  868. PKG_CONFIG_LIBDIR
  869. JACK_CFLAGS
  870. JACK_LIBS
  871. PULSEAUDIO_CFLAGS
  872. PULSEAUDIO_LIBS
  873. FUSIONSOUND_CFLAGS
  874. FUSIONSOUND_LIBS
  875. RPI_CFLAGS
  876. RPI_LIBS
  877. XMKMF
  878. DIRECTFB_CFLAGS
  879. DIRECTFB_LIBS
  880. LIBDRM_CFLAGS
  881. LIBDRM_LIBS
  882. LIBGBM_CFLAGS
  883. LIBGBM_LIBS
  884. DBUS_CFLAGS
  885. DBUS_LIBS
  886. IBUS_CFLAGS
  887. IBUS_LIBS
  888. FCITX_CFLAGS
  889. FCITX_LIBS
  890. LIBUSB_CFLAGS
  891. LIBUSB_LIBS'
  892. # Initialize some variables set by options.
  893. ac_init_help=
  894. ac_init_version=false
  895. ac_unrecognized_opts=
  896. ac_unrecognized_sep=
  897. # The variables have the same names as the options, with
  898. # dashes changed to underlines.
  899. cache_file=/dev/null
  900. exec_prefix=NONE
  901. no_create=
  902. no_recursion=
  903. prefix=NONE
  904. program_prefix=NONE
  905. program_suffix=NONE
  906. program_transform_name=s,x,x,
  907. silent=
  908. site=
  909. srcdir=
  910. verbose=
  911. x_includes=NONE
  912. x_libraries=NONE
  913. # Installation directory options.
  914. # These are left unexpanded so users can "make install exec_prefix=/foo"
  915. # and all the variables that are supposed to be based on exec_prefix
  916. # by default will actually change.
  917. # Use braces instead of parens because sh, perl, etc. also accept them.
  918. # (The list follows the same order as the GNU Coding Standards.)
  919. bindir='${exec_prefix}/bin'
  920. sbindir='${exec_prefix}/sbin'
  921. libexecdir='${exec_prefix}/libexec'
  922. datarootdir='${prefix}/share'
  923. datadir='${datarootdir}'
  924. sysconfdir='${prefix}/etc'
  925. sharedstatedir='${prefix}/com'
  926. localstatedir='${prefix}/var'
  927. includedir='${prefix}/include'
  928. oldincludedir='/usr/include'
  929. docdir='${datarootdir}/doc/${PACKAGE}'
  930. infodir='${datarootdir}/info'
  931. htmldir='${docdir}'
  932. dvidir='${docdir}'
  933. pdfdir='${docdir}'
  934. psdir='${docdir}'
  935. libdir='${exec_prefix}/lib'
  936. localedir='${datarootdir}/locale'
  937. mandir='${datarootdir}/man'
  938. ac_prev=
  939. ac_dashdash=
  940. for ac_option
  941. do
  942. # If the previous option needs an argument, assign it.
  943. if test -n "$ac_prev"; then
  944. eval $ac_prev=\$ac_option
  945. ac_prev=
  946. continue
  947. fi
  948. case $ac_option in
  949. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  950. *=) ac_optarg= ;;
  951. *) ac_optarg=yes ;;
  952. esac
  953. # Accept the important Cygnus configure options, so we can diagnose typos.
  954. case $ac_dashdash$ac_option in
  955. --)
  956. ac_dashdash=yes ;;
  957. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  958. ac_prev=bindir ;;
  959. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  960. bindir=$ac_optarg ;;
  961. -build | --build | --buil | --bui | --bu)
  962. ac_prev=build_alias ;;
  963. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  964. build_alias=$ac_optarg ;;
  965. -cache-file | --cache-file | --cache-fil | --cache-fi \
  966. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  967. ac_prev=cache_file ;;
  968. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  969. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  970. cache_file=$ac_optarg ;;
  971. --config-cache | -C)
  972. cache_file=config.cache ;;
  973. -datadir | --datadir | --datadi | --datad)
  974. ac_prev=datadir ;;
  975. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  976. datadir=$ac_optarg ;;
  977. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  978. | --dataroo | --dataro | --datar)
  979. ac_prev=datarootdir ;;
  980. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  981. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  982. datarootdir=$ac_optarg ;;
  983. -disable-* | --disable-*)
  984. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  985. # Reject names that are not valid shell variable names.
  986. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  987. as_fn_error $? "invalid feature name: $ac_useropt"
  988. ac_useropt_orig=$ac_useropt
  989. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  990. case $ac_user_opts in
  991. *"
  992. "enable_$ac_useropt"
  993. "*) ;;
  994. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  995. ac_unrecognized_sep=', ';;
  996. esac
  997. eval enable_$ac_useropt=no ;;
  998. -docdir | --docdir | --docdi | --doc | --do)
  999. ac_prev=docdir ;;
  1000. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1001. docdir=$ac_optarg ;;
  1002. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1003. ac_prev=dvidir ;;
  1004. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1005. dvidir=$ac_optarg ;;
  1006. -enable-* | --enable-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid feature name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "enable_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval enable_$ac_useropt=\$ac_optarg ;;
  1021. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1022. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1023. | --exec | --exe | --ex)
  1024. ac_prev=exec_prefix ;;
  1025. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1026. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1027. | --exec=* | --exe=* | --ex=*)
  1028. exec_prefix=$ac_optarg ;;
  1029. -gas | --gas | --ga | --g)
  1030. # Obsolete; use --with-gas.
  1031. with_gas=yes ;;
  1032. -help | --help | --hel | --he | -h)
  1033. ac_init_help=long ;;
  1034. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1035. ac_init_help=recursive ;;
  1036. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1037. ac_init_help=short ;;
  1038. -host | --host | --hos | --ho)
  1039. ac_prev=host_alias ;;
  1040. -host=* | --host=* | --hos=* | --ho=*)
  1041. host_alias=$ac_optarg ;;
  1042. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1043. ac_prev=htmldir ;;
  1044. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1045. | --ht=*)
  1046. htmldir=$ac_optarg ;;
  1047. -includedir | --includedir | --includedi | --included | --include \
  1048. | --includ | --inclu | --incl | --inc)
  1049. ac_prev=includedir ;;
  1050. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1051. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1052. includedir=$ac_optarg ;;
  1053. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1054. ac_prev=infodir ;;
  1055. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1056. infodir=$ac_optarg ;;
  1057. -libdir | --libdir | --libdi | --libd)
  1058. ac_prev=libdir ;;
  1059. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1060. libdir=$ac_optarg ;;
  1061. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1062. | --libexe | --libex | --libe)
  1063. ac_prev=libexecdir ;;
  1064. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1065. | --libexe=* | --libex=* | --libe=*)
  1066. libexecdir=$ac_optarg ;;
  1067. -localedir | --localedir | --localedi | --localed | --locale)
  1068. ac_prev=localedir ;;
  1069. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1070. localedir=$ac_optarg ;;
  1071. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1072. | --localstate | --localstat | --localsta | --localst | --locals)
  1073. ac_prev=localstatedir ;;
  1074. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1075. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1076. localstatedir=$ac_optarg ;;
  1077. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1078. ac_prev=mandir ;;
  1079. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1080. mandir=$ac_optarg ;;
  1081. -nfp | --nfp | --nf)
  1082. # Obsolete; use --without-fp.
  1083. with_fp=no ;;
  1084. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1085. | --no-cr | --no-c | -n)
  1086. no_create=yes ;;
  1087. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1088. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1089. no_recursion=yes ;;
  1090. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1091. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1092. | --oldin | --oldi | --old | --ol | --o)
  1093. ac_prev=oldincludedir ;;
  1094. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1095. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1096. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1097. oldincludedir=$ac_optarg ;;
  1098. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1099. ac_prev=prefix ;;
  1100. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1101. prefix=$ac_optarg ;;
  1102. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1103. | --program-pre | --program-pr | --program-p)
  1104. ac_prev=program_prefix ;;
  1105. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1106. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1107. program_prefix=$ac_optarg ;;
  1108. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1109. | --program-suf | --program-su | --program-s)
  1110. ac_prev=program_suffix ;;
  1111. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1112. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1113. program_suffix=$ac_optarg ;;
  1114. -program-transform-name | --program-transform-name \
  1115. | --program-transform-nam | --program-transform-na \
  1116. | --program-transform-n | --program-transform- \
  1117. | --program-transform | --program-transfor \
  1118. | --program-transfo | --program-transf \
  1119. | --program-trans | --program-tran \
  1120. | --progr-tra | --program-tr | --program-t)
  1121. ac_prev=program_transform_name ;;
  1122. -program-transform-name=* | --program-transform-name=* \
  1123. | --program-transform-nam=* | --program-transform-na=* \
  1124. | --program-transform-n=* | --program-transform-=* \
  1125. | --program-transform=* | --program-transfor=* \
  1126. | --program-transfo=* | --program-transf=* \
  1127. | --program-trans=* | --program-tran=* \
  1128. | --progr-tra=* | --program-tr=* | --program-t=*)
  1129. program_transform_name=$ac_optarg ;;
  1130. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1131. ac_prev=pdfdir ;;
  1132. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1133. pdfdir=$ac_optarg ;;
  1134. -psdir | --psdir | --psdi | --psd | --ps)
  1135. ac_prev=psdir ;;
  1136. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1137. psdir=$ac_optarg ;;
  1138. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1139. | -silent | --silent | --silen | --sile | --sil)
  1140. silent=yes ;;
  1141. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1142. ac_prev=sbindir ;;
  1143. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1144. | --sbi=* | --sb=*)
  1145. sbindir=$ac_optarg ;;
  1146. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1147. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1148. | --sharedst | --shareds | --shared | --share | --shar \
  1149. | --sha | --sh)
  1150. ac_prev=sharedstatedir ;;
  1151. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1152. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1153. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1154. | --sha=* | --sh=*)
  1155. sharedstatedir=$ac_optarg ;;
  1156. -site | --site | --sit)
  1157. ac_prev=site ;;
  1158. -site=* | --site=* | --sit=*)
  1159. site=$ac_optarg ;;
  1160. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1161. ac_prev=srcdir ;;
  1162. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1163. srcdir=$ac_optarg ;;
  1164. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1165. | --syscon | --sysco | --sysc | --sys | --sy)
  1166. ac_prev=sysconfdir ;;
  1167. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1168. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1169. sysconfdir=$ac_optarg ;;
  1170. -target | --target | --targe | --targ | --tar | --ta | --t)
  1171. ac_prev=target_alias ;;
  1172. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1173. target_alias=$ac_optarg ;;
  1174. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1175. verbose=yes ;;
  1176. -version | --version | --versio | --versi | --vers | -V)
  1177. ac_init_version=: ;;
  1178. -with-* | --with-*)
  1179. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1180. # Reject names that are not valid shell variable names.
  1181. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1182. as_fn_error $? "invalid package name: $ac_useropt"
  1183. ac_useropt_orig=$ac_useropt
  1184. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1185. case $ac_user_opts in
  1186. *"
  1187. "with_$ac_useropt"
  1188. "*) ;;
  1189. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1190. ac_unrecognized_sep=', ';;
  1191. esac
  1192. eval with_$ac_useropt=\$ac_optarg ;;
  1193. -without-* | --without-*)
  1194. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1195. # Reject names that are not valid shell variable names.
  1196. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1197. as_fn_error $? "invalid package name: $ac_useropt"
  1198. ac_useropt_orig=$ac_useropt
  1199. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1200. case $ac_user_opts in
  1201. *"
  1202. "with_$ac_useropt"
  1203. "*) ;;
  1204. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1205. ac_unrecognized_sep=', ';;
  1206. esac
  1207. eval with_$ac_useropt=no ;;
  1208. --x)
  1209. # Obsolete; use --with-x.
  1210. with_x=yes ;;
  1211. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1212. | --x-incl | --x-inc | --x-in | --x-i)
  1213. ac_prev=x_includes ;;
  1214. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1215. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1216. x_includes=$ac_optarg ;;
  1217. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1218. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1219. ac_prev=x_libraries ;;
  1220. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1221. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1222. x_libraries=$ac_optarg ;;
  1223. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1224. Try \`$0 --help' for more information"
  1225. ;;
  1226. *=*)
  1227. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1228. # Reject names that are not valid shell variable names.
  1229. case $ac_envvar in #(
  1230. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1231. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1232. esac
  1233. eval $ac_envvar=\$ac_optarg
  1234. export $ac_envvar ;;
  1235. *)
  1236. # FIXME: should be removed in autoconf 3.0.
  1237. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1238. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1239. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1240. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1241. ;;
  1242. esac
  1243. done
  1244. if test -n "$ac_prev"; then
  1245. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1246. as_fn_error $? "missing argument to $ac_option"
  1247. fi
  1248. if test -n "$ac_unrecognized_opts"; then
  1249. case $enable_option_checking in
  1250. no) ;;
  1251. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1252. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1253. esac
  1254. fi
  1255. # Check all directory arguments for consistency.
  1256. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1257. datadir sysconfdir sharedstatedir localstatedir includedir \
  1258. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1259. libdir localedir mandir
  1260. do
  1261. eval ac_val=\$$ac_var
  1262. # Remove trailing slashes.
  1263. case $ac_val in
  1264. */ )
  1265. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1266. eval $ac_var=\$ac_val;;
  1267. esac
  1268. # Be sure to have absolute directory names.
  1269. case $ac_val in
  1270. [\\/$]* | ?:[\\/]* ) continue;;
  1271. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1272. esac
  1273. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1274. done
  1275. # There might be people who depend on the old broken behavior: `$host'
  1276. # used to hold the argument of --host etc.
  1277. # FIXME: To remove some day.
  1278. build=$build_alias
  1279. host=$host_alias
  1280. target=$target_alias
  1281. # FIXME: To remove some day.
  1282. if test "x$host_alias" != x; then
  1283. if test "x$build_alias" = x; then
  1284. cross_compiling=maybe
  1285. elif test "x$build_alias" != "x$host_alias"; then
  1286. cross_compiling=yes
  1287. fi
  1288. fi
  1289. ac_tool_prefix=
  1290. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1291. test "$silent" = yes && exec 6>/dev/null
  1292. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1293. ac_ls_di=`ls -di .` &&
  1294. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1295. as_fn_error $? "working directory cannot be determined"
  1296. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1297. as_fn_error $? "pwd does not report name of working directory"
  1298. # Find the source files, if location was not specified.
  1299. if test -z "$srcdir"; then
  1300. ac_srcdir_defaulted=yes
  1301. # Try the directory containing this script, then the parent directory.
  1302. ac_confdir=`$as_dirname -- "$as_myself" ||
  1303. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1304. X"$as_myself" : 'X\(//\)[^/]' \| \
  1305. X"$as_myself" : 'X\(//\)$' \| \
  1306. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1307. $as_echo X"$as_myself" |
  1308. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1309. s//\1/
  1310. q
  1311. }
  1312. /^X\(\/\/\)[^/].*/{
  1313. s//\1/
  1314. q
  1315. }
  1316. /^X\(\/\/\)$/{
  1317. s//\1/
  1318. q
  1319. }
  1320. /^X\(\/\).*/{
  1321. s//\1/
  1322. q
  1323. }
  1324. s/.*/./; q'`
  1325. srcdir=$ac_confdir
  1326. if test ! -r "$srcdir/$ac_unique_file"; then
  1327. srcdir=..
  1328. fi
  1329. else
  1330. ac_srcdir_defaulted=no
  1331. fi
  1332. if test ! -r "$srcdir/$ac_unique_file"; then
  1333. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1334. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1335. fi
  1336. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1337. ac_abs_confdir=`(
  1338. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1339. pwd)`
  1340. # When building in place, set srcdir=.
  1341. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1342. srcdir=.
  1343. fi
  1344. # Remove unnecessary trailing slashes from srcdir.
  1345. # Double slashes in file names in object file debugging info
  1346. # mess up M-x gdb in Emacs.
  1347. case $srcdir in
  1348. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1349. esac
  1350. for ac_var in $ac_precious_vars; do
  1351. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1352. eval ac_env_${ac_var}_value=\$${ac_var}
  1353. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1354. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1355. done
  1356. #
  1357. # Report the --help message.
  1358. #
  1359. if test "$ac_init_help" = "long"; then
  1360. # Omit some internal or obsolete options to make the list less imposing.
  1361. # This message is too long to be a string in the A/UX 3.1 sh.
  1362. cat <<_ACEOF
  1363. \`configure' configures this package to adapt to many kinds of systems.
  1364. Usage: $0 [OPTION]... [VAR=VALUE]...
  1365. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1366. VAR=VALUE. See below for descriptions of some of the useful variables.
  1367. Defaults for the options are specified in brackets.
  1368. Configuration:
  1369. -h, --help display this help and exit
  1370. --help=short display options specific to this package
  1371. --help=recursive display the short help of all the included packages
  1372. -V, --version display version information and exit
  1373. -q, --quiet, --silent do not print \`checking ...' messages
  1374. --cache-file=FILE cache test results in FILE [disabled]
  1375. -C, --config-cache alias for \`--cache-file=config.cache'
  1376. -n, --no-create do not create output files
  1377. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1378. Installation directories:
  1379. --prefix=PREFIX install architecture-independent files in PREFIX
  1380. [$ac_default_prefix]
  1381. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1382. [PREFIX]
  1383. By default, \`make install' will install all the files in
  1384. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1385. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1386. for instance \`--prefix=\$HOME'.
  1387. For better control, use the options below.
  1388. Fine tuning of the installation directories:
  1389. --bindir=DIR user executables [EPREFIX/bin]
  1390. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1391. --libexecdir=DIR program executables [EPREFIX/libexec]
  1392. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1393. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1394. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1395. --libdir=DIR object code libraries [EPREFIX/lib]
  1396. --includedir=DIR C header files [PREFIX/include]
  1397. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1398. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1399. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1400. --infodir=DIR info documentation [DATAROOTDIR/info]
  1401. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1402. --mandir=DIR man documentation [DATAROOTDIR/man]
  1403. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1404. --htmldir=DIR html documentation [DOCDIR]
  1405. --dvidir=DIR dvi documentation [DOCDIR]
  1406. --pdfdir=DIR pdf documentation [DOCDIR]
  1407. --psdir=DIR ps documentation [DOCDIR]
  1408. _ACEOF
  1409. cat <<\_ACEOF
  1410. X features:
  1411. --x-includes=DIR X include files are in DIR
  1412. --x-libraries=DIR X library files are in DIR
  1413. System types:
  1414. --build=BUILD configure for building on BUILD [guessed]
  1415. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1416. _ACEOF
  1417. fi
  1418. if test -n "$ac_init_help"; then
  1419. cat <<\_ACEOF
  1420. Optional Features:
  1421. --disable-option-checking ignore unrecognized --enable/--with options
  1422. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1423. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1424. --enable-shared[=PKGS] build shared libraries [default=yes]
  1425. --enable-static[=PKGS] build static libraries [default=yes]
  1426. --enable-fast-install[=PKGS]
  1427. optimize for fast installation [default=yes]
  1428. --disable-libtool-lock avoid locking (might break parallel builds)
  1429. --enable-assertions Enable internal sanity checks
  1430. (auto/disabled/release/enabled/paranoid)
  1431. [[default=auto]]
  1432. --enable-dependency-tracking
  1433. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1434. --enable-libc Use the system C library [[default=yes]]
  1435. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1436. --enable-atomic Enable the atomic operations subsystem
  1437. [[default=yes]]
  1438. --enable-audio Enable the audio subsystem [[default=yes]]
  1439. --enable-video Enable the video subsystem [[default=yes]]
  1440. --enable-render Enable the render subsystem [[default=yes]]
  1441. --enable-events Enable the events subsystem [[default=yes]]
  1442. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1443. --enable-haptic Enable the haptic (force feedback) subsystem
  1444. [[default=yes]]
  1445. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1446. --enable-power Enable the power subsystem [[default=yes]]
  1447. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1448. --enable-threads Enable the threading subsystem [[default=yes]]
  1449. --enable-timers Enable the timer subsystem [[default=yes]]
  1450. --enable-file Enable the file subsystem [[default=yes]]
  1451. --enable-loadso Enable the shared object loading subsystem
  1452. [[default=yes]]
  1453. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1454. --enable-assembly Enable assembly routines [[default=yes]]
  1455. --enable-ssemath Allow GCC to use SSE floating point math
  1456. [[default=maybe]]
  1457. --enable-mmx use MMX assembly routines [[default=yes]]
  1458. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1459. --enable-sse use SSE assembly routines [[default=yes]]
  1460. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1461. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1462. --enable-altivec use Altivec assembly routines [[default=yes]]
  1463. --enable-oss support the OSS audio API [[default=maybe]]
  1464. --enable-alsa support the ALSA audio API [[default=yes]]
  1465. --disable-alsatest Do not try to compile and run a test Alsa program
  1466. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1467. --enable-jack use JACK audio [[default=yes]]
  1468. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1469. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1470. --disable-esdtest Do not try to compile and run a test ESD program
  1471. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1472. --enable-pulseaudio use PulseAudio [[default=yes]]
  1473. --enable-pulseaudio-shared
  1474. dynamically load PulseAudio support [[default=yes]]
  1475. --enable-arts support the Analog Real Time Synthesizer
  1476. [[default=yes]]
  1477. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1478. --enable-nas support the NAS audio API [[default=yes]]
  1479. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1480. --enable-sndio support the sndio audio API [[default=yes]]
  1481. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1482. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1483. --enable-fusionsound-shared
  1484. dynamically load fusionsound audio support
  1485. [[default=yes]]
  1486. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1487. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1488. --enable-libsamplerate use libsamplerate for audio rate conversion
  1489. [[default=yes]]
  1490. --enable-libsamplerate-shared
  1491. dynamically load libsamplerate [[default=yes]]
  1492. --enable-arm-simd use SIMD assembly blitters on ARM [[default=yes]]
  1493. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1494. --enable-video-wayland use Wayland video driver [[default=yes]]
  1495. --enable-video-wayland-qt-touch
  1496. QtWayland server support for Wayland video driver
  1497. [[default=yes]]
  1498. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1499. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1500. --enable-video-x11 use X11 video driver [[default=yes]]
  1501. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1502. --enable-video-x11-xcursor
  1503. enable X11 Xcursor support [[default=yes]]
  1504. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1505. --enable-video-x11-xinerama
  1506. enable X11 Xinerama support [[default=yes]]
  1507. --enable-video-x11-xinput
  1508. enable X11 XInput extension for manymouse, tablets,
  1509. etc [[default=yes]]
  1510. --enable-video-x11-xrandr
  1511. enable X11 Xrandr extension for fullscreen
  1512. [[default=yes]]
  1513. --enable-video-x11-scrnsaver
  1514. enable X11 screensaver extension [[default=yes]]
  1515. --enable-video-x11-xshape
  1516. enable X11 XShape support [[default=yes]]
  1517. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1518. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1519. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1520. --enable-video-metal include Metal support [[default=yes]]
  1521. --enable-render-metal enable the Metal render driver [[default=yes]]
  1522. --enable-video-directfb use DirectFB video driver [[default=no]]
  1523. --enable-directfb-shared
  1524. dynamically load directfb support [[default=yes]]
  1525. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1526. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1527. --enable-video-dummy use dummy video driver [[default=yes]]
  1528. --enable-video-opengl include OpenGL support [[default=yes]]
  1529. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1530. --enable-video-opengles1
  1531. include OpenGL ES 1.1 support [[default=yes]]
  1532. --enable-video-opengles2
  1533. include OpenGL ES 2.0 support [[default=yes]]
  1534. --enable-video-vulkan include Vulkan support [[default=yes]]
  1535. --enable-libudev enable libudev support [[default=yes]]
  1536. --enable-dbus enable D-Bus support [[default=yes]]
  1537. --enable-ime enable IME support [[default=yes]]
  1538. --enable-ibus enable IBus support [[default=yes]]
  1539. --enable-fcitx enable fcitx support [[default=yes]]
  1540. --enable-input-tslib use the Touchscreen library for input
  1541. [[default=yes]]
  1542. --enable-pthreads use POSIX threads for multi-threading
  1543. [[default=yes]]
  1544. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1545. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1546. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1547. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1548. --enable-hidapi use HIDAPI for low level joystick drivers
  1549. [[default=no]]
  1550. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1551. UNIX [[default=yes]]
  1552. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1553. --enable-backgrounding-signal
  1554. number to use for magic backgrounding signal or 'no'
  1555. [[default=no]]
  1556. --enable-foregrounding-signal
  1557. number to use for magic foregrounding signal or 'no'
  1558. [[default=no]]
  1559. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1560. --enable-sdl2-config Install sdl2-config [default=yes]
  1561. Optional Packages:
  1562. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1563. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1564. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1565. both]
  1566. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1567. --with-sysroot=DIR Search for dependent libraries within DIR
  1568. (or the compiler's sysroot if not specified).
  1569. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1570. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1571. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1572. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1573. --with-x use the X Window System
  1574. Some influential environment variables:
  1575. CC C compiler command
  1576. CFLAGS C compiler flags
  1577. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1578. nonstandard directory <lib dir>
  1579. LIBS libraries to pass to the linker, e.g. -l<library>
  1580. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1581. you have headers in a nonstandard directory <include dir>
  1582. CPP C preprocessor
  1583. CXX C++ compiler command
  1584. CXXFLAGS C++ compiler flags
  1585. CXXCPP C++ preprocessor
  1586. PKG_CONFIG path to pkg-config utility
  1587. PKG_CONFIG_PATH
  1588. directories to add to pkg-config's search path
  1589. PKG_CONFIG_LIBDIR
  1590. path overriding pkg-config's built-in search path
  1591. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1592. JACK_LIBS linker flags for JACK, overriding pkg-config
  1593. PULSEAUDIO_CFLAGS
  1594. C compiler flags for PULSEAUDIO, overriding pkg-config
  1595. PULSEAUDIO_LIBS
  1596. linker flags for PULSEAUDIO, overriding pkg-config
  1597. FUSIONSOUND_CFLAGS
  1598. C compiler flags for FUSIONSOUND, overriding pkg-config
  1599. FUSIONSOUND_LIBS
  1600. linker flags for FUSIONSOUND, overriding pkg-config
  1601. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1602. RPI_LIBS linker flags for RPI, overriding pkg-config
  1603. XMKMF Path to xmkmf, Makefile generator for X Window System
  1604. DIRECTFB_CFLAGS
  1605. C compiler flags for DIRECTFB, overriding pkg-config
  1606. DIRECTFB_LIBS
  1607. linker flags for DIRECTFB, overriding pkg-config
  1608. LIBDRM_CFLAGS
  1609. C compiler flags for LIBDRM, overriding pkg-config
  1610. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1611. LIBGBM_CFLAGS
  1612. C compiler flags for LIBGBM, overriding pkg-config
  1613. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1614. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1615. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1616. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1617. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1618. FCITX_CFLAGS
  1619. C compiler flags for FCITX, overriding pkg-config
  1620. FCITX_LIBS linker flags for FCITX, overriding pkg-config
  1621. LIBUSB_CFLAGS
  1622. C compiler flags for LIBUSB, overriding pkg-config
  1623. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1624. Use these variables to override the choices made by `configure' or to help
  1625. it to find libraries and programs with nonstandard names/locations.
  1626. Report bugs to the package provider.
  1627. _ACEOF
  1628. ac_status=$?
  1629. fi
  1630. if test "$ac_init_help" = "recursive"; then
  1631. # If there are subdirs, report their specific --help.
  1632. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1633. test -d "$ac_dir" ||
  1634. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1635. continue
  1636. ac_builddir=.
  1637. case "$ac_dir" in
  1638. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1639. *)
  1640. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1641. # A ".." for each directory in $ac_dir_suffix.
  1642. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1643. case $ac_top_builddir_sub in
  1644. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1645. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1646. esac ;;
  1647. esac
  1648. ac_abs_top_builddir=$ac_pwd
  1649. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1650. # for backward compatibility:
  1651. ac_top_builddir=$ac_top_build_prefix
  1652. case $srcdir in
  1653. .) # We are building in place.
  1654. ac_srcdir=.
  1655. ac_top_srcdir=$ac_top_builddir_sub
  1656. ac_abs_top_srcdir=$ac_pwd ;;
  1657. [\\/]* | ?:[\\/]* ) # Absolute name.
  1658. ac_srcdir=$srcdir$ac_dir_suffix;
  1659. ac_top_srcdir=$srcdir
  1660. ac_abs_top_srcdir=$srcdir ;;
  1661. *) # Relative name.
  1662. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1663. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1664. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1665. esac
  1666. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1667. cd "$ac_dir" || { ac_status=$?; continue; }
  1668. # Check for guested configure.
  1669. if test -f "$ac_srcdir/configure.gnu"; then
  1670. echo &&
  1671. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1672. elif test -f "$ac_srcdir/configure"; then
  1673. echo &&
  1674. $SHELL "$ac_srcdir/configure" --help=recursive
  1675. else
  1676. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1677. fi || ac_status=$?
  1678. cd "$ac_pwd" || { ac_status=$?; break; }
  1679. done
  1680. fi
  1681. test -n "$ac_init_help" && exit $ac_status
  1682. if $ac_init_version; then
  1683. cat <<\_ACEOF
  1684. configure
  1685. generated by GNU Autoconf 2.69
  1686. Copyright (C) 2012 Free Software Foundation, Inc.
  1687. This configure script is free software; the Free Software Foundation
  1688. gives unlimited permission to copy, distribute and modify it.
  1689. _ACEOF
  1690. exit
  1691. fi
  1692. ## ------------------------ ##
  1693. ## Autoconf initialization. ##
  1694. ## ------------------------ ##
  1695. # ac_fn_c_try_compile LINENO
  1696. # --------------------------
  1697. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1698. ac_fn_c_try_compile ()
  1699. {
  1700. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1701. rm -f conftest.$ac_objext
  1702. if { { ac_try="$ac_compile"
  1703. case "(($ac_try" in
  1704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1705. *) ac_try_echo=$ac_try;;
  1706. esac
  1707. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1708. $as_echo "$ac_try_echo"; } >&5
  1709. (eval "$ac_compile") 2>conftest.err
  1710. ac_status=$?
  1711. if test -s conftest.err; then
  1712. grep -v '^ *+' conftest.err >conftest.er1
  1713. cat conftest.er1 >&5
  1714. mv -f conftest.er1 conftest.err
  1715. fi
  1716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1717. test $ac_status = 0; } && {
  1718. test -z "$ac_c_werror_flag" ||
  1719. test ! -s conftest.err
  1720. } && test -s conftest.$ac_objext; then :
  1721. ac_retval=0
  1722. else
  1723. $as_echo "$as_me: failed program was:" >&5
  1724. sed 's/^/| /' conftest.$ac_ext >&5
  1725. ac_retval=1
  1726. fi
  1727. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1728. as_fn_set_status $ac_retval
  1729. } # ac_fn_c_try_compile
  1730. # ac_fn_c_try_link LINENO
  1731. # -----------------------
  1732. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1733. ac_fn_c_try_link ()
  1734. {
  1735. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1736. rm -f conftest.$ac_objext conftest$ac_exeext
  1737. if { { ac_try="$ac_link"
  1738. case "(($ac_try" in
  1739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1740. *) ac_try_echo=$ac_try;;
  1741. esac
  1742. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1743. $as_echo "$ac_try_echo"; } >&5
  1744. (eval "$ac_link") 2>conftest.err
  1745. ac_status=$?
  1746. if test -s conftest.err; then
  1747. grep -v '^ *+' conftest.err >conftest.er1
  1748. cat conftest.er1 >&5
  1749. mv -f conftest.er1 conftest.err
  1750. fi
  1751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1752. test $ac_status = 0; } && {
  1753. test -z "$ac_c_werror_flag" ||
  1754. test ! -s conftest.err
  1755. } && test -s conftest$ac_exeext && {
  1756. test "$cross_compiling" = yes ||
  1757. test -x conftest$ac_exeext
  1758. }; then :
  1759. ac_retval=0
  1760. else
  1761. $as_echo "$as_me: failed program was:" >&5
  1762. sed 's/^/| /' conftest.$ac_ext >&5
  1763. ac_retval=1
  1764. fi
  1765. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1766. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1767. # interfere with the next link command; also delete a directory that is
  1768. # left behind by Apple's compiler. We do this before executing the actions.
  1769. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. as_fn_set_status $ac_retval
  1772. } # ac_fn_c_try_link
  1773. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1774. # -------------------------------------------------------
  1775. # Tests whether HEADER exists and can be compiled using the include files in
  1776. # INCLUDES, setting the cache variable VAR accordingly.
  1777. ac_fn_c_check_header_compile ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1781. $as_echo_n "checking for $2... " >&6; }
  1782. if eval \${$3+:} false; then :
  1783. $as_echo_n "(cached) " >&6
  1784. else
  1785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1786. /* end confdefs.h. */
  1787. $4
  1788. #include <$2>
  1789. _ACEOF
  1790. if ac_fn_c_try_compile "$LINENO"; then :
  1791. eval "$3=yes"
  1792. else
  1793. eval "$3=no"
  1794. fi
  1795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1796. fi
  1797. eval ac_res=\$$3
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1799. $as_echo "$ac_res" >&6; }
  1800. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1801. } # ac_fn_c_check_header_compile
  1802. # ac_fn_c_try_cpp LINENO
  1803. # ----------------------
  1804. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1805. ac_fn_c_try_cpp ()
  1806. {
  1807. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1808. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1809. case "(($ac_try" in
  1810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1811. *) ac_try_echo=$ac_try;;
  1812. esac
  1813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1814. $as_echo "$ac_try_echo"; } >&5
  1815. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1816. ac_status=$?
  1817. if test -s conftest.err; then
  1818. grep -v '^ *+' conftest.err >conftest.er1
  1819. cat conftest.er1 >&5
  1820. mv -f conftest.er1 conftest.err
  1821. fi
  1822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1823. test $ac_status = 0; } > conftest.i && {
  1824. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1825. test ! -s conftest.err
  1826. }; then :
  1827. ac_retval=0
  1828. else
  1829. $as_echo "$as_me: failed program was:" >&5
  1830. sed 's/^/| /' conftest.$ac_ext >&5
  1831. ac_retval=1
  1832. fi
  1833. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1834. as_fn_set_status $ac_retval
  1835. } # ac_fn_c_try_cpp
  1836. # ac_fn_c_try_run LINENO
  1837. # ----------------------
  1838. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1839. # that executables *can* be run.
  1840. ac_fn_c_try_run ()
  1841. {
  1842. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1843. if { { ac_try="$ac_link"
  1844. case "(($ac_try" in
  1845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1846. *) ac_try_echo=$ac_try;;
  1847. esac
  1848. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1849. $as_echo "$ac_try_echo"; } >&5
  1850. (eval "$ac_link") 2>&5
  1851. ac_status=$?
  1852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1853. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1854. { { case "(($ac_try" in
  1855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1856. *) ac_try_echo=$ac_try;;
  1857. esac
  1858. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1859. $as_echo "$ac_try_echo"; } >&5
  1860. (eval "$ac_try") 2>&5
  1861. ac_status=$?
  1862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1863. test $ac_status = 0; }; }; then :
  1864. ac_retval=0
  1865. else
  1866. $as_echo "$as_me: program exited with status $ac_status" >&5
  1867. $as_echo "$as_me: failed program was:" >&5
  1868. sed 's/^/| /' conftest.$ac_ext >&5
  1869. ac_retval=$ac_status
  1870. fi
  1871. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1872. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1873. as_fn_set_status $ac_retval
  1874. } # ac_fn_c_try_run
  1875. # ac_fn_c_check_func LINENO FUNC VAR
  1876. # ----------------------------------
  1877. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1878. ac_fn_c_check_func ()
  1879. {
  1880. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1882. $as_echo_n "checking for $2... " >&6; }
  1883. if eval \${$3+:} false; then :
  1884. $as_echo_n "(cached) " >&6
  1885. else
  1886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1887. /* end confdefs.h. */
  1888. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1889. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1890. #define $2 innocuous_$2
  1891. /* System header to define __stub macros and hopefully few prototypes,
  1892. which can conflict with char $2 (); below.
  1893. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1894. <limits.h> exists even on freestanding compilers. */
  1895. #ifdef __STDC__
  1896. # include <limits.h>
  1897. #else
  1898. # include <assert.h>
  1899. #endif
  1900. #undef $2
  1901. /* Override any GCC internal prototype to avoid an error.
  1902. Use char because int might match the return type of a GCC
  1903. builtin and then its argument prototype would still apply. */
  1904. #ifdef __cplusplus
  1905. extern "C"
  1906. #endif
  1907. char $2 ();
  1908. /* The GNU C library defines this for functions which it implements
  1909. to always fail with ENOSYS. Some functions are actually named
  1910. something starting with __ and the normal name is an alias. */
  1911. #if defined __stub_$2 || defined __stub___$2
  1912. choke me
  1913. #endif
  1914. int
  1915. main ()
  1916. {
  1917. return $2 ();
  1918. ;
  1919. return 0;
  1920. }
  1921. _ACEOF
  1922. if ac_fn_c_try_link "$LINENO"; then :
  1923. eval "$3=yes"
  1924. else
  1925. eval "$3=no"
  1926. fi
  1927. rm -f core conftest.err conftest.$ac_objext \
  1928. conftest$ac_exeext conftest.$ac_ext
  1929. fi
  1930. eval ac_res=\$$3
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1932. $as_echo "$ac_res" >&6; }
  1933. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1934. } # ac_fn_c_check_func
  1935. # ac_fn_cxx_try_compile LINENO
  1936. # ----------------------------
  1937. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1938. ac_fn_cxx_try_compile ()
  1939. {
  1940. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1941. rm -f conftest.$ac_objext
  1942. if { { ac_try="$ac_compile"
  1943. case "(($ac_try" in
  1944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1945. *) ac_try_echo=$ac_try;;
  1946. esac
  1947. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1948. $as_echo "$ac_try_echo"; } >&5
  1949. (eval "$ac_compile") 2>conftest.err
  1950. ac_status=$?
  1951. if test -s conftest.err; then
  1952. grep -v '^ *+' conftest.err >conftest.er1
  1953. cat conftest.er1 >&5
  1954. mv -f conftest.er1 conftest.err
  1955. fi
  1956. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1957. test $ac_status = 0; } && {
  1958. test -z "$ac_cxx_werror_flag" ||
  1959. test ! -s conftest.err
  1960. } && test -s conftest.$ac_objext; then :
  1961. ac_retval=0
  1962. else
  1963. $as_echo "$as_me: failed program was:" >&5
  1964. sed 's/^/| /' conftest.$ac_ext >&5
  1965. ac_retval=1
  1966. fi
  1967. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1968. as_fn_set_status $ac_retval
  1969. } # ac_fn_cxx_try_compile
  1970. # ac_fn_cxx_try_cpp LINENO
  1971. # ------------------------
  1972. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1973. ac_fn_cxx_try_cpp ()
  1974. {
  1975. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1976. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1977. case "(($ac_try" in
  1978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1979. *) ac_try_echo=$ac_try;;
  1980. esac
  1981. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1982. $as_echo "$ac_try_echo"; } >&5
  1983. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1984. ac_status=$?
  1985. if test -s conftest.err; then
  1986. grep -v '^ *+' conftest.err >conftest.er1
  1987. cat conftest.er1 >&5
  1988. mv -f conftest.er1 conftest.err
  1989. fi
  1990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1991. test $ac_status = 0; } > conftest.i && {
  1992. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1993. test ! -s conftest.err
  1994. }; then :
  1995. ac_retval=0
  1996. else
  1997. $as_echo "$as_me: failed program was:" >&5
  1998. sed 's/^/| /' conftest.$ac_ext >&5
  1999. ac_retval=1
  2000. fi
  2001. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2002. as_fn_set_status $ac_retval
  2003. } # ac_fn_cxx_try_cpp
  2004. # ac_fn_cxx_try_link LINENO
  2005. # -------------------------
  2006. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2007. ac_fn_cxx_try_link ()
  2008. {
  2009. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2010. rm -f conftest.$ac_objext conftest$ac_exeext
  2011. if { { ac_try="$ac_link"
  2012. case "(($ac_try" in
  2013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2014. *) ac_try_echo=$ac_try;;
  2015. esac
  2016. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2017. $as_echo "$ac_try_echo"; } >&5
  2018. (eval "$ac_link") 2>conftest.err
  2019. ac_status=$?
  2020. if test -s conftest.err; then
  2021. grep -v '^ *+' conftest.err >conftest.er1
  2022. cat conftest.er1 >&5
  2023. mv -f conftest.er1 conftest.err
  2024. fi
  2025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2026. test $ac_status = 0; } && {
  2027. test -z "$ac_cxx_werror_flag" ||
  2028. test ! -s conftest.err
  2029. } && test -s conftest$ac_exeext && {
  2030. test "$cross_compiling" = yes ||
  2031. test -x conftest$ac_exeext
  2032. }; then :
  2033. ac_retval=0
  2034. else
  2035. $as_echo "$as_me: failed program was:" >&5
  2036. sed 's/^/| /' conftest.$ac_ext >&5
  2037. ac_retval=1
  2038. fi
  2039. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2040. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2041. # interfere with the next link command; also delete a directory that is
  2042. # left behind by Apple's compiler. We do this before executing the actions.
  2043. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2044. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2045. as_fn_set_status $ac_retval
  2046. } # ac_fn_cxx_try_link
  2047. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2048. # -------------------------------------------------------
  2049. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2050. # the include files in INCLUDES and setting the cache variable VAR
  2051. # accordingly.
  2052. ac_fn_c_check_header_mongrel ()
  2053. {
  2054. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2055. if eval \${$3+:} false; then :
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2057. $as_echo_n "checking for $2... " >&6; }
  2058. if eval \${$3+:} false; then :
  2059. $as_echo_n "(cached) " >&6
  2060. fi
  2061. eval ac_res=\$$3
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2063. $as_echo "$ac_res" >&6; }
  2064. else
  2065. # Is the header compilable?
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2067. $as_echo_n "checking $2 usability... " >&6; }
  2068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2069. /* end confdefs.h. */
  2070. $4
  2071. #include <$2>
  2072. _ACEOF
  2073. if ac_fn_c_try_compile "$LINENO"; then :
  2074. ac_header_compiler=yes
  2075. else
  2076. ac_header_compiler=no
  2077. fi
  2078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2080. $as_echo "$ac_header_compiler" >&6; }
  2081. # Is the header present?
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2083. $as_echo_n "checking $2 presence... " >&6; }
  2084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2085. /* end confdefs.h. */
  2086. #include <$2>
  2087. _ACEOF
  2088. if ac_fn_c_try_cpp "$LINENO"; then :
  2089. ac_header_preproc=yes
  2090. else
  2091. ac_header_preproc=no
  2092. fi
  2093. rm -f conftest.err conftest.i conftest.$ac_ext
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2095. $as_echo "$ac_header_preproc" >&6; }
  2096. # So? What about this header?
  2097. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2098. yes:no: )
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2100. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2102. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2103. ;;
  2104. no:yes:* )
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2106. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2108. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2110. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2112. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2114. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2115. ;;
  2116. esac
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2118. $as_echo_n "checking for $2... " >&6; }
  2119. if eval \${$3+:} false; then :
  2120. $as_echo_n "(cached) " >&6
  2121. else
  2122. eval "$3=\$ac_header_compiler"
  2123. fi
  2124. eval ac_res=\$$3
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2126. $as_echo "$ac_res" >&6; }
  2127. fi
  2128. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2129. } # ac_fn_c_check_header_mongrel
  2130. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2131. # -------------------------------------------
  2132. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2133. # variable VAR accordingly.
  2134. ac_fn_c_check_type ()
  2135. {
  2136. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2138. $as_echo_n "checking for $2... " >&6; }
  2139. if eval \${$3+:} false; then :
  2140. $as_echo_n "(cached) " >&6
  2141. else
  2142. eval "$3=no"
  2143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2144. /* end confdefs.h. */
  2145. $4
  2146. int
  2147. main ()
  2148. {
  2149. if (sizeof ($2))
  2150. return 0;
  2151. ;
  2152. return 0;
  2153. }
  2154. _ACEOF
  2155. if ac_fn_c_try_compile "$LINENO"; then :
  2156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2157. /* end confdefs.h. */
  2158. $4
  2159. int
  2160. main ()
  2161. {
  2162. if (sizeof (($2)))
  2163. return 0;
  2164. ;
  2165. return 0;
  2166. }
  2167. _ACEOF
  2168. if ac_fn_c_try_compile "$LINENO"; then :
  2169. else
  2170. eval "$3=yes"
  2171. fi
  2172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2173. fi
  2174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2175. fi
  2176. eval ac_res=\$$3
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2178. $as_echo "$ac_res" >&6; }
  2179. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2180. } # ac_fn_c_check_type
  2181. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2182. # ----------------------------------------------------
  2183. # Tries to find if the field MEMBER exists in type AGGR, after including
  2184. # INCLUDES, setting cache variable VAR accordingly.
  2185. ac_fn_c_check_member ()
  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.$3" >&5
  2189. $as_echo_n "checking for $2.$3... " >&6; }
  2190. if eval \${$4+:} false; then :
  2191. $as_echo_n "(cached) " >&6
  2192. else
  2193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2194. /* end confdefs.h. */
  2195. $5
  2196. int
  2197. main ()
  2198. {
  2199. static $2 ac_aggr;
  2200. if (ac_aggr.$3)
  2201. return 0;
  2202. ;
  2203. return 0;
  2204. }
  2205. _ACEOF
  2206. if ac_fn_c_try_compile "$LINENO"; then :
  2207. eval "$4=yes"
  2208. else
  2209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2210. /* end confdefs.h. */
  2211. $5
  2212. int
  2213. main ()
  2214. {
  2215. static $2 ac_aggr;
  2216. if (sizeof ac_aggr.$3)
  2217. return 0;
  2218. ;
  2219. return 0;
  2220. }
  2221. _ACEOF
  2222. if ac_fn_c_try_compile "$LINENO"; then :
  2223. eval "$4=yes"
  2224. else
  2225. eval "$4=no"
  2226. fi
  2227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2228. fi
  2229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2230. fi
  2231. eval ac_res=\$$4
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2233. $as_echo "$ac_res" >&6; }
  2234. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2235. } # ac_fn_c_check_member
  2236. cat >config.log <<_ACEOF
  2237. This file contains any messages produced by compilers while
  2238. running configure, to aid debugging if configure makes a mistake.
  2239. It was created by $as_me, which was
  2240. generated by GNU Autoconf 2.69. Invocation command line was
  2241. $ $0 $@
  2242. _ACEOF
  2243. exec 5>>config.log
  2244. {
  2245. cat <<_ASUNAME
  2246. ## --------- ##
  2247. ## Platform. ##
  2248. ## --------- ##
  2249. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2250. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2251. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2252. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2253. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2254. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2255. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2256. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2257. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2258. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2259. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2260. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2261. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2262. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2263. _ASUNAME
  2264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2265. for as_dir in $PATH
  2266. do
  2267. IFS=$as_save_IFS
  2268. test -z "$as_dir" && as_dir=.
  2269. $as_echo "PATH: $as_dir"
  2270. done
  2271. IFS=$as_save_IFS
  2272. } >&5
  2273. cat >&5 <<_ACEOF
  2274. ## ----------- ##
  2275. ## Core tests. ##
  2276. ## ----------- ##
  2277. _ACEOF
  2278. # Keep a trace of the command line.
  2279. # Strip out --no-create and --no-recursion so they do not pile up.
  2280. # Strip out --silent because we don't want to record it for future runs.
  2281. # Also quote any args containing shell meta-characters.
  2282. # Make two passes to allow for proper duplicate-argument suppression.
  2283. ac_configure_args=
  2284. ac_configure_args0=
  2285. ac_configure_args1=
  2286. ac_must_keep_next=false
  2287. for ac_pass in 1 2
  2288. do
  2289. for ac_arg
  2290. do
  2291. case $ac_arg in
  2292. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2293. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2294. | -silent | --silent | --silen | --sile | --sil)
  2295. continue ;;
  2296. *\'*)
  2297. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2298. esac
  2299. case $ac_pass in
  2300. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2301. 2)
  2302. as_fn_append ac_configure_args1 " '$ac_arg'"
  2303. if test $ac_must_keep_next = true; then
  2304. ac_must_keep_next=false # Got value, back to normal.
  2305. else
  2306. case $ac_arg in
  2307. *=* | --config-cache | -C | -disable-* | --disable-* \
  2308. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2309. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2310. | -with-* | --with-* | -without-* | --without-* | --x)
  2311. case "$ac_configure_args0 " in
  2312. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2313. esac
  2314. ;;
  2315. -* ) ac_must_keep_next=true ;;
  2316. esac
  2317. fi
  2318. as_fn_append ac_configure_args " '$ac_arg'"
  2319. ;;
  2320. esac
  2321. done
  2322. done
  2323. { ac_configure_args0=; unset ac_configure_args0;}
  2324. { ac_configure_args1=; unset ac_configure_args1;}
  2325. # When interrupted or exit'd, cleanup temporary files, and complete
  2326. # config.log. We remove comments because anyway the quotes in there
  2327. # would cause problems or look ugly.
  2328. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2329. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2330. trap 'exit_status=$?
  2331. # Save into config.log some information that might help in debugging.
  2332. {
  2333. echo
  2334. $as_echo "## ---------------- ##
  2335. ## Cache variables. ##
  2336. ## ---------------- ##"
  2337. echo
  2338. # The following way of writing the cache mishandles newlines in values,
  2339. (
  2340. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2341. eval ac_val=\$$ac_var
  2342. case $ac_val in #(
  2343. *${as_nl}*)
  2344. case $ac_var in #(
  2345. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2346. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2347. esac
  2348. case $ac_var in #(
  2349. _ | IFS | as_nl) ;; #(
  2350. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2351. *) { eval $ac_var=; unset $ac_var;} ;;
  2352. esac ;;
  2353. esac
  2354. done
  2355. (set) 2>&1 |
  2356. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2357. *${as_nl}ac_space=\ *)
  2358. sed -n \
  2359. "s/'\''/'\''\\\\'\'''\''/g;
  2360. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2361. ;; #(
  2362. *)
  2363. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2364. ;;
  2365. esac |
  2366. sort
  2367. )
  2368. echo
  2369. $as_echo "## ----------------- ##
  2370. ## Output variables. ##
  2371. ## ----------------- ##"
  2372. echo
  2373. for ac_var in $ac_subst_vars
  2374. do
  2375. eval ac_val=\$$ac_var
  2376. case $ac_val in
  2377. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2378. esac
  2379. $as_echo "$ac_var='\''$ac_val'\''"
  2380. done | sort
  2381. echo
  2382. if test -n "$ac_subst_files"; then
  2383. $as_echo "## ------------------- ##
  2384. ## File substitutions. ##
  2385. ## ------------------- ##"
  2386. echo
  2387. for ac_var in $ac_subst_files
  2388. do
  2389. eval ac_val=\$$ac_var
  2390. case $ac_val in
  2391. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2392. esac
  2393. $as_echo "$ac_var='\''$ac_val'\''"
  2394. done | sort
  2395. echo
  2396. fi
  2397. if test -s confdefs.h; then
  2398. $as_echo "## ----------- ##
  2399. ## confdefs.h. ##
  2400. ## ----------- ##"
  2401. echo
  2402. cat confdefs.h
  2403. echo
  2404. fi
  2405. test "$ac_signal" != 0 &&
  2406. $as_echo "$as_me: caught signal $ac_signal"
  2407. $as_echo "$as_me: exit $exit_status"
  2408. } >&5
  2409. rm -f core *.core core.conftest.* &&
  2410. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2411. exit $exit_status
  2412. ' 0
  2413. for ac_signal in 1 2 13 15; do
  2414. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2415. done
  2416. ac_signal=0
  2417. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2418. rm -f -r conftest* confdefs.h
  2419. $as_echo "/* confdefs.h */" > confdefs.h
  2420. # Predefined preprocessor variables.
  2421. cat >>confdefs.h <<_ACEOF
  2422. #define PACKAGE_NAME "$PACKAGE_NAME"
  2423. _ACEOF
  2424. cat >>confdefs.h <<_ACEOF
  2425. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2426. _ACEOF
  2427. cat >>confdefs.h <<_ACEOF
  2428. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2429. _ACEOF
  2430. cat >>confdefs.h <<_ACEOF
  2431. #define PACKAGE_STRING "$PACKAGE_STRING"
  2432. _ACEOF
  2433. cat >>confdefs.h <<_ACEOF
  2434. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2435. _ACEOF
  2436. cat >>confdefs.h <<_ACEOF
  2437. #define PACKAGE_URL "$PACKAGE_URL"
  2438. _ACEOF
  2439. # Let the site file select an alternate cache file if it wants to.
  2440. # Prefer an explicitly selected file to automatically selected ones.
  2441. ac_site_file1=NONE
  2442. ac_site_file2=NONE
  2443. if test -n "$CONFIG_SITE"; then
  2444. # We do not want a PATH search for config.site.
  2445. case $CONFIG_SITE in #((
  2446. -*) ac_site_file1=./$CONFIG_SITE;;
  2447. */*) ac_site_file1=$CONFIG_SITE;;
  2448. *) ac_site_file1=./$CONFIG_SITE;;
  2449. esac
  2450. elif test "x$prefix" != xNONE; then
  2451. ac_site_file1=$prefix/share/config.site
  2452. ac_site_file2=$prefix/etc/config.site
  2453. else
  2454. ac_site_file1=$ac_default_prefix/share/config.site
  2455. ac_site_file2=$ac_default_prefix/etc/config.site
  2456. fi
  2457. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2458. do
  2459. test "x$ac_site_file" = xNONE && continue
  2460. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2462. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2463. sed 's/^/| /' "$ac_site_file" >&5
  2464. . "$ac_site_file" \
  2465. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2466. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2467. as_fn_error $? "failed to load site script $ac_site_file
  2468. See \`config.log' for more details" "$LINENO" 5; }
  2469. fi
  2470. done
  2471. if test -r "$cache_file"; then
  2472. # Some versions of bash will fail to source /dev/null (special files
  2473. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2474. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2476. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2477. case $cache_file in
  2478. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2479. *) . "./$cache_file";;
  2480. esac
  2481. fi
  2482. else
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2484. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2485. >$cache_file
  2486. fi
  2487. # Check that the precious variables saved in the cache have kept the same
  2488. # value.
  2489. ac_cache_corrupted=false
  2490. for ac_var in $ac_precious_vars; do
  2491. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2492. eval ac_new_set=\$ac_env_${ac_var}_set
  2493. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2494. eval ac_new_val=\$ac_env_${ac_var}_value
  2495. case $ac_old_set,$ac_new_set in
  2496. set,)
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2498. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2499. ac_cache_corrupted=: ;;
  2500. ,set)
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2502. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2503. ac_cache_corrupted=: ;;
  2504. ,);;
  2505. *)
  2506. if test "x$ac_old_val" != "x$ac_new_val"; then
  2507. # differences in whitespace do not lead to failure.
  2508. ac_old_val_w=`echo x $ac_old_val`
  2509. ac_new_val_w=`echo x $ac_new_val`
  2510. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2512. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2513. ac_cache_corrupted=:
  2514. else
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2516. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2517. eval $ac_var=\$ac_old_val
  2518. fi
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2520. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2522. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2523. fi;;
  2524. esac
  2525. # Pass precious variables to config.status.
  2526. if test "$ac_new_set" = set; then
  2527. case $ac_new_val in
  2528. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2529. *) ac_arg=$ac_var=$ac_new_val ;;
  2530. esac
  2531. case " $ac_configure_args " in
  2532. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2533. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2534. esac
  2535. fi
  2536. done
  2537. if $ac_cache_corrupted; then
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2541. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2542. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2543. fi
  2544. ## -------------------- ##
  2545. ## Main body of script. ##
  2546. ## -------------------- ##
  2547. ac_ext=c
  2548. ac_cpp='$CPP $CPPFLAGS'
  2549. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2550. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2551. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2552. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2553. ac_aux_dir=
  2554. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2555. if test -f "$ac_dir/install-sh"; then
  2556. ac_aux_dir=$ac_dir
  2557. ac_install_sh="$ac_aux_dir/install-sh -c"
  2558. break
  2559. elif test -f "$ac_dir/install.sh"; then
  2560. ac_aux_dir=$ac_dir
  2561. ac_install_sh="$ac_aux_dir/install.sh -c"
  2562. break
  2563. elif test -f "$ac_dir/shtool"; then
  2564. ac_aux_dir=$ac_dir
  2565. ac_install_sh="$ac_aux_dir/shtool install -c"
  2566. break
  2567. fi
  2568. done
  2569. if test -z "$ac_aux_dir"; then
  2570. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2571. fi
  2572. # These three variables are undocumented and unsupported,
  2573. # and are intended to be withdrawn in a future Autoconf release.
  2574. # They can cause serious problems if a builder's source tree is in a directory
  2575. # whose full name contains unusual characters.
  2576. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2577. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2578. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2579. orig_CFLAGS="$CFLAGS"
  2580. #
  2581. # Making releases:
  2582. # Edit include/SDL_version.h and change the version, then:
  2583. # SDL_MICRO_VERSION += 1;
  2584. # SDL_INTERFACE_AGE += 1;
  2585. # SDL_BINARY_AGE += 1;
  2586. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2587. # if backwards compatibility has been broken,
  2588. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2589. #
  2590. SDL_MAJOR_VERSION=2
  2591. SDL_MINOR_VERSION=0
  2592. SDL_MICRO_VERSION=12
  2593. SDL_INTERFACE_AGE=0
  2594. SDL_BINARY_AGE=12
  2595. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2596. # libtool versioning
  2597. case `pwd` in
  2598. *\ * | *\ *)
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2600. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2601. esac
  2602. macro_version='2.4.2'
  2603. macro_revision='1.3337'
  2604. ltmain="$ac_aux_dir/ltmain.sh"
  2605. # Make sure we can run config.sub.
  2606. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2607. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2609. $as_echo_n "checking build system type... " >&6; }
  2610. if ${ac_cv_build+:} false; then :
  2611. $as_echo_n "(cached) " >&6
  2612. else
  2613. ac_build_alias=$build_alias
  2614. test "x$ac_build_alias" = x &&
  2615. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2616. test "x$ac_build_alias" = x &&
  2617. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2618. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2619. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2620. fi
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2622. $as_echo "$ac_cv_build" >&6; }
  2623. case $ac_cv_build in
  2624. *-*-*) ;;
  2625. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2626. esac
  2627. build=$ac_cv_build
  2628. ac_save_IFS=$IFS; IFS='-'
  2629. set x $ac_cv_build
  2630. shift
  2631. build_cpu=$1
  2632. build_vendor=$2
  2633. shift; shift
  2634. # Remember, the first character of IFS is used to create $*,
  2635. # except with old shells:
  2636. build_os=$*
  2637. IFS=$ac_save_IFS
  2638. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2640. $as_echo_n "checking host system type... " >&6; }
  2641. if ${ac_cv_host+:} false; then :
  2642. $as_echo_n "(cached) " >&6
  2643. else
  2644. if test "x$host_alias" = x; then
  2645. ac_cv_host=$ac_cv_build
  2646. else
  2647. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2648. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2649. fi
  2650. fi
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2652. $as_echo "$ac_cv_host" >&6; }
  2653. case $ac_cv_host in
  2654. *-*-*) ;;
  2655. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2656. esac
  2657. host=$ac_cv_host
  2658. ac_save_IFS=$IFS; IFS='-'
  2659. set x $ac_cv_host
  2660. shift
  2661. host_cpu=$1
  2662. host_vendor=$2
  2663. shift; shift
  2664. # Remember, the first character of IFS is used to create $*,
  2665. # except with old shells:
  2666. host_os=$*
  2667. IFS=$ac_save_IFS
  2668. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2669. # Backslashify metacharacters that are still active within
  2670. # double-quoted strings.
  2671. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2672. # Same as above, but do not quote variable references.
  2673. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2674. # Sed substitution to delay expansion of an escaped shell variable in a
  2675. # double_quote_subst'ed string.
  2676. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2677. # Sed substitution to delay expansion of an escaped single quote.
  2678. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2679. # Sed substitution to avoid accidental globbing in evaled expressions
  2680. no_glob_subst='s/\*/\\\*/g'
  2681. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2682. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2683. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2685. $as_echo_n "checking how to print strings... " >&6; }
  2686. # Test print first, because it will be a builtin if present.
  2687. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2688. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2689. ECHO='print -r --'
  2690. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2691. ECHO='printf %s\n'
  2692. else
  2693. # Use this function as a fallback that always works.
  2694. func_fallback_echo ()
  2695. {
  2696. eval 'cat <<_LTECHO_EOF
  2697. $1
  2698. _LTECHO_EOF'
  2699. }
  2700. ECHO='func_fallback_echo'
  2701. fi
  2702. # func_echo_all arg...
  2703. # Invoke $ECHO with all args, space-separated.
  2704. func_echo_all ()
  2705. {
  2706. $ECHO ""
  2707. }
  2708. case "$ECHO" in
  2709. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2710. $as_echo "printf" >&6; } ;;
  2711. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2712. $as_echo "print -r" >&6; } ;;
  2713. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2714. $as_echo "cat" >&6; } ;;
  2715. esac
  2716. ac_ext=c
  2717. ac_cpp='$CPP $CPPFLAGS'
  2718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2721. if test -n "$ac_tool_prefix"; then
  2722. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2723. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2725. $as_echo_n "checking for $ac_word... " >&6; }
  2726. if ${ac_cv_prog_CC+:} false; then :
  2727. $as_echo_n "(cached) " >&6
  2728. else
  2729. if test -n "$CC"; then
  2730. ac_cv_prog_CC="$CC" # Let the user override the test.
  2731. else
  2732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2733. for as_dir in $PATH
  2734. do
  2735. IFS=$as_save_IFS
  2736. test -z "$as_dir" && as_dir=.
  2737. for ac_exec_ext in '' $ac_executable_extensions; do
  2738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2739. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2741. break 2
  2742. fi
  2743. done
  2744. done
  2745. IFS=$as_save_IFS
  2746. fi
  2747. fi
  2748. CC=$ac_cv_prog_CC
  2749. if test -n "$CC"; then
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2751. $as_echo "$CC" >&6; }
  2752. else
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2754. $as_echo "no" >&6; }
  2755. fi
  2756. fi
  2757. if test -z "$ac_cv_prog_CC"; then
  2758. ac_ct_CC=$CC
  2759. # Extract the first word of "gcc", so it can be a program name with args.
  2760. set dummy gcc; ac_word=$2
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2762. $as_echo_n "checking for $ac_word... " >&6; }
  2763. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2764. $as_echo_n "(cached) " >&6
  2765. else
  2766. if test -n "$ac_ct_CC"; then
  2767. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2768. else
  2769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770. for as_dir in $PATH
  2771. do
  2772. IFS=$as_save_IFS
  2773. test -z "$as_dir" && as_dir=.
  2774. for ac_exec_ext in '' $ac_executable_extensions; do
  2775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2776. ac_cv_prog_ac_ct_CC="gcc"
  2777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2778. break 2
  2779. fi
  2780. done
  2781. done
  2782. IFS=$as_save_IFS
  2783. fi
  2784. fi
  2785. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2786. if test -n "$ac_ct_CC"; then
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2788. $as_echo "$ac_ct_CC" >&6; }
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. fi
  2793. if test "x$ac_ct_CC" = x; then
  2794. CC=""
  2795. else
  2796. case $cross_compiling:$ac_tool_warned in
  2797. yes:)
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2800. ac_tool_warned=yes ;;
  2801. esac
  2802. CC=$ac_ct_CC
  2803. fi
  2804. else
  2805. CC="$ac_cv_prog_CC"
  2806. fi
  2807. if test -z "$CC"; then
  2808. if test -n "$ac_tool_prefix"; then
  2809. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2810. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2812. $as_echo_n "checking for $ac_word... " >&6; }
  2813. if ${ac_cv_prog_CC+:} false; then :
  2814. $as_echo_n "(cached) " >&6
  2815. else
  2816. if test -n "$CC"; then
  2817. ac_cv_prog_CC="$CC" # Let the user override the test.
  2818. else
  2819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2820. for as_dir in $PATH
  2821. do
  2822. IFS=$as_save_IFS
  2823. test -z "$as_dir" && as_dir=.
  2824. for ac_exec_ext in '' $ac_executable_extensions; do
  2825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2826. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. fi
  2834. fi
  2835. CC=$ac_cv_prog_CC
  2836. if test -n "$CC"; then
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2838. $as_echo "$CC" >&6; }
  2839. else
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2841. $as_echo "no" >&6; }
  2842. fi
  2843. fi
  2844. fi
  2845. if test -z "$CC"; then
  2846. # Extract the first word of "cc", so it can be a program name with args.
  2847. set dummy cc; ac_word=$2
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2849. $as_echo_n "checking for $ac_word... " >&6; }
  2850. if ${ac_cv_prog_CC+:} false; then :
  2851. $as_echo_n "(cached) " >&6
  2852. else
  2853. if test -n "$CC"; then
  2854. ac_cv_prog_CC="$CC" # Let the user override the test.
  2855. else
  2856. ac_prog_rejected=no
  2857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2858. for as_dir in $PATH
  2859. do
  2860. IFS=$as_save_IFS
  2861. test -z "$as_dir" && as_dir=.
  2862. for ac_exec_ext in '' $ac_executable_extensions; do
  2863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2864. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2865. ac_prog_rejected=yes
  2866. continue
  2867. fi
  2868. ac_cv_prog_CC="cc"
  2869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2870. break 2
  2871. fi
  2872. done
  2873. done
  2874. IFS=$as_save_IFS
  2875. if test $ac_prog_rejected = yes; then
  2876. # We found a bogon in the path, so make sure we never use it.
  2877. set dummy $ac_cv_prog_CC
  2878. shift
  2879. if test $# != 0; then
  2880. # We chose a different compiler from the bogus one.
  2881. # However, it has the same basename, so the bogon will be chosen
  2882. # first if we set CC to just the basename; use the full file name.
  2883. shift
  2884. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2885. fi
  2886. fi
  2887. fi
  2888. fi
  2889. CC=$ac_cv_prog_CC
  2890. if test -n "$CC"; then
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2892. $as_echo "$CC" >&6; }
  2893. else
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. $as_echo "no" >&6; }
  2896. fi
  2897. fi
  2898. if test -z "$CC"; then
  2899. if test -n "$ac_tool_prefix"; then
  2900. for ac_prog in cl.exe
  2901. do
  2902. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2903. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2905. $as_echo_n "checking for $ac_word... " >&6; }
  2906. if ${ac_cv_prog_CC+:} false; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. if test -n "$CC"; then
  2910. ac_cv_prog_CC="$CC" # Let the user override the test.
  2911. else
  2912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2913. for as_dir in $PATH
  2914. do
  2915. IFS=$as_save_IFS
  2916. test -z "$as_dir" && as_dir=.
  2917. for ac_exec_ext in '' $ac_executable_extensions; do
  2918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2919. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2921. break 2
  2922. fi
  2923. done
  2924. done
  2925. IFS=$as_save_IFS
  2926. fi
  2927. fi
  2928. CC=$ac_cv_prog_CC
  2929. if test -n "$CC"; then
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2931. $as_echo "$CC" >&6; }
  2932. else
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2934. $as_echo "no" >&6; }
  2935. fi
  2936. test -n "$CC" && break
  2937. done
  2938. fi
  2939. if test -z "$CC"; then
  2940. ac_ct_CC=$CC
  2941. for ac_prog in cl.exe
  2942. do
  2943. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2944. set dummy $ac_prog; ac_word=$2
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2946. $as_echo_n "checking for $ac_word... " >&6; }
  2947. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2948. $as_echo_n "(cached) " >&6
  2949. else
  2950. if test -n "$ac_ct_CC"; then
  2951. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2952. else
  2953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2954. for as_dir in $PATH
  2955. do
  2956. IFS=$as_save_IFS
  2957. test -z "$as_dir" && as_dir=.
  2958. for ac_exec_ext in '' $ac_executable_extensions; do
  2959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2960. ac_cv_prog_ac_ct_CC="$ac_prog"
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2962. break 2
  2963. fi
  2964. done
  2965. done
  2966. IFS=$as_save_IFS
  2967. fi
  2968. fi
  2969. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2970. if test -n "$ac_ct_CC"; then
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2972. $as_echo "$ac_ct_CC" >&6; }
  2973. else
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2975. $as_echo "no" >&6; }
  2976. fi
  2977. test -n "$ac_ct_CC" && break
  2978. done
  2979. if test "x$ac_ct_CC" = x; then
  2980. CC=""
  2981. else
  2982. case $cross_compiling:$ac_tool_warned in
  2983. yes:)
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2985. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2986. ac_tool_warned=yes ;;
  2987. esac
  2988. CC=$ac_ct_CC
  2989. fi
  2990. fi
  2991. fi
  2992. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2994. as_fn_error $? "no acceptable C compiler found in \$PATH
  2995. See \`config.log' for more details" "$LINENO" 5; }
  2996. # Provide some information about the compiler.
  2997. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2998. set X $ac_compile
  2999. ac_compiler=$2
  3000. for ac_option in --version -v -V -qversion; do
  3001. { { ac_try="$ac_compiler $ac_option >&5"
  3002. case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3007. $as_echo "$ac_try_echo"; } >&5
  3008. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3009. ac_status=$?
  3010. if test -s conftest.err; then
  3011. sed '10a\
  3012. ... rest of stderr output deleted ...
  3013. 10q' conftest.err >conftest.er1
  3014. cat conftest.er1 >&5
  3015. fi
  3016. rm -f conftest.er1 conftest.err
  3017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3018. test $ac_status = 0; }
  3019. done
  3020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3021. /* end confdefs.h. */
  3022. int
  3023. main ()
  3024. {
  3025. ;
  3026. return 0;
  3027. }
  3028. _ACEOF
  3029. ac_clean_files_save=$ac_clean_files
  3030. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3031. # Try to create an executable without -o first, disregard a.out.
  3032. # It will help us diagnose broken compilers, and finding out an intuition
  3033. # of exeext.
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3035. $as_echo_n "checking whether the C compiler works... " >&6; }
  3036. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3037. # The possible output files:
  3038. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3039. ac_rmfiles=
  3040. for ac_file in $ac_files
  3041. do
  3042. case $ac_file in
  3043. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3044. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3045. esac
  3046. done
  3047. rm -f $ac_rmfiles
  3048. if { { ac_try="$ac_link_default"
  3049. case "(($ac_try" in
  3050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3051. *) ac_try_echo=$ac_try;;
  3052. esac
  3053. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3054. $as_echo "$ac_try_echo"; } >&5
  3055. (eval "$ac_link_default") 2>&5
  3056. ac_status=$?
  3057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3058. test $ac_status = 0; }; then :
  3059. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3060. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3061. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3062. # so that the user can short-circuit this test for compilers unknown to
  3063. # Autoconf.
  3064. for ac_file in $ac_files ''
  3065. do
  3066. test -f "$ac_file" || continue
  3067. case $ac_file in
  3068. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3069. ;;
  3070. [ab].out )
  3071. # We found the default executable, but exeext='' is most
  3072. # certainly right.
  3073. break;;
  3074. *.* )
  3075. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3076. then :; else
  3077. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3078. fi
  3079. # We set ac_cv_exeext here because the later test for it is not
  3080. # safe: cross compilers may not add the suffix if given an `-o'
  3081. # argument, so we may need to know it at that point already.
  3082. # Even if this section looks crufty: it has the advantage of
  3083. # actually working.
  3084. break;;
  3085. * )
  3086. break;;
  3087. esac
  3088. done
  3089. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3090. else
  3091. ac_file=''
  3092. fi
  3093. if test -z "$ac_file"; then :
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3095. $as_echo "no" >&6; }
  3096. $as_echo "$as_me: failed program was:" >&5
  3097. sed 's/^/| /' conftest.$ac_ext >&5
  3098. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3100. as_fn_error 77 "C compiler cannot create executables
  3101. See \`config.log' for more details" "$LINENO" 5; }
  3102. else
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3104. $as_echo "yes" >&6; }
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3107. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3109. $as_echo "$ac_file" >&6; }
  3110. ac_exeext=$ac_cv_exeext
  3111. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3112. ac_clean_files=$ac_clean_files_save
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3114. $as_echo_n "checking for suffix of executables... " >&6; }
  3115. if { { ac_try="$ac_link"
  3116. case "(($ac_try" in
  3117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3118. *) ac_try_echo=$ac_try;;
  3119. esac
  3120. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3121. $as_echo "$ac_try_echo"; } >&5
  3122. (eval "$ac_link") 2>&5
  3123. ac_status=$?
  3124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3125. test $ac_status = 0; }; then :
  3126. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3127. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3128. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3129. # `rm'.
  3130. for ac_file in conftest.exe conftest conftest.*; do
  3131. test -f "$ac_file" || continue
  3132. case $ac_file in
  3133. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3134. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3135. break;;
  3136. * ) break;;
  3137. esac
  3138. done
  3139. else
  3140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3142. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3143. See \`config.log' for more details" "$LINENO" 5; }
  3144. fi
  3145. rm -f conftest conftest$ac_cv_exeext
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3147. $as_echo "$ac_cv_exeext" >&6; }
  3148. rm -f conftest.$ac_ext
  3149. EXEEXT=$ac_cv_exeext
  3150. ac_exeext=$EXEEXT
  3151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end confdefs.h. */
  3153. #include <stdio.h>
  3154. int
  3155. main ()
  3156. {
  3157. FILE *f = fopen ("conftest.out", "w");
  3158. return ferror (f) || fclose (f) != 0;
  3159. ;
  3160. return 0;
  3161. }
  3162. _ACEOF
  3163. ac_clean_files="$ac_clean_files conftest.out"
  3164. # Check that the compiler produces executables we can run. If not, either
  3165. # the compiler is broken, or we cross compile.
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3167. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3168. if test "$cross_compiling" != yes; then
  3169. { { ac_try="$ac_link"
  3170. case "(($ac_try" in
  3171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3172. *) ac_try_echo=$ac_try;;
  3173. esac
  3174. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3175. $as_echo "$ac_try_echo"; } >&5
  3176. (eval "$ac_link") 2>&5
  3177. ac_status=$?
  3178. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3179. test $ac_status = 0; }
  3180. if { ac_try='./conftest$ac_cv_exeext'
  3181. { { case "(($ac_try" in
  3182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3183. *) ac_try_echo=$ac_try;;
  3184. esac
  3185. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3186. $as_echo "$ac_try_echo"; } >&5
  3187. (eval "$ac_try") 2>&5
  3188. ac_status=$?
  3189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3190. test $ac_status = 0; }; }; then
  3191. cross_compiling=no
  3192. else
  3193. if test "$cross_compiling" = maybe; then
  3194. cross_compiling=yes
  3195. else
  3196. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3197. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3198. as_fn_error $? "cannot run C compiled programs.
  3199. If you meant to cross compile, use \`--host'.
  3200. See \`config.log' for more details" "$LINENO" 5; }
  3201. fi
  3202. fi
  3203. fi
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3205. $as_echo "$cross_compiling" >&6; }
  3206. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3207. ac_clean_files=$ac_clean_files_save
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3209. $as_echo_n "checking for suffix of object files... " >&6; }
  3210. if ${ac_cv_objext+:} false; then :
  3211. $as_echo_n "(cached) " >&6
  3212. else
  3213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3214. /* end confdefs.h. */
  3215. int
  3216. main ()
  3217. {
  3218. ;
  3219. return 0;
  3220. }
  3221. _ACEOF
  3222. rm -f conftest.o conftest.obj
  3223. if { { ac_try="$ac_compile"
  3224. case "(($ac_try" in
  3225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3226. *) ac_try_echo=$ac_try;;
  3227. esac
  3228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3229. $as_echo "$ac_try_echo"; } >&5
  3230. (eval "$ac_compile") 2>&5
  3231. ac_status=$?
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3233. test $ac_status = 0; }; then :
  3234. for ac_file in conftest.o conftest.obj conftest.*; do
  3235. test -f "$ac_file" || continue;
  3236. case $ac_file in
  3237. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3238. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3239. break;;
  3240. esac
  3241. done
  3242. else
  3243. $as_echo "$as_me: failed program was:" >&5
  3244. sed 's/^/| /' conftest.$ac_ext >&5
  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 compute suffix of object files: cannot compile
  3248. See \`config.log' for more details" "$LINENO" 5; }
  3249. fi
  3250. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3251. fi
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3253. $as_echo "$ac_cv_objext" >&6; }
  3254. OBJEXT=$ac_cv_objext
  3255. ac_objext=$OBJEXT
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3257. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3258. if ${ac_cv_c_compiler_gnu+:} false; then :
  3259. $as_echo_n "(cached) " >&6
  3260. else
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. int
  3264. main ()
  3265. {
  3266. #ifndef __GNUC__
  3267. choke me
  3268. #endif
  3269. ;
  3270. return 0;
  3271. }
  3272. _ACEOF
  3273. if ac_fn_c_try_compile "$LINENO"; then :
  3274. ac_compiler_gnu=yes
  3275. else
  3276. ac_compiler_gnu=no
  3277. fi
  3278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3279. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3280. fi
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3282. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3283. if test $ac_compiler_gnu = yes; then
  3284. GCC=yes
  3285. else
  3286. GCC=
  3287. fi
  3288. ac_test_CFLAGS=${CFLAGS+set}
  3289. ac_save_CFLAGS=$CFLAGS
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3291. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3292. if ${ac_cv_prog_cc_g+:} false; then :
  3293. $as_echo_n "(cached) " >&6
  3294. else
  3295. ac_save_c_werror_flag=$ac_c_werror_flag
  3296. ac_c_werror_flag=yes
  3297. ac_cv_prog_cc_g=no
  3298. CFLAGS="-g"
  3299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3300. /* end confdefs.h. */
  3301. int
  3302. main ()
  3303. {
  3304. ;
  3305. return 0;
  3306. }
  3307. _ACEOF
  3308. if ac_fn_c_try_compile "$LINENO"; then :
  3309. ac_cv_prog_cc_g=yes
  3310. else
  3311. CFLAGS=""
  3312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3313. /* end confdefs.h. */
  3314. int
  3315. main ()
  3316. {
  3317. ;
  3318. return 0;
  3319. }
  3320. _ACEOF
  3321. if ac_fn_c_try_compile "$LINENO"; then :
  3322. else
  3323. ac_c_werror_flag=$ac_save_c_werror_flag
  3324. CFLAGS="-g"
  3325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3326. /* end confdefs.h. */
  3327. int
  3328. main ()
  3329. {
  3330. ;
  3331. return 0;
  3332. }
  3333. _ACEOF
  3334. if ac_fn_c_try_compile "$LINENO"; then :
  3335. ac_cv_prog_cc_g=yes
  3336. fi
  3337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3338. fi
  3339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3340. fi
  3341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3342. ac_c_werror_flag=$ac_save_c_werror_flag
  3343. fi
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3345. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3346. if test "$ac_test_CFLAGS" = set; then
  3347. CFLAGS=$ac_save_CFLAGS
  3348. elif test $ac_cv_prog_cc_g = yes; then
  3349. if test "$GCC" = yes; then
  3350. CFLAGS="-g -O2"
  3351. else
  3352. CFLAGS="-g"
  3353. fi
  3354. else
  3355. if test "$GCC" = yes; then
  3356. CFLAGS="-O2"
  3357. else
  3358. CFLAGS=
  3359. fi
  3360. fi
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3362. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3363. if ${ac_cv_prog_cc_c89+:} false; then :
  3364. $as_echo_n "(cached) " >&6
  3365. else
  3366. ac_cv_prog_cc_c89=no
  3367. ac_save_CC=$CC
  3368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3369. /* end confdefs.h. */
  3370. #include <stdarg.h>
  3371. #include <stdio.h>
  3372. struct stat;
  3373. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3374. struct buf { int x; };
  3375. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3376. static char *e (p, i)
  3377. char **p;
  3378. int i;
  3379. {
  3380. return p[i];
  3381. }
  3382. static char *f (char * (*g) (char **, int), char **p, ...)
  3383. {
  3384. char *s;
  3385. va_list v;
  3386. va_start (v,p);
  3387. s = g (p, va_arg (v,int));
  3388. va_end (v);
  3389. return s;
  3390. }
  3391. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3392. function prototypes and stuff, but not '\xHH' hex character constants.
  3393. These don't provoke an error unfortunately, instead are silently treated
  3394. as 'x'. The following induces an error, until -std is added to get
  3395. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3396. array size at least. It's necessary to write '\x00'==0 to get something
  3397. that's true only with -std. */
  3398. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3399. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3400. inside strings and character constants. */
  3401. #define FOO(x) 'x'
  3402. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3403. int test (int i, double x);
  3404. struct s1 {int (*f) (int a);};
  3405. struct s2 {int (*f) (double a);};
  3406. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3407. int argc;
  3408. char **argv;
  3409. int
  3410. main ()
  3411. {
  3412. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3413. ;
  3414. return 0;
  3415. }
  3416. _ACEOF
  3417. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3418. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3419. do
  3420. CC="$ac_save_CC $ac_arg"
  3421. if ac_fn_c_try_compile "$LINENO"; then :
  3422. ac_cv_prog_cc_c89=$ac_arg
  3423. fi
  3424. rm -f core conftest.err conftest.$ac_objext
  3425. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3426. done
  3427. rm -f conftest.$ac_ext
  3428. CC=$ac_save_CC
  3429. fi
  3430. # AC_CACHE_VAL
  3431. case "x$ac_cv_prog_cc_c89" in
  3432. x)
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3434. $as_echo "none needed" >&6; } ;;
  3435. xno)
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3437. $as_echo "unsupported" >&6; } ;;
  3438. *)
  3439. CC="$CC $ac_cv_prog_cc_c89"
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3441. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3442. esac
  3443. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3444. fi
  3445. ac_ext=c
  3446. ac_cpp='$CPP $CPPFLAGS'
  3447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3451. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3452. if ${ac_cv_path_SED+:} false; then :
  3453. $as_echo_n "(cached) " >&6
  3454. else
  3455. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3456. for ac_i in 1 2 3 4 5 6 7; do
  3457. ac_script="$ac_script$as_nl$ac_script"
  3458. done
  3459. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3460. { ac_script=; unset ac_script;}
  3461. if test -z "$SED"; then
  3462. ac_path_SED_found=false
  3463. # Loop through the user's path and test for each of PROGNAME-LIST
  3464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3465. for as_dir in $PATH
  3466. do
  3467. IFS=$as_save_IFS
  3468. test -z "$as_dir" && as_dir=.
  3469. for ac_prog in sed gsed; do
  3470. for ac_exec_ext in '' $ac_executable_extensions; do
  3471. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3472. as_fn_executable_p "$ac_path_SED" || continue
  3473. # Check for GNU ac_path_SED and select it if it is found.
  3474. # Check for GNU $ac_path_SED
  3475. case `"$ac_path_SED" --version 2>&1` in
  3476. *GNU*)
  3477. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3478. *)
  3479. ac_count=0
  3480. $as_echo_n 0123456789 >"conftest.in"
  3481. while :
  3482. do
  3483. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3484. mv "conftest.tmp" "conftest.in"
  3485. cp "conftest.in" "conftest.nl"
  3486. $as_echo '' >> "conftest.nl"
  3487. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3488. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3489. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3490. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3491. # Best one so far, save it but keep looking for a better one
  3492. ac_cv_path_SED="$ac_path_SED"
  3493. ac_path_SED_max=$ac_count
  3494. fi
  3495. # 10*(2^10) chars as input seems more than enough
  3496. test $ac_count -gt 10 && break
  3497. done
  3498. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3499. esac
  3500. $ac_path_SED_found && break 3
  3501. done
  3502. done
  3503. done
  3504. IFS=$as_save_IFS
  3505. if test -z "$ac_cv_path_SED"; then
  3506. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3507. fi
  3508. else
  3509. ac_cv_path_SED=$SED
  3510. fi
  3511. fi
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3513. $as_echo "$ac_cv_path_SED" >&6; }
  3514. SED="$ac_cv_path_SED"
  3515. rm -f conftest.sed
  3516. test -z "$SED" && SED=sed
  3517. Xsed="$SED -e 1s/^X//"
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3519. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3520. if ${ac_cv_path_GREP+:} false; then :
  3521. $as_echo_n "(cached) " >&6
  3522. else
  3523. if test -z "$GREP"; then
  3524. ac_path_GREP_found=false
  3525. # Loop through the user's path and test for each of PROGNAME-LIST
  3526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3527. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3528. do
  3529. IFS=$as_save_IFS
  3530. test -z "$as_dir" && as_dir=.
  3531. for ac_prog in grep ggrep; do
  3532. for ac_exec_ext in '' $ac_executable_extensions; do
  3533. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3534. as_fn_executable_p "$ac_path_GREP" || continue
  3535. # Check for GNU ac_path_GREP and select it if it is found.
  3536. # Check for GNU $ac_path_GREP
  3537. case `"$ac_path_GREP" --version 2>&1` in
  3538. *GNU*)
  3539. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3540. *)
  3541. ac_count=0
  3542. $as_echo_n 0123456789 >"conftest.in"
  3543. while :
  3544. do
  3545. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3546. mv "conftest.tmp" "conftest.in"
  3547. cp "conftest.in" "conftest.nl"
  3548. $as_echo 'GREP' >> "conftest.nl"
  3549. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3550. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3551. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3552. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3553. # Best one so far, save it but keep looking for a better one
  3554. ac_cv_path_GREP="$ac_path_GREP"
  3555. ac_path_GREP_max=$ac_count
  3556. fi
  3557. # 10*(2^10) chars as input seems more than enough
  3558. test $ac_count -gt 10 && break
  3559. done
  3560. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3561. esac
  3562. $ac_path_GREP_found && break 3
  3563. done
  3564. done
  3565. done
  3566. IFS=$as_save_IFS
  3567. if test -z "$ac_cv_path_GREP"; then
  3568. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3569. fi
  3570. else
  3571. ac_cv_path_GREP=$GREP
  3572. fi
  3573. fi
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3575. $as_echo "$ac_cv_path_GREP" >&6; }
  3576. GREP="$ac_cv_path_GREP"
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3578. $as_echo_n "checking for egrep... " >&6; }
  3579. if ${ac_cv_path_EGREP+:} false; then :
  3580. $as_echo_n "(cached) " >&6
  3581. else
  3582. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3583. then ac_cv_path_EGREP="$GREP -E"
  3584. else
  3585. if test -z "$EGREP"; then
  3586. ac_path_EGREP_found=false
  3587. # Loop through the user's path and test for each of PROGNAME-LIST
  3588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3589. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3590. do
  3591. IFS=$as_save_IFS
  3592. test -z "$as_dir" && as_dir=.
  3593. for ac_prog in egrep; do
  3594. for ac_exec_ext in '' $ac_executable_extensions; do
  3595. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3596. as_fn_executable_p "$ac_path_EGREP" || continue
  3597. # Check for GNU ac_path_EGREP and select it if it is found.
  3598. # Check for GNU $ac_path_EGREP
  3599. case `"$ac_path_EGREP" --version 2>&1` in
  3600. *GNU*)
  3601. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3602. *)
  3603. ac_count=0
  3604. $as_echo_n 0123456789 >"conftest.in"
  3605. while :
  3606. do
  3607. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3608. mv "conftest.tmp" "conftest.in"
  3609. cp "conftest.in" "conftest.nl"
  3610. $as_echo 'EGREP' >> "conftest.nl"
  3611. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3612. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3613. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3614. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3615. # Best one so far, save it but keep looking for a better one
  3616. ac_cv_path_EGREP="$ac_path_EGREP"
  3617. ac_path_EGREP_max=$ac_count
  3618. fi
  3619. # 10*(2^10) chars as input seems more than enough
  3620. test $ac_count -gt 10 && break
  3621. done
  3622. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3623. esac
  3624. $ac_path_EGREP_found && break 3
  3625. done
  3626. done
  3627. done
  3628. IFS=$as_save_IFS
  3629. if test -z "$ac_cv_path_EGREP"; then
  3630. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3631. fi
  3632. else
  3633. ac_cv_path_EGREP=$EGREP
  3634. fi
  3635. fi
  3636. fi
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3638. $as_echo "$ac_cv_path_EGREP" >&6; }
  3639. EGREP="$ac_cv_path_EGREP"
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3641. $as_echo_n "checking for fgrep... " >&6; }
  3642. if ${ac_cv_path_FGREP+:} false; then :
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3646. then ac_cv_path_FGREP="$GREP -F"
  3647. else
  3648. if test -z "$FGREP"; then
  3649. ac_path_FGREP_found=false
  3650. # Loop through the user's path and test for each of PROGNAME-LIST
  3651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3652. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3653. do
  3654. IFS=$as_save_IFS
  3655. test -z "$as_dir" && as_dir=.
  3656. for ac_prog in fgrep; do
  3657. for ac_exec_ext in '' $ac_executable_extensions; do
  3658. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3659. as_fn_executable_p "$ac_path_FGREP" || continue
  3660. # Check for GNU ac_path_FGREP and select it if it is found.
  3661. # Check for GNU $ac_path_FGREP
  3662. case `"$ac_path_FGREP" --version 2>&1` in
  3663. *GNU*)
  3664. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3665. *)
  3666. ac_count=0
  3667. $as_echo_n 0123456789 >"conftest.in"
  3668. while :
  3669. do
  3670. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3671. mv "conftest.tmp" "conftest.in"
  3672. cp "conftest.in" "conftest.nl"
  3673. $as_echo 'FGREP' >> "conftest.nl"
  3674. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3675. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3676. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3677. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3678. # Best one so far, save it but keep looking for a better one
  3679. ac_cv_path_FGREP="$ac_path_FGREP"
  3680. ac_path_FGREP_max=$ac_count
  3681. fi
  3682. # 10*(2^10) chars as input seems more than enough
  3683. test $ac_count -gt 10 && break
  3684. done
  3685. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3686. esac
  3687. $ac_path_FGREP_found && break 3
  3688. done
  3689. done
  3690. done
  3691. IFS=$as_save_IFS
  3692. if test -z "$ac_cv_path_FGREP"; then
  3693. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3694. fi
  3695. else
  3696. ac_cv_path_FGREP=$FGREP
  3697. fi
  3698. fi
  3699. fi
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3701. $as_echo "$ac_cv_path_FGREP" >&6; }
  3702. FGREP="$ac_cv_path_FGREP"
  3703. test -z "$GREP" && GREP=grep
  3704. # Check whether --with-gnu-ld was given.
  3705. if test "${with_gnu_ld+set}" = set; then :
  3706. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3707. else
  3708. with_gnu_ld=no
  3709. fi
  3710. ac_prog=ld
  3711. if test "$GCC" = yes; then
  3712. # Check if gcc -print-prog-name=ld gives a path.
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3714. $as_echo_n "checking for ld used by $CC... " >&6; }
  3715. case $host in
  3716. *-*-mingw*)
  3717. # gcc leaves a trailing carriage return which upsets mingw
  3718. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3719. *)
  3720. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3721. esac
  3722. case $ac_prog in
  3723. # Accept absolute paths.
  3724. [\\/]* | ?:[\\/]*)
  3725. re_direlt='/[^/][^/]*/\.\./'
  3726. # Canonicalize the pathname of ld
  3727. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3728. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3729. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3730. done
  3731. test -z "$LD" && LD="$ac_prog"
  3732. ;;
  3733. "")
  3734. # If it fails, then pretend we aren't using GCC.
  3735. ac_prog=ld
  3736. ;;
  3737. *)
  3738. # If it is relative, then search for the first ld in PATH.
  3739. with_gnu_ld=unknown
  3740. ;;
  3741. esac
  3742. elif test "$with_gnu_ld" = yes; then
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3744. $as_echo_n "checking for GNU ld... " >&6; }
  3745. else
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3747. $as_echo_n "checking for non-GNU ld... " >&6; }
  3748. fi
  3749. if ${lt_cv_path_LD+:} false; then :
  3750. $as_echo_n "(cached) " >&6
  3751. else
  3752. if test -z "$LD"; then
  3753. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3754. for ac_dir in $PATH; do
  3755. IFS="$lt_save_ifs"
  3756. test -z "$ac_dir" && ac_dir=.
  3757. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3758. lt_cv_path_LD="$ac_dir/$ac_prog"
  3759. # Check to see if the program is GNU ld. I'd rather use --version,
  3760. # but apparently some variants of GNU ld only accept -v.
  3761. # Break only if it was the GNU/non-GNU ld that we prefer.
  3762. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3763. *GNU* | *'with BFD'*)
  3764. test "$with_gnu_ld" != no && break
  3765. ;;
  3766. *)
  3767. test "$with_gnu_ld" != yes && break
  3768. ;;
  3769. esac
  3770. fi
  3771. done
  3772. IFS="$lt_save_ifs"
  3773. else
  3774. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3775. fi
  3776. fi
  3777. LD="$lt_cv_path_LD"
  3778. if test -n "$LD"; then
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3780. $as_echo "$LD" >&6; }
  3781. else
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3783. $as_echo "no" >&6; }
  3784. fi
  3785. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3787. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3788. if ${lt_cv_prog_gnu_ld+:} false; then :
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3792. case `$LD -v 2>&1 </dev/null` in
  3793. *GNU* | *'with BFD'*)
  3794. lt_cv_prog_gnu_ld=yes
  3795. ;;
  3796. *)
  3797. lt_cv_prog_gnu_ld=no
  3798. ;;
  3799. esac
  3800. fi
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3802. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3803. with_gnu_ld=$lt_cv_prog_gnu_ld
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3805. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3806. if ${lt_cv_path_NM+:} false; then :
  3807. $as_echo_n "(cached) " >&6
  3808. else
  3809. if test -n "$NM"; then
  3810. # Let the user override the test.
  3811. lt_cv_path_NM="$NM"
  3812. else
  3813. lt_nm_to_check="${ac_tool_prefix}nm"
  3814. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3815. lt_nm_to_check="$lt_nm_to_check nm"
  3816. fi
  3817. for lt_tmp_nm in $lt_nm_to_check; do
  3818. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3819. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3820. IFS="$lt_save_ifs"
  3821. test -z "$ac_dir" && ac_dir=.
  3822. tmp_nm="$ac_dir/$lt_tmp_nm"
  3823. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3824. # Check to see if the nm accepts a BSD-compat flag.
  3825. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3826. # nm: unknown option "B" ignored
  3827. # Tru64's nm complains that /dev/null is an invalid object file
  3828. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3829. */dev/null* | *'Invalid file or object type'*)
  3830. lt_cv_path_NM="$tmp_nm -B"
  3831. break
  3832. ;;
  3833. *)
  3834. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3835. */dev/null*)
  3836. lt_cv_path_NM="$tmp_nm -p"
  3837. break
  3838. ;;
  3839. *)
  3840. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3841. continue # so that we can try to find one that supports BSD flags
  3842. ;;
  3843. esac
  3844. ;;
  3845. esac
  3846. fi
  3847. done
  3848. IFS="$lt_save_ifs"
  3849. done
  3850. : ${lt_cv_path_NM=no}
  3851. fi
  3852. fi
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3854. $as_echo "$lt_cv_path_NM" >&6; }
  3855. if test "$lt_cv_path_NM" != "no"; then
  3856. NM="$lt_cv_path_NM"
  3857. else
  3858. # Didn't find any BSD compatible name lister, look for dumpbin.
  3859. if test -n "$DUMPBIN"; then :
  3860. # Let the user override the test.
  3861. else
  3862. if test -n "$ac_tool_prefix"; then
  3863. for ac_prog in dumpbin "link -dump"
  3864. do
  3865. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3866. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3868. $as_echo_n "checking for $ac_word... " >&6; }
  3869. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3870. $as_echo_n "(cached) " >&6
  3871. else
  3872. if test -n "$DUMPBIN"; then
  3873. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3874. else
  3875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3876. for as_dir in $PATH
  3877. do
  3878. IFS=$as_save_IFS
  3879. test -z "$as_dir" && as_dir=.
  3880. for ac_exec_ext in '' $ac_executable_extensions; do
  3881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3882. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3884. break 2
  3885. fi
  3886. done
  3887. done
  3888. IFS=$as_save_IFS
  3889. fi
  3890. fi
  3891. DUMPBIN=$ac_cv_prog_DUMPBIN
  3892. if test -n "$DUMPBIN"; then
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3894. $as_echo "$DUMPBIN" >&6; }
  3895. else
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3897. $as_echo "no" >&6; }
  3898. fi
  3899. test -n "$DUMPBIN" && break
  3900. done
  3901. fi
  3902. if test -z "$DUMPBIN"; then
  3903. ac_ct_DUMPBIN=$DUMPBIN
  3904. for ac_prog in dumpbin "link -dump"
  3905. do
  3906. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3907. set dummy $ac_prog; ac_word=$2
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3909. $as_echo_n "checking for $ac_word... " >&6; }
  3910. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3911. $as_echo_n "(cached) " >&6
  3912. else
  3913. if test -n "$ac_ct_DUMPBIN"; then
  3914. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3915. else
  3916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3917. for as_dir in $PATH
  3918. do
  3919. IFS=$as_save_IFS
  3920. test -z "$as_dir" && as_dir=.
  3921. for ac_exec_ext in '' $ac_executable_extensions; do
  3922. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3923. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3925. break 2
  3926. fi
  3927. done
  3928. done
  3929. IFS=$as_save_IFS
  3930. fi
  3931. fi
  3932. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3933. if test -n "$ac_ct_DUMPBIN"; then
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3935. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3936. else
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3938. $as_echo "no" >&6; }
  3939. fi
  3940. test -n "$ac_ct_DUMPBIN" && break
  3941. done
  3942. if test "x$ac_ct_DUMPBIN" = x; then
  3943. DUMPBIN=":"
  3944. else
  3945. case $cross_compiling:$ac_tool_warned in
  3946. yes:)
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3948. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3949. ac_tool_warned=yes ;;
  3950. esac
  3951. DUMPBIN=$ac_ct_DUMPBIN
  3952. fi
  3953. fi
  3954. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3955. *COFF*)
  3956. DUMPBIN="$DUMPBIN -symbols"
  3957. ;;
  3958. *)
  3959. DUMPBIN=:
  3960. ;;
  3961. esac
  3962. fi
  3963. if test "$DUMPBIN" != ":"; then
  3964. NM="$DUMPBIN"
  3965. fi
  3966. fi
  3967. test -z "$NM" && NM=nm
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3969. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3970. if ${lt_cv_nm_interface+:} false; then :
  3971. $as_echo_n "(cached) " >&6
  3972. else
  3973. lt_cv_nm_interface="BSD nm"
  3974. echo "int some_variable = 0;" > conftest.$ac_ext
  3975. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3976. (eval "$ac_compile" 2>conftest.err)
  3977. cat conftest.err >&5
  3978. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3979. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3980. cat conftest.err >&5
  3981. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3982. cat conftest.out >&5
  3983. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3984. lt_cv_nm_interface="MS dumpbin"
  3985. fi
  3986. rm -f conftest*
  3987. fi
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3989. $as_echo "$lt_cv_nm_interface" >&6; }
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3991. $as_echo_n "checking whether ln -s works... " >&6; }
  3992. LN_S=$as_ln_s
  3993. if test "$LN_S" = "ln -s"; then
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3995. $as_echo "yes" >&6; }
  3996. else
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3998. $as_echo "no, using $LN_S" >&6; }
  3999. fi
  4000. # find the maximum length of command line arguments
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4002. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4003. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. i=0
  4007. teststring="ABCD"
  4008. case $build_os in
  4009. msdosdjgpp*)
  4010. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4011. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4012. # during glob expansion). Even if it were fixed, the result of this
  4013. # check would be larger than it should be.
  4014. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4015. ;;
  4016. gnu*)
  4017. # Under GNU Hurd, this test is not required because there is
  4018. # no limit to the length of command line arguments.
  4019. # Libtool will interpret -1 as no limit whatsoever
  4020. lt_cv_sys_max_cmd_len=-1;
  4021. ;;
  4022. cygwin* | mingw* | cegcc*)
  4023. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4024. # about 5 minutes as the teststring grows exponentially.
  4025. # Worse, since 9x/ME are not pre-emptively multitasking,
  4026. # you end up with a "frozen" computer, even though with patience
  4027. # the test eventually succeeds (with a max line length of 256k).
  4028. # Instead, let's just punt: use the minimum linelength reported by
  4029. # all of the supported platforms: 8192 (on NT/2K/XP).
  4030. lt_cv_sys_max_cmd_len=8192;
  4031. ;;
  4032. mint*)
  4033. # On MiNT this can take a long time and run out of memory.
  4034. lt_cv_sys_max_cmd_len=8192;
  4035. ;;
  4036. amigaos*)
  4037. # On AmigaOS with pdksh, this test takes hours, literally.
  4038. # So we just punt and use a minimum line length of 8192.
  4039. lt_cv_sys_max_cmd_len=8192;
  4040. ;;
  4041. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4042. # This has been around since 386BSD, at least. Likely further.
  4043. if test -x /sbin/sysctl; then
  4044. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4045. elif test -x /usr/sbin/sysctl; then
  4046. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4047. else
  4048. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4049. fi
  4050. # And add a safety zone
  4051. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4052. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4053. ;;
  4054. interix*)
  4055. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4056. lt_cv_sys_max_cmd_len=196608
  4057. ;;
  4058. os2*)
  4059. # The test takes a long time on OS/2.
  4060. lt_cv_sys_max_cmd_len=8192
  4061. ;;
  4062. osf*)
  4063. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4064. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4065. # nice to cause kernel panics so lets avoid the loop below.
  4066. # First set a reasonable default.
  4067. lt_cv_sys_max_cmd_len=16384
  4068. #
  4069. if test -x /sbin/sysconfig; then
  4070. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4071. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4072. esac
  4073. fi
  4074. ;;
  4075. sco3.2v5*)
  4076. lt_cv_sys_max_cmd_len=102400
  4077. ;;
  4078. sysv5* | sco5v6* | sysv4.2uw2*)
  4079. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4080. if test -n "$kargmax"; then
  4081. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4082. else
  4083. lt_cv_sys_max_cmd_len=32768
  4084. fi
  4085. ;;
  4086. *)
  4087. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4088. if test -n "$lt_cv_sys_max_cmd_len"; then
  4089. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4090. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4091. else
  4092. # Make teststring a little bigger before we do anything with it.
  4093. # a 1K string should be a reasonable start.
  4094. for i in 1 2 3 4 5 6 7 8 ; do
  4095. teststring=$teststring$teststring
  4096. done
  4097. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4098. # If test is not a shell built-in, we'll probably end up computing a
  4099. # maximum length that is only half of the actual maximum length, but
  4100. # we can't tell.
  4101. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4102. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4103. test $i != 17 # 1/2 MB should be enough
  4104. do
  4105. i=`expr $i + 1`
  4106. teststring=$teststring$teststring
  4107. done
  4108. # Only check the string length outside the loop.
  4109. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4110. teststring=
  4111. # Add a significant safety factor because C++ compilers can tack on
  4112. # massive amounts of additional arguments before passing them to the
  4113. # linker. It appears as though 1/2 is a usable value.
  4114. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4115. fi
  4116. ;;
  4117. esac
  4118. fi
  4119. if test -n $lt_cv_sys_max_cmd_len ; then
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4121. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4122. else
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4124. $as_echo "none" >&6; }
  4125. fi
  4126. max_cmd_len=$lt_cv_sys_max_cmd_len
  4127. : ${CP="cp -f"}
  4128. : ${MV="mv -f"}
  4129. : ${RM="rm -f"}
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4131. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4132. # Try some XSI features
  4133. xsi_shell=no
  4134. ( _lt_dummy="a/b/c"
  4135. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4136. = c,a/b,b/c, \
  4137. && eval 'test $(( 1 + 1 )) -eq 2 \
  4138. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4139. && xsi_shell=yes
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4141. $as_echo "$xsi_shell" >&6; }
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4143. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4144. lt_shell_append=no
  4145. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4146. >/dev/null 2>&1 \
  4147. && lt_shell_append=yes
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4149. $as_echo "$lt_shell_append" >&6; }
  4150. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4151. lt_unset=unset
  4152. else
  4153. lt_unset=false
  4154. fi
  4155. # test EBCDIC or ASCII
  4156. case `echo X|tr X '\101'` in
  4157. A) # ASCII based system
  4158. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4159. lt_SP2NL='tr \040 \012'
  4160. lt_NL2SP='tr \015\012 \040\040'
  4161. ;;
  4162. *) # EBCDIC based system
  4163. lt_SP2NL='tr \100 \n'
  4164. lt_NL2SP='tr \r\n \100\100'
  4165. ;;
  4166. esac
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4168. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4169. if ${lt_cv_to_host_file_cmd+:} false; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. case $host in
  4173. *-*-mingw* )
  4174. case $build in
  4175. *-*-mingw* ) # actually msys
  4176. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4177. ;;
  4178. *-*-cygwin* )
  4179. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4180. ;;
  4181. * ) # otherwise, assume *nix
  4182. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4183. ;;
  4184. esac
  4185. ;;
  4186. *-*-cygwin* )
  4187. case $build in
  4188. *-*-mingw* ) # actually msys
  4189. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4190. ;;
  4191. *-*-cygwin* )
  4192. lt_cv_to_host_file_cmd=func_convert_file_noop
  4193. ;;
  4194. * ) # otherwise, assume *nix
  4195. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4196. ;;
  4197. esac
  4198. ;;
  4199. * ) # unhandled hosts (and "normal" native builds)
  4200. lt_cv_to_host_file_cmd=func_convert_file_noop
  4201. ;;
  4202. esac
  4203. fi
  4204. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4206. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4208. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4209. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. #assume ordinary cross tools, or native build.
  4213. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4214. case $host in
  4215. *-*-mingw* )
  4216. case $build in
  4217. *-*-mingw* ) # actually msys
  4218. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4219. ;;
  4220. esac
  4221. ;;
  4222. esac
  4223. fi
  4224. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4226. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4228. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4229. if ${lt_cv_ld_reload_flag+:} false; then :
  4230. $as_echo_n "(cached) " >&6
  4231. else
  4232. lt_cv_ld_reload_flag='-r'
  4233. fi
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4235. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4236. reload_flag=$lt_cv_ld_reload_flag
  4237. case $reload_flag in
  4238. "" | " "*) ;;
  4239. *) reload_flag=" $reload_flag" ;;
  4240. esac
  4241. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4242. case $host_os in
  4243. cygwin* | mingw* | pw32* | cegcc*)
  4244. if test "$GCC" != yes; then
  4245. reload_cmds=false
  4246. fi
  4247. ;;
  4248. darwin*)
  4249. if test "$GCC" = yes; then
  4250. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4251. else
  4252. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4253. fi
  4254. ;;
  4255. esac
  4256. if test -n "$ac_tool_prefix"; then
  4257. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4258. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4260. $as_echo_n "checking for $ac_word... " >&6; }
  4261. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4262. $as_echo_n "(cached) " >&6
  4263. else
  4264. if test -n "$OBJDUMP"; then
  4265. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4266. else
  4267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4268. for as_dir in $PATH
  4269. do
  4270. IFS=$as_save_IFS
  4271. test -z "$as_dir" && as_dir=.
  4272. for ac_exec_ext in '' $ac_executable_extensions; do
  4273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4274. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4276. break 2
  4277. fi
  4278. done
  4279. done
  4280. IFS=$as_save_IFS
  4281. fi
  4282. fi
  4283. OBJDUMP=$ac_cv_prog_OBJDUMP
  4284. if test -n "$OBJDUMP"; then
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4286. $as_echo "$OBJDUMP" >&6; }
  4287. else
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4289. $as_echo "no" >&6; }
  4290. fi
  4291. fi
  4292. if test -z "$ac_cv_prog_OBJDUMP"; then
  4293. ac_ct_OBJDUMP=$OBJDUMP
  4294. # Extract the first word of "objdump", so it can be a program name with args.
  4295. set dummy objdump; ac_word=$2
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4297. $as_echo_n "checking for $ac_word... " >&6; }
  4298. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4299. $as_echo_n "(cached) " >&6
  4300. else
  4301. if test -n "$ac_ct_OBJDUMP"; then
  4302. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4303. else
  4304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4305. for as_dir in $PATH
  4306. do
  4307. IFS=$as_save_IFS
  4308. test -z "$as_dir" && as_dir=.
  4309. for ac_exec_ext in '' $ac_executable_extensions; do
  4310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4311. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4313. break 2
  4314. fi
  4315. done
  4316. done
  4317. IFS=$as_save_IFS
  4318. fi
  4319. fi
  4320. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4321. if test -n "$ac_ct_OBJDUMP"; then
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4323. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4324. else
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4326. $as_echo "no" >&6; }
  4327. fi
  4328. if test "x$ac_ct_OBJDUMP" = x; then
  4329. OBJDUMP="false"
  4330. else
  4331. case $cross_compiling:$ac_tool_warned in
  4332. yes:)
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4334. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4335. ac_tool_warned=yes ;;
  4336. esac
  4337. OBJDUMP=$ac_ct_OBJDUMP
  4338. fi
  4339. else
  4340. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4341. fi
  4342. test -z "$OBJDUMP" && OBJDUMP=objdump
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4344. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4345. if ${lt_cv_deplibs_check_method+:} false; then :
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4349. lt_cv_file_magic_test_file=
  4350. lt_cv_deplibs_check_method='unknown'
  4351. # Need to set the preceding variable on all platforms that support
  4352. # interlibrary dependencies.
  4353. # 'none' -- dependencies not supported.
  4354. # `unknown' -- same as none, but documents that we really don't know.
  4355. # 'pass_all' -- all dependencies passed with no checks.
  4356. # 'test_compile' -- check by making test program.
  4357. # 'file_magic [[regex]]' -- check by looking for files in library path
  4358. # which responds to the $file_magic_cmd with a given extended regex.
  4359. # If you have `file' or equivalent on your system and you're not sure
  4360. # whether `pass_all' will *always* work, you probably want this one.
  4361. case $host_os in
  4362. aix[4-9]*)
  4363. lt_cv_deplibs_check_method=pass_all
  4364. ;;
  4365. beos*)
  4366. lt_cv_deplibs_check_method=pass_all
  4367. ;;
  4368. bsdi[45]*)
  4369. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4370. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4371. lt_cv_file_magic_test_file=/shlib/libc.so
  4372. ;;
  4373. cygwin*)
  4374. # func_win32_libid is a shell function defined in ltmain.sh
  4375. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4376. lt_cv_file_magic_cmd='func_win32_libid'
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. mingw* | pw32*)
  4380. # Base MSYS/MinGW do not provide the 'file' command needed by
  4381. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4382. # unless we find 'file', for example because we are cross-compiling.
  4383. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4384. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4385. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4386. lt_cv_file_magic_cmd='func_win32_libid'
  4387. else
  4388. # Keep this pattern in sync with the one in func_win32_libid.
  4389. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4390. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4391. fi
  4392. lt_cv_deplibs_check_method=pass_all
  4393. ;;
  4394. cegcc*)
  4395. # use the weaker test based on 'objdump'. See mingw*.
  4396. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4397. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4398. ;;
  4399. darwin* | rhapsody*)
  4400. lt_cv_deplibs_check_method=pass_all
  4401. ;;
  4402. freebsd* | dragonfly*)
  4403. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4404. case $host_cpu in
  4405. i*86 )
  4406. # Not sure whether the presence of OpenBSD here was a mistake.
  4407. # Let's accept both of them until this is cleared up.
  4408. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4409. lt_cv_file_magic_cmd=/usr/bin/file
  4410. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4411. ;;
  4412. esac
  4413. else
  4414. lt_cv_deplibs_check_method=pass_all
  4415. fi
  4416. ;;
  4417. gnu*)
  4418. lt_cv_deplibs_check_method=pass_all
  4419. ;;
  4420. haiku*)
  4421. lt_cv_deplibs_check_method=pass_all
  4422. ;;
  4423. hpux10.20* | hpux11*)
  4424. lt_cv_file_magic_cmd=/usr/bin/file
  4425. case $host_cpu in
  4426. ia64*)
  4427. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4428. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4429. ;;
  4430. hppa*64*)
  4431. 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]'
  4432. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4433. ;;
  4434. *)
  4435. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4436. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4437. ;;
  4438. esac
  4439. ;;
  4440. interix[3-9]*)
  4441. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4442. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4443. ;;
  4444. irix5* | irix6* | nonstopux*)
  4445. case $LD in
  4446. *-32|*"-32 ") libmagic=32-bit;;
  4447. *-n32|*"-n32 ") libmagic=N32;;
  4448. *-64|*"-64 ") libmagic=64-bit;;
  4449. *) libmagic=never-match;;
  4450. esac
  4451. lt_cv_deplibs_check_method=pass_all
  4452. ;;
  4453. # This must be glibc/ELF.
  4454. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4455. lt_cv_deplibs_check_method=pass_all
  4456. ;;
  4457. netbsd*)
  4458. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4459. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4460. else
  4461. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4462. fi
  4463. ;;
  4464. newos6*)
  4465. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4466. lt_cv_file_magic_cmd=/usr/bin/file
  4467. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4468. ;;
  4469. *nto* | *qnx*)
  4470. lt_cv_deplibs_check_method=pass_all
  4471. ;;
  4472. openbsd*)
  4473. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4474. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4475. else
  4476. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4477. fi
  4478. ;;
  4479. osf3* | osf4* | osf5*)
  4480. lt_cv_deplibs_check_method=pass_all
  4481. ;;
  4482. rdos*)
  4483. lt_cv_deplibs_check_method=pass_all
  4484. ;;
  4485. solaris*)
  4486. lt_cv_deplibs_check_method=pass_all
  4487. ;;
  4488. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4489. lt_cv_deplibs_check_method=pass_all
  4490. ;;
  4491. sysv4 | sysv4.3*)
  4492. case $host_vendor in
  4493. motorola)
  4494. 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]'
  4495. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4496. ;;
  4497. ncr)
  4498. lt_cv_deplibs_check_method=pass_all
  4499. ;;
  4500. sequent)
  4501. lt_cv_file_magic_cmd='/bin/file'
  4502. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4503. ;;
  4504. sni)
  4505. lt_cv_file_magic_cmd='/bin/file'
  4506. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4507. lt_cv_file_magic_test_file=/lib/libc.so
  4508. ;;
  4509. siemens)
  4510. lt_cv_deplibs_check_method=pass_all
  4511. ;;
  4512. pc)
  4513. lt_cv_deplibs_check_method=pass_all
  4514. ;;
  4515. esac
  4516. ;;
  4517. tpf*)
  4518. lt_cv_deplibs_check_method=pass_all
  4519. ;;
  4520. esac
  4521. fi
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4523. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4524. file_magic_glob=
  4525. want_nocaseglob=no
  4526. if test "$build" = "$host"; then
  4527. case $host_os in
  4528. mingw* | pw32*)
  4529. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4530. want_nocaseglob=yes
  4531. else
  4532. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4533. fi
  4534. ;;
  4535. esac
  4536. fi
  4537. file_magic_cmd=$lt_cv_file_magic_cmd
  4538. deplibs_check_method=$lt_cv_deplibs_check_method
  4539. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4540. if test -n "$ac_tool_prefix"; then
  4541. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4542. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4544. $as_echo_n "checking for $ac_word... " >&6; }
  4545. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. if test -n "$DLLTOOL"; then
  4549. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4550. else
  4551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4552. for as_dir in $PATH
  4553. do
  4554. IFS=$as_save_IFS
  4555. test -z "$as_dir" && as_dir=.
  4556. for ac_exec_ext in '' $ac_executable_extensions; do
  4557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4558. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4560. break 2
  4561. fi
  4562. done
  4563. done
  4564. IFS=$as_save_IFS
  4565. fi
  4566. fi
  4567. DLLTOOL=$ac_cv_prog_DLLTOOL
  4568. if test -n "$DLLTOOL"; then
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4570. $as_echo "$DLLTOOL" >&6; }
  4571. else
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4573. $as_echo "no" >&6; }
  4574. fi
  4575. fi
  4576. if test -z "$ac_cv_prog_DLLTOOL"; then
  4577. ac_ct_DLLTOOL=$DLLTOOL
  4578. # Extract the first word of "dlltool", so it can be a program name with args.
  4579. set dummy dlltool; ac_word=$2
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4581. $as_echo_n "checking for $ac_word... " >&6; }
  4582. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4583. $as_echo_n "(cached) " >&6
  4584. else
  4585. if test -n "$ac_ct_DLLTOOL"; then
  4586. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4587. else
  4588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4589. for as_dir in $PATH
  4590. do
  4591. IFS=$as_save_IFS
  4592. test -z "$as_dir" && as_dir=.
  4593. for ac_exec_ext in '' $ac_executable_extensions; do
  4594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4595. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4597. break 2
  4598. fi
  4599. done
  4600. done
  4601. IFS=$as_save_IFS
  4602. fi
  4603. fi
  4604. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4605. if test -n "$ac_ct_DLLTOOL"; then
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4607. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4608. else
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4610. $as_echo "no" >&6; }
  4611. fi
  4612. if test "x$ac_ct_DLLTOOL" = x; then
  4613. DLLTOOL="false"
  4614. else
  4615. case $cross_compiling:$ac_tool_warned in
  4616. yes:)
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4619. ac_tool_warned=yes ;;
  4620. esac
  4621. DLLTOOL=$ac_ct_DLLTOOL
  4622. fi
  4623. else
  4624. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4625. fi
  4626. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4628. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4629. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4630. $as_echo_n "(cached) " >&6
  4631. else
  4632. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4633. case $host_os in
  4634. cygwin* | mingw* | pw32* | cegcc*)
  4635. # two different shell functions defined in ltmain.sh
  4636. # decide which to use based on capabilities of $DLLTOOL
  4637. case `$DLLTOOL --help 2>&1` in
  4638. *--identify-strict*)
  4639. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4640. ;;
  4641. *)
  4642. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4643. ;;
  4644. esac
  4645. ;;
  4646. *)
  4647. # fallback: assume linklib IS sharedlib
  4648. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4649. ;;
  4650. esac
  4651. fi
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4653. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4654. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4655. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4656. if test -n "$ac_tool_prefix"; then
  4657. for ac_prog in ar
  4658. do
  4659. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4660. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4662. $as_echo_n "checking for $ac_word... " >&6; }
  4663. if ${ac_cv_prog_AR+:} false; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. if test -n "$AR"; then
  4667. ac_cv_prog_AR="$AR" # Let the user override the test.
  4668. else
  4669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4670. for as_dir in $PATH
  4671. do
  4672. IFS=$as_save_IFS
  4673. test -z "$as_dir" && as_dir=.
  4674. for ac_exec_ext in '' $ac_executable_extensions; do
  4675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4676. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4678. break 2
  4679. fi
  4680. done
  4681. done
  4682. IFS=$as_save_IFS
  4683. fi
  4684. fi
  4685. AR=$ac_cv_prog_AR
  4686. if test -n "$AR"; then
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4688. $as_echo "$AR" >&6; }
  4689. else
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4691. $as_echo "no" >&6; }
  4692. fi
  4693. test -n "$AR" && break
  4694. done
  4695. fi
  4696. if test -z "$AR"; then
  4697. ac_ct_AR=$AR
  4698. for ac_prog in ar
  4699. do
  4700. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4701. set dummy $ac_prog; ac_word=$2
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4703. $as_echo_n "checking for $ac_word... " >&6; }
  4704. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4705. $as_echo_n "(cached) " >&6
  4706. else
  4707. if test -n "$ac_ct_AR"; then
  4708. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4709. else
  4710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4711. for as_dir in $PATH
  4712. do
  4713. IFS=$as_save_IFS
  4714. test -z "$as_dir" && as_dir=.
  4715. for ac_exec_ext in '' $ac_executable_extensions; do
  4716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4717. ac_cv_prog_ac_ct_AR="$ac_prog"
  4718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4719. break 2
  4720. fi
  4721. done
  4722. done
  4723. IFS=$as_save_IFS
  4724. fi
  4725. fi
  4726. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4727. if test -n "$ac_ct_AR"; then
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4729. $as_echo "$ac_ct_AR" >&6; }
  4730. else
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4732. $as_echo "no" >&6; }
  4733. fi
  4734. test -n "$ac_ct_AR" && break
  4735. done
  4736. if test "x$ac_ct_AR" = x; then
  4737. AR="false"
  4738. else
  4739. case $cross_compiling:$ac_tool_warned in
  4740. yes:)
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4743. ac_tool_warned=yes ;;
  4744. esac
  4745. AR=$ac_ct_AR
  4746. fi
  4747. fi
  4748. : ${AR=ar}
  4749. : ${AR_FLAGS=cru}
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4751. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4752. if ${lt_cv_ar_at_file+:} false; then :
  4753. $as_echo_n "(cached) " >&6
  4754. else
  4755. lt_cv_ar_at_file=no
  4756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4757. /* end confdefs.h. */
  4758. int
  4759. main ()
  4760. {
  4761. ;
  4762. return 0;
  4763. }
  4764. _ACEOF
  4765. if ac_fn_c_try_compile "$LINENO"; then :
  4766. echo conftest.$ac_objext > conftest.lst
  4767. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4768. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4769. (eval $lt_ar_try) 2>&5
  4770. ac_status=$?
  4771. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4772. test $ac_status = 0; }
  4773. if test "$ac_status" -eq 0; then
  4774. # Ensure the archiver fails upon bogus file names.
  4775. rm -f conftest.$ac_objext libconftest.a
  4776. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4777. (eval $lt_ar_try) 2>&5
  4778. ac_status=$?
  4779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4780. test $ac_status = 0; }
  4781. if test "$ac_status" -ne 0; then
  4782. lt_cv_ar_at_file=@
  4783. fi
  4784. fi
  4785. rm -f conftest.* libconftest.a
  4786. fi
  4787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4788. fi
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4790. $as_echo "$lt_cv_ar_at_file" >&6; }
  4791. if test "x$lt_cv_ar_at_file" = xno; then
  4792. archiver_list_spec=
  4793. else
  4794. archiver_list_spec=$lt_cv_ar_at_file
  4795. fi
  4796. if test -n "$ac_tool_prefix"; then
  4797. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4798. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4800. $as_echo_n "checking for $ac_word... " >&6; }
  4801. if ${ac_cv_prog_STRIP+:} false; then :
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. if test -n "$STRIP"; then
  4805. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4806. else
  4807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4808. for as_dir in $PATH
  4809. do
  4810. IFS=$as_save_IFS
  4811. test -z "$as_dir" && as_dir=.
  4812. for ac_exec_ext in '' $ac_executable_extensions; do
  4813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4814. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4816. break 2
  4817. fi
  4818. done
  4819. done
  4820. IFS=$as_save_IFS
  4821. fi
  4822. fi
  4823. STRIP=$ac_cv_prog_STRIP
  4824. if test -n "$STRIP"; then
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4826. $as_echo "$STRIP" >&6; }
  4827. else
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4829. $as_echo "no" >&6; }
  4830. fi
  4831. fi
  4832. if test -z "$ac_cv_prog_STRIP"; then
  4833. ac_ct_STRIP=$STRIP
  4834. # Extract the first word of "strip", so it can be a program name with args.
  4835. set dummy strip; ac_word=$2
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4837. $as_echo_n "checking for $ac_word... " >&6; }
  4838. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4839. $as_echo_n "(cached) " >&6
  4840. else
  4841. if test -n "$ac_ct_STRIP"; then
  4842. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4843. else
  4844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4845. for as_dir in $PATH
  4846. do
  4847. IFS=$as_save_IFS
  4848. test -z "$as_dir" && as_dir=.
  4849. for ac_exec_ext in '' $ac_executable_extensions; do
  4850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4851. ac_cv_prog_ac_ct_STRIP="strip"
  4852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4853. break 2
  4854. fi
  4855. done
  4856. done
  4857. IFS=$as_save_IFS
  4858. fi
  4859. fi
  4860. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4861. if test -n "$ac_ct_STRIP"; then
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4863. $as_echo "$ac_ct_STRIP" >&6; }
  4864. else
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4866. $as_echo "no" >&6; }
  4867. fi
  4868. if test "x$ac_ct_STRIP" = x; then
  4869. STRIP=":"
  4870. else
  4871. case $cross_compiling:$ac_tool_warned in
  4872. yes:)
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4874. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4875. ac_tool_warned=yes ;;
  4876. esac
  4877. STRIP=$ac_ct_STRIP
  4878. fi
  4879. else
  4880. STRIP="$ac_cv_prog_STRIP"
  4881. fi
  4882. test -z "$STRIP" && STRIP=:
  4883. if test -n "$ac_tool_prefix"; then
  4884. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4885. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4887. $as_echo_n "checking for $ac_word... " >&6; }
  4888. if ${ac_cv_prog_RANLIB+:} false; then :
  4889. $as_echo_n "(cached) " >&6
  4890. else
  4891. if test -n "$RANLIB"; then
  4892. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4893. else
  4894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4895. for as_dir in $PATH
  4896. do
  4897. IFS=$as_save_IFS
  4898. test -z "$as_dir" && as_dir=.
  4899. for ac_exec_ext in '' $ac_executable_extensions; do
  4900. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4901. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4903. break 2
  4904. fi
  4905. done
  4906. done
  4907. IFS=$as_save_IFS
  4908. fi
  4909. fi
  4910. RANLIB=$ac_cv_prog_RANLIB
  4911. if test -n "$RANLIB"; then
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4913. $as_echo "$RANLIB" >&6; }
  4914. else
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4916. $as_echo "no" >&6; }
  4917. fi
  4918. fi
  4919. if test -z "$ac_cv_prog_RANLIB"; then
  4920. ac_ct_RANLIB=$RANLIB
  4921. # Extract the first word of "ranlib", so it can be a program name with args.
  4922. set dummy ranlib; ac_word=$2
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4924. $as_echo_n "checking for $ac_word... " >&6; }
  4925. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4926. $as_echo_n "(cached) " >&6
  4927. else
  4928. if test -n "$ac_ct_RANLIB"; then
  4929. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4930. else
  4931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4932. for as_dir in $PATH
  4933. do
  4934. IFS=$as_save_IFS
  4935. test -z "$as_dir" && as_dir=.
  4936. for ac_exec_ext in '' $ac_executable_extensions; do
  4937. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4938. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4940. break 2
  4941. fi
  4942. done
  4943. done
  4944. IFS=$as_save_IFS
  4945. fi
  4946. fi
  4947. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4948. if test -n "$ac_ct_RANLIB"; then
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4950. $as_echo "$ac_ct_RANLIB" >&6; }
  4951. else
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4953. $as_echo "no" >&6; }
  4954. fi
  4955. if test "x$ac_ct_RANLIB" = x; then
  4956. RANLIB=":"
  4957. else
  4958. case $cross_compiling:$ac_tool_warned in
  4959. yes:)
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4961. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4962. ac_tool_warned=yes ;;
  4963. esac
  4964. RANLIB=$ac_ct_RANLIB
  4965. fi
  4966. else
  4967. RANLIB="$ac_cv_prog_RANLIB"
  4968. fi
  4969. test -z "$RANLIB" && RANLIB=:
  4970. # Determine commands to create old-style static archives.
  4971. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4972. old_postinstall_cmds='chmod 644 $oldlib'
  4973. old_postuninstall_cmds=
  4974. if test -n "$RANLIB"; then
  4975. case $host_os in
  4976. openbsd*)
  4977. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4978. ;;
  4979. *)
  4980. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4981. ;;
  4982. esac
  4983. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4984. fi
  4985. case $host_os in
  4986. darwin*)
  4987. lock_old_archive_extraction=yes ;;
  4988. *)
  4989. lock_old_archive_extraction=no ;;
  4990. esac
  4991. for ac_prog in gawk mawk nawk awk
  4992. do
  4993. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4994. set dummy $ac_prog; ac_word=$2
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4996. $as_echo_n "checking for $ac_word... " >&6; }
  4997. if ${ac_cv_prog_AWK+:} false; then :
  4998. $as_echo_n "(cached) " >&6
  4999. else
  5000. if test -n "$AWK"; then
  5001. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5002. else
  5003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5004. for as_dir in $PATH
  5005. do
  5006. IFS=$as_save_IFS
  5007. test -z "$as_dir" && as_dir=.
  5008. for ac_exec_ext in '' $ac_executable_extensions; do
  5009. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5010. ac_cv_prog_AWK="$ac_prog"
  5011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5012. break 2
  5013. fi
  5014. done
  5015. done
  5016. IFS=$as_save_IFS
  5017. fi
  5018. fi
  5019. AWK=$ac_cv_prog_AWK
  5020. if test -n "$AWK"; then
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5022. $as_echo "$AWK" >&6; }
  5023. else
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5025. $as_echo "no" >&6; }
  5026. fi
  5027. test -n "$AWK" && break
  5028. done
  5029. # If no C compiler was specified, use CC.
  5030. LTCC=${LTCC-"$CC"}
  5031. # If no C compiler flags were specified, use CFLAGS.
  5032. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5033. # Allow CC to be a program name with arguments.
  5034. compiler=$CC
  5035. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5037. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5038. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5039. $as_echo_n "(cached) " >&6
  5040. else
  5041. # These are sane defaults that work on at least a few old systems.
  5042. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5043. # Character class describing NM global symbol codes.
  5044. symcode='[BCDEGRST]'
  5045. # Regexp to match symbols that can be accessed directly from C.
  5046. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5047. # Define system-specific variables.
  5048. case $host_os in
  5049. aix*)
  5050. symcode='[BCDT]'
  5051. ;;
  5052. cygwin* | mingw* | pw32* | cegcc*)
  5053. symcode='[ABCDGISTW]'
  5054. ;;
  5055. hpux*)
  5056. if test "$host_cpu" = ia64; then
  5057. symcode='[ABCDEGRST]'
  5058. fi
  5059. ;;
  5060. irix* | nonstopux*)
  5061. symcode='[BCDEGRST]'
  5062. ;;
  5063. osf*)
  5064. symcode='[BCDEGQRST]'
  5065. ;;
  5066. solaris*)
  5067. symcode='[BDRT]'
  5068. ;;
  5069. sco3.2v5*)
  5070. symcode='[DT]'
  5071. ;;
  5072. sysv4.2uw2*)
  5073. symcode='[DT]'
  5074. ;;
  5075. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5076. symcode='[ABDT]'
  5077. ;;
  5078. sysv4)
  5079. symcode='[DFNSTU]'
  5080. ;;
  5081. esac
  5082. # If we're using GNU nm, then use its standard symbol codes.
  5083. case `$NM -V 2>&1` in
  5084. *GNU* | *'with BFD'*)
  5085. symcode='[ABCDGIRSTW]' ;;
  5086. esac
  5087. # Transform an extracted symbol line into a proper C declaration.
  5088. # Some systems (esp. on ia64) link data and code symbols differently,
  5089. # so use this general approach.
  5090. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5091. # Transform an extracted symbol line into symbol name and symbol address
  5092. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5093. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5094. # Handle CRLF in mingw tool chain
  5095. opt_cr=
  5096. case $build_os in
  5097. mingw*)
  5098. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5099. ;;
  5100. esac
  5101. # Try without a prefix underscore, then with it.
  5102. for ac_symprfx in "" "_"; do
  5103. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5104. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5105. # Write the raw and C identifiers.
  5106. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5107. # Fake it for dumpbin and say T for any non-static function
  5108. # and D for any global variable.
  5109. # Also find C++ and __fastcall symbols from MSVC++,
  5110. # which start with @ or ?.
  5111. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5112. " {last_section=section; section=\$ 3};"\
  5113. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5114. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5115. " \$ 0!~/External *\|/{next};"\
  5116. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5117. " {if(hide[section]) next};"\
  5118. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5119. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5120. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5121. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5122. " ' prfx=^$ac_symprfx"
  5123. else
  5124. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5125. fi
  5126. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5127. # Check to see that the pipe works correctly.
  5128. pipe_works=no
  5129. rm -f conftest*
  5130. cat > conftest.$ac_ext <<_LT_EOF
  5131. #ifdef __cplusplus
  5132. extern "C" {
  5133. #endif
  5134. char nm_test_var;
  5135. void nm_test_func(void);
  5136. void nm_test_func(void){}
  5137. #ifdef __cplusplus
  5138. }
  5139. #endif
  5140. int main(){nm_test_var='a';nm_test_func();return(0);}
  5141. _LT_EOF
  5142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5143. (eval $ac_compile) 2>&5
  5144. ac_status=$?
  5145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5146. test $ac_status = 0; }; then
  5147. # Now try to grab the symbols.
  5148. nlist=conftest.nm
  5149. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5150. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5151. ac_status=$?
  5152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5153. test $ac_status = 0; } && test -s "$nlist"; then
  5154. # Try sorting and uniquifying the output.
  5155. if sort "$nlist" | uniq > "$nlist"T; then
  5156. mv -f "$nlist"T "$nlist"
  5157. else
  5158. rm -f "$nlist"T
  5159. fi
  5160. # Make sure that we snagged all the symbols we need.
  5161. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5162. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5163. cat <<_LT_EOF > conftest.$ac_ext
  5164. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5165. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5166. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5167. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5168. # define LT_DLSYM_CONST
  5169. #elif defined(__osf__)
  5170. /* This system does not cope well with relocations in const data. */
  5171. # define LT_DLSYM_CONST
  5172. #else
  5173. # define LT_DLSYM_CONST const
  5174. #endif
  5175. #ifdef __cplusplus
  5176. extern "C" {
  5177. #endif
  5178. _LT_EOF
  5179. # Now generate the symbol file.
  5180. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5181. cat <<_LT_EOF >> conftest.$ac_ext
  5182. /* The mapping between symbol names and symbols. */
  5183. LT_DLSYM_CONST struct {
  5184. const char *name;
  5185. void *address;
  5186. }
  5187. lt__PROGRAM__LTX_preloaded_symbols[] =
  5188. {
  5189. { "@PROGRAM@", (void *) 0 },
  5190. _LT_EOF
  5191. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5192. cat <<\_LT_EOF >> conftest.$ac_ext
  5193. {0, (void *) 0}
  5194. };
  5195. /* This works around a problem in FreeBSD linker */
  5196. #ifdef FREEBSD_WORKAROUND
  5197. static const void *lt_preloaded_setup() {
  5198. return lt__PROGRAM__LTX_preloaded_symbols;
  5199. }
  5200. #endif
  5201. #ifdef __cplusplus
  5202. }
  5203. #endif
  5204. _LT_EOF
  5205. # Now try linking the two files.
  5206. mv conftest.$ac_objext conftstm.$ac_objext
  5207. lt_globsym_save_LIBS=$LIBS
  5208. lt_globsym_save_CFLAGS=$CFLAGS
  5209. LIBS="conftstm.$ac_objext"
  5210. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5211. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5212. (eval $ac_link) 2>&5
  5213. ac_status=$?
  5214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5215. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5216. pipe_works=yes
  5217. fi
  5218. LIBS=$lt_globsym_save_LIBS
  5219. CFLAGS=$lt_globsym_save_CFLAGS
  5220. else
  5221. echo "cannot find nm_test_func in $nlist" >&5
  5222. fi
  5223. else
  5224. echo "cannot find nm_test_var in $nlist" >&5
  5225. fi
  5226. else
  5227. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5228. fi
  5229. else
  5230. echo "$progname: failed program was:" >&5
  5231. cat conftest.$ac_ext >&5
  5232. fi
  5233. rm -rf conftest* conftst*
  5234. # Do not use the global_symbol_pipe unless it works.
  5235. if test "$pipe_works" = yes; then
  5236. break
  5237. else
  5238. lt_cv_sys_global_symbol_pipe=
  5239. fi
  5240. done
  5241. fi
  5242. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5243. lt_cv_sys_global_symbol_to_cdecl=
  5244. fi
  5245. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5247. $as_echo "failed" >&6; }
  5248. else
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5250. $as_echo "ok" >&6; }
  5251. fi
  5252. # Response file support.
  5253. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5254. nm_file_list_spec='@'
  5255. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5256. nm_file_list_spec='@'
  5257. fi
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5259. $as_echo_n "checking for sysroot... " >&6; }
  5260. # Check whether --with-sysroot was given.
  5261. if test "${with_sysroot+set}" = set; then :
  5262. withval=$with_sysroot;
  5263. else
  5264. with_sysroot=no
  5265. fi
  5266. lt_sysroot=
  5267. case ${with_sysroot} in #(
  5268. yes)
  5269. if test "$GCC" = yes; then
  5270. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5271. fi
  5272. ;; #(
  5273. /*)
  5274. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5275. ;; #(
  5276. no|'')
  5277. ;; #(
  5278. *)
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5280. $as_echo "${with_sysroot}" >&6; }
  5281. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5282. ;;
  5283. esac
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5285. $as_echo "${lt_sysroot:-no}" >&6; }
  5286. # Check whether --enable-libtool-lock was given.
  5287. if test "${enable_libtool_lock+set}" = set; then :
  5288. enableval=$enable_libtool_lock;
  5289. fi
  5290. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5291. # Some flags need to be propagated to the compiler or linker for good
  5292. # libtool support.
  5293. case $host in
  5294. ia64-*-hpux*)
  5295. # Find out which ABI we are using.
  5296. echo 'int i;' > conftest.$ac_ext
  5297. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5298. (eval $ac_compile) 2>&5
  5299. ac_status=$?
  5300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5301. test $ac_status = 0; }; then
  5302. case `/usr/bin/file conftest.$ac_objext` in
  5303. *ELF-32*)
  5304. HPUX_IA64_MODE="32"
  5305. ;;
  5306. *ELF-64*)
  5307. HPUX_IA64_MODE="64"
  5308. ;;
  5309. esac
  5310. fi
  5311. rm -rf conftest*
  5312. ;;
  5313. *-*-irix6*)
  5314. # Find out which ABI we are using.
  5315. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5316. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5317. (eval $ac_compile) 2>&5
  5318. ac_status=$?
  5319. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5320. test $ac_status = 0; }; then
  5321. if test "$lt_cv_prog_gnu_ld" = yes; then
  5322. case `/usr/bin/file conftest.$ac_objext` in
  5323. *32-bit*)
  5324. LD="${LD-ld} -melf32bsmip"
  5325. ;;
  5326. *N32*)
  5327. LD="${LD-ld} -melf32bmipn32"
  5328. ;;
  5329. *64-bit*)
  5330. LD="${LD-ld} -melf64bmip"
  5331. ;;
  5332. esac
  5333. else
  5334. case `/usr/bin/file conftest.$ac_objext` in
  5335. *32-bit*)
  5336. LD="${LD-ld} -32"
  5337. ;;
  5338. *N32*)
  5339. LD="${LD-ld} -n32"
  5340. ;;
  5341. *64-bit*)
  5342. LD="${LD-ld} -64"
  5343. ;;
  5344. esac
  5345. fi
  5346. fi
  5347. rm -rf conftest*
  5348. ;;
  5349. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5350. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5351. # Find out which ABI we are using.
  5352. echo 'int i;' > conftest.$ac_ext
  5353. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5354. (eval $ac_compile) 2>&5
  5355. ac_status=$?
  5356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5357. test $ac_status = 0; }; then
  5358. case `/usr/bin/file conftest.o` in
  5359. *32-bit*)
  5360. case $host in
  5361. x86_64-*kfreebsd*-gnu)
  5362. LD="${LD-ld} -m elf_i386_fbsd"
  5363. ;;
  5364. x86_64-*linux*)
  5365. LD="${LD-ld} -m elf_i386"
  5366. ;;
  5367. ppc64-*linux*|powerpc64-*linux*)
  5368. LD="${LD-ld} -m elf32ppclinux"
  5369. ;;
  5370. s390x-*linux*)
  5371. LD="${LD-ld} -m elf_s390"
  5372. ;;
  5373. sparc64-*linux*)
  5374. LD="${LD-ld} -m elf32_sparc"
  5375. ;;
  5376. esac
  5377. ;;
  5378. *64-bit*)
  5379. case $host in
  5380. x86_64-*kfreebsd*-gnu)
  5381. LD="${LD-ld} -m elf_x86_64_fbsd"
  5382. ;;
  5383. x86_64-*linux*)
  5384. LD="${LD-ld} -m elf_x86_64"
  5385. ;;
  5386. powerpc64le-*linux*)
  5387. LD="${LD-ld} -m elf64lppc"
  5388. ;;
  5389. powerpc64-*linux*)
  5390. LD="${LD-ld} -m elf64ppc"
  5391. ;;
  5392. s390*-*linux*|s390*-*tpf*)
  5393. LD="${LD-ld} -m elf64_s390"
  5394. ;;
  5395. sparc*-*linux*)
  5396. LD="${LD-ld} -m elf64_sparc"
  5397. ;;
  5398. esac
  5399. ;;
  5400. esac
  5401. fi
  5402. rm -rf conftest*
  5403. ;;
  5404. *-*-sco3.2v5*)
  5405. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5406. SAVE_CFLAGS="$CFLAGS"
  5407. CFLAGS="$CFLAGS -belf"
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5409. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5410. if ${lt_cv_cc_needs_belf+:} false; then :
  5411. $as_echo_n "(cached) " >&6
  5412. else
  5413. ac_ext=c
  5414. ac_cpp='$CPP $CPPFLAGS'
  5415. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5416. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5417. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5419. /* end confdefs.h. */
  5420. int
  5421. main ()
  5422. {
  5423. ;
  5424. return 0;
  5425. }
  5426. _ACEOF
  5427. if ac_fn_c_try_link "$LINENO"; then :
  5428. lt_cv_cc_needs_belf=yes
  5429. else
  5430. lt_cv_cc_needs_belf=no
  5431. fi
  5432. rm -f core conftest.err conftest.$ac_objext \
  5433. conftest$ac_exeext conftest.$ac_ext
  5434. ac_ext=c
  5435. ac_cpp='$CPP $CPPFLAGS'
  5436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5439. fi
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5441. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5442. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5443. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5444. CFLAGS="$SAVE_CFLAGS"
  5445. fi
  5446. ;;
  5447. *-*solaris*)
  5448. # Find out which ABI we are using.
  5449. echo 'int i;' > conftest.$ac_ext
  5450. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5451. (eval $ac_compile) 2>&5
  5452. ac_status=$?
  5453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5454. test $ac_status = 0; }; then
  5455. case `/usr/bin/file conftest.o` in
  5456. *64-bit*)
  5457. case $lt_cv_prog_gnu_ld in
  5458. yes*)
  5459. case $host in
  5460. i?86-*-solaris*)
  5461. LD="${LD-ld} -m elf_x86_64"
  5462. ;;
  5463. sparc*-*-solaris*)
  5464. LD="${LD-ld} -m elf64_sparc"
  5465. ;;
  5466. esac
  5467. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5468. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5469. LD="${LD-ld}_sol2"
  5470. fi
  5471. ;;
  5472. *)
  5473. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5474. LD="${LD-ld} -64"
  5475. fi
  5476. ;;
  5477. esac
  5478. ;;
  5479. esac
  5480. fi
  5481. rm -rf conftest*
  5482. ;;
  5483. esac
  5484. need_locks="$enable_libtool_lock"
  5485. if test -n "$ac_tool_prefix"; then
  5486. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5487. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5489. $as_echo_n "checking for $ac_word... " >&6; }
  5490. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. if test -n "$MANIFEST_TOOL"; then
  5494. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5495. else
  5496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5497. for as_dir in $PATH
  5498. do
  5499. IFS=$as_save_IFS
  5500. test -z "$as_dir" && as_dir=.
  5501. for ac_exec_ext in '' $ac_executable_extensions; do
  5502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5503. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5505. break 2
  5506. fi
  5507. done
  5508. done
  5509. IFS=$as_save_IFS
  5510. fi
  5511. fi
  5512. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5513. if test -n "$MANIFEST_TOOL"; then
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5515. $as_echo "$MANIFEST_TOOL" >&6; }
  5516. else
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5518. $as_echo "no" >&6; }
  5519. fi
  5520. fi
  5521. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5522. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5523. # Extract the first word of "mt", so it can be a program name with args.
  5524. set dummy mt; ac_word=$2
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5526. $as_echo_n "checking for $ac_word... " >&6; }
  5527. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5528. $as_echo_n "(cached) " >&6
  5529. else
  5530. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5531. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5532. else
  5533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5534. for as_dir in $PATH
  5535. do
  5536. IFS=$as_save_IFS
  5537. test -z "$as_dir" && as_dir=.
  5538. for ac_exec_ext in '' $ac_executable_extensions; do
  5539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5540. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5542. break 2
  5543. fi
  5544. done
  5545. done
  5546. IFS=$as_save_IFS
  5547. fi
  5548. fi
  5549. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5550. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5552. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5553. else
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5555. $as_echo "no" >&6; }
  5556. fi
  5557. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5558. MANIFEST_TOOL=":"
  5559. else
  5560. case $cross_compiling:$ac_tool_warned in
  5561. yes:)
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5563. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5564. ac_tool_warned=yes ;;
  5565. esac
  5566. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5567. fi
  5568. else
  5569. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5570. fi
  5571. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5573. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5574. if ${lt_cv_path_mainfest_tool+:} false; then :
  5575. $as_echo_n "(cached) " >&6
  5576. else
  5577. lt_cv_path_mainfest_tool=no
  5578. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5579. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5580. cat conftest.err >&5
  5581. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5582. lt_cv_path_mainfest_tool=yes
  5583. fi
  5584. rm -f conftest*
  5585. fi
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5587. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5588. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5589. MANIFEST_TOOL=:
  5590. fi
  5591. case $host_os in
  5592. rhapsody* | darwin*)
  5593. if test -n "$ac_tool_prefix"; then
  5594. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5595. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5597. $as_echo_n "checking for $ac_word... " >&6; }
  5598. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5599. $as_echo_n "(cached) " >&6
  5600. else
  5601. if test -n "$DSYMUTIL"; then
  5602. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5603. else
  5604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5605. for as_dir in $PATH
  5606. do
  5607. IFS=$as_save_IFS
  5608. test -z "$as_dir" && as_dir=.
  5609. for ac_exec_ext in '' $ac_executable_extensions; do
  5610. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5611. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5613. break 2
  5614. fi
  5615. done
  5616. done
  5617. IFS=$as_save_IFS
  5618. fi
  5619. fi
  5620. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5621. if test -n "$DSYMUTIL"; then
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5623. $as_echo "$DSYMUTIL" >&6; }
  5624. else
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5626. $as_echo "no" >&6; }
  5627. fi
  5628. fi
  5629. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5630. ac_ct_DSYMUTIL=$DSYMUTIL
  5631. # Extract the first word of "dsymutil", so it can be a program name with args.
  5632. set dummy dsymutil; ac_word=$2
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5634. $as_echo_n "checking for $ac_word... " >&6; }
  5635. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5636. $as_echo_n "(cached) " >&6
  5637. else
  5638. if test -n "$ac_ct_DSYMUTIL"; then
  5639. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5640. else
  5641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5642. for as_dir in $PATH
  5643. do
  5644. IFS=$as_save_IFS
  5645. test -z "$as_dir" && as_dir=.
  5646. for ac_exec_ext in '' $ac_executable_extensions; do
  5647. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5648. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5650. break 2
  5651. fi
  5652. done
  5653. done
  5654. IFS=$as_save_IFS
  5655. fi
  5656. fi
  5657. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5658. if test -n "$ac_ct_DSYMUTIL"; then
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5660. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5661. else
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5663. $as_echo "no" >&6; }
  5664. fi
  5665. if test "x$ac_ct_DSYMUTIL" = x; then
  5666. DSYMUTIL=":"
  5667. else
  5668. case $cross_compiling:$ac_tool_warned in
  5669. yes:)
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5671. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5672. ac_tool_warned=yes ;;
  5673. esac
  5674. DSYMUTIL=$ac_ct_DSYMUTIL
  5675. fi
  5676. else
  5677. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5678. fi
  5679. if test -n "$ac_tool_prefix"; then
  5680. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5681. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5683. $as_echo_n "checking for $ac_word... " >&6; }
  5684. if ${ac_cv_prog_NMEDIT+:} false; then :
  5685. $as_echo_n "(cached) " >&6
  5686. else
  5687. if test -n "$NMEDIT"; then
  5688. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5689. else
  5690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5691. for as_dir in $PATH
  5692. do
  5693. IFS=$as_save_IFS
  5694. test -z "$as_dir" && as_dir=.
  5695. for ac_exec_ext in '' $ac_executable_extensions; do
  5696. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5697. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5699. break 2
  5700. fi
  5701. done
  5702. done
  5703. IFS=$as_save_IFS
  5704. fi
  5705. fi
  5706. NMEDIT=$ac_cv_prog_NMEDIT
  5707. if test -n "$NMEDIT"; then
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5709. $as_echo "$NMEDIT" >&6; }
  5710. else
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5712. $as_echo "no" >&6; }
  5713. fi
  5714. fi
  5715. if test -z "$ac_cv_prog_NMEDIT"; then
  5716. ac_ct_NMEDIT=$NMEDIT
  5717. # Extract the first word of "nmedit", so it can be a program name with args.
  5718. set dummy nmedit; ac_word=$2
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5720. $as_echo_n "checking for $ac_word... " >&6; }
  5721. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5722. $as_echo_n "(cached) " >&6
  5723. else
  5724. if test -n "$ac_ct_NMEDIT"; then
  5725. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5726. else
  5727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5728. for as_dir in $PATH
  5729. do
  5730. IFS=$as_save_IFS
  5731. test -z "$as_dir" && as_dir=.
  5732. for ac_exec_ext in '' $ac_executable_extensions; do
  5733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5734. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5736. break 2
  5737. fi
  5738. done
  5739. done
  5740. IFS=$as_save_IFS
  5741. fi
  5742. fi
  5743. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5744. if test -n "$ac_ct_NMEDIT"; then
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5746. $as_echo "$ac_ct_NMEDIT" >&6; }
  5747. else
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5749. $as_echo "no" >&6; }
  5750. fi
  5751. if test "x$ac_ct_NMEDIT" = x; then
  5752. NMEDIT=":"
  5753. else
  5754. case $cross_compiling:$ac_tool_warned in
  5755. yes:)
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5757. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5758. ac_tool_warned=yes ;;
  5759. esac
  5760. NMEDIT=$ac_ct_NMEDIT
  5761. fi
  5762. else
  5763. NMEDIT="$ac_cv_prog_NMEDIT"
  5764. fi
  5765. if test -n "$ac_tool_prefix"; then
  5766. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5767. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5769. $as_echo_n "checking for $ac_word... " >&6; }
  5770. if ${ac_cv_prog_LIPO+:} false; then :
  5771. $as_echo_n "(cached) " >&6
  5772. else
  5773. if test -n "$LIPO"; then
  5774. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5775. else
  5776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5777. for as_dir in $PATH
  5778. do
  5779. IFS=$as_save_IFS
  5780. test -z "$as_dir" && as_dir=.
  5781. for ac_exec_ext in '' $ac_executable_extensions; do
  5782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5783. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5785. break 2
  5786. fi
  5787. done
  5788. done
  5789. IFS=$as_save_IFS
  5790. fi
  5791. fi
  5792. LIPO=$ac_cv_prog_LIPO
  5793. if test -n "$LIPO"; then
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5795. $as_echo "$LIPO" >&6; }
  5796. else
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5798. $as_echo "no" >&6; }
  5799. fi
  5800. fi
  5801. if test -z "$ac_cv_prog_LIPO"; then
  5802. ac_ct_LIPO=$LIPO
  5803. # Extract the first word of "lipo", so it can be a program name with args.
  5804. set dummy lipo; ac_word=$2
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5806. $as_echo_n "checking for $ac_word... " >&6; }
  5807. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5808. $as_echo_n "(cached) " >&6
  5809. else
  5810. if test -n "$ac_ct_LIPO"; then
  5811. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5812. else
  5813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5814. for as_dir in $PATH
  5815. do
  5816. IFS=$as_save_IFS
  5817. test -z "$as_dir" && as_dir=.
  5818. for ac_exec_ext in '' $ac_executable_extensions; do
  5819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5820. ac_cv_prog_ac_ct_LIPO="lipo"
  5821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5822. break 2
  5823. fi
  5824. done
  5825. done
  5826. IFS=$as_save_IFS
  5827. fi
  5828. fi
  5829. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5830. if test -n "$ac_ct_LIPO"; then
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5832. $as_echo "$ac_ct_LIPO" >&6; }
  5833. else
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5835. $as_echo "no" >&6; }
  5836. fi
  5837. if test "x$ac_ct_LIPO" = x; then
  5838. LIPO=":"
  5839. else
  5840. case $cross_compiling:$ac_tool_warned in
  5841. yes:)
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5844. ac_tool_warned=yes ;;
  5845. esac
  5846. LIPO=$ac_ct_LIPO
  5847. fi
  5848. else
  5849. LIPO="$ac_cv_prog_LIPO"
  5850. fi
  5851. if test -n "$ac_tool_prefix"; then
  5852. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5853. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5855. $as_echo_n "checking for $ac_word... " >&6; }
  5856. if ${ac_cv_prog_OTOOL+:} false; then :
  5857. $as_echo_n "(cached) " >&6
  5858. else
  5859. if test -n "$OTOOL"; then
  5860. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5861. else
  5862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5863. for as_dir in $PATH
  5864. do
  5865. IFS=$as_save_IFS
  5866. test -z "$as_dir" && as_dir=.
  5867. for ac_exec_ext in '' $ac_executable_extensions; do
  5868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5869. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5871. break 2
  5872. fi
  5873. done
  5874. done
  5875. IFS=$as_save_IFS
  5876. fi
  5877. fi
  5878. OTOOL=$ac_cv_prog_OTOOL
  5879. if test -n "$OTOOL"; then
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5881. $as_echo "$OTOOL" >&6; }
  5882. else
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5884. $as_echo "no" >&6; }
  5885. fi
  5886. fi
  5887. if test -z "$ac_cv_prog_OTOOL"; then
  5888. ac_ct_OTOOL=$OTOOL
  5889. # Extract the first word of "otool", so it can be a program name with args.
  5890. set dummy otool; ac_word=$2
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5892. $as_echo_n "checking for $ac_word... " >&6; }
  5893. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5894. $as_echo_n "(cached) " >&6
  5895. else
  5896. if test -n "$ac_ct_OTOOL"; then
  5897. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5898. else
  5899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5900. for as_dir in $PATH
  5901. do
  5902. IFS=$as_save_IFS
  5903. test -z "$as_dir" && as_dir=.
  5904. for ac_exec_ext in '' $ac_executable_extensions; do
  5905. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5906. ac_cv_prog_ac_ct_OTOOL="otool"
  5907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5908. break 2
  5909. fi
  5910. done
  5911. done
  5912. IFS=$as_save_IFS
  5913. fi
  5914. fi
  5915. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5916. if test -n "$ac_ct_OTOOL"; then
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5918. $as_echo "$ac_ct_OTOOL" >&6; }
  5919. else
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5921. $as_echo "no" >&6; }
  5922. fi
  5923. if test "x$ac_ct_OTOOL" = x; then
  5924. OTOOL=":"
  5925. else
  5926. case $cross_compiling:$ac_tool_warned in
  5927. yes:)
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5929. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5930. ac_tool_warned=yes ;;
  5931. esac
  5932. OTOOL=$ac_ct_OTOOL
  5933. fi
  5934. else
  5935. OTOOL="$ac_cv_prog_OTOOL"
  5936. fi
  5937. if test -n "$ac_tool_prefix"; then
  5938. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5939. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5941. $as_echo_n "checking for $ac_word... " >&6; }
  5942. if ${ac_cv_prog_OTOOL64+:} false; then :
  5943. $as_echo_n "(cached) " >&6
  5944. else
  5945. if test -n "$OTOOL64"; then
  5946. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5947. else
  5948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5949. for as_dir in $PATH
  5950. do
  5951. IFS=$as_save_IFS
  5952. test -z "$as_dir" && as_dir=.
  5953. for ac_exec_ext in '' $ac_executable_extensions; do
  5954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5955. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5957. break 2
  5958. fi
  5959. done
  5960. done
  5961. IFS=$as_save_IFS
  5962. fi
  5963. fi
  5964. OTOOL64=$ac_cv_prog_OTOOL64
  5965. if test -n "$OTOOL64"; then
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5967. $as_echo "$OTOOL64" >&6; }
  5968. else
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5970. $as_echo "no" >&6; }
  5971. fi
  5972. fi
  5973. if test -z "$ac_cv_prog_OTOOL64"; then
  5974. ac_ct_OTOOL64=$OTOOL64
  5975. # Extract the first word of "otool64", so it can be a program name with args.
  5976. set dummy otool64; ac_word=$2
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5978. $as_echo_n "checking for $ac_word... " >&6; }
  5979. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5980. $as_echo_n "(cached) " >&6
  5981. else
  5982. if test -n "$ac_ct_OTOOL64"; then
  5983. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5984. else
  5985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5986. for as_dir in $PATH
  5987. do
  5988. IFS=$as_save_IFS
  5989. test -z "$as_dir" && as_dir=.
  5990. for ac_exec_ext in '' $ac_executable_extensions; do
  5991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5992. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5994. break 2
  5995. fi
  5996. done
  5997. done
  5998. IFS=$as_save_IFS
  5999. fi
  6000. fi
  6001. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6002. if test -n "$ac_ct_OTOOL64"; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6004. $as_echo "$ac_ct_OTOOL64" >&6; }
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6007. $as_echo "no" >&6; }
  6008. fi
  6009. if test "x$ac_ct_OTOOL64" = x; then
  6010. OTOOL64=":"
  6011. else
  6012. case $cross_compiling:$ac_tool_warned in
  6013. yes:)
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6015. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6016. ac_tool_warned=yes ;;
  6017. esac
  6018. OTOOL64=$ac_ct_OTOOL64
  6019. fi
  6020. else
  6021. OTOOL64="$ac_cv_prog_OTOOL64"
  6022. fi
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6024. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6025. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. lt_cv_apple_cc_single_mod=no
  6029. if test -z "${LT_MULTI_MODULE}"; then
  6030. # By default we will add the -single_module flag. You can override
  6031. # by either setting the environment variable LT_MULTI_MODULE
  6032. # non-empty at configure time, or by adding -multi_module to the
  6033. # link flags.
  6034. rm -rf libconftest.dylib*
  6035. echo "int foo(void){return 1;}" > conftest.c
  6036. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6037. -dynamiclib -Wl,-single_module conftest.c" >&5
  6038. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6039. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6040. _lt_result=$?
  6041. # If there is a non-empty error log, and "single_module"
  6042. # appears in it, assume the flag caused a linker warning
  6043. if test -s conftest.err && $GREP single_module conftest.err; then
  6044. cat conftest.err >&5
  6045. # Otherwise, if the output was created with a 0 exit code from
  6046. # the compiler, it worked.
  6047. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6048. lt_cv_apple_cc_single_mod=yes
  6049. else
  6050. cat conftest.err >&5
  6051. fi
  6052. rm -rf libconftest.dylib*
  6053. rm -f conftest.*
  6054. fi
  6055. fi
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6057. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6059. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6060. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6061. $as_echo_n "(cached) " >&6
  6062. else
  6063. lt_cv_ld_exported_symbols_list=no
  6064. save_LDFLAGS=$LDFLAGS
  6065. echo "_main" > conftest.sym
  6066. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6068. /* end confdefs.h. */
  6069. int
  6070. main ()
  6071. {
  6072. ;
  6073. return 0;
  6074. }
  6075. _ACEOF
  6076. if ac_fn_c_try_link "$LINENO"; then :
  6077. lt_cv_ld_exported_symbols_list=yes
  6078. else
  6079. lt_cv_ld_exported_symbols_list=no
  6080. fi
  6081. rm -f core conftest.err conftest.$ac_objext \
  6082. conftest$ac_exeext conftest.$ac_ext
  6083. LDFLAGS="$save_LDFLAGS"
  6084. fi
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6086. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6088. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6089. if ${lt_cv_ld_force_load+:} false; then :
  6090. $as_echo_n "(cached) " >&6
  6091. else
  6092. lt_cv_ld_force_load=no
  6093. cat > conftest.c << _LT_EOF
  6094. int forced_loaded() { return 2;}
  6095. _LT_EOF
  6096. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6097. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6098. echo "$AR cru libconftest.a conftest.o" >&5
  6099. $AR cru libconftest.a conftest.o 2>&5
  6100. echo "$RANLIB libconftest.a" >&5
  6101. $RANLIB libconftest.a 2>&5
  6102. cat > conftest.c << _LT_EOF
  6103. int main() { return 0;}
  6104. _LT_EOF
  6105. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6106. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6107. _lt_result=$?
  6108. if test -s conftest.err && $GREP force_load conftest.err; then
  6109. cat conftest.err >&5
  6110. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6111. lt_cv_ld_force_load=yes
  6112. else
  6113. cat conftest.err >&5
  6114. fi
  6115. rm -f conftest.err libconftest.a conftest conftest.c
  6116. rm -rf conftest.dSYM
  6117. fi
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6119. $as_echo "$lt_cv_ld_force_load" >&6; }
  6120. case $host_os in
  6121. rhapsody* | darwin1.[012])
  6122. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6123. darwin1.*)
  6124. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6125. darwin*) # darwin 5.x on
  6126. # if running on 10.5 or later, the deployment target defaults
  6127. # to the OS version, if on x86, and 10.4, the deployment
  6128. # target defaults to 10.4. Don't you love it?
  6129. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6130. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6131. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6132. 10.[012]*)
  6133. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6134. 10.*)
  6135. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6136. esac
  6137. ;;
  6138. esac
  6139. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6140. _lt_dar_single_mod='$single_module'
  6141. fi
  6142. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6143. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6144. else
  6145. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6146. fi
  6147. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6148. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6149. else
  6150. _lt_dsymutil=
  6151. fi
  6152. ;;
  6153. esac
  6154. ac_ext=c
  6155. ac_cpp='$CPP $CPPFLAGS'
  6156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6160. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6161. # On Suns, sometimes $CPP names a directory.
  6162. if test -n "$CPP" && test -d "$CPP"; then
  6163. CPP=
  6164. fi
  6165. if test -z "$CPP"; then
  6166. if ${ac_cv_prog_CPP+:} false; then :
  6167. $as_echo_n "(cached) " >&6
  6168. else
  6169. # Double quotes because CPP needs to be expanded
  6170. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6171. do
  6172. ac_preproc_ok=false
  6173. for ac_c_preproc_warn_flag in '' yes
  6174. do
  6175. # Use a header file that comes with gcc, so configuring glibc
  6176. # with a fresh cross-compiler works.
  6177. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6178. # <limits.h> exists even on freestanding compilers.
  6179. # On the NeXT, cc -E runs the code through the compiler's parser,
  6180. # not just through cpp. "Syntax error" is here to catch this case.
  6181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6182. /* end confdefs.h. */
  6183. #ifdef __STDC__
  6184. # include <limits.h>
  6185. #else
  6186. # include <assert.h>
  6187. #endif
  6188. Syntax error
  6189. _ACEOF
  6190. if ac_fn_c_try_cpp "$LINENO"; then :
  6191. else
  6192. # Broken: fails on valid input.
  6193. continue
  6194. fi
  6195. rm -f conftest.err conftest.i conftest.$ac_ext
  6196. # OK, works on sane cases. Now check whether nonexistent headers
  6197. # can be detected and how.
  6198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6199. /* end confdefs.h. */
  6200. #include <ac_nonexistent.h>
  6201. _ACEOF
  6202. if ac_fn_c_try_cpp "$LINENO"; then :
  6203. # Broken: success on invalid input.
  6204. continue
  6205. else
  6206. # Passes both tests.
  6207. ac_preproc_ok=:
  6208. break
  6209. fi
  6210. rm -f conftest.err conftest.i conftest.$ac_ext
  6211. done
  6212. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6213. rm -f conftest.i conftest.err conftest.$ac_ext
  6214. if $ac_preproc_ok; then :
  6215. break
  6216. fi
  6217. done
  6218. ac_cv_prog_CPP=$CPP
  6219. fi
  6220. CPP=$ac_cv_prog_CPP
  6221. else
  6222. ac_cv_prog_CPP=$CPP
  6223. fi
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6225. $as_echo "$CPP" >&6; }
  6226. ac_preproc_ok=false
  6227. for ac_c_preproc_warn_flag in '' yes
  6228. do
  6229. # Use a header file that comes with gcc, so configuring glibc
  6230. # with a fresh cross-compiler works.
  6231. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6232. # <limits.h> exists even on freestanding compilers.
  6233. # On the NeXT, cc -E runs the code through the compiler's parser,
  6234. # not just through cpp. "Syntax error" is here to catch this case.
  6235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6236. /* end confdefs.h. */
  6237. #ifdef __STDC__
  6238. # include <limits.h>
  6239. #else
  6240. # include <assert.h>
  6241. #endif
  6242. Syntax error
  6243. _ACEOF
  6244. if ac_fn_c_try_cpp "$LINENO"; then :
  6245. else
  6246. # Broken: fails on valid input.
  6247. continue
  6248. fi
  6249. rm -f conftest.err conftest.i conftest.$ac_ext
  6250. # OK, works on sane cases. Now check whether nonexistent headers
  6251. # can be detected and how.
  6252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6253. /* end confdefs.h. */
  6254. #include <ac_nonexistent.h>
  6255. _ACEOF
  6256. if ac_fn_c_try_cpp "$LINENO"; then :
  6257. # Broken: success on invalid input.
  6258. continue
  6259. else
  6260. # Passes both tests.
  6261. ac_preproc_ok=:
  6262. break
  6263. fi
  6264. rm -f conftest.err conftest.i conftest.$ac_ext
  6265. done
  6266. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6267. rm -f conftest.i conftest.err conftest.$ac_ext
  6268. if $ac_preproc_ok; then :
  6269. else
  6270. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6271. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6272. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6273. See \`config.log' for more details" "$LINENO" 5; }
  6274. fi
  6275. ac_ext=c
  6276. ac_cpp='$CPP $CPPFLAGS'
  6277. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6278. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6279. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6281. $as_echo_n "checking for ANSI C header files... " >&6; }
  6282. if ${ac_cv_header_stdc+:} false; then :
  6283. $as_echo_n "(cached) " >&6
  6284. else
  6285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6286. /* end confdefs.h. */
  6287. #include <stdlib.h>
  6288. #include <stdarg.h>
  6289. #include <string.h>
  6290. #include <float.h>
  6291. int
  6292. main ()
  6293. {
  6294. ;
  6295. return 0;
  6296. }
  6297. _ACEOF
  6298. if ac_fn_c_try_compile "$LINENO"; then :
  6299. ac_cv_header_stdc=yes
  6300. else
  6301. ac_cv_header_stdc=no
  6302. fi
  6303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6304. if test $ac_cv_header_stdc = yes; then
  6305. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6307. /* end confdefs.h. */
  6308. #include <string.h>
  6309. _ACEOF
  6310. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6311. $EGREP "memchr" >/dev/null 2>&1; then :
  6312. else
  6313. ac_cv_header_stdc=no
  6314. fi
  6315. rm -f conftest*
  6316. fi
  6317. if test $ac_cv_header_stdc = yes; then
  6318. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6320. /* end confdefs.h. */
  6321. #include <stdlib.h>
  6322. _ACEOF
  6323. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6324. $EGREP "free" >/dev/null 2>&1; then :
  6325. else
  6326. ac_cv_header_stdc=no
  6327. fi
  6328. rm -f conftest*
  6329. fi
  6330. if test $ac_cv_header_stdc = yes; then
  6331. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6332. if test "$cross_compiling" = yes; then :
  6333. :
  6334. else
  6335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6336. /* end confdefs.h. */
  6337. #include <ctype.h>
  6338. #include <stdlib.h>
  6339. #if ((' ' & 0x0FF) == 0x020)
  6340. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6341. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6342. #else
  6343. # define ISLOWER(c) \
  6344. (('a' <= (c) && (c) <= 'i') \
  6345. || ('j' <= (c) && (c) <= 'r') \
  6346. || ('s' <= (c) && (c) <= 'z'))
  6347. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6348. #endif
  6349. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6350. int
  6351. main ()
  6352. {
  6353. int i;
  6354. for (i = 0; i < 256; i++)
  6355. if (XOR (islower (i), ISLOWER (i))
  6356. || toupper (i) != TOUPPER (i))
  6357. return 2;
  6358. return 0;
  6359. }
  6360. _ACEOF
  6361. if ac_fn_c_try_run "$LINENO"; then :
  6362. else
  6363. ac_cv_header_stdc=no
  6364. fi
  6365. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6366. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6367. fi
  6368. fi
  6369. fi
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6371. $as_echo "$ac_cv_header_stdc" >&6; }
  6372. if test $ac_cv_header_stdc = yes; then
  6373. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6374. fi
  6375. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6376. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6377. inttypes.h stdint.h unistd.h
  6378. do :
  6379. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6380. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6381. "
  6382. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6383. cat >>confdefs.h <<_ACEOF
  6384. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6385. _ACEOF
  6386. fi
  6387. done
  6388. for ac_header in dlfcn.h
  6389. do :
  6390. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6391. "
  6392. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6393. cat >>confdefs.h <<_ACEOF
  6394. #define HAVE_DLFCN_H 1
  6395. _ACEOF
  6396. fi
  6397. done
  6398. # Set options
  6399. enable_win32_dll=yes
  6400. case $host in
  6401. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6402. if test -n "$ac_tool_prefix"; then
  6403. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6404. set dummy ${ac_tool_prefix}as; ac_word=$2
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6406. $as_echo_n "checking for $ac_word... " >&6; }
  6407. if ${ac_cv_prog_AS+:} false; then :
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. if test -n "$AS"; then
  6411. ac_cv_prog_AS="$AS" # Let the user override the test.
  6412. else
  6413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6414. for as_dir in $PATH
  6415. do
  6416. IFS=$as_save_IFS
  6417. test -z "$as_dir" && as_dir=.
  6418. for ac_exec_ext in '' $ac_executable_extensions; do
  6419. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6420. ac_cv_prog_AS="${ac_tool_prefix}as"
  6421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6422. break 2
  6423. fi
  6424. done
  6425. done
  6426. IFS=$as_save_IFS
  6427. fi
  6428. fi
  6429. AS=$ac_cv_prog_AS
  6430. if test -n "$AS"; then
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6432. $as_echo "$AS" >&6; }
  6433. else
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6435. $as_echo "no" >&6; }
  6436. fi
  6437. fi
  6438. if test -z "$ac_cv_prog_AS"; then
  6439. ac_ct_AS=$AS
  6440. # Extract the first word of "as", so it can be a program name with args.
  6441. set dummy as; ac_word=$2
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6443. $as_echo_n "checking for $ac_word... " >&6; }
  6444. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6445. $as_echo_n "(cached) " >&6
  6446. else
  6447. if test -n "$ac_ct_AS"; then
  6448. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6449. else
  6450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6451. for as_dir in $PATH
  6452. do
  6453. IFS=$as_save_IFS
  6454. test -z "$as_dir" && as_dir=.
  6455. for ac_exec_ext in '' $ac_executable_extensions; do
  6456. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6457. ac_cv_prog_ac_ct_AS="as"
  6458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6459. break 2
  6460. fi
  6461. done
  6462. done
  6463. IFS=$as_save_IFS
  6464. fi
  6465. fi
  6466. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6467. if test -n "$ac_ct_AS"; then
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6469. $as_echo "$ac_ct_AS" >&6; }
  6470. else
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6472. $as_echo "no" >&6; }
  6473. fi
  6474. if test "x$ac_ct_AS" = x; then
  6475. AS="false"
  6476. else
  6477. case $cross_compiling:$ac_tool_warned in
  6478. yes:)
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6480. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6481. ac_tool_warned=yes ;;
  6482. esac
  6483. AS=$ac_ct_AS
  6484. fi
  6485. else
  6486. AS="$ac_cv_prog_AS"
  6487. fi
  6488. if test -n "$ac_tool_prefix"; then
  6489. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6490. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6492. $as_echo_n "checking for $ac_word... " >&6; }
  6493. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6494. $as_echo_n "(cached) " >&6
  6495. else
  6496. if test -n "$DLLTOOL"; then
  6497. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6498. else
  6499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6500. for as_dir in $PATH
  6501. do
  6502. IFS=$as_save_IFS
  6503. test -z "$as_dir" && as_dir=.
  6504. for ac_exec_ext in '' $ac_executable_extensions; do
  6505. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6506. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6508. break 2
  6509. fi
  6510. done
  6511. done
  6512. IFS=$as_save_IFS
  6513. fi
  6514. fi
  6515. DLLTOOL=$ac_cv_prog_DLLTOOL
  6516. if test -n "$DLLTOOL"; then
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6518. $as_echo "$DLLTOOL" >&6; }
  6519. else
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6521. $as_echo "no" >&6; }
  6522. fi
  6523. fi
  6524. if test -z "$ac_cv_prog_DLLTOOL"; then
  6525. ac_ct_DLLTOOL=$DLLTOOL
  6526. # Extract the first word of "dlltool", so it can be a program name with args.
  6527. set dummy dlltool; ac_word=$2
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6529. $as_echo_n "checking for $ac_word... " >&6; }
  6530. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6531. $as_echo_n "(cached) " >&6
  6532. else
  6533. if test -n "$ac_ct_DLLTOOL"; then
  6534. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6535. else
  6536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6537. for as_dir in $PATH
  6538. do
  6539. IFS=$as_save_IFS
  6540. test -z "$as_dir" && as_dir=.
  6541. for ac_exec_ext in '' $ac_executable_extensions; do
  6542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6543. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6545. break 2
  6546. fi
  6547. done
  6548. done
  6549. IFS=$as_save_IFS
  6550. fi
  6551. fi
  6552. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6553. if test -n "$ac_ct_DLLTOOL"; then
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6555. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6556. else
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6558. $as_echo "no" >&6; }
  6559. fi
  6560. if test "x$ac_ct_DLLTOOL" = x; then
  6561. DLLTOOL="false"
  6562. else
  6563. case $cross_compiling:$ac_tool_warned in
  6564. yes:)
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6566. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6567. ac_tool_warned=yes ;;
  6568. esac
  6569. DLLTOOL=$ac_ct_DLLTOOL
  6570. fi
  6571. else
  6572. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6573. fi
  6574. if test -n "$ac_tool_prefix"; then
  6575. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6576. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6578. $as_echo_n "checking for $ac_word... " >&6; }
  6579. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6580. $as_echo_n "(cached) " >&6
  6581. else
  6582. if test -n "$OBJDUMP"; then
  6583. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6584. else
  6585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6586. for as_dir in $PATH
  6587. do
  6588. IFS=$as_save_IFS
  6589. test -z "$as_dir" && as_dir=.
  6590. for ac_exec_ext in '' $ac_executable_extensions; do
  6591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6592. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6594. break 2
  6595. fi
  6596. done
  6597. done
  6598. IFS=$as_save_IFS
  6599. fi
  6600. fi
  6601. OBJDUMP=$ac_cv_prog_OBJDUMP
  6602. if test -n "$OBJDUMP"; then
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6604. $as_echo "$OBJDUMP" >&6; }
  6605. else
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6607. $as_echo "no" >&6; }
  6608. fi
  6609. fi
  6610. if test -z "$ac_cv_prog_OBJDUMP"; then
  6611. ac_ct_OBJDUMP=$OBJDUMP
  6612. # Extract the first word of "objdump", so it can be a program name with args.
  6613. set dummy objdump; ac_word=$2
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6615. $as_echo_n "checking for $ac_word... " >&6; }
  6616. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6617. $as_echo_n "(cached) " >&6
  6618. else
  6619. if test -n "$ac_ct_OBJDUMP"; then
  6620. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6621. else
  6622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6623. for as_dir in $PATH
  6624. do
  6625. IFS=$as_save_IFS
  6626. test -z "$as_dir" && as_dir=.
  6627. for ac_exec_ext in '' $ac_executable_extensions; do
  6628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6629. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6631. break 2
  6632. fi
  6633. done
  6634. done
  6635. IFS=$as_save_IFS
  6636. fi
  6637. fi
  6638. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6639. if test -n "$ac_ct_OBJDUMP"; then
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6641. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6642. else
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6644. $as_echo "no" >&6; }
  6645. fi
  6646. if test "x$ac_ct_OBJDUMP" = x; then
  6647. OBJDUMP="false"
  6648. else
  6649. case $cross_compiling:$ac_tool_warned in
  6650. yes:)
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6652. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6653. ac_tool_warned=yes ;;
  6654. esac
  6655. OBJDUMP=$ac_ct_OBJDUMP
  6656. fi
  6657. else
  6658. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6659. fi
  6660. ;;
  6661. esac
  6662. test -z "$AS" && AS=as
  6663. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6664. test -z "$OBJDUMP" && OBJDUMP=objdump
  6665. enable_dlopen=no
  6666. # Check whether --enable-shared was given.
  6667. if test "${enable_shared+set}" = set; then :
  6668. enableval=$enable_shared; p=${PACKAGE-default}
  6669. case $enableval in
  6670. yes) enable_shared=yes ;;
  6671. no) enable_shared=no ;;
  6672. *)
  6673. enable_shared=no
  6674. # Look at the argument we got. We use all the common list separators.
  6675. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6676. for pkg in $enableval; do
  6677. IFS="$lt_save_ifs"
  6678. if test "X$pkg" = "X$p"; then
  6679. enable_shared=yes
  6680. fi
  6681. done
  6682. IFS="$lt_save_ifs"
  6683. ;;
  6684. esac
  6685. else
  6686. enable_shared=yes
  6687. fi
  6688. # Check whether --enable-static was given.
  6689. if test "${enable_static+set}" = set; then :
  6690. enableval=$enable_static; p=${PACKAGE-default}
  6691. case $enableval in
  6692. yes) enable_static=yes ;;
  6693. no) enable_static=no ;;
  6694. *)
  6695. enable_static=no
  6696. # Look at the argument we got. We use all the common list separators.
  6697. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6698. for pkg in $enableval; do
  6699. IFS="$lt_save_ifs"
  6700. if test "X$pkg" = "X$p"; then
  6701. enable_static=yes
  6702. fi
  6703. done
  6704. IFS="$lt_save_ifs"
  6705. ;;
  6706. esac
  6707. else
  6708. enable_static=yes
  6709. fi
  6710. # Check whether --with-pic was given.
  6711. if test "${with_pic+set}" = set; then :
  6712. withval=$with_pic; lt_p=${PACKAGE-default}
  6713. case $withval in
  6714. yes|no) pic_mode=$withval ;;
  6715. *)
  6716. pic_mode=default
  6717. # Look at the argument we got. We use all the common list separators.
  6718. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6719. for lt_pkg in $withval; do
  6720. IFS="$lt_save_ifs"
  6721. if test "X$lt_pkg" = "X$lt_p"; then
  6722. pic_mode=yes
  6723. fi
  6724. done
  6725. IFS="$lt_save_ifs"
  6726. ;;
  6727. esac
  6728. else
  6729. pic_mode=default
  6730. fi
  6731. test -z "$pic_mode" && pic_mode=default
  6732. # Check whether --enable-fast-install was given.
  6733. if test "${enable_fast_install+set}" = set; then :
  6734. enableval=$enable_fast_install; p=${PACKAGE-default}
  6735. case $enableval in
  6736. yes) enable_fast_install=yes ;;
  6737. no) enable_fast_install=no ;;
  6738. *)
  6739. enable_fast_install=no
  6740. # Look at the argument we got. We use all the common list separators.
  6741. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6742. for pkg in $enableval; do
  6743. IFS="$lt_save_ifs"
  6744. if test "X$pkg" = "X$p"; then
  6745. enable_fast_install=yes
  6746. fi
  6747. done
  6748. IFS="$lt_save_ifs"
  6749. ;;
  6750. esac
  6751. else
  6752. enable_fast_install=yes
  6753. fi
  6754. # This can be used to rebuild libtool when needed
  6755. LIBTOOL_DEPS="$ltmain"
  6756. # Always use our own libtool.
  6757. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6758. test -z "$LN_S" && LN_S="ln -s"
  6759. if test -n "${ZSH_VERSION+set}" ; then
  6760. setopt NO_GLOB_SUBST
  6761. fi
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6763. $as_echo_n "checking for objdir... " >&6; }
  6764. if ${lt_cv_objdir+:} false; then :
  6765. $as_echo_n "(cached) " >&6
  6766. else
  6767. rm -f .libs 2>/dev/null
  6768. mkdir .libs 2>/dev/null
  6769. if test -d .libs; then
  6770. lt_cv_objdir=.libs
  6771. else
  6772. # MS-DOS does not allow filenames that begin with a dot.
  6773. lt_cv_objdir=_libs
  6774. fi
  6775. rmdir .libs 2>/dev/null
  6776. fi
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6778. $as_echo "$lt_cv_objdir" >&6; }
  6779. objdir=$lt_cv_objdir
  6780. cat >>confdefs.h <<_ACEOF
  6781. #define LT_OBJDIR "$lt_cv_objdir/"
  6782. _ACEOF
  6783. case $host_os in
  6784. aix3*)
  6785. # AIX sometimes has problems with the GCC collect2 program. For some
  6786. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6787. # vanish in a puff of smoke.
  6788. if test "X${COLLECT_NAMES+set}" != Xset; then
  6789. COLLECT_NAMES=
  6790. export COLLECT_NAMES
  6791. fi
  6792. ;;
  6793. esac
  6794. # Global variables:
  6795. ofile=libtool
  6796. can_build_shared=yes
  6797. # All known linkers require a `.a' archive for static linking (except MSVC,
  6798. # which needs '.lib').
  6799. libext=a
  6800. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6801. old_CC="$CC"
  6802. old_CFLAGS="$CFLAGS"
  6803. # Set sane defaults for various variables
  6804. test -z "$CC" && CC=cc
  6805. test -z "$LTCC" && LTCC=$CC
  6806. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6807. test -z "$LD" && LD=ld
  6808. test -z "$ac_objext" && ac_objext=o
  6809. for cc_temp in $compiler""; do
  6810. case $cc_temp in
  6811. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6812. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6813. \-*) ;;
  6814. *) break;;
  6815. esac
  6816. done
  6817. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6818. # Only perform the check for file, if the check method requires it
  6819. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6820. case $deplibs_check_method in
  6821. file_magic*)
  6822. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6824. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6825. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6826. $as_echo_n "(cached) " >&6
  6827. else
  6828. case $MAGIC_CMD in
  6829. [\\/*] | ?:[\\/]*)
  6830. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6831. ;;
  6832. *)
  6833. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6834. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6835. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6836. for ac_dir in $ac_dummy; do
  6837. IFS="$lt_save_ifs"
  6838. test -z "$ac_dir" && ac_dir=.
  6839. if test -f $ac_dir/${ac_tool_prefix}file; then
  6840. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6841. if test -n "$file_magic_test_file"; then
  6842. case $deplibs_check_method in
  6843. "file_magic "*)
  6844. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6845. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6846. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6847. $EGREP "$file_magic_regex" > /dev/null; then
  6848. :
  6849. else
  6850. cat <<_LT_EOF 1>&2
  6851. *** Warning: the command libtool uses to detect shared libraries,
  6852. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6853. *** The result is that libtool may fail to recognize shared libraries
  6854. *** as such. This will affect the creation of libtool libraries that
  6855. *** depend on shared libraries, but programs linked with such libtool
  6856. *** libraries will work regardless of this problem. Nevertheless, you
  6857. *** may want to report the problem to your system manager and/or to
  6858. *** bug-libtool@gnu.org
  6859. _LT_EOF
  6860. fi ;;
  6861. esac
  6862. fi
  6863. break
  6864. fi
  6865. done
  6866. IFS="$lt_save_ifs"
  6867. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6868. ;;
  6869. esac
  6870. fi
  6871. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6872. if test -n "$MAGIC_CMD"; then
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6874. $as_echo "$MAGIC_CMD" >&6; }
  6875. else
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6877. $as_echo "no" >&6; }
  6878. fi
  6879. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6880. if test -n "$ac_tool_prefix"; then
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6882. $as_echo_n "checking for file... " >&6; }
  6883. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6884. $as_echo_n "(cached) " >&6
  6885. else
  6886. case $MAGIC_CMD in
  6887. [\\/*] | ?:[\\/]*)
  6888. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6889. ;;
  6890. *)
  6891. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6892. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6893. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6894. for ac_dir in $ac_dummy; do
  6895. IFS="$lt_save_ifs"
  6896. test -z "$ac_dir" && ac_dir=.
  6897. if test -f $ac_dir/file; then
  6898. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6899. if test -n "$file_magic_test_file"; then
  6900. case $deplibs_check_method in
  6901. "file_magic "*)
  6902. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6903. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6904. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6905. $EGREP "$file_magic_regex" > /dev/null; then
  6906. :
  6907. else
  6908. cat <<_LT_EOF 1>&2
  6909. *** Warning: the command libtool uses to detect shared libraries,
  6910. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6911. *** The result is that libtool may fail to recognize shared libraries
  6912. *** as such. This will affect the creation of libtool libraries that
  6913. *** depend on shared libraries, but programs linked with such libtool
  6914. *** libraries will work regardless of this problem. Nevertheless, you
  6915. *** may want to report the problem to your system manager and/or to
  6916. *** bug-libtool@gnu.org
  6917. _LT_EOF
  6918. fi ;;
  6919. esac
  6920. fi
  6921. break
  6922. fi
  6923. done
  6924. IFS="$lt_save_ifs"
  6925. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6926. ;;
  6927. esac
  6928. fi
  6929. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6930. if test -n "$MAGIC_CMD"; then
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6932. $as_echo "$MAGIC_CMD" >&6; }
  6933. else
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6935. $as_echo "no" >&6; }
  6936. fi
  6937. else
  6938. MAGIC_CMD=:
  6939. fi
  6940. fi
  6941. fi
  6942. ;;
  6943. esac
  6944. # Use C for the default configuration in the libtool script
  6945. lt_save_CC="$CC"
  6946. ac_ext=c
  6947. ac_cpp='$CPP $CPPFLAGS'
  6948. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6949. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6950. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6951. # Source file extension for C test sources.
  6952. ac_ext=c
  6953. # Object file extension for compiled C test sources.
  6954. objext=o
  6955. objext=$objext
  6956. # Code to be used in simple compile tests
  6957. lt_simple_compile_test_code="int some_variable = 0;"
  6958. # Code to be used in simple link tests
  6959. lt_simple_link_test_code='int main(){return(0);}'
  6960. # If no C compiler was specified, use CC.
  6961. LTCC=${LTCC-"$CC"}
  6962. # If no C compiler flags were specified, use CFLAGS.
  6963. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6964. # Allow CC to be a program name with arguments.
  6965. compiler=$CC
  6966. # Save the default compiler, since it gets overwritten when the other
  6967. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6968. compiler_DEFAULT=$CC
  6969. # save warnings/boilerplate of simple test code
  6970. ac_outfile=conftest.$ac_objext
  6971. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6972. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6973. _lt_compiler_boilerplate=`cat conftest.err`
  6974. $RM conftest*
  6975. ac_outfile=conftest.$ac_objext
  6976. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6977. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6978. _lt_linker_boilerplate=`cat conftest.err`
  6979. $RM -r conftest*
  6980. ## CAVEAT EMPTOR:
  6981. ## There is no encapsulation within the following macros, do not change
  6982. ## the running order or otherwise move them around unless you know exactly
  6983. ## what you are doing...
  6984. if test -n "$compiler"; then
  6985. lt_prog_compiler_no_builtin_flag=
  6986. if test "$GCC" = yes; then
  6987. case $cc_basename in
  6988. nvcc*)
  6989. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6990. *)
  6991. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6992. esac
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6994. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6995. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6996. $as_echo_n "(cached) " >&6
  6997. else
  6998. lt_cv_prog_compiler_rtti_exceptions=no
  6999. ac_outfile=conftest.$ac_objext
  7000. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7001. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7002. # Insert the option either (1) after the last *FLAGS variable, or
  7003. # (2) before a word containing "conftest.", or (3) at the end.
  7004. # Note that $ac_compile itself does not contain backslashes and begins
  7005. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7006. # The option is referenced via a variable to avoid confusing sed.
  7007. lt_compile=`echo "$ac_compile" | $SED \
  7008. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7009. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7010. -e 's:$: $lt_compiler_flag:'`
  7011. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7012. (eval "$lt_compile" 2>conftest.err)
  7013. ac_status=$?
  7014. cat conftest.err >&5
  7015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7016. if (exit $ac_status) && test -s "$ac_outfile"; then
  7017. # The compiler can only warn and ignore the option if not recognized
  7018. # So say no if there are warnings other than the usual output.
  7019. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7020. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7021. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7022. lt_cv_prog_compiler_rtti_exceptions=yes
  7023. fi
  7024. fi
  7025. $RM conftest*
  7026. fi
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7028. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7029. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7030. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7031. else
  7032. :
  7033. fi
  7034. fi
  7035. lt_prog_compiler_wl=
  7036. lt_prog_compiler_pic=
  7037. lt_prog_compiler_static=
  7038. if test "$GCC" = yes; then
  7039. lt_prog_compiler_wl='-Wl,'
  7040. lt_prog_compiler_static='-static'
  7041. case $host_os in
  7042. aix*)
  7043. # All AIX code is PIC.
  7044. if test "$host_cpu" = ia64; then
  7045. # AIX 5 now supports IA64 processor
  7046. lt_prog_compiler_static='-Bstatic'
  7047. fi
  7048. ;;
  7049. amigaos*)
  7050. case $host_cpu in
  7051. powerpc)
  7052. # see comment about AmigaOS4 .so support
  7053. lt_prog_compiler_pic='-fPIC'
  7054. ;;
  7055. m68k)
  7056. # FIXME: we need at least 68020 code to build shared libraries, but
  7057. # adding the `-m68020' flag to GCC prevents building anything better,
  7058. # like `-m68040'.
  7059. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7060. ;;
  7061. esac
  7062. ;;
  7063. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7064. # PIC is the default for these OSes.
  7065. ;;
  7066. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7067. # This hack is so that the source file can tell whether it is being
  7068. # built for inclusion in a dll (and should export symbols for example).
  7069. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7070. # (--disable-auto-import) libraries
  7071. lt_prog_compiler_pic='-DDLL_EXPORT'
  7072. ;;
  7073. darwin* | rhapsody*)
  7074. # PIC is the default on this platform
  7075. # Common symbols not allowed in MH_DYLIB files
  7076. lt_prog_compiler_pic='-fno-common'
  7077. ;;
  7078. haiku*)
  7079. # PIC is the default for Haiku.
  7080. # The "-static" flag exists, but is broken.
  7081. lt_prog_compiler_static=
  7082. ;;
  7083. hpux*)
  7084. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7085. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7086. # sets the default TLS model and affects inlining.
  7087. case $host_cpu in
  7088. hppa*64*)
  7089. # +Z the default
  7090. ;;
  7091. *)
  7092. lt_prog_compiler_pic='-fPIC'
  7093. ;;
  7094. esac
  7095. ;;
  7096. interix[3-9]*)
  7097. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7098. # Instead, we relocate shared libraries at runtime.
  7099. ;;
  7100. msdosdjgpp*)
  7101. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7102. # on systems that don't support them.
  7103. lt_prog_compiler_can_build_shared=no
  7104. enable_shared=no
  7105. ;;
  7106. *nto* | *qnx*)
  7107. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7108. # it will coredump.
  7109. lt_prog_compiler_pic='-fPIC -shared'
  7110. ;;
  7111. sysv4*MP*)
  7112. if test -d /usr/nec; then
  7113. lt_prog_compiler_pic=-Kconform_pic
  7114. fi
  7115. ;;
  7116. *)
  7117. lt_prog_compiler_pic='-fPIC'
  7118. ;;
  7119. esac
  7120. case $cc_basename in
  7121. nvcc*) # Cuda Compiler Driver 2.2
  7122. lt_prog_compiler_wl='-Xlinker '
  7123. if test -n "$lt_prog_compiler_pic"; then
  7124. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7125. fi
  7126. ;;
  7127. esac
  7128. else
  7129. # PORTME Check for flag to pass linker flags through the system compiler.
  7130. case $host_os in
  7131. aix*)
  7132. lt_prog_compiler_wl='-Wl,'
  7133. if test "$host_cpu" = ia64; then
  7134. # AIX 5 now supports IA64 processor
  7135. lt_prog_compiler_static='-Bstatic'
  7136. else
  7137. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7138. fi
  7139. ;;
  7140. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7141. # This hack is so that the source file can tell whether it is being
  7142. # built for inclusion in a dll (and should export symbols for example).
  7143. lt_prog_compiler_pic='-DDLL_EXPORT'
  7144. ;;
  7145. hpux9* | hpux10* | hpux11*)
  7146. lt_prog_compiler_wl='-Wl,'
  7147. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7148. # not for PA HP-UX.
  7149. case $host_cpu in
  7150. hppa*64*|ia64*)
  7151. # +Z the default
  7152. ;;
  7153. *)
  7154. lt_prog_compiler_pic='+Z'
  7155. ;;
  7156. esac
  7157. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7158. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7159. ;;
  7160. irix5* | irix6* | nonstopux*)
  7161. lt_prog_compiler_wl='-Wl,'
  7162. # PIC (with -KPIC) is the default.
  7163. lt_prog_compiler_static='-non_shared'
  7164. ;;
  7165. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7166. case $cc_basename in
  7167. # old Intel for x86_64 which still supported -KPIC.
  7168. ecc*)
  7169. lt_prog_compiler_wl='-Wl,'
  7170. lt_prog_compiler_pic='-KPIC'
  7171. lt_prog_compiler_static='-static'
  7172. ;;
  7173. # icc used to be incompatible with GCC.
  7174. # ICC 10 doesn't accept -KPIC any more.
  7175. icc* | ifort*)
  7176. lt_prog_compiler_wl='-Wl,'
  7177. lt_prog_compiler_pic='-fPIC'
  7178. lt_prog_compiler_static='-static'
  7179. ;;
  7180. # Lahey Fortran 8.1.
  7181. lf95*)
  7182. lt_prog_compiler_wl='-Wl,'
  7183. lt_prog_compiler_pic='--shared'
  7184. lt_prog_compiler_static='--static'
  7185. ;;
  7186. nagfor*)
  7187. # NAG Fortran compiler
  7188. lt_prog_compiler_wl='-Wl,-Wl,,'
  7189. lt_prog_compiler_pic='-PIC'
  7190. lt_prog_compiler_static='-Bstatic'
  7191. ;;
  7192. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7193. # Portland Group compilers (*not* the Pentium gcc compiler,
  7194. # which looks to be a dead project)
  7195. lt_prog_compiler_wl='-Wl,'
  7196. lt_prog_compiler_pic='-fpic'
  7197. lt_prog_compiler_static='-Bstatic'
  7198. ;;
  7199. ccc*)
  7200. lt_prog_compiler_wl='-Wl,'
  7201. # All Alpha code is PIC.
  7202. lt_prog_compiler_static='-non_shared'
  7203. ;;
  7204. xl* | bgxl* | bgf* | mpixl*)
  7205. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7206. lt_prog_compiler_wl='-Wl,'
  7207. lt_prog_compiler_pic='-qpic'
  7208. lt_prog_compiler_static='-qstaticlink'
  7209. ;;
  7210. *)
  7211. case `$CC -V 2>&1 | sed 5q` in
  7212. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7213. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7214. lt_prog_compiler_pic='-KPIC'
  7215. lt_prog_compiler_static='-Bstatic'
  7216. lt_prog_compiler_wl=''
  7217. ;;
  7218. *Sun\ F* | *Sun*Fortran*)
  7219. lt_prog_compiler_pic='-KPIC'
  7220. lt_prog_compiler_static='-Bstatic'
  7221. lt_prog_compiler_wl='-Qoption ld '
  7222. ;;
  7223. *Sun\ C*)
  7224. # Sun C 5.9
  7225. lt_prog_compiler_pic='-KPIC'
  7226. lt_prog_compiler_static='-Bstatic'
  7227. lt_prog_compiler_wl='-Wl,'
  7228. ;;
  7229. *Intel*\ [CF]*Compiler*)
  7230. lt_prog_compiler_wl='-Wl,'
  7231. lt_prog_compiler_pic='-fPIC'
  7232. lt_prog_compiler_static='-static'
  7233. ;;
  7234. *Portland\ Group*)
  7235. lt_prog_compiler_wl='-Wl,'
  7236. lt_prog_compiler_pic='-fpic'
  7237. lt_prog_compiler_static='-Bstatic'
  7238. ;;
  7239. esac
  7240. ;;
  7241. esac
  7242. ;;
  7243. newsos6)
  7244. lt_prog_compiler_pic='-KPIC'
  7245. lt_prog_compiler_static='-Bstatic'
  7246. ;;
  7247. *nto* | *qnx*)
  7248. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7249. # it will coredump.
  7250. lt_prog_compiler_pic='-fPIC -shared'
  7251. ;;
  7252. osf3* | osf4* | osf5*)
  7253. lt_prog_compiler_wl='-Wl,'
  7254. # All OSF/1 code is PIC.
  7255. lt_prog_compiler_static='-non_shared'
  7256. ;;
  7257. rdos*)
  7258. lt_prog_compiler_static='-non_shared'
  7259. ;;
  7260. solaris*)
  7261. lt_prog_compiler_pic='-KPIC'
  7262. lt_prog_compiler_static='-Bstatic'
  7263. case $cc_basename in
  7264. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7265. lt_prog_compiler_wl='-Qoption ld ';;
  7266. *)
  7267. lt_prog_compiler_wl='-Wl,';;
  7268. esac
  7269. ;;
  7270. sunos4*)
  7271. lt_prog_compiler_wl='-Qoption ld '
  7272. lt_prog_compiler_pic='-PIC'
  7273. lt_prog_compiler_static='-Bstatic'
  7274. ;;
  7275. sysv4 | sysv4.2uw2* | sysv4.3*)
  7276. lt_prog_compiler_wl='-Wl,'
  7277. lt_prog_compiler_pic='-KPIC'
  7278. lt_prog_compiler_static='-Bstatic'
  7279. ;;
  7280. sysv4*MP*)
  7281. if test -d /usr/nec ;then
  7282. lt_prog_compiler_pic='-Kconform_pic'
  7283. lt_prog_compiler_static='-Bstatic'
  7284. fi
  7285. ;;
  7286. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7287. lt_prog_compiler_wl='-Wl,'
  7288. lt_prog_compiler_pic='-KPIC'
  7289. lt_prog_compiler_static='-Bstatic'
  7290. ;;
  7291. unicos*)
  7292. lt_prog_compiler_wl='-Wl,'
  7293. lt_prog_compiler_can_build_shared=no
  7294. ;;
  7295. uts4*)
  7296. lt_prog_compiler_pic='-pic'
  7297. lt_prog_compiler_static='-Bstatic'
  7298. ;;
  7299. *)
  7300. lt_prog_compiler_can_build_shared=no
  7301. ;;
  7302. esac
  7303. fi
  7304. case $host_os in
  7305. # For platforms which do not support PIC, -DPIC is meaningless:
  7306. *djgpp*)
  7307. lt_prog_compiler_pic=
  7308. ;;
  7309. *)
  7310. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7311. ;;
  7312. esac
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7314. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7315. if ${lt_cv_prog_compiler_pic+:} false; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7319. fi
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7321. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7322. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7323. #
  7324. # Check to make sure the PIC flag actually works.
  7325. #
  7326. if test -n "$lt_prog_compiler_pic"; then
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7328. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7329. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7330. $as_echo_n "(cached) " >&6
  7331. else
  7332. lt_cv_prog_compiler_pic_works=no
  7333. ac_outfile=conftest.$ac_objext
  7334. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7335. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7336. # Insert the option either (1) after the last *FLAGS variable, or
  7337. # (2) before a word containing "conftest.", or (3) at the end.
  7338. # Note that $ac_compile itself does not contain backslashes and begins
  7339. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7340. # The option is referenced via a variable to avoid confusing sed.
  7341. lt_compile=`echo "$ac_compile" | $SED \
  7342. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7343. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7344. -e 's:$: $lt_compiler_flag:'`
  7345. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7346. (eval "$lt_compile" 2>conftest.err)
  7347. ac_status=$?
  7348. cat conftest.err >&5
  7349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7350. if (exit $ac_status) && test -s "$ac_outfile"; then
  7351. # The compiler can only warn and ignore the option if not recognized
  7352. # So say no if there are warnings other than the usual output.
  7353. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7354. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7355. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7356. lt_cv_prog_compiler_pic_works=yes
  7357. fi
  7358. fi
  7359. $RM conftest*
  7360. fi
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7362. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7363. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7364. case $lt_prog_compiler_pic in
  7365. "" | " "*) ;;
  7366. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7367. esac
  7368. else
  7369. lt_prog_compiler_pic=
  7370. lt_prog_compiler_can_build_shared=no
  7371. fi
  7372. fi
  7373. #
  7374. # Check to make sure the static flag actually works.
  7375. #
  7376. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7378. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7379. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7380. $as_echo_n "(cached) " >&6
  7381. else
  7382. lt_cv_prog_compiler_static_works=no
  7383. save_LDFLAGS="$LDFLAGS"
  7384. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7385. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7386. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7387. # The linker can only warn and ignore the option if not recognized
  7388. # So say no if there are warnings
  7389. if test -s conftest.err; then
  7390. # Append any errors to the config.log.
  7391. cat conftest.err 1>&5
  7392. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7393. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7394. if diff conftest.exp conftest.er2 >/dev/null; then
  7395. lt_cv_prog_compiler_static_works=yes
  7396. fi
  7397. else
  7398. lt_cv_prog_compiler_static_works=yes
  7399. fi
  7400. fi
  7401. $RM -r conftest*
  7402. LDFLAGS="$save_LDFLAGS"
  7403. fi
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7405. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7406. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7407. :
  7408. else
  7409. lt_prog_compiler_static=
  7410. fi
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7412. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7413. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7414. $as_echo_n "(cached) " >&6
  7415. else
  7416. lt_cv_prog_compiler_c_o=no
  7417. $RM -r conftest 2>/dev/null
  7418. mkdir conftest
  7419. cd conftest
  7420. mkdir out
  7421. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7422. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7423. # Insert the option either (1) after the last *FLAGS variable, or
  7424. # (2) before a word containing "conftest.", or (3) at the end.
  7425. # Note that $ac_compile itself does not contain backslashes and begins
  7426. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7427. lt_compile=`echo "$ac_compile" | $SED \
  7428. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7429. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7430. -e 's:$: $lt_compiler_flag:'`
  7431. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7432. (eval "$lt_compile" 2>out/conftest.err)
  7433. ac_status=$?
  7434. cat out/conftest.err >&5
  7435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7436. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7437. then
  7438. # The compiler can only warn and ignore the option if not recognized
  7439. # So say no if there are warnings
  7440. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7441. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7442. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7443. lt_cv_prog_compiler_c_o=yes
  7444. fi
  7445. fi
  7446. chmod u+w . 2>&5
  7447. $RM conftest*
  7448. # SGI C++ compiler will create directory out/ii_files/ for
  7449. # template instantiation
  7450. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7451. $RM out/* && rmdir out
  7452. cd ..
  7453. $RM -r conftest
  7454. $RM conftest*
  7455. fi
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7457. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7459. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7460. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7461. $as_echo_n "(cached) " >&6
  7462. else
  7463. lt_cv_prog_compiler_c_o=no
  7464. $RM -r conftest 2>/dev/null
  7465. mkdir conftest
  7466. cd conftest
  7467. mkdir out
  7468. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7469. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7470. # Insert the option either (1) after the last *FLAGS variable, or
  7471. # (2) before a word containing "conftest.", or (3) at the end.
  7472. # Note that $ac_compile itself does not contain backslashes and begins
  7473. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7474. lt_compile=`echo "$ac_compile" | $SED \
  7475. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7476. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7477. -e 's:$: $lt_compiler_flag:'`
  7478. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7479. (eval "$lt_compile" 2>out/conftest.err)
  7480. ac_status=$?
  7481. cat out/conftest.err >&5
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7484. then
  7485. # The compiler can only warn and ignore the option if not recognized
  7486. # So say no if there are warnings
  7487. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7488. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7489. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7490. lt_cv_prog_compiler_c_o=yes
  7491. fi
  7492. fi
  7493. chmod u+w . 2>&5
  7494. $RM conftest*
  7495. # SGI C++ compiler will create directory out/ii_files/ for
  7496. # template instantiation
  7497. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7498. $RM out/* && rmdir out
  7499. cd ..
  7500. $RM -r conftest
  7501. $RM conftest*
  7502. fi
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7504. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7505. hard_links="nottested"
  7506. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7507. # do not overwrite the value of need_locks provided by the user
  7508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7509. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7510. hard_links=yes
  7511. $RM conftest*
  7512. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7513. touch conftest.a
  7514. ln conftest.a conftest.b 2>&5 || hard_links=no
  7515. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7517. $as_echo "$hard_links" >&6; }
  7518. if test "$hard_links" = no; then
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7520. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7521. need_locks=warn
  7522. fi
  7523. else
  7524. need_locks=no
  7525. fi
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7527. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7528. runpath_var=
  7529. allow_undefined_flag=
  7530. always_export_symbols=no
  7531. archive_cmds=
  7532. archive_expsym_cmds=
  7533. compiler_needs_object=no
  7534. enable_shared_with_static_runtimes=no
  7535. export_dynamic_flag_spec=
  7536. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7537. hardcode_automatic=no
  7538. hardcode_direct=no
  7539. hardcode_direct_absolute=no
  7540. hardcode_libdir_flag_spec=
  7541. hardcode_libdir_separator=
  7542. hardcode_minus_L=no
  7543. hardcode_shlibpath_var=unsupported
  7544. inherit_rpath=no
  7545. link_all_deplibs=unknown
  7546. module_cmds=
  7547. module_expsym_cmds=
  7548. old_archive_from_new_cmds=
  7549. old_archive_from_expsyms_cmds=
  7550. thread_safe_flag_spec=
  7551. whole_archive_flag_spec=
  7552. # include_expsyms should be a list of space-separated symbols to be *always*
  7553. # included in the symbol list
  7554. include_expsyms=
  7555. # exclude_expsyms can be an extended regexp of symbols to exclude
  7556. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7557. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7558. # as well as any symbol that contains `d'.
  7559. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7560. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7561. # platforms (ab)use it in PIC code, but their linkers get confused if
  7562. # the symbol is explicitly referenced. Since portable code cannot
  7563. # rely on this symbol name, it's probably fine to never include it in
  7564. # preloaded symbol tables.
  7565. # Exclude shared library initialization/finalization symbols.
  7566. extract_expsyms_cmds=
  7567. case $host_os in
  7568. cygwin* | mingw* | pw32* | cegcc*)
  7569. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7570. # When not using gcc, we currently assume that we are using
  7571. # Microsoft Visual C++.
  7572. if test "$GCC" != yes; then
  7573. with_gnu_ld=no
  7574. fi
  7575. ;;
  7576. interix*)
  7577. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7578. with_gnu_ld=yes
  7579. ;;
  7580. openbsd*)
  7581. with_gnu_ld=no
  7582. ;;
  7583. esac
  7584. ld_shlibs=yes
  7585. # On some targets, GNU ld is compatible enough with the native linker
  7586. # that we're better off using the native interface for both.
  7587. lt_use_gnu_ld_interface=no
  7588. if test "$with_gnu_ld" = yes; then
  7589. case $host_os in
  7590. aix*)
  7591. # The AIX port of GNU ld has always aspired to compatibility
  7592. # with the native linker. However, as the warning in the GNU ld
  7593. # block says, versions before 2.19.5* couldn't really create working
  7594. # shared libraries, regardless of the interface used.
  7595. case `$LD -v 2>&1` in
  7596. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7597. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7598. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7599. *)
  7600. lt_use_gnu_ld_interface=yes
  7601. ;;
  7602. esac
  7603. ;;
  7604. *)
  7605. lt_use_gnu_ld_interface=yes
  7606. ;;
  7607. esac
  7608. fi
  7609. if test "$lt_use_gnu_ld_interface" = yes; then
  7610. # If archive_cmds runs LD, not CC, wlarc should be empty
  7611. wlarc='${wl}'
  7612. # Set some defaults for GNU ld with shared library support. These
  7613. # are reset later if shared libraries are not supported. Putting them
  7614. # here allows them to be overridden if necessary.
  7615. runpath_var=LD_RUN_PATH
  7616. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7617. export_dynamic_flag_spec='${wl}--export-dynamic'
  7618. # ancient GNU ld didn't support --whole-archive et. al.
  7619. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7620. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7621. else
  7622. whole_archive_flag_spec=
  7623. fi
  7624. supports_anon_versioning=no
  7625. case `$LD -v 2>&1` in
  7626. *GNU\ gold*) supports_anon_versioning=yes ;;
  7627. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7628. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7629. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7630. *\ 2.11.*) ;; # other 2.11 versions
  7631. *) supports_anon_versioning=yes ;;
  7632. esac
  7633. # See if GNU ld supports shared libraries.
  7634. case $host_os in
  7635. aix[3-9]*)
  7636. # On AIX/PPC, the GNU linker is very broken
  7637. if test "$host_cpu" != ia64; then
  7638. ld_shlibs=no
  7639. cat <<_LT_EOF 1>&2
  7640. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7641. *** to be unable to reliably create shared libraries on AIX.
  7642. *** Therefore, libtool is disabling shared libraries support. If you
  7643. *** really care for shared libraries, you may want to install binutils
  7644. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7645. *** You will then need to restart the configuration process.
  7646. _LT_EOF
  7647. fi
  7648. ;;
  7649. amigaos*)
  7650. case $host_cpu in
  7651. powerpc)
  7652. # see comment about AmigaOS4 .so support
  7653. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7654. archive_expsym_cmds=''
  7655. ;;
  7656. m68k)
  7657. 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)'
  7658. hardcode_libdir_flag_spec='-L$libdir'
  7659. hardcode_minus_L=yes
  7660. ;;
  7661. esac
  7662. ;;
  7663. beos*)
  7664. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7665. allow_undefined_flag=unsupported
  7666. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7667. # support --undefined. This deserves some investigation. FIXME
  7668. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7669. else
  7670. ld_shlibs=no
  7671. fi
  7672. ;;
  7673. cygwin* | mingw* | pw32* | cegcc*)
  7674. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7675. # as there is no search path for DLLs.
  7676. hardcode_libdir_flag_spec='-L$libdir'
  7677. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7678. allow_undefined_flag=unsupported
  7679. always_export_symbols=no
  7680. enable_shared_with_static_runtimes=yes
  7681. 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'
  7682. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7683. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7684. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7685. # If the export-symbols file already is a .def file (1st line
  7686. # is EXPORTS), use it as is; otherwise, prepend...
  7687. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7688. cp $export_symbols $output_objdir/$soname.def;
  7689. else
  7690. echo EXPORTS > $output_objdir/$soname.def;
  7691. cat $export_symbols >> $output_objdir/$soname.def;
  7692. fi~
  7693. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7694. else
  7695. ld_shlibs=no
  7696. fi
  7697. ;;
  7698. haiku*)
  7699. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7700. link_all_deplibs=yes
  7701. ;;
  7702. interix[3-9]*)
  7703. hardcode_direct=no
  7704. hardcode_shlibpath_var=no
  7705. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7706. export_dynamic_flag_spec='${wl}-E'
  7707. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7708. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7709. # default) and relocated if they conflict, which is a slow very memory
  7710. # consuming and fragmenting process. To avoid this, we pick a random,
  7711. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7712. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7713. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7714. 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'
  7715. ;;
  7716. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7717. tmp_diet=no
  7718. if test "$host_os" = linux-dietlibc; then
  7719. case $cc_basename in
  7720. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7721. esac
  7722. fi
  7723. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7724. && test "$tmp_diet" = no
  7725. then
  7726. tmp_addflag=' $pic_flag'
  7727. tmp_sharedflag='-shared'
  7728. case $cc_basename,$host_cpu in
  7729. pgcc*) # Portland Group C compiler
  7730. 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'
  7731. tmp_addflag=' $pic_flag'
  7732. ;;
  7733. pgf77* | pgf90* | pgf95* | pgfortran*)
  7734. # Portland Group f77 and f90 compilers
  7735. 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'
  7736. tmp_addflag=' $pic_flag -Mnomain' ;;
  7737. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7738. tmp_addflag=' -i_dynamic' ;;
  7739. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7740. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7741. ifc* | ifort*) # Intel Fortran compiler
  7742. tmp_addflag=' -nofor_main' ;;
  7743. lf95*) # Lahey Fortran 8.1
  7744. whole_archive_flag_spec=
  7745. tmp_sharedflag='--shared' ;;
  7746. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7747. tmp_sharedflag='-qmkshrobj'
  7748. tmp_addflag= ;;
  7749. nvcc*) # Cuda Compiler Driver 2.2
  7750. 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'
  7751. compiler_needs_object=yes
  7752. ;;
  7753. esac
  7754. case `$CC -V 2>&1 | sed 5q` in
  7755. *Sun\ C*) # Sun C 5.9
  7756. 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'
  7757. compiler_needs_object=yes
  7758. tmp_sharedflag='-G' ;;
  7759. *Sun\ F*) # Sun Fortran 8.3
  7760. tmp_sharedflag='-G' ;;
  7761. esac
  7762. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7763. if test "x$supports_anon_versioning" = xyes; then
  7764. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7765. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7766. echo "local: *; };" >> $output_objdir/$libname.ver~
  7767. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7768. fi
  7769. case $cc_basename in
  7770. xlf* | bgf* | bgxlf* | mpixlf*)
  7771. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7772. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7773. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7774. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7775. if test "x$supports_anon_versioning" = xyes; then
  7776. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7777. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7778. echo "local: *; };" >> $output_objdir/$libname.ver~
  7779. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7780. fi
  7781. ;;
  7782. esac
  7783. else
  7784. ld_shlibs=no
  7785. fi
  7786. ;;
  7787. netbsd*)
  7788. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7789. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7790. wlarc=
  7791. else
  7792. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7793. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7794. fi
  7795. ;;
  7796. solaris*)
  7797. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7798. ld_shlibs=no
  7799. cat <<_LT_EOF 1>&2
  7800. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7801. *** create shared libraries on Solaris systems. Therefore, libtool
  7802. *** is disabling shared libraries support. We urge you to upgrade GNU
  7803. *** binutils to release 2.9.1 or newer. Another option is to modify
  7804. *** your PATH or compiler configuration so that the native linker is
  7805. *** used, and then restart.
  7806. _LT_EOF
  7807. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7808. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7809. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7810. else
  7811. ld_shlibs=no
  7812. fi
  7813. ;;
  7814. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7815. case `$LD -v 2>&1` in
  7816. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7817. ld_shlibs=no
  7818. cat <<_LT_EOF 1>&2
  7819. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7820. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7821. *** is disabling shared libraries support. We urge you to upgrade GNU
  7822. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7823. *** your PATH or compiler configuration so that the native linker is
  7824. *** used, and then restart.
  7825. _LT_EOF
  7826. ;;
  7827. *)
  7828. # For security reasons, it is highly recommended that you always
  7829. # use absolute paths for naming shared libraries, and exclude the
  7830. # DT_RUNPATH tag from executables and libraries. But doing so
  7831. # requires that you compile everything twice, which is a pain.
  7832. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7833. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7834. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7835. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7836. else
  7837. ld_shlibs=no
  7838. fi
  7839. ;;
  7840. esac
  7841. ;;
  7842. sunos4*)
  7843. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7844. wlarc=
  7845. hardcode_direct=yes
  7846. hardcode_shlibpath_var=no
  7847. ;;
  7848. *)
  7849. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7850. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7851. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7852. else
  7853. ld_shlibs=no
  7854. fi
  7855. ;;
  7856. esac
  7857. if test "$ld_shlibs" = no; then
  7858. runpath_var=
  7859. hardcode_libdir_flag_spec=
  7860. export_dynamic_flag_spec=
  7861. whole_archive_flag_spec=
  7862. fi
  7863. else
  7864. # PORTME fill in a description of your system's linker (not GNU ld)
  7865. case $host_os in
  7866. aix3*)
  7867. allow_undefined_flag=unsupported
  7868. always_export_symbols=yes
  7869. 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'
  7870. # Note: this linker hardcodes the directories in LIBPATH if there
  7871. # are no directories specified by -L.
  7872. hardcode_minus_L=yes
  7873. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7874. # Neither direct hardcoding nor static linking is supported with a
  7875. # broken collect2.
  7876. hardcode_direct=unsupported
  7877. fi
  7878. ;;
  7879. aix[4-9]*)
  7880. if test "$host_cpu" = ia64; then
  7881. # On IA64, the linker does run time linking by default, so we don't
  7882. # have to do anything special.
  7883. aix_use_runtimelinking=no
  7884. exp_sym_flag='-Bexport'
  7885. no_entry_flag=""
  7886. else
  7887. # If we're using GNU nm, then we don't want the "-C" option.
  7888. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7889. # Also, AIX nm treats weak defined symbols like other global
  7890. # defined symbols, whereas GNU nm marks them as "W".
  7891. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7892. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7893. else
  7894. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7895. fi
  7896. aix_use_runtimelinking=no
  7897. # Test if we are trying to use run time linking or normal
  7898. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7899. # need to do runtime linking.
  7900. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7901. for ld_flag in $LDFLAGS; do
  7902. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7903. aix_use_runtimelinking=yes
  7904. break
  7905. fi
  7906. done
  7907. ;;
  7908. esac
  7909. exp_sym_flag='-bexport'
  7910. no_entry_flag='-bnoentry'
  7911. fi
  7912. # When large executables or shared objects are built, AIX ld can
  7913. # have problems creating the table of contents. If linking a library
  7914. # or program results in "error TOC overflow" add -mminimal-toc to
  7915. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7916. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7917. archive_cmds=''
  7918. hardcode_direct=yes
  7919. hardcode_direct_absolute=yes
  7920. hardcode_libdir_separator=':'
  7921. link_all_deplibs=yes
  7922. file_list_spec='${wl}-f,'
  7923. if test "$GCC" = yes; then
  7924. case $host_os in aix4.[012]|aix4.[012].*)
  7925. # We only want to do this on AIX 4.2 and lower, the check
  7926. # below for broken collect2 doesn't work under 4.3+
  7927. collect2name=`${CC} -print-prog-name=collect2`
  7928. if test -f "$collect2name" &&
  7929. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7930. then
  7931. # We have reworked collect2
  7932. :
  7933. else
  7934. # We have old collect2
  7935. hardcode_direct=unsupported
  7936. # It fails to find uninstalled libraries when the uninstalled
  7937. # path is not listed in the libpath. Setting hardcode_minus_L
  7938. # to unsupported forces relinking
  7939. hardcode_minus_L=yes
  7940. hardcode_libdir_flag_spec='-L$libdir'
  7941. hardcode_libdir_separator=
  7942. fi
  7943. ;;
  7944. esac
  7945. shared_flag='-shared'
  7946. if test "$aix_use_runtimelinking" = yes; then
  7947. shared_flag="$shared_flag "'${wl}-G'
  7948. fi
  7949. else
  7950. # not using gcc
  7951. if test "$host_cpu" = ia64; then
  7952. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7953. # chokes on -Wl,-G. The following line is correct:
  7954. shared_flag='-G'
  7955. else
  7956. if test "$aix_use_runtimelinking" = yes; then
  7957. shared_flag='${wl}-G'
  7958. else
  7959. shared_flag='${wl}-bM:SRE'
  7960. fi
  7961. fi
  7962. fi
  7963. export_dynamic_flag_spec='${wl}-bexpall'
  7964. # It seems that -bexpall does not export symbols beginning with
  7965. # underscore (_), so it is better to generate a list of symbols to export.
  7966. always_export_symbols=yes
  7967. if test "$aix_use_runtimelinking" = yes; then
  7968. # Warning - without using the other runtime loading flags (-brtl),
  7969. # -berok will link without error, but may produce a broken library.
  7970. allow_undefined_flag='-berok'
  7971. # Determine the default libpath from the value encoded in an
  7972. # empty executable.
  7973. if test "${lt_cv_aix_libpath+set}" = set; then
  7974. aix_libpath=$lt_cv_aix_libpath
  7975. else
  7976. if ${lt_cv_aix_libpath_+:} false; then :
  7977. $as_echo_n "(cached) " >&6
  7978. else
  7979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7980. /* end confdefs.h. */
  7981. int
  7982. main ()
  7983. {
  7984. ;
  7985. return 0;
  7986. }
  7987. _ACEOF
  7988. if ac_fn_c_try_link "$LINENO"; then :
  7989. lt_aix_libpath_sed='
  7990. /Import File Strings/,/^$/ {
  7991. /^0/ {
  7992. s/^0 *\([^ ]*\) *$/\1/
  7993. p
  7994. }
  7995. }'
  7996. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7997. # Check for a 64-bit object if we didn't find anything.
  7998. if test -z "$lt_cv_aix_libpath_"; then
  7999. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8000. fi
  8001. fi
  8002. rm -f core conftest.err conftest.$ac_objext \
  8003. conftest$ac_exeext conftest.$ac_ext
  8004. if test -z "$lt_cv_aix_libpath_"; then
  8005. lt_cv_aix_libpath_="/usr/lib:/lib"
  8006. fi
  8007. fi
  8008. aix_libpath=$lt_cv_aix_libpath_
  8009. fi
  8010. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8011. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8012. else
  8013. if test "$host_cpu" = ia64; then
  8014. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8015. allow_undefined_flag="-z nodefs"
  8016. 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"
  8017. else
  8018. # Determine the default libpath from the value encoded in an
  8019. # empty executable.
  8020. if test "${lt_cv_aix_libpath+set}" = set; then
  8021. aix_libpath=$lt_cv_aix_libpath
  8022. else
  8023. if ${lt_cv_aix_libpath_+:} false; then :
  8024. $as_echo_n "(cached) " >&6
  8025. else
  8026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8027. /* end confdefs.h. */
  8028. int
  8029. main ()
  8030. {
  8031. ;
  8032. return 0;
  8033. }
  8034. _ACEOF
  8035. if ac_fn_c_try_link "$LINENO"; then :
  8036. lt_aix_libpath_sed='
  8037. /Import File Strings/,/^$/ {
  8038. /^0/ {
  8039. s/^0 *\([^ ]*\) *$/\1/
  8040. p
  8041. }
  8042. }'
  8043. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8044. # Check for a 64-bit object if we didn't find anything.
  8045. if test -z "$lt_cv_aix_libpath_"; then
  8046. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8047. fi
  8048. fi
  8049. rm -f core conftest.err conftest.$ac_objext \
  8050. conftest$ac_exeext conftest.$ac_ext
  8051. if test -z "$lt_cv_aix_libpath_"; then
  8052. lt_cv_aix_libpath_="/usr/lib:/lib"
  8053. fi
  8054. fi
  8055. aix_libpath=$lt_cv_aix_libpath_
  8056. fi
  8057. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8058. # Warning - without using the other run time loading flags,
  8059. # -berok will link without error, but may produce a broken library.
  8060. no_undefined_flag=' ${wl}-bernotok'
  8061. allow_undefined_flag=' ${wl}-berok'
  8062. if test "$with_gnu_ld" = yes; then
  8063. # We only use this code for GNU lds that support --whole-archive.
  8064. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8065. else
  8066. # Exported symbols can be pulled into shared objects from archives
  8067. whole_archive_flag_spec='$convenience'
  8068. fi
  8069. archive_cmds_need_lc=yes
  8070. # This is similar to how AIX traditionally builds its shared libraries.
  8071. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8072. fi
  8073. fi
  8074. ;;
  8075. amigaos*)
  8076. case $host_cpu in
  8077. powerpc)
  8078. # see comment about AmigaOS4 .so support
  8079. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8080. archive_expsym_cmds=''
  8081. ;;
  8082. m68k)
  8083. 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)'
  8084. hardcode_libdir_flag_spec='-L$libdir'
  8085. hardcode_minus_L=yes
  8086. ;;
  8087. esac
  8088. ;;
  8089. bsdi[45]*)
  8090. export_dynamic_flag_spec=-rdynamic
  8091. ;;
  8092. cygwin* | mingw* | pw32* | cegcc*)
  8093. # When not using gcc, we currently assume that we are using
  8094. # Microsoft Visual C++.
  8095. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8096. # no search path for DLLs.
  8097. case $cc_basename in
  8098. cl*)
  8099. # Native MSVC
  8100. hardcode_libdir_flag_spec=' '
  8101. allow_undefined_flag=unsupported
  8102. always_export_symbols=yes
  8103. file_list_spec='@'
  8104. # Tell ltmain to make .lib files, not .a files.
  8105. libext=lib
  8106. # Tell ltmain to make .dll files, not .so files.
  8107. shrext_cmds=".dll"
  8108. # FIXME: Setting linknames here is a bad hack.
  8109. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8110. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8111. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8112. else
  8113. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8114. fi~
  8115. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8116. linknames='
  8117. # The linker will not automatically build a static lib if we build a DLL.
  8118. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8119. enable_shared_with_static_runtimes=yes
  8120. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8121. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8122. # Don't use ranlib
  8123. old_postinstall_cmds='chmod 644 $oldlib'
  8124. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8125. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8126. case $lt_outputfile in
  8127. *.exe|*.EXE) ;;
  8128. *)
  8129. lt_outputfile="$lt_outputfile.exe"
  8130. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8131. ;;
  8132. esac~
  8133. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8134. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8135. $RM "$lt_outputfile.manifest";
  8136. fi'
  8137. ;;
  8138. *)
  8139. # Assume MSVC wrapper
  8140. hardcode_libdir_flag_spec=' '
  8141. allow_undefined_flag=unsupported
  8142. # Tell ltmain to make .lib files, not .a files.
  8143. libext=lib
  8144. # Tell ltmain to make .dll files, not .so files.
  8145. shrext_cmds=".dll"
  8146. # FIXME: Setting linknames here is a bad hack.
  8147. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8148. # The linker will automatically build a .lib file if we build a DLL.
  8149. old_archive_from_new_cmds='true'
  8150. # FIXME: Should let the user specify the lib program.
  8151. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8152. enable_shared_with_static_runtimes=yes
  8153. ;;
  8154. esac
  8155. ;;
  8156. darwin* | rhapsody*)
  8157. archive_cmds_need_lc=no
  8158. hardcode_direct=no
  8159. hardcode_automatic=yes
  8160. hardcode_shlibpath_var=unsupported
  8161. if test "$lt_cv_ld_force_load" = "yes"; then
  8162. 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\"`'
  8163. else
  8164. whole_archive_flag_spec=''
  8165. fi
  8166. link_all_deplibs=yes
  8167. allow_undefined_flag="$_lt_dar_allow_undefined"
  8168. case $cc_basename in
  8169. ifort*) _lt_dar_can_shared=yes ;;
  8170. *) _lt_dar_can_shared=$GCC ;;
  8171. esac
  8172. if test "$_lt_dar_can_shared" = "yes"; then
  8173. output_verbose_link_cmd=func_echo_all
  8174. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8175. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8176. 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}"
  8177. 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}"
  8178. else
  8179. ld_shlibs=no
  8180. fi
  8181. ;;
  8182. dgux*)
  8183. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8184. hardcode_libdir_flag_spec='-L$libdir'
  8185. hardcode_shlibpath_var=no
  8186. ;;
  8187. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8188. # support. Future versions do this automatically, but an explicit c++rt0.o
  8189. # does not break anything, and helps significantly (at the cost of a little
  8190. # extra space).
  8191. freebsd2.2*)
  8192. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8193. hardcode_libdir_flag_spec='-R$libdir'
  8194. hardcode_direct=yes
  8195. hardcode_shlibpath_var=no
  8196. ;;
  8197. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8198. freebsd2.*)
  8199. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8200. hardcode_direct=yes
  8201. hardcode_minus_L=yes
  8202. hardcode_shlibpath_var=no
  8203. ;;
  8204. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8205. freebsd* | dragonfly*)
  8206. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8207. hardcode_libdir_flag_spec='-R$libdir'
  8208. hardcode_direct=yes
  8209. hardcode_shlibpath_var=no
  8210. ;;
  8211. hpux9*)
  8212. if test "$GCC" = yes; then
  8213. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8214. else
  8215. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8216. fi
  8217. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8218. hardcode_libdir_separator=:
  8219. hardcode_direct=yes
  8220. # hardcode_minus_L: Not really in the search PATH,
  8221. # but as the default location of the library.
  8222. hardcode_minus_L=yes
  8223. export_dynamic_flag_spec='${wl}-E'
  8224. ;;
  8225. hpux10*)
  8226. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8227. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8228. else
  8229. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8230. fi
  8231. if test "$with_gnu_ld" = no; then
  8232. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8233. hardcode_libdir_separator=:
  8234. hardcode_direct=yes
  8235. hardcode_direct_absolute=yes
  8236. export_dynamic_flag_spec='${wl}-E'
  8237. # hardcode_minus_L: Not really in the search PATH,
  8238. # but as the default location of the library.
  8239. hardcode_minus_L=yes
  8240. fi
  8241. ;;
  8242. hpux11*)
  8243. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8244. case $host_cpu in
  8245. hppa*64*)
  8246. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8247. ;;
  8248. ia64*)
  8249. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8250. ;;
  8251. *)
  8252. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8253. ;;
  8254. esac
  8255. else
  8256. case $host_cpu in
  8257. hppa*64*)
  8258. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8259. ;;
  8260. ia64*)
  8261. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8262. ;;
  8263. *)
  8264. # Older versions of the 11.00 compiler do not understand -b yet
  8265. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8267. $as_echo_n "checking if $CC understands -b... " >&6; }
  8268. if ${lt_cv_prog_compiler__b+:} false; then :
  8269. $as_echo_n "(cached) " >&6
  8270. else
  8271. lt_cv_prog_compiler__b=no
  8272. save_LDFLAGS="$LDFLAGS"
  8273. LDFLAGS="$LDFLAGS -b"
  8274. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8275. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8276. # The linker can only warn and ignore the option if not recognized
  8277. # So say no if there are warnings
  8278. if test -s conftest.err; then
  8279. # Append any errors to the config.log.
  8280. cat conftest.err 1>&5
  8281. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8282. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8283. if diff conftest.exp conftest.er2 >/dev/null; then
  8284. lt_cv_prog_compiler__b=yes
  8285. fi
  8286. else
  8287. lt_cv_prog_compiler__b=yes
  8288. fi
  8289. fi
  8290. $RM -r conftest*
  8291. LDFLAGS="$save_LDFLAGS"
  8292. fi
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8294. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8295. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8296. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8297. else
  8298. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8299. fi
  8300. ;;
  8301. esac
  8302. fi
  8303. if test "$with_gnu_ld" = no; then
  8304. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8305. hardcode_libdir_separator=:
  8306. case $host_cpu in
  8307. hppa*64*|ia64*)
  8308. hardcode_direct=no
  8309. hardcode_shlibpath_var=no
  8310. ;;
  8311. *)
  8312. hardcode_direct=yes
  8313. hardcode_direct_absolute=yes
  8314. export_dynamic_flag_spec='${wl}-E'
  8315. # hardcode_minus_L: Not really in the search PATH,
  8316. # but as the default location of the library.
  8317. hardcode_minus_L=yes
  8318. ;;
  8319. esac
  8320. fi
  8321. ;;
  8322. irix5* | irix6* | nonstopux*)
  8323. if test "$GCC" = yes; then
  8324. 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'
  8325. # Try to use the -exported_symbol ld option, if it does not
  8326. # work, assume that -exports_file does not work either and
  8327. # implicitly export all symbols.
  8328. # This should be the same for all languages, so no per-tag cache variable.
  8329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8330. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8331. if ${lt_cv_irix_exported_symbol+:} false; then :
  8332. $as_echo_n "(cached) " >&6
  8333. else
  8334. save_LDFLAGS="$LDFLAGS"
  8335. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8337. /* end confdefs.h. */
  8338. int foo (void) { return 0; }
  8339. _ACEOF
  8340. if ac_fn_c_try_link "$LINENO"; then :
  8341. lt_cv_irix_exported_symbol=yes
  8342. else
  8343. lt_cv_irix_exported_symbol=no
  8344. fi
  8345. rm -f core conftest.err conftest.$ac_objext \
  8346. conftest$ac_exeext conftest.$ac_ext
  8347. LDFLAGS="$save_LDFLAGS"
  8348. fi
  8349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8350. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8351. if test "$lt_cv_irix_exported_symbol" = yes; then
  8352. 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'
  8353. fi
  8354. else
  8355. 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'
  8356. 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'
  8357. fi
  8358. archive_cmds_need_lc='no'
  8359. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8360. hardcode_libdir_separator=:
  8361. inherit_rpath=yes
  8362. link_all_deplibs=yes
  8363. ;;
  8364. netbsd*)
  8365. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8366. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8367. else
  8368. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8369. fi
  8370. hardcode_libdir_flag_spec='-R$libdir'
  8371. hardcode_direct=yes
  8372. hardcode_shlibpath_var=no
  8373. ;;
  8374. newsos6)
  8375. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8376. hardcode_direct=yes
  8377. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8378. hardcode_libdir_separator=:
  8379. hardcode_shlibpath_var=no
  8380. ;;
  8381. *nto* | *qnx*)
  8382. ;;
  8383. openbsd*)
  8384. if test -f /usr/libexec/ld.so; then
  8385. hardcode_direct=yes
  8386. hardcode_shlibpath_var=no
  8387. hardcode_direct_absolute=yes
  8388. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8389. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8390. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8391. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8392. export_dynamic_flag_spec='${wl}-E'
  8393. else
  8394. case $host_os in
  8395. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8396. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8397. hardcode_libdir_flag_spec='-R$libdir'
  8398. ;;
  8399. *)
  8400. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8401. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8402. ;;
  8403. esac
  8404. fi
  8405. else
  8406. ld_shlibs=no
  8407. fi
  8408. ;;
  8409. os2*)
  8410. hardcode_libdir_flag_spec='-L$libdir'
  8411. hardcode_minus_L=yes
  8412. allow_undefined_flag=unsupported
  8413. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8414. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8415. ;;
  8416. osf3*)
  8417. if test "$GCC" = yes; then
  8418. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8419. 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'
  8420. else
  8421. allow_undefined_flag=' -expect_unresolved \*'
  8422. 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'
  8423. fi
  8424. archive_cmds_need_lc='no'
  8425. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8426. hardcode_libdir_separator=:
  8427. ;;
  8428. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8429. if test "$GCC" = yes; then
  8430. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8431. 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'
  8432. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8433. else
  8434. allow_undefined_flag=' -expect_unresolved \*'
  8435. 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'
  8436. 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~
  8437. $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'
  8438. # Both c and cxx compiler support -rpath directly
  8439. hardcode_libdir_flag_spec='-rpath $libdir'
  8440. fi
  8441. archive_cmds_need_lc='no'
  8442. hardcode_libdir_separator=:
  8443. ;;
  8444. solaris*)
  8445. no_undefined_flag=' -z defs'
  8446. if test "$GCC" = yes; then
  8447. wlarc='${wl}'
  8448. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8449. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8450. $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'
  8451. else
  8452. case `$CC -V 2>&1` in
  8453. *"Compilers 5.0"*)
  8454. wlarc=''
  8455. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8456. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8457. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8458. ;;
  8459. *)
  8460. wlarc='${wl}'
  8461. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8462. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8463. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8464. ;;
  8465. esac
  8466. fi
  8467. hardcode_libdir_flag_spec='-R$libdir'
  8468. hardcode_shlibpath_var=no
  8469. case $host_os in
  8470. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8471. *)
  8472. # The compiler driver will combine and reorder linker options,
  8473. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8474. # but is careful enough not to reorder.
  8475. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8476. if test "$GCC" = yes; then
  8477. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8478. else
  8479. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8480. fi
  8481. ;;
  8482. esac
  8483. link_all_deplibs=yes
  8484. ;;
  8485. sunos4*)
  8486. if test "x$host_vendor" = xsequent; then
  8487. # Use $CC to link under sequent, because it throws in some extra .o
  8488. # files that make .init and .fini sections work.
  8489. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8490. else
  8491. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8492. fi
  8493. hardcode_libdir_flag_spec='-L$libdir'
  8494. hardcode_direct=yes
  8495. hardcode_minus_L=yes
  8496. hardcode_shlibpath_var=no
  8497. ;;
  8498. sysv4)
  8499. case $host_vendor in
  8500. sni)
  8501. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8502. hardcode_direct=yes # is this really true???
  8503. ;;
  8504. siemens)
  8505. ## LD is ld it makes a PLAMLIB
  8506. ## CC just makes a GrossModule.
  8507. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8508. reload_cmds='$CC -r -o $output$reload_objs'
  8509. hardcode_direct=no
  8510. ;;
  8511. motorola)
  8512. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8513. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8514. ;;
  8515. esac
  8516. runpath_var='LD_RUN_PATH'
  8517. hardcode_shlibpath_var=no
  8518. ;;
  8519. sysv4.3*)
  8520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8521. hardcode_shlibpath_var=no
  8522. export_dynamic_flag_spec='-Bexport'
  8523. ;;
  8524. sysv4*MP*)
  8525. if test -d /usr/nec; then
  8526. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8527. hardcode_shlibpath_var=no
  8528. runpath_var=LD_RUN_PATH
  8529. hardcode_runpath_var=yes
  8530. ld_shlibs=yes
  8531. fi
  8532. ;;
  8533. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8534. no_undefined_flag='${wl}-z,text'
  8535. archive_cmds_need_lc=no
  8536. hardcode_shlibpath_var=no
  8537. runpath_var='LD_RUN_PATH'
  8538. if test "$GCC" = yes; then
  8539. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8540. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8541. else
  8542. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8543. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8544. fi
  8545. ;;
  8546. sysv5* | sco3.2v5* | sco5v6*)
  8547. # Note: We can NOT use -z defs as we might desire, because we do not
  8548. # link with -lc, and that would cause any symbols used from libc to
  8549. # always be unresolved, which means just about no library would
  8550. # ever link correctly. If we're not using GNU ld we use -z text
  8551. # though, which does catch some bad symbols but isn't as heavy-handed
  8552. # as -z defs.
  8553. no_undefined_flag='${wl}-z,text'
  8554. allow_undefined_flag='${wl}-z,nodefs'
  8555. archive_cmds_need_lc=no
  8556. hardcode_shlibpath_var=no
  8557. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8558. hardcode_libdir_separator=':'
  8559. link_all_deplibs=yes
  8560. export_dynamic_flag_spec='${wl}-Bexport'
  8561. runpath_var='LD_RUN_PATH'
  8562. if test "$GCC" = yes; then
  8563. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8565. else
  8566. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8567. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. fi
  8569. ;;
  8570. uts4*)
  8571. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8572. hardcode_libdir_flag_spec='-L$libdir'
  8573. hardcode_shlibpath_var=no
  8574. ;;
  8575. *)
  8576. ld_shlibs=no
  8577. ;;
  8578. esac
  8579. if test x$host_vendor = xsni; then
  8580. case $host in
  8581. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8582. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8583. ;;
  8584. esac
  8585. fi
  8586. fi
  8587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8588. $as_echo "$ld_shlibs" >&6; }
  8589. test "$ld_shlibs" = no && can_build_shared=no
  8590. with_gnu_ld=$with_gnu_ld
  8591. #
  8592. # Do we need to explicitly link libc?
  8593. #
  8594. case "x$archive_cmds_need_lc" in
  8595. x|xyes)
  8596. # Assume -lc should be added
  8597. archive_cmds_need_lc=yes
  8598. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8599. case $archive_cmds in
  8600. *'~'*)
  8601. # FIXME: we may have to deal with multi-command sequences.
  8602. ;;
  8603. '$CC '*)
  8604. # Test whether the compiler implicitly links with -lc since on some
  8605. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8606. # to ld, don't add -lc before -lgcc.
  8607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8608. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8609. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8610. $as_echo_n "(cached) " >&6
  8611. else
  8612. $RM conftest*
  8613. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8614. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8615. (eval $ac_compile) 2>&5
  8616. ac_status=$?
  8617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8618. test $ac_status = 0; } 2>conftest.err; then
  8619. soname=conftest
  8620. lib=conftest
  8621. libobjs=conftest.$ac_objext
  8622. deplibs=
  8623. wl=$lt_prog_compiler_wl
  8624. pic_flag=$lt_prog_compiler_pic
  8625. compiler_flags=-v
  8626. linker_flags=-v
  8627. verstring=
  8628. output_objdir=.
  8629. libname=conftest
  8630. lt_save_allow_undefined_flag=$allow_undefined_flag
  8631. allow_undefined_flag=
  8632. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8633. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8634. ac_status=$?
  8635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8636. test $ac_status = 0; }
  8637. then
  8638. lt_cv_archive_cmds_need_lc=no
  8639. else
  8640. lt_cv_archive_cmds_need_lc=yes
  8641. fi
  8642. allow_undefined_flag=$lt_save_allow_undefined_flag
  8643. else
  8644. cat conftest.err 1>&5
  8645. fi
  8646. $RM conftest*
  8647. fi
  8648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8649. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8650. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8651. ;;
  8652. esac
  8653. fi
  8654. ;;
  8655. esac
  8656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8657. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8658. if test "$GCC" = yes; then
  8659. case $host_os in
  8660. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8661. *) lt_awk_arg="/^libraries:/" ;;
  8662. esac
  8663. case $host_os in
  8664. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8665. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8666. esac
  8667. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8668. case $lt_search_path_spec in
  8669. *\;*)
  8670. # if the path contains ";" then we assume it to be the separator
  8671. # otherwise default to the standard path separator (i.e. ":") - it is
  8672. # assumed that no part of a normal pathname contains ";" but that should
  8673. # okay in the real world where ";" in dirpaths is itself problematic.
  8674. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8675. ;;
  8676. *)
  8677. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8678. ;;
  8679. esac
  8680. # Ok, now we have the path, separated by spaces, we can step through it
  8681. # and add multilib dir if necessary...
  8682. lt_tmp_lt_search_path_spec=
  8683. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8684. # ...but if some path already ends with the multilib dir we assume
  8685. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8686. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8687. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8688. lt_multi_os_dir=
  8689. ;;
  8690. esac
  8691. for lt_sys_path in $lt_search_path_spec; do
  8692. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8693. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8694. elif test -n "$lt_multi_os_dir"; then
  8695. test -d "$lt_sys_path" && \
  8696. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8697. fi
  8698. done
  8699. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8700. BEGIN {RS=" "; FS="/|\n";} {
  8701. lt_foo="";
  8702. lt_count=0;
  8703. for (lt_i = NF; lt_i > 0; lt_i--) {
  8704. if ($lt_i != "" && $lt_i != ".") {
  8705. if ($lt_i == "..") {
  8706. lt_count++;
  8707. } else {
  8708. if (lt_count == 0) {
  8709. lt_foo="/" $lt_i lt_foo;
  8710. } else {
  8711. lt_count--;
  8712. }
  8713. }
  8714. }
  8715. }
  8716. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8717. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8718. }'`
  8719. # AWK program above erroneously prepends '/' to C:/dos/paths
  8720. # for these hosts.
  8721. case $host_os in
  8722. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8723. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8724. esac
  8725. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8726. else
  8727. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8728. fi
  8729. library_names_spec=
  8730. libname_spec='lib$name'
  8731. soname_spec=
  8732. shrext_cmds=".so"
  8733. postinstall_cmds=
  8734. postuninstall_cmds=
  8735. finish_cmds=
  8736. finish_eval=
  8737. shlibpath_var=
  8738. shlibpath_overrides_runpath=unknown
  8739. version_type=none
  8740. dynamic_linker="$host_os ld.so"
  8741. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8742. need_lib_prefix=unknown
  8743. hardcode_into_libs=no
  8744. # when you set need_version to no, make sure it does not cause -set_version
  8745. # flags to be left without arguments
  8746. need_version=unknown
  8747. case $host_os in
  8748. aix3*)
  8749. version_type=linux # correct to gnu/linux during the next big refactor
  8750. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8751. shlibpath_var=LIBPATH
  8752. # AIX 3 has no versioning support, so we append a major version to the name.
  8753. soname_spec='${libname}${release}${shared_ext}$major'
  8754. ;;
  8755. aix[4-9]*)
  8756. version_type=linux # correct to gnu/linux during the next big refactor
  8757. need_lib_prefix=no
  8758. need_version=no
  8759. hardcode_into_libs=yes
  8760. if test "$host_cpu" = ia64; then
  8761. # AIX 5 supports IA64
  8762. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8763. shlibpath_var=LD_LIBRARY_PATH
  8764. else
  8765. # With GCC up to 2.95.x, collect2 would create an import file
  8766. # for dependence libraries. The import file would start with
  8767. # the line `#! .'. This would cause the generated library to
  8768. # depend on `.', always an invalid library. This was fixed in
  8769. # development snapshots of GCC prior to 3.0.
  8770. case $host_os in
  8771. aix4 | aix4.[01] | aix4.[01].*)
  8772. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8773. echo ' yes '
  8774. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8775. :
  8776. else
  8777. can_build_shared=no
  8778. fi
  8779. ;;
  8780. esac
  8781. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8782. # soname into executable. Probably we can add versioning support to
  8783. # collect2, so additional links can be useful in future.
  8784. if test "$aix_use_runtimelinking" = yes; then
  8785. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8786. # instead of lib<name>.a to let people know that these are not
  8787. # typical AIX shared libraries.
  8788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8789. else
  8790. # We preserve .a as extension for shared libraries through AIX4.2
  8791. # and later when we are not doing run time linking.
  8792. library_names_spec='${libname}${release}.a $libname.a'
  8793. soname_spec='${libname}${release}${shared_ext}$major'
  8794. fi
  8795. shlibpath_var=LIBPATH
  8796. fi
  8797. ;;
  8798. amigaos*)
  8799. case $host_cpu in
  8800. powerpc)
  8801. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8802. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8804. ;;
  8805. m68k)
  8806. library_names_spec='$libname.ixlibrary $libname.a'
  8807. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8808. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8809. ;;
  8810. esac
  8811. ;;
  8812. beos*)
  8813. library_names_spec='${libname}${shared_ext}'
  8814. dynamic_linker="$host_os ld.so"
  8815. shlibpath_var=LIBRARY_PATH
  8816. ;;
  8817. bsdi[45]*)
  8818. version_type=linux # correct to gnu/linux during the next big refactor
  8819. need_version=no
  8820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8821. soname_spec='${libname}${release}${shared_ext}$major'
  8822. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8823. shlibpath_var=LD_LIBRARY_PATH
  8824. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8825. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8826. # the default ld.so.conf also contains /usr/contrib/lib and
  8827. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8828. # libtool to hard-code these into programs
  8829. ;;
  8830. cygwin* | mingw* | pw32* | cegcc*)
  8831. version_type=windows
  8832. shrext_cmds=".dll"
  8833. need_version=no
  8834. need_lib_prefix=no
  8835. case $GCC,$cc_basename in
  8836. yes,*)
  8837. # gcc
  8838. library_names_spec='$libname.dll.a'
  8839. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8840. postinstall_cmds='base_file=`basename \${file}`~
  8841. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8842. dldir=$destdir/`dirname \$dlpath`~
  8843. test -d \$dldir || mkdir -p \$dldir~
  8844. $install_prog $dir/$dlname \$dldir/$dlname~
  8845. chmod a+x \$dldir/$dlname~
  8846. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8847. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8848. fi'
  8849. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8850. dlpath=$dir/\$dldll~
  8851. $RM \$dlpath'
  8852. shlibpath_overrides_runpath=yes
  8853. case $host_os in
  8854. cygwin*)
  8855. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8856. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8857. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8858. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8859. ;;
  8860. mingw* | cegcc*)
  8861. # MinGW DLLs use traditional 'lib' prefix
  8862. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8863. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8864. ;;
  8865. pw32*)
  8866. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8867. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8868. ;;
  8869. esac
  8870. dynamic_linker='Win32 ld.exe'
  8871. ;;
  8872. *,cl*)
  8873. # Native MSVC
  8874. libname_spec='$name'
  8875. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8876. library_names_spec='${libname}.dll.lib'
  8877. case $build_os in
  8878. mingw*)
  8879. sys_lib_search_path_spec=
  8880. lt_save_ifs=$IFS
  8881. IFS=';'
  8882. for lt_path in $LIB
  8883. do
  8884. IFS=$lt_save_ifs
  8885. # Let DOS variable expansion print the short 8.3 style file name.
  8886. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8887. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8888. done
  8889. IFS=$lt_save_ifs
  8890. # Convert to MSYS style.
  8891. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8892. ;;
  8893. cygwin*)
  8894. # Convert to unix form, then to dos form, then back to unix form
  8895. # but this time dos style (no spaces!) so that the unix form looks
  8896. # like /cygdrive/c/PROGRA~1:/cygdr...
  8897. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8898. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8899. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8900. ;;
  8901. *)
  8902. sys_lib_search_path_spec="$LIB"
  8903. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8904. # It is most probably a Windows format PATH.
  8905. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8906. else
  8907. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8908. fi
  8909. # FIXME: find the short name or the path components, as spaces are
  8910. # common. (e.g. "Program Files" -> "PROGRA~1")
  8911. ;;
  8912. esac
  8913. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8914. postinstall_cmds='base_file=`basename \${file}`~
  8915. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8916. dldir=$destdir/`dirname \$dlpath`~
  8917. test -d \$dldir || mkdir -p \$dldir~
  8918. $install_prog $dir/$dlname \$dldir/$dlname'
  8919. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8920. dlpath=$dir/\$dldll~
  8921. $RM \$dlpath'
  8922. shlibpath_overrides_runpath=yes
  8923. dynamic_linker='Win32 link.exe'
  8924. ;;
  8925. *)
  8926. # Assume MSVC wrapper
  8927. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8928. dynamic_linker='Win32 ld.exe'
  8929. ;;
  8930. esac
  8931. # FIXME: first we should search . and the directory the executable is in
  8932. shlibpath_var=PATH
  8933. ;;
  8934. darwin* | rhapsody*)
  8935. dynamic_linker="$host_os dyld"
  8936. version_type=darwin
  8937. need_lib_prefix=no
  8938. need_version=no
  8939. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8940. soname_spec='${libname}${release}${major}$shared_ext'
  8941. shlibpath_overrides_runpath=yes
  8942. shlibpath_var=DYLD_LIBRARY_PATH
  8943. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8944. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8945. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8946. ;;
  8947. dgux*)
  8948. version_type=linux # correct to gnu/linux during the next big refactor
  8949. need_lib_prefix=no
  8950. need_version=no
  8951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8952. soname_spec='${libname}${release}${shared_ext}$major'
  8953. shlibpath_var=LD_LIBRARY_PATH
  8954. ;;
  8955. freebsd* | dragonfly*)
  8956. # DragonFly does not have aout. When/if they implement a new
  8957. # versioning mechanism, adjust this.
  8958. if test -x /usr/bin/objformat; then
  8959. objformat=`/usr/bin/objformat`
  8960. else
  8961. case $host_os in
  8962. freebsd[23].*) objformat=aout ;;
  8963. *) objformat=elf ;;
  8964. esac
  8965. fi
  8966. version_type=freebsd-$objformat
  8967. case $version_type in
  8968. freebsd-elf*)
  8969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8970. need_version=no
  8971. need_lib_prefix=no
  8972. ;;
  8973. freebsd-*)
  8974. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8975. need_version=yes
  8976. ;;
  8977. esac
  8978. shlibpath_var=LD_LIBRARY_PATH
  8979. case $host_os in
  8980. freebsd2.*)
  8981. shlibpath_overrides_runpath=yes
  8982. ;;
  8983. freebsd3.[01]* | freebsdelf3.[01]*)
  8984. shlibpath_overrides_runpath=yes
  8985. hardcode_into_libs=yes
  8986. ;;
  8987. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8988. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8989. shlibpath_overrides_runpath=no
  8990. hardcode_into_libs=yes
  8991. ;;
  8992. *) # from 4.6 on, and DragonFly
  8993. shlibpath_overrides_runpath=yes
  8994. hardcode_into_libs=yes
  8995. ;;
  8996. esac
  8997. ;;
  8998. gnu*)
  8999. version_type=linux # correct to gnu/linux during the next big refactor
  9000. need_lib_prefix=no
  9001. need_version=no
  9002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9003. soname_spec='${libname}${release}${shared_ext}$major'
  9004. shlibpath_var=LD_LIBRARY_PATH
  9005. shlibpath_overrides_runpath=no
  9006. hardcode_into_libs=yes
  9007. ;;
  9008. haiku*)
  9009. version_type=linux # correct to gnu/linux during the next big refactor
  9010. need_lib_prefix=no
  9011. need_version=no
  9012. dynamic_linker="$host_os runtime_loader"
  9013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9014. soname_spec='${libname}${release}${shared_ext}$major'
  9015. shlibpath_var=LIBRARY_PATH
  9016. shlibpath_overrides_runpath=yes
  9017. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9018. hardcode_into_libs=yes
  9019. ;;
  9020. hpux9* | hpux10* | hpux11*)
  9021. # Give a soname corresponding to the major version so that dld.sl refuses to
  9022. # link against other versions.
  9023. version_type=sunos
  9024. need_lib_prefix=no
  9025. need_version=no
  9026. case $host_cpu in
  9027. ia64*)
  9028. shrext_cmds='.so'
  9029. hardcode_into_libs=yes
  9030. dynamic_linker="$host_os dld.so"
  9031. shlibpath_var=LD_LIBRARY_PATH
  9032. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9034. soname_spec='${libname}${release}${shared_ext}$major'
  9035. if test "X$HPUX_IA64_MODE" = X32; then
  9036. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9037. else
  9038. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9039. fi
  9040. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9041. ;;
  9042. hppa*64*)
  9043. shrext_cmds='.sl'
  9044. hardcode_into_libs=yes
  9045. dynamic_linker="$host_os dld.sl"
  9046. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9047. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9049. soname_spec='${libname}${release}${shared_ext}$major'
  9050. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9051. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9052. ;;
  9053. *)
  9054. shrext_cmds='.sl'
  9055. dynamic_linker="$host_os dld.sl"
  9056. shlibpath_var=SHLIB_PATH
  9057. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9059. soname_spec='${libname}${release}${shared_ext}$major'
  9060. ;;
  9061. esac
  9062. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9063. postinstall_cmds='chmod 555 $lib'
  9064. # or fails outright, so override atomically:
  9065. install_override_mode=555
  9066. ;;
  9067. interix[3-9]*)
  9068. version_type=linux # correct to gnu/linux during the next big refactor
  9069. need_lib_prefix=no
  9070. need_version=no
  9071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9072. soname_spec='${libname}${release}${shared_ext}$major'
  9073. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9074. shlibpath_var=LD_LIBRARY_PATH
  9075. shlibpath_overrides_runpath=no
  9076. hardcode_into_libs=yes
  9077. ;;
  9078. irix5* | irix6* | nonstopux*)
  9079. case $host_os in
  9080. nonstopux*) version_type=nonstopux ;;
  9081. *)
  9082. if test "$lt_cv_prog_gnu_ld" = yes; then
  9083. version_type=linux # correct to gnu/linux during the next big refactor
  9084. else
  9085. version_type=irix
  9086. fi ;;
  9087. esac
  9088. need_lib_prefix=no
  9089. need_version=no
  9090. soname_spec='${libname}${release}${shared_ext}$major'
  9091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9092. case $host_os in
  9093. irix5* | nonstopux*)
  9094. libsuff= shlibsuff=
  9095. ;;
  9096. *)
  9097. case $LD in # libtool.m4 will add one of these switches to LD
  9098. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9099. libsuff= shlibsuff= libmagic=32-bit;;
  9100. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9101. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9102. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9103. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9104. *) libsuff= shlibsuff= libmagic=never-match;;
  9105. esac
  9106. ;;
  9107. esac
  9108. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9109. shlibpath_overrides_runpath=no
  9110. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9111. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9112. hardcode_into_libs=yes
  9113. ;;
  9114. # No shared lib support for Linux oldld, aout, or coff.
  9115. linux*oldld* | linux*aout* | linux*coff*)
  9116. dynamic_linker=no
  9117. ;;
  9118. # This must be glibc/ELF.
  9119. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9120. version_type=linux # correct to gnu/linux during the next big refactor
  9121. need_lib_prefix=no
  9122. need_version=no
  9123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9124. soname_spec='${libname}${release}${shared_ext}$major'
  9125. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9126. shlibpath_var=LD_LIBRARY_PATH
  9127. shlibpath_overrides_runpath=no
  9128. # Some binutils ld are patched to set DT_RUNPATH
  9129. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9130. $as_echo_n "(cached) " >&6
  9131. else
  9132. lt_cv_shlibpath_overrides_runpath=no
  9133. save_LDFLAGS=$LDFLAGS
  9134. save_libdir=$libdir
  9135. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9136. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9138. /* end confdefs.h. */
  9139. int
  9140. main ()
  9141. {
  9142. ;
  9143. return 0;
  9144. }
  9145. _ACEOF
  9146. if ac_fn_c_try_link "$LINENO"; then :
  9147. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9148. lt_cv_shlibpath_overrides_runpath=yes
  9149. fi
  9150. fi
  9151. rm -f core conftest.err conftest.$ac_objext \
  9152. conftest$ac_exeext conftest.$ac_ext
  9153. LDFLAGS=$save_LDFLAGS
  9154. libdir=$save_libdir
  9155. fi
  9156. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9157. # This implies no fast_install, which is unacceptable.
  9158. # Some rework will be needed to allow for fast_install
  9159. # before this can be enabled.
  9160. hardcode_into_libs=yes
  9161. # Append ld.so.conf contents to the search path
  9162. if test -f /etc/ld.so.conf; then
  9163. 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' ' '`
  9164. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9165. fi
  9166. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9167. # powerpc, because MkLinux only supported shared libraries with the
  9168. # GNU dynamic linker. Since this was broken with cross compilers,
  9169. # most powerpc-linux boxes support dynamic linking these days and
  9170. # people can always --disable-shared, the test was removed, and we
  9171. # assume the GNU/Linux dynamic linker is in use.
  9172. dynamic_linker='GNU/Linux ld.so'
  9173. ;;
  9174. netbsd*)
  9175. version_type=sunos
  9176. need_lib_prefix=no
  9177. need_version=no
  9178. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9180. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9181. dynamic_linker='NetBSD (a.out) ld.so'
  9182. else
  9183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9184. soname_spec='${libname}${release}${shared_ext}$major'
  9185. dynamic_linker='NetBSD ld.elf_so'
  9186. fi
  9187. shlibpath_var=LD_LIBRARY_PATH
  9188. shlibpath_overrides_runpath=yes
  9189. hardcode_into_libs=yes
  9190. ;;
  9191. newsos6)
  9192. version_type=linux # correct to gnu/linux during the next big refactor
  9193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9194. shlibpath_var=LD_LIBRARY_PATH
  9195. shlibpath_overrides_runpath=yes
  9196. ;;
  9197. *nto* | *qnx*)
  9198. version_type=qnx
  9199. need_lib_prefix=no
  9200. need_version=no
  9201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9202. soname_spec='${libname}${release}${shared_ext}$major'
  9203. shlibpath_var=LD_LIBRARY_PATH
  9204. shlibpath_overrides_runpath=no
  9205. hardcode_into_libs=yes
  9206. dynamic_linker='ldqnx.so'
  9207. ;;
  9208. openbsd*)
  9209. version_type=sunos
  9210. sys_lib_dlsearch_path_spec="/usr/lib"
  9211. need_lib_prefix=no
  9212. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9213. case $host_os in
  9214. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9215. *) need_version=no ;;
  9216. esac
  9217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9218. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9219. shlibpath_var=LD_LIBRARY_PATH
  9220. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9221. case $host_os in
  9222. openbsd2.[89] | openbsd2.[89].*)
  9223. shlibpath_overrides_runpath=no
  9224. ;;
  9225. *)
  9226. shlibpath_overrides_runpath=yes
  9227. ;;
  9228. esac
  9229. else
  9230. shlibpath_overrides_runpath=yes
  9231. fi
  9232. ;;
  9233. os2*)
  9234. libname_spec='$name'
  9235. shrext_cmds=".dll"
  9236. need_lib_prefix=no
  9237. library_names_spec='$libname${shared_ext} $libname.a'
  9238. dynamic_linker='OS/2 ld.exe'
  9239. shlibpath_var=LIBPATH
  9240. ;;
  9241. osf3* | osf4* | osf5*)
  9242. version_type=osf
  9243. need_lib_prefix=no
  9244. need_version=no
  9245. soname_spec='${libname}${release}${shared_ext}$major'
  9246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9247. shlibpath_var=LD_LIBRARY_PATH
  9248. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9249. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9250. ;;
  9251. rdos*)
  9252. dynamic_linker=no
  9253. ;;
  9254. solaris*)
  9255. version_type=linux # correct to gnu/linux during the next big refactor
  9256. need_lib_prefix=no
  9257. need_version=no
  9258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9259. soname_spec='${libname}${release}${shared_ext}$major'
  9260. shlibpath_var=LD_LIBRARY_PATH
  9261. shlibpath_overrides_runpath=yes
  9262. hardcode_into_libs=yes
  9263. # ldd complains unless libraries are executable
  9264. postinstall_cmds='chmod +x $lib'
  9265. ;;
  9266. sunos4*)
  9267. version_type=sunos
  9268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9269. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9270. shlibpath_var=LD_LIBRARY_PATH
  9271. shlibpath_overrides_runpath=yes
  9272. if test "$with_gnu_ld" = yes; then
  9273. need_lib_prefix=no
  9274. fi
  9275. need_version=yes
  9276. ;;
  9277. sysv4 | sysv4.3*)
  9278. version_type=linux # correct to gnu/linux during the next big refactor
  9279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9280. soname_spec='${libname}${release}${shared_ext}$major'
  9281. shlibpath_var=LD_LIBRARY_PATH
  9282. case $host_vendor in
  9283. sni)
  9284. shlibpath_overrides_runpath=no
  9285. need_lib_prefix=no
  9286. runpath_var=LD_RUN_PATH
  9287. ;;
  9288. siemens)
  9289. need_lib_prefix=no
  9290. ;;
  9291. motorola)
  9292. need_lib_prefix=no
  9293. need_version=no
  9294. shlibpath_overrides_runpath=no
  9295. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9296. ;;
  9297. esac
  9298. ;;
  9299. sysv4*MP*)
  9300. if test -d /usr/nec ;then
  9301. version_type=linux # correct to gnu/linux during the next big refactor
  9302. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9303. soname_spec='$libname${shared_ext}.$major'
  9304. shlibpath_var=LD_LIBRARY_PATH
  9305. fi
  9306. ;;
  9307. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9308. version_type=freebsd-elf
  9309. need_lib_prefix=no
  9310. need_version=no
  9311. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9312. soname_spec='${libname}${release}${shared_ext}$major'
  9313. shlibpath_var=LD_LIBRARY_PATH
  9314. shlibpath_overrides_runpath=yes
  9315. hardcode_into_libs=yes
  9316. if test "$with_gnu_ld" = yes; then
  9317. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9318. else
  9319. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9320. case $host_os in
  9321. sco3.2v5*)
  9322. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9323. ;;
  9324. esac
  9325. fi
  9326. sys_lib_dlsearch_path_spec='/usr/lib'
  9327. ;;
  9328. tpf*)
  9329. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9330. version_type=linux # correct to gnu/linux during the next big refactor
  9331. need_lib_prefix=no
  9332. need_version=no
  9333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9334. shlibpath_var=LD_LIBRARY_PATH
  9335. shlibpath_overrides_runpath=no
  9336. hardcode_into_libs=yes
  9337. ;;
  9338. uts4*)
  9339. version_type=linux # correct to gnu/linux during the next big refactor
  9340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9341. soname_spec='${libname}${release}${shared_ext}$major'
  9342. shlibpath_var=LD_LIBRARY_PATH
  9343. ;;
  9344. *)
  9345. dynamic_linker=no
  9346. ;;
  9347. esac
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9349. $as_echo "$dynamic_linker" >&6; }
  9350. test "$dynamic_linker" = no && can_build_shared=no
  9351. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9352. if test "$GCC" = yes; then
  9353. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9354. fi
  9355. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9356. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9357. fi
  9358. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9359. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9360. fi
  9361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9362. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9363. hardcode_action=
  9364. if test -n "$hardcode_libdir_flag_spec" ||
  9365. test -n "$runpath_var" ||
  9366. test "X$hardcode_automatic" = "Xyes" ; then
  9367. # We can hardcode non-existent directories.
  9368. if test "$hardcode_direct" != no &&
  9369. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9370. # have to relink, otherwise we might link with an installed library
  9371. # when we should be linking with a yet-to-be-installed one
  9372. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9373. test "$hardcode_minus_L" != no; then
  9374. # Linking always hardcodes the temporary library directory.
  9375. hardcode_action=relink
  9376. else
  9377. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9378. hardcode_action=immediate
  9379. fi
  9380. else
  9381. # We cannot hardcode anything, or else we can only hardcode existing
  9382. # directories.
  9383. hardcode_action=unsupported
  9384. fi
  9385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9386. $as_echo "$hardcode_action" >&6; }
  9387. if test "$hardcode_action" = relink ||
  9388. test "$inherit_rpath" = yes; then
  9389. # Fast installation is not supported
  9390. enable_fast_install=no
  9391. elif test "$shlibpath_overrides_runpath" = yes ||
  9392. test "$enable_shared" = no; then
  9393. # Fast installation is not necessary
  9394. enable_fast_install=needless
  9395. fi
  9396. if test "x$enable_dlopen" != xyes; then
  9397. enable_dlopen=unknown
  9398. enable_dlopen_self=unknown
  9399. enable_dlopen_self_static=unknown
  9400. else
  9401. lt_cv_dlopen=no
  9402. lt_cv_dlopen_libs=
  9403. case $host_os in
  9404. beos*)
  9405. lt_cv_dlopen="load_add_on"
  9406. lt_cv_dlopen_libs=
  9407. lt_cv_dlopen_self=yes
  9408. ;;
  9409. mingw* | pw32* | cegcc*)
  9410. lt_cv_dlopen="LoadLibrary"
  9411. lt_cv_dlopen_libs=
  9412. ;;
  9413. cygwin*)
  9414. lt_cv_dlopen="dlopen"
  9415. lt_cv_dlopen_libs=
  9416. ;;
  9417. darwin*)
  9418. # if libdl is installed we need to link against it
  9419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9420. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9421. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9422. $as_echo_n "(cached) " >&6
  9423. else
  9424. ac_check_lib_save_LIBS=$LIBS
  9425. LIBS="-ldl $LIBS"
  9426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9427. /* end confdefs.h. */
  9428. /* Override any GCC internal prototype to avoid an error.
  9429. Use char because int might match the return type of a GCC
  9430. builtin and then its argument prototype would still apply. */
  9431. #ifdef __cplusplus
  9432. extern "C"
  9433. #endif
  9434. char dlopen ();
  9435. int
  9436. main ()
  9437. {
  9438. return dlopen ();
  9439. ;
  9440. return 0;
  9441. }
  9442. _ACEOF
  9443. if ac_fn_c_try_link "$LINENO"; then :
  9444. ac_cv_lib_dl_dlopen=yes
  9445. else
  9446. ac_cv_lib_dl_dlopen=no
  9447. fi
  9448. rm -f core conftest.err conftest.$ac_objext \
  9449. conftest$ac_exeext conftest.$ac_ext
  9450. LIBS=$ac_check_lib_save_LIBS
  9451. fi
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9453. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9454. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9455. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9456. else
  9457. lt_cv_dlopen="dyld"
  9458. lt_cv_dlopen_libs=
  9459. lt_cv_dlopen_self=yes
  9460. fi
  9461. ;;
  9462. *)
  9463. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9464. if test "x$ac_cv_func_shl_load" = xyes; then :
  9465. lt_cv_dlopen="shl_load"
  9466. else
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9468. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9469. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9470. $as_echo_n "(cached) " >&6
  9471. else
  9472. ac_check_lib_save_LIBS=$LIBS
  9473. LIBS="-ldld $LIBS"
  9474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9475. /* end confdefs.h. */
  9476. /* Override any GCC internal prototype to avoid an error.
  9477. Use char because int might match the return type of a GCC
  9478. builtin and then its argument prototype would still apply. */
  9479. #ifdef __cplusplus
  9480. extern "C"
  9481. #endif
  9482. char shl_load ();
  9483. int
  9484. main ()
  9485. {
  9486. return shl_load ();
  9487. ;
  9488. return 0;
  9489. }
  9490. _ACEOF
  9491. if ac_fn_c_try_link "$LINENO"; then :
  9492. ac_cv_lib_dld_shl_load=yes
  9493. else
  9494. ac_cv_lib_dld_shl_load=no
  9495. fi
  9496. rm -f core conftest.err conftest.$ac_objext \
  9497. conftest$ac_exeext conftest.$ac_ext
  9498. LIBS=$ac_check_lib_save_LIBS
  9499. fi
  9500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9501. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9502. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9503. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9504. else
  9505. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9506. if test "x$ac_cv_func_dlopen" = xyes; then :
  9507. lt_cv_dlopen="dlopen"
  9508. else
  9509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9510. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9511. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9512. $as_echo_n "(cached) " >&6
  9513. else
  9514. ac_check_lib_save_LIBS=$LIBS
  9515. LIBS="-ldl $LIBS"
  9516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9517. /* end confdefs.h. */
  9518. /* Override any GCC internal prototype to avoid an error.
  9519. Use char because int might match the return type of a GCC
  9520. builtin and then its argument prototype would still apply. */
  9521. #ifdef __cplusplus
  9522. extern "C"
  9523. #endif
  9524. char dlopen ();
  9525. int
  9526. main ()
  9527. {
  9528. return dlopen ();
  9529. ;
  9530. return 0;
  9531. }
  9532. _ACEOF
  9533. if ac_fn_c_try_link "$LINENO"; then :
  9534. ac_cv_lib_dl_dlopen=yes
  9535. else
  9536. ac_cv_lib_dl_dlopen=no
  9537. fi
  9538. rm -f core conftest.err conftest.$ac_objext \
  9539. conftest$ac_exeext conftest.$ac_ext
  9540. LIBS=$ac_check_lib_save_LIBS
  9541. fi
  9542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9543. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9544. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9545. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9546. else
  9547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9548. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9549. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9550. $as_echo_n "(cached) " >&6
  9551. else
  9552. ac_check_lib_save_LIBS=$LIBS
  9553. LIBS="-lsvld $LIBS"
  9554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9555. /* end confdefs.h. */
  9556. /* Override any GCC internal prototype to avoid an error.
  9557. Use char because int might match the return type of a GCC
  9558. builtin and then its argument prototype would still apply. */
  9559. #ifdef __cplusplus
  9560. extern "C"
  9561. #endif
  9562. char dlopen ();
  9563. int
  9564. main ()
  9565. {
  9566. return dlopen ();
  9567. ;
  9568. return 0;
  9569. }
  9570. _ACEOF
  9571. if ac_fn_c_try_link "$LINENO"; then :
  9572. ac_cv_lib_svld_dlopen=yes
  9573. else
  9574. ac_cv_lib_svld_dlopen=no
  9575. fi
  9576. rm -f core conftest.err conftest.$ac_objext \
  9577. conftest$ac_exeext conftest.$ac_ext
  9578. LIBS=$ac_check_lib_save_LIBS
  9579. fi
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9581. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9582. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9583. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9584. else
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9586. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9587. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9588. $as_echo_n "(cached) " >&6
  9589. else
  9590. ac_check_lib_save_LIBS=$LIBS
  9591. LIBS="-ldld $LIBS"
  9592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9593. /* end confdefs.h. */
  9594. /* Override any GCC internal prototype to avoid an error.
  9595. Use char because int might match the return type of a GCC
  9596. builtin and then its argument prototype would still apply. */
  9597. #ifdef __cplusplus
  9598. extern "C"
  9599. #endif
  9600. char dld_link ();
  9601. int
  9602. main ()
  9603. {
  9604. return dld_link ();
  9605. ;
  9606. return 0;
  9607. }
  9608. _ACEOF
  9609. if ac_fn_c_try_link "$LINENO"; then :
  9610. ac_cv_lib_dld_dld_link=yes
  9611. else
  9612. ac_cv_lib_dld_dld_link=no
  9613. fi
  9614. rm -f core conftest.err conftest.$ac_objext \
  9615. conftest$ac_exeext conftest.$ac_ext
  9616. LIBS=$ac_check_lib_save_LIBS
  9617. fi
  9618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9619. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9620. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9621. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9622. fi
  9623. fi
  9624. fi
  9625. fi
  9626. fi
  9627. fi
  9628. ;;
  9629. esac
  9630. if test "x$lt_cv_dlopen" != xno; then
  9631. enable_dlopen=yes
  9632. else
  9633. enable_dlopen=no
  9634. fi
  9635. case $lt_cv_dlopen in
  9636. dlopen)
  9637. save_CPPFLAGS="$CPPFLAGS"
  9638. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9639. save_LDFLAGS="$LDFLAGS"
  9640. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9641. save_LIBS="$LIBS"
  9642. LIBS="$lt_cv_dlopen_libs $LIBS"
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9644. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9645. if ${lt_cv_dlopen_self+:} false; then :
  9646. $as_echo_n "(cached) " >&6
  9647. else
  9648. if test "$cross_compiling" = yes; then :
  9649. lt_cv_dlopen_self=cross
  9650. else
  9651. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9652. lt_status=$lt_dlunknown
  9653. cat > conftest.$ac_ext <<_LT_EOF
  9654. #line $LINENO "configure"
  9655. #include "confdefs.h"
  9656. #if HAVE_DLFCN_H
  9657. #include <dlfcn.h>
  9658. #endif
  9659. #include <stdio.h>
  9660. #ifdef RTLD_GLOBAL
  9661. # define LT_DLGLOBAL RTLD_GLOBAL
  9662. #else
  9663. # ifdef DL_GLOBAL
  9664. # define LT_DLGLOBAL DL_GLOBAL
  9665. # else
  9666. # define LT_DLGLOBAL 0
  9667. # endif
  9668. #endif
  9669. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9670. find out it does not work in some platform. */
  9671. #ifndef LT_DLLAZY_OR_NOW
  9672. # ifdef RTLD_LAZY
  9673. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9674. # else
  9675. # ifdef DL_LAZY
  9676. # define LT_DLLAZY_OR_NOW DL_LAZY
  9677. # else
  9678. # ifdef RTLD_NOW
  9679. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9680. # else
  9681. # ifdef DL_NOW
  9682. # define LT_DLLAZY_OR_NOW DL_NOW
  9683. # else
  9684. # define LT_DLLAZY_OR_NOW 0
  9685. # endif
  9686. # endif
  9687. # endif
  9688. # endif
  9689. #endif
  9690. /* When -fvisbility=hidden is used, assume the code has been annotated
  9691. correspondingly for the symbols needed. */
  9692. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9693. int fnord () __attribute__((visibility("default")));
  9694. #endif
  9695. int fnord () { return 42; }
  9696. int main ()
  9697. {
  9698. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9699. int status = $lt_dlunknown;
  9700. if (self)
  9701. {
  9702. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9703. else
  9704. {
  9705. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9706. else puts (dlerror ());
  9707. }
  9708. /* dlclose (self); */
  9709. }
  9710. else
  9711. puts (dlerror ());
  9712. return status;
  9713. }
  9714. _LT_EOF
  9715. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9716. (eval $ac_link) 2>&5
  9717. ac_status=$?
  9718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9719. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9720. (./conftest; exit; ) >&5 2>/dev/null
  9721. lt_status=$?
  9722. case x$lt_status in
  9723. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9724. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9725. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9726. esac
  9727. else :
  9728. # compilation failed
  9729. lt_cv_dlopen_self=no
  9730. fi
  9731. fi
  9732. rm -fr conftest*
  9733. fi
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9735. $as_echo "$lt_cv_dlopen_self" >&6; }
  9736. if test "x$lt_cv_dlopen_self" = xyes; then
  9737. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9739. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9740. if ${lt_cv_dlopen_self_static+:} false; then :
  9741. $as_echo_n "(cached) " >&6
  9742. else
  9743. if test "$cross_compiling" = yes; then :
  9744. lt_cv_dlopen_self_static=cross
  9745. else
  9746. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9747. lt_status=$lt_dlunknown
  9748. cat > conftest.$ac_ext <<_LT_EOF
  9749. #line $LINENO "configure"
  9750. #include "confdefs.h"
  9751. #if HAVE_DLFCN_H
  9752. #include <dlfcn.h>
  9753. #endif
  9754. #include <stdio.h>
  9755. #ifdef RTLD_GLOBAL
  9756. # define LT_DLGLOBAL RTLD_GLOBAL
  9757. #else
  9758. # ifdef DL_GLOBAL
  9759. # define LT_DLGLOBAL DL_GLOBAL
  9760. # else
  9761. # define LT_DLGLOBAL 0
  9762. # endif
  9763. #endif
  9764. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9765. find out it does not work in some platform. */
  9766. #ifndef LT_DLLAZY_OR_NOW
  9767. # ifdef RTLD_LAZY
  9768. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9769. # else
  9770. # ifdef DL_LAZY
  9771. # define LT_DLLAZY_OR_NOW DL_LAZY
  9772. # else
  9773. # ifdef RTLD_NOW
  9774. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9775. # else
  9776. # ifdef DL_NOW
  9777. # define LT_DLLAZY_OR_NOW DL_NOW
  9778. # else
  9779. # define LT_DLLAZY_OR_NOW 0
  9780. # endif
  9781. # endif
  9782. # endif
  9783. # endif
  9784. #endif
  9785. /* When -fvisbility=hidden is used, assume the code has been annotated
  9786. correspondingly for the symbols needed. */
  9787. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9788. int fnord () __attribute__((visibility("default")));
  9789. #endif
  9790. int fnord () { return 42; }
  9791. int main ()
  9792. {
  9793. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9794. int status = $lt_dlunknown;
  9795. if (self)
  9796. {
  9797. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9798. else
  9799. {
  9800. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9801. else puts (dlerror ());
  9802. }
  9803. /* dlclose (self); */
  9804. }
  9805. else
  9806. puts (dlerror ());
  9807. return status;
  9808. }
  9809. _LT_EOF
  9810. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9811. (eval $ac_link) 2>&5
  9812. ac_status=$?
  9813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9814. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9815. (./conftest; exit; ) >&5 2>/dev/null
  9816. lt_status=$?
  9817. case x$lt_status in
  9818. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9819. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9820. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9821. esac
  9822. else :
  9823. # compilation failed
  9824. lt_cv_dlopen_self_static=no
  9825. fi
  9826. fi
  9827. rm -fr conftest*
  9828. fi
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9830. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9831. fi
  9832. CPPFLAGS="$save_CPPFLAGS"
  9833. LDFLAGS="$save_LDFLAGS"
  9834. LIBS="$save_LIBS"
  9835. ;;
  9836. esac
  9837. case $lt_cv_dlopen_self in
  9838. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9839. *) enable_dlopen_self=unknown ;;
  9840. esac
  9841. case $lt_cv_dlopen_self_static in
  9842. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9843. *) enable_dlopen_self_static=unknown ;;
  9844. esac
  9845. fi
  9846. striplib=
  9847. old_striplib=
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9849. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9850. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9851. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9852. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9854. $as_echo "yes" >&6; }
  9855. else
  9856. # FIXME - insert some real tests, host_os isn't really good enough
  9857. case $host_os in
  9858. darwin*)
  9859. if test -n "$STRIP" ; then
  9860. striplib="$STRIP -x"
  9861. old_striplib="$STRIP -S"
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9863. $as_echo "yes" >&6; }
  9864. else
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9866. $as_echo "no" >&6; }
  9867. fi
  9868. ;;
  9869. *)
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9871. $as_echo "no" >&6; }
  9872. ;;
  9873. esac
  9874. fi
  9875. # Report which library types will actually be built
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9877. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9879. $as_echo "$can_build_shared" >&6; }
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9881. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9882. test "$can_build_shared" = "no" && enable_shared=no
  9883. # On AIX, shared libraries and static libraries use the same namespace, and
  9884. # are all built from PIC.
  9885. case $host_os in
  9886. aix3*)
  9887. test "$enable_shared" = yes && enable_static=no
  9888. if test -n "$RANLIB"; then
  9889. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9890. postinstall_cmds='$RANLIB $lib'
  9891. fi
  9892. ;;
  9893. aix[4-9]*)
  9894. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9895. test "$enable_shared" = yes && enable_static=no
  9896. fi
  9897. ;;
  9898. esac
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9900. $as_echo "$enable_shared" >&6; }
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9902. $as_echo_n "checking whether to build static libraries... " >&6; }
  9903. # Make sure either enable_shared or enable_static is yes.
  9904. test "$enable_shared" = yes || enable_static=yes
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9906. $as_echo "$enable_static" >&6; }
  9907. fi
  9908. ac_ext=c
  9909. ac_cpp='$CPP $CPPFLAGS'
  9910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9913. CC="$lt_save_CC"
  9914. ac_config_commands="$ac_config_commands libtool"
  9915. # Only expand once:
  9916. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9917. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9918. LT_REVISION=$SDL_INTERFACE_AGE
  9919. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9920. ac_ext=c
  9921. ac_cpp='$CPP $CPPFLAGS'
  9922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9925. if test -n "$ac_tool_prefix"; then
  9926. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9927. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9929. $as_echo_n "checking for $ac_word... " >&6; }
  9930. if ${ac_cv_prog_CC+:} false; then :
  9931. $as_echo_n "(cached) " >&6
  9932. else
  9933. if test -n "$CC"; then
  9934. ac_cv_prog_CC="$CC" # Let the user override the test.
  9935. else
  9936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9937. for as_dir in $PATH
  9938. do
  9939. IFS=$as_save_IFS
  9940. test -z "$as_dir" && as_dir=.
  9941. for ac_exec_ext in '' $ac_executable_extensions; do
  9942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9943. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9945. break 2
  9946. fi
  9947. done
  9948. done
  9949. IFS=$as_save_IFS
  9950. fi
  9951. fi
  9952. CC=$ac_cv_prog_CC
  9953. if test -n "$CC"; then
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9955. $as_echo "$CC" >&6; }
  9956. else
  9957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9958. $as_echo "no" >&6; }
  9959. fi
  9960. fi
  9961. if test -z "$ac_cv_prog_CC"; then
  9962. ac_ct_CC=$CC
  9963. # Extract the first word of "gcc", so it can be a program name with args.
  9964. set dummy gcc; ac_word=$2
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9966. $as_echo_n "checking for $ac_word... " >&6; }
  9967. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. if test -n "$ac_ct_CC"; then
  9971. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9972. else
  9973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9974. for as_dir in $PATH
  9975. do
  9976. IFS=$as_save_IFS
  9977. test -z "$as_dir" && as_dir=.
  9978. for ac_exec_ext in '' $ac_executable_extensions; do
  9979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9980. ac_cv_prog_ac_ct_CC="gcc"
  9981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9982. break 2
  9983. fi
  9984. done
  9985. done
  9986. IFS=$as_save_IFS
  9987. fi
  9988. fi
  9989. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9990. if test -n "$ac_ct_CC"; then
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9992. $as_echo "$ac_ct_CC" >&6; }
  9993. else
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9995. $as_echo "no" >&6; }
  9996. fi
  9997. if test "x$ac_ct_CC" = x; then
  9998. CC=""
  9999. else
  10000. case $cross_compiling:$ac_tool_warned in
  10001. yes:)
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10004. ac_tool_warned=yes ;;
  10005. esac
  10006. CC=$ac_ct_CC
  10007. fi
  10008. else
  10009. CC="$ac_cv_prog_CC"
  10010. fi
  10011. if test -z "$CC"; then
  10012. if test -n "$ac_tool_prefix"; then
  10013. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10014. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10016. $as_echo_n "checking for $ac_word... " >&6; }
  10017. if ${ac_cv_prog_CC+:} false; then :
  10018. $as_echo_n "(cached) " >&6
  10019. else
  10020. if test -n "$CC"; then
  10021. ac_cv_prog_CC="$CC" # Let the user override the test.
  10022. else
  10023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10024. for as_dir in $PATH
  10025. do
  10026. IFS=$as_save_IFS
  10027. test -z "$as_dir" && as_dir=.
  10028. for ac_exec_ext in '' $ac_executable_extensions; do
  10029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10030. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10032. break 2
  10033. fi
  10034. done
  10035. done
  10036. IFS=$as_save_IFS
  10037. fi
  10038. fi
  10039. CC=$ac_cv_prog_CC
  10040. if test -n "$CC"; then
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10042. $as_echo "$CC" >&6; }
  10043. else
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10045. $as_echo "no" >&6; }
  10046. fi
  10047. fi
  10048. fi
  10049. if test -z "$CC"; then
  10050. # Extract the first word of "cc", so it can be a program name with args.
  10051. set dummy cc; ac_word=$2
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10053. $as_echo_n "checking for $ac_word... " >&6; }
  10054. if ${ac_cv_prog_CC+:} false; then :
  10055. $as_echo_n "(cached) " >&6
  10056. else
  10057. if test -n "$CC"; then
  10058. ac_cv_prog_CC="$CC" # Let the user override the test.
  10059. else
  10060. ac_prog_rejected=no
  10061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10062. for as_dir in $PATH
  10063. do
  10064. IFS=$as_save_IFS
  10065. test -z "$as_dir" && as_dir=.
  10066. for ac_exec_ext in '' $ac_executable_extensions; do
  10067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10068. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10069. ac_prog_rejected=yes
  10070. continue
  10071. fi
  10072. ac_cv_prog_CC="cc"
  10073. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10074. break 2
  10075. fi
  10076. done
  10077. done
  10078. IFS=$as_save_IFS
  10079. if test $ac_prog_rejected = yes; then
  10080. # We found a bogon in the path, so make sure we never use it.
  10081. set dummy $ac_cv_prog_CC
  10082. shift
  10083. if test $# != 0; then
  10084. # We chose a different compiler from the bogus one.
  10085. # However, it has the same basename, so the bogon will be chosen
  10086. # first if we set CC to just the basename; use the full file name.
  10087. shift
  10088. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10089. fi
  10090. fi
  10091. fi
  10092. fi
  10093. CC=$ac_cv_prog_CC
  10094. if test -n "$CC"; then
  10095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10096. $as_echo "$CC" >&6; }
  10097. else
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10099. $as_echo "no" >&6; }
  10100. fi
  10101. fi
  10102. if test -z "$CC"; then
  10103. if test -n "$ac_tool_prefix"; then
  10104. for ac_prog in cl.exe
  10105. do
  10106. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10107. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10109. $as_echo_n "checking for $ac_word... " >&6; }
  10110. if ${ac_cv_prog_CC+:} false; then :
  10111. $as_echo_n "(cached) " >&6
  10112. else
  10113. if test -n "$CC"; then
  10114. ac_cv_prog_CC="$CC" # Let the user override the test.
  10115. else
  10116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10117. for as_dir in $PATH
  10118. do
  10119. IFS=$as_save_IFS
  10120. test -z "$as_dir" && as_dir=.
  10121. for ac_exec_ext in '' $ac_executable_extensions; do
  10122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10123. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10125. break 2
  10126. fi
  10127. done
  10128. done
  10129. IFS=$as_save_IFS
  10130. fi
  10131. fi
  10132. CC=$ac_cv_prog_CC
  10133. if test -n "$CC"; then
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10135. $as_echo "$CC" >&6; }
  10136. else
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10138. $as_echo "no" >&6; }
  10139. fi
  10140. test -n "$CC" && break
  10141. done
  10142. fi
  10143. if test -z "$CC"; then
  10144. ac_ct_CC=$CC
  10145. for ac_prog in cl.exe
  10146. do
  10147. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10148. set dummy $ac_prog; ac_word=$2
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10150. $as_echo_n "checking for $ac_word... " >&6; }
  10151. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10152. $as_echo_n "(cached) " >&6
  10153. else
  10154. if test -n "$ac_ct_CC"; then
  10155. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10156. else
  10157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10158. for as_dir in $PATH
  10159. do
  10160. IFS=$as_save_IFS
  10161. test -z "$as_dir" && as_dir=.
  10162. for ac_exec_ext in '' $ac_executable_extensions; do
  10163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10164. ac_cv_prog_ac_ct_CC="$ac_prog"
  10165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10166. break 2
  10167. fi
  10168. done
  10169. done
  10170. IFS=$as_save_IFS
  10171. fi
  10172. fi
  10173. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10174. if test -n "$ac_ct_CC"; then
  10175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10176. $as_echo "$ac_ct_CC" >&6; }
  10177. else
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10179. $as_echo "no" >&6; }
  10180. fi
  10181. test -n "$ac_ct_CC" && break
  10182. done
  10183. if test "x$ac_ct_CC" = x; then
  10184. CC=""
  10185. else
  10186. case $cross_compiling:$ac_tool_warned in
  10187. yes:)
  10188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10189. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10190. ac_tool_warned=yes ;;
  10191. esac
  10192. CC=$ac_ct_CC
  10193. fi
  10194. fi
  10195. fi
  10196. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10197. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10198. as_fn_error $? "no acceptable C compiler found in \$PATH
  10199. See \`config.log' for more details" "$LINENO" 5; }
  10200. # Provide some information about the compiler.
  10201. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10202. set X $ac_compile
  10203. ac_compiler=$2
  10204. for ac_option in --version -v -V -qversion; do
  10205. { { ac_try="$ac_compiler $ac_option >&5"
  10206. case "(($ac_try" in
  10207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10208. *) ac_try_echo=$ac_try;;
  10209. esac
  10210. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10211. $as_echo "$ac_try_echo"; } >&5
  10212. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10213. ac_status=$?
  10214. if test -s conftest.err; then
  10215. sed '10a\
  10216. ... rest of stderr output deleted ...
  10217. 10q' conftest.err >conftest.er1
  10218. cat conftest.er1 >&5
  10219. fi
  10220. rm -f conftest.er1 conftest.err
  10221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10222. test $ac_status = 0; }
  10223. done
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10225. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10226. if ${ac_cv_c_compiler_gnu+:} false; then :
  10227. $as_echo_n "(cached) " >&6
  10228. else
  10229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10230. /* end confdefs.h. */
  10231. int
  10232. main ()
  10233. {
  10234. #ifndef __GNUC__
  10235. choke me
  10236. #endif
  10237. ;
  10238. return 0;
  10239. }
  10240. _ACEOF
  10241. if ac_fn_c_try_compile "$LINENO"; then :
  10242. ac_compiler_gnu=yes
  10243. else
  10244. ac_compiler_gnu=no
  10245. fi
  10246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10247. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10248. fi
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10250. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10251. if test $ac_compiler_gnu = yes; then
  10252. GCC=yes
  10253. else
  10254. GCC=
  10255. fi
  10256. ac_test_CFLAGS=${CFLAGS+set}
  10257. ac_save_CFLAGS=$CFLAGS
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10259. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10260. if ${ac_cv_prog_cc_g+:} false; then :
  10261. $as_echo_n "(cached) " >&6
  10262. else
  10263. ac_save_c_werror_flag=$ac_c_werror_flag
  10264. ac_c_werror_flag=yes
  10265. ac_cv_prog_cc_g=no
  10266. CFLAGS="-g"
  10267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10268. /* end confdefs.h. */
  10269. int
  10270. main ()
  10271. {
  10272. ;
  10273. return 0;
  10274. }
  10275. _ACEOF
  10276. if ac_fn_c_try_compile "$LINENO"; then :
  10277. ac_cv_prog_cc_g=yes
  10278. else
  10279. CFLAGS=""
  10280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10281. /* end confdefs.h. */
  10282. int
  10283. main ()
  10284. {
  10285. ;
  10286. return 0;
  10287. }
  10288. _ACEOF
  10289. if ac_fn_c_try_compile "$LINENO"; then :
  10290. else
  10291. ac_c_werror_flag=$ac_save_c_werror_flag
  10292. CFLAGS="-g"
  10293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10294. /* end confdefs.h. */
  10295. int
  10296. main ()
  10297. {
  10298. ;
  10299. return 0;
  10300. }
  10301. _ACEOF
  10302. if ac_fn_c_try_compile "$LINENO"; then :
  10303. ac_cv_prog_cc_g=yes
  10304. fi
  10305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10306. fi
  10307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10308. fi
  10309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10310. ac_c_werror_flag=$ac_save_c_werror_flag
  10311. fi
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10313. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10314. if test "$ac_test_CFLAGS" = set; then
  10315. CFLAGS=$ac_save_CFLAGS
  10316. elif test $ac_cv_prog_cc_g = yes; then
  10317. if test "$GCC" = yes; then
  10318. CFLAGS="-g -O2"
  10319. else
  10320. CFLAGS="-g"
  10321. fi
  10322. else
  10323. if test "$GCC" = yes; then
  10324. CFLAGS="-O2"
  10325. else
  10326. CFLAGS=
  10327. fi
  10328. fi
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10330. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10331. if ${ac_cv_prog_cc_c89+:} false; then :
  10332. $as_echo_n "(cached) " >&6
  10333. else
  10334. ac_cv_prog_cc_c89=no
  10335. ac_save_CC=$CC
  10336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10337. /* end confdefs.h. */
  10338. #include <stdarg.h>
  10339. #include <stdio.h>
  10340. struct stat;
  10341. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10342. struct buf { int x; };
  10343. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10344. static char *e (p, i)
  10345. char **p;
  10346. int i;
  10347. {
  10348. return p[i];
  10349. }
  10350. static char *f (char * (*g) (char **, int), char **p, ...)
  10351. {
  10352. char *s;
  10353. va_list v;
  10354. va_start (v,p);
  10355. s = g (p, va_arg (v,int));
  10356. va_end (v);
  10357. return s;
  10358. }
  10359. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10360. function prototypes and stuff, but not '\xHH' hex character constants.
  10361. These don't provoke an error unfortunately, instead are silently treated
  10362. as 'x'. The following induces an error, until -std is added to get
  10363. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10364. array size at least. It's necessary to write '\x00'==0 to get something
  10365. that's true only with -std. */
  10366. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10367. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10368. inside strings and character constants. */
  10369. #define FOO(x) 'x'
  10370. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10371. int test (int i, double x);
  10372. struct s1 {int (*f) (int a);};
  10373. struct s2 {int (*f) (double a);};
  10374. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10375. int argc;
  10376. char **argv;
  10377. int
  10378. main ()
  10379. {
  10380. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10381. ;
  10382. return 0;
  10383. }
  10384. _ACEOF
  10385. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10386. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10387. do
  10388. CC="$ac_save_CC $ac_arg"
  10389. if ac_fn_c_try_compile "$LINENO"; then :
  10390. ac_cv_prog_cc_c89=$ac_arg
  10391. fi
  10392. rm -f core conftest.err conftest.$ac_objext
  10393. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10394. done
  10395. rm -f conftest.$ac_ext
  10396. CC=$ac_save_CC
  10397. fi
  10398. # AC_CACHE_VAL
  10399. case "x$ac_cv_prog_cc_c89" in
  10400. x)
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10402. $as_echo "none needed" >&6; } ;;
  10403. xno)
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10405. $as_echo "unsupported" >&6; } ;;
  10406. *)
  10407. CC="$CC $ac_cv_prog_cc_c89"
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10409. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10410. esac
  10411. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10412. fi
  10413. ac_ext=c
  10414. ac_cpp='$CPP $CPPFLAGS'
  10415. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10416. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10417. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10418. ac_ext=cpp
  10419. ac_cpp='$CXXCPP $CPPFLAGS'
  10420. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10421. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10422. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10423. if test -z "$CXX"; then
  10424. if test -n "$CCC"; then
  10425. CXX=$CCC
  10426. else
  10427. if test -n "$ac_tool_prefix"; then
  10428. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10429. do
  10430. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10431. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10433. $as_echo_n "checking for $ac_word... " >&6; }
  10434. if ${ac_cv_prog_CXX+:} false; then :
  10435. $as_echo_n "(cached) " >&6
  10436. else
  10437. if test -n "$CXX"; then
  10438. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10439. else
  10440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10441. for as_dir in $PATH
  10442. do
  10443. IFS=$as_save_IFS
  10444. test -z "$as_dir" && as_dir=.
  10445. for ac_exec_ext in '' $ac_executable_extensions; do
  10446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10447. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10449. break 2
  10450. fi
  10451. done
  10452. done
  10453. IFS=$as_save_IFS
  10454. fi
  10455. fi
  10456. CXX=$ac_cv_prog_CXX
  10457. if test -n "$CXX"; then
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10459. $as_echo "$CXX" >&6; }
  10460. else
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10462. $as_echo "no" >&6; }
  10463. fi
  10464. test -n "$CXX" && break
  10465. done
  10466. fi
  10467. if test -z "$CXX"; then
  10468. ac_ct_CXX=$CXX
  10469. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10470. do
  10471. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10472. set dummy $ac_prog; ac_word=$2
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10474. $as_echo_n "checking for $ac_word... " >&6; }
  10475. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10476. $as_echo_n "(cached) " >&6
  10477. else
  10478. if test -n "$ac_ct_CXX"; then
  10479. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10480. else
  10481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10482. for as_dir in $PATH
  10483. do
  10484. IFS=$as_save_IFS
  10485. test -z "$as_dir" && as_dir=.
  10486. for ac_exec_ext in '' $ac_executable_extensions; do
  10487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10488. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10490. break 2
  10491. fi
  10492. done
  10493. done
  10494. IFS=$as_save_IFS
  10495. fi
  10496. fi
  10497. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10498. if test -n "$ac_ct_CXX"; then
  10499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10500. $as_echo "$ac_ct_CXX" >&6; }
  10501. else
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10503. $as_echo "no" >&6; }
  10504. fi
  10505. test -n "$ac_ct_CXX" && break
  10506. done
  10507. if test "x$ac_ct_CXX" = x; then
  10508. CXX="g++"
  10509. else
  10510. case $cross_compiling:$ac_tool_warned in
  10511. yes:)
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10514. ac_tool_warned=yes ;;
  10515. esac
  10516. CXX=$ac_ct_CXX
  10517. fi
  10518. fi
  10519. fi
  10520. fi
  10521. # Provide some information about the compiler.
  10522. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10523. set X $ac_compile
  10524. ac_compiler=$2
  10525. for ac_option in --version -v -V -qversion; do
  10526. { { ac_try="$ac_compiler $ac_option >&5"
  10527. case "(($ac_try" in
  10528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10529. *) ac_try_echo=$ac_try;;
  10530. esac
  10531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10532. $as_echo "$ac_try_echo"; } >&5
  10533. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10534. ac_status=$?
  10535. if test -s conftest.err; then
  10536. sed '10a\
  10537. ... rest of stderr output deleted ...
  10538. 10q' conftest.err >conftest.er1
  10539. cat conftest.er1 >&5
  10540. fi
  10541. rm -f conftest.er1 conftest.err
  10542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10543. test $ac_status = 0; }
  10544. done
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10546. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10547. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10548. $as_echo_n "(cached) " >&6
  10549. else
  10550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10551. /* end confdefs.h. */
  10552. int
  10553. main ()
  10554. {
  10555. #ifndef __GNUC__
  10556. choke me
  10557. #endif
  10558. ;
  10559. return 0;
  10560. }
  10561. _ACEOF
  10562. if ac_fn_cxx_try_compile "$LINENO"; then :
  10563. ac_compiler_gnu=yes
  10564. else
  10565. ac_compiler_gnu=no
  10566. fi
  10567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10568. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10569. fi
  10570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10571. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10572. if test $ac_compiler_gnu = yes; then
  10573. GXX=yes
  10574. else
  10575. GXX=
  10576. fi
  10577. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10578. ac_save_CXXFLAGS=$CXXFLAGS
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10580. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10581. if ${ac_cv_prog_cxx_g+:} false; then :
  10582. $as_echo_n "(cached) " >&6
  10583. else
  10584. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10585. ac_cxx_werror_flag=yes
  10586. ac_cv_prog_cxx_g=no
  10587. CXXFLAGS="-g"
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. int
  10591. main ()
  10592. {
  10593. ;
  10594. return 0;
  10595. }
  10596. _ACEOF
  10597. if ac_fn_cxx_try_compile "$LINENO"; then :
  10598. ac_cv_prog_cxx_g=yes
  10599. else
  10600. CXXFLAGS=""
  10601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10602. /* end confdefs.h. */
  10603. int
  10604. main ()
  10605. {
  10606. ;
  10607. return 0;
  10608. }
  10609. _ACEOF
  10610. if ac_fn_cxx_try_compile "$LINENO"; then :
  10611. else
  10612. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10613. CXXFLAGS="-g"
  10614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10615. /* end confdefs.h. */
  10616. int
  10617. main ()
  10618. {
  10619. ;
  10620. return 0;
  10621. }
  10622. _ACEOF
  10623. if ac_fn_cxx_try_compile "$LINENO"; then :
  10624. ac_cv_prog_cxx_g=yes
  10625. fi
  10626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10627. fi
  10628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10629. fi
  10630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10631. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10632. fi
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10634. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10635. if test "$ac_test_CXXFLAGS" = set; then
  10636. CXXFLAGS=$ac_save_CXXFLAGS
  10637. elif test $ac_cv_prog_cxx_g = yes; then
  10638. if test "$GXX" = yes; then
  10639. CXXFLAGS="-g -O2"
  10640. else
  10641. CXXFLAGS="-g"
  10642. fi
  10643. else
  10644. if test "$GXX" = yes; then
  10645. CXXFLAGS="-O2"
  10646. else
  10647. CXXFLAGS=
  10648. fi
  10649. fi
  10650. ac_ext=c
  10651. ac_cpp='$CPP $CPPFLAGS'
  10652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10655. func_stripname_cnf ()
  10656. {
  10657. case ${2} in
  10658. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10659. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10660. esac
  10661. } # func_stripname_cnf
  10662. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10663. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10664. (test "X$CXX" != "Xg++"))) ; then
  10665. ac_ext=cpp
  10666. ac_cpp='$CXXCPP $CPPFLAGS'
  10667. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10668. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10669. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10671. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10672. if test -z "$CXXCPP"; then
  10673. if ${ac_cv_prog_CXXCPP+:} false; then :
  10674. $as_echo_n "(cached) " >&6
  10675. else
  10676. # Double quotes because CXXCPP needs to be expanded
  10677. for CXXCPP in "$CXX -E" "/lib/cpp"
  10678. do
  10679. ac_preproc_ok=false
  10680. for ac_cxx_preproc_warn_flag in '' yes
  10681. do
  10682. # Use a header file that comes with gcc, so configuring glibc
  10683. # with a fresh cross-compiler works.
  10684. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10685. # <limits.h> exists even on freestanding compilers.
  10686. # On the NeXT, cc -E runs the code through the compiler's parser,
  10687. # not just through cpp. "Syntax error" is here to catch this case.
  10688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10689. /* end confdefs.h. */
  10690. #ifdef __STDC__
  10691. # include <limits.h>
  10692. #else
  10693. # include <assert.h>
  10694. #endif
  10695. Syntax error
  10696. _ACEOF
  10697. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10698. else
  10699. # Broken: fails on valid input.
  10700. continue
  10701. fi
  10702. rm -f conftest.err conftest.i conftest.$ac_ext
  10703. # OK, works on sane cases. Now check whether nonexistent headers
  10704. # can be detected and how.
  10705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10706. /* end confdefs.h. */
  10707. #include <ac_nonexistent.h>
  10708. _ACEOF
  10709. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10710. # Broken: success on invalid input.
  10711. continue
  10712. else
  10713. # Passes both tests.
  10714. ac_preproc_ok=:
  10715. break
  10716. fi
  10717. rm -f conftest.err conftest.i conftest.$ac_ext
  10718. done
  10719. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10720. rm -f conftest.i conftest.err conftest.$ac_ext
  10721. if $ac_preproc_ok; then :
  10722. break
  10723. fi
  10724. done
  10725. ac_cv_prog_CXXCPP=$CXXCPP
  10726. fi
  10727. CXXCPP=$ac_cv_prog_CXXCPP
  10728. else
  10729. ac_cv_prog_CXXCPP=$CXXCPP
  10730. fi
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10732. $as_echo "$CXXCPP" >&6; }
  10733. ac_preproc_ok=false
  10734. for ac_cxx_preproc_warn_flag in '' yes
  10735. do
  10736. # Use a header file that comes with gcc, so configuring glibc
  10737. # with a fresh cross-compiler works.
  10738. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10739. # <limits.h> exists even on freestanding compilers.
  10740. # On the NeXT, cc -E runs the code through the compiler's parser,
  10741. # not just through cpp. "Syntax error" is here to catch this case.
  10742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10743. /* end confdefs.h. */
  10744. #ifdef __STDC__
  10745. # include <limits.h>
  10746. #else
  10747. # include <assert.h>
  10748. #endif
  10749. Syntax error
  10750. _ACEOF
  10751. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10752. else
  10753. # Broken: fails on valid input.
  10754. continue
  10755. fi
  10756. rm -f conftest.err conftest.i conftest.$ac_ext
  10757. # OK, works on sane cases. Now check whether nonexistent headers
  10758. # can be detected and how.
  10759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10760. /* end confdefs.h. */
  10761. #include <ac_nonexistent.h>
  10762. _ACEOF
  10763. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10764. # Broken: success on invalid input.
  10765. continue
  10766. else
  10767. # Passes both tests.
  10768. ac_preproc_ok=:
  10769. break
  10770. fi
  10771. rm -f conftest.err conftest.i conftest.$ac_ext
  10772. done
  10773. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10774. rm -f conftest.i conftest.err conftest.$ac_ext
  10775. if $ac_preproc_ok; then :
  10776. else
  10777. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10778. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10779. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10780. See \`config.log' for more details" "$LINENO" 5; }
  10781. fi
  10782. ac_ext=c
  10783. ac_cpp='$CPP $CPPFLAGS'
  10784. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10785. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10786. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10787. else
  10788. _lt_caught_CXX_error=yes
  10789. fi
  10790. ac_ext=cpp
  10791. ac_cpp='$CXXCPP $CPPFLAGS'
  10792. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10793. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10794. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10795. archive_cmds_need_lc_CXX=no
  10796. allow_undefined_flag_CXX=
  10797. always_export_symbols_CXX=no
  10798. archive_expsym_cmds_CXX=
  10799. compiler_needs_object_CXX=no
  10800. export_dynamic_flag_spec_CXX=
  10801. hardcode_direct_CXX=no
  10802. hardcode_direct_absolute_CXX=no
  10803. hardcode_libdir_flag_spec_CXX=
  10804. hardcode_libdir_separator_CXX=
  10805. hardcode_minus_L_CXX=no
  10806. hardcode_shlibpath_var_CXX=unsupported
  10807. hardcode_automatic_CXX=no
  10808. inherit_rpath_CXX=no
  10809. module_cmds_CXX=
  10810. module_expsym_cmds_CXX=
  10811. link_all_deplibs_CXX=unknown
  10812. old_archive_cmds_CXX=$old_archive_cmds
  10813. reload_flag_CXX=$reload_flag
  10814. reload_cmds_CXX=$reload_cmds
  10815. no_undefined_flag_CXX=
  10816. whole_archive_flag_spec_CXX=
  10817. enable_shared_with_static_runtimes_CXX=no
  10818. # Source file extension for C++ test sources.
  10819. ac_ext=cpp
  10820. # Object file extension for compiled C++ test sources.
  10821. objext=o
  10822. objext_CXX=$objext
  10823. # No sense in running all these tests if we already determined that
  10824. # the CXX compiler isn't working. Some variables (like enable_shared)
  10825. # are currently assumed to apply to all compilers on this platform,
  10826. # and will be corrupted by setting them based on a non-working compiler.
  10827. if test "$_lt_caught_CXX_error" != yes; then
  10828. # Code to be used in simple compile tests
  10829. lt_simple_compile_test_code="int some_variable = 0;"
  10830. # Code to be used in simple link tests
  10831. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10832. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10833. # If no C compiler was specified, use CC.
  10834. LTCC=${LTCC-"$CC"}
  10835. # If no C compiler flags were specified, use CFLAGS.
  10836. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10837. # Allow CC to be a program name with arguments.
  10838. compiler=$CC
  10839. # save warnings/boilerplate of simple test code
  10840. ac_outfile=conftest.$ac_objext
  10841. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10842. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10843. _lt_compiler_boilerplate=`cat conftest.err`
  10844. $RM conftest*
  10845. ac_outfile=conftest.$ac_objext
  10846. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10847. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10848. _lt_linker_boilerplate=`cat conftest.err`
  10849. $RM -r conftest*
  10850. # Allow CC to be a program name with arguments.
  10851. lt_save_CC=$CC
  10852. lt_save_CFLAGS=$CFLAGS
  10853. lt_save_LD=$LD
  10854. lt_save_GCC=$GCC
  10855. GCC=$GXX
  10856. lt_save_with_gnu_ld=$with_gnu_ld
  10857. lt_save_path_LD=$lt_cv_path_LD
  10858. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10859. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10860. else
  10861. $as_unset lt_cv_prog_gnu_ld
  10862. fi
  10863. if test -n "${lt_cv_path_LDCXX+set}"; then
  10864. lt_cv_path_LD=$lt_cv_path_LDCXX
  10865. else
  10866. $as_unset lt_cv_path_LD
  10867. fi
  10868. test -z "${LDCXX+set}" || LD=$LDCXX
  10869. CC=${CXX-"c++"}
  10870. CFLAGS=$CXXFLAGS
  10871. compiler=$CC
  10872. compiler_CXX=$CC
  10873. for cc_temp in $compiler""; do
  10874. case $cc_temp in
  10875. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10876. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10877. \-*) ;;
  10878. *) break;;
  10879. esac
  10880. done
  10881. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10882. if test -n "$compiler"; then
  10883. # We don't want -fno-exception when compiling C++ code, so set the
  10884. # no_builtin_flag separately
  10885. if test "$GXX" = yes; then
  10886. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10887. else
  10888. lt_prog_compiler_no_builtin_flag_CXX=
  10889. fi
  10890. if test "$GXX" = yes; then
  10891. # Set up default GNU C++ configuration
  10892. # Check whether --with-gnu-ld was given.
  10893. if test "${with_gnu_ld+set}" = set; then :
  10894. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10895. else
  10896. with_gnu_ld=no
  10897. fi
  10898. ac_prog=ld
  10899. if test "$GCC" = yes; then
  10900. # Check if gcc -print-prog-name=ld gives a path.
  10901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10902. $as_echo_n "checking for ld used by $CC... " >&6; }
  10903. case $host in
  10904. *-*-mingw*)
  10905. # gcc leaves a trailing carriage return which upsets mingw
  10906. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10907. *)
  10908. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10909. esac
  10910. case $ac_prog in
  10911. # Accept absolute paths.
  10912. [\\/]* | ?:[\\/]*)
  10913. re_direlt='/[^/][^/]*/\.\./'
  10914. # Canonicalize the pathname of ld
  10915. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10916. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10917. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10918. done
  10919. test -z "$LD" && LD="$ac_prog"
  10920. ;;
  10921. "")
  10922. # If it fails, then pretend we aren't using GCC.
  10923. ac_prog=ld
  10924. ;;
  10925. *)
  10926. # If it is relative, then search for the first ld in PATH.
  10927. with_gnu_ld=unknown
  10928. ;;
  10929. esac
  10930. elif test "$with_gnu_ld" = yes; then
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10932. $as_echo_n "checking for GNU ld... " >&6; }
  10933. else
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10935. $as_echo_n "checking for non-GNU ld... " >&6; }
  10936. fi
  10937. if ${lt_cv_path_LD+:} false; then :
  10938. $as_echo_n "(cached) " >&6
  10939. else
  10940. if test -z "$LD"; then
  10941. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10942. for ac_dir in $PATH; do
  10943. IFS="$lt_save_ifs"
  10944. test -z "$ac_dir" && ac_dir=.
  10945. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10946. lt_cv_path_LD="$ac_dir/$ac_prog"
  10947. # Check to see if the program is GNU ld. I'd rather use --version,
  10948. # but apparently some variants of GNU ld only accept -v.
  10949. # Break only if it was the GNU/non-GNU ld that we prefer.
  10950. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10951. *GNU* | *'with BFD'*)
  10952. test "$with_gnu_ld" != no && break
  10953. ;;
  10954. *)
  10955. test "$with_gnu_ld" != yes && break
  10956. ;;
  10957. esac
  10958. fi
  10959. done
  10960. IFS="$lt_save_ifs"
  10961. else
  10962. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10963. fi
  10964. fi
  10965. LD="$lt_cv_path_LD"
  10966. if test -n "$LD"; then
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10968. $as_echo "$LD" >&6; }
  10969. else
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10971. $as_echo "no" >&6; }
  10972. fi
  10973. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10975. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10976. if ${lt_cv_prog_gnu_ld+:} false; then :
  10977. $as_echo_n "(cached) " >&6
  10978. else
  10979. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10980. case `$LD -v 2>&1 </dev/null` in
  10981. *GNU* | *'with BFD'*)
  10982. lt_cv_prog_gnu_ld=yes
  10983. ;;
  10984. *)
  10985. lt_cv_prog_gnu_ld=no
  10986. ;;
  10987. esac
  10988. fi
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10990. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10991. with_gnu_ld=$lt_cv_prog_gnu_ld
  10992. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10993. # archiving commands below assume that GNU ld is being used.
  10994. if test "$with_gnu_ld" = yes; then
  10995. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10996. 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'
  10997. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10998. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10999. # If archive_cmds runs LD, not CC, wlarc should be empty
  11000. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11001. # investigate it a little bit more. (MM)
  11002. wlarc='${wl}'
  11003. # ancient GNU ld didn't support --whole-archive et. al.
  11004. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11005. $GREP 'no-whole-archive' > /dev/null; then
  11006. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11007. else
  11008. whole_archive_flag_spec_CXX=
  11009. fi
  11010. else
  11011. with_gnu_ld=no
  11012. wlarc=
  11013. # A generic and very simple default shared library creation
  11014. # command for GNU C++ for the case where it uses the native
  11015. # linker, instead of GNU ld. If possible, this setting should
  11016. # overridden to take advantage of the native linker features on
  11017. # the platform it is being used on.
  11018. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11019. fi
  11020. # Commands to make compiler produce verbose output that lists
  11021. # what "hidden" libraries, object files and flags are used when
  11022. # linking a shared library.
  11023. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11024. else
  11025. GXX=no
  11026. with_gnu_ld=no
  11027. wlarc=
  11028. fi
  11029. # PORTME: fill in a description of your system's C++ link characteristics
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11031. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11032. ld_shlibs_CXX=yes
  11033. case $host_os in
  11034. aix3*)
  11035. # FIXME: insert proper C++ library support
  11036. ld_shlibs_CXX=no
  11037. ;;
  11038. aix[4-9]*)
  11039. if test "$host_cpu" = ia64; then
  11040. # On IA64, the linker does run time linking by default, so we don't
  11041. # have to do anything special.
  11042. aix_use_runtimelinking=no
  11043. exp_sym_flag='-Bexport'
  11044. no_entry_flag=""
  11045. else
  11046. aix_use_runtimelinking=no
  11047. # Test if we are trying to use run time linking or normal
  11048. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11049. # need to do runtime linking.
  11050. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11051. for ld_flag in $LDFLAGS; do
  11052. case $ld_flag in
  11053. *-brtl*)
  11054. aix_use_runtimelinking=yes
  11055. break
  11056. ;;
  11057. esac
  11058. done
  11059. ;;
  11060. esac
  11061. exp_sym_flag='-bexport'
  11062. no_entry_flag='-bnoentry'
  11063. fi
  11064. # When large executables or shared objects are built, AIX ld can
  11065. # have problems creating the table of contents. If linking a library
  11066. # or program results in "error TOC overflow" add -mminimal-toc to
  11067. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11068. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11069. archive_cmds_CXX=''
  11070. hardcode_direct_CXX=yes
  11071. hardcode_direct_absolute_CXX=yes
  11072. hardcode_libdir_separator_CXX=':'
  11073. link_all_deplibs_CXX=yes
  11074. file_list_spec_CXX='${wl}-f,'
  11075. if test "$GXX" = yes; then
  11076. case $host_os in aix4.[012]|aix4.[012].*)
  11077. # We only want to do this on AIX 4.2 and lower, the check
  11078. # below for broken collect2 doesn't work under 4.3+
  11079. collect2name=`${CC} -print-prog-name=collect2`
  11080. if test -f "$collect2name" &&
  11081. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11082. then
  11083. # We have reworked collect2
  11084. :
  11085. else
  11086. # We have old collect2
  11087. hardcode_direct_CXX=unsupported
  11088. # It fails to find uninstalled libraries when the uninstalled
  11089. # path is not listed in the libpath. Setting hardcode_minus_L
  11090. # to unsupported forces relinking
  11091. hardcode_minus_L_CXX=yes
  11092. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11093. hardcode_libdir_separator_CXX=
  11094. fi
  11095. esac
  11096. shared_flag='-shared'
  11097. if test "$aix_use_runtimelinking" = yes; then
  11098. shared_flag="$shared_flag "'${wl}-G'
  11099. fi
  11100. else
  11101. # not using gcc
  11102. if test "$host_cpu" = ia64; then
  11103. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11104. # chokes on -Wl,-G. The following line is correct:
  11105. shared_flag='-G'
  11106. else
  11107. if test "$aix_use_runtimelinking" = yes; then
  11108. shared_flag='${wl}-G'
  11109. else
  11110. shared_flag='${wl}-bM:SRE'
  11111. fi
  11112. fi
  11113. fi
  11114. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11115. # It seems that -bexpall does not export symbols beginning with
  11116. # underscore (_), so it is better to generate a list of symbols to
  11117. # export.
  11118. always_export_symbols_CXX=yes
  11119. if test "$aix_use_runtimelinking" = yes; then
  11120. # Warning - without using the other runtime loading flags (-brtl),
  11121. # -berok will link without error, but may produce a broken library.
  11122. allow_undefined_flag_CXX='-berok'
  11123. # Determine the default libpath from the value encoded in an empty
  11124. # executable.
  11125. if test "${lt_cv_aix_libpath+set}" = set; then
  11126. aix_libpath=$lt_cv_aix_libpath
  11127. else
  11128. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11129. $as_echo_n "(cached) " >&6
  11130. else
  11131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11132. /* end confdefs.h. */
  11133. int
  11134. main ()
  11135. {
  11136. ;
  11137. return 0;
  11138. }
  11139. _ACEOF
  11140. if ac_fn_cxx_try_link "$LINENO"; then :
  11141. lt_aix_libpath_sed='
  11142. /Import File Strings/,/^$/ {
  11143. /^0/ {
  11144. s/^0 *\([^ ]*\) *$/\1/
  11145. p
  11146. }
  11147. }'
  11148. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11149. # Check for a 64-bit object if we didn't find anything.
  11150. if test -z "$lt_cv_aix_libpath__CXX"; then
  11151. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11152. fi
  11153. fi
  11154. rm -f core conftest.err conftest.$ac_objext \
  11155. conftest$ac_exeext conftest.$ac_ext
  11156. if test -z "$lt_cv_aix_libpath__CXX"; then
  11157. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11158. fi
  11159. fi
  11160. aix_libpath=$lt_cv_aix_libpath__CXX
  11161. fi
  11162. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11163. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11164. else
  11165. if test "$host_cpu" = ia64; then
  11166. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11167. allow_undefined_flag_CXX="-z nodefs"
  11168. 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"
  11169. else
  11170. # Determine the default libpath from the value encoded in an
  11171. # empty executable.
  11172. if test "${lt_cv_aix_libpath+set}" = set; then
  11173. aix_libpath=$lt_cv_aix_libpath
  11174. else
  11175. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11176. $as_echo_n "(cached) " >&6
  11177. else
  11178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11179. /* end confdefs.h. */
  11180. int
  11181. main ()
  11182. {
  11183. ;
  11184. return 0;
  11185. }
  11186. _ACEOF
  11187. if ac_fn_cxx_try_link "$LINENO"; then :
  11188. lt_aix_libpath_sed='
  11189. /Import File Strings/,/^$/ {
  11190. /^0/ {
  11191. s/^0 *\([^ ]*\) *$/\1/
  11192. p
  11193. }
  11194. }'
  11195. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11196. # Check for a 64-bit object if we didn't find anything.
  11197. if test -z "$lt_cv_aix_libpath__CXX"; then
  11198. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11199. fi
  11200. fi
  11201. rm -f core conftest.err conftest.$ac_objext \
  11202. conftest$ac_exeext conftest.$ac_ext
  11203. if test -z "$lt_cv_aix_libpath__CXX"; then
  11204. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11205. fi
  11206. fi
  11207. aix_libpath=$lt_cv_aix_libpath__CXX
  11208. fi
  11209. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11210. # Warning - without using the other run time loading flags,
  11211. # -berok will link without error, but may produce a broken library.
  11212. no_undefined_flag_CXX=' ${wl}-bernotok'
  11213. allow_undefined_flag_CXX=' ${wl}-berok'
  11214. if test "$with_gnu_ld" = yes; then
  11215. # We only use this code for GNU lds that support --whole-archive.
  11216. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11217. else
  11218. # Exported symbols can be pulled into shared objects from archives
  11219. whole_archive_flag_spec_CXX='$convenience'
  11220. fi
  11221. archive_cmds_need_lc_CXX=yes
  11222. # This is similar to how AIX traditionally builds its shared
  11223. # libraries.
  11224. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11225. fi
  11226. fi
  11227. ;;
  11228. beos*)
  11229. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11230. allow_undefined_flag_CXX=unsupported
  11231. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11232. # support --undefined. This deserves some investigation. FIXME
  11233. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11234. else
  11235. ld_shlibs_CXX=no
  11236. fi
  11237. ;;
  11238. chorus*)
  11239. case $cc_basename in
  11240. *)
  11241. # FIXME: insert proper C++ library support
  11242. ld_shlibs_CXX=no
  11243. ;;
  11244. esac
  11245. ;;
  11246. cygwin* | mingw* | pw32* | cegcc*)
  11247. case $GXX,$cc_basename in
  11248. ,cl* | no,cl*)
  11249. # Native MSVC
  11250. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11251. # no search path for DLLs.
  11252. hardcode_libdir_flag_spec_CXX=' '
  11253. allow_undefined_flag_CXX=unsupported
  11254. always_export_symbols_CXX=yes
  11255. file_list_spec_CXX='@'
  11256. # Tell ltmain to make .lib files, not .a files.
  11257. libext=lib
  11258. # Tell ltmain to make .dll files, not .so files.
  11259. shrext_cmds=".dll"
  11260. # FIXME: Setting linknames here is a bad hack.
  11261. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11262. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11263. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11264. else
  11265. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11266. fi~
  11267. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11268. linknames='
  11269. # The linker will not automatically build a static lib if we build a DLL.
  11270. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11271. enable_shared_with_static_runtimes_CXX=yes
  11272. # Don't use ranlib
  11273. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11274. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11275. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11276. case $lt_outputfile in
  11277. *.exe|*.EXE) ;;
  11278. *)
  11279. lt_outputfile="$lt_outputfile.exe"
  11280. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11281. ;;
  11282. esac~
  11283. func_to_tool_file "$lt_outputfile"~
  11284. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11285. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11286. $RM "$lt_outputfile.manifest";
  11287. fi'
  11288. ;;
  11289. *)
  11290. # g++
  11291. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11292. # as there is no search path for DLLs.
  11293. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11294. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11295. allow_undefined_flag_CXX=unsupported
  11296. always_export_symbols_CXX=no
  11297. enable_shared_with_static_runtimes_CXX=yes
  11298. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11299. 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'
  11300. # If the export-symbols file already is a .def file (1st line
  11301. # is EXPORTS), use it as is; otherwise, prepend...
  11302. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11303. cp $export_symbols $output_objdir/$soname.def;
  11304. else
  11305. echo EXPORTS > $output_objdir/$soname.def;
  11306. cat $export_symbols >> $output_objdir/$soname.def;
  11307. fi~
  11308. $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'
  11309. else
  11310. ld_shlibs_CXX=no
  11311. fi
  11312. ;;
  11313. esac
  11314. ;;
  11315. darwin* | rhapsody*)
  11316. archive_cmds_need_lc_CXX=no
  11317. hardcode_direct_CXX=no
  11318. hardcode_automatic_CXX=yes
  11319. hardcode_shlibpath_var_CXX=unsupported
  11320. if test "$lt_cv_ld_force_load" = "yes"; then
  11321. 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\"`'
  11322. else
  11323. whole_archive_flag_spec_CXX=''
  11324. fi
  11325. link_all_deplibs_CXX=yes
  11326. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11327. case $cc_basename in
  11328. ifort*) _lt_dar_can_shared=yes ;;
  11329. *) _lt_dar_can_shared=$GCC ;;
  11330. esac
  11331. if test "$_lt_dar_can_shared" = "yes"; then
  11332. output_verbose_link_cmd=func_echo_all
  11333. 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}"
  11334. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11335. 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}"
  11336. 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}"
  11337. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11338. 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}"
  11339. 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}"
  11340. fi
  11341. else
  11342. ld_shlibs_CXX=no
  11343. fi
  11344. ;;
  11345. dgux*)
  11346. case $cc_basename in
  11347. ec++*)
  11348. # FIXME: insert proper C++ library support
  11349. ld_shlibs_CXX=no
  11350. ;;
  11351. ghcx*)
  11352. # Green Hills C++ Compiler
  11353. # FIXME: insert proper C++ library support
  11354. ld_shlibs_CXX=no
  11355. ;;
  11356. *)
  11357. # FIXME: insert proper C++ library support
  11358. ld_shlibs_CXX=no
  11359. ;;
  11360. esac
  11361. ;;
  11362. freebsd2.*)
  11363. # C++ shared libraries reported to be fairly broken before
  11364. # switch to ELF
  11365. ld_shlibs_CXX=no
  11366. ;;
  11367. freebsd-elf*)
  11368. archive_cmds_need_lc_CXX=no
  11369. ;;
  11370. freebsd* | dragonfly*)
  11371. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11372. # conventions
  11373. ld_shlibs_CXX=yes
  11374. ;;
  11375. gnu*)
  11376. ;;
  11377. haiku*)
  11378. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11379. link_all_deplibs_CXX=yes
  11380. ;;
  11381. hpux9*)
  11382. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11383. hardcode_libdir_separator_CXX=:
  11384. export_dynamic_flag_spec_CXX='${wl}-E'
  11385. hardcode_direct_CXX=yes
  11386. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11387. # but as the default
  11388. # location of the library.
  11389. case $cc_basename in
  11390. CC*)
  11391. # FIXME: insert proper C++ library support
  11392. ld_shlibs_CXX=no
  11393. ;;
  11394. aCC*)
  11395. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11396. # Commands to make compiler produce verbose output that lists
  11397. # what "hidden" libraries, object files and flags are used when
  11398. # linking a shared library.
  11399. #
  11400. # There doesn't appear to be a way to prevent this compiler from
  11401. # explicitly linking system object files so we need to strip them
  11402. # from the output so that they don't get included in the library
  11403. # dependencies.
  11404. 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"'
  11405. ;;
  11406. *)
  11407. if test "$GXX" = yes; then
  11408. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11409. else
  11410. # FIXME: insert proper C++ library support
  11411. ld_shlibs_CXX=no
  11412. fi
  11413. ;;
  11414. esac
  11415. ;;
  11416. hpux10*|hpux11*)
  11417. if test $with_gnu_ld = no; then
  11418. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11419. hardcode_libdir_separator_CXX=:
  11420. case $host_cpu in
  11421. hppa*64*|ia64*)
  11422. ;;
  11423. *)
  11424. export_dynamic_flag_spec_CXX='${wl}-E'
  11425. ;;
  11426. esac
  11427. fi
  11428. case $host_cpu in
  11429. hppa*64*|ia64*)
  11430. hardcode_direct_CXX=no
  11431. hardcode_shlibpath_var_CXX=no
  11432. ;;
  11433. *)
  11434. hardcode_direct_CXX=yes
  11435. hardcode_direct_absolute_CXX=yes
  11436. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11437. # but as the default
  11438. # location of the library.
  11439. ;;
  11440. esac
  11441. case $cc_basename in
  11442. CC*)
  11443. # FIXME: insert proper C++ library support
  11444. ld_shlibs_CXX=no
  11445. ;;
  11446. aCC*)
  11447. case $host_cpu in
  11448. hppa*64*)
  11449. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11450. ;;
  11451. ia64*)
  11452. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11453. ;;
  11454. *)
  11455. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11456. ;;
  11457. esac
  11458. # Commands to make compiler produce verbose output that lists
  11459. # what "hidden" libraries, object files and flags are used when
  11460. # linking a shared library.
  11461. #
  11462. # There doesn't appear to be a way to prevent this compiler from
  11463. # explicitly linking system object files so we need to strip them
  11464. # from the output so that they don't get included in the library
  11465. # dependencies.
  11466. 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"'
  11467. ;;
  11468. *)
  11469. if test "$GXX" = yes; then
  11470. if test $with_gnu_ld = no; then
  11471. case $host_cpu in
  11472. hppa*64*)
  11473. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11474. ;;
  11475. ia64*)
  11476. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11477. ;;
  11478. *)
  11479. 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'
  11480. ;;
  11481. esac
  11482. fi
  11483. else
  11484. # FIXME: insert proper C++ library support
  11485. ld_shlibs_CXX=no
  11486. fi
  11487. ;;
  11488. esac
  11489. ;;
  11490. interix[3-9]*)
  11491. hardcode_direct_CXX=no
  11492. hardcode_shlibpath_var_CXX=no
  11493. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11494. export_dynamic_flag_spec_CXX='${wl}-E'
  11495. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11496. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11497. # default) and relocated if they conflict, which is a slow very memory
  11498. # consuming and fragmenting process. To avoid this, we pick a random,
  11499. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11500. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11501. 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'
  11502. 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'
  11503. ;;
  11504. irix5* | irix6*)
  11505. case $cc_basename in
  11506. CC*)
  11507. # SGI C++
  11508. 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'
  11509. # Archives containing C++ object files must be created using
  11510. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11511. # necessary to make sure instantiated templates are included
  11512. # in the archive.
  11513. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11514. ;;
  11515. *)
  11516. if test "$GXX" = yes; then
  11517. if test "$with_gnu_ld" = no; then
  11518. 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'
  11519. else
  11520. 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'
  11521. fi
  11522. fi
  11523. link_all_deplibs_CXX=yes
  11524. ;;
  11525. esac
  11526. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11527. hardcode_libdir_separator_CXX=:
  11528. inherit_rpath_CXX=yes
  11529. ;;
  11530. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11531. case $cc_basename in
  11532. KCC*)
  11533. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11534. # KCC will only create a shared library if the output file
  11535. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11536. # to its proper name (with version) after linking.
  11537. 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'
  11538. 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'
  11539. # Commands to make compiler produce verbose output that lists
  11540. # what "hidden" libraries, object files and flags are used when
  11541. # linking a shared library.
  11542. #
  11543. # There doesn't appear to be a way to prevent this compiler from
  11544. # explicitly linking system object files so we need to strip them
  11545. # from the output so that they don't get included in the library
  11546. # dependencies.
  11547. 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"'
  11548. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11549. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11550. # Archives containing C++ object files must be created using
  11551. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11552. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11553. ;;
  11554. icpc* | ecpc* )
  11555. # Intel C++
  11556. with_gnu_ld=yes
  11557. # version 8.0 and above of icpc choke on multiply defined symbols
  11558. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11559. # earlier do not add the objects themselves.
  11560. case `$CC -V 2>&1` in
  11561. *"Version 7."*)
  11562. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11563. 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'
  11564. ;;
  11565. *) # Version 8.0 or newer
  11566. tmp_idyn=
  11567. case $host_cpu in
  11568. ia64*) tmp_idyn=' -i_dynamic';;
  11569. esac
  11570. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11571. 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'
  11572. ;;
  11573. esac
  11574. archive_cmds_need_lc_CXX=no
  11575. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11576. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11577. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11578. ;;
  11579. pgCC* | pgcpp*)
  11580. # Portland Group C++ compiler
  11581. case `$CC -V` in
  11582. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11583. prelink_cmds_CXX='tpldir=Template.dir~
  11584. rm -rf $tpldir~
  11585. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11586. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11587. old_archive_cmds_CXX='tpldir=Template.dir~
  11588. rm -rf $tpldir~
  11589. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11590. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11591. $RANLIB $oldlib'
  11592. archive_cmds_CXX='tpldir=Template.dir~
  11593. rm -rf $tpldir~
  11594. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11595. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11596. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11597. rm -rf $tpldir~
  11598. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11599. $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'
  11600. ;;
  11601. *) # Version 6 and above use weak symbols
  11602. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11603. 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'
  11604. ;;
  11605. esac
  11606. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11607. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11608. 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'
  11609. ;;
  11610. cxx*)
  11611. # Compaq C++
  11612. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11613. 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'
  11614. runpath_var=LD_RUN_PATH
  11615. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11616. hardcode_libdir_separator_CXX=:
  11617. # Commands to make compiler produce verbose output that lists
  11618. # what "hidden" libraries, object files and flags are used when
  11619. # linking a shared library.
  11620. #
  11621. # There doesn't appear to be a way to prevent this compiler from
  11622. # explicitly linking system object files so we need to strip them
  11623. # from the output so that they don't get included in the library
  11624. # dependencies.
  11625. 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'
  11626. ;;
  11627. xl* | mpixl* | bgxl*)
  11628. # IBM XL 8.0 on PPC, with GNU ld
  11629. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11630. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11631. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11632. if test "x$supports_anon_versioning" = xyes; then
  11633. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11634. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11635. echo "local: *; };" >> $output_objdir/$libname.ver~
  11636. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11637. fi
  11638. ;;
  11639. *)
  11640. case `$CC -V 2>&1 | sed 5q` in
  11641. *Sun\ C*)
  11642. # Sun C++ 5.9
  11643. no_undefined_flag_CXX=' -zdefs'
  11644. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11645. 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'
  11646. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11647. 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'
  11648. compiler_needs_object_CXX=yes
  11649. # Not sure whether something based on
  11650. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11651. # would be better.
  11652. output_verbose_link_cmd='func_echo_all'
  11653. # Archives containing C++ object files must be created using
  11654. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11655. # necessary to make sure instantiated templates are included
  11656. # in the archive.
  11657. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11658. ;;
  11659. esac
  11660. ;;
  11661. esac
  11662. ;;
  11663. lynxos*)
  11664. # FIXME: insert proper C++ library support
  11665. ld_shlibs_CXX=no
  11666. ;;
  11667. m88k*)
  11668. # FIXME: insert proper C++ library support
  11669. ld_shlibs_CXX=no
  11670. ;;
  11671. mvs*)
  11672. case $cc_basename in
  11673. cxx*)
  11674. # FIXME: insert proper C++ library support
  11675. ld_shlibs_CXX=no
  11676. ;;
  11677. *)
  11678. # FIXME: insert proper C++ library support
  11679. ld_shlibs_CXX=no
  11680. ;;
  11681. esac
  11682. ;;
  11683. netbsd*)
  11684. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11685. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11686. wlarc=
  11687. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11688. hardcode_direct_CXX=yes
  11689. hardcode_shlibpath_var_CXX=no
  11690. fi
  11691. # Workaround some broken pre-1.5 toolchains
  11692. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11693. ;;
  11694. *nto* | *qnx*)
  11695. ld_shlibs_CXX=yes
  11696. ;;
  11697. openbsd2*)
  11698. # C++ shared libraries are fairly broken
  11699. ld_shlibs_CXX=no
  11700. ;;
  11701. openbsd*)
  11702. if test -f /usr/libexec/ld.so; then
  11703. hardcode_direct_CXX=yes
  11704. hardcode_shlibpath_var_CXX=no
  11705. hardcode_direct_absolute_CXX=yes
  11706. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11707. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11708. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11709. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11710. export_dynamic_flag_spec_CXX='${wl}-E'
  11711. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11712. fi
  11713. output_verbose_link_cmd=func_echo_all
  11714. else
  11715. ld_shlibs_CXX=no
  11716. fi
  11717. ;;
  11718. osf3* | osf4* | osf5*)
  11719. case $cc_basename in
  11720. KCC*)
  11721. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11722. # KCC will only create a shared library if the output file
  11723. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11724. # to its proper name (with version) after linking.
  11725. 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'
  11726. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11727. hardcode_libdir_separator_CXX=:
  11728. # Archives containing C++ object files must be created using
  11729. # the KAI C++ compiler.
  11730. case $host in
  11731. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11732. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11733. esac
  11734. ;;
  11735. RCC*)
  11736. # Rational C++ 2.4.1
  11737. # FIXME: insert proper C++ library support
  11738. ld_shlibs_CXX=no
  11739. ;;
  11740. cxx*)
  11741. case $host in
  11742. osf3*)
  11743. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11744. 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'
  11745. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11746. ;;
  11747. *)
  11748. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11749. 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'
  11750. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11751. echo "-hidden">> $lib.exp~
  11752. $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~
  11753. $RM $lib.exp'
  11754. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11755. ;;
  11756. esac
  11757. hardcode_libdir_separator_CXX=:
  11758. # Commands to make compiler produce verbose output that lists
  11759. # what "hidden" libraries, object files and flags are used when
  11760. # linking a shared library.
  11761. #
  11762. # There doesn't appear to be a way to prevent this compiler from
  11763. # explicitly linking system object files so we need to strip them
  11764. # from the output so that they don't get included in the library
  11765. # dependencies.
  11766. 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"'
  11767. ;;
  11768. *)
  11769. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11770. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11771. case $host in
  11772. osf3*)
  11773. 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'
  11774. ;;
  11775. *)
  11776. 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'
  11777. ;;
  11778. esac
  11779. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11780. hardcode_libdir_separator_CXX=:
  11781. # Commands to make compiler produce verbose output that lists
  11782. # what "hidden" libraries, object files and flags are used when
  11783. # linking a shared library.
  11784. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11785. else
  11786. # FIXME: insert proper C++ library support
  11787. ld_shlibs_CXX=no
  11788. fi
  11789. ;;
  11790. esac
  11791. ;;
  11792. psos*)
  11793. # FIXME: insert proper C++ library support
  11794. ld_shlibs_CXX=no
  11795. ;;
  11796. sunos4*)
  11797. case $cc_basename in
  11798. CC*)
  11799. # Sun C++ 4.x
  11800. # FIXME: insert proper C++ library support
  11801. ld_shlibs_CXX=no
  11802. ;;
  11803. lcc*)
  11804. # Lucid
  11805. # FIXME: insert proper C++ library support
  11806. ld_shlibs_CXX=no
  11807. ;;
  11808. *)
  11809. # FIXME: insert proper C++ library support
  11810. ld_shlibs_CXX=no
  11811. ;;
  11812. esac
  11813. ;;
  11814. solaris*)
  11815. case $cc_basename in
  11816. CC* | sunCC*)
  11817. # Sun C++ 4.2, 5.x and Centerline C++
  11818. archive_cmds_need_lc_CXX=yes
  11819. no_undefined_flag_CXX=' -zdefs'
  11820. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11821. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11822. $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'
  11823. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11824. hardcode_shlibpath_var_CXX=no
  11825. case $host_os in
  11826. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11827. *)
  11828. # The compiler driver will combine and reorder linker options,
  11829. # but understands `-z linker_flag'.
  11830. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11831. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11832. ;;
  11833. esac
  11834. link_all_deplibs_CXX=yes
  11835. output_verbose_link_cmd='func_echo_all'
  11836. # Archives containing C++ object files must be created using
  11837. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11838. # necessary to make sure instantiated templates are included
  11839. # in the archive.
  11840. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11841. ;;
  11842. gcx*)
  11843. # Green Hills C++ Compiler
  11844. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11845. # The C++ compiler must be used to create the archive.
  11846. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11847. ;;
  11848. *)
  11849. # GNU C++ compiler with Solaris linker
  11850. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11851. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11852. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11853. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11854. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11855. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11856. # Commands to make compiler produce verbose output that lists
  11857. # what "hidden" libraries, object files and flags are used when
  11858. # linking a shared library.
  11859. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11860. else
  11861. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11862. # platform.
  11863. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11864. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11865. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11866. # Commands to make compiler produce verbose output that lists
  11867. # what "hidden" libraries, object files and flags are used when
  11868. # linking a shared library.
  11869. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11870. fi
  11871. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11872. case $host_os in
  11873. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11874. *)
  11875. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11876. ;;
  11877. esac
  11878. fi
  11879. ;;
  11880. esac
  11881. ;;
  11882. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11883. no_undefined_flag_CXX='${wl}-z,text'
  11884. archive_cmds_need_lc_CXX=no
  11885. hardcode_shlibpath_var_CXX=no
  11886. runpath_var='LD_RUN_PATH'
  11887. case $cc_basename in
  11888. CC*)
  11889. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11890. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11891. ;;
  11892. *)
  11893. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11894. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11895. ;;
  11896. esac
  11897. ;;
  11898. sysv5* | sco3.2v5* | sco5v6*)
  11899. # Note: We can NOT use -z defs as we might desire, because we do not
  11900. # link with -lc, and that would cause any symbols used from libc to
  11901. # always be unresolved, which means just about no library would
  11902. # ever link correctly. If we're not using GNU ld we use -z text
  11903. # though, which does catch some bad symbols but isn't as heavy-handed
  11904. # as -z defs.
  11905. no_undefined_flag_CXX='${wl}-z,text'
  11906. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11907. archive_cmds_need_lc_CXX=no
  11908. hardcode_shlibpath_var_CXX=no
  11909. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11910. hardcode_libdir_separator_CXX=':'
  11911. link_all_deplibs_CXX=yes
  11912. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11913. runpath_var='LD_RUN_PATH'
  11914. case $cc_basename in
  11915. CC*)
  11916. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11917. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11918. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11919. '"$old_archive_cmds_CXX"
  11920. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11921. '"$reload_cmds_CXX"
  11922. ;;
  11923. *)
  11924. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11925. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11926. ;;
  11927. esac
  11928. ;;
  11929. tandem*)
  11930. case $cc_basename in
  11931. NCC*)
  11932. # NonStop-UX NCC 3.20
  11933. # FIXME: insert proper C++ library support
  11934. ld_shlibs_CXX=no
  11935. ;;
  11936. *)
  11937. # FIXME: insert proper C++ library support
  11938. ld_shlibs_CXX=no
  11939. ;;
  11940. esac
  11941. ;;
  11942. vxworks*)
  11943. # FIXME: insert proper C++ library support
  11944. ld_shlibs_CXX=no
  11945. ;;
  11946. *)
  11947. # FIXME: insert proper C++ library support
  11948. ld_shlibs_CXX=no
  11949. ;;
  11950. esac
  11951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11952. $as_echo "$ld_shlibs_CXX" >&6; }
  11953. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11954. GCC_CXX="$GXX"
  11955. LD_CXX="$LD"
  11956. ## CAVEAT EMPTOR:
  11957. ## There is no encapsulation within the following macros, do not change
  11958. ## the running order or otherwise move them around unless you know exactly
  11959. ## what you are doing...
  11960. # Dependencies to place before and after the object being linked:
  11961. predep_objects_CXX=
  11962. postdep_objects_CXX=
  11963. predeps_CXX=
  11964. postdeps_CXX=
  11965. compiler_lib_search_path_CXX=
  11966. cat > conftest.$ac_ext <<_LT_EOF
  11967. class Foo
  11968. {
  11969. public:
  11970. Foo (void) { a = 0; }
  11971. private:
  11972. int a;
  11973. };
  11974. _LT_EOF
  11975. _lt_libdeps_save_CFLAGS=$CFLAGS
  11976. case "$CC $CFLAGS " in #(
  11977. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11978. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11979. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11980. esac
  11981. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11982. (eval $ac_compile) 2>&5
  11983. ac_status=$?
  11984. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11985. test $ac_status = 0; }; then
  11986. # Parse the compiler output and extract the necessary
  11987. # objects, libraries and library flags.
  11988. # Sentinel used to keep track of whether or not we are before
  11989. # the conftest object file.
  11990. pre_test_object_deps_done=no
  11991. for p in `eval "$output_verbose_link_cmd"`; do
  11992. case ${prev}${p} in
  11993. -L* | -R* | -l*)
  11994. # Some compilers place space between "-{L,R}" and the path.
  11995. # Remove the space.
  11996. if test $p = "-L" ||
  11997. test $p = "-R"; then
  11998. prev=$p
  11999. continue
  12000. fi
  12001. # Expand the sysroot to ease extracting the directories later.
  12002. if test -z "$prev"; then
  12003. case $p in
  12004. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12005. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12006. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12007. esac
  12008. fi
  12009. case $p in
  12010. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12011. esac
  12012. if test "$pre_test_object_deps_done" = no; then
  12013. case ${prev} in
  12014. -L | -R)
  12015. # Internal compiler library paths should come after those
  12016. # provided the user. The postdeps already come after the
  12017. # user supplied libs so there is no need to process them.
  12018. if test -z "$compiler_lib_search_path_CXX"; then
  12019. compiler_lib_search_path_CXX="${prev}${p}"
  12020. else
  12021. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12022. fi
  12023. ;;
  12024. # The "-l" case would never come before the object being
  12025. # linked, so don't bother handling this case.
  12026. esac
  12027. else
  12028. if test -z "$postdeps_CXX"; then
  12029. postdeps_CXX="${prev}${p}"
  12030. else
  12031. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12032. fi
  12033. fi
  12034. prev=
  12035. ;;
  12036. *.lto.$objext) ;; # Ignore GCC LTO objects
  12037. *.$objext)
  12038. # This assumes that the test object file only shows up
  12039. # once in the compiler output.
  12040. if test "$p" = "conftest.$objext"; then
  12041. pre_test_object_deps_done=yes
  12042. continue
  12043. fi
  12044. if test "$pre_test_object_deps_done" = no; then
  12045. if test -z "$predep_objects_CXX"; then
  12046. predep_objects_CXX="$p"
  12047. else
  12048. predep_objects_CXX="$predep_objects_CXX $p"
  12049. fi
  12050. else
  12051. if test -z "$postdep_objects_CXX"; then
  12052. postdep_objects_CXX="$p"
  12053. else
  12054. postdep_objects_CXX="$postdep_objects_CXX $p"
  12055. fi
  12056. fi
  12057. ;;
  12058. *) ;; # Ignore the rest.
  12059. esac
  12060. done
  12061. # Clean up.
  12062. rm -f a.out a.exe
  12063. else
  12064. echo "libtool.m4: error: problem compiling CXX test program"
  12065. fi
  12066. $RM -f confest.$objext
  12067. CFLAGS=$_lt_libdeps_save_CFLAGS
  12068. # PORTME: override above test on systems where it is broken
  12069. case $host_os in
  12070. interix[3-9]*)
  12071. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12072. # hack all around it, let's just trust "g++" to DTRT.
  12073. predep_objects_CXX=
  12074. postdep_objects_CXX=
  12075. postdeps_CXX=
  12076. ;;
  12077. linux*)
  12078. case `$CC -V 2>&1 | sed 5q` in
  12079. *Sun\ C*)
  12080. # Sun C++ 5.9
  12081. # The more standards-conforming stlport4 library is
  12082. # incompatible with the Cstd library. Avoid specifying
  12083. # it if it's in CXXFLAGS. Ignore libCrun as
  12084. # -library=stlport4 depends on it.
  12085. case " $CXX $CXXFLAGS " in
  12086. *" -library=stlport4 "*)
  12087. solaris_use_stlport4=yes
  12088. ;;
  12089. esac
  12090. if test "$solaris_use_stlport4" != yes; then
  12091. postdeps_CXX='-library=Cstd -library=Crun'
  12092. fi
  12093. ;;
  12094. esac
  12095. ;;
  12096. solaris*)
  12097. case $cc_basename in
  12098. CC* | sunCC*)
  12099. # The more standards-conforming stlport4 library is
  12100. # incompatible with the Cstd library. Avoid specifying
  12101. # it if it's in CXXFLAGS. Ignore libCrun as
  12102. # -library=stlport4 depends on it.
  12103. case " $CXX $CXXFLAGS " in
  12104. *" -library=stlport4 "*)
  12105. solaris_use_stlport4=yes
  12106. ;;
  12107. esac
  12108. # Adding this requires a known-good setup of shared libraries for
  12109. # Sun compiler versions before 5.6, else PIC objects from an old
  12110. # archive will be linked into the output, leading to subtle bugs.
  12111. if test "$solaris_use_stlport4" != yes; then
  12112. postdeps_CXX='-library=Cstd -library=Crun'
  12113. fi
  12114. ;;
  12115. esac
  12116. ;;
  12117. esac
  12118. case " $postdeps_CXX " in
  12119. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12120. esac
  12121. compiler_lib_search_dirs_CXX=
  12122. if test -n "${compiler_lib_search_path_CXX}"; then
  12123. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12124. fi
  12125. lt_prog_compiler_wl_CXX=
  12126. lt_prog_compiler_pic_CXX=
  12127. lt_prog_compiler_static_CXX=
  12128. # C++ specific cases for pic, static, wl, etc.
  12129. if test "$GXX" = yes; then
  12130. lt_prog_compiler_wl_CXX='-Wl,'
  12131. lt_prog_compiler_static_CXX='-static'
  12132. case $host_os in
  12133. aix*)
  12134. # All AIX code is PIC.
  12135. if test "$host_cpu" = ia64; then
  12136. # AIX 5 now supports IA64 processor
  12137. lt_prog_compiler_static_CXX='-Bstatic'
  12138. fi
  12139. ;;
  12140. amigaos*)
  12141. case $host_cpu in
  12142. powerpc)
  12143. # see comment about AmigaOS4 .so support
  12144. lt_prog_compiler_pic_CXX='-fPIC'
  12145. ;;
  12146. m68k)
  12147. # FIXME: we need at least 68020 code to build shared libraries, but
  12148. # adding the `-m68020' flag to GCC prevents building anything better,
  12149. # like `-m68040'.
  12150. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12151. ;;
  12152. esac
  12153. ;;
  12154. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12155. # PIC is the default for these OSes.
  12156. ;;
  12157. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12158. # This hack is so that the source file can tell whether it is being
  12159. # built for inclusion in a dll (and should export symbols for example).
  12160. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12161. # (--disable-auto-import) libraries
  12162. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12163. ;;
  12164. darwin* | rhapsody*)
  12165. # PIC is the default on this platform
  12166. # Common symbols not allowed in MH_DYLIB files
  12167. lt_prog_compiler_pic_CXX='-fno-common'
  12168. ;;
  12169. *djgpp*)
  12170. # DJGPP does not support shared libraries at all
  12171. lt_prog_compiler_pic_CXX=
  12172. ;;
  12173. haiku*)
  12174. # PIC is the default for Haiku.
  12175. # The "-static" flag exists, but is broken.
  12176. lt_prog_compiler_static_CXX=
  12177. ;;
  12178. interix[3-9]*)
  12179. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12180. # Instead, we relocate shared libraries at runtime.
  12181. ;;
  12182. sysv4*MP*)
  12183. if test -d /usr/nec; then
  12184. lt_prog_compiler_pic_CXX=-Kconform_pic
  12185. fi
  12186. ;;
  12187. hpux*)
  12188. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12189. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12190. # sets the default TLS model and affects inlining.
  12191. case $host_cpu in
  12192. hppa*64*)
  12193. ;;
  12194. *)
  12195. lt_prog_compiler_pic_CXX='-fPIC'
  12196. ;;
  12197. esac
  12198. ;;
  12199. *qnx* | *nto*)
  12200. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12201. # it will coredump.
  12202. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12203. ;;
  12204. *)
  12205. lt_prog_compiler_pic_CXX='-fPIC'
  12206. ;;
  12207. esac
  12208. else
  12209. case $host_os in
  12210. aix[4-9]*)
  12211. # All AIX code is PIC.
  12212. if test "$host_cpu" = ia64; then
  12213. # AIX 5 now supports IA64 processor
  12214. lt_prog_compiler_static_CXX='-Bstatic'
  12215. else
  12216. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12217. fi
  12218. ;;
  12219. chorus*)
  12220. case $cc_basename in
  12221. cxch68*)
  12222. # Green Hills C++ Compiler
  12223. # _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"
  12224. ;;
  12225. esac
  12226. ;;
  12227. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12228. # This hack is so that the source file can tell whether it is being
  12229. # built for inclusion in a dll (and should export symbols for example).
  12230. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12231. ;;
  12232. dgux*)
  12233. case $cc_basename in
  12234. ec++*)
  12235. lt_prog_compiler_pic_CXX='-KPIC'
  12236. ;;
  12237. ghcx*)
  12238. # Green Hills C++ Compiler
  12239. lt_prog_compiler_pic_CXX='-pic'
  12240. ;;
  12241. *)
  12242. ;;
  12243. esac
  12244. ;;
  12245. freebsd* | dragonfly*)
  12246. # FreeBSD uses GNU C++
  12247. ;;
  12248. hpux9* | hpux10* | hpux11*)
  12249. case $cc_basename in
  12250. CC*)
  12251. lt_prog_compiler_wl_CXX='-Wl,'
  12252. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12253. if test "$host_cpu" != ia64; then
  12254. lt_prog_compiler_pic_CXX='+Z'
  12255. fi
  12256. ;;
  12257. aCC*)
  12258. lt_prog_compiler_wl_CXX='-Wl,'
  12259. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12260. case $host_cpu in
  12261. hppa*64*|ia64*)
  12262. # +Z the default
  12263. ;;
  12264. *)
  12265. lt_prog_compiler_pic_CXX='+Z'
  12266. ;;
  12267. esac
  12268. ;;
  12269. *)
  12270. ;;
  12271. esac
  12272. ;;
  12273. interix*)
  12274. # This is c89, which is MS Visual C++ (no shared libs)
  12275. # Anyone wants to do a port?
  12276. ;;
  12277. irix5* | irix6* | nonstopux*)
  12278. case $cc_basename in
  12279. CC*)
  12280. lt_prog_compiler_wl_CXX='-Wl,'
  12281. lt_prog_compiler_static_CXX='-non_shared'
  12282. # CC pic flag -KPIC is the default.
  12283. ;;
  12284. *)
  12285. ;;
  12286. esac
  12287. ;;
  12288. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12289. case $cc_basename in
  12290. KCC*)
  12291. # KAI C++ Compiler
  12292. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12293. lt_prog_compiler_pic_CXX='-fPIC'
  12294. ;;
  12295. ecpc* )
  12296. # old Intel C++ for x86_64 which still supported -KPIC.
  12297. lt_prog_compiler_wl_CXX='-Wl,'
  12298. lt_prog_compiler_pic_CXX='-KPIC'
  12299. lt_prog_compiler_static_CXX='-static'
  12300. ;;
  12301. icpc* )
  12302. # Intel C++, used to be incompatible with GCC.
  12303. # ICC 10 doesn't accept -KPIC any more.
  12304. lt_prog_compiler_wl_CXX='-Wl,'
  12305. lt_prog_compiler_pic_CXX='-fPIC'
  12306. lt_prog_compiler_static_CXX='-static'
  12307. ;;
  12308. pgCC* | pgcpp*)
  12309. # Portland Group C++ compiler
  12310. lt_prog_compiler_wl_CXX='-Wl,'
  12311. lt_prog_compiler_pic_CXX='-fpic'
  12312. lt_prog_compiler_static_CXX='-Bstatic'
  12313. ;;
  12314. cxx*)
  12315. # Compaq C++
  12316. # Make sure the PIC flag is empty. It appears that all Alpha
  12317. # Linux and Compaq Tru64 Unix objects are PIC.
  12318. lt_prog_compiler_pic_CXX=
  12319. lt_prog_compiler_static_CXX='-non_shared'
  12320. ;;
  12321. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12322. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12323. lt_prog_compiler_wl_CXX='-Wl,'
  12324. lt_prog_compiler_pic_CXX='-qpic'
  12325. lt_prog_compiler_static_CXX='-qstaticlink'
  12326. ;;
  12327. *)
  12328. case `$CC -V 2>&1 | sed 5q` in
  12329. *Sun\ C*)
  12330. # Sun C++ 5.9
  12331. lt_prog_compiler_pic_CXX='-KPIC'
  12332. lt_prog_compiler_static_CXX='-Bstatic'
  12333. lt_prog_compiler_wl_CXX='-Qoption ld '
  12334. ;;
  12335. esac
  12336. ;;
  12337. esac
  12338. ;;
  12339. lynxos*)
  12340. ;;
  12341. m88k*)
  12342. ;;
  12343. mvs*)
  12344. case $cc_basename in
  12345. cxx*)
  12346. lt_prog_compiler_pic_CXX='-W c,exportall'
  12347. ;;
  12348. *)
  12349. ;;
  12350. esac
  12351. ;;
  12352. netbsd*)
  12353. ;;
  12354. *qnx* | *nto*)
  12355. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12356. # it will coredump.
  12357. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12358. ;;
  12359. osf3* | osf4* | osf5*)
  12360. case $cc_basename in
  12361. KCC*)
  12362. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12363. ;;
  12364. RCC*)
  12365. # Rational C++ 2.4.1
  12366. lt_prog_compiler_pic_CXX='-pic'
  12367. ;;
  12368. cxx*)
  12369. # Digital/Compaq C++
  12370. lt_prog_compiler_wl_CXX='-Wl,'
  12371. # Make sure the PIC flag is empty. It appears that all Alpha
  12372. # Linux and Compaq Tru64 Unix objects are PIC.
  12373. lt_prog_compiler_pic_CXX=
  12374. lt_prog_compiler_static_CXX='-non_shared'
  12375. ;;
  12376. *)
  12377. ;;
  12378. esac
  12379. ;;
  12380. psos*)
  12381. ;;
  12382. solaris*)
  12383. case $cc_basename in
  12384. CC* | sunCC*)
  12385. # Sun C++ 4.2, 5.x and Centerline C++
  12386. lt_prog_compiler_pic_CXX='-KPIC'
  12387. lt_prog_compiler_static_CXX='-Bstatic'
  12388. lt_prog_compiler_wl_CXX='-Qoption ld '
  12389. ;;
  12390. gcx*)
  12391. # Green Hills C++ Compiler
  12392. lt_prog_compiler_pic_CXX='-PIC'
  12393. ;;
  12394. *)
  12395. ;;
  12396. esac
  12397. ;;
  12398. sunos4*)
  12399. case $cc_basename in
  12400. CC*)
  12401. # Sun C++ 4.x
  12402. lt_prog_compiler_pic_CXX='-pic'
  12403. lt_prog_compiler_static_CXX='-Bstatic'
  12404. ;;
  12405. lcc*)
  12406. # Lucid
  12407. lt_prog_compiler_pic_CXX='-pic'
  12408. ;;
  12409. *)
  12410. ;;
  12411. esac
  12412. ;;
  12413. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12414. case $cc_basename in
  12415. CC*)
  12416. lt_prog_compiler_wl_CXX='-Wl,'
  12417. lt_prog_compiler_pic_CXX='-KPIC'
  12418. lt_prog_compiler_static_CXX='-Bstatic'
  12419. ;;
  12420. esac
  12421. ;;
  12422. tandem*)
  12423. case $cc_basename in
  12424. NCC*)
  12425. # NonStop-UX NCC 3.20
  12426. lt_prog_compiler_pic_CXX='-KPIC'
  12427. ;;
  12428. *)
  12429. ;;
  12430. esac
  12431. ;;
  12432. vxworks*)
  12433. ;;
  12434. *)
  12435. lt_prog_compiler_can_build_shared_CXX=no
  12436. ;;
  12437. esac
  12438. fi
  12439. case $host_os in
  12440. # For platforms which do not support PIC, -DPIC is meaningless:
  12441. *djgpp*)
  12442. lt_prog_compiler_pic_CXX=
  12443. ;;
  12444. *)
  12445. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12446. ;;
  12447. esac
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12449. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12450. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12451. $as_echo_n "(cached) " >&6
  12452. else
  12453. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12454. fi
  12455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12456. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12457. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12458. #
  12459. # Check to make sure the PIC flag actually works.
  12460. #
  12461. if test -n "$lt_prog_compiler_pic_CXX"; then
  12462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12463. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12464. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12465. $as_echo_n "(cached) " >&6
  12466. else
  12467. lt_cv_prog_compiler_pic_works_CXX=no
  12468. ac_outfile=conftest.$ac_objext
  12469. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12470. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12471. # Insert the option either (1) after the last *FLAGS variable, or
  12472. # (2) before a word containing "conftest.", or (3) at the end.
  12473. # Note that $ac_compile itself does not contain backslashes and begins
  12474. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12475. # The option is referenced via a variable to avoid confusing sed.
  12476. lt_compile=`echo "$ac_compile" | $SED \
  12477. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12478. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12479. -e 's:$: $lt_compiler_flag:'`
  12480. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12481. (eval "$lt_compile" 2>conftest.err)
  12482. ac_status=$?
  12483. cat conftest.err >&5
  12484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12485. if (exit $ac_status) && test -s "$ac_outfile"; then
  12486. # The compiler can only warn and ignore the option if not recognized
  12487. # So say no if there are warnings other than the usual output.
  12488. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12489. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12490. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12491. lt_cv_prog_compiler_pic_works_CXX=yes
  12492. fi
  12493. fi
  12494. $RM conftest*
  12495. fi
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12497. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12498. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12499. case $lt_prog_compiler_pic_CXX in
  12500. "" | " "*) ;;
  12501. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12502. esac
  12503. else
  12504. lt_prog_compiler_pic_CXX=
  12505. lt_prog_compiler_can_build_shared_CXX=no
  12506. fi
  12507. fi
  12508. #
  12509. # Check to make sure the static flag actually works.
  12510. #
  12511. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12513. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12514. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12515. $as_echo_n "(cached) " >&6
  12516. else
  12517. lt_cv_prog_compiler_static_works_CXX=no
  12518. save_LDFLAGS="$LDFLAGS"
  12519. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12520. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12521. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12522. # The linker can only warn and ignore the option if not recognized
  12523. # So say no if there are warnings
  12524. if test -s conftest.err; then
  12525. # Append any errors to the config.log.
  12526. cat conftest.err 1>&5
  12527. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12528. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12529. if diff conftest.exp conftest.er2 >/dev/null; then
  12530. lt_cv_prog_compiler_static_works_CXX=yes
  12531. fi
  12532. else
  12533. lt_cv_prog_compiler_static_works_CXX=yes
  12534. fi
  12535. fi
  12536. $RM -r conftest*
  12537. LDFLAGS="$save_LDFLAGS"
  12538. fi
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12540. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12541. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12542. :
  12543. else
  12544. lt_prog_compiler_static_CXX=
  12545. fi
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12547. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12548. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12549. $as_echo_n "(cached) " >&6
  12550. else
  12551. lt_cv_prog_compiler_c_o_CXX=no
  12552. $RM -r conftest 2>/dev/null
  12553. mkdir conftest
  12554. cd conftest
  12555. mkdir out
  12556. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12557. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12558. # Insert the option either (1) after the last *FLAGS variable, or
  12559. # (2) before a word containing "conftest.", or (3) at the end.
  12560. # Note that $ac_compile itself does not contain backslashes and begins
  12561. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12562. lt_compile=`echo "$ac_compile" | $SED \
  12563. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12564. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12565. -e 's:$: $lt_compiler_flag:'`
  12566. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12567. (eval "$lt_compile" 2>out/conftest.err)
  12568. ac_status=$?
  12569. cat out/conftest.err >&5
  12570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12571. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12572. then
  12573. # The compiler can only warn and ignore the option if not recognized
  12574. # So say no if there are warnings
  12575. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12576. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12577. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12578. lt_cv_prog_compiler_c_o_CXX=yes
  12579. fi
  12580. fi
  12581. chmod u+w . 2>&5
  12582. $RM conftest*
  12583. # SGI C++ compiler will create directory out/ii_files/ for
  12584. # template instantiation
  12585. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12586. $RM out/* && rmdir out
  12587. cd ..
  12588. $RM -r conftest
  12589. $RM conftest*
  12590. fi
  12591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12592. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12594. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12595. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12596. $as_echo_n "(cached) " >&6
  12597. else
  12598. lt_cv_prog_compiler_c_o_CXX=no
  12599. $RM -r conftest 2>/dev/null
  12600. mkdir conftest
  12601. cd conftest
  12602. mkdir out
  12603. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12604. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12605. # Insert the option either (1) after the last *FLAGS variable, or
  12606. # (2) before a word containing "conftest.", or (3) at the end.
  12607. # Note that $ac_compile itself does not contain backslashes and begins
  12608. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12609. lt_compile=`echo "$ac_compile" | $SED \
  12610. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12611. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12612. -e 's:$: $lt_compiler_flag:'`
  12613. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12614. (eval "$lt_compile" 2>out/conftest.err)
  12615. ac_status=$?
  12616. cat out/conftest.err >&5
  12617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12618. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12619. then
  12620. # The compiler can only warn and ignore the option if not recognized
  12621. # So say no if there are warnings
  12622. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12623. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12624. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12625. lt_cv_prog_compiler_c_o_CXX=yes
  12626. fi
  12627. fi
  12628. chmod u+w . 2>&5
  12629. $RM conftest*
  12630. # SGI C++ compiler will create directory out/ii_files/ for
  12631. # template instantiation
  12632. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12633. $RM out/* && rmdir out
  12634. cd ..
  12635. $RM -r conftest
  12636. $RM conftest*
  12637. fi
  12638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12639. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12640. hard_links="nottested"
  12641. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12642. # do not overwrite the value of need_locks provided by the user
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12644. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12645. hard_links=yes
  12646. $RM conftest*
  12647. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12648. touch conftest.a
  12649. ln conftest.a conftest.b 2>&5 || hard_links=no
  12650. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12652. $as_echo "$hard_links" >&6; }
  12653. if test "$hard_links" = no; then
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12655. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12656. need_locks=warn
  12657. fi
  12658. else
  12659. need_locks=no
  12660. fi
  12661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12662. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12663. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12664. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12665. case $host_os in
  12666. aix[4-9]*)
  12667. # If we're using GNU nm, then we don't want the "-C" option.
  12668. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12669. # Also, AIX nm treats weak defined symbols like other global defined
  12670. # symbols, whereas GNU nm marks them as "W".
  12671. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12672. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12673. else
  12674. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12675. fi
  12676. ;;
  12677. pw32*)
  12678. export_symbols_cmds_CXX="$ltdll_cmds"
  12679. ;;
  12680. cygwin* | mingw* | cegcc*)
  12681. case $cc_basename in
  12682. cl*)
  12683. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12684. ;;
  12685. *)
  12686. 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'
  12687. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12688. ;;
  12689. esac
  12690. ;;
  12691. *)
  12692. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12693. ;;
  12694. esac
  12695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12696. $as_echo "$ld_shlibs_CXX" >&6; }
  12697. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12698. with_gnu_ld_CXX=$with_gnu_ld
  12699. #
  12700. # Do we need to explicitly link libc?
  12701. #
  12702. case "x$archive_cmds_need_lc_CXX" in
  12703. x|xyes)
  12704. # Assume -lc should be added
  12705. archive_cmds_need_lc_CXX=yes
  12706. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12707. case $archive_cmds_CXX in
  12708. *'~'*)
  12709. # FIXME: we may have to deal with multi-command sequences.
  12710. ;;
  12711. '$CC '*)
  12712. # Test whether the compiler implicitly links with -lc since on some
  12713. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12714. # to ld, don't add -lc before -lgcc.
  12715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12716. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12717. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12718. $as_echo_n "(cached) " >&6
  12719. else
  12720. $RM conftest*
  12721. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12723. (eval $ac_compile) 2>&5
  12724. ac_status=$?
  12725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12726. test $ac_status = 0; } 2>conftest.err; then
  12727. soname=conftest
  12728. lib=conftest
  12729. libobjs=conftest.$ac_objext
  12730. deplibs=
  12731. wl=$lt_prog_compiler_wl_CXX
  12732. pic_flag=$lt_prog_compiler_pic_CXX
  12733. compiler_flags=-v
  12734. linker_flags=-v
  12735. verstring=
  12736. output_objdir=.
  12737. libname=conftest
  12738. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12739. allow_undefined_flag_CXX=
  12740. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12741. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12742. ac_status=$?
  12743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12744. test $ac_status = 0; }
  12745. then
  12746. lt_cv_archive_cmds_need_lc_CXX=no
  12747. else
  12748. lt_cv_archive_cmds_need_lc_CXX=yes
  12749. fi
  12750. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12751. else
  12752. cat conftest.err 1>&5
  12753. fi
  12754. $RM conftest*
  12755. fi
  12756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12757. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12758. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12759. ;;
  12760. esac
  12761. fi
  12762. ;;
  12763. esac
  12764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12765. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12766. library_names_spec=
  12767. libname_spec='lib$name'
  12768. soname_spec=
  12769. shrext_cmds=".so"
  12770. postinstall_cmds=
  12771. postuninstall_cmds=
  12772. finish_cmds=
  12773. finish_eval=
  12774. shlibpath_var=
  12775. shlibpath_overrides_runpath=unknown
  12776. version_type=none
  12777. dynamic_linker="$host_os ld.so"
  12778. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12779. need_lib_prefix=unknown
  12780. hardcode_into_libs=no
  12781. # when you set need_version to no, make sure it does not cause -set_version
  12782. # flags to be left without arguments
  12783. need_version=unknown
  12784. case $host_os in
  12785. aix3*)
  12786. version_type=linux # correct to gnu/linux during the next big refactor
  12787. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12788. shlibpath_var=LIBPATH
  12789. # AIX 3 has no versioning support, so we append a major version to the name.
  12790. soname_spec='${libname}${release}${shared_ext}$major'
  12791. ;;
  12792. aix[4-9]*)
  12793. version_type=linux # correct to gnu/linux during the next big refactor
  12794. need_lib_prefix=no
  12795. need_version=no
  12796. hardcode_into_libs=yes
  12797. if test "$host_cpu" = ia64; then
  12798. # AIX 5 supports IA64
  12799. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12800. shlibpath_var=LD_LIBRARY_PATH
  12801. else
  12802. # With GCC up to 2.95.x, collect2 would create an import file
  12803. # for dependence libraries. The import file would start with
  12804. # the line `#! .'. This would cause the generated library to
  12805. # depend on `.', always an invalid library. This was fixed in
  12806. # development snapshots of GCC prior to 3.0.
  12807. case $host_os in
  12808. aix4 | aix4.[01] | aix4.[01].*)
  12809. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12810. echo ' yes '
  12811. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12812. :
  12813. else
  12814. can_build_shared=no
  12815. fi
  12816. ;;
  12817. esac
  12818. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12819. # soname into executable. Probably we can add versioning support to
  12820. # collect2, so additional links can be useful in future.
  12821. if test "$aix_use_runtimelinking" = yes; then
  12822. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12823. # instead of lib<name>.a to let people know that these are not
  12824. # typical AIX shared libraries.
  12825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12826. else
  12827. # We preserve .a as extension for shared libraries through AIX4.2
  12828. # and later when we are not doing run time linking.
  12829. library_names_spec='${libname}${release}.a $libname.a'
  12830. soname_spec='${libname}${release}${shared_ext}$major'
  12831. fi
  12832. shlibpath_var=LIBPATH
  12833. fi
  12834. ;;
  12835. amigaos*)
  12836. case $host_cpu in
  12837. powerpc)
  12838. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12839. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12841. ;;
  12842. m68k)
  12843. library_names_spec='$libname.ixlibrary $libname.a'
  12844. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12845. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12846. ;;
  12847. esac
  12848. ;;
  12849. beos*)
  12850. library_names_spec='${libname}${shared_ext}'
  12851. dynamic_linker="$host_os ld.so"
  12852. shlibpath_var=LIBRARY_PATH
  12853. ;;
  12854. bsdi[45]*)
  12855. version_type=linux # correct to gnu/linux during the next big refactor
  12856. need_version=no
  12857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12858. soname_spec='${libname}${release}${shared_ext}$major'
  12859. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12860. shlibpath_var=LD_LIBRARY_PATH
  12861. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12862. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12863. # the default ld.so.conf also contains /usr/contrib/lib and
  12864. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12865. # libtool to hard-code these into programs
  12866. ;;
  12867. cygwin* | mingw* | pw32* | cegcc*)
  12868. version_type=windows
  12869. shrext_cmds=".dll"
  12870. need_version=no
  12871. need_lib_prefix=no
  12872. case $GCC,$cc_basename in
  12873. yes,*)
  12874. # gcc
  12875. library_names_spec='$libname.dll.a'
  12876. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12877. postinstall_cmds='base_file=`basename \${file}`~
  12878. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12879. dldir=$destdir/`dirname \$dlpath`~
  12880. test -d \$dldir || mkdir -p \$dldir~
  12881. $install_prog $dir/$dlname \$dldir/$dlname~
  12882. chmod a+x \$dldir/$dlname~
  12883. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12884. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12885. fi'
  12886. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12887. dlpath=$dir/\$dldll~
  12888. $RM \$dlpath'
  12889. shlibpath_overrides_runpath=yes
  12890. case $host_os in
  12891. cygwin*)
  12892. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12893. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12894. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12895. ;;
  12896. mingw* | cegcc*)
  12897. # MinGW DLLs use traditional 'lib' prefix
  12898. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12899. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12900. ;;
  12901. pw32*)
  12902. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12903. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12904. ;;
  12905. esac
  12906. dynamic_linker='Win32 ld.exe'
  12907. ;;
  12908. *,cl*)
  12909. # Native MSVC
  12910. libname_spec='$name'
  12911. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12912. library_names_spec='${libname}.dll.lib'
  12913. case $build_os in
  12914. mingw*)
  12915. sys_lib_search_path_spec=
  12916. lt_save_ifs=$IFS
  12917. IFS=';'
  12918. for lt_path in $LIB
  12919. do
  12920. IFS=$lt_save_ifs
  12921. # Let DOS variable expansion print the short 8.3 style file name.
  12922. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12923. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12924. done
  12925. IFS=$lt_save_ifs
  12926. # Convert to MSYS style.
  12927. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12928. ;;
  12929. cygwin*)
  12930. # Convert to unix form, then to dos form, then back to unix form
  12931. # but this time dos style (no spaces!) so that the unix form looks
  12932. # like /cygdrive/c/PROGRA~1:/cygdr...
  12933. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12934. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12935. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12936. ;;
  12937. *)
  12938. sys_lib_search_path_spec="$LIB"
  12939. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12940. # It is most probably a Windows format PATH.
  12941. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12942. else
  12943. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12944. fi
  12945. # FIXME: find the short name or the path components, as spaces are
  12946. # common. (e.g. "Program Files" -> "PROGRA~1")
  12947. ;;
  12948. esac
  12949. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12950. postinstall_cmds='base_file=`basename \${file}`~
  12951. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12952. dldir=$destdir/`dirname \$dlpath`~
  12953. test -d \$dldir || mkdir -p \$dldir~
  12954. $install_prog $dir/$dlname \$dldir/$dlname'
  12955. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12956. dlpath=$dir/\$dldll~
  12957. $RM \$dlpath'
  12958. shlibpath_overrides_runpath=yes
  12959. dynamic_linker='Win32 link.exe'
  12960. ;;
  12961. *)
  12962. # Assume MSVC wrapper
  12963. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12964. dynamic_linker='Win32 ld.exe'
  12965. ;;
  12966. esac
  12967. # FIXME: first we should search . and the directory the executable is in
  12968. shlibpath_var=PATH
  12969. ;;
  12970. darwin* | rhapsody*)
  12971. dynamic_linker="$host_os dyld"
  12972. version_type=darwin
  12973. need_lib_prefix=no
  12974. need_version=no
  12975. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12976. soname_spec='${libname}${release}${major}$shared_ext'
  12977. shlibpath_overrides_runpath=yes
  12978. shlibpath_var=DYLD_LIBRARY_PATH
  12979. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12980. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12981. ;;
  12982. dgux*)
  12983. version_type=linux # correct to gnu/linux during the next big refactor
  12984. need_lib_prefix=no
  12985. need_version=no
  12986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12987. soname_spec='${libname}${release}${shared_ext}$major'
  12988. shlibpath_var=LD_LIBRARY_PATH
  12989. ;;
  12990. freebsd* | dragonfly*)
  12991. # DragonFly does not have aout. When/if they implement a new
  12992. # versioning mechanism, adjust this.
  12993. if test -x /usr/bin/objformat; then
  12994. objformat=`/usr/bin/objformat`
  12995. else
  12996. case $host_os in
  12997. freebsd[23].*) objformat=aout ;;
  12998. *) objformat=elf ;;
  12999. esac
  13000. fi
  13001. version_type=freebsd-$objformat
  13002. case $version_type in
  13003. freebsd-elf*)
  13004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13005. need_version=no
  13006. need_lib_prefix=no
  13007. ;;
  13008. freebsd-*)
  13009. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13010. need_version=yes
  13011. ;;
  13012. esac
  13013. shlibpath_var=LD_LIBRARY_PATH
  13014. case $host_os in
  13015. freebsd2.*)
  13016. shlibpath_overrides_runpath=yes
  13017. ;;
  13018. freebsd3.[01]* | freebsdelf3.[01]*)
  13019. shlibpath_overrides_runpath=yes
  13020. hardcode_into_libs=yes
  13021. ;;
  13022. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13023. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13024. shlibpath_overrides_runpath=no
  13025. hardcode_into_libs=yes
  13026. ;;
  13027. *) # from 4.6 on, and DragonFly
  13028. shlibpath_overrides_runpath=yes
  13029. hardcode_into_libs=yes
  13030. ;;
  13031. esac
  13032. ;;
  13033. gnu*)
  13034. version_type=linux # correct to gnu/linux during the next big refactor
  13035. need_lib_prefix=no
  13036. need_version=no
  13037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13038. soname_spec='${libname}${release}${shared_ext}$major'
  13039. shlibpath_var=LD_LIBRARY_PATH
  13040. shlibpath_overrides_runpath=no
  13041. hardcode_into_libs=yes
  13042. ;;
  13043. haiku*)
  13044. version_type=linux # correct to gnu/linux during the next big refactor
  13045. need_lib_prefix=no
  13046. need_version=no
  13047. dynamic_linker="$host_os runtime_loader"
  13048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13049. soname_spec='${libname}${release}${shared_ext}$major'
  13050. shlibpath_var=LIBRARY_PATH
  13051. shlibpath_overrides_runpath=yes
  13052. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13053. hardcode_into_libs=yes
  13054. ;;
  13055. hpux9* | hpux10* | hpux11*)
  13056. # Give a soname corresponding to the major version so that dld.sl refuses to
  13057. # link against other versions.
  13058. version_type=sunos
  13059. need_lib_prefix=no
  13060. need_version=no
  13061. case $host_cpu in
  13062. ia64*)
  13063. shrext_cmds='.so'
  13064. hardcode_into_libs=yes
  13065. dynamic_linker="$host_os dld.so"
  13066. shlibpath_var=LD_LIBRARY_PATH
  13067. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13069. soname_spec='${libname}${release}${shared_ext}$major'
  13070. if test "X$HPUX_IA64_MODE" = X32; then
  13071. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13072. else
  13073. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13074. fi
  13075. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13076. ;;
  13077. hppa*64*)
  13078. shrext_cmds='.sl'
  13079. hardcode_into_libs=yes
  13080. dynamic_linker="$host_os dld.sl"
  13081. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13082. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13084. soname_spec='${libname}${release}${shared_ext}$major'
  13085. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13086. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13087. ;;
  13088. *)
  13089. shrext_cmds='.sl'
  13090. dynamic_linker="$host_os dld.sl"
  13091. shlibpath_var=SHLIB_PATH
  13092. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13094. soname_spec='${libname}${release}${shared_ext}$major'
  13095. ;;
  13096. esac
  13097. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13098. postinstall_cmds='chmod 555 $lib'
  13099. # or fails outright, so override atomically:
  13100. install_override_mode=555
  13101. ;;
  13102. interix[3-9]*)
  13103. version_type=linux # correct to gnu/linux during the next big refactor
  13104. need_lib_prefix=no
  13105. need_version=no
  13106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13107. soname_spec='${libname}${release}${shared_ext}$major'
  13108. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13109. shlibpath_var=LD_LIBRARY_PATH
  13110. shlibpath_overrides_runpath=no
  13111. hardcode_into_libs=yes
  13112. ;;
  13113. irix5* | irix6* | nonstopux*)
  13114. case $host_os in
  13115. nonstopux*) version_type=nonstopux ;;
  13116. *)
  13117. if test "$lt_cv_prog_gnu_ld" = yes; then
  13118. version_type=linux # correct to gnu/linux during the next big refactor
  13119. else
  13120. version_type=irix
  13121. fi ;;
  13122. esac
  13123. need_lib_prefix=no
  13124. need_version=no
  13125. soname_spec='${libname}${release}${shared_ext}$major'
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13127. case $host_os in
  13128. irix5* | nonstopux*)
  13129. libsuff= shlibsuff=
  13130. ;;
  13131. *)
  13132. case $LD in # libtool.m4 will add one of these switches to LD
  13133. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13134. libsuff= shlibsuff= libmagic=32-bit;;
  13135. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13136. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13137. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13138. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13139. *) libsuff= shlibsuff= libmagic=never-match;;
  13140. esac
  13141. ;;
  13142. esac
  13143. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13144. shlibpath_overrides_runpath=no
  13145. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13146. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13147. hardcode_into_libs=yes
  13148. ;;
  13149. # No shared lib support for Linux oldld, aout, or coff.
  13150. linux*oldld* | linux*aout* | linux*coff*)
  13151. dynamic_linker=no
  13152. ;;
  13153. # This must be glibc/ELF.
  13154. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13155. version_type=linux # correct to gnu/linux during the next big refactor
  13156. need_lib_prefix=no
  13157. need_version=no
  13158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13159. soname_spec='${libname}${release}${shared_ext}$major'
  13160. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. shlibpath_overrides_runpath=no
  13163. # Some binutils ld are patched to set DT_RUNPATH
  13164. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13165. $as_echo_n "(cached) " >&6
  13166. else
  13167. lt_cv_shlibpath_overrides_runpath=no
  13168. save_LDFLAGS=$LDFLAGS
  13169. save_libdir=$libdir
  13170. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13171. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13173. /* end confdefs.h. */
  13174. int
  13175. main ()
  13176. {
  13177. ;
  13178. return 0;
  13179. }
  13180. _ACEOF
  13181. if ac_fn_cxx_try_link "$LINENO"; then :
  13182. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13183. lt_cv_shlibpath_overrides_runpath=yes
  13184. fi
  13185. fi
  13186. rm -f core conftest.err conftest.$ac_objext \
  13187. conftest$ac_exeext conftest.$ac_ext
  13188. LDFLAGS=$save_LDFLAGS
  13189. libdir=$save_libdir
  13190. fi
  13191. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13192. # This implies no fast_install, which is unacceptable.
  13193. # Some rework will be needed to allow for fast_install
  13194. # before this can be enabled.
  13195. hardcode_into_libs=yes
  13196. # Append ld.so.conf contents to the search path
  13197. if test -f /etc/ld.so.conf; then
  13198. 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' ' '`
  13199. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13200. fi
  13201. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13202. # powerpc, because MkLinux only supported shared libraries with the
  13203. # GNU dynamic linker. Since this was broken with cross compilers,
  13204. # most powerpc-linux boxes support dynamic linking these days and
  13205. # people can always --disable-shared, the test was removed, and we
  13206. # assume the GNU/Linux dynamic linker is in use.
  13207. dynamic_linker='GNU/Linux ld.so'
  13208. ;;
  13209. netbsd*)
  13210. version_type=sunos
  13211. need_lib_prefix=no
  13212. need_version=no
  13213. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13215. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13216. dynamic_linker='NetBSD (a.out) ld.so'
  13217. else
  13218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13219. soname_spec='${libname}${release}${shared_ext}$major'
  13220. dynamic_linker='NetBSD ld.elf_so'
  13221. fi
  13222. shlibpath_var=LD_LIBRARY_PATH
  13223. shlibpath_overrides_runpath=yes
  13224. hardcode_into_libs=yes
  13225. ;;
  13226. newsos6)
  13227. version_type=linux # correct to gnu/linux during the next big refactor
  13228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13229. shlibpath_var=LD_LIBRARY_PATH
  13230. shlibpath_overrides_runpath=yes
  13231. ;;
  13232. *nto* | *qnx*)
  13233. version_type=qnx
  13234. need_lib_prefix=no
  13235. need_version=no
  13236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13237. soname_spec='${libname}${release}${shared_ext}$major'
  13238. shlibpath_var=LD_LIBRARY_PATH
  13239. shlibpath_overrides_runpath=no
  13240. hardcode_into_libs=yes
  13241. dynamic_linker='ldqnx.so'
  13242. ;;
  13243. openbsd*)
  13244. version_type=sunos
  13245. sys_lib_dlsearch_path_spec="/usr/lib"
  13246. need_lib_prefix=no
  13247. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13248. case $host_os in
  13249. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13250. *) need_version=no ;;
  13251. esac
  13252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13253. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13254. shlibpath_var=LD_LIBRARY_PATH
  13255. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13256. case $host_os in
  13257. openbsd2.[89] | openbsd2.[89].*)
  13258. shlibpath_overrides_runpath=no
  13259. ;;
  13260. *)
  13261. shlibpath_overrides_runpath=yes
  13262. ;;
  13263. esac
  13264. else
  13265. shlibpath_overrides_runpath=yes
  13266. fi
  13267. ;;
  13268. os2*)
  13269. libname_spec='$name'
  13270. shrext_cmds=".dll"
  13271. need_lib_prefix=no
  13272. library_names_spec='$libname${shared_ext} $libname.a'
  13273. dynamic_linker='OS/2 ld.exe'
  13274. shlibpath_var=LIBPATH
  13275. ;;
  13276. osf3* | osf4* | osf5*)
  13277. version_type=osf
  13278. need_lib_prefix=no
  13279. need_version=no
  13280. soname_spec='${libname}${release}${shared_ext}$major'
  13281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13282. shlibpath_var=LD_LIBRARY_PATH
  13283. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13284. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13285. ;;
  13286. rdos*)
  13287. dynamic_linker=no
  13288. ;;
  13289. solaris*)
  13290. version_type=linux # correct to gnu/linux during the next big refactor
  13291. need_lib_prefix=no
  13292. need_version=no
  13293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13294. soname_spec='${libname}${release}${shared_ext}$major'
  13295. shlibpath_var=LD_LIBRARY_PATH
  13296. shlibpath_overrides_runpath=yes
  13297. hardcode_into_libs=yes
  13298. # ldd complains unless libraries are executable
  13299. postinstall_cmds='chmod +x $lib'
  13300. ;;
  13301. sunos4*)
  13302. version_type=sunos
  13303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13304. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13305. shlibpath_var=LD_LIBRARY_PATH
  13306. shlibpath_overrides_runpath=yes
  13307. if test "$with_gnu_ld" = yes; then
  13308. need_lib_prefix=no
  13309. fi
  13310. need_version=yes
  13311. ;;
  13312. sysv4 | sysv4.3*)
  13313. version_type=linux # correct to gnu/linux during the next big refactor
  13314. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13315. soname_spec='${libname}${release}${shared_ext}$major'
  13316. shlibpath_var=LD_LIBRARY_PATH
  13317. case $host_vendor in
  13318. sni)
  13319. shlibpath_overrides_runpath=no
  13320. need_lib_prefix=no
  13321. runpath_var=LD_RUN_PATH
  13322. ;;
  13323. siemens)
  13324. need_lib_prefix=no
  13325. ;;
  13326. motorola)
  13327. need_lib_prefix=no
  13328. need_version=no
  13329. shlibpath_overrides_runpath=no
  13330. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13331. ;;
  13332. esac
  13333. ;;
  13334. sysv4*MP*)
  13335. if test -d /usr/nec ;then
  13336. version_type=linux # correct to gnu/linux during the next big refactor
  13337. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13338. soname_spec='$libname${shared_ext}.$major'
  13339. shlibpath_var=LD_LIBRARY_PATH
  13340. fi
  13341. ;;
  13342. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13343. version_type=freebsd-elf
  13344. need_lib_prefix=no
  13345. need_version=no
  13346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13347. soname_spec='${libname}${release}${shared_ext}$major'
  13348. shlibpath_var=LD_LIBRARY_PATH
  13349. shlibpath_overrides_runpath=yes
  13350. hardcode_into_libs=yes
  13351. if test "$with_gnu_ld" = yes; then
  13352. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13353. else
  13354. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13355. case $host_os in
  13356. sco3.2v5*)
  13357. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13358. ;;
  13359. esac
  13360. fi
  13361. sys_lib_dlsearch_path_spec='/usr/lib'
  13362. ;;
  13363. tpf*)
  13364. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13365. version_type=linux # correct to gnu/linux during the next big refactor
  13366. need_lib_prefix=no
  13367. need_version=no
  13368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13369. shlibpath_var=LD_LIBRARY_PATH
  13370. shlibpath_overrides_runpath=no
  13371. hardcode_into_libs=yes
  13372. ;;
  13373. uts4*)
  13374. version_type=linux # correct to gnu/linux during the next big refactor
  13375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13376. soname_spec='${libname}${release}${shared_ext}$major'
  13377. shlibpath_var=LD_LIBRARY_PATH
  13378. ;;
  13379. *)
  13380. dynamic_linker=no
  13381. ;;
  13382. esac
  13383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13384. $as_echo "$dynamic_linker" >&6; }
  13385. test "$dynamic_linker" = no && can_build_shared=no
  13386. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13387. if test "$GCC" = yes; then
  13388. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13389. fi
  13390. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13391. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13392. fi
  13393. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13394. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13395. fi
  13396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13397. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13398. hardcode_action_CXX=
  13399. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13400. test -n "$runpath_var_CXX" ||
  13401. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13402. # We can hardcode non-existent directories.
  13403. if test "$hardcode_direct_CXX" != no &&
  13404. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13405. # have to relink, otherwise we might link with an installed library
  13406. # when we should be linking with a yet-to-be-installed one
  13407. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13408. test "$hardcode_minus_L_CXX" != no; then
  13409. # Linking always hardcodes the temporary library directory.
  13410. hardcode_action_CXX=relink
  13411. else
  13412. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13413. hardcode_action_CXX=immediate
  13414. fi
  13415. else
  13416. # We cannot hardcode anything, or else we can only hardcode existing
  13417. # directories.
  13418. hardcode_action_CXX=unsupported
  13419. fi
  13420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13421. $as_echo "$hardcode_action_CXX" >&6; }
  13422. if test "$hardcode_action_CXX" = relink ||
  13423. test "$inherit_rpath_CXX" = yes; then
  13424. # Fast installation is not supported
  13425. enable_fast_install=no
  13426. elif test "$shlibpath_overrides_runpath" = yes ||
  13427. test "$enable_shared" = no; then
  13428. # Fast installation is not necessary
  13429. enable_fast_install=needless
  13430. fi
  13431. fi # test -n "$compiler"
  13432. CC=$lt_save_CC
  13433. CFLAGS=$lt_save_CFLAGS
  13434. LDCXX=$LD
  13435. LD=$lt_save_LD
  13436. GCC=$lt_save_GCC
  13437. with_gnu_ld=$lt_save_with_gnu_ld
  13438. lt_cv_path_LDCXX=$lt_cv_path_LD
  13439. lt_cv_path_LD=$lt_save_path_LD
  13440. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13441. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13442. fi # test "$_lt_caught_CXX_error" != yes
  13443. ac_ext=c
  13444. ac_cpp='$CPP $CPPFLAGS'
  13445. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13446. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13447. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13448. # Find a good install program. We prefer a C program (faster),
  13449. # so one script is as good as another. But avoid the broken or
  13450. # incompatible versions:
  13451. # SysV /etc/install, /usr/sbin/install
  13452. # SunOS /usr/etc/install
  13453. # IRIX /sbin/install
  13454. # AIX /bin/install
  13455. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13456. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13457. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13458. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13459. # OS/2's system install, which has a completely different semantic
  13460. # ./install, which can be erroneously created by make from ./install.sh.
  13461. # Reject install programs that cannot install multiple files.
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13463. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13464. if test -z "$INSTALL"; then
  13465. if ${ac_cv_path_install+:} false; then :
  13466. $as_echo_n "(cached) " >&6
  13467. else
  13468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13469. for as_dir in $PATH
  13470. do
  13471. IFS=$as_save_IFS
  13472. test -z "$as_dir" && as_dir=.
  13473. # Account for people who put trailing slashes in PATH elements.
  13474. case $as_dir/ in #((
  13475. ./ | .// | /[cC]/* | \
  13476. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13477. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13478. /usr/ucb/* ) ;;
  13479. *)
  13480. # OSF1 and SCO ODT 3.0 have their own names for install.
  13481. # Don't use installbsd from OSF since it installs stuff as root
  13482. # by default.
  13483. for ac_prog in ginstall scoinst install; do
  13484. for ac_exec_ext in '' $ac_executable_extensions; do
  13485. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13486. if test $ac_prog = install &&
  13487. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13488. # AIX install. It has an incompatible calling convention.
  13489. :
  13490. elif test $ac_prog = install &&
  13491. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13492. # program-specific install script used by HP pwplus--don't use.
  13493. :
  13494. else
  13495. rm -rf conftest.one conftest.two conftest.dir
  13496. echo one > conftest.one
  13497. echo two > conftest.two
  13498. mkdir conftest.dir
  13499. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13500. test -s conftest.one && test -s conftest.two &&
  13501. test -s conftest.dir/conftest.one &&
  13502. test -s conftest.dir/conftest.two
  13503. then
  13504. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13505. break 3
  13506. fi
  13507. fi
  13508. fi
  13509. done
  13510. done
  13511. ;;
  13512. esac
  13513. done
  13514. IFS=$as_save_IFS
  13515. rm -rf conftest.one conftest.two conftest.dir
  13516. fi
  13517. if test "${ac_cv_path_install+set}" = set; then
  13518. INSTALL=$ac_cv_path_install
  13519. else
  13520. # As a last resort, use the slow shell script. Don't cache a
  13521. # value for INSTALL within a source directory, because that will
  13522. # break other packages using the cache if that directory is
  13523. # removed, or if the value is a relative name.
  13524. INSTALL=$ac_install_sh
  13525. fi
  13526. fi
  13527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13528. $as_echo "$INSTALL" >&6; }
  13529. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13530. # It thinks the first close brace ends the variable substitution.
  13531. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13532. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13533. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13535. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13536. set x ${MAKE-make}
  13537. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13538. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13539. $as_echo_n "(cached) " >&6
  13540. else
  13541. cat >conftest.make <<\_ACEOF
  13542. SHELL = /bin/sh
  13543. all:
  13544. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13545. _ACEOF
  13546. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13547. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13548. *@@@%%%=?*=@@@%%%*)
  13549. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13550. *)
  13551. eval ac_cv_prog_make_${ac_make}_set=no;;
  13552. esac
  13553. rm -f conftest.make
  13554. fi
  13555. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13557. $as_echo "yes" >&6; }
  13558. SET_MAKE=
  13559. else
  13560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13561. $as_echo "no" >&6; }
  13562. SET_MAKE="MAKE=${MAKE-make}"
  13563. fi
  13564. if test -n "$ac_tool_prefix"; then
  13565. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13566. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13568. $as_echo_n "checking for $ac_word... " >&6; }
  13569. if ${ac_cv_prog_WINDRES+:} false; then :
  13570. $as_echo_n "(cached) " >&6
  13571. else
  13572. if test -n "$WINDRES"; then
  13573. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13574. else
  13575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13576. for as_dir in $PATH
  13577. do
  13578. IFS=$as_save_IFS
  13579. test -z "$as_dir" && as_dir=.
  13580. for ac_exec_ext in '' $ac_executable_extensions; do
  13581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13582. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13584. break 2
  13585. fi
  13586. done
  13587. done
  13588. IFS=$as_save_IFS
  13589. fi
  13590. fi
  13591. WINDRES=$ac_cv_prog_WINDRES
  13592. if test -n "$WINDRES"; then
  13593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13594. $as_echo "$WINDRES" >&6; }
  13595. else
  13596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13597. $as_echo "no" >&6; }
  13598. fi
  13599. fi
  13600. if test -z "$ac_cv_prog_WINDRES"; then
  13601. ac_ct_WINDRES=$WINDRES
  13602. # Extract the first word of "windres", so it can be a program name with args.
  13603. set dummy windres; ac_word=$2
  13604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13605. $as_echo_n "checking for $ac_word... " >&6; }
  13606. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13607. $as_echo_n "(cached) " >&6
  13608. else
  13609. if test -n "$ac_ct_WINDRES"; then
  13610. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13611. else
  13612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13613. for as_dir in $PATH
  13614. do
  13615. IFS=$as_save_IFS
  13616. test -z "$as_dir" && as_dir=.
  13617. for ac_exec_ext in '' $ac_executable_extensions; do
  13618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13619. ac_cv_prog_ac_ct_WINDRES="windres"
  13620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13621. break 2
  13622. fi
  13623. done
  13624. done
  13625. IFS=$as_save_IFS
  13626. fi
  13627. fi
  13628. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13629. if test -n "$ac_ct_WINDRES"; then
  13630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13631. $as_echo "$ac_ct_WINDRES" >&6; }
  13632. else
  13633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13634. $as_echo "no" >&6; }
  13635. fi
  13636. if test "x$ac_ct_WINDRES" = x; then
  13637. WINDRES=":"
  13638. else
  13639. case $cross_compiling:$ac_tool_warned in
  13640. yes:)
  13641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13642. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13643. ac_tool_warned=yes ;;
  13644. esac
  13645. WINDRES=$ac_ct_WINDRES
  13646. fi
  13647. else
  13648. WINDRES="$ac_cv_prog_WINDRES"
  13649. fi
  13650. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13651. if test -n "$ac_tool_prefix"; then
  13652. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13653. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13655. $as_echo_n "checking for $ac_word... " >&6; }
  13656. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13657. $as_echo_n "(cached) " >&6
  13658. else
  13659. case $PKG_CONFIG in
  13660. [\\/]* | ?:[\\/]*)
  13661. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13662. ;;
  13663. *)
  13664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13665. for as_dir in $PATH
  13666. do
  13667. IFS=$as_save_IFS
  13668. test -z "$as_dir" && as_dir=.
  13669. for ac_exec_ext in '' $ac_executable_extensions; do
  13670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13671. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13673. break 2
  13674. fi
  13675. done
  13676. done
  13677. IFS=$as_save_IFS
  13678. ;;
  13679. esac
  13680. fi
  13681. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13682. if test -n "$PKG_CONFIG"; then
  13683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13684. $as_echo "$PKG_CONFIG" >&6; }
  13685. else
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13687. $as_echo "no" >&6; }
  13688. fi
  13689. fi
  13690. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13691. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13692. # Extract the first word of "pkg-config", so it can be a program name with args.
  13693. set dummy pkg-config; ac_word=$2
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13695. $as_echo_n "checking for $ac_word... " >&6; }
  13696. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13697. $as_echo_n "(cached) " >&6
  13698. else
  13699. case $ac_pt_PKG_CONFIG in
  13700. [\\/]* | ?:[\\/]*)
  13701. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13702. ;;
  13703. *)
  13704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13705. for as_dir in $PATH
  13706. do
  13707. IFS=$as_save_IFS
  13708. test -z "$as_dir" && as_dir=.
  13709. for ac_exec_ext in '' $ac_executable_extensions; do
  13710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13711. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13713. break 2
  13714. fi
  13715. done
  13716. done
  13717. IFS=$as_save_IFS
  13718. ;;
  13719. esac
  13720. fi
  13721. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13722. if test -n "$ac_pt_PKG_CONFIG"; then
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13724. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13725. else
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13727. $as_echo "no" >&6; }
  13728. fi
  13729. if test "x$ac_pt_PKG_CONFIG" = x; then
  13730. PKG_CONFIG=""
  13731. else
  13732. case $cross_compiling:$ac_tool_warned in
  13733. yes:)
  13734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13735. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13736. ac_tool_warned=yes ;;
  13737. esac
  13738. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13739. fi
  13740. else
  13741. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13742. fi
  13743. fi
  13744. if test -n "$PKG_CONFIG"; then
  13745. _pkg_min_version=0.9.0
  13746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13747. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13748. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13750. $as_echo "yes" >&6; }
  13751. else
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13753. $as_echo "no" >&6; }
  13754. PKG_CONFIG=""
  13755. fi
  13756. fi
  13757. case "$host" in
  13758. *-*-mingw32*)
  13759. # Except on msys, where make can't handle full pathnames (bug 1972)
  13760. ;;
  13761. *)
  13762. srcdir=`cd $srcdir && pwd`
  13763. ;;
  13764. esac
  13765. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13766. if test x$srcdir != x.; then
  13767. INCLUDE="-Iinclude $INCLUDE"
  13768. elif test -d .hg; then
  13769. as_fn_error $? "
  13770. *** When building from Mercurial you should configure and build in a
  13771. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13772. " "$LINENO" 5
  13773. fi
  13774. BASE_CFLAGS=""
  13775. BASE_LDFLAGS=""
  13776. case "$host" in
  13777. *-*-cygwin*)
  13778. # We build SDL on cygwin without the UNIX emulation layer
  13779. save_CFLAGS="$CFLAGS"
  13780. have_no_cygwin=no
  13781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13782. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13783. CFLAGS="$save_CFLAGS -mno-cygwin"
  13784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13785. /* end confdefs.h. */
  13786. int
  13787. main ()
  13788. {
  13789. ;
  13790. return 0;
  13791. }
  13792. _ACEOF
  13793. if ac_fn_c_try_compile "$LINENO"; then :
  13794. have_no_cygwin=yes
  13795. fi
  13796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13798. $as_echo "$have_no_cygwin" >&6; }
  13799. CFLAGS="$save_CFLAGS"
  13800. if test x$have_no_cygwin = xyes; then
  13801. BASE_CFLAGS="-mno-cygwin"
  13802. BASE_LDFLAGS="-mno-cygwin"
  13803. fi
  13804. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13805. ;;
  13806. esac
  13807. # Uncomment the following line if you want to force SDL and applications
  13808. # built with it to be compiled for a particular architecture.
  13809. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13810. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13811. # The default optimization for SDL is -O3 (Bug #31)
  13812. if test "x$orig_CFLAGS" = x; then
  13813. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13814. fi
  13815. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13816. BUILD_LDFLAGS="$LDFLAGS"
  13817. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13818. ## These are common directories to find software packages
  13819. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13820. # if test -d $path/include; then
  13821. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13822. # fi
  13823. # if test -d $path/lib; then
  13824. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13825. # fi
  13826. #done
  13827. SDL_CFLAGS="$BASE_CFLAGS"
  13828. SDL_LIBS="-lSDL2"
  13829. if test "x$BASE_LDFLAGS" != x; then
  13830. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13831. fi
  13832. if test "x$EXTRA_CFLAGS" != x; then
  13833. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13834. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13835. fi
  13836. if test "x$EXTRA_LDFLAGS" != x; then
  13837. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13838. fi
  13839. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13840. find_lib()
  13841. {
  13842. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13843. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13844. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13845. if test "$cross_compiling" = yes; then
  13846. host_lib_path=""
  13847. else
  13848. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13849. fi
  13850. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13851. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13852. if test x$lib != x; then
  13853. echo $lib
  13854. return
  13855. fi
  13856. done
  13857. # Try again, this time allowing more than one version digit after the .so
  13858. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13859. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13860. if test x$lib != x; then
  13861. echo $lib
  13862. return
  13863. fi
  13864. done
  13865. }
  13866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13867. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13868. if ${ac_cv_c_const+:} false; then :
  13869. $as_echo_n "(cached) " >&6
  13870. else
  13871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13872. /* end confdefs.h. */
  13873. int
  13874. main ()
  13875. {
  13876. #ifndef __cplusplus
  13877. /* Ultrix mips cc rejects this sort of thing. */
  13878. typedef int charset[2];
  13879. const charset cs = { 0, 0 };
  13880. /* SunOS 4.1.1 cc rejects this. */
  13881. char const *const *pcpcc;
  13882. char **ppc;
  13883. /* NEC SVR4.0.2 mips cc rejects this. */
  13884. struct point {int x, y;};
  13885. static struct point const zero = {0,0};
  13886. /* AIX XL C 1.02.0.0 rejects this.
  13887. It does not let you subtract one const X* pointer from another in
  13888. an arm of an if-expression whose if-part is not a constant
  13889. expression */
  13890. const char *g = "string";
  13891. pcpcc = &g + (g ? g-g : 0);
  13892. /* HPUX 7.0 cc rejects these. */
  13893. ++pcpcc;
  13894. ppc = (char**) pcpcc;
  13895. pcpcc = (char const *const *) ppc;
  13896. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13897. char tx;
  13898. char *t = &tx;
  13899. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13900. *t++ = 0;
  13901. if (s) return 0;
  13902. }
  13903. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13904. int x[] = {25, 17};
  13905. const int *foo = &x[0];
  13906. ++foo;
  13907. }
  13908. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13909. typedef const int *iptr;
  13910. iptr p = 0;
  13911. ++p;
  13912. }
  13913. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13914. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13915. struct s { int j; const int *ap[3]; } bx;
  13916. struct s *b = &bx; b->j = 5;
  13917. }
  13918. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13919. const int foo = 10;
  13920. if (!foo) return 0;
  13921. }
  13922. return !cs[0] && !zero.x;
  13923. #endif
  13924. ;
  13925. return 0;
  13926. }
  13927. _ACEOF
  13928. if ac_fn_c_try_compile "$LINENO"; then :
  13929. ac_cv_c_const=yes
  13930. else
  13931. ac_cv_c_const=no
  13932. fi
  13933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13934. fi
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13936. $as_echo "$ac_cv_c_const" >&6; }
  13937. if test $ac_cv_c_const = no; then
  13938. $as_echo "#define const /**/" >>confdefs.h
  13939. fi
  13940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13941. $as_echo_n "checking for inline... " >&6; }
  13942. if ${ac_cv_c_inline+:} false; then :
  13943. $as_echo_n "(cached) " >&6
  13944. else
  13945. ac_cv_c_inline=no
  13946. for ac_kw in inline __inline__ __inline; do
  13947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13948. /* end confdefs.h. */
  13949. #ifndef __cplusplus
  13950. typedef int foo_t;
  13951. static $ac_kw foo_t static_foo () {return 0; }
  13952. $ac_kw foo_t foo () {return 0; }
  13953. #endif
  13954. _ACEOF
  13955. if ac_fn_c_try_compile "$LINENO"; then :
  13956. ac_cv_c_inline=$ac_kw
  13957. fi
  13958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13959. test "$ac_cv_c_inline" != no && break
  13960. done
  13961. fi
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13963. $as_echo "$ac_cv_c_inline" >&6; }
  13964. case $ac_cv_c_inline in
  13965. inline | yes) ;;
  13966. *)
  13967. case $ac_cv_c_inline in
  13968. no) ac_val=;;
  13969. *) ac_val=$ac_cv_c_inline;;
  13970. esac
  13971. cat >>confdefs.h <<_ACEOF
  13972. #ifndef __cplusplus
  13973. #define inline $ac_val
  13974. #endif
  13975. _ACEOF
  13976. ;;
  13977. esac
  13978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13979. $as_echo_n "checking for working volatile... " >&6; }
  13980. if ${ac_cv_c_volatile+:} false; then :
  13981. $as_echo_n "(cached) " >&6
  13982. else
  13983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13984. /* end confdefs.h. */
  13985. int
  13986. main ()
  13987. {
  13988. volatile int x;
  13989. int * volatile y = (int *) 0;
  13990. return !x && !y;
  13991. ;
  13992. return 0;
  13993. }
  13994. _ACEOF
  13995. if ac_fn_c_try_compile "$LINENO"; then :
  13996. ac_cv_c_volatile=yes
  13997. else
  13998. ac_cv_c_volatile=no
  13999. fi
  14000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14001. fi
  14002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14003. $as_echo "$ac_cv_c_volatile" >&6; }
  14004. if test $ac_cv_c_volatile = no; then
  14005. $as_echo "#define volatile /**/" >>confdefs.h
  14006. fi
  14007. # Check whether --enable-assertions was given.
  14008. if test "${enable_assertions+set}" = set; then :
  14009. enableval=$enable_assertions;
  14010. else
  14011. enable_assertions=auto
  14012. fi
  14013. case "$enable_assertions" in
  14014. auto) # Use optimization settings to determine assertion level
  14015. ;;
  14016. disabled)
  14017. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14018. ;;
  14019. release)
  14020. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14021. ;;
  14022. enabled)
  14023. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14024. ;;
  14025. paranoid)
  14026. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14027. ;;
  14028. *)
  14029. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14030. ;;
  14031. esac
  14032. # Check whether --enable-dependency-tracking was given.
  14033. if test "${enable_dependency_tracking+set}" = set; then :
  14034. enableval=$enable_dependency_tracking;
  14035. else
  14036. enable_dependency_tracking=yes
  14037. fi
  14038. if test x$enable_dependency_tracking = xyes; then
  14039. have_gcc_mmd_mt=no
  14040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14041. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14043. /* end confdefs.h. */
  14044. #if !defined(__GNUC__) || __GNUC__ < 3
  14045. #error Dependency tracking requires GCC 3.0 or newer
  14046. #endif
  14047. int
  14048. main ()
  14049. {
  14050. ;
  14051. return 0;
  14052. }
  14053. _ACEOF
  14054. if ac_fn_c_try_compile "$LINENO"; then :
  14055. have_gcc_mmd_mt=yes
  14056. fi
  14057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14059. $as_echo "$have_gcc_mmd_mt" >&6; }
  14060. if test x$have_gcc_mmd_mt = xyes; then
  14061. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14062. fi
  14063. fi
  14064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14065. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14066. have_no_undefined=no
  14067. case "$host" in
  14068. *-*-openbsd*)
  14069. ;;
  14070. *)
  14071. save_LDFLAGS="$LDFLAGS"
  14072. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14074. /* end confdefs.h. */
  14075. int
  14076. main ()
  14077. {
  14078. ;
  14079. return 0;
  14080. }
  14081. _ACEOF
  14082. if ac_fn_c_try_link "$LINENO"; then :
  14083. have_no_undefined=yes
  14084. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14085. fi
  14086. rm -f core conftest.err conftest.$ac_objext \
  14087. conftest$ac_exeext conftest.$ac_ext
  14088. LDFLAGS="$save_LDFLAGS"
  14089. ;;
  14090. esac
  14091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14092. $as_echo "$have_no_undefined" >&6; }
  14093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14094. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14095. have_dynamicbase=no
  14096. case "$host" in
  14097. *)
  14098. save_LDFLAGS="$LDFLAGS"
  14099. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14101. /* end confdefs.h. */
  14102. int
  14103. main ()
  14104. {
  14105. ;
  14106. return 0;
  14107. }
  14108. _ACEOF
  14109. if ac_fn_c_try_link "$LINENO"; then :
  14110. have_dynamicbase=yes
  14111. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14112. fi
  14113. rm -f core conftest.err conftest.$ac_objext \
  14114. conftest$ac_exeext conftest.$ac_ext
  14115. LDFLAGS="$save_LDFLAGS"
  14116. ;;
  14117. esac
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14119. $as_echo "$have_dynamicbase" >&6; }
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14121. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14122. have_nxcompat=no
  14123. case "$host" in
  14124. *)
  14125. save_LDFLAGS="$LDFLAGS"
  14126. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14128. /* end confdefs.h. */
  14129. int
  14130. main ()
  14131. {
  14132. ;
  14133. return 0;
  14134. }
  14135. _ACEOF
  14136. if ac_fn_c_try_link "$LINENO"; then :
  14137. have_nxcompat=yes
  14138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14139. fi
  14140. rm -f core conftest.err conftest.$ac_objext \
  14141. conftest$ac_exeext conftest.$ac_ext
  14142. LDFLAGS="$save_LDFLAGS"
  14143. ;;
  14144. esac
  14145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14146. $as_echo "$have_nxcompat" >&6; }
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14148. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14149. have_high_entropy_va=no
  14150. case "$host" in
  14151. *)
  14152. save_LDFLAGS="$LDFLAGS"
  14153. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14155. /* end confdefs.h. */
  14156. int
  14157. main ()
  14158. {
  14159. ;
  14160. return 0;
  14161. }
  14162. _ACEOF
  14163. if ac_fn_c_try_link "$LINENO"; then :
  14164. have_high_entropy_va=yes
  14165. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14166. fi
  14167. rm -f core conftest.err conftest.$ac_objext \
  14168. conftest$ac_exeext conftest.$ac_ext
  14169. LDFLAGS="$save_LDFLAGS"
  14170. ;;
  14171. esac
  14172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14173. $as_echo "$have_high_entropy_va" >&6; }
  14174. # Check whether --enable-libc was given.
  14175. if test "${enable_libc+set}" = set; then :
  14176. enableval=$enable_libc;
  14177. else
  14178. enable_libc=yes
  14179. fi
  14180. if test x$enable_libc = xyes; then
  14181. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14183. $as_echo_n "checking for ANSI C header files... " >&6; }
  14184. if ${ac_cv_header_stdc+:} false; then :
  14185. $as_echo_n "(cached) " >&6
  14186. else
  14187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14188. /* end confdefs.h. */
  14189. #include <stdlib.h>
  14190. #include <stdarg.h>
  14191. #include <string.h>
  14192. #include <float.h>
  14193. int
  14194. main ()
  14195. {
  14196. ;
  14197. return 0;
  14198. }
  14199. _ACEOF
  14200. if ac_fn_c_try_compile "$LINENO"; then :
  14201. ac_cv_header_stdc=yes
  14202. else
  14203. ac_cv_header_stdc=no
  14204. fi
  14205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14206. if test $ac_cv_header_stdc = yes; then
  14207. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14209. /* end confdefs.h. */
  14210. #include <string.h>
  14211. _ACEOF
  14212. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14213. $EGREP "memchr" >/dev/null 2>&1; then :
  14214. else
  14215. ac_cv_header_stdc=no
  14216. fi
  14217. rm -f conftest*
  14218. fi
  14219. if test $ac_cv_header_stdc = yes; then
  14220. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14222. /* end confdefs.h. */
  14223. #include <stdlib.h>
  14224. _ACEOF
  14225. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14226. $EGREP "free" >/dev/null 2>&1; then :
  14227. else
  14228. ac_cv_header_stdc=no
  14229. fi
  14230. rm -f conftest*
  14231. fi
  14232. if test $ac_cv_header_stdc = yes; then
  14233. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14234. if test "$cross_compiling" = yes; then :
  14235. :
  14236. else
  14237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14238. /* end confdefs.h. */
  14239. #include <ctype.h>
  14240. #include <stdlib.h>
  14241. #if ((' ' & 0x0FF) == 0x020)
  14242. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14243. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14244. #else
  14245. # define ISLOWER(c) \
  14246. (('a' <= (c) && (c) <= 'i') \
  14247. || ('j' <= (c) && (c) <= 'r') \
  14248. || ('s' <= (c) && (c) <= 'z'))
  14249. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14250. #endif
  14251. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14252. int
  14253. main ()
  14254. {
  14255. int i;
  14256. for (i = 0; i < 256; i++)
  14257. if (XOR (islower (i), ISLOWER (i))
  14258. || toupper (i) != TOUPPER (i))
  14259. return 2;
  14260. return 0;
  14261. }
  14262. _ACEOF
  14263. if ac_fn_c_try_run "$LINENO"; then :
  14264. else
  14265. ac_cv_header_stdc=no
  14266. fi
  14267. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14268. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14269. fi
  14270. fi
  14271. fi
  14272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14273. $as_echo "$ac_cv_header_stdc" >&6; }
  14274. if test $ac_cv_header_stdc = yes; then
  14275. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14276. fi
  14277. 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
  14278. do :
  14279. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14280. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14281. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14282. cat >>confdefs.h <<_ACEOF
  14283. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14284. _ACEOF
  14285. fi
  14286. done
  14287. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14288. if test "x$ac_cv_type_size_t" = xyes; then :
  14289. else
  14290. cat >>confdefs.h <<_ACEOF
  14291. #define size_t unsigned int
  14292. _ACEOF
  14293. fi
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14295. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14296. if ${ac_cv_define_M_PI+:} false; then :
  14297. $as_echo_n "(cached) " >&6
  14298. else
  14299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14300. /* end confdefs.h. */
  14301. #include <math.h>
  14302. #ifdef M_PI
  14303. YES_IS_DEFINED
  14304. #endif
  14305. _ACEOF
  14306. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14307. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14308. ac_cv_define_M_PI=yes
  14309. else
  14310. ac_cv_define_M_PI=no
  14311. fi
  14312. rm -f conftest*
  14313. fi
  14314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14315. $as_echo "$ac_cv_define_M_PI" >&6; }
  14316. if test "$ac_cv_define_M_PI" = "yes" ; then
  14317. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14318. fi
  14319. case "$host" in
  14320. *-*-cygwin* | *-*-mingw32*)
  14321. ;;
  14322. *)
  14323. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14324. # for constant arguments. Useless!
  14325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14326. $as_echo_n "checking for working alloca.h... " >&6; }
  14327. if ${ac_cv_working_alloca_h+:} false; then :
  14328. $as_echo_n "(cached) " >&6
  14329. else
  14330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14331. /* end confdefs.h. */
  14332. #include <alloca.h>
  14333. int
  14334. main ()
  14335. {
  14336. char *p = (char *) alloca (2 * sizeof (int));
  14337. if (p) return 0;
  14338. ;
  14339. return 0;
  14340. }
  14341. _ACEOF
  14342. if ac_fn_c_try_link "$LINENO"; then :
  14343. ac_cv_working_alloca_h=yes
  14344. else
  14345. ac_cv_working_alloca_h=no
  14346. fi
  14347. rm -f core conftest.err conftest.$ac_objext \
  14348. conftest$ac_exeext conftest.$ac_ext
  14349. fi
  14350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14351. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14352. if test $ac_cv_working_alloca_h = yes; then
  14353. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14354. fi
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14356. $as_echo_n "checking for alloca... " >&6; }
  14357. if ${ac_cv_func_alloca_works+:} false; then :
  14358. $as_echo_n "(cached) " >&6
  14359. else
  14360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14361. /* end confdefs.h. */
  14362. #ifdef __GNUC__
  14363. # define alloca __builtin_alloca
  14364. #else
  14365. # ifdef _MSC_VER
  14366. # include <malloc.h>
  14367. # define alloca _alloca
  14368. # else
  14369. # ifdef HAVE_ALLOCA_H
  14370. # include <alloca.h>
  14371. # else
  14372. # ifdef _AIX
  14373. #pragma alloca
  14374. # else
  14375. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14376. void *alloca (size_t);
  14377. # endif
  14378. # endif
  14379. # endif
  14380. # endif
  14381. #endif
  14382. int
  14383. main ()
  14384. {
  14385. char *p = (char *) alloca (1);
  14386. if (p) return 0;
  14387. ;
  14388. return 0;
  14389. }
  14390. _ACEOF
  14391. if ac_fn_c_try_link "$LINENO"; then :
  14392. ac_cv_func_alloca_works=yes
  14393. else
  14394. ac_cv_func_alloca_works=no
  14395. fi
  14396. rm -f core conftest.err conftest.$ac_objext \
  14397. conftest$ac_exeext conftest.$ac_ext
  14398. fi
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14400. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14401. if test $ac_cv_func_alloca_works = yes; then
  14402. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14403. else
  14404. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14405. # that cause trouble. Some versions do not even contain alloca or
  14406. # contain a buggy version. If you still want to use their alloca,
  14407. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14408. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14409. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14411. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14412. if ${ac_cv_os_cray+:} false; then :
  14413. $as_echo_n "(cached) " >&6
  14414. else
  14415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14416. /* end confdefs.h. */
  14417. #if defined CRAY && ! defined CRAY2
  14418. webecray
  14419. #else
  14420. wenotbecray
  14421. #endif
  14422. _ACEOF
  14423. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14424. $EGREP "webecray" >/dev/null 2>&1; then :
  14425. ac_cv_os_cray=yes
  14426. else
  14427. ac_cv_os_cray=no
  14428. fi
  14429. rm -f conftest*
  14430. fi
  14431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14432. $as_echo "$ac_cv_os_cray" >&6; }
  14433. if test $ac_cv_os_cray = yes; then
  14434. for ac_func in _getb67 GETB67 getb67; do
  14435. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14436. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14437. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14438. cat >>confdefs.h <<_ACEOF
  14439. #define CRAY_STACKSEG_END $ac_func
  14440. _ACEOF
  14441. break
  14442. fi
  14443. done
  14444. fi
  14445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14446. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14447. if ${ac_cv_c_stack_direction+:} false; then :
  14448. $as_echo_n "(cached) " >&6
  14449. else
  14450. if test "$cross_compiling" = yes; then :
  14451. ac_cv_c_stack_direction=0
  14452. else
  14453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14454. /* end confdefs.h. */
  14455. $ac_includes_default
  14456. int
  14457. find_stack_direction (int *addr, int depth)
  14458. {
  14459. int dir, dummy = 0;
  14460. if (! addr)
  14461. addr = &dummy;
  14462. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14463. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14464. return dir + dummy;
  14465. }
  14466. int
  14467. main (int argc, char **argv)
  14468. {
  14469. return find_stack_direction (0, argc + !argv + 20) < 0;
  14470. }
  14471. _ACEOF
  14472. if ac_fn_c_try_run "$LINENO"; then :
  14473. ac_cv_c_stack_direction=1
  14474. else
  14475. ac_cv_c_stack_direction=-1
  14476. fi
  14477. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14478. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14479. fi
  14480. fi
  14481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14482. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14483. cat >>confdefs.h <<_ACEOF
  14484. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14485. _ACEOF
  14486. fi
  14487. ;;
  14488. esac
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14490. $as_echo_n "checking for working memcmp... " >&6; }
  14491. if ${ac_cv_func_memcmp_working+:} false; then :
  14492. $as_echo_n "(cached) " >&6
  14493. else
  14494. if test "$cross_compiling" = yes; then :
  14495. ac_cv_func_memcmp_working=no
  14496. else
  14497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14498. /* end confdefs.h. */
  14499. $ac_includes_default
  14500. int
  14501. main ()
  14502. {
  14503. /* Some versions of memcmp are not 8-bit clean. */
  14504. char c0 = '\100', c1 = '\200', c2 = '\201';
  14505. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14506. return 1;
  14507. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14508. or more and with at least one buffer not starting on a 4-byte boundary.
  14509. William Lewis provided this test program. */
  14510. {
  14511. char foo[21];
  14512. char bar[21];
  14513. int i;
  14514. for (i = 0; i < 4; i++)
  14515. {
  14516. char *a = foo + i;
  14517. char *b = bar + i;
  14518. strcpy (a, "--------01111111");
  14519. strcpy (b, "--------10000000");
  14520. if (memcmp (a, b, 16) >= 0)
  14521. return 1;
  14522. }
  14523. return 0;
  14524. }
  14525. ;
  14526. return 0;
  14527. }
  14528. _ACEOF
  14529. if ac_fn_c_try_run "$LINENO"; then :
  14530. ac_cv_func_memcmp_working=yes
  14531. else
  14532. ac_cv_func_memcmp_working=no
  14533. fi
  14534. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14535. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14536. fi
  14537. fi
  14538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14539. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14540. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14541. *" memcmp.$ac_objext "* ) ;;
  14542. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14543. ;;
  14544. esac
  14545. if test x$ac_cv_func_memcmp_working = xyes; then
  14546. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14547. fi
  14548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14549. $as_echo_n "checking for working strtod... " >&6; }
  14550. if ${ac_cv_func_strtod+:} false; then :
  14551. $as_echo_n "(cached) " >&6
  14552. else
  14553. if test "$cross_compiling" = yes; then :
  14554. ac_cv_func_strtod=no
  14555. else
  14556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14557. /* end confdefs.h. */
  14558. $ac_includes_default
  14559. #ifndef strtod
  14560. double strtod ();
  14561. #endif
  14562. int
  14563. main()
  14564. {
  14565. {
  14566. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14567. char *string = " +69";
  14568. char *term;
  14569. double value;
  14570. value = strtod (string, &term);
  14571. if (value != 69 || term != (string + 4))
  14572. return 1;
  14573. }
  14574. {
  14575. /* Under Solaris 2.4, strtod returns the wrong value for the
  14576. terminating character under some conditions. */
  14577. char *string = "NaN";
  14578. char *term;
  14579. strtod (string, &term);
  14580. if (term != string && *(term - 1) == 0)
  14581. return 1;
  14582. }
  14583. return 0;
  14584. }
  14585. _ACEOF
  14586. if ac_fn_c_try_run "$LINENO"; then :
  14587. ac_cv_func_strtod=yes
  14588. else
  14589. ac_cv_func_strtod=no
  14590. fi
  14591. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14592. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14593. fi
  14594. fi
  14595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14596. $as_echo "$ac_cv_func_strtod" >&6; }
  14597. if test $ac_cv_func_strtod = no; then
  14598. case " $LIBOBJS " in
  14599. *" strtod.$ac_objext "* ) ;;
  14600. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14601. ;;
  14602. esac
  14603. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14604. if test "x$ac_cv_func_pow" = xyes; then :
  14605. fi
  14606. if test $ac_cv_func_pow = no; then
  14607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14608. $as_echo_n "checking for pow in -lm... " >&6; }
  14609. if ${ac_cv_lib_m_pow+:} false; then :
  14610. $as_echo_n "(cached) " >&6
  14611. else
  14612. ac_check_lib_save_LIBS=$LIBS
  14613. LIBS="-lm $LIBS"
  14614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14615. /* end confdefs.h. */
  14616. /* Override any GCC internal prototype to avoid an error.
  14617. Use char because int might match the return type of a GCC
  14618. builtin and then its argument prototype would still apply. */
  14619. #ifdef __cplusplus
  14620. extern "C"
  14621. #endif
  14622. char pow ();
  14623. int
  14624. main ()
  14625. {
  14626. return pow ();
  14627. ;
  14628. return 0;
  14629. }
  14630. _ACEOF
  14631. if ac_fn_c_try_link "$LINENO"; then :
  14632. ac_cv_lib_m_pow=yes
  14633. else
  14634. ac_cv_lib_m_pow=no
  14635. fi
  14636. rm -f core conftest.err conftest.$ac_objext \
  14637. conftest$ac_exeext conftest.$ac_ext
  14638. LIBS=$ac_check_lib_save_LIBS
  14639. fi
  14640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14641. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14642. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14643. POW_LIB=-lm
  14644. else
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14646. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14647. fi
  14648. fi
  14649. fi
  14650. if test x$ac_cv_func_strtod = xyes; then
  14651. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14652. fi
  14653. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14654. if test "x$ac_cv_func_mprotect" = xyes; then :
  14655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14656. /* end confdefs.h. */
  14657. #include <sys/types.h>
  14658. #include <sys/mman.h>
  14659. int
  14660. main ()
  14661. {
  14662. ;
  14663. return 0;
  14664. }
  14665. _ACEOF
  14666. if ac_fn_c_try_compile "$LINENO"; then :
  14667. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14668. fi
  14669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14670. fi
  14671. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll _Exit
  14672. do :
  14673. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14674. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14675. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14676. cat >>confdefs.h <<_ACEOF
  14677. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14678. _ACEOF
  14679. fi
  14680. done
  14681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14682. $as_echo_n "checking for pow in -lm... " >&6; }
  14683. if ${ac_cv_lib_m_pow+:} false; then :
  14684. $as_echo_n "(cached) " >&6
  14685. else
  14686. ac_check_lib_save_LIBS=$LIBS
  14687. LIBS="-lm $LIBS"
  14688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14689. /* end confdefs.h. */
  14690. /* Override any GCC internal prototype to avoid an error.
  14691. Use char because int might match the return type of a GCC
  14692. builtin and then its argument prototype would still apply. */
  14693. #ifdef __cplusplus
  14694. extern "C"
  14695. #endif
  14696. char pow ();
  14697. int
  14698. main ()
  14699. {
  14700. return pow ();
  14701. ;
  14702. return 0;
  14703. }
  14704. _ACEOF
  14705. if ac_fn_c_try_link "$LINENO"; then :
  14706. ac_cv_lib_m_pow=yes
  14707. else
  14708. ac_cv_lib_m_pow=no
  14709. fi
  14710. rm -f core conftest.err conftest.$ac_objext \
  14711. conftest$ac_exeext conftest.$ac_ext
  14712. LIBS=$ac_check_lib_save_LIBS
  14713. fi
  14714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14715. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14716. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14717. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14718. fi
  14719. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14720. do :
  14721. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14722. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14723. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14724. cat >>confdefs.h <<_ACEOF
  14725. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14726. _ACEOF
  14727. fi
  14728. done
  14729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14730. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14731. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14732. $as_echo_n "(cached) " >&6
  14733. else
  14734. ac_check_lib_save_LIBS=$LIBS
  14735. LIBS="-liconv $LIBS"
  14736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14737. /* end confdefs.h. */
  14738. /* Override any GCC internal prototype to avoid an error.
  14739. Use char because int might match the return type of a GCC
  14740. builtin and then its argument prototype would still apply. */
  14741. #ifdef __cplusplus
  14742. extern "C"
  14743. #endif
  14744. char iconv_open ();
  14745. int
  14746. main ()
  14747. {
  14748. return iconv_open ();
  14749. ;
  14750. return 0;
  14751. }
  14752. _ACEOF
  14753. if ac_fn_c_try_link "$LINENO"; then :
  14754. ac_cv_lib_iconv_iconv_open=yes
  14755. else
  14756. ac_cv_lib_iconv_iconv_open=no
  14757. fi
  14758. rm -f core conftest.err conftest.$ac_objext \
  14759. conftest$ac_exeext conftest.$ac_ext
  14760. LIBS=$ac_check_lib_save_LIBS
  14761. fi
  14762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14763. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14764. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14765. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14766. fi
  14767. for ac_func in iconv
  14768. do :
  14769. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14770. if test "x$ac_cv_func_iconv" = xyes; then :
  14771. cat >>confdefs.h <<_ACEOF
  14772. #define HAVE_ICONV 1
  14773. _ACEOF
  14774. fi
  14775. done
  14776. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14777. "
  14778. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14779. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14780. fi
  14781. for ac_header in libunwind.h
  14782. do :
  14783. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14784. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14785. cat >>confdefs.h <<_ACEOF
  14786. #define HAVE_LIBUNWIND_H 1
  14787. _ACEOF
  14788. fi
  14789. done
  14790. fi
  14791. # Check whether --enable-gcc-atomics was given.
  14792. if test "${enable_gcc_atomics+set}" = set; then :
  14793. enableval=$enable_gcc_atomics;
  14794. else
  14795. enable_gcc_atomics=yes
  14796. fi
  14797. if test x$enable_gcc_atomics = xyes; then
  14798. have_gcc_atomics=no
  14799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14800. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14802. /* end confdefs.h. */
  14803. int
  14804. main ()
  14805. {
  14806. int a;
  14807. void *x, *y, *z;
  14808. __sync_lock_test_and_set(&a, 4);
  14809. __sync_lock_test_and_set(&x, y);
  14810. __sync_fetch_and_add(&a, 1);
  14811. __sync_bool_compare_and_swap(&a, 5, 10);
  14812. __sync_bool_compare_and_swap(&x, y, z);
  14813. ;
  14814. return 0;
  14815. }
  14816. _ACEOF
  14817. if ac_fn_c_try_link "$LINENO"; then :
  14818. have_gcc_atomics=yes
  14819. fi
  14820. rm -f core conftest.err conftest.$ac_objext \
  14821. conftest$ac_exeext conftest.$ac_ext
  14822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14823. $as_echo "$have_gcc_atomics" >&6; }
  14824. if test x$have_gcc_atomics = xyes; then
  14825. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14826. else
  14827. # See if we have the minimum operation needed for GCC atomics
  14828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14829. /* end confdefs.h. */
  14830. int
  14831. main ()
  14832. {
  14833. int a;
  14834. __sync_lock_test_and_set(&a, 1);
  14835. __sync_lock_release(&a);
  14836. ;
  14837. return 0;
  14838. }
  14839. _ACEOF
  14840. if ac_fn_c_try_link "$LINENO"; then :
  14841. have_gcc_sync_lock_test_and_set=yes
  14842. fi
  14843. rm -f core conftest.err conftest.$ac_objext \
  14844. conftest$ac_exeext conftest.$ac_ext
  14845. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14846. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14847. fi
  14848. fi
  14849. fi
  14850. # Standard C sources
  14851. SOURCES="$SOURCES $srcdir/src/*.c"
  14852. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14853. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14854. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14855. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14856. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14857. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14858. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14859. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14860. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14861. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14862. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14863. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14864. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14865. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14866. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14867. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14868. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14869. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14870. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14871. # Check whether --enable-atomic was given.
  14872. if test "${enable_atomic+set}" = set; then :
  14873. enableval=$enable_atomic;
  14874. else
  14875. enable_atomic=yes
  14876. fi
  14877. if test x$enable_atomic != xyes; then
  14878. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14879. else
  14880. SUMMARY_modules="${SUMMARY_modules} atomic"
  14881. fi
  14882. # Check whether --enable-audio was given.
  14883. if test "${enable_audio+set}" = set; then :
  14884. enableval=$enable_audio;
  14885. else
  14886. enable_audio=yes
  14887. fi
  14888. if test x$enable_audio != xyes; then
  14889. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14890. else
  14891. SUMMARY_modules="${SUMMARY_modules} audio"
  14892. fi
  14893. # Check whether --enable-video was given.
  14894. if test "${enable_video+set}" = set; then :
  14895. enableval=$enable_video;
  14896. else
  14897. enable_video=yes
  14898. fi
  14899. if test x$enable_video != xyes; then
  14900. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14901. else
  14902. SUMMARY_modules="${SUMMARY_modules} video"
  14903. fi
  14904. # Check whether --enable-render was given.
  14905. if test "${enable_render+set}" = set; then :
  14906. enableval=$enable_render;
  14907. else
  14908. enable_render=yes
  14909. fi
  14910. if test x$enable_render != xyes; then
  14911. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14912. else
  14913. SUMMARY_modules="${SUMMARY_modules} render"
  14914. fi
  14915. # Check whether --enable-events was given.
  14916. if test "${enable_events+set}" = set; then :
  14917. enableval=$enable_events;
  14918. else
  14919. enable_events=yes
  14920. fi
  14921. if test x$enable_events != xyes; then
  14922. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14923. else
  14924. SUMMARY_modules="${SUMMARY_modules} events"
  14925. fi
  14926. # Check whether --enable-joystick was given.
  14927. if test "${enable_joystick+set}" = set; then :
  14928. enableval=$enable_joystick;
  14929. else
  14930. enable_joystick=yes
  14931. fi
  14932. if test x$enable_joystick != xyes; then
  14933. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14934. else
  14935. SUMMARY_modules="${SUMMARY_modules} joystick"
  14936. fi
  14937. # Check whether --enable-haptic was given.
  14938. if test "${enable_haptic+set}" = set; then :
  14939. enableval=$enable_haptic;
  14940. else
  14941. enable_haptic=yes
  14942. fi
  14943. if test x$enable_haptic != xyes; then
  14944. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14945. else
  14946. SUMMARY_modules="${SUMMARY_modules} haptic"
  14947. fi
  14948. # Check whether --enable-sensor was given.
  14949. if test "${enable_sensor+set}" = set; then :
  14950. enableval=$enable_sensor;
  14951. else
  14952. enable_sensor=yes
  14953. fi
  14954. if test x$enable_sensor != xyes; then
  14955. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14956. else
  14957. SUMMARY_modules="${SUMMARY_modules} sensor"
  14958. fi
  14959. # Check whether --enable-power was given.
  14960. if test "${enable_power+set}" = set; then :
  14961. enableval=$enable_power;
  14962. else
  14963. enable_power=yes
  14964. fi
  14965. if test x$enable_power != xyes; then
  14966. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14967. else
  14968. SUMMARY_modules="${SUMMARY_modules} power"
  14969. fi
  14970. # Check whether --enable-filesystem was given.
  14971. if test "${enable_filesystem+set}" = set; then :
  14972. enableval=$enable_filesystem;
  14973. else
  14974. enable_filesystem=yes
  14975. fi
  14976. if test x$enable_filesystem != xyes; then
  14977. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14978. else
  14979. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14980. fi
  14981. # Check whether --enable-threads was given.
  14982. if test "${enable_threads+set}" = set; then :
  14983. enableval=$enable_threads;
  14984. else
  14985. enable_threads=yes
  14986. fi
  14987. if test x$enable_threads != xyes; then
  14988. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14989. else
  14990. SUMMARY_modules="${SUMMARY_modules} threads"
  14991. fi
  14992. # Check whether --enable-timers was given.
  14993. if test "${enable_timers+set}" = set; then :
  14994. enableval=$enable_timers;
  14995. else
  14996. enable_timers=yes
  14997. fi
  14998. if test x$enable_timers != xyes; then
  14999. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15000. else
  15001. SUMMARY_modules="${SUMMARY_modules} timers"
  15002. fi
  15003. # Check whether --enable-file was given.
  15004. if test "${enable_file+set}" = set; then :
  15005. enableval=$enable_file;
  15006. else
  15007. enable_file=yes
  15008. fi
  15009. if test x$enable_file != xyes; then
  15010. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15011. else
  15012. SUMMARY_modules="${SUMMARY_modules} file"
  15013. fi
  15014. # Check whether --enable-loadso was given.
  15015. if test "${enable_loadso+set}" = set; then :
  15016. enableval=$enable_loadso;
  15017. else
  15018. enable_loadso=yes
  15019. fi
  15020. if test x$enable_loadso != xyes; then
  15021. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15022. else
  15023. SUMMARY_modules="${SUMMARY_modules} loadso"
  15024. fi
  15025. # Check whether --enable-cpuinfo was given.
  15026. if test "${enable_cpuinfo+set}" = set; then :
  15027. enableval=$enable_cpuinfo;
  15028. else
  15029. enable_cpuinfo=yes
  15030. fi
  15031. if test x$enable_cpuinfo != xyes; then
  15032. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15033. else
  15034. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15035. fi
  15036. # Check whether --enable-assembly was given.
  15037. if test "${enable_assembly+set}" = set; then :
  15038. enableval=$enable_assembly;
  15039. else
  15040. enable_assembly=yes
  15041. fi
  15042. if test x$enable_assembly = xyes; then
  15043. SUMMARY_modules="${SUMMARY_modules} assembly"
  15044. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15045. # Make sure that we don't generate floating point code that would
  15046. # cause illegal instruction exceptions on older processors
  15047. case "$host" in
  15048. *-*-darwin*)
  15049. # Don't need to worry about Apple hardware, it's all SSE capable
  15050. default_ssemath=yes
  15051. ;;
  15052. *64-*-*)
  15053. # x86 64-bit architectures all have SSE instructions
  15054. default_ssemath=yes
  15055. ;;
  15056. *)
  15057. default_ssemath=no
  15058. ;;
  15059. esac
  15060. # Check whether --enable-ssemath was given.
  15061. if test "${enable_ssemath+set}" = set; then :
  15062. enableval=$enable_ssemath;
  15063. else
  15064. enable_ssemath=$default_ssemath
  15065. fi
  15066. if test x$enable_ssemath = xno; then
  15067. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15068. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15069. fi
  15070. fi
  15071. # Check whether --enable-mmx was given.
  15072. if test "${enable_mmx+set}" = set; then :
  15073. enableval=$enable_mmx;
  15074. else
  15075. enable_mmx=yes
  15076. fi
  15077. if test x$enable_mmx = xyes; then
  15078. save_CFLAGS="$CFLAGS"
  15079. have_gcc_mmx=no
  15080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15081. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15082. mmx_CFLAGS="-mmmx"
  15083. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15085. /* end confdefs.h. */
  15086. #ifdef __MINGW32__
  15087. #include <_mingw.h>
  15088. #ifdef __MINGW64_VERSION_MAJOR
  15089. #include <intrin.h>
  15090. #else
  15091. #include <mmintrin.h>
  15092. #endif
  15093. #else
  15094. #include <mmintrin.h>
  15095. #endif
  15096. #ifndef __MMX__
  15097. #error Assembler CPP flag not enabled
  15098. #endif
  15099. int
  15100. main ()
  15101. {
  15102. ;
  15103. return 0;
  15104. }
  15105. _ACEOF
  15106. if ac_fn_c_try_compile "$LINENO"; then :
  15107. have_gcc_mmx=yes
  15108. fi
  15109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15111. $as_echo "$have_gcc_mmx" >&6; }
  15112. CFLAGS="$save_CFLAGS"
  15113. if test x$have_gcc_mmx = xyes; then
  15114. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15115. SUMMARY_math="${SUMMARY_math} mmx"
  15116. fi
  15117. fi
  15118. # Check whether --enable-3dnow was given.
  15119. if test "${enable_3dnow+set}" = set; then :
  15120. enableval=$enable_3dnow;
  15121. else
  15122. enable_3dnow=yes
  15123. fi
  15124. if test x$enable_3dnow = xyes; then
  15125. save_CFLAGS="$CFLAGS"
  15126. have_gcc_3dnow=no
  15127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15128. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15129. amd3dnow_CFLAGS="-m3dnow"
  15130. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15132. /* end confdefs.h. */
  15133. #include <mm3dnow.h>
  15134. #ifndef __3dNOW__
  15135. #error Assembler CPP flag not enabled
  15136. #endif
  15137. int
  15138. main ()
  15139. {
  15140. void *p = 0;
  15141. _m_prefetch(p);
  15142. ;
  15143. return 0;
  15144. }
  15145. _ACEOF
  15146. if ac_fn_c_try_link "$LINENO"; then :
  15147. have_gcc_3dnow=yes
  15148. fi
  15149. rm -f core conftest.err conftest.$ac_objext \
  15150. conftest$ac_exeext conftest.$ac_ext
  15151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15152. $as_echo "$have_gcc_3dnow" >&6; }
  15153. CFLAGS="$save_CFLAGS"
  15154. if test x$have_gcc_3dnow = xyes; then
  15155. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15156. SUMMARY_math="${SUMMARY_math} 3dnow"
  15157. fi
  15158. fi
  15159. # Check whether --enable-sse was given.
  15160. if test "${enable_sse+set}" = set; then :
  15161. enableval=$enable_sse;
  15162. else
  15163. enable_sse=yes
  15164. fi
  15165. if test x$enable_sse = xyes; then
  15166. save_CFLAGS="$CFLAGS"
  15167. have_gcc_sse=no
  15168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15169. $as_echo_n "checking for GCC -msse option... " >&6; }
  15170. sse_CFLAGS="-msse"
  15171. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15173. /* end confdefs.h. */
  15174. #ifdef __MINGW32__
  15175. #include <_mingw.h>
  15176. #ifdef __MINGW64_VERSION_MAJOR
  15177. #include <intrin.h>
  15178. #else
  15179. #include <xmmintrin.h>
  15180. #endif
  15181. #else
  15182. #include <xmmintrin.h>
  15183. #endif
  15184. #ifndef __SSE__
  15185. #error Assembler CPP flag not enabled
  15186. #endif
  15187. int
  15188. main ()
  15189. {
  15190. ;
  15191. return 0;
  15192. }
  15193. _ACEOF
  15194. if ac_fn_c_try_compile "$LINENO"; then :
  15195. have_gcc_sse=yes
  15196. fi
  15197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15199. $as_echo "$have_gcc_sse" >&6; }
  15200. CFLAGS="$save_CFLAGS"
  15201. if test x$have_gcc_sse = xyes; then
  15202. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15203. SUMMARY_math="${SUMMARY_math} sse"
  15204. fi
  15205. fi
  15206. # Check whether --enable-sse2 was given.
  15207. if test "${enable_sse2+set}" = set; then :
  15208. enableval=$enable_sse2;
  15209. else
  15210. enable_sse2=$default_ssemath
  15211. fi
  15212. if test x$enable_sse2 = xyes; then
  15213. save_CFLAGS="$CFLAGS"
  15214. have_gcc_sse2=no
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15216. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15217. sse2_CFLAGS="-msse2"
  15218. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15220. /* end confdefs.h. */
  15221. #ifdef __MINGW32__
  15222. #include <_mingw.h>
  15223. #ifdef __MINGW64_VERSION_MAJOR
  15224. #include <intrin.h>
  15225. #else
  15226. #include <emmintrin.h>
  15227. #endif
  15228. #else
  15229. #include <emmintrin.h>
  15230. #endif
  15231. #ifndef __SSE2__
  15232. #error Assembler CPP flag not enabled
  15233. #endif
  15234. int
  15235. main ()
  15236. {
  15237. ;
  15238. return 0;
  15239. }
  15240. _ACEOF
  15241. if ac_fn_c_try_compile "$LINENO"; then :
  15242. have_gcc_sse2=yes
  15243. fi
  15244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15246. $as_echo "$have_gcc_sse2" >&6; }
  15247. CFLAGS="$save_CFLAGS"
  15248. if test x$have_gcc_sse2 = xyes; then
  15249. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15250. SUMMARY_math="${SUMMARY_math} sse2"
  15251. fi
  15252. fi
  15253. # Check whether --enable-sse3 was given.
  15254. if test "${enable_sse3+set}" = set; then :
  15255. enableval=$enable_sse3;
  15256. else
  15257. enable_sse3=$default_ssemath
  15258. fi
  15259. if test x$enable_sse3 = xyes; then
  15260. save_CFLAGS="$CFLAGS"
  15261. have_gcc_sse3=no
  15262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15263. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15264. sse3_CFLAGS="-msse3"
  15265. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15267. /* end confdefs.h. */
  15268. #ifdef __MINGW32__
  15269. #include <_mingw.h>
  15270. #ifdef __MINGW64_VERSION_MAJOR
  15271. #include <intrin.h>
  15272. #else
  15273. #include <pmmintrin.h>
  15274. #endif
  15275. #else
  15276. #include <pmmintrin.h>
  15277. #endif
  15278. #ifndef __SSE2__
  15279. #error Assembler CPP flag not enabled
  15280. #endif
  15281. int
  15282. main ()
  15283. {
  15284. ;
  15285. return 0;
  15286. }
  15287. _ACEOF
  15288. if ac_fn_c_try_compile "$LINENO"; then :
  15289. have_gcc_sse3=yes
  15290. fi
  15291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15293. $as_echo "$have_gcc_sse3" >&6; }
  15294. CFLAGS="$save_CFLAGS"
  15295. if test x$have_gcc_sse3 = xyes; then
  15296. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15297. SUMMARY_math="${SUMMARY_math} sse3"
  15298. fi
  15299. fi
  15300. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15301. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15302. have_immintrin_h_hdr=yes
  15303. else
  15304. have_immintrin_h_hdr=no
  15305. fi
  15306. if test x$have_immintrin_h_hdr = xyes; then
  15307. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15308. fi
  15309. # Check whether --enable-altivec was given.
  15310. if test "${enable_altivec+set}" = set; then :
  15311. enableval=$enable_altivec;
  15312. else
  15313. enable_altivec=yes
  15314. fi
  15315. if test x$enable_altivec = xyes; then
  15316. save_CFLAGS="$CFLAGS"
  15317. have_gcc_altivec=no
  15318. have_altivec_h_hdr=no
  15319. altivec_CFLAGS="-maltivec"
  15320. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15322. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15324. /* end confdefs.h. */
  15325. #include <altivec.h>
  15326. vector unsigned int vzero() {
  15327. return vec_splat_u32(0);
  15328. }
  15329. int
  15330. main ()
  15331. {
  15332. ;
  15333. return 0;
  15334. }
  15335. _ACEOF
  15336. if ac_fn_c_try_compile "$LINENO"; then :
  15337. have_gcc_altivec=yes
  15338. have_altivec_h_hdr=yes
  15339. fi
  15340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15342. $as_echo "$have_gcc_altivec" >&6; }
  15343. if test x$have_gcc_altivec = xno; then
  15344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15345. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15347. /* end confdefs.h. */
  15348. vector unsigned int vzero() {
  15349. return vec_splat_u32(0);
  15350. }
  15351. int
  15352. main ()
  15353. {
  15354. ;
  15355. return 0;
  15356. }
  15357. _ACEOF
  15358. if ac_fn_c_try_compile "$LINENO"; then :
  15359. have_gcc_altivec=yes
  15360. fi
  15361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15363. $as_echo "$have_gcc_altivec" >&6; }
  15364. fi
  15365. if test x$have_gcc_altivec = xno; then
  15366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15367. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15368. altivec_CFLAGS="-faltivec"
  15369. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15371. /* end confdefs.h. */
  15372. #include <altivec.h>
  15373. vector unsigned int vzero() {
  15374. return vec_splat_u32(0);
  15375. }
  15376. int
  15377. main ()
  15378. {
  15379. ;
  15380. return 0;
  15381. }
  15382. _ACEOF
  15383. if ac_fn_c_try_compile "$LINENO"; then :
  15384. have_gcc_altivec=yes
  15385. have_altivec_h_hdr=yes
  15386. fi
  15387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15389. $as_echo "$have_gcc_altivec" >&6; }
  15390. fi
  15391. if test x$have_gcc_altivec = xno; then
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15393. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15395. /* end confdefs.h. */
  15396. vector unsigned int vzero() {
  15397. return vec_splat_u32(0);
  15398. }
  15399. int
  15400. main ()
  15401. {
  15402. ;
  15403. return 0;
  15404. }
  15405. _ACEOF
  15406. if ac_fn_c_try_compile "$LINENO"; then :
  15407. have_gcc_altivec=yes
  15408. fi
  15409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15411. $as_echo "$have_gcc_altivec" >&6; }
  15412. fi
  15413. CFLAGS="$save_CFLAGS"
  15414. if test x$have_gcc_altivec = xyes; then
  15415. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15416. if test x$have_altivec_h_hdr = xyes; then
  15417. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15418. fi
  15419. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15420. SUMMARY_math="${SUMMARY_math} altivec"
  15421. fi
  15422. fi
  15423. fi
  15424. CheckOSS()
  15425. {
  15426. # Check whether --enable-oss was given.
  15427. if test "${enable_oss+set}" = set; then :
  15428. enableval=$enable_oss;
  15429. else
  15430. enable_oss=maybe
  15431. fi
  15432. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15433. # use sndio instead. So on there, we default to disabled. You can force
  15434. # it on if you really want, though.
  15435. if test x$enable_oss = xmaybe; then
  15436. enable_oss=yes
  15437. case "$host" in
  15438. *-*-openbsd*)
  15439. enable_oss=no;;
  15440. esac
  15441. fi
  15442. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15444. $as_echo_n "checking for OSS audio support... " >&6; }
  15445. have_oss=no
  15446. if test x$have_oss != xyes; then
  15447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15448. /* end confdefs.h. */
  15449. #include <sys/soundcard.h>
  15450. int
  15451. main ()
  15452. {
  15453. int arg = SNDCTL_DSP_SETFRAGMENT;
  15454. ;
  15455. return 0;
  15456. }
  15457. _ACEOF
  15458. if ac_fn_c_try_compile "$LINENO"; then :
  15459. have_oss=yes
  15460. fi
  15461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15462. fi
  15463. if test x$have_oss != xyes; then
  15464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15465. /* end confdefs.h. */
  15466. #include <soundcard.h>
  15467. int
  15468. main ()
  15469. {
  15470. int arg = SNDCTL_DSP_SETFRAGMENT;
  15471. ;
  15472. return 0;
  15473. }
  15474. _ACEOF
  15475. if ac_fn_c_try_compile "$LINENO"; then :
  15476. have_oss=yes
  15477. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15478. fi
  15479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15480. fi
  15481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15482. $as_echo "$have_oss" >&6; }
  15483. if test x$have_oss = xyes; then
  15484. SUMMARY_audio="${SUMMARY_audio} oss"
  15485. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15486. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15487. have_audio=yes
  15488. # We may need to link with ossaudio emulation library
  15489. case "$host" in
  15490. *-*-openbsd*|*-*-netbsd*)
  15491. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15492. esac
  15493. fi
  15494. fi
  15495. }
  15496. CheckALSA()
  15497. {
  15498. # Check whether --enable-alsa was given.
  15499. if test "${enable_alsa+set}" = set; then :
  15500. enableval=$enable_alsa;
  15501. else
  15502. enable_alsa=yes
  15503. fi
  15504. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15505. alsa_save_CFLAGS="$CFLAGS"
  15506. alsa_save_LDFLAGS="$LDFLAGS"
  15507. alsa_save_LIBS="$LIBS"
  15508. alsa_found=yes
  15509. # Check whether --with-alsa-prefix was given.
  15510. if test "${with_alsa_prefix+set}" = set; then :
  15511. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15512. else
  15513. alsa_prefix=""
  15514. fi
  15515. # Check whether --with-alsa-inc-prefix was given.
  15516. if test "${with_alsa_inc_prefix+set}" = set; then :
  15517. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15518. else
  15519. alsa_inc_prefix=""
  15520. fi
  15521. # Check whether --enable-alsatest was given.
  15522. if test "${enable_alsatest+set}" = set; then :
  15523. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15524. else
  15525. enable_alsatest=yes
  15526. fi
  15527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15528. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15529. if test "$alsa_inc_prefix" != "" ; then
  15530. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15531. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15532. fi
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15534. $as_echo "$ALSA_CFLAGS" >&6; }
  15535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15536. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15537. if test "$alsa_prefix" != "" ; then
  15538. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15539. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15540. fi
  15541. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15542. LIBS=`echo $LIBS | sed 's/-lm//'`
  15543. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15544. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15545. LIBS=`echo $LIBS | sed 's/ //'`
  15546. LIBS="$ALSA_LIBS $LIBS"
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15548. $as_echo "$ALSA_LIBS" >&6; }
  15549. min_alsa_version=1.0.11
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15551. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15552. no_alsa=""
  15553. alsa_min_major_version=`echo $min_alsa_version | \
  15554. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15555. alsa_min_minor_version=`echo $min_alsa_version | \
  15556. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15557. alsa_min_micro_version=`echo $min_alsa_version | \
  15558. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15559. ac_ext=c
  15560. ac_cpp='$CPP $CPPFLAGS'
  15561. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15562. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15563. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15565. /* end confdefs.h. */
  15566. #include <alsa/asoundlib.h>
  15567. int
  15568. main ()
  15569. {
  15570. /* ensure backward compatibility */
  15571. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15572. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15573. #endif
  15574. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15575. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15576. #endif
  15577. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15578. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15579. #endif
  15580. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15581. exit(0);
  15582. # else
  15583. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15584. # error not present
  15585. # endif
  15586. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15587. exit(0);
  15588. # else
  15589. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15590. # error not present
  15591. # endif
  15592. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15593. # error not present
  15594. # endif
  15595. # endif
  15596. # endif
  15597. exit(0);
  15598. ;
  15599. return 0;
  15600. }
  15601. _ACEOF
  15602. if ac_fn_c_try_compile "$LINENO"; then :
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15604. $as_echo "found." >&6; }
  15605. else
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15607. $as_echo "not present." >&6; }
  15608. alsa_found=no
  15609. fi
  15610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15611. ac_ext=c
  15612. ac_cpp='$CPP $CPPFLAGS'
  15613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15616. if test "x$enable_alsatest" = "xyes"; then
  15617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15618. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15619. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15620. $as_echo_n "(cached) " >&6
  15621. else
  15622. ac_check_lib_save_LIBS=$LIBS
  15623. LIBS="-lasound $LIBS"
  15624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15625. /* end confdefs.h. */
  15626. /* Override any GCC internal prototype to avoid an error.
  15627. Use char because int might match the return type of a GCC
  15628. builtin and then its argument prototype would still apply. */
  15629. #ifdef __cplusplus
  15630. extern "C"
  15631. #endif
  15632. char snd_ctl_open ();
  15633. int
  15634. main ()
  15635. {
  15636. return snd_ctl_open ();
  15637. ;
  15638. return 0;
  15639. }
  15640. _ACEOF
  15641. if ac_fn_c_try_link "$LINENO"; then :
  15642. ac_cv_lib_asound_snd_ctl_open=yes
  15643. else
  15644. ac_cv_lib_asound_snd_ctl_open=no
  15645. fi
  15646. rm -f core conftest.err conftest.$ac_objext \
  15647. conftest$ac_exeext conftest.$ac_ext
  15648. LIBS=$ac_check_lib_save_LIBS
  15649. fi
  15650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15651. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15652. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15653. cat >>confdefs.h <<_ACEOF
  15654. #define HAVE_LIBASOUND 1
  15655. _ACEOF
  15656. LIBS="-lasound $LIBS"
  15657. else
  15658. alsa_found=no
  15659. fi
  15660. fi
  15661. if test "x$alsa_found" = "xyes" ; then
  15662. have_alsa=yes
  15663. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15664. LIBS=`echo $LIBS | sed 's/ //'`
  15665. LIBS="-lasound $LIBS"
  15666. fi
  15667. if test "x$alsa_found" = "xno" ; then
  15668. have_alsa=no
  15669. CFLAGS="$alsa_save_CFLAGS"
  15670. LDFLAGS="$alsa_save_LDFLAGS"
  15671. LIBS="$alsa_save_LIBS"
  15672. ALSA_CFLAGS=""
  15673. ALSA_LIBS=""
  15674. fi
  15675. # Restore all flags from before the ALSA detection runs
  15676. CFLAGS="$alsa_save_CFLAGS"
  15677. LDFLAGS="$alsa_save_LDFLAGS"
  15678. LIBS="$alsa_save_LIBS"
  15679. if test x$have_alsa = xyes; then
  15680. # Check whether --enable-alsa-shared was given.
  15681. if test "${enable_alsa_shared+set}" = set; then :
  15682. enableval=$enable_alsa_shared;
  15683. else
  15684. enable_alsa_shared=yes
  15685. fi
  15686. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15687. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15688. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15689. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15690. if test x$have_loadso != xyes && \
  15691. test x$enable_alsa_shared = xyes; then
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15693. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15694. fi
  15695. if test x$have_loadso = xyes && \
  15696. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15697. echo "-- dynamic libasound -> $alsa_lib"
  15698. cat >>confdefs.h <<_ACEOF
  15699. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15700. _ACEOF
  15701. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15702. else
  15703. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15704. SUMMARY_audio="${SUMMARY_audio} alsa"
  15705. fi
  15706. have_audio=yes
  15707. fi
  15708. fi
  15709. }
  15710. CheckJACK()
  15711. {
  15712. # Check whether --enable-jack was given.
  15713. if test "${enable_jack+set}" = set; then :
  15714. enableval=$enable_jack;
  15715. else
  15716. enable_jack=yes
  15717. fi
  15718. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15719. pkg_failed=no
  15720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15721. $as_echo_n "checking for JACK... " >&6; }
  15722. if test -n "$JACK_CFLAGS"; then
  15723. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15724. elif test -n "$PKG_CONFIG"; then
  15725. if test -n "$PKG_CONFIG" && \
  15726. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15727. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15728. ac_status=$?
  15729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15730. test $ac_status = 0; }; then
  15731. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15732. else
  15733. pkg_failed=yes
  15734. fi
  15735. else
  15736. pkg_failed=untried
  15737. fi
  15738. if test -n "$JACK_LIBS"; then
  15739. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15740. elif test -n "$PKG_CONFIG"; then
  15741. if test -n "$PKG_CONFIG" && \
  15742. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15743. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15744. ac_status=$?
  15745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15746. test $ac_status = 0; }; then
  15747. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15748. else
  15749. pkg_failed=yes
  15750. fi
  15751. else
  15752. pkg_failed=untried
  15753. fi
  15754. if test $pkg_failed = yes; then
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15756. $as_echo "no" >&6; }
  15757. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15758. _pkg_short_errors_supported=yes
  15759. else
  15760. _pkg_short_errors_supported=no
  15761. fi
  15762. if test $_pkg_short_errors_supported = yes; then
  15763. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15764. else
  15765. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15766. fi
  15767. # Put the nasty error message in config.log where it belongs
  15768. echo "$JACK_PKG_ERRORS" >&5
  15769. audio_jack=no
  15770. elif test $pkg_failed = untried; then
  15771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15772. $as_echo "no" >&6; }
  15773. audio_jack=no
  15774. else
  15775. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15776. JACK_LIBS=$pkg_cv_JACK_LIBS
  15777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15778. $as_echo "yes" >&6; }
  15779. audio_jack=yes
  15780. fi
  15781. if test x$audio_jack = xyes; then
  15782. # Check whether --enable-jack-shared was given.
  15783. if test "${enable_jack_shared+set}" = set; then :
  15784. enableval=$enable_jack_shared;
  15785. else
  15786. enable_jack_shared=yes
  15787. fi
  15788. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15789. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15790. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15791. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15792. if test x$have_loadso != xyes && \
  15793. test x$enable_jack_shared = xyes; then
  15794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15795. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15796. fi
  15797. if test x$have_loadso = xyes && \
  15798. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15799. echo "-- dynamic libjack -> $jack_lib"
  15800. cat >>confdefs.h <<_ACEOF
  15801. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15802. _ACEOF
  15803. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15804. case "$host" in
  15805. # On Solaris, jack must be linked deferred explicitly
  15806. # to prevent undefined symbol failures.
  15807. *-*-solaris*)
  15808. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15809. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15810. esac
  15811. else
  15812. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15813. SUMMARY_audio="${SUMMARY_audio} jack"
  15814. fi
  15815. have_audio=yes
  15816. fi
  15817. fi
  15818. }
  15819. CheckESD()
  15820. {
  15821. # Check whether --enable-esd was given.
  15822. if test "${enable_esd+set}" = set; then :
  15823. enableval=$enable_esd;
  15824. else
  15825. enable_esd=yes
  15826. fi
  15827. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15828. # Check whether --with-esd-prefix was given.
  15829. if test "${with_esd_prefix+set}" = set; then :
  15830. withval=$with_esd_prefix; esd_prefix="$withval"
  15831. else
  15832. esd_prefix=""
  15833. fi
  15834. # Check whether --with-esd-exec-prefix was given.
  15835. if test "${with_esd_exec_prefix+set}" = set; then :
  15836. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15837. else
  15838. esd_exec_prefix=""
  15839. fi
  15840. # Check whether --enable-esdtest was given.
  15841. if test "${enable_esdtest+set}" = set; then :
  15842. enableval=$enable_esdtest;
  15843. else
  15844. enable_esdtest=yes
  15845. fi
  15846. if test x$esd_exec_prefix != x ; then
  15847. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15848. if test x${ESD_CONFIG+set} != xset ; then
  15849. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15850. fi
  15851. fi
  15852. if test x$esd_prefix != x ; then
  15853. esd_args="$esd_args --prefix=$esd_prefix"
  15854. if test x${ESD_CONFIG+set} != xset ; then
  15855. ESD_CONFIG=$esd_prefix/bin/esd-config
  15856. fi
  15857. fi
  15858. # Extract the first word of "esd-config", so it can be a program name with args.
  15859. set dummy esd-config; ac_word=$2
  15860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15861. $as_echo_n "checking for $ac_word... " >&6; }
  15862. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15863. $as_echo_n "(cached) " >&6
  15864. else
  15865. case $ESD_CONFIG in
  15866. [\\/]* | ?:[\\/]*)
  15867. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15868. ;;
  15869. *)
  15870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15871. for as_dir in $PATH
  15872. do
  15873. IFS=$as_save_IFS
  15874. test -z "$as_dir" && as_dir=.
  15875. for ac_exec_ext in '' $ac_executable_extensions; do
  15876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15877. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15879. break 2
  15880. fi
  15881. done
  15882. done
  15883. IFS=$as_save_IFS
  15884. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15885. ;;
  15886. esac
  15887. fi
  15888. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15889. if test -n "$ESD_CONFIG"; then
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15891. $as_echo "$ESD_CONFIG" >&6; }
  15892. else
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15894. $as_echo "no" >&6; }
  15895. fi
  15896. min_esd_version=0.2.8
  15897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15898. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15899. no_esd=""
  15900. if test "$ESD_CONFIG" = "no" ; then
  15901. no_esd=yes
  15902. else
  15903. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15904. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15905. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15906. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15907. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15908. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15909. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15910. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15911. if test "x$enable_esdtest" = "xyes" ; then
  15912. ac_save_CFLAGS="$CFLAGS"
  15913. ac_save_LIBS="$LIBS"
  15914. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15915. LIBS="$LIBS $ESD_LIBS"
  15916. rm -f conf.esdtest
  15917. if test "$cross_compiling" = yes; then :
  15918. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15919. else
  15920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15921. /* end confdefs.h. */
  15922. #include <stdio.h>
  15923. #include <stdlib.h>
  15924. #include <string.h>
  15925. #include <esd.h>
  15926. char*
  15927. my_strdup (char *str)
  15928. {
  15929. char *new_str;
  15930. if (str)
  15931. {
  15932. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15933. strcpy (new_str, str);
  15934. }
  15935. else
  15936. new_str = NULL;
  15937. return new_str;
  15938. }
  15939. int main ()
  15940. {
  15941. int major, minor, micro;
  15942. char *tmp_version;
  15943. system ("touch conf.esdtest");
  15944. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15945. tmp_version = my_strdup("$min_esd_version");
  15946. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15947. printf("%s, bad version string\n", "$min_esd_version");
  15948. exit(1);
  15949. }
  15950. if (($esd_major_version > major) ||
  15951. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15952. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15953. {
  15954. return 0;
  15955. }
  15956. else
  15957. {
  15958. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15959. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15960. printf("*** best to upgrade to the required version.\n");
  15961. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15962. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15963. printf("*** config.cache before re-running configure\n");
  15964. return 1;
  15965. }
  15966. }
  15967. _ACEOF
  15968. if ac_fn_c_try_run "$LINENO"; then :
  15969. else
  15970. no_esd=yes
  15971. fi
  15972. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15973. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15974. fi
  15975. CFLAGS="$ac_save_CFLAGS"
  15976. LIBS="$ac_save_LIBS"
  15977. fi
  15978. fi
  15979. if test "x$no_esd" = x ; then
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15981. $as_echo "yes" >&6; }
  15982. have_esd=yes
  15983. else
  15984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15985. $as_echo "no" >&6; }
  15986. if test "$ESD_CONFIG" = "no" ; then
  15987. echo "*** The esd-config script installed by ESD could not be found"
  15988. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15989. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15990. echo "*** full path to esd-config."
  15991. else
  15992. if test -f conf.esdtest ; then
  15993. :
  15994. else
  15995. echo "*** Could not run ESD test program, checking why..."
  15996. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15997. LIBS="$LIBS $ESD_LIBS"
  15998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15999. /* end confdefs.h. */
  16000. #include <stdio.h>
  16001. #include <esd.h>
  16002. int
  16003. main ()
  16004. {
  16005. return 0;
  16006. ;
  16007. return 0;
  16008. }
  16009. _ACEOF
  16010. if ac_fn_c_try_link "$LINENO"; then :
  16011. echo "*** The test program compiled, but did not run. This usually means"
  16012. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16013. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16014. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16015. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16016. echo "*** is required on your system"
  16017. echo "***"
  16018. echo "*** If you have an old version installed, it is best to remove it, although"
  16019. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16020. else
  16021. echo "*** The test program failed to compile or link. See the file config.log for the"
  16022. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16023. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16024. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16025. fi
  16026. rm -f core conftest.err conftest.$ac_objext \
  16027. conftest$ac_exeext conftest.$ac_ext
  16028. CFLAGS="$ac_save_CFLAGS"
  16029. LIBS="$ac_save_LIBS"
  16030. fi
  16031. fi
  16032. ESD_CFLAGS=""
  16033. ESD_LIBS=""
  16034. have_esd=no
  16035. fi
  16036. rm -f conf.esdtest
  16037. if test x$have_esd = xyes; then
  16038. # Check whether --enable-esd-shared was given.
  16039. if test "${enable_esd_shared+set}" = set; then :
  16040. enableval=$enable_esd_shared;
  16041. else
  16042. enable_esd_shared=yes
  16043. fi
  16044. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16045. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16046. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16047. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16048. if test x$have_loadso != xyes && \
  16049. test x$enable_esd_shared = xyes; then
  16050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16051. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16052. fi
  16053. if test x$have_loadso = xyes && \
  16054. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16055. echo "-- dynamic libesd -> $esd_lib"
  16056. cat >>confdefs.h <<_ACEOF
  16057. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16058. _ACEOF
  16059. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16060. else
  16061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16062. SUMMARY_audio="${SUMMARY_audio} esd"
  16063. fi
  16064. have_audio=yes
  16065. fi
  16066. fi
  16067. }
  16068. CheckPulseAudio()
  16069. {
  16070. # Check whether --enable-pulseaudio was given.
  16071. if test "${enable_pulseaudio+set}" = set; then :
  16072. enableval=$enable_pulseaudio;
  16073. else
  16074. enable_pulseaudio=yes
  16075. fi
  16076. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16077. pkg_failed=no
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16079. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16080. if test -n "$PULSEAUDIO_CFLAGS"; then
  16081. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16082. elif test -n "$PKG_CONFIG"; then
  16083. if test -n "$PKG_CONFIG" && \
  16084. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16085. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16086. ac_status=$?
  16087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16088. test $ac_status = 0; }; then
  16089. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16090. else
  16091. pkg_failed=yes
  16092. fi
  16093. else
  16094. pkg_failed=untried
  16095. fi
  16096. if test -n "$PULSEAUDIO_LIBS"; then
  16097. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16098. elif test -n "$PKG_CONFIG"; then
  16099. if test -n "$PKG_CONFIG" && \
  16100. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16101. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16102. ac_status=$?
  16103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16104. test $ac_status = 0; }; then
  16105. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16106. else
  16107. pkg_failed=yes
  16108. fi
  16109. else
  16110. pkg_failed=untried
  16111. fi
  16112. if test $pkg_failed = yes; then
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16114. $as_echo "no" >&6; }
  16115. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16116. _pkg_short_errors_supported=yes
  16117. else
  16118. _pkg_short_errors_supported=no
  16119. fi
  16120. if test $_pkg_short_errors_supported = yes; then
  16121. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16122. else
  16123. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16124. fi
  16125. # Put the nasty error message in config.log where it belongs
  16126. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16127. audio_pulseaudio=no
  16128. elif test $pkg_failed = untried; then
  16129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16130. $as_echo "no" >&6; }
  16131. audio_pulseaudio=no
  16132. else
  16133. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16134. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16136. $as_echo "yes" >&6; }
  16137. audio_pulseaudio=yes
  16138. fi
  16139. if test x$audio_pulseaudio = xyes; then
  16140. # Check whether --enable-pulseaudio-shared was given.
  16141. if test "${enable_pulseaudio_shared+set}" = set; then :
  16142. enableval=$enable_pulseaudio_shared;
  16143. else
  16144. enable_pulseaudio_shared=yes
  16145. fi
  16146. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16147. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16148. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16149. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16150. if test x$have_loadso != xyes && \
  16151. test x$enable_pulseaudio_shared = xyes; then
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16153. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16154. fi
  16155. if test x$have_loadso = xyes && \
  16156. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16157. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16158. cat >>confdefs.h <<_ACEOF
  16159. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16160. _ACEOF
  16161. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16162. case "$host" in
  16163. # On Solaris, pulseaudio must be linked deferred explicitly
  16164. # to prevent undefined symbol failures.
  16165. *-*-solaris*)
  16166. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16167. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16168. esac
  16169. else
  16170. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16171. SUMMARY_audio="${SUMMARY_audio} pulse"
  16172. fi
  16173. have_audio=yes
  16174. fi
  16175. fi
  16176. }
  16177. CheckARTSC()
  16178. {
  16179. # Check whether --enable-arts was given.
  16180. if test "${enable_arts+set}" = set; then :
  16181. enableval=$enable_arts;
  16182. else
  16183. enable_arts=yes
  16184. fi
  16185. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16186. # Extract the first word of "artsc-config", so it can be a program name with args.
  16187. set dummy artsc-config; ac_word=$2
  16188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16189. $as_echo_n "checking for $ac_word... " >&6; }
  16190. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16191. $as_echo_n "(cached) " >&6
  16192. else
  16193. case $ARTSCONFIG in
  16194. [\\/]* | ?:[\\/]*)
  16195. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16196. ;;
  16197. *)
  16198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16199. for as_dir in $PATH
  16200. do
  16201. IFS=$as_save_IFS
  16202. test -z "$as_dir" && as_dir=.
  16203. for ac_exec_ext in '' $ac_executable_extensions; do
  16204. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16205. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16207. break 2
  16208. fi
  16209. done
  16210. done
  16211. IFS=$as_save_IFS
  16212. ;;
  16213. esac
  16214. fi
  16215. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16216. if test -n "$ARTSCONFIG"; then
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16218. $as_echo "$ARTSCONFIG" >&6; }
  16219. else
  16220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16221. $as_echo "no" >&6; }
  16222. fi
  16223. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16224. : # arts isn't installed
  16225. else
  16226. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16227. ARTS_LIBS=`$ARTSCONFIG --libs`
  16228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16229. $as_echo_n "checking for aRts development environment... " >&6; }
  16230. audio_arts=no
  16231. save_CFLAGS="$CFLAGS"
  16232. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16234. /* end confdefs.h. */
  16235. #include <artsc.h>
  16236. int
  16237. main ()
  16238. {
  16239. arts_stream_t stream;
  16240. ;
  16241. return 0;
  16242. }
  16243. _ACEOF
  16244. if ac_fn_c_try_compile "$LINENO"; then :
  16245. audio_arts=yes
  16246. fi
  16247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16248. CFLAGS="$save_CFLAGS"
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16250. $as_echo "$audio_arts" >&6; }
  16251. if test x$audio_arts = xyes; then
  16252. # Check whether --enable-arts-shared was given.
  16253. if test "${enable_arts_shared+set}" = set; then :
  16254. enableval=$enable_arts_shared;
  16255. else
  16256. enable_arts_shared=yes
  16257. fi
  16258. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16259. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16260. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16261. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16262. if test x$have_loadso != xyes && \
  16263. test x$enable_arts_shared = xyes; then
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16265. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16266. fi
  16267. if test x$have_loadso = xyes && \
  16268. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16269. echo "-- dynamic libartsc -> $arts_lib"
  16270. cat >>confdefs.h <<_ACEOF
  16271. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16272. _ACEOF
  16273. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16274. else
  16275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16276. SUMMARY_audio="${SUMMARY_audio} arts"
  16277. fi
  16278. have_audio=yes
  16279. fi
  16280. fi
  16281. fi
  16282. }
  16283. CheckNAS()
  16284. {
  16285. # Check whether --enable-nas was given.
  16286. if test "${enable_nas+set}" = set; then :
  16287. enableval=$enable_nas;
  16288. else
  16289. enable_nas=yes
  16290. fi
  16291. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16292. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16293. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16294. have_nas_hdr=yes
  16295. fi
  16296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16297. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16298. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16299. $as_echo_n "(cached) " >&6
  16300. else
  16301. ac_check_lib_save_LIBS=$LIBS
  16302. LIBS="-laudio $LIBS"
  16303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16304. /* end confdefs.h. */
  16305. /* Override any GCC internal prototype to avoid an error.
  16306. Use char because int might match the return type of a GCC
  16307. builtin and then its argument prototype would still apply. */
  16308. #ifdef __cplusplus
  16309. extern "C"
  16310. #endif
  16311. char AuOpenServer ();
  16312. int
  16313. main ()
  16314. {
  16315. return AuOpenServer ();
  16316. ;
  16317. return 0;
  16318. }
  16319. _ACEOF
  16320. if ac_fn_c_try_link "$LINENO"; then :
  16321. ac_cv_lib_audio_AuOpenServer=yes
  16322. else
  16323. ac_cv_lib_audio_AuOpenServer=no
  16324. fi
  16325. rm -f core conftest.err conftest.$ac_objext \
  16326. conftest$ac_exeext conftest.$ac_ext
  16327. LIBS=$ac_check_lib_save_LIBS
  16328. fi
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16330. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16331. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16332. have_nas_lib=yes
  16333. fi
  16334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16335. $as_echo_n "checking for NAS audio support... " >&6; }
  16336. have_nas=no
  16337. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16338. have_nas=yes
  16339. NAS_LIBS="-laudio"
  16340. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16341. have_nas=yes
  16342. NAS_CFLAGS="-I/usr/X11R6/include/"
  16343. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16344. fi
  16345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16346. $as_echo "$have_nas" >&6; }
  16347. if test x$have_nas = xyes; then
  16348. # Check whether --enable-nas-shared was given.
  16349. if test "${enable_nas_shared+set}" = set; then :
  16350. enableval=$enable_nas_shared;
  16351. else
  16352. enable_nas_shared=yes
  16353. fi
  16354. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16355. if test x$have_loadso != xyes && \
  16356. test x$enable_nas_shared = xyes; then
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16358. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16359. fi
  16360. if test x$have_loadso = xyes && \
  16361. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16362. echo "-- dynamic libaudio -> $nas_lib"
  16363. cat >>confdefs.h <<_ACEOF
  16364. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16365. _ACEOF
  16366. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16367. else
  16368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16369. SUMMARY_audio="${SUMMARY_audio} nas"
  16370. fi
  16371. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16372. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16373. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16374. have_audio=yes
  16375. fi
  16376. fi
  16377. }
  16378. CheckSNDIO()
  16379. {
  16380. # Check whether --enable-sndio was given.
  16381. if test "${enable_sndio+set}" = set; then :
  16382. enableval=$enable_sndio;
  16383. else
  16384. enable_sndio=yes
  16385. fi
  16386. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16387. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16388. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16389. have_sndio_hdr=yes
  16390. fi
  16391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16392. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16393. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16394. $as_echo_n "(cached) " >&6
  16395. else
  16396. ac_check_lib_save_LIBS=$LIBS
  16397. LIBS="-lsndio $LIBS"
  16398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16399. /* end confdefs.h. */
  16400. /* Override any GCC internal prototype to avoid an error.
  16401. Use char because int might match the return type of a GCC
  16402. builtin and then its argument prototype would still apply. */
  16403. #ifdef __cplusplus
  16404. extern "C"
  16405. #endif
  16406. char sio_open ();
  16407. int
  16408. main ()
  16409. {
  16410. return sio_open ();
  16411. ;
  16412. return 0;
  16413. }
  16414. _ACEOF
  16415. if ac_fn_c_try_link "$LINENO"; then :
  16416. ac_cv_lib_sndio_sio_open=yes
  16417. else
  16418. ac_cv_lib_sndio_sio_open=no
  16419. fi
  16420. rm -f core conftest.err conftest.$ac_objext \
  16421. conftest$ac_exeext conftest.$ac_ext
  16422. LIBS=$ac_check_lib_save_LIBS
  16423. fi
  16424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16425. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16426. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16427. have_sndio_lib=yes
  16428. fi
  16429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16430. $as_echo_n "checking for sndio audio support... " >&6; }
  16431. have_sndio=no
  16432. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16433. have_sndio=yes
  16434. SNDIO_LIBS="-lsndio"
  16435. fi
  16436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16437. $as_echo "$have_sndio" >&6; }
  16438. if test x$have_sndio = xyes; then
  16439. # Check whether --enable-sndio-shared was given.
  16440. if test "${enable_sndio_shared+set}" = set; then :
  16441. enableval=$enable_sndio_shared;
  16442. else
  16443. enable_sndio_shared=yes
  16444. fi
  16445. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16446. if test x$have_loadso != xyes && \
  16447. test x$enable_sndio_shared = xyes; then
  16448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16449. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16450. fi
  16451. if test x$have_loadso = xyes && \
  16452. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16453. echo "-- dynamic libsndio -> $sndio_lib"
  16454. cat >>confdefs.h <<_ACEOF
  16455. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16456. _ACEOF
  16457. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16458. else
  16459. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16460. SUMMARY_audio="${SUMMARY_audio} sndio"
  16461. fi
  16462. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16463. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16464. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16465. have_audio=yes
  16466. fi
  16467. fi
  16468. }
  16469. CheckFusionSound()
  16470. {
  16471. # Check whether --enable-fusionsound was given.
  16472. if test "${enable_fusionsound+set}" = set; then :
  16473. enableval=$enable_fusionsound;
  16474. else
  16475. enable_fusionsound=no
  16476. fi
  16477. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16478. pkg_failed=no
  16479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16480. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16481. if test -n "$FUSIONSOUND_CFLAGS"; then
  16482. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16483. elif test -n "$PKG_CONFIG"; then
  16484. if test -n "$PKG_CONFIG" && \
  16485. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16486. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16487. ac_status=$?
  16488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16489. test $ac_status = 0; }; then
  16490. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16491. else
  16492. pkg_failed=yes
  16493. fi
  16494. else
  16495. pkg_failed=untried
  16496. fi
  16497. if test -n "$FUSIONSOUND_LIBS"; then
  16498. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16499. elif test -n "$PKG_CONFIG"; then
  16500. if test -n "$PKG_CONFIG" && \
  16501. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16502. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16503. ac_status=$?
  16504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16505. test $ac_status = 0; }; then
  16506. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16507. else
  16508. pkg_failed=yes
  16509. fi
  16510. else
  16511. pkg_failed=untried
  16512. fi
  16513. if test $pkg_failed = yes; then
  16514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16515. $as_echo "no" >&6; }
  16516. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16517. _pkg_short_errors_supported=yes
  16518. else
  16519. _pkg_short_errors_supported=no
  16520. fi
  16521. if test $_pkg_short_errors_supported = yes; then
  16522. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16523. else
  16524. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16525. fi
  16526. # Put the nasty error message in config.log where it belongs
  16527. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16528. fusionsound=no
  16529. elif test $pkg_failed = untried; then
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16531. $as_echo "no" >&6; }
  16532. fusionsound=no
  16533. else
  16534. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16535. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16537. $as_echo "yes" >&6; }
  16538. fusionsound=yes
  16539. fi
  16540. if test x$fusionsound = xyes; then
  16541. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16542. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16543. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16544. # Check whether --enable-fusionsound-shared was given.
  16545. if test "${enable_fusionsound_shared+set}" = set; then :
  16546. enableval=$enable_fusionsound_shared;
  16547. else
  16548. enable_fusionsound_shared=yes
  16549. fi
  16550. fusionsound_shared=no
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16552. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16553. if test x$have_loadso != xyes && \
  16554. test x$enable_fusionsound_shared = xyes; then
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16556. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16557. fi
  16558. if test x$have_loadso = xyes && \
  16559. test x$enable_fusionsound_shared = xyes; then
  16560. cat >>confdefs.h <<_ACEOF
  16561. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16562. _ACEOF
  16563. fusionsound_shared=yes
  16564. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16565. else
  16566. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16567. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16568. fi
  16569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16570. $as_echo "$fusionsound_shared" >&6; }
  16571. have_audio=yes
  16572. fi
  16573. fi
  16574. }
  16575. CheckDiskAudio()
  16576. {
  16577. # Check whether --enable-diskaudio was given.
  16578. if test "${enable_diskaudio+set}" = set; then :
  16579. enableval=$enable_diskaudio;
  16580. else
  16581. enable_diskaudio=yes
  16582. fi
  16583. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16584. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16585. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16586. SUMMARY_audio="${SUMMARY_audio} disk"
  16587. fi
  16588. }
  16589. CheckDummyAudio()
  16590. {
  16591. # Check whether --enable-dummyaudio was given.
  16592. if test "${enable_dummyaudio+set}" = set; then :
  16593. enableval=$enable_dummyaudio;
  16594. else
  16595. enable_dummyaudio=yes
  16596. fi
  16597. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16598. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16599. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16600. SUMMARY_audio="${SUMMARY_audio} dummy"
  16601. fi
  16602. }
  16603. CheckLibSampleRate()
  16604. {
  16605. # Check whether --enable-libsamplerate was given.
  16606. if test "${enable_libsamplerate+set}" = set; then :
  16607. enableval=$enable_libsamplerate;
  16608. else
  16609. enable_libsamplerate=yes
  16610. fi
  16611. if test x$enable_libsamplerate = xyes; then
  16612. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16613. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16614. have_samplerate_h_hdr=yes
  16615. else
  16616. have_samplerate_h_hdr=no
  16617. fi
  16618. if test x$have_samplerate_h_hdr = xyes; then
  16619. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16620. # Check whether --enable-libsamplerate-shared was given.
  16621. if test "${enable_libsamplerate_shared+set}" = set; then :
  16622. enableval=$enable_libsamplerate_shared;
  16623. else
  16624. enable_libsamplerate_shared=yes
  16625. fi
  16626. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16627. if test x$have_loadso != xyes && \
  16628. test x$enable_libsamplerate_shared = xyes; then
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16630. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16631. fi
  16632. if test x$have_loadso = xyes && \
  16633. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16634. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16635. cat >>confdefs.h <<_ACEOF
  16636. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16637. _ACEOF
  16638. else
  16639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16640. fi
  16641. fi
  16642. fi
  16643. }
  16644. CheckARM()
  16645. {
  16646. # Check whether --enable-arm-simd was given.
  16647. if test "${enable_arm_simd+set}" = set; then :
  16648. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16649. else
  16650. enable_arm_simd=yes
  16651. fi
  16652. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16653. save_CFLAGS="$CFLAGS"
  16654. have_arm_simd=no
  16655. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16657. $as_echo_n "checking for ARM SIMD... " >&6; }
  16658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16659. /* end confdefs.h. */
  16660. .text
  16661. .arch armv6
  16662. .object_arch armv4
  16663. .arm
  16664. .altmacro
  16665. #ifndef __ARM_EABI__
  16666. #error EABI is required (to be sure that calling conventions are compatible)
  16667. #endif
  16668. pld [r0]
  16669. uqadd8 r0, r0, r0
  16670. _ACEOF
  16671. if ac_fn_c_try_compile "$LINENO"; then :
  16672. have_arm_simd=yes
  16673. fi
  16674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16676. $as_echo "$have_arm_simd" >&6; }
  16677. CFLAGS="$save_CFLAGS"
  16678. if test x$have_arm_simd = xyes; then
  16679. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16680. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16681. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16682. fi
  16683. fi
  16684. }
  16685. CheckNEON()
  16686. {
  16687. # Check whether --enable-arm-neon was given.
  16688. if test "${enable_arm_neon+set}" = set; then :
  16689. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16690. else
  16691. enable_arm_neon=no
  16692. fi
  16693. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16694. save_CFLAGS="$CFLAGS"
  16695. have_arm_neon=no
  16696. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16698. $as_echo_n "checking for ARM NEON... " >&6; }
  16699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16700. /* end confdefs.h. */
  16701. .text
  16702. .fpu neon
  16703. .arch armv7a
  16704. .object_arch armv4
  16705. .eabi_attribute 10, 0
  16706. .arm
  16707. .altmacro
  16708. #ifndef __ARM_EABI__
  16709. #error EABI is required (to be sure that calling conventions are compatible)
  16710. #endif
  16711. pld [r0]
  16712. vmovn.u16 d0, q0
  16713. _ACEOF
  16714. if ac_fn_c_try_compile "$LINENO"; then :
  16715. have_arm_neon=yes
  16716. fi
  16717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16719. $as_echo "$have_arm_neon" >&6; }
  16720. CFLAGS="$save_CFLAGS"
  16721. if test x$have_arm_neon = xyes; then
  16722. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16723. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16724. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16725. fi
  16726. fi
  16727. }
  16728. CheckVisibilityHidden()
  16729. {
  16730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16731. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16732. have_gcc_fvisibility=no
  16733. visibility_CFLAGS="-fvisibility=hidden"
  16734. save_CFLAGS="$CFLAGS"
  16735. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16737. /* end confdefs.h. */
  16738. #if !defined(__GNUC__) || __GNUC__ < 4
  16739. #error SDL only uses visibility attributes in GCC 4 or newer
  16740. #endif
  16741. int
  16742. main ()
  16743. {
  16744. ;
  16745. return 0;
  16746. }
  16747. _ACEOF
  16748. if ac_fn_c_try_compile "$LINENO"; then :
  16749. have_gcc_fvisibility=yes
  16750. fi
  16751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16753. $as_echo "$have_gcc_fvisibility" >&6; }
  16754. CFLAGS="$save_CFLAGS"
  16755. if test x$have_gcc_fvisibility = xyes; then
  16756. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16757. fi
  16758. }
  16759. CheckNoStrictAliasing()
  16760. {
  16761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16762. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16763. have_gcc_no_strict_aliasing=no
  16764. save_CFLAGS="$CFLAGS"
  16765. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16767. /* end confdefs.h. */
  16768. int x = 0;
  16769. int
  16770. main ()
  16771. {
  16772. ;
  16773. return 0;
  16774. }
  16775. _ACEOF
  16776. if ac_fn_c_try_compile "$LINENO"; then :
  16777. have_gcc_no_strict_aliasing=yes
  16778. fi
  16779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16781. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16782. CFLAGS="$save_CFLAGS"
  16783. if test x$have_gcc_no_strict_aliasing = xyes; then
  16784. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16785. fi
  16786. }
  16787. CheckStackBoundary()
  16788. {
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16790. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16791. have_gcc_preferred_stack_boundary=no
  16792. save_CFLAGS="$CFLAGS"
  16793. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16795. /* end confdefs.h. */
  16796. int x = 0;
  16797. int
  16798. main ()
  16799. {
  16800. ;
  16801. return 0;
  16802. }
  16803. _ACEOF
  16804. if ac_fn_c_try_compile "$LINENO"; then :
  16805. have_gcc_preferred_stack_boundary=yes
  16806. fi
  16807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16809. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16810. CFLAGS="$save_CFLAGS"
  16811. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16812. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16813. fi
  16814. }
  16815. CheckDeclarationAfterStatement()
  16816. {
  16817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16818. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16819. have_gcc_declaration_after_statement=no
  16820. save_CFLAGS="$CFLAGS"
  16821. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16823. /* end confdefs.h. */
  16824. int x = 0;
  16825. int
  16826. main ()
  16827. {
  16828. ;
  16829. return 0;
  16830. }
  16831. _ACEOF
  16832. if ac_fn_c_try_compile "$LINENO"; then :
  16833. have_gcc_declaration_after_statement=yes
  16834. fi
  16835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16837. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16838. CFLAGS="$save_CFLAGS"
  16839. if test x$have_gcc_declaration_after_statement = xyes; then
  16840. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16841. fi
  16842. }
  16843. CheckWarnAll()
  16844. {
  16845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16846. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16847. have_gcc_Wall=no
  16848. save_CFLAGS="$CFLAGS"
  16849. CFLAGS="$save_CFLAGS -Wall"
  16850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16851. /* end confdefs.h. */
  16852. int x = 0;
  16853. int
  16854. main ()
  16855. {
  16856. ;
  16857. return 0;
  16858. }
  16859. _ACEOF
  16860. if ac_fn_c_try_compile "$LINENO"; then :
  16861. have_gcc_Wall=yes
  16862. fi
  16863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16865. $as_echo "$have_gcc_Wall" >&6; }
  16866. CFLAGS="$save_CFLAGS"
  16867. if test x$have_gcc_Wall = xyes; then
  16868. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16870. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16871. need_gcc_Wno_multichar=no
  16872. case "$host" in
  16873. *-*-haiku*)
  16874. need_gcc_Wno_multichar=yes
  16875. ;;
  16876. esac
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16878. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16879. if test x$need_gcc_Wno_multichar = xyes; then
  16880. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16881. fi
  16882. fi
  16883. }
  16884. CheckWayland()
  16885. {
  16886. # Check whether --enable-video-wayland was given.
  16887. if test "${enable_video_wayland+set}" = set; then :
  16888. enableval=$enable_video_wayland;
  16889. else
  16890. enable_video_wayland=yes
  16891. fi
  16892. # Check whether --enable-video-wayland-qt-touch was given.
  16893. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16894. enableval=$enable_video_wayland_qt_touch;
  16895. else
  16896. enable_video_wayland_qt_touch=yes
  16897. fi
  16898. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16900. $as_echo_n "checking for Wayland support... " >&6; }
  16901. video_wayland=no
  16902. if test x$video_opengl_egl = xyes && \
  16903. test x$video_opengles_v2 = xyes; then
  16904. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16905. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16906. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16907. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16908. video_wayland=yes
  16909. fi
  16910. fi
  16911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16912. $as_echo "$video_wayland" >&6; }
  16913. if test x$video_wayland = xyes; then
  16914. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16915. if test x$enable_video_wayland_qt_touch = xyes; then
  16916. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16917. fi
  16918. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16919. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16920. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16921. # Check whether --enable-wayland-shared was given.
  16922. if test "${enable_wayland_shared+set}" = set; then :
  16923. enableval=$enable_wayland_shared;
  16924. else
  16925. enable_wayland_shared=maybe
  16926. fi
  16927. case "$host" in
  16928. *)
  16929. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16930. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16931. if test x$wayland_egl_lib = x; then
  16932. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16933. fi
  16934. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16935. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16936. ;;
  16937. esac
  16938. if test x$enable_wayland_shared = xmaybe; then
  16939. enable_wayland_shared=yes
  16940. fi
  16941. if test x$have_loadso != xyes && \
  16942. test x$enable_wayland_shared = xyes; then
  16943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16944. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16945. enable_wayland_shared=no
  16946. fi
  16947. if test x$have_loadso = xyes && \
  16948. test x$enable_wayland_shared = xyes && \
  16949. test x$wayland_client_lib != x && \
  16950. test x$wayland_egl_lib != x && \
  16951. test x$wayland_cursor_lib != x && \
  16952. test x$xkbcommon_lib != x; then
  16953. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16954. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16955. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16956. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16957. cat >>confdefs.h <<_ACEOF
  16958. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16959. _ACEOF
  16960. cat >>confdefs.h <<_ACEOF
  16961. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16962. _ACEOF
  16963. cat >>confdefs.h <<_ACEOF
  16964. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16965. _ACEOF
  16966. cat >>confdefs.h <<_ACEOF
  16967. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16968. _ACEOF
  16969. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16970. else
  16971. enable_wayland_shared=no
  16972. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16973. SUMMARY_video="${SUMMARY_video} wayland"
  16974. fi
  16975. have_video=yes
  16976. fi
  16977. fi
  16978. }
  16979. CheckNativeClient()
  16980. {
  16981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16982. /* end confdefs.h. */
  16983. #if !defined(__native_client__)
  16984. #error "NO NACL"
  16985. #endif
  16986. int
  16987. main ()
  16988. {
  16989. ;
  16990. return 0;
  16991. }
  16992. _ACEOF
  16993. if ac_fn_c_try_compile "$LINENO"; then :
  16994. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16995. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16996. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16997. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16998. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16999. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17000. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17001. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17002. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17003. SUMMARY_audio="${SUMMARY_audio} nacl"
  17004. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17005. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17006. fi
  17007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17008. }
  17009. CheckRPI()
  17010. {
  17011. # Check whether --enable-video-rpi was given.
  17012. if test "${enable_video_rpi+set}" = set; then :
  17013. enableval=$enable_video_rpi;
  17014. else
  17015. enable_video_rpi=yes
  17016. fi
  17017. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17018. pkg_failed=no
  17019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17020. $as_echo_n "checking for RPI... " >&6; }
  17021. if test -n "$RPI_CFLAGS"; then
  17022. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17023. elif test -n "$PKG_CONFIG"; then
  17024. if test -n "$PKG_CONFIG" && \
  17025. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17026. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17027. ac_status=$?
  17028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17029. test $ac_status = 0; }; then
  17030. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17031. else
  17032. pkg_failed=yes
  17033. fi
  17034. else
  17035. pkg_failed=untried
  17036. fi
  17037. if test -n "$RPI_LIBS"; then
  17038. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17039. elif test -n "$PKG_CONFIG"; then
  17040. if test -n "$PKG_CONFIG" && \
  17041. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17042. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17043. ac_status=$?
  17044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17045. test $ac_status = 0; }; then
  17046. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17047. else
  17048. pkg_failed=yes
  17049. fi
  17050. else
  17051. pkg_failed=untried
  17052. fi
  17053. if test $pkg_failed = yes; then
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17055. $as_echo "no" >&6; }
  17056. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17057. _pkg_short_errors_supported=yes
  17058. else
  17059. _pkg_short_errors_supported=no
  17060. fi
  17061. if test $_pkg_short_errors_supported = yes; then
  17062. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17063. else
  17064. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17065. fi
  17066. # Put the nasty error message in config.log where it belongs
  17067. echo "$RPI_PKG_ERRORS" >&5
  17068. video_rpi=no
  17069. elif test $pkg_failed = untried; then
  17070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17071. $as_echo "no" >&6; }
  17072. video_rpi=no
  17073. else
  17074. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17075. RPI_LIBS=$pkg_cv_RPI_LIBS
  17076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17077. $as_echo "yes" >&6; }
  17078. video_rpi=yes
  17079. fi
  17080. if test x$video_rpi = xno; then
  17081. if test x$ARCH = xnetbsd; then
  17082. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17083. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17084. else
  17085. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17086. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17087. fi
  17088. fi
  17089. # Save the original compiler flags and libraries
  17090. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17091. # Add the Raspberry Pi compiler flags and libraries
  17092. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17094. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17095. have_video_rpi=no
  17096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17097. /* end confdefs.h. */
  17098. #include <bcm_host.h>
  17099. int
  17100. main ()
  17101. {
  17102. bcm_host_init();
  17103. ;
  17104. return 0;
  17105. }
  17106. _ACEOF
  17107. if ac_fn_c_try_link "$LINENO"; then :
  17108. have_video_rpi=yes
  17109. fi
  17110. rm -f core conftest.err conftest.$ac_objext \
  17111. conftest$ac_exeext conftest.$ac_ext
  17112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17113. $as_echo "$have_video_rpi" >&6; }
  17114. # Restore the compiler flags and libraries
  17115. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17116. if test x$have_video_rpi = xyes; then
  17117. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17118. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17119. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17120. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17121. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17122. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17123. SUMMARY_video="${SUMMARY_video} rpi"
  17124. fi
  17125. fi
  17126. }
  17127. CheckX11()
  17128. {
  17129. # Check whether --enable-video-x11 was given.
  17130. if test "${enable_video_x11+set}" = set; then :
  17131. enableval=$enable_video_x11;
  17132. else
  17133. enable_video_x11=yes
  17134. fi
  17135. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17136. case "$host" in
  17137. *-*-darwin*)
  17138. # This isn't necessary for X11, but fixes GLX detection
  17139. if test "x$x_includes" = xNONE && \
  17140. test "x$x_libraries" = xNONE && \
  17141. test -d /opt/X11/include && \
  17142. test -d /opt/X11/lib; then
  17143. x_includes="/opt/X11/include"
  17144. x_libraries="/opt/X11/lib"
  17145. fi
  17146. ;;
  17147. esac
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17149. $as_echo_n "checking for X... " >&6; }
  17150. # Check whether --with-x was given.
  17151. if test "${with_x+set}" = set; then :
  17152. withval=$with_x;
  17153. fi
  17154. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17155. if test "x$with_x" = xno; then
  17156. # The user explicitly disabled X.
  17157. have_x=disabled
  17158. else
  17159. case $x_includes,$x_libraries in #(
  17160. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17161. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17162. $as_echo_n "(cached) " >&6
  17163. else
  17164. # One or both of the vars are not set, and there is no cached value.
  17165. ac_x_includes=no ac_x_libraries=no
  17166. rm -f -r conftest.dir
  17167. if mkdir conftest.dir; then
  17168. cd conftest.dir
  17169. cat >Imakefile <<'_ACEOF'
  17170. incroot:
  17171. @echo incroot='${INCROOT}'
  17172. usrlibdir:
  17173. @echo usrlibdir='${USRLIBDIR}'
  17174. libdir:
  17175. @echo libdir='${LIBDIR}'
  17176. _ACEOF
  17177. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17178. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17179. for ac_var in incroot usrlibdir libdir; do
  17180. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17181. done
  17182. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17183. for ac_extension in a so sl dylib la dll; do
  17184. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17185. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17186. ac_im_usrlibdir=$ac_im_libdir; break
  17187. fi
  17188. done
  17189. # Screen out bogus values from the imake configuration. They are
  17190. # bogus both because they are the default anyway, and because
  17191. # using them would break gcc on systems where it needs fixed includes.
  17192. case $ac_im_incroot in
  17193. /usr/include) ac_x_includes= ;;
  17194. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17195. esac
  17196. case $ac_im_usrlibdir in
  17197. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17198. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17199. esac
  17200. fi
  17201. cd ..
  17202. rm -f -r conftest.dir
  17203. fi
  17204. # Standard set of common directories for X headers.
  17205. # Check X11 before X11Rn because it is often a symlink to the current release.
  17206. ac_x_header_dirs='
  17207. /usr/X11/include
  17208. /usr/X11R7/include
  17209. /usr/X11R6/include
  17210. /usr/X11R5/include
  17211. /usr/X11R4/include
  17212. /usr/include/X11
  17213. /usr/include/X11R7
  17214. /usr/include/X11R6
  17215. /usr/include/X11R5
  17216. /usr/include/X11R4
  17217. /usr/local/X11/include
  17218. /usr/local/X11R7/include
  17219. /usr/local/X11R6/include
  17220. /usr/local/X11R5/include
  17221. /usr/local/X11R4/include
  17222. /usr/local/include/X11
  17223. /usr/local/include/X11R7
  17224. /usr/local/include/X11R6
  17225. /usr/local/include/X11R5
  17226. /usr/local/include/X11R4
  17227. /usr/X386/include
  17228. /usr/x386/include
  17229. /usr/XFree86/include/X11
  17230. /usr/include
  17231. /usr/local/include
  17232. /usr/unsupported/include
  17233. /usr/athena/include
  17234. /usr/local/x11r5/include
  17235. /usr/lpp/Xamples/include
  17236. /usr/openwin/include
  17237. /usr/openwin/share/include'
  17238. if test "$ac_x_includes" = no; then
  17239. # Guess where to find include files, by looking for Xlib.h.
  17240. # First, try using that file with no special directory specified.
  17241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17242. /* end confdefs.h. */
  17243. #include <X11/Xlib.h>
  17244. _ACEOF
  17245. if ac_fn_c_try_cpp "$LINENO"; then :
  17246. # We can compile using X headers with no special include directory.
  17247. ac_x_includes=
  17248. else
  17249. for ac_dir in $ac_x_header_dirs; do
  17250. if test -r "$ac_dir/X11/Xlib.h"; then
  17251. ac_x_includes=$ac_dir
  17252. break
  17253. fi
  17254. done
  17255. fi
  17256. rm -f conftest.err conftest.i conftest.$ac_ext
  17257. fi # $ac_x_includes = no
  17258. if test "$ac_x_libraries" = no; then
  17259. # Check for the libraries.
  17260. # See if we find them without any special options.
  17261. # Don't add to $LIBS permanently.
  17262. ac_save_LIBS=$LIBS
  17263. LIBS="-lX11 $LIBS"
  17264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17265. /* end confdefs.h. */
  17266. #include <X11/Xlib.h>
  17267. int
  17268. main ()
  17269. {
  17270. XrmInitialize ()
  17271. ;
  17272. return 0;
  17273. }
  17274. _ACEOF
  17275. if ac_fn_c_try_link "$LINENO"; then :
  17276. LIBS=$ac_save_LIBS
  17277. # We can link X programs with no special library path.
  17278. ac_x_libraries=
  17279. else
  17280. LIBS=$ac_save_LIBS
  17281. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17282. do
  17283. # Don't even attempt the hair of trying to link an X program!
  17284. for ac_extension in a so sl dylib la dll; do
  17285. if test -r "$ac_dir/libX11.$ac_extension"; then
  17286. ac_x_libraries=$ac_dir
  17287. break 2
  17288. fi
  17289. done
  17290. done
  17291. fi
  17292. rm -f core conftest.err conftest.$ac_objext \
  17293. conftest$ac_exeext conftest.$ac_ext
  17294. fi # $ac_x_libraries = no
  17295. case $ac_x_includes,$ac_x_libraries in #(
  17296. no,* | *,no | *\'*)
  17297. # Didn't find X, or a directory has "'" in its name.
  17298. ac_cv_have_x="have_x=no";; #(
  17299. *)
  17300. # Record where we found X for the cache.
  17301. ac_cv_have_x="have_x=yes\
  17302. ac_x_includes='$ac_x_includes'\
  17303. ac_x_libraries='$ac_x_libraries'"
  17304. esac
  17305. fi
  17306. ;; #(
  17307. *) have_x=yes;;
  17308. esac
  17309. eval "$ac_cv_have_x"
  17310. fi # $with_x != no
  17311. if test "$have_x" != yes; then
  17312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17313. $as_echo "$have_x" >&6; }
  17314. no_x=yes
  17315. else
  17316. # If each of the values was on the command line, it overrides each guess.
  17317. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17318. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17319. # Update the cache value to reflect the command line values.
  17320. ac_cv_have_x="have_x=yes\
  17321. ac_x_includes='$x_includes'\
  17322. ac_x_libraries='$x_libraries'"
  17323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17324. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17325. fi
  17326. if test "$no_x" = yes; then
  17327. # Not all programs may use this symbol, but it does not hurt to define it.
  17328. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17329. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17330. else
  17331. if test -n "$x_includes"; then
  17332. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17333. fi
  17334. # It would also be nice to do this for all -L options, not just this one.
  17335. if test -n "$x_libraries"; then
  17336. X_LIBS="$X_LIBS -L$x_libraries"
  17337. # For Solaris; some versions of Sun CC require a space after -R and
  17338. # others require no space. Words are not sufficient . . . .
  17339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17340. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17341. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17342. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17343. ac_c_werror_flag=yes
  17344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17345. /* end confdefs.h. */
  17346. int
  17347. main ()
  17348. {
  17349. ;
  17350. return 0;
  17351. }
  17352. _ACEOF
  17353. if ac_fn_c_try_link "$LINENO"; then :
  17354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17355. $as_echo "no" >&6; }
  17356. X_LIBS="$X_LIBS -R$x_libraries"
  17357. else
  17358. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17360. /* end confdefs.h. */
  17361. int
  17362. main ()
  17363. {
  17364. ;
  17365. return 0;
  17366. }
  17367. _ACEOF
  17368. if ac_fn_c_try_link "$LINENO"; then :
  17369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17370. $as_echo "yes" >&6; }
  17371. X_LIBS="$X_LIBS -R $x_libraries"
  17372. else
  17373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17374. $as_echo "neither works" >&6; }
  17375. fi
  17376. rm -f core conftest.err conftest.$ac_objext \
  17377. conftest$ac_exeext conftest.$ac_ext
  17378. fi
  17379. rm -f core conftest.err conftest.$ac_objext \
  17380. conftest$ac_exeext conftest.$ac_ext
  17381. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17382. LIBS=$ac_xsave_LIBS
  17383. fi
  17384. # Check for system-dependent libraries X programs must link with.
  17385. # Do this before checking for the system-independent R6 libraries
  17386. # (-lICE), since we may need -lsocket or whatever for X linking.
  17387. if test "$ISC" = yes; then
  17388. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17389. else
  17390. # Martyn Johnson says this is needed for Ultrix, if the X
  17391. # libraries were built with DECnet support. And Karl Berry says
  17392. # the Alpha needs dnet_stub (dnet does not exist).
  17393. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17395. /* end confdefs.h. */
  17396. /* Override any GCC internal prototype to avoid an error.
  17397. Use char because int might match the return type of a GCC
  17398. builtin and then its argument prototype would still apply. */
  17399. #ifdef __cplusplus
  17400. extern "C"
  17401. #endif
  17402. char XOpenDisplay ();
  17403. int
  17404. main ()
  17405. {
  17406. return XOpenDisplay ();
  17407. ;
  17408. return 0;
  17409. }
  17410. _ACEOF
  17411. if ac_fn_c_try_link "$LINENO"; then :
  17412. else
  17413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17414. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17415. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17416. $as_echo_n "(cached) " >&6
  17417. else
  17418. ac_check_lib_save_LIBS=$LIBS
  17419. LIBS="-ldnet $LIBS"
  17420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17421. /* end confdefs.h. */
  17422. /* Override any GCC internal prototype to avoid an error.
  17423. Use char because int might match the return type of a GCC
  17424. builtin and then its argument prototype would still apply. */
  17425. #ifdef __cplusplus
  17426. extern "C"
  17427. #endif
  17428. char dnet_ntoa ();
  17429. int
  17430. main ()
  17431. {
  17432. return dnet_ntoa ();
  17433. ;
  17434. return 0;
  17435. }
  17436. _ACEOF
  17437. if ac_fn_c_try_link "$LINENO"; then :
  17438. ac_cv_lib_dnet_dnet_ntoa=yes
  17439. else
  17440. ac_cv_lib_dnet_dnet_ntoa=no
  17441. fi
  17442. rm -f core conftest.err conftest.$ac_objext \
  17443. conftest$ac_exeext conftest.$ac_ext
  17444. LIBS=$ac_check_lib_save_LIBS
  17445. fi
  17446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17447. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17448. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17449. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17450. fi
  17451. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17453. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17454. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17455. $as_echo_n "(cached) " >&6
  17456. else
  17457. ac_check_lib_save_LIBS=$LIBS
  17458. LIBS="-ldnet_stub $LIBS"
  17459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17460. /* end confdefs.h. */
  17461. /* Override any GCC internal prototype to avoid an error.
  17462. Use char because int might match the return type of a GCC
  17463. builtin and then its argument prototype would still apply. */
  17464. #ifdef __cplusplus
  17465. extern "C"
  17466. #endif
  17467. char dnet_ntoa ();
  17468. int
  17469. main ()
  17470. {
  17471. return dnet_ntoa ();
  17472. ;
  17473. return 0;
  17474. }
  17475. _ACEOF
  17476. if ac_fn_c_try_link "$LINENO"; then :
  17477. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17478. else
  17479. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17480. fi
  17481. rm -f core conftest.err conftest.$ac_objext \
  17482. conftest$ac_exeext conftest.$ac_ext
  17483. LIBS=$ac_check_lib_save_LIBS
  17484. fi
  17485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17486. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17487. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17488. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17489. fi
  17490. fi
  17491. fi
  17492. rm -f core conftest.err conftest.$ac_objext \
  17493. conftest$ac_exeext conftest.$ac_ext
  17494. LIBS="$ac_xsave_LIBS"
  17495. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17496. # to get the SysV transport functions.
  17497. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17498. # needs -lnsl.
  17499. # The nsl library prevents programs from opening the X display
  17500. # on Irix 5.2, according to T.E. Dickey.
  17501. # The functions gethostbyname, getservbyname, and inet_addr are
  17502. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17503. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17504. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17505. fi
  17506. if test $ac_cv_func_gethostbyname = no; then
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17508. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17509. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17510. $as_echo_n "(cached) " >&6
  17511. else
  17512. ac_check_lib_save_LIBS=$LIBS
  17513. LIBS="-lnsl $LIBS"
  17514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17515. /* end confdefs.h. */
  17516. /* Override any GCC internal prototype to avoid an error.
  17517. Use char because int might match the return type of a GCC
  17518. builtin and then its argument prototype would still apply. */
  17519. #ifdef __cplusplus
  17520. extern "C"
  17521. #endif
  17522. char gethostbyname ();
  17523. int
  17524. main ()
  17525. {
  17526. return gethostbyname ();
  17527. ;
  17528. return 0;
  17529. }
  17530. _ACEOF
  17531. if ac_fn_c_try_link "$LINENO"; then :
  17532. ac_cv_lib_nsl_gethostbyname=yes
  17533. else
  17534. ac_cv_lib_nsl_gethostbyname=no
  17535. fi
  17536. rm -f core conftest.err conftest.$ac_objext \
  17537. conftest$ac_exeext conftest.$ac_ext
  17538. LIBS=$ac_check_lib_save_LIBS
  17539. fi
  17540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17541. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17542. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17543. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17544. fi
  17545. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17547. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17548. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17549. $as_echo_n "(cached) " >&6
  17550. else
  17551. ac_check_lib_save_LIBS=$LIBS
  17552. LIBS="-lbsd $LIBS"
  17553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17554. /* end confdefs.h. */
  17555. /* Override any GCC internal prototype to avoid an error.
  17556. Use char because int might match the return type of a GCC
  17557. builtin and then its argument prototype would still apply. */
  17558. #ifdef __cplusplus
  17559. extern "C"
  17560. #endif
  17561. char gethostbyname ();
  17562. int
  17563. main ()
  17564. {
  17565. return gethostbyname ();
  17566. ;
  17567. return 0;
  17568. }
  17569. _ACEOF
  17570. if ac_fn_c_try_link "$LINENO"; then :
  17571. ac_cv_lib_bsd_gethostbyname=yes
  17572. else
  17573. ac_cv_lib_bsd_gethostbyname=no
  17574. fi
  17575. rm -f core conftest.err conftest.$ac_objext \
  17576. conftest$ac_exeext conftest.$ac_ext
  17577. LIBS=$ac_check_lib_save_LIBS
  17578. fi
  17579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17580. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17581. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17582. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17583. fi
  17584. fi
  17585. fi
  17586. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17587. # socket/setsockopt and other routines are undefined under SCO ODT
  17588. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17589. # on later versions), says Simon Leinen: it contains gethostby*
  17590. # variants that don't use the name server (or something). -lsocket
  17591. # must be given before -lnsl if both are needed. We assume that
  17592. # if connect needs -lnsl, so does gethostbyname.
  17593. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17594. if test "x$ac_cv_func_connect" = xyes; then :
  17595. fi
  17596. if test $ac_cv_func_connect = no; then
  17597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17598. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17599. if ${ac_cv_lib_socket_connect+:} false; then :
  17600. $as_echo_n "(cached) " >&6
  17601. else
  17602. ac_check_lib_save_LIBS=$LIBS
  17603. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17605. /* end confdefs.h. */
  17606. /* Override any GCC internal prototype to avoid an error.
  17607. Use char because int might match the return type of a GCC
  17608. builtin and then its argument prototype would still apply. */
  17609. #ifdef __cplusplus
  17610. extern "C"
  17611. #endif
  17612. char connect ();
  17613. int
  17614. main ()
  17615. {
  17616. return connect ();
  17617. ;
  17618. return 0;
  17619. }
  17620. _ACEOF
  17621. if ac_fn_c_try_link "$LINENO"; then :
  17622. ac_cv_lib_socket_connect=yes
  17623. else
  17624. ac_cv_lib_socket_connect=no
  17625. fi
  17626. rm -f core conftest.err conftest.$ac_objext \
  17627. conftest$ac_exeext conftest.$ac_ext
  17628. LIBS=$ac_check_lib_save_LIBS
  17629. fi
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17631. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17632. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17633. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17634. fi
  17635. fi
  17636. # Guillermo Gomez says -lposix is necessary on A/UX.
  17637. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17638. if test "x$ac_cv_func_remove" = xyes; then :
  17639. fi
  17640. if test $ac_cv_func_remove = no; then
  17641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17642. $as_echo_n "checking for remove in -lposix... " >&6; }
  17643. if ${ac_cv_lib_posix_remove+:} false; then :
  17644. $as_echo_n "(cached) " >&6
  17645. else
  17646. ac_check_lib_save_LIBS=$LIBS
  17647. LIBS="-lposix $LIBS"
  17648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17649. /* end confdefs.h. */
  17650. /* Override any GCC internal prototype to avoid an error.
  17651. Use char because int might match the return type of a GCC
  17652. builtin and then its argument prototype would still apply. */
  17653. #ifdef __cplusplus
  17654. extern "C"
  17655. #endif
  17656. char remove ();
  17657. int
  17658. main ()
  17659. {
  17660. return remove ();
  17661. ;
  17662. return 0;
  17663. }
  17664. _ACEOF
  17665. if ac_fn_c_try_link "$LINENO"; then :
  17666. ac_cv_lib_posix_remove=yes
  17667. else
  17668. ac_cv_lib_posix_remove=no
  17669. fi
  17670. rm -f core conftest.err conftest.$ac_objext \
  17671. conftest$ac_exeext conftest.$ac_ext
  17672. LIBS=$ac_check_lib_save_LIBS
  17673. fi
  17674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17675. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17676. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17677. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17678. fi
  17679. fi
  17680. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17681. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17682. if test "x$ac_cv_func_shmat" = xyes; then :
  17683. fi
  17684. if test $ac_cv_func_shmat = no; then
  17685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17686. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17687. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17688. $as_echo_n "(cached) " >&6
  17689. else
  17690. ac_check_lib_save_LIBS=$LIBS
  17691. LIBS="-lipc $LIBS"
  17692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17693. /* end confdefs.h. */
  17694. /* Override any GCC internal prototype to avoid an error.
  17695. Use char because int might match the return type of a GCC
  17696. builtin and then its argument prototype would still apply. */
  17697. #ifdef __cplusplus
  17698. extern "C"
  17699. #endif
  17700. char shmat ();
  17701. int
  17702. main ()
  17703. {
  17704. return shmat ();
  17705. ;
  17706. return 0;
  17707. }
  17708. _ACEOF
  17709. if ac_fn_c_try_link "$LINENO"; then :
  17710. ac_cv_lib_ipc_shmat=yes
  17711. else
  17712. ac_cv_lib_ipc_shmat=no
  17713. fi
  17714. rm -f core conftest.err conftest.$ac_objext \
  17715. conftest$ac_exeext conftest.$ac_ext
  17716. LIBS=$ac_check_lib_save_LIBS
  17717. fi
  17718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17719. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17720. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17721. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17722. fi
  17723. fi
  17724. fi
  17725. # Check for libraries that X11R6 Xt/Xaw programs need.
  17726. ac_save_LDFLAGS=$LDFLAGS
  17727. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17728. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17729. # check for ICE first), but we must link in the order -lSM -lICE or
  17730. # we get undefined symbols. So assume we have SM if we have ICE.
  17731. # These have to be linked with before -lX11, unlike the other
  17732. # libraries we check for below, so use a different variable.
  17733. # John Interrante, Karl Berry
  17734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17735. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17736. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17737. $as_echo_n "(cached) " >&6
  17738. else
  17739. ac_check_lib_save_LIBS=$LIBS
  17740. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17742. /* end confdefs.h. */
  17743. /* Override any GCC internal prototype to avoid an error.
  17744. Use char because int might match the return type of a GCC
  17745. builtin and then its argument prototype would still apply. */
  17746. #ifdef __cplusplus
  17747. extern "C"
  17748. #endif
  17749. char IceConnectionNumber ();
  17750. int
  17751. main ()
  17752. {
  17753. return IceConnectionNumber ();
  17754. ;
  17755. return 0;
  17756. }
  17757. _ACEOF
  17758. if ac_fn_c_try_link "$LINENO"; then :
  17759. ac_cv_lib_ICE_IceConnectionNumber=yes
  17760. else
  17761. ac_cv_lib_ICE_IceConnectionNumber=no
  17762. fi
  17763. rm -f core conftest.err conftest.$ac_objext \
  17764. conftest$ac_exeext conftest.$ac_ext
  17765. LIBS=$ac_check_lib_save_LIBS
  17766. fi
  17767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17768. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17769. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17770. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17771. fi
  17772. LDFLAGS=$ac_save_LDFLAGS
  17773. fi
  17774. if test x$have_x = xyes; then
  17775. # Check whether --enable-x11-shared was given.
  17776. if test "${enable_x11_shared+set}" = set; then :
  17777. enableval=$enable_x11_shared;
  17778. else
  17779. enable_x11_shared=maybe
  17780. fi
  17781. case "$host" in
  17782. *-*-darwin*)
  17783. # Apple now puts this in /opt/X11
  17784. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17785. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17786. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17787. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17788. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17789. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17790. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17791. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17792. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17793. ;;
  17794. *-*-openbsd*)
  17795. x11_lib='libX11.so'
  17796. x11ext_lib='libXext.so'
  17797. xcursor_lib='libXcursor.so'
  17798. xinerama_lib='libXinerama.so'
  17799. xinput_lib='libXi.so'
  17800. xrandr_lib='libXrandr.so'
  17801. xrender_lib='libXrender.so'
  17802. xss_lib='libXss.so'
  17803. xvidmode_lib='libXxf86vm.so'
  17804. ;;
  17805. *)
  17806. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17807. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17808. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17809. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17810. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17811. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17812. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17813. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17814. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17815. ;;
  17816. esac
  17817. if test x$ac_cv_func_shmat != xyes; then
  17818. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17819. fi
  17820. CFLAGS="$CFLAGS $X_CFLAGS"
  17821. LDFLAGS="$LDFLAGS $X_LIBS"
  17822. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17823. #include <X11/Xproto.h>
  17824. "
  17825. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17826. have_xext_h_hdr=yes
  17827. else
  17828. have_xext_h_hdr=no
  17829. fi
  17830. if test x$have_xext_h_hdr != xyes; then
  17831. as_fn_error $? "
  17832. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17833. " "$LINENO" 5
  17834. fi
  17835. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17836. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17837. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17838. # Needed so SDL applications can include SDL_syswm.h
  17839. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17840. if test x$enable_x11_shared = xmaybe; then
  17841. enable_x11_shared=yes
  17842. fi
  17843. if test x$have_loadso != xyes && \
  17844. test x$enable_x11_shared = xyes; then
  17845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17846. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17847. enable_x11_shared=no
  17848. fi
  17849. if test x$have_loadso = xyes && \
  17850. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17851. echo "-- dynamic libX11 -> $x11_lib"
  17852. echo "-- dynamic libX11ext -> $x11ext_lib"
  17853. cat >>confdefs.h <<_ACEOF
  17854. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17855. _ACEOF
  17856. cat >>confdefs.h <<_ACEOF
  17857. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17858. _ACEOF
  17859. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17860. else
  17861. enable_x11_shared=no
  17862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17863. SUMMARY_video="${SUMMARY_video} x11"
  17864. fi
  17865. have_video=yes
  17866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17867. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17868. have_const_param_XextAddDisplay=no
  17869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17870. /* end confdefs.h. */
  17871. #include <X11/Xlib.h>
  17872. #include <X11/Xproto.h>
  17873. #include <X11/extensions/Xext.h>
  17874. #include <X11/extensions/extutil.h>
  17875. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17876. int
  17877. main ()
  17878. {
  17879. ;
  17880. return 0;
  17881. }
  17882. _ACEOF
  17883. if ac_fn_c_try_compile "$LINENO"; then :
  17884. have_const_param_XextAddDisplay=yes
  17885. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17886. fi
  17887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17889. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17891. $as_echo_n "checking for XGenericEvent... " >&6; }
  17892. have_XGenericEvent=no
  17893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17894. /* end confdefs.h. */
  17895. #include <X11/Xlib.h>
  17896. int
  17897. main ()
  17898. {
  17899. Display *display;
  17900. XEvent event;
  17901. XGenericEventCookie *cookie = &event.xcookie;
  17902. XNextEvent(display, &event);
  17903. XGetEventData(display, cookie);
  17904. XFreeEventData(display, cookie);
  17905. ;
  17906. return 0;
  17907. }
  17908. _ACEOF
  17909. if ac_fn_c_try_compile "$LINENO"; then :
  17910. have_XGenericEvent=yes
  17911. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17912. fi
  17913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17915. $as_echo "$have_XGenericEvent" >&6; }
  17916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17917. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17918. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17919. $as_echo_n "(cached) " >&6
  17920. else
  17921. ac_check_lib_save_LIBS=$LIBS
  17922. LIBS="-lX11 $LIBS"
  17923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17924. /* end confdefs.h. */
  17925. /* Override any GCC internal prototype to avoid an error.
  17926. Use char because int might match the return type of a GCC
  17927. builtin and then its argument prototype would still apply. */
  17928. #ifdef __cplusplus
  17929. extern "C"
  17930. #endif
  17931. char XkbKeycodeToKeysym ();
  17932. int
  17933. main ()
  17934. {
  17935. return XkbKeycodeToKeysym ();
  17936. ;
  17937. return 0;
  17938. }
  17939. _ACEOF
  17940. if ac_fn_c_try_link "$LINENO"; then :
  17941. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17942. else
  17943. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17944. fi
  17945. rm -f core conftest.err conftest.$ac_objext \
  17946. conftest$ac_exeext conftest.$ac_ext
  17947. LIBS=$ac_check_lib_save_LIBS
  17948. fi
  17949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17950. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17951. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17952. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17953. fi
  17954. # Check whether --enable-video-x11-xcursor was given.
  17955. if test "${enable_video_x11_xcursor+set}" = set; then :
  17956. enableval=$enable_video_x11_xcursor;
  17957. else
  17958. enable_video_x11_xcursor=yes
  17959. fi
  17960. if test x$enable_video_x11_xcursor = xyes; then
  17961. definitely_enable_video_x11_xcursor=no
  17962. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17963. "
  17964. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17965. have_xcursor_h_hdr=yes
  17966. else
  17967. have_xcursor_h_hdr=no
  17968. fi
  17969. if test x$have_xcursor_h_hdr = xyes; then
  17970. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17971. echo "-- dynamic libXcursor -> $xcursor_lib"
  17972. cat >>confdefs.h <<_ACEOF
  17973. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17974. _ACEOF
  17975. definitely_enable_video_x11_xcursor=yes
  17976. else
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17978. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17979. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17980. $as_echo_n "(cached) " >&6
  17981. else
  17982. ac_check_lib_save_LIBS=$LIBS
  17983. LIBS="-lXcursor $LIBS"
  17984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17985. /* end confdefs.h. */
  17986. /* Override any GCC internal prototype to avoid an error.
  17987. Use char because int might match the return type of a GCC
  17988. builtin and then its argument prototype would still apply. */
  17989. #ifdef __cplusplus
  17990. extern "C"
  17991. #endif
  17992. char XcursorImageCreate ();
  17993. int
  17994. main ()
  17995. {
  17996. return XcursorImageCreate ();
  17997. ;
  17998. return 0;
  17999. }
  18000. _ACEOF
  18001. if ac_fn_c_try_link "$LINENO"; then :
  18002. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18003. else
  18004. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18005. fi
  18006. rm -f core conftest.err conftest.$ac_objext \
  18007. conftest$ac_exeext conftest.$ac_ext
  18008. LIBS=$ac_check_lib_save_LIBS
  18009. fi
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18011. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18012. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18013. have_xcursor_lib=yes
  18014. fi
  18015. if test x$have_xcursor_lib = xyes ; then
  18016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18017. definitely_enable_video_x11_xcursor=yes
  18018. fi
  18019. fi
  18020. fi
  18021. fi
  18022. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18023. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18024. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18025. fi
  18026. # Check whether --enable-video-x11-xdbe was given.
  18027. if test "${enable_video_x11_xdbe+set}" = set; then :
  18028. enableval=$enable_video_x11_xdbe;
  18029. else
  18030. enable_video_x11_xdbe=yes
  18031. fi
  18032. if test x$enable_video_x11_xdbe = xyes; then
  18033. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18034. "
  18035. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18036. have_dbe_h_hdr=yes
  18037. else
  18038. have_dbe_h_hdr=no
  18039. fi
  18040. if test x$have_dbe_h_hdr = xyes; then
  18041. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18042. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18043. fi
  18044. fi
  18045. # Check whether --enable-video-x11-xinerama was given.
  18046. if test "${enable_video_x11_xinerama+set}" = set; then :
  18047. enableval=$enable_video_x11_xinerama;
  18048. else
  18049. enable_video_x11_xinerama=yes
  18050. fi
  18051. if test x$enable_video_x11_xinerama = xyes; then
  18052. definitely_enable_video_x11_xinerama=no
  18053. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18054. "
  18055. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18056. have_xinerama_h_hdr=yes
  18057. else
  18058. have_xinerama_h_hdr=no
  18059. fi
  18060. if test x$have_xinerama_h_hdr = xyes; then
  18061. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18062. echo "-- dynamic libXinerama -> $xinerama_lib"
  18063. cat >>confdefs.h <<_ACEOF
  18064. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18065. _ACEOF
  18066. definitely_enable_video_x11_xinerama=yes
  18067. else
  18068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18069. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18070. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18071. $as_echo_n "(cached) " >&6
  18072. else
  18073. ac_check_lib_save_LIBS=$LIBS
  18074. LIBS="-lXinerama $LIBS"
  18075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18076. /* end confdefs.h. */
  18077. /* Override any GCC internal prototype to avoid an error.
  18078. Use char because int might match the return type of a GCC
  18079. builtin and then its argument prototype would still apply. */
  18080. #ifdef __cplusplus
  18081. extern "C"
  18082. #endif
  18083. char XineramaQueryExtension ();
  18084. int
  18085. main ()
  18086. {
  18087. return XineramaQueryExtension ();
  18088. ;
  18089. return 0;
  18090. }
  18091. _ACEOF
  18092. if ac_fn_c_try_link "$LINENO"; then :
  18093. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18094. else
  18095. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18096. fi
  18097. rm -f core conftest.err conftest.$ac_objext \
  18098. conftest$ac_exeext conftest.$ac_ext
  18099. LIBS=$ac_check_lib_save_LIBS
  18100. fi
  18101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18102. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18103. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18104. have_xinerama_lib=yes
  18105. fi
  18106. if test x$have_xinerama_lib = xyes ; then
  18107. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18108. definitely_enable_video_x11_xinerama=yes
  18109. fi
  18110. fi
  18111. fi
  18112. fi
  18113. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18114. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18115. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18116. fi
  18117. # Check whether --enable-video-x11-xinput was given.
  18118. if test "${enable_video_x11_xinput+set}" = set; then :
  18119. enableval=$enable_video_x11_xinput;
  18120. else
  18121. enable_video_x11_xinput=yes
  18122. fi
  18123. if test x$enable_video_x11_xinput = xyes; then
  18124. definitely_enable_video_x11_xinput=no
  18125. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18126. "
  18127. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18128. have_xinput_h_hdr=yes
  18129. else
  18130. have_xinput_h_hdr=no
  18131. fi
  18132. if test x$have_xinput_h_hdr = xyes; then
  18133. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18134. echo "-- dynamic libXi -> $xinput_lib"
  18135. cat >>confdefs.h <<_ACEOF
  18136. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18137. _ACEOF
  18138. definitely_enable_video_x11_xinput=yes
  18139. else
  18140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18141. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18142. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18143. $as_echo_n "(cached) " >&6
  18144. else
  18145. ac_check_lib_save_LIBS=$LIBS
  18146. LIBS="-lXi $LIBS"
  18147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18148. /* end confdefs.h. */
  18149. /* Override any GCC internal prototype to avoid an error.
  18150. Use char because int might match the return type of a GCC
  18151. builtin and then its argument prototype would still apply. */
  18152. #ifdef __cplusplus
  18153. extern "C"
  18154. #endif
  18155. char XOpenDevice ();
  18156. int
  18157. main ()
  18158. {
  18159. return XOpenDevice ();
  18160. ;
  18161. return 0;
  18162. }
  18163. _ACEOF
  18164. if ac_fn_c_try_link "$LINENO"; then :
  18165. ac_cv_lib_Xi_XOpenDevice=yes
  18166. else
  18167. ac_cv_lib_Xi_XOpenDevice=no
  18168. fi
  18169. rm -f core conftest.err conftest.$ac_objext \
  18170. conftest$ac_exeext conftest.$ac_ext
  18171. LIBS=$ac_check_lib_save_LIBS
  18172. fi
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18174. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18175. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18176. have_xinput_lib=yes
  18177. fi
  18178. if test x$have_xinput_lib = xyes ; then
  18179. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18180. definitely_enable_video_x11_xinput=yes
  18181. fi
  18182. fi
  18183. fi
  18184. fi
  18185. if test x$definitely_enable_video_x11_xinput = xyes; then
  18186. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18187. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18189. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18190. have_xinput2_multitouch=no
  18191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18192. /* end confdefs.h. */
  18193. #include <X11/Xlib.h>
  18194. #include <X11/Xproto.h>
  18195. #include <X11/extensions/XInput2.h>
  18196. int
  18197. main ()
  18198. {
  18199. int event_type = XI_TouchBegin;
  18200. XITouchClassInfo *t;
  18201. ;
  18202. return 0;
  18203. }
  18204. _ACEOF
  18205. if ac_fn_c_try_compile "$LINENO"; then :
  18206. have_xinput2_multitouch=yes
  18207. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18208. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18209. fi
  18210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18212. $as_echo "$have_xinput2_multitouch" >&6; }
  18213. fi
  18214. # Check whether --enable-video-x11-xrandr was given.
  18215. if test "${enable_video_x11_xrandr+set}" = set; then :
  18216. enableval=$enable_video_x11_xrandr;
  18217. else
  18218. enable_video_x11_xrandr=yes
  18219. fi
  18220. if test x$enable_video_x11_xrandr = xyes; then
  18221. definitely_enable_video_x11_xrandr=no
  18222. have_xrandr_h_hdr=no
  18223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18224. /* end confdefs.h. */
  18225. #include <X11/Xlib.h>
  18226. #include <X11/extensions/Xrandr.h>
  18227. int
  18228. main ()
  18229. {
  18230. XRRScreenResources *res = NULL;
  18231. ;
  18232. return 0;
  18233. }
  18234. _ACEOF
  18235. if ac_fn_c_try_compile "$LINENO"; then :
  18236. have_xrandr_h_hdr=yes
  18237. fi
  18238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18239. if test x$have_xrandr_h_hdr = xyes; then
  18240. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18241. echo "-- dynamic libXrandr -> $xrandr_lib"
  18242. cat >>confdefs.h <<_ACEOF
  18243. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18244. _ACEOF
  18245. definitely_enable_video_x11_xrandr=yes
  18246. else
  18247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18248. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18249. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18250. $as_echo_n "(cached) " >&6
  18251. else
  18252. ac_check_lib_save_LIBS=$LIBS
  18253. LIBS="-lXrandr $LIBS"
  18254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18255. /* end confdefs.h. */
  18256. /* Override any GCC internal prototype to avoid an error.
  18257. Use char because int might match the return type of a GCC
  18258. builtin and then its argument prototype would still apply. */
  18259. #ifdef __cplusplus
  18260. extern "C"
  18261. #endif
  18262. char XRRQueryExtension ();
  18263. int
  18264. main ()
  18265. {
  18266. return XRRQueryExtension ();
  18267. ;
  18268. return 0;
  18269. }
  18270. _ACEOF
  18271. if ac_fn_c_try_link "$LINENO"; then :
  18272. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18273. else
  18274. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18275. fi
  18276. rm -f core conftest.err conftest.$ac_objext \
  18277. conftest$ac_exeext conftest.$ac_ext
  18278. LIBS=$ac_check_lib_save_LIBS
  18279. fi
  18280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18281. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18282. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18283. have_xrandr_lib=yes
  18284. fi
  18285. if test x$have_xrandr_lib = xyes ; then
  18286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18287. definitely_enable_video_x11_xrandr=yes
  18288. fi
  18289. fi
  18290. fi
  18291. fi
  18292. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18293. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18294. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18295. fi
  18296. # Check whether --enable-video-x11-scrnsaver was given.
  18297. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18298. enableval=$enable_video_x11_scrnsaver;
  18299. else
  18300. enable_video_x11_scrnsaver=yes
  18301. fi
  18302. if test x$enable_video_x11_scrnsaver = xyes; then
  18303. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18304. "
  18305. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18306. have_scrnsaver_h_hdr=yes
  18307. else
  18308. have_scrnsaver_h_hdr=no
  18309. fi
  18310. if test x$have_scrnsaver_h_hdr = xyes; then
  18311. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18312. echo "-- dynamic libXss -> $xss_lib"
  18313. cat >>confdefs.h <<_ACEOF
  18314. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18315. _ACEOF
  18316. definitely_enable_video_x11_scrnsaver=yes
  18317. else
  18318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18319. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18320. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18321. $as_echo_n "(cached) " >&6
  18322. else
  18323. ac_check_lib_save_LIBS=$LIBS
  18324. LIBS="-lXss $LIBS"
  18325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18326. /* end confdefs.h. */
  18327. /* Override any GCC internal prototype to avoid an error.
  18328. Use char because int might match the return type of a GCC
  18329. builtin and then its argument prototype would still apply. */
  18330. #ifdef __cplusplus
  18331. extern "C"
  18332. #endif
  18333. char XScreenSaverSuspend ();
  18334. int
  18335. main ()
  18336. {
  18337. return XScreenSaverSuspend ();
  18338. ;
  18339. return 0;
  18340. }
  18341. _ACEOF
  18342. if ac_fn_c_try_link "$LINENO"; then :
  18343. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18344. else
  18345. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18346. fi
  18347. rm -f core conftest.err conftest.$ac_objext \
  18348. conftest$ac_exeext conftest.$ac_ext
  18349. LIBS=$ac_check_lib_save_LIBS
  18350. fi
  18351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18352. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18353. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18354. have_xss_lib=yes
  18355. fi
  18356. if test x$have_xss_lib = xyes ; then
  18357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18358. definitely_enable_video_x11_scrnsaver=yes
  18359. fi
  18360. fi
  18361. fi
  18362. fi
  18363. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18364. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18365. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18366. fi
  18367. # Check whether --enable-video-x11-xshape was given.
  18368. if test "${enable_video_x11_xshape+set}" = set; then :
  18369. enableval=$enable_video_x11_xshape;
  18370. else
  18371. enable_video_x11_xshape=yes
  18372. fi
  18373. if test x$enable_video_x11_xshape = xyes; then
  18374. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18375. "
  18376. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18377. have_shape_h_hdr=yes
  18378. else
  18379. have_shape_h_hdr=no
  18380. fi
  18381. if test x$have_shape_h_hdr = xyes; then
  18382. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18383. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18384. fi
  18385. fi
  18386. # Check whether --enable-video-x11-vm was given.
  18387. if test "${enable_video_x11_vm+set}" = set; then :
  18388. enableval=$enable_video_x11_vm;
  18389. else
  18390. enable_video_x11_vm=yes
  18391. fi
  18392. if test x$enable_video_x11_vm = xyes; then
  18393. definitely_enable_video_x11_vm=no
  18394. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18395. "
  18396. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18397. have_vm_h_hdr=yes
  18398. else
  18399. have_vm_h_hdr=no
  18400. fi
  18401. if test x$have_vm_h_hdr = xyes; then
  18402. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18403. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18404. cat >>confdefs.h <<_ACEOF
  18405. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18406. _ACEOF
  18407. definitely_enable_video_x11_vm=yes
  18408. else
  18409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18410. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18411. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18412. $as_echo_n "(cached) " >&6
  18413. else
  18414. ac_check_lib_save_LIBS=$LIBS
  18415. LIBS="-lXxf86vm $LIBS"
  18416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18417. /* end confdefs.h. */
  18418. /* Override any GCC internal prototype to avoid an error.
  18419. Use char because int might match the return type of a GCC
  18420. builtin and then its argument prototype would still apply. */
  18421. #ifdef __cplusplus
  18422. extern "C"
  18423. #endif
  18424. char XF86VidModeQueryVersion ();
  18425. int
  18426. main ()
  18427. {
  18428. return XF86VidModeQueryVersion ();
  18429. ;
  18430. return 0;
  18431. }
  18432. _ACEOF
  18433. if ac_fn_c_try_link "$LINENO"; then :
  18434. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18435. else
  18436. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18437. fi
  18438. rm -f core conftest.err conftest.$ac_objext \
  18439. conftest$ac_exeext conftest.$ac_ext
  18440. LIBS=$ac_check_lib_save_LIBS
  18441. fi
  18442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18443. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18444. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18445. have_vm_lib=yes
  18446. fi
  18447. if test x$have_vm_lib = xyes ; then
  18448. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18449. definitely_enable_video_x11_vm=yes
  18450. fi
  18451. fi
  18452. fi
  18453. fi
  18454. if test x$definitely_enable_video_x11_vm = xyes; then
  18455. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18456. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18457. fi
  18458. fi
  18459. else
  18460. # Prevent Mesa from including X11 headers
  18461. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18462. fi
  18463. }
  18464. CheckVivanteVideo()
  18465. {
  18466. # Check whether --enable-video-vivante was given.
  18467. if test "${enable_video_vivante+set}" = set; then :
  18468. enableval=$enable_video_vivante;
  18469. else
  18470. enable_video_vivante=yes
  18471. fi
  18472. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18474. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18475. have_vivante_vdk=no
  18476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18477. /* end confdefs.h. */
  18478. #define LINUX
  18479. #define EGL_API_FB
  18480. #include <gc_vdk.h>
  18481. int
  18482. main ()
  18483. {
  18484. ;
  18485. return 0;
  18486. }
  18487. _ACEOF
  18488. if ac_fn_c_try_compile "$LINENO"; then :
  18489. have_vivante_vdk=yes
  18490. fi
  18491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18493. $as_echo "$have_vivante_vdk" >&6; }
  18494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18495. $as_echo_n "checking for Vivante FB API... " >&6; }
  18496. have_vivante_egl=no
  18497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18498. /* end confdefs.h. */
  18499. #define LINUX
  18500. #define EGL_API_FB
  18501. #include <EGL/eglvivante.h>
  18502. int
  18503. main ()
  18504. {
  18505. ;
  18506. return 0;
  18507. }
  18508. _ACEOF
  18509. if ac_fn_c_try_compile "$LINENO"; then :
  18510. have_vivante_egl=yes
  18511. fi
  18512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18514. $as_echo "$have_vivante_egl" >&6; }
  18515. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18516. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18517. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18518. if test x$have_vivante_vdk = xyes; then
  18519. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18520. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18521. fi
  18522. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18523. SUMMARY_video="${SUMMARY_video} vivante"
  18524. have_video=yes
  18525. fi
  18526. fi
  18527. }
  18528. CheckHaikuVideo()
  18529. {
  18530. if test x$enable_video = xyes; then
  18531. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18532. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18533. have_video=yes
  18534. SUMMARY_video="${SUMMARY_video} haiku"
  18535. fi
  18536. }
  18537. CheckCOCOA()
  18538. {
  18539. # Check whether --enable-video-cocoa was given.
  18540. if test "${enable_video_cocoa+set}" = set; then :
  18541. enableval=$enable_video_cocoa;
  18542. else
  18543. enable_video_cocoa=yes
  18544. fi
  18545. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18546. save_CFLAGS="$CFLAGS"
  18547. CFLAGS="$CFLAGS -x objective-c"
  18548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18549. $as_echo_n "checking for Cocoa framework... " >&6; }
  18550. have_cocoa=no
  18551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18552. /* end confdefs.h. */
  18553. #import <Cocoa/Cocoa.h>
  18554. int
  18555. main ()
  18556. {
  18557. ;
  18558. return 0;
  18559. }
  18560. _ACEOF
  18561. if ac_fn_c_try_compile "$LINENO"; then :
  18562. have_cocoa=yes
  18563. fi
  18564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18566. $as_echo "$have_cocoa" >&6; }
  18567. CFLAGS="$save_CFLAGS"
  18568. if test x$have_cocoa = xyes; then
  18569. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18570. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18571. SUMMARY_video="${SUMMARY_video} cocoa"
  18572. have_video=yes
  18573. fi
  18574. fi
  18575. }
  18576. CheckMETAL()
  18577. {
  18578. # Check whether --enable-video-metal was given.
  18579. if test "${enable_video_metal+set}" = set; then :
  18580. enableval=$enable_video_metal;
  18581. else
  18582. enable_video_metal=yes
  18583. fi
  18584. # Check whether --enable-render-metal was given.
  18585. if test "${enable_render_metal+set}" = set; then :
  18586. enableval=$enable_render_metal;
  18587. else
  18588. enable_render_metal=yes
  18589. fi
  18590. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18591. save_CFLAGS="$CFLAGS"
  18592. CFLAGS="$CFLAGS -x objective-c"
  18593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18594. $as_echo_n "checking for Metal framework... " >&6; }
  18595. have_metal=no
  18596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18597. /* end confdefs.h. */
  18598. #import <Cocoa/Cocoa.h>
  18599. #import <Metal/Metal.h>
  18600. #import <QuartzCore/CAMetalLayer.h>
  18601. #if !TARGET_CPU_X86_64
  18602. #error Metal doesn't work on this configuration
  18603. #endif
  18604. int
  18605. main ()
  18606. {
  18607. ;
  18608. return 0;
  18609. }
  18610. _ACEOF
  18611. if ac_fn_c_try_compile "$LINENO"; then :
  18612. have_metal=yes
  18613. fi
  18614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18615. CFLAGS="$save_CFLAGS"
  18616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18617. $as_echo "$have_metal" >&6; }
  18618. if test x$have_metal = xyes; then
  18619. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18620. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18621. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18622. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18623. fi
  18624. SUMMARY_video="${SUMMARY_video} metal"
  18625. else
  18626. enable_video_metal=no
  18627. enable_render_metal=no
  18628. fi
  18629. fi
  18630. }
  18631. CheckDirectFB()
  18632. {
  18633. # Check whether --enable-video-directfb was given.
  18634. if test "${enable_video_directfb+set}" = set; then :
  18635. enableval=$enable_video_directfb;
  18636. else
  18637. enable_video_directfb=no
  18638. fi
  18639. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18640. pkg_failed=no
  18641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18642. $as_echo_n "checking for DIRECTFB... " >&6; }
  18643. if test -n "$DIRECTFB_CFLAGS"; then
  18644. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18645. elif test -n "$PKG_CONFIG"; then
  18646. if test -n "$PKG_CONFIG" && \
  18647. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18648. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18649. ac_status=$?
  18650. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18651. test $ac_status = 0; }; then
  18652. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18653. else
  18654. pkg_failed=yes
  18655. fi
  18656. else
  18657. pkg_failed=untried
  18658. fi
  18659. if test -n "$DIRECTFB_LIBS"; then
  18660. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18661. elif test -n "$PKG_CONFIG"; then
  18662. if test -n "$PKG_CONFIG" && \
  18663. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18664. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18665. ac_status=$?
  18666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18667. test $ac_status = 0; }; then
  18668. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18669. else
  18670. pkg_failed=yes
  18671. fi
  18672. else
  18673. pkg_failed=untried
  18674. fi
  18675. if test $pkg_failed = yes; then
  18676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18677. $as_echo "no" >&6; }
  18678. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18679. _pkg_short_errors_supported=yes
  18680. else
  18681. _pkg_short_errors_supported=no
  18682. fi
  18683. if test $_pkg_short_errors_supported = yes; then
  18684. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18685. else
  18686. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18687. fi
  18688. # Put the nasty error message in config.log where it belongs
  18689. echo "$DIRECTFB_PKG_ERRORS" >&5
  18690. video_directfb=no
  18691. elif test $pkg_failed = untried; then
  18692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18693. $as_echo "no" >&6; }
  18694. video_directfb=no
  18695. else
  18696. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18697. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18699. $as_echo "yes" >&6; }
  18700. video_directfb=yes
  18701. fi
  18702. if test x$video_directfb = xyes; then
  18703. # SuSE 11.1 installs directfb-config without directfb-devel
  18704. save_CPPFLAGS="$CPPFLAGS"
  18705. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18706. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18707. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18708. have_directfb_hdr=yes
  18709. else
  18710. have_directfb_hdr=no
  18711. fi
  18712. CPPFLAGS="$save_CPPFLAGS"
  18713. video_directfb=$have_directfb_hdr
  18714. fi
  18715. if test x$video_directfb = xyes; then
  18716. # Check whether --enable-directfb-shared was given.
  18717. if test "${enable_directfb_shared+set}" = set; then :
  18718. enableval=$enable_directfb_shared;
  18719. else
  18720. enable_directfb_shared=yes
  18721. fi
  18722. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18723. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18724. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18725. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18727. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18728. directfb_shared=no
  18729. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18730. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18732. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18733. if test x$have_loadso != xyes && \
  18734. test x$enable_directfb_shared = xyes; then
  18735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18736. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18737. fi
  18738. if test x$have_loadso = xyes && \
  18739. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18740. directfb_shared=yes
  18741. echo "-- $directfb_lib_spec -> $directfb_lib"
  18742. cat >>confdefs.h <<_ACEOF
  18743. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18744. _ACEOF
  18745. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18746. else
  18747. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18748. SUMMARY_video="${SUMMARY_video} directfb"
  18749. fi
  18750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18751. $as_echo "$directfb_shared" >&6; }
  18752. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18753. have_video=yes
  18754. fi
  18755. fi
  18756. }
  18757. CheckKMSDRM()
  18758. {
  18759. # Check whether --enable-video-kmsdrm was given.
  18760. if test "${enable_video_kmsdrm+set}" = set; then :
  18761. enableval=$enable_video_kmsdrm;
  18762. else
  18763. enable_video_kmsdrm=no
  18764. fi
  18765. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18766. video_kmsdrm=no
  18767. pkg_failed=no
  18768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18769. $as_echo_n "checking for LIBDRM... " >&6; }
  18770. if test -n "$LIBDRM_CFLAGS"; then
  18771. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18772. elif test -n "$PKG_CONFIG"; then
  18773. if test -n "$PKG_CONFIG" && \
  18774. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18775. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18776. ac_status=$?
  18777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18778. test $ac_status = 0; }; then
  18779. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18780. else
  18781. pkg_failed=yes
  18782. fi
  18783. else
  18784. pkg_failed=untried
  18785. fi
  18786. if test -n "$LIBDRM_LIBS"; then
  18787. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18788. elif test -n "$PKG_CONFIG"; then
  18789. if test -n "$PKG_CONFIG" && \
  18790. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18791. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18792. ac_status=$?
  18793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18794. test $ac_status = 0; }; then
  18795. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18796. else
  18797. pkg_failed=yes
  18798. fi
  18799. else
  18800. pkg_failed=untried
  18801. fi
  18802. if test $pkg_failed = yes; then
  18803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18804. $as_echo "no" >&6; }
  18805. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18806. _pkg_short_errors_supported=yes
  18807. else
  18808. _pkg_short_errors_supported=no
  18809. fi
  18810. if test $_pkg_short_errors_supported = yes; then
  18811. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18812. else
  18813. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18814. fi
  18815. # Put the nasty error message in config.log where it belongs
  18816. echo "$LIBDRM_PKG_ERRORS" >&5
  18817. libdrm_avail=no
  18818. elif test $pkg_failed = untried; then
  18819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18820. $as_echo "no" >&6; }
  18821. libdrm_avail=no
  18822. else
  18823. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18824. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18826. $as_echo "yes" >&6; }
  18827. libdrm_avail=yes
  18828. fi
  18829. pkg_failed=no
  18830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18831. $as_echo_n "checking for LIBGBM... " >&6; }
  18832. if test -n "$LIBGBM_CFLAGS"; then
  18833. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18834. elif test -n "$PKG_CONFIG"; then
  18835. if test -n "$PKG_CONFIG" && \
  18836. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18837. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18838. ac_status=$?
  18839. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18840. test $ac_status = 0; }; then
  18841. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18842. else
  18843. pkg_failed=yes
  18844. fi
  18845. else
  18846. pkg_failed=untried
  18847. fi
  18848. if test -n "$LIBGBM_LIBS"; then
  18849. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18850. elif test -n "$PKG_CONFIG"; then
  18851. if test -n "$PKG_CONFIG" && \
  18852. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18853. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18854. ac_status=$?
  18855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18856. test $ac_status = 0; }; then
  18857. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18858. else
  18859. pkg_failed=yes
  18860. fi
  18861. else
  18862. pkg_failed=untried
  18863. fi
  18864. if test $pkg_failed = yes; then
  18865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18866. $as_echo "no" >&6; }
  18867. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18868. _pkg_short_errors_supported=yes
  18869. else
  18870. _pkg_short_errors_supported=no
  18871. fi
  18872. if test $_pkg_short_errors_supported = yes; then
  18873. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18874. else
  18875. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18876. fi
  18877. # Put the nasty error message in config.log where it belongs
  18878. echo "$LIBGBM_PKG_ERRORS" >&5
  18879. libgbm_avail=no
  18880. elif test $pkg_failed = untried; then
  18881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18882. $as_echo "no" >&6; }
  18883. libgbm_avail=no
  18884. else
  18885. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18886. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18888. $as_echo "yes" >&6; }
  18889. libgbm_avail=yes
  18890. fi
  18891. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18892. video_kmsdrm=yes
  18893. fi
  18894. if test x$video_kmsdrm = xyes; then
  18895. # Check whether --enable-kmsdrm-shared was given.
  18896. if test "${enable_kmsdrm_shared+set}" = set; then :
  18897. enableval=$enable_kmsdrm_shared;
  18898. else
  18899. enable_kmsdrm_shared=yes
  18900. fi
  18901. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18902. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18903. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18905. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18906. kmsdrm_shared=no
  18907. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18908. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18909. if test x$have_loadso != xyes && \
  18910. test x$enable_kmsdrm_shared = xyes; then
  18911. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18912. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18913. fi
  18914. if test x$have_loadso = xyes && \
  18915. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18916. kmsdrm_shared=yes
  18917. cat >>confdefs.h <<_ACEOF
  18918. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18919. _ACEOF
  18920. cat >>confdefs.h <<_ACEOF
  18921. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18922. _ACEOF
  18923. cat >>confdefs.h <<_ACEOF
  18924. #define HAVE_KMSDRM_SHARED "TRUE"
  18925. _ACEOF
  18926. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18927. else
  18928. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18929. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18930. fi
  18931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18932. $as_echo "$kmsdrm_shared" >&6; }
  18933. have_video=yes
  18934. fi
  18935. fi
  18936. }
  18937. CheckDummyVideo()
  18938. {
  18939. # Check whether --enable-video-dummy was given.
  18940. if test "${enable_video_dummy+set}" = set; then :
  18941. enableval=$enable_video_dummy;
  18942. else
  18943. enable_video_dummy=yes
  18944. fi
  18945. if test x$enable_video_dummy = xyes; then
  18946. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18947. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18948. have_video=yes
  18949. SUMMARY_video="${SUMMARY_video} dummy"
  18950. fi
  18951. }
  18952. CheckQNXVideo()
  18953. {
  18954. if test x$enable_video = xyes; then
  18955. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18956. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18957. have_video=yes
  18958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18959. SUMMARY_video="${SUMMARY_video} qnx"
  18960. fi
  18961. }
  18962. CheckQNXAudio()
  18963. {
  18964. if test x$enable_audio = xyes; then
  18965. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18966. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18967. have_audio=yes
  18968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18969. SUMMARY_audio="${SUMMARY_audio} qsa"
  18970. fi
  18971. }
  18972. # Check whether --enable-video-opengl was given.
  18973. if test "${enable_video_opengl+set}" = set; then :
  18974. enableval=$enable_video_opengl;
  18975. else
  18976. enable_video_opengl=yes
  18977. fi
  18978. CheckOpenGLX11()
  18979. {
  18980. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18982. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18983. video_opengl=no
  18984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18985. /* end confdefs.h. */
  18986. #include <GL/gl.h>
  18987. #include <GL/glx.h>
  18988. int
  18989. main ()
  18990. {
  18991. ;
  18992. return 0;
  18993. }
  18994. _ACEOF
  18995. if ac_fn_c_try_compile "$LINENO"; then :
  18996. video_opengl=yes
  18997. fi
  18998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19000. $as_echo "$video_opengl" >&6; }
  19001. if test x$video_opengl = xyes; then
  19002. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19003. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19004. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19005. SUMMARY_video="${SUMMARY_video} opengl"
  19006. fi
  19007. fi
  19008. }
  19009. # Check whether --enable-video-opengles was given.
  19010. if test "${enable_video_opengles+set}" = set; then :
  19011. enableval=$enable_video_opengles;
  19012. else
  19013. enable_video_opengles=yes
  19014. fi
  19015. # Check whether --enable-video-opengles1 was given.
  19016. if test "${enable_video_opengles1+set}" = set; then :
  19017. enableval=$enable_video_opengles1;
  19018. else
  19019. enable_video_opengles1=yes
  19020. fi
  19021. # Check whether --enable-video-opengles2 was given.
  19022. if test "${enable_video_opengles2+set}" = set; then :
  19023. enableval=$enable_video_opengles2;
  19024. else
  19025. enable_video_opengles2=yes
  19026. fi
  19027. CheckOpenGLESX11()
  19028. {
  19029. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19031. $as_echo_n "checking for EGL support... " >&6; }
  19032. video_opengl_egl=no
  19033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19034. /* end confdefs.h. */
  19035. #define LINUX
  19036. #define EGL_API_FB
  19037. #define MESA_EGL_NO_X11_HEADERS
  19038. #include <EGL/egl.h>
  19039. #include <EGL/eglext.h>
  19040. int
  19041. main ()
  19042. {
  19043. ;
  19044. return 0;
  19045. }
  19046. _ACEOF
  19047. if ac_fn_c_try_compile "$LINENO"; then :
  19048. video_opengl_egl=yes
  19049. fi
  19050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19052. $as_echo "$video_opengl_egl" >&6; }
  19053. if test x$video_opengl_egl = xyes; then
  19054. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19055. fi
  19056. if test x$enable_video_opengles1 = xyes; then
  19057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19058. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19059. video_opengles_v1=no
  19060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19061. /* end confdefs.h. */
  19062. #include <GLES/gl.h>
  19063. #include <GLES/glext.h>
  19064. int
  19065. main ()
  19066. {
  19067. ;
  19068. return 0;
  19069. }
  19070. _ACEOF
  19071. if ac_fn_c_try_compile "$LINENO"; then :
  19072. video_opengles_v1=yes
  19073. fi
  19074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19076. $as_echo "$video_opengles_v1" >&6; }
  19077. if test x$video_opengles_v1 = xyes; then
  19078. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19079. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19080. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19081. fi
  19082. fi
  19083. if test x$enable_video_opengles2 = xyes; then
  19084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19085. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19086. video_opengles_v2=no
  19087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19088. /* end confdefs.h. */
  19089. #include <GLES2/gl2.h>
  19090. #include <GLES2/gl2ext.h>
  19091. int
  19092. main ()
  19093. {
  19094. ;
  19095. return 0;
  19096. }
  19097. _ACEOF
  19098. if ac_fn_c_try_compile "$LINENO"; then :
  19099. video_opengles_v2=yes
  19100. fi
  19101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19103. $as_echo "$video_opengles_v2" >&6; }
  19104. if test x$video_opengles_v2 = xyes; then
  19105. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19106. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19107. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19108. fi
  19109. fi
  19110. fi
  19111. }
  19112. CheckWINDOWSGL()
  19113. {
  19114. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19115. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19116. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19117. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19118. SUMMARY_video="${SUMMARY_video} opengl"
  19119. fi
  19120. }
  19121. CheckWINDOWSGLES()
  19122. {
  19123. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19125. $as_echo_n "checking for EGL support... " >&6; }
  19126. video_opengl_egl=no
  19127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19128. /* end confdefs.h. */
  19129. #include <EGL/egl.h>
  19130. int
  19131. main ()
  19132. {
  19133. ;
  19134. return 0;
  19135. }
  19136. _ACEOF
  19137. if ac_fn_c_try_compile "$LINENO"; then :
  19138. video_opengl_egl=yes
  19139. fi
  19140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19142. $as_echo "$video_opengl_egl" >&6; }
  19143. if test x$video_opengl_egl = xyes; then
  19144. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19145. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19146. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19147. fi
  19148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19149. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19150. video_opengles_v2=no
  19151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19152. /* end confdefs.h. */
  19153. #include <GLES2/gl2.h>
  19154. #include <GLES2/gl2ext.h>
  19155. int
  19156. main ()
  19157. {
  19158. ;
  19159. return 0;
  19160. }
  19161. _ACEOF
  19162. if ac_fn_c_try_compile "$LINENO"; then :
  19163. video_opengles_v2=yes
  19164. fi
  19165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19167. $as_echo "$video_opengles_v2" >&6; }
  19168. if test x$video_opengles_v2 = xyes; then
  19169. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19170. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19171. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19172. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19173. fi
  19174. fi
  19175. }
  19176. CheckHaikuGL()
  19177. {
  19178. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19179. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19180. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19181. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19183. SUMMARY_video="${SUMMARY_video} opengl"
  19184. fi
  19185. }
  19186. CheckMacGL()
  19187. {
  19188. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19189. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19190. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19191. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19192. SUMMARY_video="${SUMMARY_video} opengl"
  19193. fi
  19194. }
  19195. CheckMacGLES()
  19196. {
  19197. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19198. video_opengl_egl=yes
  19199. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19200. video_opengles_v2=yes
  19201. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19202. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19203. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19204. fi
  19205. }
  19206. CheckEmscriptenGLES()
  19207. {
  19208. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19210. $as_echo_n "checking for EGL support... " >&6; }
  19211. video_opengl_egl=no
  19212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19213. /* end confdefs.h. */
  19214. #include <EGL/egl.h>
  19215. int
  19216. main ()
  19217. {
  19218. ;
  19219. return 0;
  19220. }
  19221. _ACEOF
  19222. if ac_fn_c_try_compile "$LINENO"; then :
  19223. video_opengl_egl=yes
  19224. fi
  19225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19227. $as_echo "$video_opengl_egl" >&6; }
  19228. if test x$video_opengl_egl = xyes; then
  19229. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19230. fi
  19231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19232. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19233. video_opengles_v2=no
  19234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19235. /* end confdefs.h. */
  19236. #include <GLES2/gl2.h>
  19237. #include <GLES2/gl2ext.h>
  19238. int
  19239. main ()
  19240. {
  19241. ;
  19242. return 0;
  19243. }
  19244. _ACEOF
  19245. if ac_fn_c_try_compile "$LINENO"; then :
  19246. video_opengles_v2=yes
  19247. fi
  19248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19250. $as_echo "$video_opengles_v2" >&6; }
  19251. if test x$video_opengles_v2 = xyes; then
  19252. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19253. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19254. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19255. fi
  19256. fi
  19257. }
  19258. # Check whether --enable-video-vulkan was given.
  19259. if test "${enable_video_vulkan+set}" = set; then :
  19260. enableval=$enable_video_vulkan;
  19261. else
  19262. enable_video_vulkan=yes
  19263. fi
  19264. CheckVulkan()
  19265. {
  19266. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19267. case "$host" in
  19268. *-*-android*)
  19269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19270. /* end confdefs.h. */
  19271. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19272. #error Vulkan doesn't work on this configuration
  19273. #endif
  19274. int
  19275. main ()
  19276. {
  19277. ;
  19278. return 0;
  19279. }
  19280. _ACEOF
  19281. if ac_fn_c_try_compile "$LINENO"; then :
  19282. else
  19283. enable_video_vulkan=no
  19284. fi
  19285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19286. ;;
  19287. *-*-darwin*)
  19288. save_CFLAGS="$CFLAGS"
  19289. CFLAGS="$CFLAGS -x objective-c"
  19290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19291. /* end confdefs.h. */
  19292. #include <Cocoa/Cocoa.h>
  19293. #include <Metal/Metal.h>
  19294. #include <QuartzCore/CAMetalLayer.h>
  19295. #if !TARGET_CPU_X86_64
  19296. #error Vulkan doesn't work on this configuration
  19297. #endif
  19298. int
  19299. main ()
  19300. {
  19301. ;
  19302. return 0;
  19303. }
  19304. _ACEOF
  19305. if ac_fn_c_try_compile "$LINENO"; then :
  19306. else
  19307. enable_video_vulkan=no
  19308. fi
  19309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19310. CFLAGS="$save_CFLAGS"
  19311. ;;
  19312. *)
  19313. ;;
  19314. esac
  19315. if test x$enable_video_vulkan = xno; then
  19316. # For reasons I am totally unable to see, I get an undefined macro error if
  19317. # I put this in the AC_TRY_COMPILE.
  19318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19319. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19320. fi
  19321. fi
  19322. if test x$enable_video_vulkan = xyes; then
  19323. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19324. SUMMARY_video="${SUMMARY_video} vulkan"
  19325. fi
  19326. }
  19327. CheckInputEvents()
  19328. {
  19329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19330. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19331. use_input_events=no
  19332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19333. /* end confdefs.h. */
  19334. #include <linux/input.h>
  19335. int
  19336. main ()
  19337. {
  19338. #ifndef EVIOCGNAME
  19339. #error EVIOCGNAME() ioctl not available
  19340. #endif
  19341. ;
  19342. return 0;
  19343. }
  19344. _ACEOF
  19345. if ac_fn_c_try_compile "$LINENO"; then :
  19346. use_input_events=yes
  19347. fi
  19348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19350. $as_echo "$use_input_events" >&6; }
  19351. if test x$use_input_events = xyes; then
  19352. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19353. SUMMARY_input="${SUMMARY_input} linuxev"
  19354. fi
  19355. }
  19356. CheckInputKD()
  19357. {
  19358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19359. $as_echo_n "checking for Linux kd.h... " >&6; }
  19360. use_input_kd=no
  19361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19362. /* end confdefs.h. */
  19363. #include <linux/kd.h>
  19364. #include <linux/keyboard.h>
  19365. int
  19366. main ()
  19367. {
  19368. struct kbentry kbe;
  19369. kbe.kb_table = KG_CTRL;
  19370. ioctl(0, KDGKBENT, &kbe);
  19371. ;
  19372. return 0;
  19373. }
  19374. _ACEOF
  19375. if ac_fn_c_try_compile "$LINENO"; then :
  19376. use_input_kd=yes
  19377. fi
  19378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19380. $as_echo "$use_input_kd" >&6; }
  19381. if test x$use_input_kd = xyes; then
  19382. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19383. SUMMARY_input="${SUMMARY_input} linuxkd"
  19384. fi
  19385. }
  19386. CheckLibUDev()
  19387. {
  19388. # Check whether --enable-libudev was given.
  19389. if test "${enable_libudev+set}" = set; then :
  19390. enableval=$enable_libudev;
  19391. else
  19392. enable_libudev=yes
  19393. fi
  19394. if test x$enable_libudev = xyes; then
  19395. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19396. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19397. have_libudev_h_hdr=yes
  19398. else
  19399. have_libudev_h_hdr=no
  19400. fi
  19401. if test x$have_libudev_h_hdr = xyes; then
  19402. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19403. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19404. if test x$udev_lib != x; then
  19405. echo "-- dynamic udev -> $udev_lib"
  19406. cat >>confdefs.h <<_ACEOF
  19407. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19408. _ACEOF
  19409. fi
  19410. fi
  19411. fi
  19412. }
  19413. CheckDBus()
  19414. {
  19415. # Check whether --enable-dbus was given.
  19416. if test "${enable_dbus+set}" = set; then :
  19417. enableval=$enable_dbus;
  19418. else
  19419. enable_dbus=yes
  19420. fi
  19421. if test x$enable_dbus = xyes; then
  19422. pkg_failed=no
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19424. $as_echo_n "checking for DBUS... " >&6; }
  19425. if test -n "$DBUS_CFLAGS"; then
  19426. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19427. elif test -n "$PKG_CONFIG"; then
  19428. if test -n "$PKG_CONFIG" && \
  19429. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19430. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19431. ac_status=$?
  19432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19433. test $ac_status = 0; }; then
  19434. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19435. else
  19436. pkg_failed=yes
  19437. fi
  19438. else
  19439. pkg_failed=untried
  19440. fi
  19441. if test -n "$DBUS_LIBS"; then
  19442. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19443. elif test -n "$PKG_CONFIG"; then
  19444. if test -n "$PKG_CONFIG" && \
  19445. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19446. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19447. ac_status=$?
  19448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19449. test $ac_status = 0; }; then
  19450. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19451. else
  19452. pkg_failed=yes
  19453. fi
  19454. else
  19455. pkg_failed=untried
  19456. fi
  19457. if test $pkg_failed = yes; then
  19458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19459. $as_echo "no" >&6; }
  19460. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19461. _pkg_short_errors_supported=yes
  19462. else
  19463. _pkg_short_errors_supported=no
  19464. fi
  19465. if test $_pkg_short_errors_supported = yes; then
  19466. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19467. else
  19468. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19469. fi
  19470. # Put the nasty error message in config.log where it belongs
  19471. echo "$DBUS_PKG_ERRORS" >&5
  19472. have_dbus=no
  19473. elif test $pkg_failed = untried; then
  19474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19475. $as_echo "no" >&6; }
  19476. have_dbus=no
  19477. else
  19478. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19479. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19481. $as_echo "yes" >&6; }
  19482. have_dbus=yes
  19483. fi
  19484. save_CFLAGS="$CFLAGS"
  19485. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19486. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19487. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19488. have_dbus_dbus_h_hdr=yes
  19489. else
  19490. have_dbus_dbus_h_hdr=no
  19491. fi
  19492. CFLAGS="$save_CFLAGS"
  19493. if test x$have_dbus_dbus_h_hdr = xyes; then
  19494. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19495. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19496. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19497. fi
  19498. fi
  19499. }
  19500. CheckIME()
  19501. {
  19502. # Check whether --enable-ime was given.
  19503. if test "${enable_ime+set}" = set; then :
  19504. enableval=$enable_ime;
  19505. else
  19506. enable_ime=yes
  19507. fi
  19508. if test x$enable_ime = xyes; then
  19509. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19510. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19511. fi
  19512. }
  19513. CheckIBus()
  19514. {
  19515. # Check whether --enable-ibus was given.
  19516. if test "${enable_ibus+set}" = set; then :
  19517. enableval=$enable_ibus;
  19518. else
  19519. enable_ibus=yes
  19520. fi
  19521. if test x$enable_ibus = xyes; then
  19522. pkg_failed=no
  19523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19524. $as_echo_n "checking for IBUS... " >&6; }
  19525. if test -n "$IBUS_CFLAGS"; then
  19526. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19527. elif test -n "$PKG_CONFIG"; then
  19528. if test -n "$PKG_CONFIG" && \
  19529. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19530. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19531. ac_status=$?
  19532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19533. test $ac_status = 0; }; then
  19534. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19535. else
  19536. pkg_failed=yes
  19537. fi
  19538. else
  19539. pkg_failed=untried
  19540. fi
  19541. if test -n "$IBUS_LIBS"; then
  19542. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19543. elif test -n "$PKG_CONFIG"; then
  19544. if test -n "$PKG_CONFIG" && \
  19545. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19546. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19547. ac_status=$?
  19548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19549. test $ac_status = 0; }; then
  19550. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19551. else
  19552. pkg_failed=yes
  19553. fi
  19554. else
  19555. pkg_failed=untried
  19556. fi
  19557. if test $pkg_failed = yes; then
  19558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19559. $as_echo "no" >&6; }
  19560. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19561. _pkg_short_errors_supported=yes
  19562. else
  19563. _pkg_short_errors_supported=no
  19564. fi
  19565. if test $_pkg_short_errors_supported = yes; then
  19566. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19567. else
  19568. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19569. fi
  19570. # Put the nasty error message in config.log where it belongs
  19571. echo "$IBUS_PKG_ERRORS" >&5
  19572. have_ibus=no
  19573. elif test $pkg_failed = untried; then
  19574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19575. $as_echo "no" >&6; }
  19576. have_ibus=no
  19577. else
  19578. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19579. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19581. $as_echo "yes" >&6; }
  19582. have_ibus=yes
  19583. fi
  19584. save_CFLAGS="$CFLAGS"
  19585. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19586. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19587. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19588. have_ibus_ibus_h_hdr=yes
  19589. else
  19590. have_ibus_ibus_h_hdr=no
  19591. fi
  19592. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19593. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19594. have_inotify_inotify_h_hdr=yes
  19595. else
  19596. have_inotify_inotify_h_hdr=no
  19597. fi
  19598. CFLAGS="$save_CFLAGS"
  19599. if test x$have_ibus_ibus_h_hdr = xyes; then
  19600. if test x$enable_ime != xyes; then
  19601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19602. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19603. have_ibus_ibus_h_hdr=no
  19604. elif test x$enable_dbus != xyes; then
  19605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19606. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19607. have_ibus_ibus_h_hdr=no
  19608. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19610. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19611. have_ibus_ibus_h_hdr=no
  19612. else
  19613. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19614. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19615. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19616. fi
  19617. fi
  19618. fi
  19619. }
  19620. CheckFcitx()
  19621. {
  19622. # Check whether --enable-fcitx was given.
  19623. if test "${enable_fcitx+set}" = set; then :
  19624. enableval=$enable_fcitx;
  19625. else
  19626. enable_fcitx=yes
  19627. fi
  19628. if test x$enable_fcitx = xyes; then
  19629. pkg_failed=no
  19630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
  19631. $as_echo_n "checking for FCITX... " >&6; }
  19632. if test -n "$FCITX_CFLAGS"; then
  19633. pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
  19634. elif test -n "$PKG_CONFIG"; then
  19635. if test -n "$PKG_CONFIG" && \
  19636. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19637. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19638. ac_status=$?
  19639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19640. test $ac_status = 0; }; then
  19641. pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
  19642. else
  19643. pkg_failed=yes
  19644. fi
  19645. else
  19646. pkg_failed=untried
  19647. fi
  19648. if test -n "$FCITX_LIBS"; then
  19649. pkg_cv_FCITX_LIBS="$FCITX_LIBS"
  19650. elif test -n "$PKG_CONFIG"; then
  19651. if test -n "$PKG_CONFIG" && \
  19652. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19653. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19654. ac_status=$?
  19655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19656. test $ac_status = 0; }; then
  19657. pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
  19658. else
  19659. pkg_failed=yes
  19660. fi
  19661. else
  19662. pkg_failed=untried
  19663. fi
  19664. if test $pkg_failed = yes; then
  19665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19666. $as_echo "no" >&6; }
  19667. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19668. _pkg_short_errors_supported=yes
  19669. else
  19670. _pkg_short_errors_supported=no
  19671. fi
  19672. if test $_pkg_short_errors_supported = yes; then
  19673. FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
  19674. else
  19675. FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
  19676. fi
  19677. # Put the nasty error message in config.log where it belongs
  19678. echo "$FCITX_PKG_ERRORS" >&5
  19679. have_fcitx=no
  19680. elif test $pkg_failed = untried; then
  19681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19682. $as_echo "no" >&6; }
  19683. have_fcitx=no
  19684. else
  19685. FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
  19686. FCITX_LIBS=$pkg_cv_FCITX_LIBS
  19687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19688. $as_echo "yes" >&6; }
  19689. have_fcitx=yes
  19690. fi
  19691. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19692. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19693. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19694. have_fcitx_frontend_h_hdr=yes
  19695. else
  19696. have_fcitx_frontend_h_hdr=no
  19697. fi
  19698. CFLAGS="$save_CFLAGS"
  19699. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19700. if test x$enable_ime != xyes; then
  19701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19702. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19703. have_fcitx_frontend_h_hdr=no
  19704. elif test x$enable_dbus != xyes; then
  19705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19706. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19707. have_fcitx_frontend_h_hdr=no
  19708. else
  19709. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19710. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19711. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19712. fi
  19713. fi
  19714. fi
  19715. }
  19716. CheckTslib()
  19717. {
  19718. # Check whether --enable-input-tslib was given.
  19719. if test "${enable_input_tslib+set}" = set; then :
  19720. enableval=$enable_input_tslib;
  19721. else
  19722. enable_input_tslib=yes
  19723. fi
  19724. if test x$enable_input_tslib = xyes; then
  19725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19726. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19727. enable_input_tslib=no
  19728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19729. /* end confdefs.h. */
  19730. #include "tslib.h"
  19731. int
  19732. main ()
  19733. {
  19734. ;
  19735. return 0;
  19736. }
  19737. _ACEOF
  19738. if ac_fn_c_try_compile "$LINENO"; then :
  19739. enable_input_tslib=yes
  19740. fi
  19741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19743. $as_echo "$enable_input_tslib" >&6; }
  19744. if test x$enable_input_tslib = xyes; then
  19745. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19746. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19747. SUMMARY_input="${SUMMARY_input} ts"
  19748. fi
  19749. fi
  19750. }
  19751. CheckPTHREAD()
  19752. {
  19753. # Check whether --enable-pthreads was given.
  19754. if test "${enable_pthreads+set}" = set; then :
  19755. enableval=$enable_pthreads;
  19756. else
  19757. enable_pthreads=yes
  19758. fi
  19759. # Check whether --enable-pthread-sem was given.
  19760. if test "${enable_pthread_sem+set}" = set; then :
  19761. enableval=$enable_pthread_sem;
  19762. else
  19763. enable_pthread_sem=yes
  19764. fi
  19765. case "$host" in
  19766. *-*-android*)
  19767. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19768. pthread_lib=""
  19769. ;;
  19770. *-*-linux*|*-*-uclinux*)
  19771. pthread_cflags="-D_REENTRANT"
  19772. pthread_lib="-lpthread"
  19773. ;;
  19774. *-*-bsdi*)
  19775. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19776. pthread_lib=""
  19777. ;;
  19778. *-*-darwin*)
  19779. pthread_cflags="-D_THREAD_SAFE"
  19780. # causes Carbon.p complaints?
  19781. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19782. ;;
  19783. *-*-freebsd*|*-*-dragonfly*)
  19784. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19785. pthread_lib="-pthread"
  19786. ;;
  19787. *-*-netbsd*)
  19788. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19789. pthread_lib="-lpthread"
  19790. ;;
  19791. *-*-openbsd*)
  19792. pthread_cflags="-D_REENTRANT"
  19793. pthread_lib="-pthread"
  19794. ;;
  19795. *-*-solaris2.9)
  19796. # From Solaris 9+, posix4's preferred name is rt.
  19797. pthread_cflags="-D_REENTRANT"
  19798. pthread_lib="-lpthread -lrt"
  19799. ;;
  19800. *-*-solaris2.10)
  19801. # Solaris 10+ merged pthread into libc.
  19802. pthread_cflags="-D_REENTRANT"
  19803. pthread_lib="-lrt"
  19804. ;;
  19805. *-*-solaris*)
  19806. # Solaris 11+ merged rt into libc.
  19807. pthread_cflags="-D_REENTRANT"
  19808. pthread_lib=""
  19809. ;;
  19810. *-*-sysv5*)
  19811. pthread_cflags="-D_REENTRANT -Kthread"
  19812. pthread_lib=""
  19813. ;;
  19814. *-*-aix*)
  19815. pthread_cflags="-D_REENTRANT -mthreads"
  19816. pthread_lib="-lpthread"
  19817. ;;
  19818. *-*-hpux11*)
  19819. pthread_cflags="-D_REENTRANT"
  19820. pthread_lib="-L/usr/lib -lpthread"
  19821. ;;
  19822. *-*-haiku*)
  19823. pthread_cflags="-D_REENTRANT"
  19824. pthread_lib=""
  19825. ;;
  19826. *-*-nto*)
  19827. pthread_cflags="-D_REENTRANT"
  19828. pthread_lib=""
  19829. ;;
  19830. *)
  19831. pthread_cflags="-D_REENTRANT"
  19832. pthread_lib="-lpthread"
  19833. ;;
  19834. esac
  19835. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19836. # Save the original compiler flags and libraries
  19837. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19838. # Add the pthread compiler flags and libraries
  19839. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19840. # Check to see if we have pthread support on this system
  19841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19842. $as_echo_n "checking for pthreads... " >&6; }
  19843. use_pthreads=no
  19844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19845. /* end confdefs.h. */
  19846. #include <pthread.h>
  19847. int
  19848. main ()
  19849. {
  19850. pthread_attr_t type;
  19851. pthread_attr_init(&type);
  19852. ;
  19853. return 0;
  19854. }
  19855. _ACEOF
  19856. if ac_fn_c_try_link "$LINENO"; then :
  19857. use_pthreads=yes
  19858. fi
  19859. rm -f core conftest.err conftest.$ac_objext \
  19860. conftest$ac_exeext conftest.$ac_ext
  19861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19862. $as_echo "$use_pthreads" >&6; }
  19863. # Restore the compiler flags and libraries
  19864. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19865. # Do futher testing if we have pthread support...
  19866. if test x$use_pthreads = xyes; then
  19867. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19868. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19870. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19871. # Save the original compiler flags and libraries
  19872. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19873. # Add the pthread compiler flags and libraries
  19874. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19875. # Check to see if recursive mutexes are available
  19876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19877. $as_echo_n "checking for recursive mutexes... " >&6; }
  19878. has_recursive_mutexes=no
  19879. if test x$has_recursive_mutexes = xno; then
  19880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19881. /* end confdefs.h. */
  19882. #define _GNU_SOURCE 1
  19883. #include <pthread.h>
  19884. int
  19885. main ()
  19886. {
  19887. pthread_mutexattr_t attr;
  19888. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19889. ;
  19890. return 0;
  19891. }
  19892. _ACEOF
  19893. if ac_fn_c_try_link "$LINENO"; then :
  19894. has_recursive_mutexes=yes
  19895. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19896. fi
  19897. rm -f core conftest.err conftest.$ac_objext \
  19898. conftest$ac_exeext conftest.$ac_ext
  19899. fi
  19900. if test x$has_recursive_mutexes = xno; then
  19901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19902. /* end confdefs.h. */
  19903. #define _GNU_SOURCE 1
  19904. #include <pthread.h>
  19905. int
  19906. main ()
  19907. {
  19908. pthread_mutexattr_t attr;
  19909. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19910. ;
  19911. return 0;
  19912. }
  19913. _ACEOF
  19914. if ac_fn_c_try_link "$LINENO"; then :
  19915. has_recursive_mutexes=yes
  19916. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19917. fi
  19918. rm -f core conftest.err conftest.$ac_objext \
  19919. conftest$ac_exeext conftest.$ac_ext
  19920. fi
  19921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19922. $as_echo "$has_recursive_mutexes" >&6; }
  19923. # Check to see if pthread semaphore support is missing
  19924. if test x$enable_pthread_sem = xyes; then
  19925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19926. $as_echo_n "checking for pthread semaphores... " >&6; }
  19927. have_pthread_sem=no
  19928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19929. /* end confdefs.h. */
  19930. #include <pthread.h>
  19931. #include <semaphore.h>
  19932. int
  19933. main ()
  19934. {
  19935. ;
  19936. return 0;
  19937. }
  19938. _ACEOF
  19939. if ac_fn_c_try_compile "$LINENO"; then :
  19940. have_pthread_sem=yes
  19941. fi
  19942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19944. $as_echo "$have_pthread_sem" >&6; }
  19945. fi
  19946. if test x$have_pthread_sem = xyes; then
  19947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19948. $as_echo_n "checking for sem_timedwait... " >&6; }
  19949. have_sem_timedwait=no
  19950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19951. /* end confdefs.h. */
  19952. #include <pthread.h>
  19953. #include <semaphore.h>
  19954. int
  19955. main ()
  19956. {
  19957. sem_timedwait(NULL, NULL);
  19958. ;
  19959. return 0;
  19960. }
  19961. _ACEOF
  19962. if ac_fn_c_try_link "$LINENO"; then :
  19963. have_sem_timedwait=yes
  19964. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19965. fi
  19966. rm -f core conftest.err conftest.$ac_objext \
  19967. conftest$ac_exeext conftest.$ac_ext
  19968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19969. $as_echo "$have_sem_timedwait" >&6; }
  19970. fi
  19971. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19972. "
  19973. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19974. have_pthread_np_h=yes
  19975. else
  19976. have_pthread_np_h=no
  19977. fi
  19978. if test x$have_pthread_np_h = xyes; then
  19979. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19980. fi
  19981. # Check to see if pthread naming is available
  19982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19983. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19985. /* end confdefs.h. */
  19986. /* Override any GCC internal prototype to avoid an error.
  19987. Use char because int might match the return type of a GCC
  19988. builtin and then its argument prototype would still apply. */
  19989. #ifdef __cplusplus
  19990. extern "C"
  19991. #endif
  19992. char pthread_setname_np ();
  19993. int
  19994. main ()
  19995. {
  19996. return pthread_setname_np ();
  19997. ;
  19998. return 0;
  19999. }
  20000. _ACEOF
  20001. if ac_fn_c_try_link "$LINENO"; then :
  20002. has_pthread_setname_np=yes
  20003. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20004. else
  20005. has_pthread_setname_np=no
  20006. fi
  20007. rm -f core conftest.err conftest.$ac_objext \
  20008. conftest$ac_exeext conftest.$ac_ext
  20009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20010. $as_echo "$has_pthread_setname_np" >&6; }
  20011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20012. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20014. /* end confdefs.h. */
  20015. /* Override any GCC internal prototype to avoid an error.
  20016. Use char because int might match the return type of a GCC
  20017. builtin and then its argument prototype would still apply. */
  20018. #ifdef __cplusplus
  20019. extern "C"
  20020. #endif
  20021. char pthread_set_name_np ();
  20022. int
  20023. main ()
  20024. {
  20025. return pthread_set_name_np ();
  20026. ;
  20027. return 0;
  20028. }
  20029. _ACEOF
  20030. if ac_fn_c_try_link "$LINENO"; then :
  20031. has_pthread_set_name_np=yes
  20032. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20033. else
  20034. has_pthread_set_name_np=no
  20035. fi
  20036. rm -f core conftest.err conftest.$ac_objext \
  20037. conftest$ac_exeext conftest.$ac_ext
  20038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20039. $as_echo "$has_pthread_set_name_np" >&6; }
  20040. # Restore the compiler flags and libraries
  20041. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20042. # Basic thread creation functions
  20043. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20044. # Semaphores
  20045. # We can fake these with mutexes and condition variables if necessary
  20046. if test x$have_pthread_sem = xyes; then
  20047. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20048. else
  20049. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20050. fi
  20051. # Mutexes
  20052. # We can fake these with semaphores if necessary
  20053. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20054. # Condition variables
  20055. # We can fake these with semaphores and mutexes if necessary
  20056. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20057. # Thread local storage
  20058. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20059. have_threads=yes
  20060. fi
  20061. fi
  20062. }
  20063. CheckWINDOWS()
  20064. {
  20065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20066. $as_echo_n "checking Windows compiler... " >&6; }
  20067. have_win32_gcc=no
  20068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20069. /* end confdefs.h. */
  20070. #include <windows.h>
  20071. int
  20072. main ()
  20073. {
  20074. ;
  20075. return 0;
  20076. }
  20077. _ACEOF
  20078. if ac_fn_c_try_compile "$LINENO"; then :
  20079. have_win32_gcc=yes
  20080. fi
  20081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20083. $as_echo "$have_win32_gcc" >&6; }
  20084. if test x$have_win32_gcc != xyes; then
  20085. as_fn_error $? "
  20086. *** Your compiler ($CC) does not produce Windows executables!
  20087. " "$LINENO" 5
  20088. fi
  20089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20090. $as_echo_n "checking Windows CE... " >&6; }
  20091. have_wince=no
  20092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20093. /* end confdefs.h. */
  20094. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20095. #error This is not Windows CE
  20096. #endif
  20097. int
  20098. main ()
  20099. {
  20100. ;
  20101. return 0;
  20102. }
  20103. _ACEOF
  20104. if ac_fn_c_try_compile "$LINENO"; then :
  20105. have_wince=yes
  20106. as_fn_error $? "
  20107. *** Sorry, Windows CE is no longer supported.
  20108. " "$LINENO" 5
  20109. fi
  20110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20112. $as_echo "$have_wince" >&6; }
  20113. # This fixes Windows stack alignment with newer GCC
  20114. CheckStackBoundary
  20115. }
  20116. CheckDIRECTX()
  20117. {
  20118. # Check whether --enable-directx was given.
  20119. if test "${enable_directx+set}" = set; then :
  20120. enableval=$enable_directx;
  20121. else
  20122. enable_directx=yes
  20123. fi
  20124. if test x$enable_directx = xyes; then
  20125. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20126. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20127. have_d3d=yes
  20128. fi
  20129. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20130. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20131. have_d3d11=yes
  20132. fi
  20133. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20134. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20135. have_ddraw=yes
  20136. fi
  20137. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20138. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20139. have_dsound=yes
  20140. fi
  20141. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20142. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20143. have_dinput=yes
  20144. fi
  20145. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20146. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20147. have_dxgi=yes
  20148. fi
  20149. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20150. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20151. have_xinput=yes
  20152. fi
  20153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20154. /* end confdefs.h. */
  20155. #include <windows.h>
  20156. #include <xinput.h>
  20157. XINPUT_GAMEPAD_EX x1;
  20158. int
  20159. main ()
  20160. {
  20161. ;
  20162. return 0;
  20163. }
  20164. _ACEOF
  20165. if ac_fn_c_try_compile "$LINENO"; then :
  20166. have_xinput_gamepadex=yes
  20167. fi
  20168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20170. /* end confdefs.h. */
  20171. #include <windows.h>
  20172. #include <xinput.h>
  20173. XINPUT_STATE_EX s1;
  20174. int
  20175. main ()
  20176. {
  20177. ;
  20178. return 0;
  20179. }
  20180. _ACEOF
  20181. if ac_fn_c_try_compile "$LINENO"; then :
  20182. have_xinput_stateex=yes
  20183. fi
  20184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20185. if test x$have_ddraw = xyes; then
  20186. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20187. fi
  20188. if test x$have_dinput = xyes; then
  20189. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20190. fi
  20191. if test x$have_dsound = xyes; then
  20192. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20193. fi
  20194. if test x$have_dxgi = xyes; then
  20195. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20196. fi
  20197. if test x$have_xinput = xyes; then
  20198. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20199. fi
  20200. if test x$have_xinput_gamepadex = xyes; then
  20201. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20202. fi
  20203. if test x$have_xinput_stateex = xyes; then
  20204. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20205. fi
  20206. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20207. # FIXME: ...so force it off for now.
  20208. case "$host" in
  20209. *-*-cygwin*)
  20210. have_dinput=false
  20211. ;;
  20212. esac
  20213. fi
  20214. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20215. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20216. have_wasapi=yes
  20217. fi
  20218. if test x$have_wasapi = xyes; then
  20219. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20220. fi
  20221. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20222. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20223. else
  20224. have_wasapi=no
  20225. fi
  20226. if test x$have_wasapi = xyes; then
  20227. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20228. fi
  20229. # Check whether --enable-wasapi was given.
  20230. if test "${enable_wasapi+set}" = set; then :
  20231. enableval=$enable_wasapi;
  20232. else
  20233. enable_wasapi=yes
  20234. fi
  20235. }
  20236. CheckDLOPEN()
  20237. {
  20238. # Check whether --enable-sdl-dlopen was given.
  20239. if test "${enable_sdl_dlopen+set}" = set; then :
  20240. enableval=$enable_sdl_dlopen;
  20241. else
  20242. enable_sdl_dlopen=yes
  20243. fi
  20244. if test x$enable_sdl_dlopen = xyes; then
  20245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20246. $as_echo_n "checking for dlopen... " >&6; }
  20247. have_dlopen=no
  20248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20249. /* end confdefs.h. */
  20250. #include <dlfcn.h>
  20251. int
  20252. main ()
  20253. {
  20254. void *handle = dlopen("", RTLD_NOW);
  20255. const char *loaderror = (char *) dlerror();
  20256. ;
  20257. return 0;
  20258. }
  20259. _ACEOF
  20260. if ac_fn_c_try_compile "$LINENO"; then :
  20261. have_dlopen=yes
  20262. fi
  20263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20265. $as_echo "$have_dlopen" >&6; }
  20266. if test x$have_dlopen = xyes; then
  20267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20268. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20269. if ${ac_cv_lib_c_dlopen+:} false; then :
  20270. $as_echo_n "(cached) " >&6
  20271. else
  20272. ac_check_lib_save_LIBS=$LIBS
  20273. LIBS="-lc $LIBS"
  20274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20275. /* end confdefs.h. */
  20276. /* Override any GCC internal prototype to avoid an error.
  20277. Use char because int might match the return type of a GCC
  20278. builtin and then its argument prototype would still apply. */
  20279. #ifdef __cplusplus
  20280. extern "C"
  20281. #endif
  20282. char dlopen ();
  20283. int
  20284. main ()
  20285. {
  20286. return dlopen ();
  20287. ;
  20288. return 0;
  20289. }
  20290. _ACEOF
  20291. if ac_fn_c_try_link "$LINENO"; then :
  20292. ac_cv_lib_c_dlopen=yes
  20293. else
  20294. ac_cv_lib_c_dlopen=no
  20295. fi
  20296. rm -f core conftest.err conftest.$ac_objext \
  20297. conftest$ac_exeext conftest.$ac_ext
  20298. LIBS=$ac_check_lib_save_LIBS
  20299. fi
  20300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20301. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20302. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20303. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20304. else
  20305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20306. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20307. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20308. $as_echo_n "(cached) " >&6
  20309. else
  20310. ac_check_lib_save_LIBS=$LIBS
  20311. LIBS="-ldl $LIBS"
  20312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20313. /* end confdefs.h. */
  20314. /* Override any GCC internal prototype to avoid an error.
  20315. Use char because int might match the return type of a GCC
  20316. builtin and then its argument prototype would still apply. */
  20317. #ifdef __cplusplus
  20318. extern "C"
  20319. #endif
  20320. char dlopen ();
  20321. int
  20322. main ()
  20323. {
  20324. return dlopen ();
  20325. ;
  20326. return 0;
  20327. }
  20328. _ACEOF
  20329. if ac_fn_c_try_link "$LINENO"; then :
  20330. ac_cv_lib_dl_dlopen=yes
  20331. else
  20332. ac_cv_lib_dl_dlopen=no
  20333. fi
  20334. rm -f core conftest.err conftest.$ac_objext \
  20335. conftest$ac_exeext conftest.$ac_ext
  20336. LIBS=$ac_check_lib_save_LIBS
  20337. fi
  20338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20339. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20340. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20342. else
  20343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20344. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20345. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20346. $as_echo_n "(cached) " >&6
  20347. else
  20348. ac_check_lib_save_LIBS=$LIBS
  20349. LIBS="-lltdl $LIBS"
  20350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20351. /* end confdefs.h. */
  20352. /* Override any GCC internal prototype to avoid an error.
  20353. Use char because int might match the return type of a GCC
  20354. builtin and then its argument prototype would still apply. */
  20355. #ifdef __cplusplus
  20356. extern "C"
  20357. #endif
  20358. char dlopen ();
  20359. int
  20360. main ()
  20361. {
  20362. return dlopen ();
  20363. ;
  20364. return 0;
  20365. }
  20366. _ACEOF
  20367. if ac_fn_c_try_link "$LINENO"; then :
  20368. ac_cv_lib_ltdl_dlopen=yes
  20369. else
  20370. ac_cv_lib_ltdl_dlopen=no
  20371. fi
  20372. rm -f core conftest.err conftest.$ac_objext \
  20373. conftest$ac_exeext conftest.$ac_ext
  20374. LIBS=$ac_check_lib_save_LIBS
  20375. fi
  20376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20377. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20378. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20379. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20380. fi
  20381. fi
  20382. fi
  20383. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20384. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20385. have_loadso=yes
  20386. fi
  20387. fi
  20388. }
  20389. CheckUSBHID()
  20390. {
  20391. case "$host" in
  20392. *-*-*bsd*)
  20393. if test x$enable_joystick = xyes; then
  20394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20395. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20396. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20397. $as_echo_n "(cached) " >&6
  20398. else
  20399. ac_check_lib_save_LIBS=$LIBS
  20400. LIBS="-lusbhid $LIBS"
  20401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20402. /* end confdefs.h. */
  20403. /* Override any GCC internal prototype to avoid an error.
  20404. Use char because int might match the return type of a GCC
  20405. builtin and then its argument prototype would still apply. */
  20406. #ifdef __cplusplus
  20407. extern "C"
  20408. #endif
  20409. char hid_init ();
  20410. int
  20411. main ()
  20412. {
  20413. return hid_init ();
  20414. ;
  20415. return 0;
  20416. }
  20417. _ACEOF
  20418. if ac_fn_c_try_link "$LINENO"; then :
  20419. ac_cv_lib_usbhid_hid_init=yes
  20420. else
  20421. ac_cv_lib_usbhid_hid_init=no
  20422. fi
  20423. rm -f core conftest.err conftest.$ac_objext \
  20424. conftest$ac_exeext conftest.$ac_ext
  20425. LIBS=$ac_check_lib_save_LIBS
  20426. fi
  20427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20428. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20429. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20430. have_libusbhid=yes
  20431. fi
  20432. if test x$have_libusbhid = xyes; then
  20433. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20434. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20435. USB_CFLAGS="-DHAVE_USBHID_H"
  20436. fi
  20437. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20438. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20439. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20440. fi
  20441. USB_LIBS="$USB_LIBS -lusbhid"
  20442. else
  20443. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20444. if test "x$ac_cv_header_usb_h" = xyes; then :
  20445. USB_CFLAGS="-DHAVE_USB_H"
  20446. fi
  20447. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20448. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20449. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20450. fi
  20451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20452. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20453. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20454. $as_echo_n "(cached) " >&6
  20455. else
  20456. ac_check_lib_save_LIBS=$LIBS
  20457. LIBS="-lusb $LIBS"
  20458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20459. /* end confdefs.h. */
  20460. /* Override any GCC internal prototype to avoid an error.
  20461. Use char because int might match the return type of a GCC
  20462. builtin and then its argument prototype would still apply. */
  20463. #ifdef __cplusplus
  20464. extern "C"
  20465. #endif
  20466. char hid_init ();
  20467. int
  20468. main ()
  20469. {
  20470. return hid_init ();
  20471. ;
  20472. return 0;
  20473. }
  20474. _ACEOF
  20475. if ac_fn_c_try_link "$LINENO"; then :
  20476. ac_cv_lib_usb_hid_init=yes
  20477. else
  20478. ac_cv_lib_usb_hid_init=no
  20479. fi
  20480. rm -f core conftest.err conftest.$ac_objext \
  20481. conftest$ac_exeext conftest.$ac_ext
  20482. LIBS=$ac_check_lib_save_LIBS
  20483. fi
  20484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20485. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20486. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20487. USB_LIBS="$USB_LIBS -lusb"
  20488. fi
  20489. fi
  20490. save_CFLAGS="$CFLAGS"
  20491. CFLAGS="$CFLAGS $USB_CFLAGS"
  20492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20493. $as_echo_n "checking for usbhid... " >&6; }
  20494. have_usbhid=no
  20495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20496. /* end confdefs.h. */
  20497. #include <sys/types.h>
  20498. #if defined(HAVE_USB_H)
  20499. #include <usb.h>
  20500. #endif
  20501. #ifdef __DragonFly__
  20502. # include <bus/usb/usb.h>
  20503. # include <bus/usb/usbhid.h>
  20504. #else
  20505. # include <dev/usb/usb.h>
  20506. # include <dev/usb/usbhid.h>
  20507. #endif
  20508. #if defined(HAVE_USBHID_H)
  20509. #include <usbhid.h>
  20510. #elif defined(HAVE_LIBUSB_H)
  20511. #include <libusb.h>
  20512. #elif defined(HAVE_LIBUSBHID_H)
  20513. #include <libusbhid.h>
  20514. #endif
  20515. int
  20516. main ()
  20517. {
  20518. struct report_desc *repdesc;
  20519. struct usb_ctl_report *repbuf;
  20520. hid_kind_t hidkind;
  20521. ;
  20522. return 0;
  20523. }
  20524. _ACEOF
  20525. if ac_fn_c_try_compile "$LINENO"; then :
  20526. have_usbhid=yes
  20527. fi
  20528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20530. $as_echo "$have_usbhid" >&6; }
  20531. if test x$have_usbhid = xyes; then
  20532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20533. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20534. have_usbhid_ucr_data=no
  20535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20536. /* end confdefs.h. */
  20537. #include <sys/types.h>
  20538. #if defined(HAVE_USB_H)
  20539. #include <usb.h>
  20540. #endif
  20541. #ifdef __DragonFly__
  20542. # include <bus/usb/usb.h>
  20543. # include <bus/usb/usbhid.h>
  20544. #else
  20545. # include <dev/usb/usb.h>
  20546. # include <dev/usb/usbhid.h>
  20547. #endif
  20548. #if defined(HAVE_USBHID_H)
  20549. #include <usbhid.h>
  20550. #elif defined(HAVE_LIBUSB_H)
  20551. #include <libusb.h>
  20552. #elif defined(HAVE_LIBUSBHID_H)
  20553. #include <libusbhid.h>
  20554. #endif
  20555. int
  20556. main ()
  20557. {
  20558. struct usb_ctl_report buf;
  20559. if (buf.ucr_data) { }
  20560. ;
  20561. return 0;
  20562. }
  20563. _ACEOF
  20564. if ac_fn_c_try_compile "$LINENO"; then :
  20565. have_usbhid_ucr_data=yes
  20566. fi
  20567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20568. if test x$have_usbhid_ucr_data = xyes; then
  20569. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20570. fi
  20571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20572. $as_echo "$have_usbhid_ucr_data" >&6; }
  20573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20574. $as_echo_n "checking for new usbhid API... " >&6; }
  20575. have_usbhid_new=no
  20576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20577. /* end confdefs.h. */
  20578. #include <sys/types.h>
  20579. #if defined(HAVE_USB_H)
  20580. #include <usb.h>
  20581. #endif
  20582. #ifdef __DragonFly__
  20583. #include <bus/usb/usb.h>
  20584. #include <bus/usb/usbhid.h>
  20585. #else
  20586. #include <dev/usb/usb.h>
  20587. #include <dev/usb/usbhid.h>
  20588. #endif
  20589. #if defined(HAVE_USBHID_H)
  20590. #include <usbhid.h>
  20591. #elif defined(HAVE_LIBUSB_H)
  20592. #include <libusb.h>
  20593. #elif defined(HAVE_LIBUSBHID_H)
  20594. #include <libusbhid.h>
  20595. #endif
  20596. int
  20597. main ()
  20598. {
  20599. report_desc_t d;
  20600. hid_start_parse(d, 1, 1);
  20601. ;
  20602. return 0;
  20603. }
  20604. _ACEOF
  20605. if ac_fn_c_try_compile "$LINENO"; then :
  20606. have_usbhid_new=yes
  20607. fi
  20608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20609. if test x$have_usbhid_new = xyes; then
  20610. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20611. fi
  20612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20613. $as_echo "$have_usbhid_new" >&6; }
  20614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20615. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20616. have_machine_joystick=no
  20617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20618. /* end confdefs.h. */
  20619. #include <machine/joystick.h>
  20620. int
  20621. main ()
  20622. {
  20623. struct joystick t;
  20624. ;
  20625. return 0;
  20626. }
  20627. _ACEOF
  20628. if ac_fn_c_try_compile "$LINENO"; then :
  20629. have_machine_joystick=yes
  20630. fi
  20631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20632. if test x$have_machine_joystick = xyes; then
  20633. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20634. fi
  20635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20636. $as_echo "$have_machine_joystick" >&6; }
  20637. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20638. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20639. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20640. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20641. have_joystick=yes
  20642. fi
  20643. CFLAGS="$save_CFLAGS"
  20644. fi
  20645. ;;
  20646. esac
  20647. }
  20648. CheckHIDAPI()
  20649. {
  20650. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20651. # so we'll just use libusb when it's available.
  20652. case "$host" in
  20653. # libusb does not support iOS
  20654. arm*-apple-darwin* | *-ios-* )
  20655. skiplibusb=yes
  20656. ;;
  20657. # On the other hand, *BSD specifically uses libusb only
  20658. *-*-*bsd* )
  20659. onlylibusb=yes
  20660. ;;
  20661. esac
  20662. # Check whether --enable-hidapi was given.
  20663. if test "${enable_hidapi+set}" = set; then :
  20664. enableval=$enable_hidapi;
  20665. else
  20666. enable_hidapi=no
  20667. fi
  20668. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20669. if test x$skiplibusb = xyes; then
  20670. hidapi_support=yes
  20671. else
  20672. pkg_failed=no
  20673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20674. $as_echo_n "checking for LIBUSB... " >&6; }
  20675. if test -n "$LIBUSB_CFLAGS"; then
  20676. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20677. elif test -n "$PKG_CONFIG"; then
  20678. if test -n "$PKG_CONFIG" && \
  20679. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20680. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20681. ac_status=$?
  20682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20683. test $ac_status = 0; }; then
  20684. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20685. else
  20686. pkg_failed=yes
  20687. fi
  20688. else
  20689. pkg_failed=untried
  20690. fi
  20691. if test -n "$LIBUSB_LIBS"; then
  20692. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20693. elif test -n "$PKG_CONFIG"; then
  20694. if test -n "$PKG_CONFIG" && \
  20695. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20696. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20697. ac_status=$?
  20698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20699. test $ac_status = 0; }; then
  20700. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20701. else
  20702. pkg_failed=yes
  20703. fi
  20704. else
  20705. pkg_failed=untried
  20706. fi
  20707. if test $pkg_failed = yes; then
  20708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20709. $as_echo "no" >&6; }
  20710. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20711. _pkg_short_errors_supported=yes
  20712. else
  20713. _pkg_short_errors_supported=no
  20714. fi
  20715. if test $_pkg_short_errors_supported = yes; then
  20716. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20717. else
  20718. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20719. fi
  20720. # Put the nasty error message in config.log where it belongs
  20721. echo "$LIBUSB_PKG_ERRORS" >&5
  20722. have_libusb=no
  20723. elif test $pkg_failed = untried; then
  20724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20725. $as_echo "no" >&6; }
  20726. have_libusb=no
  20727. else
  20728. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20729. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20731. $as_echo "yes" >&6; }
  20732. have_libusb=yes
  20733. fi
  20734. save_CFLAGS="$CFLAGS"
  20735. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20736. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20737. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20738. have_libusb_h=yes
  20739. fi
  20740. CFLAGS="$save_CFLAGS"
  20741. if test x$have_libusb_h = xyes; then
  20742. hidapi_support=yes
  20743. elif test x$onlylibusb = xyes; then
  20744. hidapi_support=no
  20745. else
  20746. hidapi_support=yes
  20747. fi
  20748. fi
  20749. if test x$hidapi_support = xyes; then
  20750. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20751. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20752. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20753. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20754. if test x$have_libusb_h = xyes; then
  20755. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20756. if test x$onlylibusb = xyes; then
  20757. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20758. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20759. else
  20760. if test x$have_loadso != xyes; then
  20761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20762. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20763. fi
  20764. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20765. libusb_lib=""
  20766. case "$host" in
  20767. *-*-darwin* )
  20768. libusb_lib="libusb-1.0.0.dylib"
  20769. ;;
  20770. *-*-cygwin* | *-*-mingw32* )
  20771. libusb_lib="libusb-1.0.dll"
  20772. ;;
  20773. esac
  20774. if test x$libusb_lib = x; then
  20775. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20776. fi
  20777. cat >>confdefs.h <<_ACEOF
  20778. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20779. _ACEOF
  20780. fi
  20781. fi
  20782. fi
  20783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20784. $as_echo_n "checking for hidapi support... " >&6; }
  20785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20786. $as_echo "$hidapi_support" >&6; }
  20787. fi
  20788. }
  20789. CheckClockGettime()
  20790. {
  20791. # Check whether --enable-clock_gettime was given.
  20792. if test "${enable_clock_gettime+set}" = set; then :
  20793. enableval=$enable_clock_gettime;
  20794. else
  20795. enable_clock_gettime=yes
  20796. fi
  20797. if test x$enable_clock_gettime = xyes; then
  20798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20799. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20800. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20801. $as_echo_n "(cached) " >&6
  20802. else
  20803. ac_check_lib_save_LIBS=$LIBS
  20804. LIBS="-lrt $LIBS"
  20805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20806. /* end confdefs.h. */
  20807. /* Override any GCC internal prototype to avoid an error.
  20808. Use char because int might match the return type of a GCC
  20809. builtin and then its argument prototype would still apply. */
  20810. #ifdef __cplusplus
  20811. extern "C"
  20812. #endif
  20813. char clock_gettime ();
  20814. int
  20815. main ()
  20816. {
  20817. return clock_gettime ();
  20818. ;
  20819. return 0;
  20820. }
  20821. _ACEOF
  20822. if ac_fn_c_try_link "$LINENO"; then :
  20823. ac_cv_lib_rt_clock_gettime=yes
  20824. else
  20825. ac_cv_lib_rt_clock_gettime=no
  20826. fi
  20827. rm -f core conftest.err conftest.$ac_objext \
  20828. conftest$ac_exeext conftest.$ac_ext
  20829. LIBS=$ac_check_lib_save_LIBS
  20830. fi
  20831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20832. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20833. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20834. have_clock_gettime=yes
  20835. fi
  20836. if test x$have_clock_gettime = xyes; then
  20837. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20838. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20839. else
  20840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20841. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20842. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20843. $as_echo_n "(cached) " >&6
  20844. else
  20845. ac_check_lib_save_LIBS=$LIBS
  20846. LIBS="-lc $LIBS"
  20847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20848. /* end confdefs.h. */
  20849. /* Override any GCC internal prototype to avoid an error.
  20850. Use char because int might match the return type of a GCC
  20851. builtin and then its argument prototype would still apply. */
  20852. #ifdef __cplusplus
  20853. extern "C"
  20854. #endif
  20855. char clock_gettime ();
  20856. int
  20857. main ()
  20858. {
  20859. return clock_gettime ();
  20860. ;
  20861. return 0;
  20862. }
  20863. _ACEOF
  20864. if ac_fn_c_try_link "$LINENO"; then :
  20865. ac_cv_lib_c_clock_gettime=yes
  20866. else
  20867. ac_cv_lib_c_clock_gettime=no
  20868. fi
  20869. rm -f core conftest.err conftest.$ac_objext \
  20870. conftest$ac_exeext conftest.$ac_ext
  20871. LIBS=$ac_check_lib_save_LIBS
  20872. fi
  20873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20874. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20875. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20876. have_clock_gettime=yes
  20877. fi
  20878. if test x$have_clock_gettime = xyes; then
  20879. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20881. fi
  20882. fi
  20883. fi
  20884. }
  20885. CheckLinuxVersion()
  20886. {
  20887. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20888. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20889. have_linux_version_h=yes
  20890. fi
  20891. if test x$have_linux_version_h = xyes; then
  20892. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20893. fi
  20894. }
  20895. CheckRPATH()
  20896. {
  20897. # Check whether --enable-rpath was given.
  20898. if test "${enable_rpath+set}" = set; then :
  20899. enableval=$enable_rpath;
  20900. else
  20901. enable_rpath=yes
  20902. fi
  20903. }
  20904. CheckEventSignals()
  20905. {
  20906. # Check whether --enable-backgrounding-signal was given.
  20907. if test "${enable_backgrounding_signal+set}" = set; then :
  20908. enableval=$enable_backgrounding_signal;
  20909. else
  20910. enable_backgrounding_signal=no
  20911. fi
  20912. if test x$enable_backgrounding_signal != xno; then
  20913. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20914. fi
  20915. # Check whether --enable-foregrounding-signal was given.
  20916. if test "${enable_foregrounding_signal+set}" = set; then :
  20917. enableval=$enable_foregrounding_signal;
  20918. else
  20919. enable_foregrounding_signal=no
  20920. fi
  20921. if test x$enable_foregrounding_signal != xno; then
  20922. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20923. fi
  20924. }
  20925. CheckWarnAll
  20926. CheckNoStrictAliasing
  20927. CheckEventSignals
  20928. case "$host" in
  20929. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20930. case "$host" in
  20931. *-*-android*)
  20932. # Android
  20933. ARCH=android
  20934. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20935. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20936. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20937. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20938. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20939. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20940. if test x$enable_video = xyes; then
  20941. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20942. # FIXME: confdefs? Not AC_DEFINE?
  20943. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20944. SUMMARY_video="${SUMMARY_video} android"
  20945. fi
  20946. ;;
  20947. *-*-linux*) ARCH=linux ;;
  20948. *-*-uclinux*) ARCH=linux ;;
  20949. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20950. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20951. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20952. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20953. *-*-bsdi*) ARCH=bsdi ;;
  20954. *-*-freebsd*) ARCH=freebsd ;;
  20955. *-*-dragonfly*) ARCH=freebsd ;;
  20956. *-*-netbsd*) ARCH=netbsd ;;
  20957. *-*-openbsd*) ARCH=openbsd ;;
  20958. *-*-sysv5*) ARCH=sysv5 ;;
  20959. *-*-solaris*) ARCH=solaris ;;
  20960. *-*-hpux*) ARCH=hpux ;;
  20961. *-*-aix*) ARCH=aix ;;
  20962. *-*-minix*) ARCH=minix ;;
  20963. *-*-nto*) ARCH=nto
  20964. CheckQNXVideo
  20965. ;;
  20966. esac
  20967. CheckVisibilityHidden
  20968. CheckDeclarationAfterStatement
  20969. CheckDummyVideo
  20970. CheckDiskAudio
  20971. CheckDummyAudio
  20972. CheckDLOPEN
  20973. CheckARM
  20974. CheckNEON
  20975. CheckOSS
  20976. CheckALSA
  20977. CheckPulseAudio
  20978. CheckJACK
  20979. CheckARTSC
  20980. CheckESD
  20981. CheckNAS
  20982. CheckSNDIO
  20983. CheckFusionSound
  20984. CheckLibSampleRate
  20985. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20986. CheckRPI
  20987. CheckX11
  20988. CheckDirectFB
  20989. CheckKMSDRM
  20990. CheckOpenGLX11
  20991. CheckOpenGLESX11
  20992. CheckVulkan
  20993. CheckWayland
  20994. CheckInputEvents
  20995. CheckLibUDev
  20996. CheckDBus
  20997. CheckIME
  20998. CheckIBus
  20999. CheckFcitx
  21000. case $ARCH in
  21001. linux)
  21002. CheckInputKD
  21003. ;;
  21004. esac
  21005. CheckTslib
  21006. CheckUSBHID
  21007. CheckHIDAPI
  21008. CheckPTHREAD
  21009. CheckClockGettime
  21010. CheckLinuxVersion
  21011. CheckRPATH
  21012. CheckVivanteVideo
  21013. # Set up files for the audio library
  21014. if test x$enable_audio = xyes; then
  21015. case $ARCH in
  21016. sysv5|solaris|hpux)
  21017. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21018. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21019. SUMMARY_audio="${SUMMARY_audio} sun"
  21020. have_audio=yes
  21021. ;;
  21022. netbsd) # Don't use this on OpenBSD, it's busted.
  21023. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21024. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21025. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21026. have_audio=yes
  21027. ;;
  21028. aix)
  21029. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21030. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21031. SUMMARY_audio="${SUMMARY_audio} paudio"
  21032. have_audio=yes
  21033. ;;
  21034. android)
  21035. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21036. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21037. SUMMARY_audio="${SUMMARY_audio} android"
  21038. have_audio=yes
  21039. ;;
  21040. nto)
  21041. CheckQNXAudio
  21042. ;;
  21043. esac
  21044. fi
  21045. # Set up files for the joystick library
  21046. if test x$enable_joystick = xyes; then
  21047. case $ARCH in
  21048. linux)
  21049. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21050. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21051. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21052. have_joystick=yes
  21053. ;;
  21054. android)
  21055. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21056. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21057. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21058. have_joystick=yes
  21059. ;;
  21060. esac
  21061. fi
  21062. # Set up files for the haptic library
  21063. if test x$enable_haptic = xyes; then
  21064. case $ARCH in
  21065. linux)
  21066. if test x$use_input_events = xyes; then
  21067. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21068. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21069. have_haptic=yes
  21070. fi
  21071. ;;
  21072. android)
  21073. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21074. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21075. have_haptic=yes
  21076. ;;
  21077. esac
  21078. fi
  21079. # Set up files for the sensor library
  21080. if test x$enable_sensor = xyes; then
  21081. case $ARCH in
  21082. android)
  21083. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21084. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21085. have_sensor=yes
  21086. ;;
  21087. esac
  21088. fi
  21089. # Set up files for the power library
  21090. if test x$enable_power = xyes; then
  21091. case $ARCH in
  21092. linux)
  21093. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21094. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21095. have_power=yes
  21096. ;;
  21097. android)
  21098. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21099. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21100. have_power=yes
  21101. ;;
  21102. esac
  21103. fi
  21104. # Set up files for the filesystem library
  21105. if test x$enable_filesystem = xyes; then
  21106. case $ARCH in
  21107. android)
  21108. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21109. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21110. have_filesystem=yes
  21111. ;;
  21112. *)
  21113. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21114. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21115. have_filesystem=yes
  21116. ;;
  21117. esac
  21118. fi
  21119. # Set up files for the timer library
  21120. if test x$enable_timers = xyes; then
  21121. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21122. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21123. have_timers=yes
  21124. fi
  21125. # Set up files for udev hotplugging support
  21126. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21127. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21128. fi
  21129. # Set up files for evdev input
  21130. if test x$use_input_events = xyes; then
  21131. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21132. fi
  21133. # Set up other core UNIX files
  21134. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21135. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21136. ;;
  21137. *-*-cygwin* | *-*-mingw32*)
  21138. ARCH=win32
  21139. if test "$build" != "$host"; then # cross-compiling
  21140. # Default cross-compile location
  21141. ac_default_prefix=/usr/local/cross-tools/$host
  21142. else
  21143. # Look for the location of the tools and install there
  21144. if test "$BUILD_PREFIX" != ""; then
  21145. ac_default_prefix=$BUILD_PREFIX
  21146. fi
  21147. fi
  21148. CheckDeclarationAfterStatement
  21149. CheckDummyVideo
  21150. CheckDiskAudio
  21151. CheckDummyAudio
  21152. CheckWINDOWS
  21153. CheckWINDOWSGL
  21154. CheckWINDOWSGLES
  21155. CheckVulkan
  21156. CheckDIRECTX
  21157. CheckHIDAPI
  21158. # Set up the core platform files
  21159. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21160. # Set up files for the video library
  21161. if test x$enable_video = xyes; then
  21162. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21163. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21164. have_video=yes
  21165. # Check whether --enable-render-d3d was given.
  21166. if test "${enable_render_d3d+set}" = set; then :
  21167. enableval=$enable_render_d3d;
  21168. else
  21169. enable_render_d3d=yes
  21170. fi
  21171. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21172. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21173. SUMMARY_video="${SUMMARY_video} d3d9"
  21174. fi
  21175. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21176. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21177. SUMMARY_video="${SUMMARY_video} d3d11"
  21178. fi
  21179. fi
  21180. # Set up files for the audio library
  21181. if test x$enable_audio = xyes; then
  21182. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21183. SUMMARY_audio="${SUMMARY_audio} winmm"
  21184. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21185. if test x$have_dsound = xyes; then
  21186. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21187. SUMMARY_audio="${SUMMARY_audio} directsound"
  21188. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21189. fi
  21190. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21191. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21192. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21193. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21194. fi
  21195. have_audio=yes
  21196. fi
  21197. # Set up files for the joystick library
  21198. if test x$enable_joystick = xyes; then
  21199. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21200. if test x$have_xinput = xyes; then
  21201. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21202. fi
  21203. if test x$have_dinput = xyes; then
  21204. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21205. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21206. fi
  21207. else
  21208. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21209. fi
  21210. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21211. have_joystick=yes
  21212. fi
  21213. if test x$enable_haptic = xyes; then
  21214. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21215. if test x$have_xinput = xyes; then
  21216. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21217. fi
  21218. if test x$have_dinput = xyes; then
  21219. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21220. fi
  21221. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21222. have_haptic=yes
  21223. fi
  21224. fi
  21225. if test x$enable_power = xyes; then
  21226. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21227. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21228. have_power=yes
  21229. fi
  21230. if test x$enable_filesystem = xyes; then
  21231. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21232. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21233. have_filesystem=yes
  21234. fi
  21235. # Set up files for the thread library
  21236. if test x$enable_threads = xyes; then
  21237. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21238. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21239. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21240. have_threads=yes
  21241. fi
  21242. # Set up files for the timer library
  21243. if test x$enable_timers = xyes; then
  21244. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21245. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21246. have_timers=yes
  21247. fi
  21248. # Set up files for the shared object loading library
  21249. if test x$enable_loadso = xyes; then
  21250. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21251. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21252. have_loadso=yes
  21253. fi
  21254. # Set up the system libraries we need
  21255. if test -f /lib/w32api/libuuid.a; then
  21256. LIBUUID=/lib/w32api/libuuid.a
  21257. else
  21258. LIBUUID=-luuid
  21259. fi
  21260. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21261. # The Windows platform requires special setup
  21262. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21263. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21264. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21265. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21266. # Check to see if this is a mingw or cygwin build
  21267. have_mingw32=
  21268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21269. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21270. if ${ac_cv_lib_mingw32_main+:} false; then :
  21271. $as_echo_n "(cached) " >&6
  21272. else
  21273. ac_check_lib_save_LIBS=$LIBS
  21274. LIBS="-lmingw32 $LIBS"
  21275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21276. /* end confdefs.h. */
  21277. int
  21278. main ()
  21279. {
  21280. return main ();
  21281. ;
  21282. return 0;
  21283. }
  21284. _ACEOF
  21285. if ac_fn_c_try_link "$LINENO"; then :
  21286. ac_cv_lib_mingw32_main=yes
  21287. else
  21288. ac_cv_lib_mingw32_main=no
  21289. fi
  21290. rm -f core conftest.err conftest.$ac_objext \
  21291. conftest$ac_exeext conftest.$ac_ext
  21292. LIBS=$ac_check_lib_save_LIBS
  21293. fi
  21294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21295. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21296. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21297. have_mingw32=yes
  21298. fi
  21299. if test x$have_mingw32 = xyes; then
  21300. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21301. else
  21302. SDL_LIBS="-lcygwin $SDL_LIBS"
  21303. fi
  21304. ;;
  21305. *-*-beos*)
  21306. as_fn_error $? "
  21307. *** BeOS support has been removed as of SDL 2.0.2.
  21308. " "$LINENO" 5
  21309. ;;
  21310. *-*-haiku*)
  21311. ARCH=haiku
  21312. ac_default_prefix=/boot/system
  21313. CheckDummyVideo
  21314. CheckDiskAudio
  21315. CheckDummyAudio
  21316. CheckDLOPEN
  21317. CheckHaikuVideo
  21318. CheckHaikuGL
  21319. CheckPTHREAD
  21320. # Set up files for the audio library
  21321. if test x$enable_audio = xyes; then
  21322. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21323. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21324. SUMMARY_audio="${SUMMARY_audio} haiku"
  21325. have_audio=yes
  21326. fi
  21327. # Set up files for the joystick library
  21328. if test x$enable_joystick = xyes; then
  21329. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21330. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21331. have_joystick=yes
  21332. fi
  21333. # Set up files for the timer library
  21334. if test x$enable_timers = xyes; then
  21335. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21336. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21337. have_timers=yes
  21338. fi
  21339. # Set up files for the system power library
  21340. if test x$enable_power = xyes; then
  21341. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21342. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21343. have_power=yes
  21344. fi
  21345. # Set up files for the system filesystem library
  21346. if test x$enable_filesystem = xyes; then
  21347. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21348. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21349. have_filesystem=yes
  21350. fi
  21351. # The Haiku platform requires special setup.
  21352. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21353. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21354. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21355. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21356. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21358. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21359. if eval \${$as_ac_File+:} false; then :
  21360. $as_echo_n "(cached) " >&6
  21361. else
  21362. test "$cross_compiling" = yes &&
  21363. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21364. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21365. eval "$as_ac_File=yes"
  21366. else
  21367. eval "$as_ac_File=no"
  21368. fi
  21369. fi
  21370. eval ac_res=\$$as_ac_File
  21371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21372. $as_echo "$ac_res" >&6; }
  21373. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21374. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21375. else
  21376. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21377. fi
  21378. ;;
  21379. arm*-apple-darwin*|*-ios-*)
  21380. ARCH=ios
  21381. CheckVisibilityHidden
  21382. CheckDeclarationAfterStatement
  21383. CheckDummyVideo
  21384. CheckDiskAudio
  21385. CheckDummyAudio
  21386. CheckDLOPEN
  21387. CheckMETAL
  21388. CheckVulkan
  21389. CheckPTHREAD
  21390. # Set up files for the audio library
  21391. if test x$enable_audio = xyes; then
  21392. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21393. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21394. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21395. have_audio=yes
  21396. fi
  21397. # Set up files for the joystick library
  21398. if test x$enable_joystick = xyes; then
  21399. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21400. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21401. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21402. have_joystick=yes
  21403. fi
  21404. # Set up files for the haptic library
  21405. #if test x$enable_haptic = xyes; then
  21406. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21407. # have_haptic=yes
  21408. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21409. #fi
  21410. # Set up files for the sensor library
  21411. if test x$enable_sensor = xyes; then
  21412. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21413. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21414. have_sensor=yes
  21415. fi
  21416. # Set up files for the power library
  21417. if test x$enable_power = xyes; then
  21418. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21419. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21420. have_power=yes
  21421. fi
  21422. # Set up files for the filesystem library
  21423. if test x$enable_filesystem = xyes; then
  21424. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21425. have_filesystem=yes
  21426. fi
  21427. # Set up additional files for the file library
  21428. if test x$enable_file = xyes; then
  21429. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21430. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21431. fi
  21432. # Set up files for the timer library
  21433. if test x$enable_timers = xyes; then
  21434. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21435. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21436. have_timers=yes
  21437. fi
  21438. # Set up other core UNIX files
  21439. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21440. # The iOS platform requires special setup.
  21441. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21442. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21443. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21444. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21445. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21446. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21447. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21448. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21449. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21451. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21452. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21453. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21454. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21456. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21458. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21459. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21460. fi
  21461. ;;
  21462. *-*-darwin* )
  21463. # This could be either full "Mac OS X", or plain "Darwin" which is
  21464. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21465. # Next line is broken, and a few files below require Mac OS X (full)
  21466. ARCH=macosx
  21467. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21468. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21469. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21470. CheckVisibilityHidden
  21471. CheckDeclarationAfterStatement
  21472. CheckDummyVideo
  21473. CheckDiskAudio
  21474. CheckDummyAudio
  21475. CheckDLOPEN
  21476. CheckCOCOA
  21477. CheckMETAL
  21478. CheckX11
  21479. CheckMacGL
  21480. CheckMacGLES
  21481. CheckOpenGLX11
  21482. CheckVulkan
  21483. CheckPTHREAD
  21484. CheckHIDAPI
  21485. # Set up files for the audio library
  21486. if test x$enable_audio = xyes; then
  21487. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21488. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21489. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21490. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21491. have_audio=yes
  21492. fi
  21493. # Set up files for the joystick library
  21494. if test x$enable_joystick = xyes; then
  21495. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21496. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21497. have_joystick=yes
  21498. fi
  21499. # Set up files for the haptic library
  21500. if test x$enable_haptic = xyes; then
  21501. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21502. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21503. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21504. have_haptic=yes
  21505. fi
  21506. # Set up files for the power library
  21507. if test x$enable_power = xyes; then
  21508. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21509. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21510. have_power=yes
  21511. fi
  21512. # Set up files for the filesystem library
  21513. if test x$enable_filesystem = xyes; then
  21514. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21515. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21516. have_filesystem=yes
  21517. fi
  21518. # Set up files for the timer library
  21519. if test x$enable_timers = xyes; then
  21520. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21521. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21522. have_timers=yes
  21523. fi
  21524. # Set up additional files for the file library
  21525. if test x$enable_file = xyes; then
  21526. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21527. fi
  21528. # Set up other core UNIX files
  21529. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21530. # The Mac OS X platform requires special setup.
  21531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21532. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21533. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21534. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21535. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21536. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21537. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21538. fi
  21539. ;;
  21540. *-nacl|*-pnacl)
  21541. ARCH=nacl
  21542. CheckNativeClient
  21543. CheckDummyAudio
  21544. CheckDummyVideo
  21545. CheckInputEvents
  21546. CheckPTHREAD
  21547. # Set up files for the timer library
  21548. if test x$enable_timers = xyes; then
  21549. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21550. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21551. have_timers=yes
  21552. fi
  21553. if test x$enable_filesystem = xyes; then
  21554. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21555. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21556. have_filesystem=yes
  21557. fi
  21558. ;;
  21559. *-*-emscripten* )
  21560. if test x$enable_video = xyes; then
  21561. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21562. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21563. have_video=yes
  21564. SUMMARY_video="${SUMMARY_video} emscripten"
  21565. fi
  21566. if test x$enable_audio = xyes; then
  21567. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21568. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21569. have_audio=yes
  21570. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21571. fi
  21572. CheckVisibilityHidden
  21573. CheckDeclarationAfterStatement
  21574. CheckDummyVideo
  21575. CheckDiskAudio
  21576. CheckDummyAudio
  21577. CheckDLOPEN
  21578. CheckClockGettime
  21579. CheckEmscriptenGLES
  21580. # Set up files for the power library
  21581. if test x$enable_power = xyes; then
  21582. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21583. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21584. have_power=yes
  21585. fi
  21586. # Set up files for the power library
  21587. if test x$enable_joystick = xyes; then
  21588. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21589. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21590. have_joystick=yes
  21591. fi
  21592. # Set up files for the filesystem library
  21593. if test x$enable_filesystem = xyes; then
  21594. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21595. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21596. have_filesystem=yes
  21597. fi
  21598. # Set up files for the timer library
  21599. if test x$enable_timers = xyes; then
  21600. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21601. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21602. have_timers=yes
  21603. fi
  21604. ;;
  21605. *-*-riscos*)
  21606. ARCH=riscos
  21607. CheckVisibilityHidden
  21608. CheckDeclarationAfterStatement
  21609. CheckDummyVideo
  21610. CheckDiskAudio
  21611. CheckDummyAudio
  21612. CheckDLOPEN
  21613. CheckOSS
  21614. CheckPTHREAD
  21615. CheckClockGettime
  21616. # Set up files for the timer library
  21617. if test x$enable_timers = xyes; then
  21618. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21619. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21620. have_timers=yes
  21621. fi
  21622. ;;
  21623. *)
  21624. as_fn_error $? "
  21625. *** Unsupported host: Please add to configure.ac
  21626. " "$LINENO" 5
  21627. ;;
  21628. esac
  21629. # Check whether to install sdl2-config
  21630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21631. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21632. # Check whether --enable-sdl2-config was given.
  21633. if test "${enable_sdl2_config+set}" = set; then :
  21634. enableval=$enable_sdl2_config; case "${enableval}" in
  21635. yes) enable_sdl2_config="TRUE" ;;
  21636. no) enable_sdl2_config="FALSE" ;;
  21637. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21638. esac
  21639. else
  21640. enable_sdl2_config="TRUE"
  21641. fi
  21642. if test "$enable_sdl2_config" = "TRUE"; then
  21643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21644. $as_echo "yes" >&6; }
  21645. else
  21646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21647. $as_echo "no" >&6; }
  21648. fi
  21649. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21650. # Verify that we have all the platform specific files we need
  21651. if test x$have_joystick != xyes; then
  21652. if test x$enable_joystick = xyes; then
  21653. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21654. fi
  21655. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21656. fi
  21657. if test x$have_haptic != xyes; then
  21658. if test x$enable_haptic = xyes; then
  21659. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21660. fi
  21661. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21662. fi
  21663. if test x$have_sensor != xyes; then
  21664. if test x$enable_sensor = xyes; then
  21665. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21666. fi
  21667. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21668. fi
  21669. if test x$have_threads != xyes; then
  21670. if test x$enable_threads = xyes; then
  21671. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21672. fi
  21673. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21674. fi
  21675. if test x$have_timers != xyes; then
  21676. if test x$enable_timers = xyes; then
  21677. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21678. fi
  21679. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21680. fi
  21681. if test x$have_filesystem != xyes; then
  21682. if test x$enable_filesystem = xyes; then
  21683. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21684. fi
  21685. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21686. fi
  21687. if test x$have_loadso != xyes; then
  21688. if test x$enable_loadso = xyes; then
  21689. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21690. fi
  21691. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21692. fi
  21693. if test x$SDLMAIN_SOURCES = x; then
  21694. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21695. fi
  21696. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21697. if test x$video_wayland = xyes; then
  21698. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21699. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21700. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21701. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21702. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21703. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21704. echo ;\
  21705. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21706. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21707. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21708. echo ;\
  21709. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21710. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21711. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21712. echo ;\
  21713. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21714. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21715. done ;\
  21716. echo ;\
  21717. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21718. fi
  21719. OBJECTS=`echo $SOURCES`
  21720. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21721. for EXT in asm cc m c S; do
  21722. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21723. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21724. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21725. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21726. done
  21727. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21728. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21729. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21730. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21731. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21732. \\$(objects)/\\2.o: \\1/\\2.rc \\$(objects)/.created\\\\
  21733. \\$(WINDRES) \\$< \\$@,g"`
  21734. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21735. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21736. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21737. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21738. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21739. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21740. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21741. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21742. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21743. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21744. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21745. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21746. # Set runtime shared library paths as needed
  21747. if test "x$enable_rpath" = "xyes"; then
  21748. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21749. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21751. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21752. have_enable_new_dtags=no
  21753. save_LDFLAGS="$LDFLAGS"
  21754. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21756. /* end confdefs.h. */
  21757. int
  21758. main ()
  21759. {
  21760. ;
  21761. return 0;
  21762. }
  21763. _ACEOF
  21764. if ac_fn_c_try_link "$LINENO"; then :
  21765. have_enable_new_dtags=yes
  21766. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21767. fi
  21768. rm -f core conftest.err conftest.$ac_objext \
  21769. conftest$ac_exeext conftest.$ac_ext
  21770. LDFLAGS="$save_LDFLAGS"
  21771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21772. $as_echo "$have_enable_new_dtags" >&6; }
  21773. fi
  21774. if test $ARCH = solaris; then
  21775. SDL_RLD_FLAGS="-R\${libdir}"
  21776. fi
  21777. else
  21778. SDL_RLD_FLAGS=""
  21779. fi
  21780. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21781. if test x$enable_shared = xyes; then
  21782. ENABLE_SHARED_TRUE=
  21783. ENABLE_SHARED_FALSE="#"
  21784. else
  21785. ENABLE_SHARED_TRUE="#"
  21786. ENABLE_SHARED_FALSE=
  21787. fi
  21788. if test x$enable_static = xyes; then
  21789. ENABLE_STATIC_TRUE=
  21790. ENABLE_STATIC_FALSE="#"
  21791. else
  21792. ENABLE_STATIC_TRUE="#"
  21793. ENABLE_STATIC_FALSE=
  21794. fi
  21795. cat >Makefile.rules <<__EOF__
  21796. # Build rules for objects
  21797. -include \$(OBJECTS:.lo=.d)
  21798. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21799. $srcdir/src/SDL.c: update-revision
  21800. $DEPENDS
  21801. $VERSION_DEPENDS
  21802. $SDLMAIN_DEPENDS
  21803. $SDLTEST_DEPENDS
  21804. $WAYLAND_PROTOCOLS_DEPENDS
  21805. __EOF__
  21806. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21807. ac_config_commands="$ac_config_commands sdl2_config"
  21808. SUMMARY="SDL2 Configure Summary:\n"
  21809. if test x$enable_shared = xyes; then
  21810. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21811. fi
  21812. if test x$enable_static = xyes; then
  21813. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21814. fi
  21815. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21816. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21817. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21818. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21819. if test x$have_x = xyes; then
  21820. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21821. fi
  21822. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21823. if test x$have_samplerate_h_hdr = xyes; then
  21824. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21825. else
  21826. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21827. fi
  21828. if test x$have_libudev_h_hdr = xyes; then
  21829. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21830. else
  21831. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21832. fi
  21833. if test x$have_dbus_dbus_h_hdr = xyes; then
  21834. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21835. else
  21836. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21837. fi
  21838. if test x$enable_ime = xyes; then
  21839. SUMMARY="${SUMMARY}Using ime : YES\n"
  21840. else
  21841. SUMMARY="${SUMMARY}Using ime : NO\n"
  21842. fi
  21843. if test x$have_ibus_ibus_h_hdr = xyes; then
  21844. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21845. else
  21846. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21847. fi
  21848. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21849. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21850. else
  21851. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21852. fi
  21853. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21854. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21855. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21856. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21857. SUMMARY="${SUMMARY}configure script with:\n"
  21858. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21859. fi
  21860. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21861. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21862. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21863. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21864. SUMMARY="${SUMMARY}configure script with:\n"
  21865. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21866. fi
  21867. ac_config_commands="$ac_config_commands summary"
  21868. cat >confcache <<\_ACEOF
  21869. # This file is a shell script that caches the results of configure
  21870. # tests run on this system so they can be shared between configure
  21871. # scripts and configure runs, see configure's option --config-cache.
  21872. # It is not useful on other systems. If it contains results you don't
  21873. # want to keep, you may remove or edit it.
  21874. #
  21875. # config.status only pays attention to the cache file if you give it
  21876. # the --recheck option to rerun configure.
  21877. #
  21878. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21879. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21880. # following values.
  21881. _ACEOF
  21882. # The following way of writing the cache mishandles newlines in values,
  21883. # but we know of no workaround that is simple, portable, and efficient.
  21884. # So, we kill variables containing newlines.
  21885. # Ultrix sh set writes to stderr and can't be redirected directly,
  21886. # and sets the high bit in the cache file unless we assign to the vars.
  21887. (
  21888. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21889. eval ac_val=\$$ac_var
  21890. case $ac_val in #(
  21891. *${as_nl}*)
  21892. case $ac_var in #(
  21893. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21894. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21895. esac
  21896. case $ac_var in #(
  21897. _ | IFS | as_nl) ;; #(
  21898. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21899. *) { eval $ac_var=; unset $ac_var;} ;;
  21900. esac ;;
  21901. esac
  21902. done
  21903. (set) 2>&1 |
  21904. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21905. *${as_nl}ac_space=\ *)
  21906. # `set' does not quote correctly, so add quotes: double-quote
  21907. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21908. sed -n \
  21909. "s/'/'\\\\''/g;
  21910. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21911. ;; #(
  21912. *)
  21913. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21914. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21915. ;;
  21916. esac |
  21917. sort
  21918. ) |
  21919. sed '
  21920. /^ac_cv_env_/b end
  21921. t clear
  21922. :clear
  21923. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21924. t end
  21925. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21926. :end' >>confcache
  21927. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21928. if test -w "$cache_file"; then
  21929. if test "x$cache_file" != "x/dev/null"; then
  21930. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21931. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21932. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21933. cat confcache >"$cache_file"
  21934. else
  21935. case $cache_file in #(
  21936. */* | ?:*)
  21937. mv -f confcache "$cache_file"$$ &&
  21938. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21939. *)
  21940. mv -f confcache "$cache_file" ;;
  21941. esac
  21942. fi
  21943. fi
  21944. else
  21945. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21946. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21947. fi
  21948. fi
  21949. rm -f confcache
  21950. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21951. # Let make expand exec_prefix.
  21952. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21953. DEFS=-DHAVE_CONFIG_H
  21954. ac_libobjs=
  21955. ac_ltlibobjs=
  21956. U=
  21957. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21958. # 1. Remove the extension, and $U if already installed.
  21959. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21960. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21961. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21962. # will be set to the directory where LIBOBJS objects are built.
  21963. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21964. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21965. done
  21966. LIBOBJS=$ac_libobjs
  21967. LTLIBOBJS=$ac_ltlibobjs
  21968. : "${CONFIG_STATUS=./config.status}"
  21969. ac_write_fail=0
  21970. ac_clean_files_save=$ac_clean_files
  21971. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21972. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21973. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21974. as_write_fail=0
  21975. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21976. #! $SHELL
  21977. # Generated by $as_me.
  21978. # Run this file to recreate the current configuration.
  21979. # Compiler output produced by configure, useful for debugging
  21980. # configure, is in config.log if it exists.
  21981. debug=false
  21982. ac_cs_recheck=false
  21983. ac_cs_silent=false
  21984. SHELL=\${CONFIG_SHELL-$SHELL}
  21985. export SHELL
  21986. _ASEOF
  21987. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21988. ## -------------------- ##
  21989. ## M4sh Initialization. ##
  21990. ## -------------------- ##
  21991. # Be more Bourne compatible
  21992. DUALCASE=1; export DUALCASE # for MKS sh
  21993. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21994. emulate sh
  21995. NULLCMD=:
  21996. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21997. # is contrary to our usage. Disable this feature.
  21998. alias -g '${1+"$@"}'='"$@"'
  21999. setopt NO_GLOB_SUBST
  22000. else
  22001. case `(set -o) 2>/dev/null` in #(
  22002. *posix*) :
  22003. set -o posix ;; #(
  22004. *) :
  22005. ;;
  22006. esac
  22007. fi
  22008. as_nl='
  22009. '
  22010. export as_nl
  22011. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22012. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22013. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22014. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22015. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22016. # but without wasting forks for bash or zsh.
  22017. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22018. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22019. as_echo='print -r --'
  22020. as_echo_n='print -rn --'
  22021. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22022. as_echo='printf %s\n'
  22023. as_echo_n='printf %s'
  22024. else
  22025. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22026. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22027. as_echo_n='/usr/ucb/echo -n'
  22028. else
  22029. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22030. as_echo_n_body='eval
  22031. arg=$1;
  22032. case $arg in #(
  22033. *"$as_nl"*)
  22034. expr "X$arg" : "X\\(.*\\)$as_nl";
  22035. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22036. esac;
  22037. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22038. '
  22039. export as_echo_n_body
  22040. as_echo_n='sh -c $as_echo_n_body as_echo'
  22041. fi
  22042. export as_echo_body
  22043. as_echo='sh -c $as_echo_body as_echo'
  22044. fi
  22045. # The user is always right.
  22046. if test "${PATH_SEPARATOR+set}" != set; then
  22047. PATH_SEPARATOR=:
  22048. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22049. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22050. PATH_SEPARATOR=';'
  22051. }
  22052. fi
  22053. # IFS
  22054. # We need space, tab and new line, in precisely that order. Quoting is
  22055. # there to prevent editors from complaining about space-tab.
  22056. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22057. # splitting by setting IFS to empty value.)
  22058. IFS=" "" $as_nl"
  22059. # Find who we are. Look in the path if we contain no directory separator.
  22060. as_myself=
  22061. case $0 in #((
  22062. *[\\/]* ) as_myself=$0 ;;
  22063. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22064. for as_dir in $PATH
  22065. do
  22066. IFS=$as_save_IFS
  22067. test -z "$as_dir" && as_dir=.
  22068. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22069. done
  22070. IFS=$as_save_IFS
  22071. ;;
  22072. esac
  22073. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22074. # in which case we are not to be found in the path.
  22075. if test "x$as_myself" = x; then
  22076. as_myself=$0
  22077. fi
  22078. if test ! -f "$as_myself"; then
  22079. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22080. exit 1
  22081. fi
  22082. # Unset variables that we do not need and which cause bugs (e.g. in
  22083. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22084. # suppresses any "Segmentation fault" message there. '((' could
  22085. # trigger a bug in pdksh 5.2.14.
  22086. for as_var in BASH_ENV ENV MAIL MAILPATH
  22087. do eval test x\${$as_var+set} = xset \
  22088. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22089. done
  22090. PS1='$ '
  22091. PS2='> '
  22092. PS4='+ '
  22093. # NLS nuisances.
  22094. LC_ALL=C
  22095. export LC_ALL
  22096. LANGUAGE=C
  22097. export LANGUAGE
  22098. # CDPATH.
  22099. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22100. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22101. # ----------------------------------------
  22102. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22103. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22104. # script with STATUS, using 1 if that was 0.
  22105. as_fn_error ()
  22106. {
  22107. as_status=$1; test $as_status -eq 0 && as_status=1
  22108. if test "$4"; then
  22109. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22110. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22111. fi
  22112. $as_echo "$as_me: error: $2" >&2
  22113. as_fn_exit $as_status
  22114. } # as_fn_error
  22115. # as_fn_set_status STATUS
  22116. # -----------------------
  22117. # Set $? to STATUS, without forking.
  22118. as_fn_set_status ()
  22119. {
  22120. return $1
  22121. } # as_fn_set_status
  22122. # as_fn_exit STATUS
  22123. # -----------------
  22124. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22125. as_fn_exit ()
  22126. {
  22127. set +e
  22128. as_fn_set_status $1
  22129. exit $1
  22130. } # as_fn_exit
  22131. # as_fn_unset VAR
  22132. # ---------------
  22133. # Portably unset VAR.
  22134. as_fn_unset ()
  22135. {
  22136. { eval $1=; unset $1;}
  22137. }
  22138. as_unset=as_fn_unset
  22139. # as_fn_append VAR VALUE
  22140. # ----------------------
  22141. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22142. # advantage of any shell optimizations that allow amortized linear growth over
  22143. # repeated appends, instead of the typical quadratic growth present in naive
  22144. # implementations.
  22145. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22146. eval 'as_fn_append ()
  22147. {
  22148. eval $1+=\$2
  22149. }'
  22150. else
  22151. as_fn_append ()
  22152. {
  22153. eval $1=\$$1\$2
  22154. }
  22155. fi # as_fn_append
  22156. # as_fn_arith ARG...
  22157. # ------------------
  22158. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22159. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22160. # must be portable across $(()) and expr.
  22161. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22162. eval 'as_fn_arith ()
  22163. {
  22164. as_val=$(( $* ))
  22165. }'
  22166. else
  22167. as_fn_arith ()
  22168. {
  22169. as_val=`expr "$@" || test $? -eq 1`
  22170. }
  22171. fi # as_fn_arith
  22172. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22173. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22174. as_expr=expr
  22175. else
  22176. as_expr=false
  22177. fi
  22178. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22179. as_basename=basename
  22180. else
  22181. as_basename=false
  22182. fi
  22183. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22184. as_dirname=dirname
  22185. else
  22186. as_dirname=false
  22187. fi
  22188. as_me=`$as_basename -- "$0" ||
  22189. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22190. X"$0" : 'X\(//\)$' \| \
  22191. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22192. $as_echo X/"$0" |
  22193. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22194. s//\1/
  22195. q
  22196. }
  22197. /^X\/\(\/\/\)$/{
  22198. s//\1/
  22199. q
  22200. }
  22201. /^X\/\(\/\).*/{
  22202. s//\1/
  22203. q
  22204. }
  22205. s/.*/./; q'`
  22206. # Avoid depending upon Character Ranges.
  22207. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22208. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22209. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22210. as_cr_digits='0123456789'
  22211. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22212. ECHO_C= ECHO_N= ECHO_T=
  22213. case `echo -n x` in #(((((
  22214. -n*)
  22215. case `echo 'xy\c'` in
  22216. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22217. xy) ECHO_C='\c';;
  22218. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22219. ECHO_T=' ';;
  22220. esac;;
  22221. *)
  22222. ECHO_N='-n';;
  22223. esac
  22224. rm -f conf$$ conf$$.exe conf$$.file
  22225. if test -d conf$$.dir; then
  22226. rm -f conf$$.dir/conf$$.file
  22227. else
  22228. rm -f conf$$.dir
  22229. mkdir conf$$.dir 2>/dev/null
  22230. fi
  22231. if (echo >conf$$.file) 2>/dev/null; then
  22232. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22233. as_ln_s='ln -s'
  22234. # ... but there are two gotchas:
  22235. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22236. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22237. # In both cases, we have to default to `cp -pR'.
  22238. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22239. as_ln_s='cp -pR'
  22240. elif ln conf$$.file conf$$ 2>/dev/null; then
  22241. as_ln_s=ln
  22242. else
  22243. as_ln_s='cp -pR'
  22244. fi
  22245. else
  22246. as_ln_s='cp -pR'
  22247. fi
  22248. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22249. rmdir conf$$.dir 2>/dev/null
  22250. # as_fn_mkdir_p
  22251. # -------------
  22252. # Create "$as_dir" as a directory, including parents if necessary.
  22253. as_fn_mkdir_p ()
  22254. {
  22255. case $as_dir in #(
  22256. -*) as_dir=./$as_dir;;
  22257. esac
  22258. test -d "$as_dir" || eval $as_mkdir_p || {
  22259. as_dirs=
  22260. while :; do
  22261. case $as_dir in #(
  22262. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22263. *) as_qdir=$as_dir;;
  22264. esac
  22265. as_dirs="'$as_qdir' $as_dirs"
  22266. as_dir=`$as_dirname -- "$as_dir" ||
  22267. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22268. X"$as_dir" : 'X\(//\)[^/]' \| \
  22269. X"$as_dir" : 'X\(//\)$' \| \
  22270. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22271. $as_echo X"$as_dir" |
  22272. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22273. s//\1/
  22274. q
  22275. }
  22276. /^X\(\/\/\)[^/].*/{
  22277. s//\1/
  22278. q
  22279. }
  22280. /^X\(\/\/\)$/{
  22281. s//\1/
  22282. q
  22283. }
  22284. /^X\(\/\).*/{
  22285. s//\1/
  22286. q
  22287. }
  22288. s/.*/./; q'`
  22289. test -d "$as_dir" && break
  22290. done
  22291. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22292. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22293. } # as_fn_mkdir_p
  22294. if mkdir -p . 2>/dev/null; then
  22295. as_mkdir_p='mkdir -p "$as_dir"'
  22296. else
  22297. test -d ./-p && rmdir ./-p
  22298. as_mkdir_p=false
  22299. fi
  22300. # as_fn_executable_p FILE
  22301. # -----------------------
  22302. # Test if FILE is an executable regular file.
  22303. as_fn_executable_p ()
  22304. {
  22305. test -f "$1" && test -x "$1"
  22306. } # as_fn_executable_p
  22307. as_test_x='test -x'
  22308. as_executable_p=as_fn_executable_p
  22309. # Sed expression to map a string onto a valid CPP name.
  22310. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22311. # Sed expression to map a string onto a valid variable name.
  22312. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22313. exec 6>&1
  22314. ## ----------------------------------- ##
  22315. ## Main body of $CONFIG_STATUS script. ##
  22316. ## ----------------------------------- ##
  22317. _ASEOF
  22318. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22319. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22320. # Save the log message, to keep $0 and so on meaningful, and to
  22321. # report actual input values of CONFIG_FILES etc. instead of their
  22322. # values after options handling.
  22323. ac_log="
  22324. This file was extended by $as_me, which was
  22325. generated by GNU Autoconf 2.69. Invocation command line was
  22326. CONFIG_FILES = $CONFIG_FILES
  22327. CONFIG_HEADERS = $CONFIG_HEADERS
  22328. CONFIG_LINKS = $CONFIG_LINKS
  22329. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22330. $ $0 $@
  22331. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22332. "
  22333. _ACEOF
  22334. case $ac_config_files in *"
  22335. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22336. esac
  22337. case $ac_config_headers in *"
  22338. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22339. esac
  22340. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22341. # Files that config.status was made for.
  22342. config_files="$ac_config_files"
  22343. config_headers="$ac_config_headers"
  22344. config_commands="$ac_config_commands"
  22345. _ACEOF
  22346. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22347. ac_cs_usage="\
  22348. \`$as_me' instantiates files and other configuration actions
  22349. from templates according to the current configuration. Unless the files
  22350. and actions are specified as TAGs, all are instantiated by default.
  22351. Usage: $0 [OPTION]... [TAG]...
  22352. -h, --help print this help, then exit
  22353. -V, --version print version number and configuration settings, then exit
  22354. --config print configuration, then exit
  22355. -q, --quiet, --silent
  22356. do not print progress messages
  22357. -d, --debug don't remove temporary files
  22358. --recheck update $as_me by reconfiguring in the same conditions
  22359. --file=FILE[:TEMPLATE]
  22360. instantiate the configuration file FILE
  22361. --header=FILE[:TEMPLATE]
  22362. instantiate the configuration header FILE
  22363. Configuration files:
  22364. $config_files
  22365. Configuration headers:
  22366. $config_headers
  22367. Configuration commands:
  22368. $config_commands
  22369. Report bugs to the package provider."
  22370. _ACEOF
  22371. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22372. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22373. ac_cs_version="\\
  22374. config.status
  22375. configured by $0, generated by GNU Autoconf 2.69,
  22376. with options \\"\$ac_cs_config\\"
  22377. Copyright (C) 2012 Free Software Foundation, Inc.
  22378. This config.status script is free software; the Free Software Foundation
  22379. gives unlimited permission to copy, distribute and modify it."
  22380. ac_pwd='$ac_pwd'
  22381. srcdir='$srcdir'
  22382. INSTALL='$INSTALL'
  22383. AWK='$AWK'
  22384. test -n "\$AWK" || AWK=awk
  22385. _ACEOF
  22386. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22387. # The default lists apply if the user does not specify any file.
  22388. ac_need_defaults=:
  22389. while test $# != 0
  22390. do
  22391. case $1 in
  22392. --*=?*)
  22393. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22394. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22395. ac_shift=:
  22396. ;;
  22397. --*=)
  22398. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22399. ac_optarg=
  22400. ac_shift=:
  22401. ;;
  22402. *)
  22403. ac_option=$1
  22404. ac_optarg=$2
  22405. ac_shift=shift
  22406. ;;
  22407. esac
  22408. case $ac_option in
  22409. # Handling of the options.
  22410. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22411. ac_cs_recheck=: ;;
  22412. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22413. $as_echo "$ac_cs_version"; exit ;;
  22414. --config | --confi | --conf | --con | --co | --c )
  22415. $as_echo "$ac_cs_config"; exit ;;
  22416. --debug | --debu | --deb | --de | --d | -d )
  22417. debug=: ;;
  22418. --file | --fil | --fi | --f )
  22419. $ac_shift
  22420. case $ac_optarg in
  22421. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22422. '') as_fn_error $? "missing file argument" ;;
  22423. esac
  22424. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22425. ac_need_defaults=false;;
  22426. --header | --heade | --head | --hea )
  22427. $ac_shift
  22428. case $ac_optarg in
  22429. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22430. esac
  22431. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22432. ac_need_defaults=false;;
  22433. --he | --h)
  22434. # Conflict between --help and --header
  22435. as_fn_error $? "ambiguous option: \`$1'
  22436. Try \`$0 --help' for more information.";;
  22437. --help | --hel | -h )
  22438. $as_echo "$ac_cs_usage"; exit ;;
  22439. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22440. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22441. ac_cs_silent=: ;;
  22442. # This is an error.
  22443. -*) as_fn_error $? "unrecognized option: \`$1'
  22444. Try \`$0 --help' for more information." ;;
  22445. *) as_fn_append ac_config_targets " $1"
  22446. ac_need_defaults=false ;;
  22447. esac
  22448. shift
  22449. done
  22450. ac_configure_extra_args=
  22451. if $ac_cs_silent; then
  22452. exec 6>/dev/null
  22453. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22454. fi
  22455. _ACEOF
  22456. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22457. if \$ac_cs_recheck; then
  22458. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22459. shift
  22460. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22461. CONFIG_SHELL='$SHELL'
  22462. export CONFIG_SHELL
  22463. exec "\$@"
  22464. fi
  22465. _ACEOF
  22466. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22467. exec 5>>config.log
  22468. {
  22469. echo
  22470. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22471. ## Running $as_me. ##
  22472. _ASBOX
  22473. $as_echo "$ac_log"
  22474. } >&5
  22475. _ACEOF
  22476. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22477. #
  22478. # INIT-COMMANDS
  22479. #
  22480. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22481. # if CDPATH is set.
  22482. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22483. sed_quote_subst='$sed_quote_subst'
  22484. double_quote_subst='$double_quote_subst'
  22485. delay_variable_subst='$delay_variable_subst'
  22486. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22487. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22488. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22489. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22490. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22491. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22492. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22493. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22494. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22495. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22496. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22497. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22498. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22499. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22500. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22501. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22502. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22503. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22504. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22505. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22506. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22507. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22508. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22509. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22510. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22511. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22512. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22513. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22514. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22515. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22516. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22517. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22518. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22519. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22520. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22521. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22522. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22523. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22524. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22525. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22526. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22527. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22528. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22529. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22530. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22531. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22532. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22533. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22534. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22535. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22536. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22537. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22538. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22539. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22540. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22541. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22542. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22543. 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"`'
  22544. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22545. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22546. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22547. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22548. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22549. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22550. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22551. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22552. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22553. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22554. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22555. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22556. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22557. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22558. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22559. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22560. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22561. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22562. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22563. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22564. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22565. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22566. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22567. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22568. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22569. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22570. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22571. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22572. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22573. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22574. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22575. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22576. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22577. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22578. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22579. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22580. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22581. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22582. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22583. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22584. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22585. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22586. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22587. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22588. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22589. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22590. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22591. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22592. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22593. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22594. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22595. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22596. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22597. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22598. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22599. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22600. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22601. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22602. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22603. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22604. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22605. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22606. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22607. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22608. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22609. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22610. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22611. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22612. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22613. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22614. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22615. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22616. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22617. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22618. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22619. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22620. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22621. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22622. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22623. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22624. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22625. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22626. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22627. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22628. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22629. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22630. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22631. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22632. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22633. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22634. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22635. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22636. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22637. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22638. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22639. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22640. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22641. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22642. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22643. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22644. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22645. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22646. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22647. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22648. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22649. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22650. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22651. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22652. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22653. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22654. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22655. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22656. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22657. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22658. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22659. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22660. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22661. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22662. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22663. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22664. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22665. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22666. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22667. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22668. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22669. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22670. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22671. LTCC='$LTCC'
  22672. LTCFLAGS='$LTCFLAGS'
  22673. compiler='$compiler_DEFAULT'
  22674. # A function that is used when there is no print builtin or printf.
  22675. func_fallback_echo ()
  22676. {
  22677. eval 'cat <<_LTECHO_EOF
  22678. \$1
  22679. _LTECHO_EOF'
  22680. }
  22681. # Quote evaled strings.
  22682. for var in AS \
  22683. DLLTOOL \
  22684. OBJDUMP \
  22685. SHELL \
  22686. ECHO \
  22687. PATH_SEPARATOR \
  22688. SED \
  22689. GREP \
  22690. EGREP \
  22691. FGREP \
  22692. LD \
  22693. NM \
  22694. LN_S \
  22695. lt_SP2NL \
  22696. lt_NL2SP \
  22697. reload_flag \
  22698. deplibs_check_method \
  22699. file_magic_cmd \
  22700. file_magic_glob \
  22701. want_nocaseglob \
  22702. sharedlib_from_linklib_cmd \
  22703. AR \
  22704. AR_FLAGS \
  22705. archiver_list_spec \
  22706. STRIP \
  22707. RANLIB \
  22708. CC \
  22709. CFLAGS \
  22710. compiler \
  22711. lt_cv_sys_global_symbol_pipe \
  22712. lt_cv_sys_global_symbol_to_cdecl \
  22713. lt_cv_sys_global_symbol_to_c_name_address \
  22714. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22715. nm_file_list_spec \
  22716. lt_prog_compiler_no_builtin_flag \
  22717. lt_prog_compiler_pic \
  22718. lt_prog_compiler_wl \
  22719. lt_prog_compiler_static \
  22720. lt_cv_prog_compiler_c_o \
  22721. need_locks \
  22722. MANIFEST_TOOL \
  22723. DSYMUTIL \
  22724. NMEDIT \
  22725. LIPO \
  22726. OTOOL \
  22727. OTOOL64 \
  22728. shrext_cmds \
  22729. export_dynamic_flag_spec \
  22730. whole_archive_flag_spec \
  22731. compiler_needs_object \
  22732. with_gnu_ld \
  22733. allow_undefined_flag \
  22734. no_undefined_flag \
  22735. hardcode_libdir_flag_spec \
  22736. hardcode_libdir_separator \
  22737. exclude_expsyms \
  22738. include_expsyms \
  22739. file_list_spec \
  22740. variables_saved_for_relink \
  22741. libname_spec \
  22742. library_names_spec \
  22743. soname_spec \
  22744. install_override_mode \
  22745. finish_eval \
  22746. old_striplib \
  22747. striplib \
  22748. compiler_lib_search_dirs \
  22749. predep_objects \
  22750. postdep_objects \
  22751. predeps \
  22752. postdeps \
  22753. compiler_lib_search_path \
  22754. LD_CXX \
  22755. reload_flag_CXX \
  22756. compiler_CXX \
  22757. lt_prog_compiler_no_builtin_flag_CXX \
  22758. lt_prog_compiler_pic_CXX \
  22759. lt_prog_compiler_wl_CXX \
  22760. lt_prog_compiler_static_CXX \
  22761. lt_cv_prog_compiler_c_o_CXX \
  22762. export_dynamic_flag_spec_CXX \
  22763. whole_archive_flag_spec_CXX \
  22764. compiler_needs_object_CXX \
  22765. with_gnu_ld_CXX \
  22766. allow_undefined_flag_CXX \
  22767. no_undefined_flag_CXX \
  22768. hardcode_libdir_flag_spec_CXX \
  22769. hardcode_libdir_separator_CXX \
  22770. exclude_expsyms_CXX \
  22771. include_expsyms_CXX \
  22772. file_list_spec_CXX \
  22773. compiler_lib_search_dirs_CXX \
  22774. predep_objects_CXX \
  22775. postdep_objects_CXX \
  22776. predeps_CXX \
  22777. postdeps_CXX \
  22778. compiler_lib_search_path_CXX; do
  22779. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22780. *[\\\\\\\`\\"\\\$]*)
  22781. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22782. ;;
  22783. *)
  22784. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22785. ;;
  22786. esac
  22787. done
  22788. # Double-quote double-evaled strings.
  22789. for var in reload_cmds \
  22790. old_postinstall_cmds \
  22791. old_postuninstall_cmds \
  22792. old_archive_cmds \
  22793. extract_expsyms_cmds \
  22794. old_archive_from_new_cmds \
  22795. old_archive_from_expsyms_cmds \
  22796. archive_cmds \
  22797. archive_expsym_cmds \
  22798. module_cmds \
  22799. module_expsym_cmds \
  22800. export_symbols_cmds \
  22801. prelink_cmds \
  22802. postlink_cmds \
  22803. postinstall_cmds \
  22804. postuninstall_cmds \
  22805. finish_cmds \
  22806. sys_lib_search_path_spec \
  22807. sys_lib_dlsearch_path_spec \
  22808. reload_cmds_CXX \
  22809. old_archive_cmds_CXX \
  22810. old_archive_from_new_cmds_CXX \
  22811. old_archive_from_expsyms_cmds_CXX \
  22812. archive_cmds_CXX \
  22813. archive_expsym_cmds_CXX \
  22814. module_cmds_CXX \
  22815. module_expsym_cmds_CXX \
  22816. export_symbols_cmds_CXX \
  22817. prelink_cmds_CXX \
  22818. postlink_cmds_CXX; do
  22819. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22820. *[\\\\\\\`\\"\\\$]*)
  22821. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22822. ;;
  22823. *)
  22824. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22825. ;;
  22826. esac
  22827. done
  22828. ac_aux_dir='$ac_aux_dir'
  22829. xsi_shell='$xsi_shell'
  22830. lt_shell_append='$lt_shell_append'
  22831. # See if we are running on zsh, and set the options which allow our
  22832. # commands through without removal of \ escapes INIT.
  22833. if test -n "\${ZSH_VERSION+set}" ; then
  22834. setopt NO_GLOB_SUBST
  22835. fi
  22836. PACKAGE='$PACKAGE'
  22837. VERSION='$VERSION'
  22838. TIMESTAMP='$TIMESTAMP'
  22839. RM='$RM'
  22840. ofile='$ofile'
  22841. SUMMARY="$SUMMARY"
  22842. _ACEOF
  22843. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22844. # Handling of arguments.
  22845. for ac_config_target in $ac_config_targets
  22846. do
  22847. case $ac_config_target in
  22848. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22849. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22850. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22851. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22852. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22853. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  22854. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22855. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22856. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22857. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22858. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22859. esac
  22860. done
  22861. # If the user did not use the arguments to specify the items to instantiate,
  22862. # then the envvar interface is used. Set only those that are not.
  22863. # We use the long form for the default assignment because of an extremely
  22864. # bizarre bug on SunOS 4.1.3.
  22865. if $ac_need_defaults; then
  22866. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22867. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22868. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22869. fi
  22870. # Have a temporary directory for convenience. Make it in the build tree
  22871. # simply because there is no reason against having it here, and in addition,
  22872. # creating and moving files from /tmp can sometimes cause problems.
  22873. # Hook for its removal unless debugging.
  22874. # Note that there is a small window in which the directory will not be cleaned:
  22875. # after its creation but before its name has been assigned to `$tmp'.
  22876. $debug ||
  22877. {
  22878. tmp= ac_tmp=
  22879. trap 'exit_status=$?
  22880. : "${ac_tmp:=$tmp}"
  22881. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22882. ' 0
  22883. trap 'as_fn_exit 1' 1 2 13 15
  22884. }
  22885. # Create a (secure) tmp directory for tmp files.
  22886. {
  22887. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22888. test -d "$tmp"
  22889. } ||
  22890. {
  22891. tmp=./conf$$-$RANDOM
  22892. (umask 077 && mkdir "$tmp")
  22893. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22894. ac_tmp=$tmp
  22895. # Set up the scripts for CONFIG_FILES section.
  22896. # No need to generate them if there are no CONFIG_FILES.
  22897. # This happens for instance with `./config.status config.h'.
  22898. if test -n "$CONFIG_FILES"; then
  22899. ac_cr=`echo X | tr X '\015'`
  22900. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22901. # But we know of no other shell where ac_cr would be empty at this
  22902. # point, so we can use a bashism as a fallback.
  22903. if test "x$ac_cr" = x; then
  22904. eval ac_cr=\$\'\\r\'
  22905. fi
  22906. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22907. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22908. ac_cs_awk_cr='\\r'
  22909. else
  22910. ac_cs_awk_cr=$ac_cr
  22911. fi
  22912. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22913. _ACEOF
  22914. {
  22915. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22916. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22917. echo "_ACEOF"
  22918. } >conf$$subs.sh ||
  22919. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22920. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22921. ac_delim='%!_!# '
  22922. for ac_last_try in false false false false false :; do
  22923. . ./conf$$subs.sh ||
  22924. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22925. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22926. if test $ac_delim_n = $ac_delim_num; then
  22927. break
  22928. elif $ac_last_try; then
  22929. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22930. else
  22931. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22932. fi
  22933. done
  22934. rm -f conf$$subs.sh
  22935. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22936. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22937. _ACEOF
  22938. sed -n '
  22939. h
  22940. s/^/S["/; s/!.*/"]=/
  22941. p
  22942. g
  22943. s/^[^!]*!//
  22944. :repl
  22945. t repl
  22946. s/'"$ac_delim"'$//
  22947. t delim
  22948. :nl
  22949. h
  22950. s/\(.\{148\}\)..*/\1/
  22951. t more1
  22952. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22953. p
  22954. n
  22955. b repl
  22956. :more1
  22957. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22958. p
  22959. g
  22960. s/.\{148\}//
  22961. t nl
  22962. :delim
  22963. h
  22964. s/\(.\{148\}\)..*/\1/
  22965. t more2
  22966. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22967. p
  22968. b
  22969. :more2
  22970. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22971. p
  22972. g
  22973. s/.\{148\}//
  22974. t delim
  22975. ' <conf$$subs.awk | sed '
  22976. /^[^""]/{
  22977. N
  22978. s/\n//
  22979. }
  22980. ' >>$CONFIG_STATUS || ac_write_fail=1
  22981. rm -f conf$$subs.awk
  22982. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22983. _ACAWK
  22984. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22985. for (key in S) S_is_set[key] = 1
  22986. FS = ""
  22987. }
  22988. {
  22989. line = $ 0
  22990. nfields = split(line, field, "@")
  22991. substed = 0
  22992. len = length(field[1])
  22993. for (i = 2; i < nfields; i++) {
  22994. key = field[i]
  22995. keylen = length(key)
  22996. if (S_is_set[key]) {
  22997. value = S[key]
  22998. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22999. len += length(value) + length(field[++i])
  23000. substed = 1
  23001. } else
  23002. len += 1 + keylen
  23003. }
  23004. print line
  23005. }
  23006. _ACAWK
  23007. _ACEOF
  23008. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23009. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23010. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23011. else
  23012. cat
  23013. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23014. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23015. _ACEOF
  23016. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23017. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23018. # trailing colons and then remove the whole line if VPATH becomes empty
  23019. # (actually we leave an empty line to preserve line numbers).
  23020. if test "x$srcdir" = x.; then
  23021. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23022. h
  23023. s///
  23024. s/^/:/
  23025. s/[ ]*$/:/
  23026. s/:\$(srcdir):/:/g
  23027. s/:\${srcdir}:/:/g
  23028. s/:@srcdir@:/:/g
  23029. s/^:*//
  23030. s/:*$//
  23031. x
  23032. s/\(=[ ]*\).*/\1/
  23033. G
  23034. s/\n//
  23035. s/^[^=]*=[ ]*$//
  23036. }'
  23037. fi
  23038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23039. fi # test -n "$CONFIG_FILES"
  23040. # Set up the scripts for CONFIG_HEADERS section.
  23041. # No need to generate them if there are no CONFIG_HEADERS.
  23042. # This happens for instance with `./config.status Makefile'.
  23043. if test -n "$CONFIG_HEADERS"; then
  23044. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23045. BEGIN {
  23046. _ACEOF
  23047. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23048. # here-document in config.status, that substitutes the proper values into
  23049. # config.h.in to produce config.h.
  23050. # Create a delimiter string that does not exist in confdefs.h, to ease
  23051. # handling of long lines.
  23052. ac_delim='%!_!# '
  23053. for ac_last_try in false false :; do
  23054. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23055. if test -z "$ac_tt"; then
  23056. break
  23057. elif $ac_last_try; then
  23058. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23059. else
  23060. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23061. fi
  23062. done
  23063. # For the awk script, D is an array of macro values keyed by name,
  23064. # likewise P contains macro parameters if any. Preserve backslash
  23065. # newline sequences.
  23066. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23067. sed -n '
  23068. s/.\{148\}/&'"$ac_delim"'/g
  23069. t rset
  23070. :rset
  23071. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23072. t def
  23073. d
  23074. :def
  23075. s/\\$//
  23076. t bsnl
  23077. s/["\\]/\\&/g
  23078. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23079. D["\1"]=" \3"/p
  23080. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23081. d
  23082. :bsnl
  23083. s/["\\]/\\&/g
  23084. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23085. D["\1"]=" \3\\\\\\n"\\/p
  23086. t cont
  23087. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23088. t cont
  23089. d
  23090. :cont
  23091. n
  23092. s/.\{148\}/&'"$ac_delim"'/g
  23093. t clear
  23094. :clear
  23095. s/\\$//
  23096. t bsnlc
  23097. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23098. d
  23099. :bsnlc
  23100. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23101. b cont
  23102. ' <confdefs.h | sed '
  23103. s/'"$ac_delim"'/"\\\
  23104. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23105. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23106. for (key in D) D_is_set[key] = 1
  23107. FS = ""
  23108. }
  23109. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23110. line = \$ 0
  23111. split(line, arg, " ")
  23112. if (arg[1] == "#") {
  23113. defundef = arg[2]
  23114. mac1 = arg[3]
  23115. } else {
  23116. defundef = substr(arg[1], 2)
  23117. mac1 = arg[2]
  23118. }
  23119. split(mac1, mac2, "(") #)
  23120. macro = mac2[1]
  23121. prefix = substr(line, 1, index(line, defundef) - 1)
  23122. if (D_is_set[macro]) {
  23123. # Preserve the white space surrounding the "#".
  23124. print prefix "define", macro P[macro] D[macro]
  23125. next
  23126. } else {
  23127. # Replace #undef with comments. This is necessary, for example,
  23128. # in the case of _POSIX_SOURCE, which is predefined and required
  23129. # on some systems where configure will not decide to define it.
  23130. if (defundef == "undef") {
  23131. print "/*", prefix defundef, macro, "*/"
  23132. next
  23133. }
  23134. }
  23135. }
  23136. { print }
  23137. _ACAWK
  23138. _ACEOF
  23139. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23140. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23141. fi # test -n "$CONFIG_HEADERS"
  23142. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23143. shift
  23144. for ac_tag
  23145. do
  23146. case $ac_tag in
  23147. :[FHLC]) ac_mode=$ac_tag; continue;;
  23148. esac
  23149. case $ac_mode$ac_tag in
  23150. :[FHL]*:*);;
  23151. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23152. :[FH]-) ac_tag=-:-;;
  23153. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23154. esac
  23155. ac_save_IFS=$IFS
  23156. IFS=:
  23157. set x $ac_tag
  23158. IFS=$ac_save_IFS
  23159. shift
  23160. ac_file=$1
  23161. shift
  23162. case $ac_mode in
  23163. :L) ac_source=$1;;
  23164. :[FH])
  23165. ac_file_inputs=
  23166. for ac_f
  23167. do
  23168. case $ac_f in
  23169. -) ac_f="$ac_tmp/stdin";;
  23170. *) # Look for the file first in the build tree, then in the source tree
  23171. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23172. # because $ac_f cannot contain `:'.
  23173. test -f "$ac_f" ||
  23174. case $ac_f in
  23175. [\\/$]*) false;;
  23176. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23177. esac ||
  23178. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23179. esac
  23180. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23181. as_fn_append ac_file_inputs " '$ac_f'"
  23182. done
  23183. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23184. # use $as_me), people would be surprised to read:
  23185. # /* config.h. Generated by config.status. */
  23186. configure_input='Generated from '`
  23187. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23188. `' by configure.'
  23189. if test x"$ac_file" != x-; then
  23190. configure_input="$ac_file. $configure_input"
  23191. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23192. $as_echo "$as_me: creating $ac_file" >&6;}
  23193. fi
  23194. # Neutralize special characters interpreted by sed in replacement strings.
  23195. case $configure_input in #(
  23196. *\&* | *\|* | *\\* )
  23197. ac_sed_conf_input=`$as_echo "$configure_input" |
  23198. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23199. *) ac_sed_conf_input=$configure_input;;
  23200. esac
  23201. case $ac_tag in
  23202. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23203. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23204. esac
  23205. ;;
  23206. esac
  23207. ac_dir=`$as_dirname -- "$ac_file" ||
  23208. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23209. X"$ac_file" : 'X\(//\)[^/]' \| \
  23210. X"$ac_file" : 'X\(//\)$' \| \
  23211. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23212. $as_echo X"$ac_file" |
  23213. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23214. s//\1/
  23215. q
  23216. }
  23217. /^X\(\/\/\)[^/].*/{
  23218. s//\1/
  23219. q
  23220. }
  23221. /^X\(\/\/\)$/{
  23222. s//\1/
  23223. q
  23224. }
  23225. /^X\(\/\).*/{
  23226. s//\1/
  23227. q
  23228. }
  23229. s/.*/./; q'`
  23230. as_dir="$ac_dir"; as_fn_mkdir_p
  23231. ac_builddir=.
  23232. case "$ac_dir" in
  23233. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23234. *)
  23235. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23236. # A ".." for each directory in $ac_dir_suffix.
  23237. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23238. case $ac_top_builddir_sub in
  23239. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23240. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23241. esac ;;
  23242. esac
  23243. ac_abs_top_builddir=$ac_pwd
  23244. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23245. # for backward compatibility:
  23246. ac_top_builddir=$ac_top_build_prefix
  23247. case $srcdir in
  23248. .) # We are building in place.
  23249. ac_srcdir=.
  23250. ac_top_srcdir=$ac_top_builddir_sub
  23251. ac_abs_top_srcdir=$ac_pwd ;;
  23252. [\\/]* | ?:[\\/]* ) # Absolute name.
  23253. ac_srcdir=$srcdir$ac_dir_suffix;
  23254. ac_top_srcdir=$srcdir
  23255. ac_abs_top_srcdir=$srcdir ;;
  23256. *) # Relative name.
  23257. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23258. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23259. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23260. esac
  23261. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23262. case $ac_mode in
  23263. :F)
  23264. #
  23265. # CONFIG_FILE
  23266. #
  23267. case $INSTALL in
  23268. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23269. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23270. esac
  23271. _ACEOF
  23272. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23273. # If the template does not know about datarootdir, expand it.
  23274. # FIXME: This hack should be removed a few years after 2.60.
  23275. ac_datarootdir_hack=; ac_datarootdir_seen=
  23276. ac_sed_dataroot='
  23277. /datarootdir/ {
  23278. p
  23279. q
  23280. }
  23281. /@datadir@/p
  23282. /@docdir@/p
  23283. /@infodir@/p
  23284. /@localedir@/p
  23285. /@mandir@/p'
  23286. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23287. *datarootdir*) ac_datarootdir_seen=yes;;
  23288. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23290. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23291. _ACEOF
  23292. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23293. ac_datarootdir_hack='
  23294. s&@datadir@&$datadir&g
  23295. s&@docdir@&$docdir&g
  23296. s&@infodir@&$infodir&g
  23297. s&@localedir@&$localedir&g
  23298. s&@mandir@&$mandir&g
  23299. s&\\\${datarootdir}&$datarootdir&g' ;;
  23300. esac
  23301. _ACEOF
  23302. # Neutralize VPATH when `$srcdir' = `.'.
  23303. # Shell code in configure.ac might set extrasub.
  23304. # FIXME: do we really want to maintain this feature?
  23305. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23306. ac_sed_extra="$ac_vpsub
  23307. $extrasub
  23308. _ACEOF
  23309. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23310. :t
  23311. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23312. s|@configure_input@|$ac_sed_conf_input|;t t
  23313. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23314. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23315. s&@srcdir@&$ac_srcdir&;t t
  23316. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23317. s&@top_srcdir@&$ac_top_srcdir&;t t
  23318. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23319. s&@builddir@&$ac_builddir&;t t
  23320. s&@abs_builddir@&$ac_abs_builddir&;t t
  23321. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23322. s&@INSTALL@&$ac_INSTALL&;t t
  23323. $ac_datarootdir_hack
  23324. "
  23325. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23326. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23327. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23328. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23329. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23330. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23332. which seems to be undefined. Please make sure it is defined" >&5
  23333. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23334. which seems to be undefined. Please make sure it is defined" >&2;}
  23335. rm -f "$ac_tmp/stdin"
  23336. case $ac_file in
  23337. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23338. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23339. esac \
  23340. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23341. ;;
  23342. :H)
  23343. #
  23344. # CONFIG_HEADER
  23345. #
  23346. if test x"$ac_file" != x-; then
  23347. {
  23348. $as_echo "/* $configure_input */" \
  23349. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23350. } >"$ac_tmp/config.h" \
  23351. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23352. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23353. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23354. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23355. else
  23356. rm -f "$ac_file"
  23357. mv "$ac_tmp/config.h" "$ac_file" \
  23358. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23359. fi
  23360. else
  23361. $as_echo "/* $configure_input */" \
  23362. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23363. || as_fn_error $? "could not create -" "$LINENO" 5
  23364. fi
  23365. ;;
  23366. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23367. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23368. ;;
  23369. esac
  23370. case $ac_file$ac_mode in
  23371. "libtool":C)
  23372. # See if we are running on zsh, and set the options which allow our
  23373. # commands through without removal of \ escapes.
  23374. if test -n "${ZSH_VERSION+set}" ; then
  23375. setopt NO_GLOB_SUBST
  23376. fi
  23377. cfgfile="${ofile}T"
  23378. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23379. $RM "$cfgfile"
  23380. cat <<_LT_EOF >> "$cfgfile"
  23381. #! $SHELL
  23382. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23383. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23384. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23385. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23386. #
  23387. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23388. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23389. # Foundation, Inc.
  23390. # Written by Gordon Matzigkeit, 1996
  23391. #
  23392. # This file is part of GNU Libtool.
  23393. #
  23394. # GNU Libtool is free software; you can redistribute it and/or
  23395. # modify it under the terms of the GNU General Public License as
  23396. # published by the Free Software Foundation; either version 2 of
  23397. # the License, or (at your option) any later version.
  23398. #
  23399. # As a special exception to the GNU General Public License,
  23400. # if you distribute this file as part of a program or library that
  23401. # is built using GNU Libtool, you may include this file under the
  23402. # same distribution terms that you use for the rest of that program.
  23403. #
  23404. # GNU Libtool is distributed in the hope that it will be useful,
  23405. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23406. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23407. # GNU General Public License for more details.
  23408. #
  23409. # You should have received a copy of the GNU General Public License
  23410. # along with GNU Libtool; see the file COPYING. If not, a copy
  23411. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23412. # obtained by writing to the Free Software Foundation, Inc.,
  23413. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23414. # The names of the tagged configurations supported by this script.
  23415. available_tags="CXX "
  23416. # ### BEGIN LIBTOOL CONFIG
  23417. # Which release of libtool.m4 was used?
  23418. macro_version=$macro_version
  23419. macro_revision=$macro_revision
  23420. # Assembler program.
  23421. AS=$lt_AS
  23422. # DLL creation program.
  23423. DLLTOOL=$lt_DLLTOOL
  23424. # Object dumper program.
  23425. OBJDUMP=$lt_OBJDUMP
  23426. # Whether or not to build shared libraries.
  23427. build_libtool_libs=$enable_shared
  23428. # Whether or not to build static libraries.
  23429. build_old_libs=$enable_static
  23430. # What type of objects to build.
  23431. pic_mode=$pic_mode
  23432. # Whether or not to optimize for fast installation.
  23433. fast_install=$enable_fast_install
  23434. # Shell to use when invoking shell scripts.
  23435. SHELL=$lt_SHELL
  23436. # An echo program that protects backslashes.
  23437. ECHO=$lt_ECHO
  23438. # The PATH separator for the build system.
  23439. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23440. # The host system.
  23441. host_alias=$host_alias
  23442. host=$host
  23443. host_os=$host_os
  23444. # The build system.
  23445. build_alias=$build_alias
  23446. build=$build
  23447. build_os=$build_os
  23448. # A sed program that does not truncate output.
  23449. SED=$lt_SED
  23450. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23451. Xsed="\$SED -e 1s/^X//"
  23452. # A grep program that handles long lines.
  23453. GREP=$lt_GREP
  23454. # An ERE matcher.
  23455. EGREP=$lt_EGREP
  23456. # A literal string matcher.
  23457. FGREP=$lt_FGREP
  23458. # A BSD- or MS-compatible name lister.
  23459. NM=$lt_NM
  23460. # Whether we need soft or hard links.
  23461. LN_S=$lt_LN_S
  23462. # What is the maximum length of a command?
  23463. max_cmd_len=$max_cmd_len
  23464. # Object file suffix (normally "o").
  23465. objext=$ac_objext
  23466. # Executable file suffix (normally "").
  23467. exeext=$exeext
  23468. # whether the shell understands "unset".
  23469. lt_unset=$lt_unset
  23470. # turn spaces into newlines.
  23471. SP2NL=$lt_lt_SP2NL
  23472. # turn newlines into spaces.
  23473. NL2SP=$lt_lt_NL2SP
  23474. # convert \$build file names to \$host format.
  23475. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23476. # convert \$build files to toolchain format.
  23477. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23478. # Method to check whether dependent libraries are shared objects.
  23479. deplibs_check_method=$lt_deplibs_check_method
  23480. # Command to use when deplibs_check_method = "file_magic".
  23481. file_magic_cmd=$lt_file_magic_cmd
  23482. # How to find potential files when deplibs_check_method = "file_magic".
  23483. file_magic_glob=$lt_file_magic_glob
  23484. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23485. want_nocaseglob=$lt_want_nocaseglob
  23486. # Command to associate shared and link libraries.
  23487. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23488. # The archiver.
  23489. AR=$lt_AR
  23490. # Flags to create an archive.
  23491. AR_FLAGS=$lt_AR_FLAGS
  23492. # How to feed a file listing to the archiver.
  23493. archiver_list_spec=$lt_archiver_list_spec
  23494. # A symbol stripping program.
  23495. STRIP=$lt_STRIP
  23496. # Commands used to install an old-style archive.
  23497. RANLIB=$lt_RANLIB
  23498. old_postinstall_cmds=$lt_old_postinstall_cmds
  23499. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23500. # Whether to use a lock for old archive extraction.
  23501. lock_old_archive_extraction=$lock_old_archive_extraction
  23502. # A C compiler.
  23503. LTCC=$lt_CC
  23504. # LTCC compiler flags.
  23505. LTCFLAGS=$lt_CFLAGS
  23506. # Take the output of nm and produce a listing of raw symbols and C names.
  23507. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23508. # Transform the output of nm in a proper C declaration.
  23509. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23510. # Transform the output of nm in a C name address pair.
  23511. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23512. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23513. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23514. # Specify filename containing input files for \$NM.
  23515. nm_file_list_spec=$lt_nm_file_list_spec
  23516. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23517. lt_sysroot=$lt_sysroot
  23518. # The name of the directory that contains temporary libtool files.
  23519. objdir=$objdir
  23520. # Used to examine libraries when file_magic_cmd begins with "file".
  23521. MAGIC_CMD=$MAGIC_CMD
  23522. # Must we lock files when doing compilation?
  23523. need_locks=$lt_need_locks
  23524. # Manifest tool.
  23525. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23526. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23527. DSYMUTIL=$lt_DSYMUTIL
  23528. # Tool to change global to local symbols on Mac OS X.
  23529. NMEDIT=$lt_NMEDIT
  23530. # Tool to manipulate fat objects and archives on Mac OS X.
  23531. LIPO=$lt_LIPO
  23532. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23533. OTOOL=$lt_OTOOL
  23534. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23535. OTOOL64=$lt_OTOOL64
  23536. # Old archive suffix (normally "a").
  23537. libext=$libext
  23538. # Shared library suffix (normally ".so").
  23539. shrext_cmds=$lt_shrext_cmds
  23540. # The commands to extract the exported symbol list from a shared archive.
  23541. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23542. # Variables whose values should be saved in libtool wrapper scripts and
  23543. # restored at link time.
  23544. variables_saved_for_relink=$lt_variables_saved_for_relink
  23545. # Do we need the "lib" prefix for modules?
  23546. need_lib_prefix=$need_lib_prefix
  23547. # Do we need a version for libraries?
  23548. need_version=$need_version
  23549. # Library versioning type.
  23550. version_type=$version_type
  23551. # Shared library runtime path variable.
  23552. runpath_var=$runpath_var
  23553. # Shared library path variable.
  23554. shlibpath_var=$shlibpath_var
  23555. # Is shlibpath searched before the hard-coded library search path?
  23556. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23557. # Format of library name prefix.
  23558. libname_spec=$lt_libname_spec
  23559. # List of archive names. First name is the real one, the rest are links.
  23560. # The last name is the one that the linker finds with -lNAME
  23561. library_names_spec=$lt_library_names_spec
  23562. # The coded name of the library, if different from the real name.
  23563. soname_spec=$lt_soname_spec
  23564. # Permission mode override for installation of shared libraries.
  23565. install_override_mode=$lt_install_override_mode
  23566. # Command to use after installation of a shared archive.
  23567. postinstall_cmds=$lt_postinstall_cmds
  23568. # Command to use after uninstallation of a shared archive.
  23569. postuninstall_cmds=$lt_postuninstall_cmds
  23570. # Commands used to finish a libtool library installation in a directory.
  23571. finish_cmds=$lt_finish_cmds
  23572. # As "finish_cmds", except a single script fragment to be evaled but
  23573. # not shown.
  23574. finish_eval=$lt_finish_eval
  23575. # Whether we should hardcode library paths into libraries.
  23576. hardcode_into_libs=$hardcode_into_libs
  23577. # Compile-time system search path for libraries.
  23578. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23579. # Run-time system search path for libraries.
  23580. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23581. # Whether dlopen is supported.
  23582. dlopen_support=$enable_dlopen
  23583. # Whether dlopen of programs is supported.
  23584. dlopen_self=$enable_dlopen_self
  23585. # Whether dlopen of statically linked programs is supported.
  23586. dlopen_self_static=$enable_dlopen_self_static
  23587. # Commands to strip libraries.
  23588. old_striplib=$lt_old_striplib
  23589. striplib=$lt_striplib
  23590. # The linker used to build libraries.
  23591. LD=$lt_LD
  23592. # How to create reloadable object files.
  23593. reload_flag=$lt_reload_flag
  23594. reload_cmds=$lt_reload_cmds
  23595. # Commands used to build an old-style archive.
  23596. old_archive_cmds=$lt_old_archive_cmds
  23597. # A language specific compiler.
  23598. CC=$lt_compiler
  23599. # Is the compiler the GNU compiler?
  23600. with_gcc=$GCC
  23601. # Compiler flag to turn off builtin functions.
  23602. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23603. # Additional compiler flags for building library objects.
  23604. pic_flag=$lt_lt_prog_compiler_pic
  23605. # How to pass a linker flag through the compiler.
  23606. wl=$lt_lt_prog_compiler_wl
  23607. # Compiler flag to prevent dynamic linking.
  23608. link_static_flag=$lt_lt_prog_compiler_static
  23609. # Does compiler simultaneously support -c and -o options?
  23610. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23611. # Whether or not to add -lc for building shared libraries.
  23612. build_libtool_need_lc=$archive_cmds_need_lc
  23613. # Whether or not to disallow shared libs when runtime libs are static.
  23614. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23615. # Compiler flag to allow reflexive dlopens.
  23616. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23617. # Compiler flag to generate shared objects directly from archives.
  23618. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23619. # Whether the compiler copes with passing no objects directly.
  23620. compiler_needs_object=$lt_compiler_needs_object
  23621. # Create an old-style archive from a shared archive.
  23622. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23623. # Create a temporary old-style archive to link instead of a shared archive.
  23624. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23625. # Commands used to build a shared archive.
  23626. archive_cmds=$lt_archive_cmds
  23627. archive_expsym_cmds=$lt_archive_expsym_cmds
  23628. # Commands used to build a loadable module if different from building
  23629. # a shared archive.
  23630. module_cmds=$lt_module_cmds
  23631. module_expsym_cmds=$lt_module_expsym_cmds
  23632. # Whether we are building with GNU ld or not.
  23633. with_gnu_ld=$lt_with_gnu_ld
  23634. # Flag that allows shared libraries with undefined symbols to be built.
  23635. allow_undefined_flag=$lt_allow_undefined_flag
  23636. # Flag that enforces no undefined symbols.
  23637. no_undefined_flag=$lt_no_undefined_flag
  23638. # Flag to hardcode \$libdir into a binary during linking.
  23639. # This must work even if \$libdir does not exist
  23640. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23641. # Whether we need a single "-rpath" flag with a separated argument.
  23642. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23643. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23644. # DIR into the resulting binary.
  23645. hardcode_direct=$hardcode_direct
  23646. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23647. # DIR into the resulting binary and the resulting library dependency is
  23648. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23649. # library is relocated.
  23650. hardcode_direct_absolute=$hardcode_direct_absolute
  23651. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23652. # into the resulting binary.
  23653. hardcode_minus_L=$hardcode_minus_L
  23654. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23655. # into the resulting binary.
  23656. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23657. # Set to "yes" if building a shared library automatically hardcodes DIR
  23658. # into the library and all subsequent libraries and executables linked
  23659. # against it.
  23660. hardcode_automatic=$hardcode_automatic
  23661. # Set to yes if linker adds runtime paths of dependent libraries
  23662. # to runtime path list.
  23663. inherit_rpath=$inherit_rpath
  23664. # Whether libtool must link a program against all its dependency libraries.
  23665. link_all_deplibs=$link_all_deplibs
  23666. # Set to "yes" if exported symbols are required.
  23667. always_export_symbols=$always_export_symbols
  23668. # The commands to list exported symbols.
  23669. export_symbols_cmds=$lt_export_symbols_cmds
  23670. # Symbols that should not be listed in the preloaded symbols.
  23671. exclude_expsyms=$lt_exclude_expsyms
  23672. # Symbols that must always be exported.
  23673. include_expsyms=$lt_include_expsyms
  23674. # Commands necessary for linking programs (against libraries) with templates.
  23675. prelink_cmds=$lt_prelink_cmds
  23676. # Commands necessary for finishing linking programs.
  23677. postlink_cmds=$lt_postlink_cmds
  23678. # Specify filename containing input files.
  23679. file_list_spec=$lt_file_list_spec
  23680. # How to hardcode a shared library path into an executable.
  23681. hardcode_action=$hardcode_action
  23682. # The directories searched by this compiler when creating a shared library.
  23683. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23684. # Dependencies to place before and after the objects being linked to
  23685. # create a shared library.
  23686. predep_objects=$lt_predep_objects
  23687. postdep_objects=$lt_postdep_objects
  23688. predeps=$lt_predeps
  23689. postdeps=$lt_postdeps
  23690. # The library search path used internally by the compiler when linking
  23691. # a shared library.
  23692. compiler_lib_search_path=$lt_compiler_lib_search_path
  23693. # ### END LIBTOOL CONFIG
  23694. _LT_EOF
  23695. case $host_os in
  23696. aix3*)
  23697. cat <<\_LT_EOF >> "$cfgfile"
  23698. # AIX sometimes has problems with the GCC collect2 program. For some
  23699. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23700. # vanish in a puff of smoke.
  23701. if test "X${COLLECT_NAMES+set}" != Xset; then
  23702. COLLECT_NAMES=
  23703. export COLLECT_NAMES
  23704. fi
  23705. _LT_EOF
  23706. ;;
  23707. esac
  23708. ltmain="$ac_aux_dir/ltmain.sh"
  23709. # We use sed instead of cat because bash on DJGPP gets confused if
  23710. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23711. # text mode, it properly converts lines to CR/LF. This bash problem
  23712. # is reportedly fixed, but why not run on old versions too?
  23713. sed '$q' "$ltmain" >> "$cfgfile" \
  23714. || (rm -f "$cfgfile"; exit 1)
  23715. if test x"$xsi_shell" = xyes; then
  23716. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23717. func_dirname ()\
  23718. {\
  23719. \ case ${1} in\
  23720. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23721. \ * ) func_dirname_result="${3}" ;;\
  23722. \ esac\
  23723. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23724. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23725. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23726. test 0 -eq $? || _lt_function_replace_fail=:
  23727. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23728. func_basename ()\
  23729. {\
  23730. \ func_basename_result="${1##*/}"\
  23731. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23732. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23733. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23734. test 0 -eq $? || _lt_function_replace_fail=:
  23735. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23736. func_dirname_and_basename ()\
  23737. {\
  23738. \ case ${1} in\
  23739. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23740. \ * ) func_dirname_result="${3}" ;;\
  23741. \ esac\
  23742. \ func_basename_result="${1##*/}"\
  23743. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23744. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23745. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23746. test 0 -eq $? || _lt_function_replace_fail=:
  23747. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23748. func_stripname ()\
  23749. {\
  23750. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23751. \ # positional parameters, so assign one to ordinary parameter first.\
  23752. \ func_stripname_result=${3}\
  23753. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23754. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23755. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23756. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23757. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23758. test 0 -eq $? || _lt_function_replace_fail=:
  23759. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23760. func_split_long_opt ()\
  23761. {\
  23762. \ func_split_long_opt_name=${1%%=*}\
  23763. \ func_split_long_opt_arg=${1#*=}\
  23764. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23765. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23766. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23767. test 0 -eq $? || _lt_function_replace_fail=:
  23768. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23769. func_split_short_opt ()\
  23770. {\
  23771. \ func_split_short_opt_arg=${1#??}\
  23772. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23773. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23774. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23775. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23776. test 0 -eq $? || _lt_function_replace_fail=:
  23777. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23778. func_lo2o ()\
  23779. {\
  23780. \ case ${1} in\
  23781. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23782. \ *) func_lo2o_result=${1} ;;\
  23783. \ esac\
  23784. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23785. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23786. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23787. test 0 -eq $? || _lt_function_replace_fail=:
  23788. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23789. func_xform ()\
  23790. {\
  23791. func_xform_result=${1%.*}.lo\
  23792. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23793. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23794. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23795. test 0 -eq $? || _lt_function_replace_fail=:
  23796. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23797. func_arith ()\
  23798. {\
  23799. func_arith_result=$(( $* ))\
  23800. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23801. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23802. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23803. test 0 -eq $? || _lt_function_replace_fail=:
  23804. sed -e '/^func_len ()$/,/^} # func_len /c\
  23805. func_len ()\
  23806. {\
  23807. func_len_result=${#1}\
  23808. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23809. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23810. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23811. test 0 -eq $? || _lt_function_replace_fail=:
  23812. fi
  23813. if test x"$lt_shell_append" = xyes; then
  23814. sed -e '/^func_append ()$/,/^} # func_append /c\
  23815. func_append ()\
  23816. {\
  23817. eval "${1}+=\\${2}"\
  23818. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23819. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23820. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23821. test 0 -eq $? || _lt_function_replace_fail=:
  23822. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23823. func_append_quoted ()\
  23824. {\
  23825. \ func_quote_for_eval "${2}"\
  23826. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23827. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23828. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23829. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23830. test 0 -eq $? || _lt_function_replace_fail=:
  23831. # Save a `func_append' function call where possible by direct use of '+='
  23832. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23833. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23834. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23835. test 0 -eq $? || _lt_function_replace_fail=:
  23836. else
  23837. # Save a `func_append' function call even when '+=' is not available
  23838. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23839. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23840. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23841. test 0 -eq $? || _lt_function_replace_fail=:
  23842. fi
  23843. if test x"$_lt_function_replace_fail" = x":"; then
  23844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23845. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23846. fi
  23847. mv -f "$cfgfile" "$ofile" ||
  23848. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23849. chmod +x "$ofile"
  23850. cat <<_LT_EOF >> "$ofile"
  23851. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23852. # The linker used to build libraries.
  23853. LD=$lt_LD_CXX
  23854. # How to create reloadable object files.
  23855. reload_flag=$lt_reload_flag_CXX
  23856. reload_cmds=$lt_reload_cmds_CXX
  23857. # Commands used to build an old-style archive.
  23858. old_archive_cmds=$lt_old_archive_cmds_CXX
  23859. # A language specific compiler.
  23860. CC=$lt_compiler_CXX
  23861. # Is the compiler the GNU compiler?
  23862. with_gcc=$GCC_CXX
  23863. # Compiler flag to turn off builtin functions.
  23864. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23865. # Additional compiler flags for building library objects.
  23866. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23867. # How to pass a linker flag through the compiler.
  23868. wl=$lt_lt_prog_compiler_wl_CXX
  23869. # Compiler flag to prevent dynamic linking.
  23870. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23871. # Does compiler simultaneously support -c and -o options?
  23872. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23873. # Whether or not to add -lc for building shared libraries.
  23874. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23875. # Whether or not to disallow shared libs when runtime libs are static.
  23876. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23877. # Compiler flag to allow reflexive dlopens.
  23878. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23879. # Compiler flag to generate shared objects directly from archives.
  23880. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23881. # Whether the compiler copes with passing no objects directly.
  23882. compiler_needs_object=$lt_compiler_needs_object_CXX
  23883. # Create an old-style archive from a shared archive.
  23884. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23885. # Create a temporary old-style archive to link instead of a shared archive.
  23886. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23887. # Commands used to build a shared archive.
  23888. archive_cmds=$lt_archive_cmds_CXX
  23889. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23890. # Commands used to build a loadable module if different from building
  23891. # a shared archive.
  23892. module_cmds=$lt_module_cmds_CXX
  23893. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23894. # Whether we are building with GNU ld or not.
  23895. with_gnu_ld=$lt_with_gnu_ld_CXX
  23896. # Flag that allows shared libraries with undefined symbols to be built.
  23897. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23898. # Flag that enforces no undefined symbols.
  23899. no_undefined_flag=$lt_no_undefined_flag_CXX
  23900. # Flag to hardcode \$libdir into a binary during linking.
  23901. # This must work even if \$libdir does not exist
  23902. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23903. # Whether we need a single "-rpath" flag with a separated argument.
  23904. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23905. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23906. # DIR into the resulting binary.
  23907. hardcode_direct=$hardcode_direct_CXX
  23908. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23909. # DIR into the resulting binary and the resulting library dependency is
  23910. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23911. # library is relocated.
  23912. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23913. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23914. # into the resulting binary.
  23915. hardcode_minus_L=$hardcode_minus_L_CXX
  23916. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23917. # into the resulting binary.
  23918. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23919. # Set to "yes" if building a shared library automatically hardcodes DIR
  23920. # into the library and all subsequent libraries and executables linked
  23921. # against it.
  23922. hardcode_automatic=$hardcode_automatic_CXX
  23923. # Set to yes if linker adds runtime paths of dependent libraries
  23924. # to runtime path list.
  23925. inherit_rpath=$inherit_rpath_CXX
  23926. # Whether libtool must link a program against all its dependency libraries.
  23927. link_all_deplibs=$link_all_deplibs_CXX
  23928. # Set to "yes" if exported symbols are required.
  23929. always_export_symbols=$always_export_symbols_CXX
  23930. # The commands to list exported symbols.
  23931. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23932. # Symbols that should not be listed in the preloaded symbols.
  23933. exclude_expsyms=$lt_exclude_expsyms_CXX
  23934. # Symbols that must always be exported.
  23935. include_expsyms=$lt_include_expsyms_CXX
  23936. # Commands necessary for linking programs (against libraries) with templates.
  23937. prelink_cmds=$lt_prelink_cmds_CXX
  23938. # Commands necessary for finishing linking programs.
  23939. postlink_cmds=$lt_postlink_cmds_CXX
  23940. # Specify filename containing input files.
  23941. file_list_spec=$lt_file_list_spec_CXX
  23942. # How to hardcode a shared library path into an executable.
  23943. hardcode_action=$hardcode_action_CXX
  23944. # The directories searched by this compiler when creating a shared library.
  23945. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23946. # Dependencies to place before and after the objects being linked to
  23947. # create a shared library.
  23948. predep_objects=$lt_predep_objects_CXX
  23949. postdep_objects=$lt_postdep_objects_CXX
  23950. predeps=$lt_predeps_CXX
  23951. postdeps=$lt_postdeps_CXX
  23952. # The library search path used internally by the compiler when linking
  23953. # a shared library.
  23954. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23955. # ### END LIBTOOL TAG CONFIG: CXX
  23956. _LT_EOF
  23957. ;;
  23958. "sdl2_config":C) chmod a+x sdl2-config ;;
  23959. "summary":C) echo -en "$SUMMARY" ;;
  23960. esac
  23961. done # for ac_tag
  23962. as_fn_exit 0
  23963. _ACEOF
  23964. ac_clean_files=$ac_clean_files_save
  23965. test $ac_write_fail = 0 ||
  23966. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23967. # configure is writing to config.log, and then calls config.status.
  23968. # config.status does its own redirection, appending to config.log.
  23969. # Unfortunately, on DOS this fails, as config.log is still kept open
  23970. # by configure, so config.status won't be able to write to it; its
  23971. # output is simply discarded. So we exec the FD to /dev/null,
  23972. # effectively closing config.log, so it can be properly (re)opened and
  23973. # appended to by config.status. When coming back to configure, we
  23974. # need to make the FD available again.
  23975. if test "$no_create" != yes; then
  23976. ac_cs_success=:
  23977. ac_config_status_args=
  23978. test "$silent" = yes &&
  23979. ac_config_status_args="$ac_config_status_args --quiet"
  23980. exec 5>/dev/null
  23981. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23982. exec 5>>config.log
  23983. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23984. # would make configure fail if this is the last instruction.
  23985. $ac_cs_success || as_fn_exit 1
  23986. fi
  23987. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23989. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23990. fi