configure 807 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566
  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. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_sensor
  737. enable_power
  738. enable_filesystem
  739. enable_threads
  740. enable_timers
  741. enable_file
  742. enable_loadso
  743. enable_cpuinfo
  744. enable_assembly
  745. enable_ssemath
  746. enable_mmx
  747. enable_3dnow
  748. enable_sse
  749. enable_sse2
  750. enable_sse3
  751. enable_altivec
  752. enable_oss
  753. enable_alsa
  754. with_alsa_prefix
  755. with_alsa_inc_prefix
  756. enable_alsatest
  757. enable_alsa_shared
  758. enable_jack
  759. enable_jack_shared
  760. enable_esd
  761. with_esd_prefix
  762. with_esd_exec_prefix
  763. enable_esdtest
  764. enable_esd_shared
  765. enable_pulseaudio
  766. enable_pulseaudio_shared
  767. enable_arts
  768. enable_arts_shared
  769. enable_nas
  770. enable_nas_shared
  771. enable_sndio
  772. enable_sndio_shared
  773. enable_fusionsound
  774. enable_fusionsound_shared
  775. enable_diskaudio
  776. enable_dummyaudio
  777. enable_libsamplerate
  778. enable_libsamplerate_shared
  779. enable_video_wayland
  780. enable_video_wayland_qt_touch
  781. enable_wayland_shared
  782. enable_video_mir
  783. enable_mir_shared
  784. enable_video_rpi
  785. enable_video_x11
  786. with_x
  787. enable_x11_shared
  788. enable_video_x11_xcursor
  789. enable_video_x11_xdbe
  790. enable_video_x11_xinerama
  791. enable_video_x11_xinput
  792. enable_video_x11_xrandr
  793. enable_video_x11_scrnsaver
  794. enable_video_x11_xshape
  795. enable_video_x11_vm
  796. enable_video_vivante
  797. enable_video_cocoa
  798. enable_render_metal
  799. enable_video_directfb
  800. enable_directfb_shared
  801. enable_video_kmsdrm
  802. enable_kmsdrm_shared
  803. enable_video_dummy
  804. enable_video_opengl
  805. enable_video_opengles
  806. enable_video_opengles1
  807. enable_video_opengles2
  808. enable_video_vulkan
  809. enable_libudev
  810. enable_dbus
  811. enable_ime
  812. enable_ibus
  813. enable_fcitx
  814. enable_input_tslib
  815. enable_pthreads
  816. enable_pthread_sem
  817. enable_directx
  818. enable_wasapi
  819. enable_sdl_dlopen
  820. enable_hidapi
  821. enable_clock_gettime
  822. enable_rpath
  823. enable_render_d3d
  824. '
  825. ac_precious_vars='build_alias
  826. host_alias
  827. target_alias
  828. CC
  829. CFLAGS
  830. LDFLAGS
  831. LIBS
  832. CPPFLAGS
  833. CPP
  834. CXX
  835. CXXFLAGS
  836. CCC
  837. CXXCPP
  838. XMKMF'
  839. # Initialize some variables set by options.
  840. ac_init_help=
  841. ac_init_version=false
  842. ac_unrecognized_opts=
  843. ac_unrecognized_sep=
  844. # The variables have the same names as the options, with
  845. # dashes changed to underlines.
  846. cache_file=/dev/null
  847. exec_prefix=NONE
  848. no_create=
  849. no_recursion=
  850. prefix=NONE
  851. program_prefix=NONE
  852. program_suffix=NONE
  853. program_transform_name=s,x,x,
  854. silent=
  855. site=
  856. srcdir=
  857. verbose=
  858. x_includes=NONE
  859. x_libraries=NONE
  860. # Installation directory options.
  861. # These are left unexpanded so users can "make install exec_prefix=/foo"
  862. # and all the variables that are supposed to be based on exec_prefix
  863. # by default will actually change.
  864. # Use braces instead of parens because sh, perl, etc. also accept them.
  865. # (The list follows the same order as the GNU Coding Standards.)
  866. bindir='${exec_prefix}/bin'
  867. sbindir='${exec_prefix}/sbin'
  868. libexecdir='${exec_prefix}/libexec'
  869. datarootdir='${prefix}/share'
  870. datadir='${datarootdir}'
  871. sysconfdir='${prefix}/etc'
  872. sharedstatedir='${prefix}/com'
  873. localstatedir='${prefix}/var'
  874. includedir='${prefix}/include'
  875. oldincludedir='/usr/include'
  876. docdir='${datarootdir}/doc/${PACKAGE}'
  877. infodir='${datarootdir}/info'
  878. htmldir='${docdir}'
  879. dvidir='${docdir}'
  880. pdfdir='${docdir}'
  881. psdir='${docdir}'
  882. libdir='${exec_prefix}/lib'
  883. localedir='${datarootdir}/locale'
  884. mandir='${datarootdir}/man'
  885. ac_prev=
  886. ac_dashdash=
  887. for ac_option
  888. do
  889. # If the previous option needs an argument, assign it.
  890. if test -n "$ac_prev"; then
  891. eval $ac_prev=\$ac_option
  892. ac_prev=
  893. continue
  894. fi
  895. case $ac_option in
  896. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  897. *=) ac_optarg= ;;
  898. *) ac_optarg=yes ;;
  899. esac
  900. # Accept the important Cygnus configure options, so we can diagnose typos.
  901. case $ac_dashdash$ac_option in
  902. --)
  903. ac_dashdash=yes ;;
  904. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  905. ac_prev=bindir ;;
  906. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  907. bindir=$ac_optarg ;;
  908. -build | --build | --buil | --bui | --bu)
  909. ac_prev=build_alias ;;
  910. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  911. build_alias=$ac_optarg ;;
  912. -cache-file | --cache-file | --cache-fil | --cache-fi \
  913. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  914. ac_prev=cache_file ;;
  915. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  916. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  917. cache_file=$ac_optarg ;;
  918. --config-cache | -C)
  919. cache_file=config.cache ;;
  920. -datadir | --datadir | --datadi | --datad)
  921. ac_prev=datadir ;;
  922. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  923. datadir=$ac_optarg ;;
  924. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  925. | --dataroo | --dataro | --datar)
  926. ac_prev=datarootdir ;;
  927. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  928. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  929. datarootdir=$ac_optarg ;;
  930. -disable-* | --disable-*)
  931. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  932. # Reject names that are not valid shell variable names.
  933. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  934. as_fn_error $? "invalid feature name: $ac_useropt"
  935. ac_useropt_orig=$ac_useropt
  936. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  937. case $ac_user_opts in
  938. *"
  939. "enable_$ac_useropt"
  940. "*) ;;
  941. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  942. ac_unrecognized_sep=', ';;
  943. esac
  944. eval enable_$ac_useropt=no ;;
  945. -docdir | --docdir | --docdi | --doc | --do)
  946. ac_prev=docdir ;;
  947. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  948. docdir=$ac_optarg ;;
  949. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  950. ac_prev=dvidir ;;
  951. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  952. dvidir=$ac_optarg ;;
  953. -enable-* | --enable-*)
  954. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  955. # Reject names that are not valid shell variable names.
  956. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  957. as_fn_error $? "invalid feature name: $ac_useropt"
  958. ac_useropt_orig=$ac_useropt
  959. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  960. case $ac_user_opts in
  961. *"
  962. "enable_$ac_useropt"
  963. "*) ;;
  964. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  965. ac_unrecognized_sep=', ';;
  966. esac
  967. eval enable_$ac_useropt=\$ac_optarg ;;
  968. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  969. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  970. | --exec | --exe | --ex)
  971. ac_prev=exec_prefix ;;
  972. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  973. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  974. | --exec=* | --exe=* | --ex=*)
  975. exec_prefix=$ac_optarg ;;
  976. -gas | --gas | --ga | --g)
  977. # Obsolete; use --with-gas.
  978. with_gas=yes ;;
  979. -help | --help | --hel | --he | -h)
  980. ac_init_help=long ;;
  981. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  982. ac_init_help=recursive ;;
  983. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  984. ac_init_help=short ;;
  985. -host | --host | --hos | --ho)
  986. ac_prev=host_alias ;;
  987. -host=* | --host=* | --hos=* | --ho=*)
  988. host_alias=$ac_optarg ;;
  989. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  990. ac_prev=htmldir ;;
  991. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  992. | --ht=*)
  993. htmldir=$ac_optarg ;;
  994. -includedir | --includedir | --includedi | --included | --include \
  995. | --includ | --inclu | --incl | --inc)
  996. ac_prev=includedir ;;
  997. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  998. | --includ=* | --inclu=* | --incl=* | --inc=*)
  999. includedir=$ac_optarg ;;
  1000. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1001. ac_prev=infodir ;;
  1002. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1003. infodir=$ac_optarg ;;
  1004. -libdir | --libdir | --libdi | --libd)
  1005. ac_prev=libdir ;;
  1006. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1007. libdir=$ac_optarg ;;
  1008. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1009. | --libexe | --libex | --libe)
  1010. ac_prev=libexecdir ;;
  1011. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1012. | --libexe=* | --libex=* | --libe=*)
  1013. libexecdir=$ac_optarg ;;
  1014. -localedir | --localedir | --localedi | --localed | --locale)
  1015. ac_prev=localedir ;;
  1016. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1017. localedir=$ac_optarg ;;
  1018. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1019. | --localstate | --localstat | --localsta | --localst | --locals)
  1020. ac_prev=localstatedir ;;
  1021. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1022. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1023. localstatedir=$ac_optarg ;;
  1024. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1025. ac_prev=mandir ;;
  1026. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1027. mandir=$ac_optarg ;;
  1028. -nfp | --nfp | --nf)
  1029. # Obsolete; use --without-fp.
  1030. with_fp=no ;;
  1031. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1032. | --no-cr | --no-c | -n)
  1033. no_create=yes ;;
  1034. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1035. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1036. no_recursion=yes ;;
  1037. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1038. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1039. | --oldin | --oldi | --old | --ol | --o)
  1040. ac_prev=oldincludedir ;;
  1041. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1042. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1043. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1044. oldincludedir=$ac_optarg ;;
  1045. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1046. ac_prev=prefix ;;
  1047. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1048. prefix=$ac_optarg ;;
  1049. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1050. | --program-pre | --program-pr | --program-p)
  1051. ac_prev=program_prefix ;;
  1052. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1053. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1054. program_prefix=$ac_optarg ;;
  1055. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1056. | --program-suf | --program-su | --program-s)
  1057. ac_prev=program_suffix ;;
  1058. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1059. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1060. program_suffix=$ac_optarg ;;
  1061. -program-transform-name | --program-transform-name \
  1062. | --program-transform-nam | --program-transform-na \
  1063. | --program-transform-n | --program-transform- \
  1064. | --program-transform | --program-transfor \
  1065. | --program-transfo | --program-transf \
  1066. | --program-trans | --program-tran \
  1067. | --progr-tra | --program-tr | --program-t)
  1068. ac_prev=program_transform_name ;;
  1069. -program-transform-name=* | --program-transform-name=* \
  1070. | --program-transform-nam=* | --program-transform-na=* \
  1071. | --program-transform-n=* | --program-transform-=* \
  1072. | --program-transform=* | --program-transfor=* \
  1073. | --program-transfo=* | --program-transf=* \
  1074. | --program-trans=* | --program-tran=* \
  1075. | --progr-tra=* | --program-tr=* | --program-t=*)
  1076. program_transform_name=$ac_optarg ;;
  1077. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1078. ac_prev=pdfdir ;;
  1079. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1080. pdfdir=$ac_optarg ;;
  1081. -psdir | --psdir | --psdi | --psd | --ps)
  1082. ac_prev=psdir ;;
  1083. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1084. psdir=$ac_optarg ;;
  1085. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1086. | -silent | --silent | --silen | --sile | --sil)
  1087. silent=yes ;;
  1088. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1089. ac_prev=sbindir ;;
  1090. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1091. | --sbi=* | --sb=*)
  1092. sbindir=$ac_optarg ;;
  1093. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1094. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1095. | --sharedst | --shareds | --shared | --share | --shar \
  1096. | --sha | --sh)
  1097. ac_prev=sharedstatedir ;;
  1098. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1099. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1100. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1101. | --sha=* | --sh=*)
  1102. sharedstatedir=$ac_optarg ;;
  1103. -site | --site | --sit)
  1104. ac_prev=site ;;
  1105. -site=* | --site=* | --sit=*)
  1106. site=$ac_optarg ;;
  1107. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1108. ac_prev=srcdir ;;
  1109. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1110. srcdir=$ac_optarg ;;
  1111. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1112. | --syscon | --sysco | --sysc | --sys | --sy)
  1113. ac_prev=sysconfdir ;;
  1114. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1115. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1116. sysconfdir=$ac_optarg ;;
  1117. -target | --target | --targe | --targ | --tar | --ta | --t)
  1118. ac_prev=target_alias ;;
  1119. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1120. target_alias=$ac_optarg ;;
  1121. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1122. verbose=yes ;;
  1123. -version | --version | --versio | --versi | --vers | -V)
  1124. ac_init_version=: ;;
  1125. -with-* | --with-*)
  1126. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1127. # Reject names that are not valid shell variable names.
  1128. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1129. as_fn_error $? "invalid package name: $ac_useropt"
  1130. ac_useropt_orig=$ac_useropt
  1131. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1132. case $ac_user_opts in
  1133. *"
  1134. "with_$ac_useropt"
  1135. "*) ;;
  1136. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1137. ac_unrecognized_sep=', ';;
  1138. esac
  1139. eval with_$ac_useropt=\$ac_optarg ;;
  1140. -without-* | --without-*)
  1141. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1142. # Reject names that are not valid shell variable names.
  1143. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1144. as_fn_error $? "invalid package name: $ac_useropt"
  1145. ac_useropt_orig=$ac_useropt
  1146. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1147. case $ac_user_opts in
  1148. *"
  1149. "with_$ac_useropt"
  1150. "*) ;;
  1151. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1152. ac_unrecognized_sep=', ';;
  1153. esac
  1154. eval with_$ac_useropt=no ;;
  1155. --x)
  1156. # Obsolete; use --with-x.
  1157. with_x=yes ;;
  1158. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1159. | --x-incl | --x-inc | --x-in | --x-i)
  1160. ac_prev=x_includes ;;
  1161. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1162. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1163. x_includes=$ac_optarg ;;
  1164. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1165. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1166. ac_prev=x_libraries ;;
  1167. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1168. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1169. x_libraries=$ac_optarg ;;
  1170. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1171. Try \`$0 --help' for more information"
  1172. ;;
  1173. *=*)
  1174. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1175. # Reject names that are not valid shell variable names.
  1176. case $ac_envvar in #(
  1177. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1178. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1179. esac
  1180. eval $ac_envvar=\$ac_optarg
  1181. export $ac_envvar ;;
  1182. *)
  1183. # FIXME: should be removed in autoconf 3.0.
  1184. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1185. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1186. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1187. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1188. ;;
  1189. esac
  1190. done
  1191. if test -n "$ac_prev"; then
  1192. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1193. as_fn_error $? "missing argument to $ac_option"
  1194. fi
  1195. if test -n "$ac_unrecognized_opts"; then
  1196. case $enable_option_checking in
  1197. no) ;;
  1198. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1199. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1200. esac
  1201. fi
  1202. # Check all directory arguments for consistency.
  1203. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1204. datadir sysconfdir sharedstatedir localstatedir includedir \
  1205. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1206. libdir localedir mandir
  1207. do
  1208. eval ac_val=\$$ac_var
  1209. # Remove trailing slashes.
  1210. case $ac_val in
  1211. */ )
  1212. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1213. eval $ac_var=\$ac_val;;
  1214. esac
  1215. # Be sure to have absolute directory names.
  1216. case $ac_val in
  1217. [\\/$]* | ?:[\\/]* ) continue;;
  1218. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1219. esac
  1220. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1221. done
  1222. # There might be people who depend on the old broken behavior: `$host'
  1223. # used to hold the argument of --host etc.
  1224. # FIXME: To remove some day.
  1225. build=$build_alias
  1226. host=$host_alias
  1227. target=$target_alias
  1228. # FIXME: To remove some day.
  1229. if test "x$host_alias" != x; then
  1230. if test "x$build_alias" = x; then
  1231. cross_compiling=maybe
  1232. elif test "x$build_alias" != "x$host_alias"; then
  1233. cross_compiling=yes
  1234. fi
  1235. fi
  1236. ac_tool_prefix=
  1237. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1238. test "$silent" = yes && exec 6>/dev/null
  1239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1240. ac_ls_di=`ls -di .` &&
  1241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1242. as_fn_error $? "working directory cannot be determined"
  1243. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1244. as_fn_error $? "pwd does not report name of working directory"
  1245. # Find the source files, if location was not specified.
  1246. if test -z "$srcdir"; then
  1247. ac_srcdir_defaulted=yes
  1248. # Try the directory containing this script, then the parent directory.
  1249. ac_confdir=`$as_dirname -- "$as_myself" ||
  1250. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1251. X"$as_myself" : 'X\(//\)[^/]' \| \
  1252. X"$as_myself" : 'X\(//\)$' \| \
  1253. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1254. $as_echo X"$as_myself" |
  1255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)[^/].*/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\/\)$/{
  1264. s//\1/
  1265. q
  1266. }
  1267. /^X\(\/\).*/{
  1268. s//\1/
  1269. q
  1270. }
  1271. s/.*/./; q'`
  1272. srcdir=$ac_confdir
  1273. if test ! -r "$srcdir/$ac_unique_file"; then
  1274. srcdir=..
  1275. fi
  1276. else
  1277. ac_srcdir_defaulted=no
  1278. fi
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1281. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1282. fi
  1283. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1284. ac_abs_confdir=`(
  1285. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1286. pwd)`
  1287. # When building in place, set srcdir=.
  1288. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1289. srcdir=.
  1290. fi
  1291. # Remove unnecessary trailing slashes from srcdir.
  1292. # Double slashes in file names in object file debugging info
  1293. # mess up M-x gdb in Emacs.
  1294. case $srcdir in
  1295. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1296. esac
  1297. for ac_var in $ac_precious_vars; do
  1298. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_env_${ac_var}_value=\$${ac_var}
  1300. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1301. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1302. done
  1303. #
  1304. # Report the --help message.
  1305. #
  1306. if test "$ac_init_help" = "long"; then
  1307. # Omit some internal or obsolete options to make the list less imposing.
  1308. # This message is too long to be a string in the A/UX 3.1 sh.
  1309. cat <<_ACEOF
  1310. \`configure' configures this package to adapt to many kinds of systems.
  1311. Usage: $0 [OPTION]... [VAR=VALUE]...
  1312. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1313. VAR=VALUE. See below for descriptions of some of the useful variables.
  1314. Defaults for the options are specified in brackets.
  1315. Configuration:
  1316. -h, --help display this help and exit
  1317. --help=short display options specific to this package
  1318. --help=recursive display the short help of all the included packages
  1319. -V, --version display version information and exit
  1320. -q, --quiet, --silent do not print \`checking ...' messages
  1321. --cache-file=FILE cache test results in FILE [disabled]
  1322. -C, --config-cache alias for \`--cache-file=config.cache'
  1323. -n, --no-create do not create output files
  1324. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1325. Installation directories:
  1326. --prefix=PREFIX install architecture-independent files in PREFIX
  1327. [$ac_default_prefix]
  1328. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1329. [PREFIX]
  1330. By default, \`make install' will install all the files in
  1331. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1332. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1333. for instance \`--prefix=\$HOME'.
  1334. For better control, use the options below.
  1335. Fine tuning of the installation directories:
  1336. --bindir=DIR user executables [EPREFIX/bin]
  1337. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1338. --libexecdir=DIR program executables [EPREFIX/libexec]
  1339. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1340. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1341. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1342. --libdir=DIR object code libraries [EPREFIX/lib]
  1343. --includedir=DIR C header files [PREFIX/include]
  1344. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1345. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1346. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1347. --infodir=DIR info documentation [DATAROOTDIR/info]
  1348. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1349. --mandir=DIR man documentation [DATAROOTDIR/man]
  1350. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1351. --htmldir=DIR html documentation [DOCDIR]
  1352. --dvidir=DIR dvi documentation [DOCDIR]
  1353. --pdfdir=DIR pdf documentation [DOCDIR]
  1354. --psdir=DIR ps documentation [DOCDIR]
  1355. _ACEOF
  1356. cat <<\_ACEOF
  1357. X features:
  1358. --x-includes=DIR X include files are in DIR
  1359. --x-libraries=DIR X library files are in DIR
  1360. System types:
  1361. --build=BUILD configure for building on BUILD [guessed]
  1362. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1363. _ACEOF
  1364. fi
  1365. if test -n "$ac_init_help"; then
  1366. cat <<\_ACEOF
  1367. Optional Features:
  1368. --disable-option-checking ignore unrecognized --enable/--with options
  1369. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1370. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1371. --enable-shared[=PKGS] build shared libraries [default=yes]
  1372. --enable-static[=PKGS] build static libraries [default=yes]
  1373. --enable-fast-install[=PKGS]
  1374. optimize for fast installation [default=yes]
  1375. --disable-libtool-lock avoid locking (might break parallel builds)
  1376. --enable-assertions Enable internal sanity checks
  1377. (auto/disabled/release/enabled/paranoid)
  1378. [[default=auto]]
  1379. --enable-dependency-tracking
  1380. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1381. --enable-libc Use the system C library [[default=yes]]
  1382. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1383. --enable-atomic Enable the atomic operations subsystem
  1384. [[default=yes]]
  1385. --enable-audio Enable the audio subsystem [[default=yes]]
  1386. --enable-video Enable the video subsystem [[default=yes]]
  1387. --enable-render Enable the render subsystem [[default=yes]]
  1388. --enable-events Enable the events subsystem [[default=yes]]
  1389. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1390. --enable-haptic Enable the haptic (force feedback) subsystem
  1391. [[default=yes]]
  1392. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1393. --enable-power Enable the power subsystem [[default=yes]]
  1394. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1395. --enable-threads Enable the threading subsystem [[default=yes]]
  1396. --enable-timers Enable the timer subsystem [[default=yes]]
  1397. --enable-file Enable the file subsystem [[default=yes]]
  1398. --enable-loadso Enable the shared object loading subsystem
  1399. [[default=yes]]
  1400. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1401. --enable-assembly Enable assembly routines [[default=yes]]
  1402. --enable-ssemath Allow GCC to use SSE floating point math
  1403. [[default=maybe]]
  1404. --enable-mmx use MMX assembly routines [[default=yes]]
  1405. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1406. --enable-sse use SSE assembly routines [[default=yes]]
  1407. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1408. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1409. --enable-altivec use Altivec assembly routines [[default=yes]]
  1410. --enable-oss support the OSS audio API [[default=maybe]]
  1411. --enable-alsa support the ALSA audio API [[default=yes]]
  1412. --disable-alsatest Do not try to compile and run a test Alsa program
  1413. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1414. --enable-jack use JACK audio [[default=yes]]
  1415. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1416. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1417. --disable-esdtest Do not try to compile and run a test ESD program
  1418. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1419. --enable-pulseaudio use PulseAudio [[default=yes]]
  1420. --enable-pulseaudio-shared
  1421. dynamically load PulseAudio support [[default=yes]]
  1422. --enable-arts support the Analog Real Time Synthesizer
  1423. [[default=yes]]
  1424. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1425. --enable-nas support the NAS audio API [[default=yes]]
  1426. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1427. --enable-sndio support the sndio audio API [[default=yes]]
  1428. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1429. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1430. --enable-fusionsound-shared
  1431. dynamically load fusionsound audio support
  1432. [[default=yes]]
  1433. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1434. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1435. --enable-libsamplerate use libsamplerate for audio rate conversion
  1436. [[default=yes]]
  1437. --enable-libsamplerate-shared
  1438. dynamically load libsamplerate [[default=yes]]
  1439. --enable-video-wayland use Wayland video driver [[default=yes]]
  1440. --enable-video-wayland-qt-touch
  1441. QtWayland server support for Wayland video driver
  1442. [[default=yes]]
  1443. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1444. --enable-video-mir use Mir video driver [[default=no]]
  1445. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1446. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1447. --enable-video-x11 use X11 video driver [[default=yes]]
  1448. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1449. --enable-video-x11-xcursor
  1450. enable X11 Xcursor support [[default=yes]]
  1451. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1452. --enable-video-x11-xinerama
  1453. enable X11 Xinerama support [[default=yes]]
  1454. --enable-video-x11-xinput
  1455. enable X11 XInput extension for manymouse, tablets,
  1456. etc [[default=yes]]
  1457. --enable-video-x11-xrandr
  1458. enable X11 Xrandr extension for fullscreen
  1459. [[default=yes]]
  1460. --enable-video-x11-scrnsaver
  1461. enable X11 screensaver extension [[default=yes]]
  1462. --enable-video-x11-xshape
  1463. enable X11 XShape support [[default=yes]]
  1464. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1465. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1466. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1467. --enable-render-metal enable the Metal render driver [[default=yes]]
  1468. --enable-video-directfb use DirectFB video driver [[default=no]]
  1469. --enable-directfb-shared
  1470. dynamically load directfb support [[default=yes]]
  1471. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1472. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1473. --enable-video-dummy use dummy video driver [[default=yes]]
  1474. --enable-video-opengl include OpenGL support [[default=yes]]
  1475. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1476. --enable-video-opengles1
  1477. include OpenGL ES 1.1 support [[default=yes]]
  1478. --enable-video-opengles2
  1479. include OpenGL ES 2.0 support [[default=yes]]
  1480. --enable-video-vulkan include Vulkan support [[default=yes]]
  1481. --enable-libudev enable libudev support [[default=yes]]
  1482. --enable-dbus enable D-Bus support [[default=yes]]
  1483. --enable-ime enable IME support [[default=yes]]
  1484. --enable-ibus enable IBus support [[default=yes]]
  1485. --enable-fcitx enable fcitx support [[default=yes]]
  1486. --enable-input-tslib use the Touchscreen library for input
  1487. [[default=yes]]
  1488. --enable-pthreads use POSIX threads for multi-threading
  1489. [[default=yes]]
  1490. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1491. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1492. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1493. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1494. --enable-hidapi use HIDAPI for low level joystick drivers
  1495. [[default=no]]
  1496. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1497. UNIX [[default=yes]]
  1498. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1499. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1500. Optional Packages:
  1501. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1502. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1503. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1504. both]
  1505. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1506. --with-sysroot=DIR Search for dependent libraries within DIR
  1507. (or the compiler's sysroot if not specified).
  1508. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1509. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1510. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1511. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1512. --with-x use the X Window System
  1513. Some influential environment variables:
  1514. CC C compiler command
  1515. CFLAGS C compiler flags
  1516. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1517. nonstandard directory <lib dir>
  1518. LIBS libraries to pass to the linker, e.g. -l<library>
  1519. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1520. you have headers in a nonstandard directory <include dir>
  1521. CPP C preprocessor
  1522. CXX C++ compiler command
  1523. CXXFLAGS C++ compiler flags
  1524. CXXCPP C++ preprocessor
  1525. XMKMF Path to xmkmf, Makefile generator for X Window System
  1526. Use these variables to override the choices made by `configure' or to help
  1527. it to find libraries and programs with nonstandard names/locations.
  1528. Report bugs to the package provider.
  1529. _ACEOF
  1530. ac_status=$?
  1531. fi
  1532. if test "$ac_init_help" = "recursive"; then
  1533. # If there are subdirs, report their specific --help.
  1534. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1535. test -d "$ac_dir" ||
  1536. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1537. continue
  1538. ac_builddir=.
  1539. case "$ac_dir" in
  1540. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1541. *)
  1542. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1543. # A ".." for each directory in $ac_dir_suffix.
  1544. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1545. case $ac_top_builddir_sub in
  1546. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1547. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1548. esac ;;
  1549. esac
  1550. ac_abs_top_builddir=$ac_pwd
  1551. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1552. # for backward compatibility:
  1553. ac_top_builddir=$ac_top_build_prefix
  1554. case $srcdir in
  1555. .) # We are building in place.
  1556. ac_srcdir=.
  1557. ac_top_srcdir=$ac_top_builddir_sub
  1558. ac_abs_top_srcdir=$ac_pwd ;;
  1559. [\\/]* | ?:[\\/]* ) # Absolute name.
  1560. ac_srcdir=$srcdir$ac_dir_suffix;
  1561. ac_top_srcdir=$srcdir
  1562. ac_abs_top_srcdir=$srcdir ;;
  1563. *) # Relative name.
  1564. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1565. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1566. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1567. esac
  1568. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1569. cd "$ac_dir" || { ac_status=$?; continue; }
  1570. # Check for guested configure.
  1571. if test -f "$ac_srcdir/configure.gnu"; then
  1572. echo &&
  1573. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1574. elif test -f "$ac_srcdir/configure"; then
  1575. echo &&
  1576. $SHELL "$ac_srcdir/configure" --help=recursive
  1577. else
  1578. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1579. fi || ac_status=$?
  1580. cd "$ac_pwd" || { ac_status=$?; break; }
  1581. done
  1582. fi
  1583. test -n "$ac_init_help" && exit $ac_status
  1584. if $ac_init_version; then
  1585. cat <<\_ACEOF
  1586. configure
  1587. generated by GNU Autoconf 2.69
  1588. Copyright (C) 2012 Free Software Foundation, Inc.
  1589. This configure script is free software; the Free Software Foundation
  1590. gives unlimited permission to copy, distribute and modify it.
  1591. _ACEOF
  1592. exit
  1593. fi
  1594. ## ------------------------ ##
  1595. ## Autoconf initialization. ##
  1596. ## ------------------------ ##
  1597. # ac_fn_c_try_compile LINENO
  1598. # --------------------------
  1599. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1600. ac_fn_c_try_compile ()
  1601. {
  1602. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1603. rm -f conftest.$ac_objext
  1604. if { { ac_try="$ac_compile"
  1605. case "(($ac_try" in
  1606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1607. *) ac_try_echo=$ac_try;;
  1608. esac
  1609. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1610. $as_echo "$ac_try_echo"; } >&5
  1611. (eval "$ac_compile") 2>conftest.err
  1612. ac_status=$?
  1613. if test -s conftest.err; then
  1614. grep -v '^ *+' conftest.err >conftest.er1
  1615. cat conftest.er1 >&5
  1616. mv -f conftest.er1 conftest.err
  1617. fi
  1618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1619. test $ac_status = 0; } && {
  1620. test -z "$ac_c_werror_flag" ||
  1621. test ! -s conftest.err
  1622. } && test -s conftest.$ac_objext; then :
  1623. ac_retval=0
  1624. else
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=1
  1628. fi
  1629. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1630. as_fn_set_status $ac_retval
  1631. } # ac_fn_c_try_compile
  1632. # ac_fn_c_try_link LINENO
  1633. # -----------------------
  1634. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1635. ac_fn_c_try_link ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. rm -f conftest.$ac_objext conftest$ac_exeext
  1639. if { { ac_try="$ac_link"
  1640. case "(($ac_try" in
  1641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. *) ac_try_echo=$ac_try;;
  1643. esac
  1644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. $as_echo "$ac_try_echo"; } >&5
  1646. (eval "$ac_link") 2>conftest.err
  1647. ac_status=$?
  1648. if test -s conftest.err; then
  1649. grep -v '^ *+' conftest.err >conftest.er1
  1650. cat conftest.er1 >&5
  1651. mv -f conftest.er1 conftest.err
  1652. fi
  1653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. test $ac_status = 0; } && {
  1655. test -z "$ac_c_werror_flag" ||
  1656. test ! -s conftest.err
  1657. } && test -s conftest$ac_exeext && {
  1658. test "$cross_compiling" = yes ||
  1659. test -x conftest$ac_exeext
  1660. }; then :
  1661. ac_retval=0
  1662. else
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=1
  1666. fi
  1667. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1668. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1669. # interfere with the next link command; also delete a directory that is
  1670. # left behind by Apple's compiler. We do this before executing the actions.
  1671. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1672. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1673. as_fn_set_status $ac_retval
  1674. } # ac_fn_c_try_link
  1675. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1676. # -------------------------------------------------------
  1677. # Tests whether HEADER exists and can be compiled using the include files in
  1678. # INCLUDES, setting the cache variable VAR accordingly.
  1679. ac_fn_c_check_header_compile ()
  1680. {
  1681. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1683. $as_echo_n "checking for $2... " >&6; }
  1684. if eval \${$3+:} false; then :
  1685. $as_echo_n "(cached) " >&6
  1686. else
  1687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1688. /* end confdefs.h. */
  1689. $4
  1690. #include <$2>
  1691. _ACEOF
  1692. if ac_fn_c_try_compile "$LINENO"; then :
  1693. eval "$3=yes"
  1694. else
  1695. eval "$3=no"
  1696. fi
  1697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1698. fi
  1699. eval ac_res=\$$3
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1701. $as_echo "$ac_res" >&6; }
  1702. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1703. } # ac_fn_c_check_header_compile
  1704. # ac_fn_c_try_cpp LINENO
  1705. # ----------------------
  1706. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1707. ac_fn_c_try_cpp ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1711. case "(($ac_try" in
  1712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1713. *) ac_try_echo=$ac_try;;
  1714. esac
  1715. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1716. $as_echo "$ac_try_echo"; } >&5
  1717. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1718. ac_status=$?
  1719. if test -s conftest.err; then
  1720. grep -v '^ *+' conftest.err >conftest.er1
  1721. cat conftest.er1 >&5
  1722. mv -f conftest.er1 conftest.err
  1723. fi
  1724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1725. test $ac_status = 0; } > conftest.i && {
  1726. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1727. test ! -s conftest.err
  1728. }; then :
  1729. ac_retval=0
  1730. else
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=1
  1734. fi
  1735. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1736. as_fn_set_status $ac_retval
  1737. } # ac_fn_c_try_cpp
  1738. # ac_fn_c_try_run LINENO
  1739. # ----------------------
  1740. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1741. # that executables *can* be run.
  1742. ac_fn_c_try_run ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. if { { ac_try="$ac_link"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo"; } >&5
  1752. (eval "$ac_link") 2>&5
  1753. ac_status=$?
  1754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1755. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1756. { { case "(($ac_try" in
  1757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1758. *) ac_try_echo=$ac_try;;
  1759. esac
  1760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1761. $as_echo "$ac_try_echo"; } >&5
  1762. (eval "$ac_try") 2>&5
  1763. ac_status=$?
  1764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1765. test $ac_status = 0; }; }; then :
  1766. ac_retval=0
  1767. else
  1768. $as_echo "$as_me: program exited with status $ac_status" >&5
  1769. $as_echo "$as_me: failed program was:" >&5
  1770. sed 's/^/| /' conftest.$ac_ext >&5
  1771. ac_retval=$ac_status
  1772. fi
  1773. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. as_fn_set_status $ac_retval
  1776. } # ac_fn_c_try_run
  1777. # ac_fn_c_check_func LINENO FUNC VAR
  1778. # ----------------------------------
  1779. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1780. ac_fn_c_check_func ()
  1781. {
  1782. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1784. $as_echo_n "checking for $2... " >&6; }
  1785. if eval \${$3+:} false; then :
  1786. $as_echo_n "(cached) " >&6
  1787. else
  1788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1789. /* end confdefs.h. */
  1790. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1791. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1792. #define $2 innocuous_$2
  1793. /* System header to define __stub macros and hopefully few prototypes,
  1794. which can conflict with char $2 (); below.
  1795. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1796. <limits.h> exists even on freestanding compilers. */
  1797. #ifdef __STDC__
  1798. # include <limits.h>
  1799. #else
  1800. # include <assert.h>
  1801. #endif
  1802. #undef $2
  1803. /* Override any GCC internal prototype to avoid an error.
  1804. Use char because int might match the return type of a GCC
  1805. builtin and then its argument prototype would still apply. */
  1806. #ifdef __cplusplus
  1807. extern "C"
  1808. #endif
  1809. char $2 ();
  1810. /* The GNU C library defines this for functions which it implements
  1811. to always fail with ENOSYS. Some functions are actually named
  1812. something starting with __ and the normal name is an alias. */
  1813. #if defined __stub_$2 || defined __stub___$2
  1814. choke me
  1815. #endif
  1816. int
  1817. main ()
  1818. {
  1819. return $2 ();
  1820. ;
  1821. return 0;
  1822. }
  1823. _ACEOF
  1824. if ac_fn_c_try_link "$LINENO"; then :
  1825. eval "$3=yes"
  1826. else
  1827. eval "$3=no"
  1828. fi
  1829. rm -f core conftest.err conftest.$ac_objext \
  1830. conftest$ac_exeext conftest.$ac_ext
  1831. fi
  1832. eval ac_res=\$$3
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1834. $as_echo "$ac_res" >&6; }
  1835. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1836. } # ac_fn_c_check_func
  1837. # ac_fn_cxx_try_compile LINENO
  1838. # ----------------------------
  1839. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1840. ac_fn_cxx_try_compile ()
  1841. {
  1842. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1843. rm -f conftest.$ac_objext
  1844. if { { ac_try="$ac_compile"
  1845. case "(($ac_try" in
  1846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1847. *) ac_try_echo=$ac_try;;
  1848. esac
  1849. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1850. $as_echo "$ac_try_echo"; } >&5
  1851. (eval "$ac_compile") 2>conftest.err
  1852. ac_status=$?
  1853. if test -s conftest.err; then
  1854. grep -v '^ *+' conftest.err >conftest.er1
  1855. cat conftest.er1 >&5
  1856. mv -f conftest.er1 conftest.err
  1857. fi
  1858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1859. test $ac_status = 0; } && {
  1860. test -z "$ac_cxx_werror_flag" ||
  1861. test ! -s conftest.err
  1862. } && test -s conftest.$ac_objext; then :
  1863. ac_retval=0
  1864. else
  1865. $as_echo "$as_me: failed program was:" >&5
  1866. sed 's/^/| /' conftest.$ac_ext >&5
  1867. ac_retval=1
  1868. fi
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. as_fn_set_status $ac_retval
  1871. } # ac_fn_cxx_try_compile
  1872. # ac_fn_cxx_try_cpp LINENO
  1873. # ------------------------
  1874. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1875. ac_fn_cxx_try_cpp ()
  1876. {
  1877. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1878. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1879. case "(($ac_try" in
  1880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1881. *) ac_try_echo=$ac_try;;
  1882. esac
  1883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1884. $as_echo "$ac_try_echo"; } >&5
  1885. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1886. ac_status=$?
  1887. if test -s conftest.err; then
  1888. grep -v '^ *+' conftest.err >conftest.er1
  1889. cat conftest.er1 >&5
  1890. mv -f conftest.er1 conftest.err
  1891. fi
  1892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1893. test $ac_status = 0; } > conftest.i && {
  1894. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1895. test ! -s conftest.err
  1896. }; then :
  1897. ac_retval=0
  1898. else
  1899. $as_echo "$as_me: failed program was:" >&5
  1900. sed 's/^/| /' conftest.$ac_ext >&5
  1901. ac_retval=1
  1902. fi
  1903. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1904. as_fn_set_status $ac_retval
  1905. } # ac_fn_cxx_try_cpp
  1906. # ac_fn_cxx_try_link LINENO
  1907. # -------------------------
  1908. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1909. ac_fn_cxx_try_link ()
  1910. {
  1911. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1912. rm -f conftest.$ac_objext conftest$ac_exeext
  1913. if { { ac_try="$ac_link"
  1914. case "(($ac_try" in
  1915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1916. *) ac_try_echo=$ac_try;;
  1917. esac
  1918. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1919. $as_echo "$ac_try_echo"; } >&5
  1920. (eval "$ac_link") 2>conftest.err
  1921. ac_status=$?
  1922. if test -s conftest.err; then
  1923. grep -v '^ *+' conftest.err >conftest.er1
  1924. cat conftest.er1 >&5
  1925. mv -f conftest.er1 conftest.err
  1926. fi
  1927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1928. test $ac_status = 0; } && {
  1929. test -z "$ac_cxx_werror_flag" ||
  1930. test ! -s conftest.err
  1931. } && test -s conftest$ac_exeext && {
  1932. test "$cross_compiling" = yes ||
  1933. test -x conftest$ac_exeext
  1934. }; then :
  1935. ac_retval=0
  1936. else
  1937. $as_echo "$as_me: failed program was:" >&5
  1938. sed 's/^/| /' conftest.$ac_ext >&5
  1939. ac_retval=1
  1940. fi
  1941. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1942. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1943. # interfere with the next link command; also delete a directory that is
  1944. # left behind by Apple's compiler. We do this before executing the actions.
  1945. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1946. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1947. as_fn_set_status $ac_retval
  1948. } # ac_fn_cxx_try_link
  1949. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1950. # -------------------------------------------------------
  1951. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1952. # the include files in INCLUDES and setting the cache variable VAR
  1953. # accordingly.
  1954. ac_fn_c_check_header_mongrel ()
  1955. {
  1956. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1957. if eval \${$3+:} false; then :
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1959. $as_echo_n "checking for $2... " >&6; }
  1960. if eval \${$3+:} false; then :
  1961. $as_echo_n "(cached) " >&6
  1962. fi
  1963. eval ac_res=\$$3
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1965. $as_echo "$ac_res" >&6; }
  1966. else
  1967. # Is the header compilable?
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1969. $as_echo_n "checking $2 usability... " >&6; }
  1970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. $4
  1973. #include <$2>
  1974. _ACEOF
  1975. if ac_fn_c_try_compile "$LINENO"; then :
  1976. ac_header_compiler=yes
  1977. else
  1978. ac_header_compiler=no
  1979. fi
  1980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1982. $as_echo "$ac_header_compiler" >&6; }
  1983. # Is the header present?
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1985. $as_echo_n "checking $2 presence... " >&6; }
  1986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1987. /* end confdefs.h. */
  1988. #include <$2>
  1989. _ACEOF
  1990. if ac_fn_c_try_cpp "$LINENO"; then :
  1991. ac_header_preproc=yes
  1992. else
  1993. ac_header_preproc=no
  1994. fi
  1995. rm -f conftest.err conftest.i conftest.$ac_ext
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1997. $as_echo "$ac_header_preproc" >&6; }
  1998. # So? What about this header?
  1999. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2000. yes:no: )
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2002. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2004. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2005. ;;
  2006. no:yes:* )
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2008. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2010. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2012. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2014. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2016. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2017. ;;
  2018. esac
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2020. $as_echo_n "checking for $2... " >&6; }
  2021. if eval \${$3+:} false; then :
  2022. $as_echo_n "(cached) " >&6
  2023. else
  2024. eval "$3=\$ac_header_compiler"
  2025. fi
  2026. eval ac_res=\$$3
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2028. $as_echo "$ac_res" >&6; }
  2029. fi
  2030. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2031. } # ac_fn_c_check_header_mongrel
  2032. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2033. # -------------------------------------------
  2034. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2035. # variable VAR accordingly.
  2036. ac_fn_c_check_type ()
  2037. {
  2038. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2040. $as_echo_n "checking for $2... " >&6; }
  2041. if eval \${$3+:} false; then :
  2042. $as_echo_n "(cached) " >&6
  2043. else
  2044. eval "$3=no"
  2045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2046. /* end confdefs.h. */
  2047. $4
  2048. int
  2049. main ()
  2050. {
  2051. if (sizeof ($2))
  2052. return 0;
  2053. ;
  2054. return 0;
  2055. }
  2056. _ACEOF
  2057. if ac_fn_c_try_compile "$LINENO"; then :
  2058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2059. /* end confdefs.h. */
  2060. $4
  2061. int
  2062. main ()
  2063. {
  2064. if (sizeof (($2)))
  2065. return 0;
  2066. ;
  2067. return 0;
  2068. }
  2069. _ACEOF
  2070. if ac_fn_c_try_compile "$LINENO"; then :
  2071. else
  2072. eval "$3=yes"
  2073. fi
  2074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2075. fi
  2076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2077. fi
  2078. eval ac_res=\$$3
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2080. $as_echo "$ac_res" >&6; }
  2081. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2082. } # ac_fn_c_check_type
  2083. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2084. # ----------------------------------------------------
  2085. # Tries to find if the field MEMBER exists in type AGGR, after including
  2086. # INCLUDES, setting cache variable VAR accordingly.
  2087. ac_fn_c_check_member ()
  2088. {
  2089. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2091. $as_echo_n "checking for $2.$3... " >&6; }
  2092. if eval \${$4+:} false; then :
  2093. $as_echo_n "(cached) " >&6
  2094. else
  2095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2096. /* end confdefs.h. */
  2097. $5
  2098. int
  2099. main ()
  2100. {
  2101. static $2 ac_aggr;
  2102. if (ac_aggr.$3)
  2103. return 0;
  2104. ;
  2105. return 0;
  2106. }
  2107. _ACEOF
  2108. if ac_fn_c_try_compile "$LINENO"; then :
  2109. eval "$4=yes"
  2110. else
  2111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2112. /* end confdefs.h. */
  2113. $5
  2114. int
  2115. main ()
  2116. {
  2117. static $2 ac_aggr;
  2118. if (sizeof ac_aggr.$3)
  2119. return 0;
  2120. ;
  2121. return 0;
  2122. }
  2123. _ACEOF
  2124. if ac_fn_c_try_compile "$LINENO"; then :
  2125. eval "$4=yes"
  2126. else
  2127. eval "$4=no"
  2128. fi
  2129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2132. fi
  2133. eval ac_res=\$$4
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2135. $as_echo "$ac_res" >&6; }
  2136. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2137. } # ac_fn_c_check_member
  2138. cat >config.log <<_ACEOF
  2139. This file contains any messages produced by compilers while
  2140. running configure, to aid debugging if configure makes a mistake.
  2141. It was created by $as_me, which was
  2142. generated by GNU Autoconf 2.69. Invocation command line was
  2143. $ $0 $@
  2144. _ACEOF
  2145. exec 5>>config.log
  2146. {
  2147. cat <<_ASUNAME
  2148. ## --------- ##
  2149. ## Platform. ##
  2150. ## --------- ##
  2151. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2152. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2153. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2154. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2155. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2156. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2157. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2158. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2159. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2160. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2161. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2162. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2163. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2164. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2165. _ASUNAME
  2166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2167. for as_dir in $PATH
  2168. do
  2169. IFS=$as_save_IFS
  2170. test -z "$as_dir" && as_dir=.
  2171. $as_echo "PATH: $as_dir"
  2172. done
  2173. IFS=$as_save_IFS
  2174. } >&5
  2175. cat >&5 <<_ACEOF
  2176. ## ----------- ##
  2177. ## Core tests. ##
  2178. ## ----------- ##
  2179. _ACEOF
  2180. # Keep a trace of the command line.
  2181. # Strip out --no-create and --no-recursion so they do not pile up.
  2182. # Strip out --silent because we don't want to record it for future runs.
  2183. # Also quote any args containing shell meta-characters.
  2184. # Make two passes to allow for proper duplicate-argument suppression.
  2185. ac_configure_args=
  2186. ac_configure_args0=
  2187. ac_configure_args1=
  2188. ac_must_keep_next=false
  2189. for ac_pass in 1 2
  2190. do
  2191. for ac_arg
  2192. do
  2193. case $ac_arg in
  2194. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2195. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2196. | -silent | --silent | --silen | --sile | --sil)
  2197. continue ;;
  2198. *\'*)
  2199. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2200. esac
  2201. case $ac_pass in
  2202. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2203. 2)
  2204. as_fn_append ac_configure_args1 " '$ac_arg'"
  2205. if test $ac_must_keep_next = true; then
  2206. ac_must_keep_next=false # Got value, back to normal.
  2207. else
  2208. case $ac_arg in
  2209. *=* | --config-cache | -C | -disable-* | --disable-* \
  2210. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2211. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2212. | -with-* | --with-* | -without-* | --without-* | --x)
  2213. case "$ac_configure_args0 " in
  2214. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2215. esac
  2216. ;;
  2217. -* ) ac_must_keep_next=true ;;
  2218. esac
  2219. fi
  2220. as_fn_append ac_configure_args " '$ac_arg'"
  2221. ;;
  2222. esac
  2223. done
  2224. done
  2225. { ac_configure_args0=; unset ac_configure_args0;}
  2226. { ac_configure_args1=; unset ac_configure_args1;}
  2227. # When interrupted or exit'd, cleanup temporary files, and complete
  2228. # config.log. We remove comments because anyway the quotes in there
  2229. # would cause problems or look ugly.
  2230. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2231. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2232. trap 'exit_status=$?
  2233. # Save into config.log some information that might help in debugging.
  2234. {
  2235. echo
  2236. $as_echo "## ---------------- ##
  2237. ## Cache variables. ##
  2238. ## ---------------- ##"
  2239. echo
  2240. # The following way of writing the cache mishandles newlines in values,
  2241. (
  2242. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2243. eval ac_val=\$$ac_var
  2244. case $ac_val in #(
  2245. *${as_nl}*)
  2246. case $ac_var in #(
  2247. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2248. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2249. esac
  2250. case $ac_var in #(
  2251. _ | IFS | as_nl) ;; #(
  2252. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2253. *) { eval $ac_var=; unset $ac_var;} ;;
  2254. esac ;;
  2255. esac
  2256. done
  2257. (set) 2>&1 |
  2258. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2259. *${as_nl}ac_space=\ *)
  2260. sed -n \
  2261. "s/'\''/'\''\\\\'\'''\''/g;
  2262. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2263. ;; #(
  2264. *)
  2265. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2266. ;;
  2267. esac |
  2268. sort
  2269. )
  2270. echo
  2271. $as_echo "## ----------------- ##
  2272. ## Output variables. ##
  2273. ## ----------------- ##"
  2274. echo
  2275. for ac_var in $ac_subst_vars
  2276. do
  2277. eval ac_val=\$$ac_var
  2278. case $ac_val in
  2279. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2280. esac
  2281. $as_echo "$ac_var='\''$ac_val'\''"
  2282. done | sort
  2283. echo
  2284. if test -n "$ac_subst_files"; then
  2285. $as_echo "## ------------------- ##
  2286. ## File substitutions. ##
  2287. ## ------------------- ##"
  2288. echo
  2289. for ac_var in $ac_subst_files
  2290. do
  2291. eval ac_val=\$$ac_var
  2292. case $ac_val in
  2293. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2294. esac
  2295. $as_echo "$ac_var='\''$ac_val'\''"
  2296. done | sort
  2297. echo
  2298. fi
  2299. if test -s confdefs.h; then
  2300. $as_echo "## ----------- ##
  2301. ## confdefs.h. ##
  2302. ## ----------- ##"
  2303. echo
  2304. cat confdefs.h
  2305. echo
  2306. fi
  2307. test "$ac_signal" != 0 &&
  2308. $as_echo "$as_me: caught signal $ac_signal"
  2309. $as_echo "$as_me: exit $exit_status"
  2310. } >&5
  2311. rm -f core *.core core.conftest.* &&
  2312. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2313. exit $exit_status
  2314. ' 0
  2315. for ac_signal in 1 2 13 15; do
  2316. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2317. done
  2318. ac_signal=0
  2319. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2320. rm -f -r conftest* confdefs.h
  2321. $as_echo "/* confdefs.h */" > confdefs.h
  2322. # Predefined preprocessor variables.
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE_NAME "$PACKAGE_NAME"
  2325. _ACEOF
  2326. cat >>confdefs.h <<_ACEOF
  2327. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2328. _ACEOF
  2329. cat >>confdefs.h <<_ACEOF
  2330. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2331. _ACEOF
  2332. cat >>confdefs.h <<_ACEOF
  2333. #define PACKAGE_STRING "$PACKAGE_STRING"
  2334. _ACEOF
  2335. cat >>confdefs.h <<_ACEOF
  2336. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2337. _ACEOF
  2338. cat >>confdefs.h <<_ACEOF
  2339. #define PACKAGE_URL "$PACKAGE_URL"
  2340. _ACEOF
  2341. # Let the site file select an alternate cache file if it wants to.
  2342. # Prefer an explicitly selected file to automatically selected ones.
  2343. ac_site_file1=NONE
  2344. ac_site_file2=NONE
  2345. if test -n "$CONFIG_SITE"; then
  2346. # We do not want a PATH search for config.site.
  2347. case $CONFIG_SITE in #((
  2348. -*) ac_site_file1=./$CONFIG_SITE;;
  2349. */*) ac_site_file1=$CONFIG_SITE;;
  2350. *) ac_site_file1=./$CONFIG_SITE;;
  2351. esac
  2352. elif test "x$prefix" != xNONE; then
  2353. ac_site_file1=$prefix/share/config.site
  2354. ac_site_file2=$prefix/etc/config.site
  2355. else
  2356. ac_site_file1=$ac_default_prefix/share/config.site
  2357. ac_site_file2=$ac_default_prefix/etc/config.site
  2358. fi
  2359. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2360. do
  2361. test "x$ac_site_file" = xNONE && continue
  2362. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2364. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2365. sed 's/^/| /' "$ac_site_file" >&5
  2366. . "$ac_site_file" \
  2367. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2368. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2369. as_fn_error $? "failed to load site script $ac_site_file
  2370. See \`config.log' for more details" "$LINENO" 5; }
  2371. fi
  2372. done
  2373. if test -r "$cache_file"; then
  2374. # Some versions of bash will fail to source /dev/null (special files
  2375. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2376. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2378. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2379. case $cache_file in
  2380. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2381. *) . "./$cache_file";;
  2382. esac
  2383. fi
  2384. else
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2386. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2387. >$cache_file
  2388. fi
  2389. # Check that the precious variables saved in the cache have kept the same
  2390. # value.
  2391. ac_cache_corrupted=false
  2392. for ac_var in $ac_precious_vars; do
  2393. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2394. eval ac_new_set=\$ac_env_${ac_var}_set
  2395. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2396. eval ac_new_val=\$ac_env_${ac_var}_value
  2397. case $ac_old_set,$ac_new_set in
  2398. set,)
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2400. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2401. ac_cache_corrupted=: ;;
  2402. ,set)
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2404. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2405. ac_cache_corrupted=: ;;
  2406. ,);;
  2407. *)
  2408. if test "x$ac_old_val" != "x$ac_new_val"; then
  2409. # differences in whitespace do not lead to failure.
  2410. ac_old_val_w=`echo x $ac_old_val`
  2411. ac_new_val_w=`echo x $ac_new_val`
  2412. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2414. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2415. ac_cache_corrupted=:
  2416. else
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2418. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2419. eval $ac_var=\$ac_old_val
  2420. fi
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2422. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2424. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2425. fi;;
  2426. esac
  2427. # Pass precious variables to config.status.
  2428. if test "$ac_new_set" = set; then
  2429. case $ac_new_val in
  2430. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2431. *) ac_arg=$ac_var=$ac_new_val ;;
  2432. esac
  2433. case " $ac_configure_args " in
  2434. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2435. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2436. esac
  2437. fi
  2438. done
  2439. if $ac_cache_corrupted; then
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2443. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2444. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2445. fi
  2446. ## -------------------- ##
  2447. ## Main body of script. ##
  2448. ## -------------------- ##
  2449. ac_ext=c
  2450. ac_cpp='$CPP $CPPFLAGS'
  2451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2454. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2455. ac_aux_dir=
  2456. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2457. if test -f "$ac_dir/install-sh"; then
  2458. ac_aux_dir=$ac_dir
  2459. ac_install_sh="$ac_aux_dir/install-sh -c"
  2460. break
  2461. elif test -f "$ac_dir/install.sh"; then
  2462. ac_aux_dir=$ac_dir
  2463. ac_install_sh="$ac_aux_dir/install.sh -c"
  2464. break
  2465. elif test -f "$ac_dir/shtool"; then
  2466. ac_aux_dir=$ac_dir
  2467. ac_install_sh="$ac_aux_dir/shtool install -c"
  2468. break
  2469. fi
  2470. done
  2471. if test -z "$ac_aux_dir"; then
  2472. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2473. fi
  2474. # These three variables are undocumented and unsupported,
  2475. # and are intended to be withdrawn in a future Autoconf release.
  2476. # They can cause serious problems if a builder's source tree is in a directory
  2477. # whose full name contains unusual characters.
  2478. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2479. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2480. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2481. orig_CFLAGS="$CFLAGS"
  2482. #
  2483. # Making releases:
  2484. # Edit include/SDL_version.h and change the version, then:
  2485. # SDL_MICRO_VERSION += 1;
  2486. # SDL_INTERFACE_AGE += 1;
  2487. # SDL_BINARY_AGE += 1;
  2488. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2489. # if backwards compatibility has been broken,
  2490. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2491. #
  2492. SDL_MAJOR_VERSION=2
  2493. SDL_MINOR_VERSION=0
  2494. SDL_MICRO_VERSION=9
  2495. SDL_INTERFACE_AGE=0
  2496. SDL_BINARY_AGE=9
  2497. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2498. # libtool versioning
  2499. case `pwd` in
  2500. *\ * | *\ *)
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2502. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2503. esac
  2504. macro_version='2.4.2'
  2505. macro_revision='1.3337'
  2506. ltmain="$ac_aux_dir/ltmain.sh"
  2507. # Make sure we can run config.sub.
  2508. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2509. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2511. $as_echo_n "checking build system type... " >&6; }
  2512. if ${ac_cv_build+:} false; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. ac_build_alias=$build_alias
  2516. test "x$ac_build_alias" = x &&
  2517. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2518. test "x$ac_build_alias" = x &&
  2519. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2520. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2521. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2522. fi
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2524. $as_echo "$ac_cv_build" >&6; }
  2525. case $ac_cv_build in
  2526. *-*-*) ;;
  2527. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2528. esac
  2529. build=$ac_cv_build
  2530. ac_save_IFS=$IFS; IFS='-'
  2531. set x $ac_cv_build
  2532. shift
  2533. build_cpu=$1
  2534. build_vendor=$2
  2535. shift; shift
  2536. # Remember, the first character of IFS is used to create $*,
  2537. # except with old shells:
  2538. build_os=$*
  2539. IFS=$ac_save_IFS
  2540. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2542. $as_echo_n "checking host system type... " >&6; }
  2543. if ${ac_cv_host+:} false; then :
  2544. $as_echo_n "(cached) " >&6
  2545. else
  2546. if test "x$host_alias" = x; then
  2547. ac_cv_host=$ac_cv_build
  2548. else
  2549. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2550. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2551. fi
  2552. fi
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2554. $as_echo "$ac_cv_host" >&6; }
  2555. case $ac_cv_host in
  2556. *-*-*) ;;
  2557. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2558. esac
  2559. host=$ac_cv_host
  2560. ac_save_IFS=$IFS; IFS='-'
  2561. set x $ac_cv_host
  2562. shift
  2563. host_cpu=$1
  2564. host_vendor=$2
  2565. shift; shift
  2566. # Remember, the first character of IFS is used to create $*,
  2567. # except with old shells:
  2568. host_os=$*
  2569. IFS=$ac_save_IFS
  2570. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2571. # Backslashify metacharacters that are still active within
  2572. # double-quoted strings.
  2573. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2574. # Same as above, but do not quote variable references.
  2575. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2576. # Sed substitution to delay expansion of an escaped shell variable in a
  2577. # double_quote_subst'ed string.
  2578. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2579. # Sed substitution to delay expansion of an escaped single quote.
  2580. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2581. # Sed substitution to avoid accidental globbing in evaled expressions
  2582. no_glob_subst='s/\*/\\\*/g'
  2583. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2584. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2585. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2587. $as_echo_n "checking how to print strings... " >&6; }
  2588. # Test print first, because it will be a builtin if present.
  2589. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2590. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2591. ECHO='print -r --'
  2592. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2593. ECHO='printf %s\n'
  2594. else
  2595. # Use this function as a fallback that always works.
  2596. func_fallback_echo ()
  2597. {
  2598. eval 'cat <<_LTECHO_EOF
  2599. $1
  2600. _LTECHO_EOF'
  2601. }
  2602. ECHO='func_fallback_echo'
  2603. fi
  2604. # func_echo_all arg...
  2605. # Invoke $ECHO with all args, space-separated.
  2606. func_echo_all ()
  2607. {
  2608. $ECHO ""
  2609. }
  2610. case "$ECHO" in
  2611. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2612. $as_echo "printf" >&6; } ;;
  2613. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2614. $as_echo "print -r" >&6; } ;;
  2615. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2616. $as_echo "cat" >&6; } ;;
  2617. esac
  2618. ac_ext=c
  2619. ac_cpp='$CPP $CPPFLAGS'
  2620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2623. if test -n "$ac_tool_prefix"; then
  2624. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2625. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2627. $as_echo_n "checking for $ac_word... " >&6; }
  2628. if ${ac_cv_prog_CC+:} false; then :
  2629. $as_echo_n "(cached) " >&6
  2630. else
  2631. if test -n "$CC"; then
  2632. ac_cv_prog_CC="$CC" # Let the user override the test.
  2633. else
  2634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2635. for as_dir in $PATH
  2636. do
  2637. IFS=$as_save_IFS
  2638. test -z "$as_dir" && as_dir=.
  2639. for ac_exec_ext in '' $ac_executable_extensions; do
  2640. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2641. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2643. break 2
  2644. fi
  2645. done
  2646. done
  2647. IFS=$as_save_IFS
  2648. fi
  2649. fi
  2650. CC=$ac_cv_prog_CC
  2651. if test -n "$CC"; then
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2653. $as_echo "$CC" >&6; }
  2654. else
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2656. $as_echo "no" >&6; }
  2657. fi
  2658. fi
  2659. if test -z "$ac_cv_prog_CC"; then
  2660. ac_ct_CC=$CC
  2661. # Extract the first word of "gcc", so it can be a program name with args.
  2662. set dummy gcc; ac_word=$2
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2664. $as_echo_n "checking for $ac_word... " >&6; }
  2665. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2666. $as_echo_n "(cached) " >&6
  2667. else
  2668. if test -n "$ac_ct_CC"; then
  2669. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2670. else
  2671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2672. for as_dir in $PATH
  2673. do
  2674. IFS=$as_save_IFS
  2675. test -z "$as_dir" && as_dir=.
  2676. for ac_exec_ext in '' $ac_executable_extensions; do
  2677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2678. ac_cv_prog_ac_ct_CC="gcc"
  2679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680. break 2
  2681. fi
  2682. done
  2683. done
  2684. IFS=$as_save_IFS
  2685. fi
  2686. fi
  2687. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2688. if test -n "$ac_ct_CC"; then
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2690. $as_echo "$ac_ct_CC" >&6; }
  2691. else
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2693. $as_echo "no" >&6; }
  2694. fi
  2695. if test "x$ac_ct_CC" = x; then
  2696. CC=""
  2697. else
  2698. case $cross_compiling:$ac_tool_warned in
  2699. yes:)
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2701. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2702. ac_tool_warned=yes ;;
  2703. esac
  2704. CC=$ac_ct_CC
  2705. fi
  2706. else
  2707. CC="$ac_cv_prog_CC"
  2708. fi
  2709. if test -z "$CC"; then
  2710. if test -n "$ac_tool_prefix"; then
  2711. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2712. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2714. $as_echo_n "checking for $ac_word... " >&6; }
  2715. if ${ac_cv_prog_CC+:} false; then :
  2716. $as_echo_n "(cached) " >&6
  2717. else
  2718. if test -n "$CC"; then
  2719. ac_cv_prog_CC="$CC" # Let the user override the test.
  2720. else
  2721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2722. for as_dir in $PATH
  2723. do
  2724. IFS=$as_save_IFS
  2725. test -z "$as_dir" && as_dir=.
  2726. for ac_exec_ext in '' $ac_executable_extensions; do
  2727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2728. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2730. break 2
  2731. fi
  2732. done
  2733. done
  2734. IFS=$as_save_IFS
  2735. fi
  2736. fi
  2737. CC=$ac_cv_prog_CC
  2738. if test -n "$CC"; then
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2740. $as_echo "$CC" >&6; }
  2741. else
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2743. $as_echo "no" >&6; }
  2744. fi
  2745. fi
  2746. fi
  2747. if test -z "$CC"; then
  2748. # Extract the first word of "cc", so it can be a program name with args.
  2749. set dummy cc; ac_word=$2
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2751. $as_echo_n "checking for $ac_word... " >&6; }
  2752. if ${ac_cv_prog_CC+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. if test -n "$CC"; then
  2756. ac_cv_prog_CC="$CC" # Let the user override the test.
  2757. else
  2758. ac_prog_rejected=no
  2759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2760. for as_dir in $PATH
  2761. do
  2762. IFS=$as_save_IFS
  2763. test -z "$as_dir" && as_dir=.
  2764. for ac_exec_ext in '' $ac_executable_extensions; do
  2765. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2766. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2767. ac_prog_rejected=yes
  2768. continue
  2769. fi
  2770. ac_cv_prog_CC="cc"
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772. break 2
  2773. fi
  2774. done
  2775. done
  2776. IFS=$as_save_IFS
  2777. if test $ac_prog_rejected = yes; then
  2778. # We found a bogon in the path, so make sure we never use it.
  2779. set dummy $ac_cv_prog_CC
  2780. shift
  2781. if test $# != 0; then
  2782. # We chose a different compiler from the bogus one.
  2783. # However, it has the same basename, so the bogon will be chosen
  2784. # first if we set CC to just the basename; use the full file name.
  2785. shift
  2786. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2787. fi
  2788. fi
  2789. fi
  2790. fi
  2791. CC=$ac_cv_prog_CC
  2792. if test -n "$CC"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2794. $as_echo "$CC" >&6; }
  2795. else
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2797. $as_echo "no" >&6; }
  2798. fi
  2799. fi
  2800. if test -z "$CC"; then
  2801. if test -n "$ac_tool_prefix"; then
  2802. for ac_prog in cl.exe
  2803. do
  2804. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2805. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2807. $as_echo_n "checking for $ac_word... " >&6; }
  2808. if ${ac_cv_prog_CC+:} false; then :
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. if test -n "$CC"; then
  2812. ac_cv_prog_CC="$CC" # Let the user override the test.
  2813. else
  2814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2815. for as_dir in $PATH
  2816. do
  2817. IFS=$as_save_IFS
  2818. test -z "$as_dir" && as_dir=.
  2819. for ac_exec_ext in '' $ac_executable_extensions; do
  2820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2821. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2823. break 2
  2824. fi
  2825. done
  2826. done
  2827. IFS=$as_save_IFS
  2828. fi
  2829. fi
  2830. CC=$ac_cv_prog_CC
  2831. if test -n "$CC"; then
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2833. $as_echo "$CC" >&6; }
  2834. else
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2836. $as_echo "no" >&6; }
  2837. fi
  2838. test -n "$CC" && break
  2839. done
  2840. fi
  2841. if test -z "$CC"; then
  2842. ac_ct_CC=$CC
  2843. for ac_prog in cl.exe
  2844. do
  2845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2846. set dummy $ac_prog; ac_word=$2
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2848. $as_echo_n "checking for $ac_word... " >&6; }
  2849. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. if test -n "$ac_ct_CC"; then
  2853. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2854. else
  2855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2856. for as_dir in $PATH
  2857. do
  2858. IFS=$as_save_IFS
  2859. test -z "$as_dir" && as_dir=.
  2860. for ac_exec_ext in '' $ac_executable_extensions; do
  2861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2862. ac_cv_prog_ac_ct_CC="$ac_prog"
  2863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2864. break 2
  2865. fi
  2866. done
  2867. done
  2868. IFS=$as_save_IFS
  2869. fi
  2870. fi
  2871. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2872. if test -n "$ac_ct_CC"; then
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2874. $as_echo "$ac_ct_CC" >&6; }
  2875. else
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2877. $as_echo "no" >&6; }
  2878. fi
  2879. test -n "$ac_ct_CC" && break
  2880. done
  2881. if test "x$ac_ct_CC" = x; then
  2882. CC=""
  2883. else
  2884. case $cross_compiling:$ac_tool_warned in
  2885. yes:)
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2888. ac_tool_warned=yes ;;
  2889. esac
  2890. CC=$ac_ct_CC
  2891. fi
  2892. fi
  2893. fi
  2894. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2896. as_fn_error $? "no acceptable C compiler found in \$PATH
  2897. See \`config.log' for more details" "$LINENO" 5; }
  2898. # Provide some information about the compiler.
  2899. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2900. set X $ac_compile
  2901. ac_compiler=$2
  2902. for ac_option in --version -v -V -qversion; do
  2903. { { ac_try="$ac_compiler $ac_option >&5"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2909. $as_echo "$ac_try_echo"; } >&5
  2910. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2911. ac_status=$?
  2912. if test -s conftest.err; then
  2913. sed '10a\
  2914. ... rest of stderr output deleted ...
  2915. 10q' conftest.err >conftest.er1
  2916. cat conftest.er1 >&5
  2917. fi
  2918. rm -f conftest.er1 conftest.err
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2920. test $ac_status = 0; }
  2921. done
  2922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2923. /* end confdefs.h. */
  2924. int
  2925. main ()
  2926. {
  2927. ;
  2928. return 0;
  2929. }
  2930. _ACEOF
  2931. ac_clean_files_save=$ac_clean_files
  2932. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2933. # Try to create an executable without -o first, disregard a.out.
  2934. # It will help us diagnose broken compilers, and finding out an intuition
  2935. # of exeext.
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2937. $as_echo_n "checking whether the C compiler works... " >&6; }
  2938. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2939. # The possible output files:
  2940. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2941. ac_rmfiles=
  2942. for ac_file in $ac_files
  2943. do
  2944. case $ac_file in
  2945. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2946. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2947. esac
  2948. done
  2949. rm -f $ac_rmfiles
  2950. if { { ac_try="$ac_link_default"
  2951. case "(($ac_try" in
  2952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2953. *) ac_try_echo=$ac_try;;
  2954. esac
  2955. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2956. $as_echo "$ac_try_echo"; } >&5
  2957. (eval "$ac_link_default") 2>&5
  2958. ac_status=$?
  2959. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2960. test $ac_status = 0; }; then :
  2961. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2962. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2963. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2964. # so that the user can short-circuit this test for compilers unknown to
  2965. # Autoconf.
  2966. for ac_file in $ac_files ''
  2967. do
  2968. test -f "$ac_file" || continue
  2969. case $ac_file in
  2970. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2971. ;;
  2972. [ab].out )
  2973. # We found the default executable, but exeext='' is most
  2974. # certainly right.
  2975. break;;
  2976. *.* )
  2977. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2978. then :; else
  2979. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2980. fi
  2981. # We set ac_cv_exeext here because the later test for it is not
  2982. # safe: cross compilers may not add the suffix if given an `-o'
  2983. # argument, so we may need to know it at that point already.
  2984. # Even if this section looks crufty: it has the advantage of
  2985. # actually working.
  2986. break;;
  2987. * )
  2988. break;;
  2989. esac
  2990. done
  2991. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2992. else
  2993. ac_file=''
  2994. fi
  2995. if test -z "$ac_file"; then :
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2997. $as_echo "no" >&6; }
  2998. $as_echo "$as_me: failed program was:" >&5
  2999. sed 's/^/| /' conftest.$ac_ext >&5
  3000. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3001. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3002. as_fn_error 77 "C compiler cannot create executables
  3003. See \`config.log' for more details" "$LINENO" 5; }
  3004. else
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3006. $as_echo "yes" >&6; }
  3007. fi
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3009. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3011. $as_echo "$ac_file" >&6; }
  3012. ac_exeext=$ac_cv_exeext
  3013. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3014. ac_clean_files=$ac_clean_files_save
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3016. $as_echo_n "checking for suffix of executables... " >&6; }
  3017. if { { ac_try="$ac_link"
  3018. case "(($ac_try" in
  3019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3020. *) ac_try_echo=$ac_try;;
  3021. esac
  3022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3023. $as_echo "$ac_try_echo"; } >&5
  3024. (eval "$ac_link") 2>&5
  3025. ac_status=$?
  3026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3027. test $ac_status = 0; }; then :
  3028. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3029. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3030. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3031. # `rm'.
  3032. for ac_file in conftest.exe conftest conftest.*; do
  3033. test -f "$ac_file" || continue
  3034. case $ac_file in
  3035. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3036. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3037. break;;
  3038. * ) break;;
  3039. esac
  3040. done
  3041. else
  3042. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3044. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3045. See \`config.log' for more details" "$LINENO" 5; }
  3046. fi
  3047. rm -f conftest conftest$ac_cv_exeext
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3049. $as_echo "$ac_cv_exeext" >&6; }
  3050. rm -f conftest.$ac_ext
  3051. EXEEXT=$ac_cv_exeext
  3052. ac_exeext=$EXEEXT
  3053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3054. /* end confdefs.h. */
  3055. #include <stdio.h>
  3056. int
  3057. main ()
  3058. {
  3059. FILE *f = fopen ("conftest.out", "w");
  3060. return ferror (f) || fclose (f) != 0;
  3061. ;
  3062. return 0;
  3063. }
  3064. _ACEOF
  3065. ac_clean_files="$ac_clean_files conftest.out"
  3066. # Check that the compiler produces executables we can run. If not, either
  3067. # the compiler is broken, or we cross compile.
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3069. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3070. if test "$cross_compiling" != yes; then
  3071. { { ac_try="$ac_link"
  3072. case "(($ac_try" in
  3073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3074. *) ac_try_echo=$ac_try;;
  3075. esac
  3076. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3077. $as_echo "$ac_try_echo"; } >&5
  3078. (eval "$ac_link") 2>&5
  3079. ac_status=$?
  3080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3081. test $ac_status = 0; }
  3082. if { ac_try='./conftest$ac_cv_exeext'
  3083. { { case "(($ac_try" in
  3084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3085. *) ac_try_echo=$ac_try;;
  3086. esac
  3087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3088. $as_echo "$ac_try_echo"; } >&5
  3089. (eval "$ac_try") 2>&5
  3090. ac_status=$?
  3091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3092. test $ac_status = 0; }; }; then
  3093. cross_compiling=no
  3094. else
  3095. if test "$cross_compiling" = maybe; then
  3096. cross_compiling=yes
  3097. else
  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 $? "cannot run C compiled programs.
  3101. If you meant to cross compile, use \`--host'.
  3102. See \`config.log' for more details" "$LINENO" 5; }
  3103. fi
  3104. fi
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3107. $as_echo "$cross_compiling" >&6; }
  3108. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3109. ac_clean_files=$ac_clean_files_save
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3111. $as_echo_n "checking for suffix of object files... " >&6; }
  3112. if ${ac_cv_objext+:} false; then :
  3113. $as_echo_n "(cached) " >&6
  3114. else
  3115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3116. /* end confdefs.h. */
  3117. int
  3118. main ()
  3119. {
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. rm -f conftest.o conftest.obj
  3125. if { { ac_try="$ac_compile"
  3126. case "(($ac_try" in
  3127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3128. *) ac_try_echo=$ac_try;;
  3129. esac
  3130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3131. $as_echo "$ac_try_echo"; } >&5
  3132. (eval "$ac_compile") 2>&5
  3133. ac_status=$?
  3134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3135. test $ac_status = 0; }; then :
  3136. for ac_file in conftest.o conftest.obj conftest.*; do
  3137. test -f "$ac_file" || continue;
  3138. case $ac_file in
  3139. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3140. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3141. break;;
  3142. esac
  3143. done
  3144. else
  3145. $as_echo "$as_me: failed program was:" >&5
  3146. sed 's/^/| /' conftest.$ac_ext >&5
  3147. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3148. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3149. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3150. See \`config.log' for more details" "$LINENO" 5; }
  3151. fi
  3152. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3153. fi
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3155. $as_echo "$ac_cv_objext" >&6; }
  3156. OBJEXT=$ac_cv_objext
  3157. ac_objext=$OBJEXT
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3159. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3160. if ${ac_cv_c_compiler_gnu+:} false; then :
  3161. $as_echo_n "(cached) " >&6
  3162. else
  3163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3164. /* end confdefs.h. */
  3165. int
  3166. main ()
  3167. {
  3168. #ifndef __GNUC__
  3169. choke me
  3170. #endif
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. if ac_fn_c_try_compile "$LINENO"; then :
  3176. ac_compiler_gnu=yes
  3177. else
  3178. ac_compiler_gnu=no
  3179. fi
  3180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3181. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3182. fi
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3184. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3185. if test $ac_compiler_gnu = yes; then
  3186. GCC=yes
  3187. else
  3188. GCC=
  3189. fi
  3190. ac_test_CFLAGS=${CFLAGS+set}
  3191. ac_save_CFLAGS=$CFLAGS
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3193. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3194. if ${ac_cv_prog_cc_g+:} false; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. ac_save_c_werror_flag=$ac_c_werror_flag
  3198. ac_c_werror_flag=yes
  3199. ac_cv_prog_cc_g=no
  3200. CFLAGS="-g"
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. int
  3204. main ()
  3205. {
  3206. ;
  3207. return 0;
  3208. }
  3209. _ACEOF
  3210. if ac_fn_c_try_compile "$LINENO"; then :
  3211. ac_cv_prog_cc_g=yes
  3212. else
  3213. CFLAGS=""
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main ()
  3218. {
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. if ac_fn_c_try_compile "$LINENO"; then :
  3224. else
  3225. ac_c_werror_flag=$ac_save_c_werror_flag
  3226. CFLAGS="-g"
  3227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3228. /* end confdefs.h. */
  3229. int
  3230. main ()
  3231. {
  3232. ;
  3233. return 0;
  3234. }
  3235. _ACEOF
  3236. if ac_fn_c_try_compile "$LINENO"; then :
  3237. ac_cv_prog_cc_g=yes
  3238. fi
  3239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3240. fi
  3241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. ac_c_werror_flag=$ac_save_c_werror_flag
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3247. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3248. if test "$ac_test_CFLAGS" = set; then
  3249. CFLAGS=$ac_save_CFLAGS
  3250. elif test $ac_cv_prog_cc_g = yes; then
  3251. if test "$GCC" = yes; then
  3252. CFLAGS="-g -O2"
  3253. else
  3254. CFLAGS="-g"
  3255. fi
  3256. else
  3257. if test "$GCC" = yes; then
  3258. CFLAGS="-O2"
  3259. else
  3260. CFLAGS=
  3261. fi
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3264. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3265. if ${ac_cv_prog_cc_c89+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. ac_cv_prog_cc_c89=no
  3269. ac_save_CC=$CC
  3270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3271. /* end confdefs.h. */
  3272. #include <stdarg.h>
  3273. #include <stdio.h>
  3274. struct stat;
  3275. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3276. struct buf { int x; };
  3277. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3278. static char *e (p, i)
  3279. char **p;
  3280. int i;
  3281. {
  3282. return p[i];
  3283. }
  3284. static char *f (char * (*g) (char **, int), char **p, ...)
  3285. {
  3286. char *s;
  3287. va_list v;
  3288. va_start (v,p);
  3289. s = g (p, va_arg (v,int));
  3290. va_end (v);
  3291. return s;
  3292. }
  3293. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3294. function prototypes and stuff, but not '\xHH' hex character constants.
  3295. These don't provoke an error unfortunately, instead are silently treated
  3296. as 'x'. The following induces an error, until -std is added to get
  3297. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3298. array size at least. It's necessary to write '\x00'==0 to get something
  3299. that's true only with -std. */
  3300. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3301. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3302. inside strings and character constants. */
  3303. #define FOO(x) 'x'
  3304. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3305. int test (int i, double x);
  3306. struct s1 {int (*f) (int a);};
  3307. struct s2 {int (*f) (double a);};
  3308. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3309. int argc;
  3310. char **argv;
  3311. int
  3312. main ()
  3313. {
  3314. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3320. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3321. do
  3322. CC="$ac_save_CC $ac_arg"
  3323. if ac_fn_c_try_compile "$LINENO"; then :
  3324. ac_cv_prog_cc_c89=$ac_arg
  3325. fi
  3326. rm -f core conftest.err conftest.$ac_objext
  3327. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3328. done
  3329. rm -f conftest.$ac_ext
  3330. CC=$ac_save_CC
  3331. fi
  3332. # AC_CACHE_VAL
  3333. case "x$ac_cv_prog_cc_c89" in
  3334. x)
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3336. $as_echo "none needed" >&6; } ;;
  3337. xno)
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3339. $as_echo "unsupported" >&6; } ;;
  3340. *)
  3341. CC="$CC $ac_cv_prog_cc_c89"
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3343. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3344. esac
  3345. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3346. fi
  3347. ac_ext=c
  3348. ac_cpp='$CPP $CPPFLAGS'
  3349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3353. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3354. if ${ac_cv_path_SED+:} false; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3358. for ac_i in 1 2 3 4 5 6 7; do
  3359. ac_script="$ac_script$as_nl$ac_script"
  3360. done
  3361. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3362. { ac_script=; unset ac_script;}
  3363. if test -z "$SED"; then
  3364. ac_path_SED_found=false
  3365. # Loop through the user's path and test for each of PROGNAME-LIST
  3366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3367. for as_dir in $PATH
  3368. do
  3369. IFS=$as_save_IFS
  3370. test -z "$as_dir" && as_dir=.
  3371. for ac_prog in sed gsed; do
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3374. as_fn_executable_p "$ac_path_SED" || continue
  3375. # Check for GNU ac_path_SED and select it if it is found.
  3376. # Check for GNU $ac_path_SED
  3377. case `"$ac_path_SED" --version 2>&1` in
  3378. *GNU*)
  3379. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3380. *)
  3381. ac_count=0
  3382. $as_echo_n 0123456789 >"conftest.in"
  3383. while :
  3384. do
  3385. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3386. mv "conftest.tmp" "conftest.in"
  3387. cp "conftest.in" "conftest.nl"
  3388. $as_echo '' >> "conftest.nl"
  3389. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3390. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3391. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3392. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3393. # Best one so far, save it but keep looking for a better one
  3394. ac_cv_path_SED="$ac_path_SED"
  3395. ac_path_SED_max=$ac_count
  3396. fi
  3397. # 10*(2^10) chars as input seems more than enough
  3398. test $ac_count -gt 10 && break
  3399. done
  3400. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3401. esac
  3402. $ac_path_SED_found && break 3
  3403. done
  3404. done
  3405. done
  3406. IFS=$as_save_IFS
  3407. if test -z "$ac_cv_path_SED"; then
  3408. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3409. fi
  3410. else
  3411. ac_cv_path_SED=$SED
  3412. fi
  3413. fi
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3415. $as_echo "$ac_cv_path_SED" >&6; }
  3416. SED="$ac_cv_path_SED"
  3417. rm -f conftest.sed
  3418. test -z "$SED" && SED=sed
  3419. Xsed="$SED -e 1s/^X//"
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3421. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3422. if ${ac_cv_path_GREP+:} false; then :
  3423. $as_echo_n "(cached) " >&6
  3424. else
  3425. if test -z "$GREP"; then
  3426. ac_path_GREP_found=false
  3427. # Loop through the user's path and test for each of PROGNAME-LIST
  3428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3429. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3430. do
  3431. IFS=$as_save_IFS
  3432. test -z "$as_dir" && as_dir=.
  3433. for ac_prog in grep ggrep; do
  3434. for ac_exec_ext in '' $ac_executable_extensions; do
  3435. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3436. as_fn_executable_p "$ac_path_GREP" || continue
  3437. # Check for GNU ac_path_GREP and select it if it is found.
  3438. # Check for GNU $ac_path_GREP
  3439. case `"$ac_path_GREP" --version 2>&1` in
  3440. *GNU*)
  3441. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3442. *)
  3443. ac_count=0
  3444. $as_echo_n 0123456789 >"conftest.in"
  3445. while :
  3446. do
  3447. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3448. mv "conftest.tmp" "conftest.in"
  3449. cp "conftest.in" "conftest.nl"
  3450. $as_echo 'GREP' >> "conftest.nl"
  3451. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3452. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3453. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3454. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3455. # Best one so far, save it but keep looking for a better one
  3456. ac_cv_path_GREP="$ac_path_GREP"
  3457. ac_path_GREP_max=$ac_count
  3458. fi
  3459. # 10*(2^10) chars as input seems more than enough
  3460. test $ac_count -gt 10 && break
  3461. done
  3462. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3463. esac
  3464. $ac_path_GREP_found && break 3
  3465. done
  3466. done
  3467. done
  3468. IFS=$as_save_IFS
  3469. if test -z "$ac_cv_path_GREP"; then
  3470. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3471. fi
  3472. else
  3473. ac_cv_path_GREP=$GREP
  3474. fi
  3475. fi
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3477. $as_echo "$ac_cv_path_GREP" >&6; }
  3478. GREP="$ac_cv_path_GREP"
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3480. $as_echo_n "checking for egrep... " >&6; }
  3481. if ${ac_cv_path_EGREP+:} false; then :
  3482. $as_echo_n "(cached) " >&6
  3483. else
  3484. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3485. then ac_cv_path_EGREP="$GREP -E"
  3486. else
  3487. if test -z "$EGREP"; then
  3488. ac_path_EGREP_found=false
  3489. # Loop through the user's path and test for each of PROGNAME-LIST
  3490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3491. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3492. do
  3493. IFS=$as_save_IFS
  3494. test -z "$as_dir" && as_dir=.
  3495. for ac_prog in egrep; do
  3496. for ac_exec_ext in '' $ac_executable_extensions; do
  3497. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3498. as_fn_executable_p "$ac_path_EGREP" || continue
  3499. # Check for GNU ac_path_EGREP and select it if it is found.
  3500. # Check for GNU $ac_path_EGREP
  3501. case `"$ac_path_EGREP" --version 2>&1` in
  3502. *GNU*)
  3503. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3504. *)
  3505. ac_count=0
  3506. $as_echo_n 0123456789 >"conftest.in"
  3507. while :
  3508. do
  3509. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3510. mv "conftest.tmp" "conftest.in"
  3511. cp "conftest.in" "conftest.nl"
  3512. $as_echo 'EGREP' >> "conftest.nl"
  3513. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3514. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3515. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3516. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3517. # Best one so far, save it but keep looking for a better one
  3518. ac_cv_path_EGREP="$ac_path_EGREP"
  3519. ac_path_EGREP_max=$ac_count
  3520. fi
  3521. # 10*(2^10) chars as input seems more than enough
  3522. test $ac_count -gt 10 && break
  3523. done
  3524. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3525. esac
  3526. $ac_path_EGREP_found && break 3
  3527. done
  3528. done
  3529. done
  3530. IFS=$as_save_IFS
  3531. if test -z "$ac_cv_path_EGREP"; then
  3532. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3533. fi
  3534. else
  3535. ac_cv_path_EGREP=$EGREP
  3536. fi
  3537. fi
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3540. $as_echo "$ac_cv_path_EGREP" >&6; }
  3541. EGREP="$ac_cv_path_EGREP"
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3543. $as_echo_n "checking for fgrep... " >&6; }
  3544. if ${ac_cv_path_FGREP+:} false; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3548. then ac_cv_path_FGREP="$GREP -F"
  3549. else
  3550. if test -z "$FGREP"; then
  3551. ac_path_FGREP_found=false
  3552. # Loop through the user's path and test for each of PROGNAME-LIST
  3553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3554. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3555. do
  3556. IFS=$as_save_IFS
  3557. test -z "$as_dir" && as_dir=.
  3558. for ac_prog in fgrep; do
  3559. for ac_exec_ext in '' $ac_executable_extensions; do
  3560. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3561. as_fn_executable_p "$ac_path_FGREP" || continue
  3562. # Check for GNU ac_path_FGREP and select it if it is found.
  3563. # Check for GNU $ac_path_FGREP
  3564. case `"$ac_path_FGREP" --version 2>&1` in
  3565. *GNU*)
  3566. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3567. *)
  3568. ac_count=0
  3569. $as_echo_n 0123456789 >"conftest.in"
  3570. while :
  3571. do
  3572. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3573. mv "conftest.tmp" "conftest.in"
  3574. cp "conftest.in" "conftest.nl"
  3575. $as_echo 'FGREP' >> "conftest.nl"
  3576. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3577. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3578. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3579. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3580. # Best one so far, save it but keep looking for a better one
  3581. ac_cv_path_FGREP="$ac_path_FGREP"
  3582. ac_path_FGREP_max=$ac_count
  3583. fi
  3584. # 10*(2^10) chars as input seems more than enough
  3585. test $ac_count -gt 10 && break
  3586. done
  3587. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3588. esac
  3589. $ac_path_FGREP_found && break 3
  3590. done
  3591. done
  3592. done
  3593. IFS=$as_save_IFS
  3594. if test -z "$ac_cv_path_FGREP"; then
  3595. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3596. fi
  3597. else
  3598. ac_cv_path_FGREP=$FGREP
  3599. fi
  3600. fi
  3601. fi
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3603. $as_echo "$ac_cv_path_FGREP" >&6; }
  3604. FGREP="$ac_cv_path_FGREP"
  3605. test -z "$GREP" && GREP=grep
  3606. # Check whether --with-gnu-ld was given.
  3607. if test "${with_gnu_ld+set}" = set; then :
  3608. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3609. else
  3610. with_gnu_ld=no
  3611. fi
  3612. ac_prog=ld
  3613. if test "$GCC" = yes; then
  3614. # Check if gcc -print-prog-name=ld gives a path.
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3616. $as_echo_n "checking for ld used by $CC... " >&6; }
  3617. case $host in
  3618. *-*-mingw*)
  3619. # gcc leaves a trailing carriage return which upsets mingw
  3620. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3621. *)
  3622. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3623. esac
  3624. case $ac_prog in
  3625. # Accept absolute paths.
  3626. [\\/]* | ?:[\\/]*)
  3627. re_direlt='/[^/][^/]*/\.\./'
  3628. # Canonicalize the pathname of ld
  3629. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3630. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3631. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3632. done
  3633. test -z "$LD" && LD="$ac_prog"
  3634. ;;
  3635. "")
  3636. # If it fails, then pretend we aren't using GCC.
  3637. ac_prog=ld
  3638. ;;
  3639. *)
  3640. # If it is relative, then search for the first ld in PATH.
  3641. with_gnu_ld=unknown
  3642. ;;
  3643. esac
  3644. elif test "$with_gnu_ld" = yes; then
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3646. $as_echo_n "checking for GNU ld... " >&6; }
  3647. else
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3649. $as_echo_n "checking for non-GNU ld... " >&6; }
  3650. fi
  3651. if ${lt_cv_path_LD+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. if test -z "$LD"; then
  3655. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3656. for ac_dir in $PATH; do
  3657. IFS="$lt_save_ifs"
  3658. test -z "$ac_dir" && ac_dir=.
  3659. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3660. lt_cv_path_LD="$ac_dir/$ac_prog"
  3661. # Check to see if the program is GNU ld. I'd rather use --version,
  3662. # but apparently some variants of GNU ld only accept -v.
  3663. # Break only if it was the GNU/non-GNU ld that we prefer.
  3664. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3665. *GNU* | *'with BFD'*)
  3666. test "$with_gnu_ld" != no && break
  3667. ;;
  3668. *)
  3669. test "$with_gnu_ld" != yes && break
  3670. ;;
  3671. esac
  3672. fi
  3673. done
  3674. IFS="$lt_save_ifs"
  3675. else
  3676. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3677. fi
  3678. fi
  3679. LD="$lt_cv_path_LD"
  3680. if test -n "$LD"; then
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3682. $as_echo "$LD" >&6; }
  3683. else
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3685. $as_echo "no" >&6; }
  3686. fi
  3687. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3689. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3690. if ${lt_cv_prog_gnu_ld+:} false; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3694. case `$LD -v 2>&1 </dev/null` in
  3695. *GNU* | *'with BFD'*)
  3696. lt_cv_prog_gnu_ld=yes
  3697. ;;
  3698. *)
  3699. lt_cv_prog_gnu_ld=no
  3700. ;;
  3701. esac
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3704. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3705. with_gnu_ld=$lt_cv_prog_gnu_ld
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3707. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3708. if ${lt_cv_path_NM+:} false; then :
  3709. $as_echo_n "(cached) " >&6
  3710. else
  3711. if test -n "$NM"; then
  3712. # Let the user override the test.
  3713. lt_cv_path_NM="$NM"
  3714. else
  3715. lt_nm_to_check="${ac_tool_prefix}nm"
  3716. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3717. lt_nm_to_check="$lt_nm_to_check nm"
  3718. fi
  3719. for lt_tmp_nm in $lt_nm_to_check; do
  3720. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3721. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3722. IFS="$lt_save_ifs"
  3723. test -z "$ac_dir" && ac_dir=.
  3724. tmp_nm="$ac_dir/$lt_tmp_nm"
  3725. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3726. # Check to see if the nm accepts a BSD-compat flag.
  3727. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3728. # nm: unknown option "B" ignored
  3729. # Tru64's nm complains that /dev/null is an invalid object file
  3730. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3731. */dev/null* | *'Invalid file or object type'*)
  3732. lt_cv_path_NM="$tmp_nm -B"
  3733. break
  3734. ;;
  3735. *)
  3736. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3737. */dev/null*)
  3738. lt_cv_path_NM="$tmp_nm -p"
  3739. break
  3740. ;;
  3741. *)
  3742. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3743. continue # so that we can try to find one that supports BSD flags
  3744. ;;
  3745. esac
  3746. ;;
  3747. esac
  3748. fi
  3749. done
  3750. IFS="$lt_save_ifs"
  3751. done
  3752. : ${lt_cv_path_NM=no}
  3753. fi
  3754. fi
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3756. $as_echo "$lt_cv_path_NM" >&6; }
  3757. if test "$lt_cv_path_NM" != "no"; then
  3758. NM="$lt_cv_path_NM"
  3759. else
  3760. # Didn't find any BSD compatible name lister, look for dumpbin.
  3761. if test -n "$DUMPBIN"; then :
  3762. # Let the user override the test.
  3763. else
  3764. if test -n "$ac_tool_prefix"; then
  3765. for ac_prog in dumpbin "link -dump"
  3766. do
  3767. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3768. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3770. $as_echo_n "checking for $ac_word... " >&6; }
  3771. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3772. $as_echo_n "(cached) " >&6
  3773. else
  3774. if test -n "$DUMPBIN"; then
  3775. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3776. else
  3777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3778. for as_dir in $PATH
  3779. do
  3780. IFS=$as_save_IFS
  3781. test -z "$as_dir" && as_dir=.
  3782. for ac_exec_ext in '' $ac_executable_extensions; do
  3783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3784. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3786. break 2
  3787. fi
  3788. done
  3789. done
  3790. IFS=$as_save_IFS
  3791. fi
  3792. fi
  3793. DUMPBIN=$ac_cv_prog_DUMPBIN
  3794. if test -n "$DUMPBIN"; then
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3796. $as_echo "$DUMPBIN" >&6; }
  3797. else
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3799. $as_echo "no" >&6; }
  3800. fi
  3801. test -n "$DUMPBIN" && break
  3802. done
  3803. fi
  3804. if test -z "$DUMPBIN"; then
  3805. ac_ct_DUMPBIN=$DUMPBIN
  3806. for ac_prog in dumpbin "link -dump"
  3807. do
  3808. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3809. set dummy $ac_prog; ac_word=$2
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3811. $as_echo_n "checking for $ac_word... " >&6; }
  3812. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3813. $as_echo_n "(cached) " >&6
  3814. else
  3815. if test -n "$ac_ct_DUMPBIN"; then
  3816. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3817. else
  3818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3819. for as_dir in $PATH
  3820. do
  3821. IFS=$as_save_IFS
  3822. test -z "$as_dir" && as_dir=.
  3823. for ac_exec_ext in '' $ac_executable_extensions; do
  3824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3825. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3827. break 2
  3828. fi
  3829. done
  3830. done
  3831. IFS=$as_save_IFS
  3832. fi
  3833. fi
  3834. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3835. if test -n "$ac_ct_DUMPBIN"; then
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3837. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3838. else
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3840. $as_echo "no" >&6; }
  3841. fi
  3842. test -n "$ac_ct_DUMPBIN" && break
  3843. done
  3844. if test "x$ac_ct_DUMPBIN" = x; then
  3845. DUMPBIN=":"
  3846. else
  3847. case $cross_compiling:$ac_tool_warned in
  3848. yes:)
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3851. ac_tool_warned=yes ;;
  3852. esac
  3853. DUMPBIN=$ac_ct_DUMPBIN
  3854. fi
  3855. fi
  3856. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3857. *COFF*)
  3858. DUMPBIN="$DUMPBIN -symbols"
  3859. ;;
  3860. *)
  3861. DUMPBIN=:
  3862. ;;
  3863. esac
  3864. fi
  3865. if test "$DUMPBIN" != ":"; then
  3866. NM="$DUMPBIN"
  3867. fi
  3868. fi
  3869. test -z "$NM" && NM=nm
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3871. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3872. if ${lt_cv_nm_interface+:} false; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. lt_cv_nm_interface="BSD nm"
  3876. echo "int some_variable = 0;" > conftest.$ac_ext
  3877. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3878. (eval "$ac_compile" 2>conftest.err)
  3879. cat conftest.err >&5
  3880. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3881. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3882. cat conftest.err >&5
  3883. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3884. cat conftest.out >&5
  3885. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3886. lt_cv_nm_interface="MS dumpbin"
  3887. fi
  3888. rm -f conftest*
  3889. fi
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3891. $as_echo "$lt_cv_nm_interface" >&6; }
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3893. $as_echo_n "checking whether ln -s works... " >&6; }
  3894. LN_S=$as_ln_s
  3895. if test "$LN_S" = "ln -s"; then
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3897. $as_echo "yes" >&6; }
  3898. else
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3900. $as_echo "no, using $LN_S" >&6; }
  3901. fi
  3902. # find the maximum length of command line arguments
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3904. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3905. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3906. $as_echo_n "(cached) " >&6
  3907. else
  3908. i=0
  3909. teststring="ABCD"
  3910. case $build_os in
  3911. msdosdjgpp*)
  3912. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3913. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3914. # during glob expansion). Even if it were fixed, the result of this
  3915. # check would be larger than it should be.
  3916. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3917. ;;
  3918. gnu*)
  3919. # Under GNU Hurd, this test is not required because there is
  3920. # no limit to the length of command line arguments.
  3921. # Libtool will interpret -1 as no limit whatsoever
  3922. lt_cv_sys_max_cmd_len=-1;
  3923. ;;
  3924. cygwin* | mingw* | cegcc*)
  3925. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3926. # about 5 minutes as the teststring grows exponentially.
  3927. # Worse, since 9x/ME are not pre-emptively multitasking,
  3928. # you end up with a "frozen" computer, even though with patience
  3929. # the test eventually succeeds (with a max line length of 256k).
  3930. # Instead, let's just punt: use the minimum linelength reported by
  3931. # all of the supported platforms: 8192 (on NT/2K/XP).
  3932. lt_cv_sys_max_cmd_len=8192;
  3933. ;;
  3934. mint*)
  3935. # On MiNT this can take a long time and run out of memory.
  3936. lt_cv_sys_max_cmd_len=8192;
  3937. ;;
  3938. amigaos*)
  3939. # On AmigaOS with pdksh, this test takes hours, literally.
  3940. # So we just punt and use a minimum line length of 8192.
  3941. lt_cv_sys_max_cmd_len=8192;
  3942. ;;
  3943. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3944. # This has been around since 386BSD, at least. Likely further.
  3945. if test -x /sbin/sysctl; then
  3946. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3947. elif test -x /usr/sbin/sysctl; then
  3948. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3949. else
  3950. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3951. fi
  3952. # And add a safety zone
  3953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3954. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3955. ;;
  3956. interix*)
  3957. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3958. lt_cv_sys_max_cmd_len=196608
  3959. ;;
  3960. os2*)
  3961. # The test takes a long time on OS/2.
  3962. lt_cv_sys_max_cmd_len=8192
  3963. ;;
  3964. osf*)
  3965. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3966. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3967. # nice to cause kernel panics so lets avoid the loop below.
  3968. # First set a reasonable default.
  3969. lt_cv_sys_max_cmd_len=16384
  3970. #
  3971. if test -x /sbin/sysconfig; then
  3972. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3973. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3974. esac
  3975. fi
  3976. ;;
  3977. sco3.2v5*)
  3978. lt_cv_sys_max_cmd_len=102400
  3979. ;;
  3980. sysv5* | sco5v6* | sysv4.2uw2*)
  3981. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3982. if test -n "$kargmax"; then
  3983. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3984. else
  3985. lt_cv_sys_max_cmd_len=32768
  3986. fi
  3987. ;;
  3988. *)
  3989. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3990. if test -n "$lt_cv_sys_max_cmd_len"; then
  3991. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3992. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3993. else
  3994. # Make teststring a little bigger before we do anything with it.
  3995. # a 1K string should be a reasonable start.
  3996. for i in 1 2 3 4 5 6 7 8 ; do
  3997. teststring=$teststring$teststring
  3998. done
  3999. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4000. # If test is not a shell built-in, we'll probably end up computing a
  4001. # maximum length that is only half of the actual maximum length, but
  4002. # we can't tell.
  4003. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4004. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4005. test $i != 17 # 1/2 MB should be enough
  4006. do
  4007. i=`expr $i + 1`
  4008. teststring=$teststring$teststring
  4009. done
  4010. # Only check the string length outside the loop.
  4011. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4012. teststring=
  4013. # Add a significant safety factor because C++ compilers can tack on
  4014. # massive amounts of additional arguments before passing them to the
  4015. # linker. It appears as though 1/2 is a usable value.
  4016. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4017. fi
  4018. ;;
  4019. esac
  4020. fi
  4021. if test -n $lt_cv_sys_max_cmd_len ; then
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4023. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4024. else
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4026. $as_echo "none" >&6; }
  4027. fi
  4028. max_cmd_len=$lt_cv_sys_max_cmd_len
  4029. : ${CP="cp -f"}
  4030. : ${MV="mv -f"}
  4031. : ${RM="rm -f"}
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4033. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4034. # Try some XSI features
  4035. xsi_shell=no
  4036. ( _lt_dummy="a/b/c"
  4037. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4038. = c,a/b,b/c, \
  4039. && eval 'test $(( 1 + 1 )) -eq 2 \
  4040. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4041. && xsi_shell=yes
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4043. $as_echo "$xsi_shell" >&6; }
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4045. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4046. lt_shell_append=no
  4047. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4048. >/dev/null 2>&1 \
  4049. && lt_shell_append=yes
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4051. $as_echo "$lt_shell_append" >&6; }
  4052. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4053. lt_unset=unset
  4054. else
  4055. lt_unset=false
  4056. fi
  4057. # test EBCDIC or ASCII
  4058. case `echo X|tr X '\101'` in
  4059. A) # ASCII based system
  4060. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4061. lt_SP2NL='tr \040 \012'
  4062. lt_NL2SP='tr \015\012 \040\040'
  4063. ;;
  4064. *) # EBCDIC based system
  4065. lt_SP2NL='tr \100 \n'
  4066. lt_NL2SP='tr \r\n \100\100'
  4067. ;;
  4068. esac
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4070. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4071. if ${lt_cv_to_host_file_cmd+:} false; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. case $host in
  4075. *-*-mingw* )
  4076. case $build in
  4077. *-*-mingw* ) # actually msys
  4078. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4079. ;;
  4080. *-*-cygwin* )
  4081. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4082. ;;
  4083. * ) # otherwise, assume *nix
  4084. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4085. ;;
  4086. esac
  4087. ;;
  4088. *-*-cygwin* )
  4089. case $build in
  4090. *-*-mingw* ) # actually msys
  4091. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4092. ;;
  4093. *-*-cygwin* )
  4094. lt_cv_to_host_file_cmd=func_convert_file_noop
  4095. ;;
  4096. * ) # otherwise, assume *nix
  4097. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4098. ;;
  4099. esac
  4100. ;;
  4101. * ) # unhandled hosts (and "normal" native builds)
  4102. lt_cv_to_host_file_cmd=func_convert_file_noop
  4103. ;;
  4104. esac
  4105. fi
  4106. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4108. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4110. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4111. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. #assume ordinary cross tools, or native build.
  4115. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4116. case $host in
  4117. *-*-mingw* )
  4118. case $build in
  4119. *-*-mingw* ) # actually msys
  4120. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4121. ;;
  4122. esac
  4123. ;;
  4124. esac
  4125. fi
  4126. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4128. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4130. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4131. if ${lt_cv_ld_reload_flag+:} false; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. lt_cv_ld_reload_flag='-r'
  4135. fi
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4137. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4138. reload_flag=$lt_cv_ld_reload_flag
  4139. case $reload_flag in
  4140. "" | " "*) ;;
  4141. *) reload_flag=" $reload_flag" ;;
  4142. esac
  4143. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4144. case $host_os in
  4145. cygwin* | mingw* | pw32* | cegcc*)
  4146. if test "$GCC" != yes; then
  4147. reload_cmds=false
  4148. fi
  4149. ;;
  4150. darwin*)
  4151. if test "$GCC" = yes; then
  4152. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4153. else
  4154. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4155. fi
  4156. ;;
  4157. esac
  4158. if test -n "$ac_tool_prefix"; then
  4159. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4160. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4162. $as_echo_n "checking for $ac_word... " >&6; }
  4163. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. if test -n "$OBJDUMP"; then
  4167. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4168. else
  4169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4170. for as_dir in $PATH
  4171. do
  4172. IFS=$as_save_IFS
  4173. test -z "$as_dir" && as_dir=.
  4174. for ac_exec_ext in '' $ac_executable_extensions; do
  4175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4176. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4178. break 2
  4179. fi
  4180. done
  4181. done
  4182. IFS=$as_save_IFS
  4183. fi
  4184. fi
  4185. OBJDUMP=$ac_cv_prog_OBJDUMP
  4186. if test -n "$OBJDUMP"; then
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4188. $as_echo "$OBJDUMP" >&6; }
  4189. else
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4191. $as_echo "no" >&6; }
  4192. fi
  4193. fi
  4194. if test -z "$ac_cv_prog_OBJDUMP"; then
  4195. ac_ct_OBJDUMP=$OBJDUMP
  4196. # Extract the first word of "objdump", so it can be a program name with args.
  4197. set dummy objdump; ac_word=$2
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4199. $as_echo_n "checking for $ac_word... " >&6; }
  4200. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. if test -n "$ac_ct_OBJDUMP"; then
  4204. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4205. else
  4206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4207. for as_dir in $PATH
  4208. do
  4209. IFS=$as_save_IFS
  4210. test -z "$as_dir" && as_dir=.
  4211. for ac_exec_ext in '' $ac_executable_extensions; do
  4212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4213. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4215. break 2
  4216. fi
  4217. done
  4218. done
  4219. IFS=$as_save_IFS
  4220. fi
  4221. fi
  4222. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4223. if test -n "$ac_ct_OBJDUMP"; then
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4225. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4226. else
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4228. $as_echo "no" >&6; }
  4229. fi
  4230. if test "x$ac_ct_OBJDUMP" = x; then
  4231. OBJDUMP="false"
  4232. else
  4233. case $cross_compiling:$ac_tool_warned in
  4234. yes:)
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4237. ac_tool_warned=yes ;;
  4238. esac
  4239. OBJDUMP=$ac_ct_OBJDUMP
  4240. fi
  4241. else
  4242. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4243. fi
  4244. test -z "$OBJDUMP" && OBJDUMP=objdump
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4246. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4247. if ${lt_cv_deplibs_check_method+:} false; then :
  4248. $as_echo_n "(cached) " >&6
  4249. else
  4250. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4251. lt_cv_file_magic_test_file=
  4252. lt_cv_deplibs_check_method='unknown'
  4253. # Need to set the preceding variable on all platforms that support
  4254. # interlibrary dependencies.
  4255. # 'none' -- dependencies not supported.
  4256. # `unknown' -- same as none, but documents that we really don't know.
  4257. # 'pass_all' -- all dependencies passed with no checks.
  4258. # 'test_compile' -- check by making test program.
  4259. # 'file_magic [[regex]]' -- check by looking for files in library path
  4260. # which responds to the $file_magic_cmd with a given extended regex.
  4261. # If you have `file' or equivalent on your system and you're not sure
  4262. # whether `pass_all' will *always* work, you probably want this one.
  4263. case $host_os in
  4264. aix[4-9]*)
  4265. lt_cv_deplibs_check_method=pass_all
  4266. ;;
  4267. beos*)
  4268. lt_cv_deplibs_check_method=pass_all
  4269. ;;
  4270. bsdi[45]*)
  4271. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4272. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4273. lt_cv_file_magic_test_file=/shlib/libc.so
  4274. ;;
  4275. cygwin*)
  4276. # func_win32_libid is a shell function defined in ltmain.sh
  4277. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4278. lt_cv_file_magic_cmd='func_win32_libid'
  4279. lt_cv_deplibs_check_method=pass_all
  4280. ;;
  4281. mingw* | pw32*)
  4282. # Base MSYS/MinGW do not provide the 'file' command needed by
  4283. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4284. # unless we find 'file', for example because we are cross-compiling.
  4285. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4286. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4287. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4288. lt_cv_file_magic_cmd='func_win32_libid'
  4289. else
  4290. # Keep this pattern in sync with the one in func_win32_libid.
  4291. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4292. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4293. fi
  4294. lt_cv_deplibs_check_method=pass_all
  4295. ;;
  4296. cegcc*)
  4297. # use the weaker test based on 'objdump'. See mingw*.
  4298. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4299. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4300. ;;
  4301. darwin* | rhapsody*)
  4302. lt_cv_deplibs_check_method=pass_all
  4303. ;;
  4304. freebsd* | dragonfly*)
  4305. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4306. case $host_cpu in
  4307. i*86 )
  4308. # Not sure whether the presence of OpenBSD here was a mistake.
  4309. # Let's accept both of them until this is cleared up.
  4310. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4311. lt_cv_file_magic_cmd=/usr/bin/file
  4312. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4313. ;;
  4314. esac
  4315. else
  4316. lt_cv_deplibs_check_method=pass_all
  4317. fi
  4318. ;;
  4319. gnu*)
  4320. lt_cv_deplibs_check_method=pass_all
  4321. ;;
  4322. haiku*)
  4323. lt_cv_deplibs_check_method=pass_all
  4324. ;;
  4325. hpux10.20* | hpux11*)
  4326. lt_cv_file_magic_cmd=/usr/bin/file
  4327. case $host_cpu in
  4328. ia64*)
  4329. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4330. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4331. ;;
  4332. hppa*64*)
  4333. 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]'
  4334. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4335. ;;
  4336. *)
  4337. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4338. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4339. ;;
  4340. esac
  4341. ;;
  4342. interix[3-9]*)
  4343. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4344. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4345. ;;
  4346. irix5* | irix6* | nonstopux*)
  4347. case $LD in
  4348. *-32|*"-32 ") libmagic=32-bit;;
  4349. *-n32|*"-n32 ") libmagic=N32;;
  4350. *-64|*"-64 ") libmagic=64-bit;;
  4351. *) libmagic=never-match;;
  4352. esac
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. # This must be glibc/ELF.
  4356. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4357. lt_cv_deplibs_check_method=pass_all
  4358. ;;
  4359. netbsd*)
  4360. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4361. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4362. else
  4363. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4364. fi
  4365. ;;
  4366. newos6*)
  4367. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4368. lt_cv_file_magic_cmd=/usr/bin/file
  4369. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4370. ;;
  4371. *nto* | *qnx*)
  4372. lt_cv_deplibs_check_method=pass_all
  4373. ;;
  4374. openbsd*)
  4375. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4376. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4377. else
  4378. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4379. fi
  4380. ;;
  4381. osf3* | osf4* | osf5*)
  4382. lt_cv_deplibs_check_method=pass_all
  4383. ;;
  4384. rdos*)
  4385. lt_cv_deplibs_check_method=pass_all
  4386. ;;
  4387. solaris*)
  4388. lt_cv_deplibs_check_method=pass_all
  4389. ;;
  4390. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. sysv4 | sysv4.3*)
  4394. case $host_vendor in
  4395. motorola)
  4396. 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]'
  4397. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4398. ;;
  4399. ncr)
  4400. lt_cv_deplibs_check_method=pass_all
  4401. ;;
  4402. sequent)
  4403. lt_cv_file_magic_cmd='/bin/file'
  4404. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4405. ;;
  4406. sni)
  4407. lt_cv_file_magic_cmd='/bin/file'
  4408. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4409. lt_cv_file_magic_test_file=/lib/libc.so
  4410. ;;
  4411. siemens)
  4412. lt_cv_deplibs_check_method=pass_all
  4413. ;;
  4414. pc)
  4415. lt_cv_deplibs_check_method=pass_all
  4416. ;;
  4417. esac
  4418. ;;
  4419. tpf*)
  4420. lt_cv_deplibs_check_method=pass_all
  4421. ;;
  4422. esac
  4423. fi
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4425. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4426. file_magic_glob=
  4427. want_nocaseglob=no
  4428. if test "$build" = "$host"; then
  4429. case $host_os in
  4430. mingw* | pw32*)
  4431. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4432. want_nocaseglob=yes
  4433. else
  4434. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4435. fi
  4436. ;;
  4437. esac
  4438. fi
  4439. file_magic_cmd=$lt_cv_file_magic_cmd
  4440. deplibs_check_method=$lt_cv_deplibs_check_method
  4441. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4442. if test -n "$ac_tool_prefix"; then
  4443. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4444. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4446. $as_echo_n "checking for $ac_word... " >&6; }
  4447. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4448. $as_echo_n "(cached) " >&6
  4449. else
  4450. if test -n "$DLLTOOL"; then
  4451. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4452. else
  4453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4454. for as_dir in $PATH
  4455. do
  4456. IFS=$as_save_IFS
  4457. test -z "$as_dir" && as_dir=.
  4458. for ac_exec_ext in '' $ac_executable_extensions; do
  4459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4460. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4462. break 2
  4463. fi
  4464. done
  4465. done
  4466. IFS=$as_save_IFS
  4467. fi
  4468. fi
  4469. DLLTOOL=$ac_cv_prog_DLLTOOL
  4470. if test -n "$DLLTOOL"; then
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4472. $as_echo "$DLLTOOL" >&6; }
  4473. else
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4475. $as_echo "no" >&6; }
  4476. fi
  4477. fi
  4478. if test -z "$ac_cv_prog_DLLTOOL"; then
  4479. ac_ct_DLLTOOL=$DLLTOOL
  4480. # Extract the first word of "dlltool", so it can be a program name with args.
  4481. set dummy dlltool; ac_word=$2
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4483. $as_echo_n "checking for $ac_word... " >&6; }
  4484. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4485. $as_echo_n "(cached) " >&6
  4486. else
  4487. if test -n "$ac_ct_DLLTOOL"; then
  4488. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4489. else
  4490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4491. for as_dir in $PATH
  4492. do
  4493. IFS=$as_save_IFS
  4494. test -z "$as_dir" && as_dir=.
  4495. for ac_exec_ext in '' $ac_executable_extensions; do
  4496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4497. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4499. break 2
  4500. fi
  4501. done
  4502. done
  4503. IFS=$as_save_IFS
  4504. fi
  4505. fi
  4506. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4507. if test -n "$ac_ct_DLLTOOL"; then
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4509. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4510. else
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4512. $as_echo "no" >&6; }
  4513. fi
  4514. if test "x$ac_ct_DLLTOOL" = x; then
  4515. DLLTOOL="false"
  4516. else
  4517. case $cross_compiling:$ac_tool_warned in
  4518. yes:)
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4520. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4521. ac_tool_warned=yes ;;
  4522. esac
  4523. DLLTOOL=$ac_ct_DLLTOOL
  4524. fi
  4525. else
  4526. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4527. fi
  4528. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4530. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4531. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4532. $as_echo_n "(cached) " >&6
  4533. else
  4534. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4535. case $host_os in
  4536. cygwin* | mingw* | pw32* | cegcc*)
  4537. # two different shell functions defined in ltmain.sh
  4538. # decide which to use based on capabilities of $DLLTOOL
  4539. case `$DLLTOOL --help 2>&1` in
  4540. *--identify-strict*)
  4541. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4542. ;;
  4543. *)
  4544. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4545. ;;
  4546. esac
  4547. ;;
  4548. *)
  4549. # fallback: assume linklib IS sharedlib
  4550. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4551. ;;
  4552. esac
  4553. fi
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4555. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4556. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4557. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4558. if test -n "$ac_tool_prefix"; then
  4559. for ac_prog in ar
  4560. do
  4561. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4562. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4564. $as_echo_n "checking for $ac_word... " >&6; }
  4565. if ${ac_cv_prog_AR+:} false; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. if test -n "$AR"; then
  4569. ac_cv_prog_AR="$AR" # Let the user override the test.
  4570. else
  4571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4572. for as_dir in $PATH
  4573. do
  4574. IFS=$as_save_IFS
  4575. test -z "$as_dir" && as_dir=.
  4576. for ac_exec_ext in '' $ac_executable_extensions; do
  4577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4578. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4580. break 2
  4581. fi
  4582. done
  4583. done
  4584. IFS=$as_save_IFS
  4585. fi
  4586. fi
  4587. AR=$ac_cv_prog_AR
  4588. if test -n "$AR"; then
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4590. $as_echo "$AR" >&6; }
  4591. else
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4593. $as_echo "no" >&6; }
  4594. fi
  4595. test -n "$AR" && break
  4596. done
  4597. fi
  4598. if test -z "$AR"; then
  4599. ac_ct_AR=$AR
  4600. for ac_prog in ar
  4601. do
  4602. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4603. set dummy $ac_prog; ac_word=$2
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4605. $as_echo_n "checking for $ac_word... " >&6; }
  4606. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4607. $as_echo_n "(cached) " >&6
  4608. else
  4609. if test -n "$ac_ct_AR"; then
  4610. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4611. else
  4612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4613. for as_dir in $PATH
  4614. do
  4615. IFS=$as_save_IFS
  4616. test -z "$as_dir" && as_dir=.
  4617. for ac_exec_ext in '' $ac_executable_extensions; do
  4618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4619. ac_cv_prog_ac_ct_AR="$ac_prog"
  4620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4621. break 2
  4622. fi
  4623. done
  4624. done
  4625. IFS=$as_save_IFS
  4626. fi
  4627. fi
  4628. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4629. if test -n "$ac_ct_AR"; then
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4631. $as_echo "$ac_ct_AR" >&6; }
  4632. else
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4634. $as_echo "no" >&6; }
  4635. fi
  4636. test -n "$ac_ct_AR" && break
  4637. done
  4638. if test "x$ac_ct_AR" = x; then
  4639. AR="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. AR=$ac_ct_AR
  4648. fi
  4649. fi
  4650. : ${AR=ar}
  4651. : ${AR_FLAGS=cru}
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4653. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4654. if ${lt_cv_ar_at_file+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. lt_cv_ar_at_file=no
  4658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4659. /* end confdefs.h. */
  4660. int
  4661. main ()
  4662. {
  4663. ;
  4664. return 0;
  4665. }
  4666. _ACEOF
  4667. if ac_fn_c_try_compile "$LINENO"; then :
  4668. echo conftest.$ac_objext > conftest.lst
  4669. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4670. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4671. (eval $lt_ar_try) 2>&5
  4672. ac_status=$?
  4673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4674. test $ac_status = 0; }
  4675. if test "$ac_status" -eq 0; then
  4676. # Ensure the archiver fails upon bogus file names.
  4677. rm -f conftest.$ac_objext libconftest.a
  4678. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4679. (eval $lt_ar_try) 2>&5
  4680. ac_status=$?
  4681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4682. test $ac_status = 0; }
  4683. if test "$ac_status" -ne 0; then
  4684. lt_cv_ar_at_file=@
  4685. fi
  4686. fi
  4687. rm -f conftest.* libconftest.a
  4688. fi
  4689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4690. fi
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4692. $as_echo "$lt_cv_ar_at_file" >&6; }
  4693. if test "x$lt_cv_ar_at_file" = xno; then
  4694. archiver_list_spec=
  4695. else
  4696. archiver_list_spec=$lt_cv_ar_at_file
  4697. fi
  4698. if test -n "$ac_tool_prefix"; then
  4699. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4700. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4702. $as_echo_n "checking for $ac_word... " >&6; }
  4703. if ${ac_cv_prog_STRIP+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. if test -n "$STRIP"; then
  4707. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4708. else
  4709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4710. for as_dir in $PATH
  4711. do
  4712. IFS=$as_save_IFS
  4713. test -z "$as_dir" && as_dir=.
  4714. for ac_exec_ext in '' $ac_executable_extensions; do
  4715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4716. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4718. break 2
  4719. fi
  4720. done
  4721. done
  4722. IFS=$as_save_IFS
  4723. fi
  4724. fi
  4725. STRIP=$ac_cv_prog_STRIP
  4726. if test -n "$STRIP"; then
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4728. $as_echo "$STRIP" >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4731. $as_echo "no" >&6; }
  4732. fi
  4733. fi
  4734. if test -z "$ac_cv_prog_STRIP"; then
  4735. ac_ct_STRIP=$STRIP
  4736. # Extract the first word of "strip", so it can be a program name with args.
  4737. set dummy strip; ac_word=$2
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4739. $as_echo_n "checking for $ac_word... " >&6; }
  4740. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. if test -n "$ac_ct_STRIP"; then
  4744. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4745. else
  4746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4747. for as_dir in $PATH
  4748. do
  4749. IFS=$as_save_IFS
  4750. test -z "$as_dir" && as_dir=.
  4751. for ac_exec_ext in '' $ac_executable_extensions; do
  4752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4753. ac_cv_prog_ac_ct_STRIP="strip"
  4754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4755. break 2
  4756. fi
  4757. done
  4758. done
  4759. IFS=$as_save_IFS
  4760. fi
  4761. fi
  4762. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4763. if test -n "$ac_ct_STRIP"; then
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4765. $as_echo "$ac_ct_STRIP" >&6; }
  4766. else
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4768. $as_echo "no" >&6; }
  4769. fi
  4770. if test "x$ac_ct_STRIP" = x; then
  4771. STRIP=":"
  4772. else
  4773. case $cross_compiling:$ac_tool_warned in
  4774. yes:)
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4777. ac_tool_warned=yes ;;
  4778. esac
  4779. STRIP=$ac_ct_STRIP
  4780. fi
  4781. else
  4782. STRIP="$ac_cv_prog_STRIP"
  4783. fi
  4784. test -z "$STRIP" && STRIP=:
  4785. if test -n "$ac_tool_prefix"; then
  4786. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4787. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4789. $as_echo_n "checking for $ac_word... " >&6; }
  4790. if ${ac_cv_prog_RANLIB+:} false; then :
  4791. $as_echo_n "(cached) " >&6
  4792. else
  4793. if test -n "$RANLIB"; then
  4794. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4795. else
  4796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4797. for as_dir in $PATH
  4798. do
  4799. IFS=$as_save_IFS
  4800. test -z "$as_dir" && as_dir=.
  4801. for ac_exec_ext in '' $ac_executable_extensions; do
  4802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4803. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4805. break 2
  4806. fi
  4807. done
  4808. done
  4809. IFS=$as_save_IFS
  4810. fi
  4811. fi
  4812. RANLIB=$ac_cv_prog_RANLIB
  4813. if test -n "$RANLIB"; then
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4815. $as_echo "$RANLIB" >&6; }
  4816. else
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4818. $as_echo "no" >&6; }
  4819. fi
  4820. fi
  4821. if test -z "$ac_cv_prog_RANLIB"; then
  4822. ac_ct_RANLIB=$RANLIB
  4823. # Extract the first word of "ranlib", so it can be a program name with args.
  4824. set dummy ranlib; ac_word=$2
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4826. $as_echo_n "checking for $ac_word... " >&6; }
  4827. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. if test -n "$ac_ct_RANLIB"; then
  4831. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4832. else
  4833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4834. for as_dir in $PATH
  4835. do
  4836. IFS=$as_save_IFS
  4837. test -z "$as_dir" && as_dir=.
  4838. for ac_exec_ext in '' $ac_executable_extensions; do
  4839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4840. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4842. break 2
  4843. fi
  4844. done
  4845. done
  4846. IFS=$as_save_IFS
  4847. fi
  4848. fi
  4849. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4850. if test -n "$ac_ct_RANLIB"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4852. $as_echo "$ac_ct_RANLIB" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. if test "x$ac_ct_RANLIB" = x; then
  4858. RANLIB=":"
  4859. else
  4860. case $cross_compiling:$ac_tool_warned in
  4861. yes:)
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4864. ac_tool_warned=yes ;;
  4865. esac
  4866. RANLIB=$ac_ct_RANLIB
  4867. fi
  4868. else
  4869. RANLIB="$ac_cv_prog_RANLIB"
  4870. fi
  4871. test -z "$RANLIB" && RANLIB=:
  4872. # Determine commands to create old-style static archives.
  4873. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4874. old_postinstall_cmds='chmod 644 $oldlib'
  4875. old_postuninstall_cmds=
  4876. if test -n "$RANLIB"; then
  4877. case $host_os in
  4878. openbsd*)
  4879. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4880. ;;
  4881. *)
  4882. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4883. ;;
  4884. esac
  4885. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4886. fi
  4887. case $host_os in
  4888. darwin*)
  4889. lock_old_archive_extraction=yes ;;
  4890. *)
  4891. lock_old_archive_extraction=no ;;
  4892. esac
  4893. for ac_prog in gawk mawk nawk awk
  4894. do
  4895. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4896. set dummy $ac_prog; ac_word=$2
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4898. $as_echo_n "checking for $ac_word... " >&6; }
  4899. if ${ac_cv_prog_AWK+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. if test -n "$AWK"; then
  4903. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4912. ac_cv_prog_AWK="$ac_prog"
  4913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. IFS=$as_save_IFS
  4919. fi
  4920. fi
  4921. AWK=$ac_cv_prog_AWK
  4922. if test -n "$AWK"; then
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4924. $as_echo "$AWK" >&6; }
  4925. else
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4927. $as_echo "no" >&6; }
  4928. fi
  4929. test -n "$AWK" && break
  4930. done
  4931. # If no C compiler was specified, use CC.
  4932. LTCC=${LTCC-"$CC"}
  4933. # If no C compiler flags were specified, use CFLAGS.
  4934. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4935. # Allow CC to be a program name with arguments.
  4936. compiler=$CC
  4937. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4939. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4940. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4941. $as_echo_n "(cached) " >&6
  4942. else
  4943. # These are sane defaults that work on at least a few old systems.
  4944. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4945. # Character class describing NM global symbol codes.
  4946. symcode='[BCDEGRST]'
  4947. # Regexp to match symbols that can be accessed directly from C.
  4948. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4949. # Define system-specific variables.
  4950. case $host_os in
  4951. aix*)
  4952. symcode='[BCDT]'
  4953. ;;
  4954. cygwin* | mingw* | pw32* | cegcc*)
  4955. symcode='[ABCDGISTW]'
  4956. ;;
  4957. hpux*)
  4958. if test "$host_cpu" = ia64; then
  4959. symcode='[ABCDEGRST]'
  4960. fi
  4961. ;;
  4962. irix* | nonstopux*)
  4963. symcode='[BCDEGRST]'
  4964. ;;
  4965. osf*)
  4966. symcode='[BCDEGQRST]'
  4967. ;;
  4968. solaris*)
  4969. symcode='[BDRT]'
  4970. ;;
  4971. sco3.2v5*)
  4972. symcode='[DT]'
  4973. ;;
  4974. sysv4.2uw2*)
  4975. symcode='[DT]'
  4976. ;;
  4977. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4978. symcode='[ABDT]'
  4979. ;;
  4980. sysv4)
  4981. symcode='[DFNSTU]'
  4982. ;;
  4983. esac
  4984. # If we're using GNU nm, then use its standard symbol codes.
  4985. case `$NM -V 2>&1` in
  4986. *GNU* | *'with BFD'*)
  4987. symcode='[ABCDGIRSTW]' ;;
  4988. esac
  4989. # Transform an extracted symbol line into a proper C declaration.
  4990. # Some systems (esp. on ia64) link data and code symbols differently,
  4991. # so use this general approach.
  4992. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4993. # Transform an extracted symbol line into symbol name and symbol address
  4994. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4995. 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'"
  4996. # Handle CRLF in mingw tool chain
  4997. opt_cr=
  4998. case $build_os in
  4999. mingw*)
  5000. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5001. ;;
  5002. esac
  5003. # Try without a prefix underscore, then with it.
  5004. for ac_symprfx in "" "_"; do
  5005. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5006. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5007. # Write the raw and C identifiers.
  5008. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5009. # Fake it for dumpbin and say T for any non-static function
  5010. # and D for any global variable.
  5011. # Also find C++ and __fastcall symbols from MSVC++,
  5012. # which start with @ or ?.
  5013. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5014. " {last_section=section; section=\$ 3};"\
  5015. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5016. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5017. " \$ 0!~/External *\|/{next};"\
  5018. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5019. " {if(hide[section]) next};"\
  5020. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5021. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5022. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5023. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5024. " ' prfx=^$ac_symprfx"
  5025. else
  5026. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5027. fi
  5028. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5029. # Check to see that the pipe works correctly.
  5030. pipe_works=no
  5031. rm -f conftest*
  5032. cat > conftest.$ac_ext <<_LT_EOF
  5033. #ifdef __cplusplus
  5034. extern "C" {
  5035. #endif
  5036. char nm_test_var;
  5037. void nm_test_func(void);
  5038. void nm_test_func(void){}
  5039. #ifdef __cplusplus
  5040. }
  5041. #endif
  5042. int main(){nm_test_var='a';nm_test_func();return(0);}
  5043. _LT_EOF
  5044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5045. (eval $ac_compile) 2>&5
  5046. ac_status=$?
  5047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5048. test $ac_status = 0; }; then
  5049. # Now try to grab the symbols.
  5050. nlist=conftest.nm
  5051. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5052. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5053. ac_status=$?
  5054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5055. test $ac_status = 0; } && test -s "$nlist"; then
  5056. # Try sorting and uniquifying the output.
  5057. if sort "$nlist" | uniq > "$nlist"T; then
  5058. mv -f "$nlist"T "$nlist"
  5059. else
  5060. rm -f "$nlist"T
  5061. fi
  5062. # Make sure that we snagged all the symbols we need.
  5063. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5064. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5065. cat <<_LT_EOF > conftest.$ac_ext
  5066. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5067. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5068. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5069. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5070. # define LT_DLSYM_CONST
  5071. #elif defined(__osf__)
  5072. /* This system does not cope well with relocations in const data. */
  5073. # define LT_DLSYM_CONST
  5074. #else
  5075. # define LT_DLSYM_CONST const
  5076. #endif
  5077. #ifdef __cplusplus
  5078. extern "C" {
  5079. #endif
  5080. _LT_EOF
  5081. # Now generate the symbol file.
  5082. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5083. cat <<_LT_EOF >> conftest.$ac_ext
  5084. /* The mapping between symbol names and symbols. */
  5085. LT_DLSYM_CONST struct {
  5086. const char *name;
  5087. void *address;
  5088. }
  5089. lt__PROGRAM__LTX_preloaded_symbols[] =
  5090. {
  5091. { "@PROGRAM@", (void *) 0 },
  5092. _LT_EOF
  5093. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5094. cat <<\_LT_EOF >> conftest.$ac_ext
  5095. {0, (void *) 0}
  5096. };
  5097. /* This works around a problem in FreeBSD linker */
  5098. #ifdef FREEBSD_WORKAROUND
  5099. static const void *lt_preloaded_setup() {
  5100. return lt__PROGRAM__LTX_preloaded_symbols;
  5101. }
  5102. #endif
  5103. #ifdef __cplusplus
  5104. }
  5105. #endif
  5106. _LT_EOF
  5107. # Now try linking the two files.
  5108. mv conftest.$ac_objext conftstm.$ac_objext
  5109. lt_globsym_save_LIBS=$LIBS
  5110. lt_globsym_save_CFLAGS=$CFLAGS
  5111. LIBS="conftstm.$ac_objext"
  5112. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5113. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5114. (eval $ac_link) 2>&5
  5115. ac_status=$?
  5116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5117. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5118. pipe_works=yes
  5119. fi
  5120. LIBS=$lt_globsym_save_LIBS
  5121. CFLAGS=$lt_globsym_save_CFLAGS
  5122. else
  5123. echo "cannot find nm_test_func in $nlist" >&5
  5124. fi
  5125. else
  5126. echo "cannot find nm_test_var in $nlist" >&5
  5127. fi
  5128. else
  5129. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5130. fi
  5131. else
  5132. echo "$progname: failed program was:" >&5
  5133. cat conftest.$ac_ext >&5
  5134. fi
  5135. rm -rf conftest* conftst*
  5136. # Do not use the global_symbol_pipe unless it works.
  5137. if test "$pipe_works" = yes; then
  5138. break
  5139. else
  5140. lt_cv_sys_global_symbol_pipe=
  5141. fi
  5142. done
  5143. fi
  5144. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5145. lt_cv_sys_global_symbol_to_cdecl=
  5146. fi
  5147. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5149. $as_echo "failed" >&6; }
  5150. else
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5152. $as_echo "ok" >&6; }
  5153. fi
  5154. # Response file support.
  5155. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5156. nm_file_list_spec='@'
  5157. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5158. nm_file_list_spec='@'
  5159. fi
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5161. $as_echo_n "checking for sysroot... " >&6; }
  5162. # Check whether --with-sysroot was given.
  5163. if test "${with_sysroot+set}" = set; then :
  5164. withval=$with_sysroot;
  5165. else
  5166. with_sysroot=no
  5167. fi
  5168. lt_sysroot=
  5169. case ${with_sysroot} in #(
  5170. yes)
  5171. if test "$GCC" = yes; then
  5172. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5173. fi
  5174. ;; #(
  5175. /*)
  5176. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5177. ;; #(
  5178. no|'')
  5179. ;; #(
  5180. *)
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5182. $as_echo "${with_sysroot}" >&6; }
  5183. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5184. ;;
  5185. esac
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5187. $as_echo "${lt_sysroot:-no}" >&6; }
  5188. # Check whether --enable-libtool-lock was given.
  5189. if test "${enable_libtool_lock+set}" = set; then :
  5190. enableval=$enable_libtool_lock;
  5191. fi
  5192. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5193. # Some flags need to be propagated to the compiler or linker for good
  5194. # libtool support.
  5195. case $host in
  5196. ia64-*-hpux*)
  5197. # Find out which ABI we are using.
  5198. echo 'int i;' > conftest.$ac_ext
  5199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5200. (eval $ac_compile) 2>&5
  5201. ac_status=$?
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5203. test $ac_status = 0; }; then
  5204. case `/usr/bin/file conftest.$ac_objext` in
  5205. *ELF-32*)
  5206. HPUX_IA64_MODE="32"
  5207. ;;
  5208. *ELF-64*)
  5209. HPUX_IA64_MODE="64"
  5210. ;;
  5211. esac
  5212. fi
  5213. rm -rf conftest*
  5214. ;;
  5215. *-*-irix6*)
  5216. # Find out which ABI we are using.
  5217. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5218. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5219. (eval $ac_compile) 2>&5
  5220. ac_status=$?
  5221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5222. test $ac_status = 0; }; then
  5223. if test "$lt_cv_prog_gnu_ld" = yes; then
  5224. case `/usr/bin/file conftest.$ac_objext` in
  5225. *32-bit*)
  5226. LD="${LD-ld} -melf32bsmip"
  5227. ;;
  5228. *N32*)
  5229. LD="${LD-ld} -melf32bmipn32"
  5230. ;;
  5231. *64-bit*)
  5232. LD="${LD-ld} -melf64bmip"
  5233. ;;
  5234. esac
  5235. else
  5236. case `/usr/bin/file conftest.$ac_objext` in
  5237. *32-bit*)
  5238. LD="${LD-ld} -32"
  5239. ;;
  5240. *N32*)
  5241. LD="${LD-ld} -n32"
  5242. ;;
  5243. *64-bit*)
  5244. LD="${LD-ld} -64"
  5245. ;;
  5246. esac
  5247. fi
  5248. fi
  5249. rm -rf conftest*
  5250. ;;
  5251. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5252. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5253. # Find out which ABI we are using.
  5254. echo 'int i;' > conftest.$ac_ext
  5255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5256. (eval $ac_compile) 2>&5
  5257. ac_status=$?
  5258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5259. test $ac_status = 0; }; then
  5260. case `/usr/bin/file conftest.o` in
  5261. *32-bit*)
  5262. case $host in
  5263. x86_64-*kfreebsd*-gnu)
  5264. LD="${LD-ld} -m elf_i386_fbsd"
  5265. ;;
  5266. x86_64-*linux*)
  5267. LD="${LD-ld} -m elf_i386"
  5268. ;;
  5269. ppc64-*linux*|powerpc64-*linux*)
  5270. LD="${LD-ld} -m elf32ppclinux"
  5271. ;;
  5272. s390x-*linux*)
  5273. LD="${LD-ld} -m elf_s390"
  5274. ;;
  5275. sparc64-*linux*)
  5276. LD="${LD-ld} -m elf32_sparc"
  5277. ;;
  5278. esac
  5279. ;;
  5280. *64-bit*)
  5281. case $host in
  5282. x86_64-*kfreebsd*-gnu)
  5283. LD="${LD-ld} -m elf_x86_64_fbsd"
  5284. ;;
  5285. x86_64-*linux*)
  5286. LD="${LD-ld} -m elf_x86_64"
  5287. ;;
  5288. powerpc64le-*linux*)
  5289. LD="${LD-ld} -m elf64lppc"
  5290. ;;
  5291. powerpc64-*linux*)
  5292. LD="${LD-ld} -m elf64ppc"
  5293. ;;
  5294. s390*-*linux*|s390*-*tpf*)
  5295. LD="${LD-ld} -m elf64_s390"
  5296. ;;
  5297. sparc*-*linux*)
  5298. LD="${LD-ld} -m elf64_sparc"
  5299. ;;
  5300. esac
  5301. ;;
  5302. esac
  5303. fi
  5304. rm -rf conftest*
  5305. ;;
  5306. *-*-sco3.2v5*)
  5307. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5308. SAVE_CFLAGS="$CFLAGS"
  5309. CFLAGS="$CFLAGS -belf"
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5311. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5312. if ${lt_cv_cc_needs_belf+:} false; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. ac_ext=c
  5316. ac_cpp='$CPP $CPPFLAGS'
  5317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5321. /* end confdefs.h. */
  5322. int
  5323. main ()
  5324. {
  5325. ;
  5326. return 0;
  5327. }
  5328. _ACEOF
  5329. if ac_fn_c_try_link "$LINENO"; then :
  5330. lt_cv_cc_needs_belf=yes
  5331. else
  5332. lt_cv_cc_needs_belf=no
  5333. fi
  5334. rm -f core conftest.err conftest.$ac_objext \
  5335. conftest$ac_exeext conftest.$ac_ext
  5336. ac_ext=c
  5337. ac_cpp='$CPP $CPPFLAGS'
  5338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5341. fi
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5343. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5344. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5345. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5346. CFLAGS="$SAVE_CFLAGS"
  5347. fi
  5348. ;;
  5349. *-*solaris*)
  5350. # Find out which ABI we are using.
  5351. echo 'int i;' > conftest.$ac_ext
  5352. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5353. (eval $ac_compile) 2>&5
  5354. ac_status=$?
  5355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5356. test $ac_status = 0; }; then
  5357. case `/usr/bin/file conftest.o` in
  5358. *64-bit*)
  5359. case $lt_cv_prog_gnu_ld in
  5360. yes*)
  5361. case $host in
  5362. i?86-*-solaris*)
  5363. LD="${LD-ld} -m elf_x86_64"
  5364. ;;
  5365. sparc*-*-solaris*)
  5366. LD="${LD-ld} -m elf64_sparc"
  5367. ;;
  5368. esac
  5369. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5370. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5371. LD="${LD-ld}_sol2"
  5372. fi
  5373. ;;
  5374. *)
  5375. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5376. LD="${LD-ld} -64"
  5377. fi
  5378. ;;
  5379. esac
  5380. ;;
  5381. esac
  5382. fi
  5383. rm -rf conftest*
  5384. ;;
  5385. esac
  5386. need_locks="$enable_libtool_lock"
  5387. if test -n "$ac_tool_prefix"; then
  5388. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5389. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5391. $as_echo_n "checking for $ac_word... " >&6; }
  5392. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5393. $as_echo_n "(cached) " >&6
  5394. else
  5395. if test -n "$MANIFEST_TOOL"; then
  5396. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5397. else
  5398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5399. for as_dir in $PATH
  5400. do
  5401. IFS=$as_save_IFS
  5402. test -z "$as_dir" && as_dir=.
  5403. for ac_exec_ext in '' $ac_executable_extensions; do
  5404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5405. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5407. break 2
  5408. fi
  5409. done
  5410. done
  5411. IFS=$as_save_IFS
  5412. fi
  5413. fi
  5414. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5415. if test -n "$MANIFEST_TOOL"; then
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5417. $as_echo "$MANIFEST_TOOL" >&6; }
  5418. else
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5420. $as_echo "no" >&6; }
  5421. fi
  5422. fi
  5423. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5424. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5425. # Extract the first word of "mt", so it can be a program name with args.
  5426. set dummy mt; ac_word=$2
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5428. $as_echo_n "checking for $ac_word... " >&6; }
  5429. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5430. $as_echo_n "(cached) " >&6
  5431. else
  5432. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5433. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5434. else
  5435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5436. for as_dir in $PATH
  5437. do
  5438. IFS=$as_save_IFS
  5439. test -z "$as_dir" && as_dir=.
  5440. for ac_exec_ext in '' $ac_executable_extensions; do
  5441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5442. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5444. break 2
  5445. fi
  5446. done
  5447. done
  5448. IFS=$as_save_IFS
  5449. fi
  5450. fi
  5451. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5452. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5454. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5455. else
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5457. $as_echo "no" >&6; }
  5458. fi
  5459. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5460. MANIFEST_TOOL=":"
  5461. else
  5462. case $cross_compiling:$ac_tool_warned in
  5463. yes:)
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5465. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5466. ac_tool_warned=yes ;;
  5467. esac
  5468. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5469. fi
  5470. else
  5471. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5472. fi
  5473. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5475. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5476. if ${lt_cv_path_mainfest_tool+:} false; then :
  5477. $as_echo_n "(cached) " >&6
  5478. else
  5479. lt_cv_path_mainfest_tool=no
  5480. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5481. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5482. cat conftest.err >&5
  5483. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5484. lt_cv_path_mainfest_tool=yes
  5485. fi
  5486. rm -f conftest*
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5489. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5490. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5491. MANIFEST_TOOL=:
  5492. fi
  5493. case $host_os in
  5494. rhapsody* | darwin*)
  5495. if test -n "$ac_tool_prefix"; then
  5496. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5497. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5499. $as_echo_n "checking for $ac_word... " >&6; }
  5500. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5501. $as_echo_n "(cached) " >&6
  5502. else
  5503. if test -n "$DSYMUTIL"; then
  5504. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5505. else
  5506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5507. for as_dir in $PATH
  5508. do
  5509. IFS=$as_save_IFS
  5510. test -z "$as_dir" && as_dir=.
  5511. for ac_exec_ext in '' $ac_executable_extensions; do
  5512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5513. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5515. break 2
  5516. fi
  5517. done
  5518. done
  5519. IFS=$as_save_IFS
  5520. fi
  5521. fi
  5522. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5523. if test -n "$DSYMUTIL"; then
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5525. $as_echo "$DSYMUTIL" >&6; }
  5526. else
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5528. $as_echo "no" >&6; }
  5529. fi
  5530. fi
  5531. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5532. ac_ct_DSYMUTIL=$DSYMUTIL
  5533. # Extract the first word of "dsymutil", so it can be a program name with args.
  5534. set dummy dsymutil; ac_word=$2
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5536. $as_echo_n "checking for $ac_word... " >&6; }
  5537. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5538. $as_echo_n "(cached) " >&6
  5539. else
  5540. if test -n "$ac_ct_DSYMUTIL"; then
  5541. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5542. else
  5543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5544. for as_dir in $PATH
  5545. do
  5546. IFS=$as_save_IFS
  5547. test -z "$as_dir" && as_dir=.
  5548. for ac_exec_ext in '' $ac_executable_extensions; do
  5549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5550. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5552. break 2
  5553. fi
  5554. done
  5555. done
  5556. IFS=$as_save_IFS
  5557. fi
  5558. fi
  5559. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5560. if test -n "$ac_ct_DSYMUTIL"; then
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5562. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5563. else
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5565. $as_echo "no" >&6; }
  5566. fi
  5567. if test "x$ac_ct_DSYMUTIL" = x; then
  5568. DSYMUTIL=":"
  5569. else
  5570. case $cross_compiling:$ac_tool_warned in
  5571. yes:)
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5573. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5574. ac_tool_warned=yes ;;
  5575. esac
  5576. DSYMUTIL=$ac_ct_DSYMUTIL
  5577. fi
  5578. else
  5579. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5580. fi
  5581. if test -n "$ac_tool_prefix"; then
  5582. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5583. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5585. $as_echo_n "checking for $ac_word... " >&6; }
  5586. if ${ac_cv_prog_NMEDIT+:} false; then :
  5587. $as_echo_n "(cached) " >&6
  5588. else
  5589. if test -n "$NMEDIT"; then
  5590. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5591. else
  5592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5593. for as_dir in $PATH
  5594. do
  5595. IFS=$as_save_IFS
  5596. test -z "$as_dir" && as_dir=.
  5597. for ac_exec_ext in '' $ac_executable_extensions; do
  5598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5599. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5601. break 2
  5602. fi
  5603. done
  5604. done
  5605. IFS=$as_save_IFS
  5606. fi
  5607. fi
  5608. NMEDIT=$ac_cv_prog_NMEDIT
  5609. if test -n "$NMEDIT"; then
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5611. $as_echo "$NMEDIT" >&6; }
  5612. else
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5614. $as_echo "no" >&6; }
  5615. fi
  5616. fi
  5617. if test -z "$ac_cv_prog_NMEDIT"; then
  5618. ac_ct_NMEDIT=$NMEDIT
  5619. # Extract the first word of "nmedit", so it can be a program name with args.
  5620. set dummy nmedit; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$ac_ct_NMEDIT"; then
  5627. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5646. if test -n "$ac_ct_NMEDIT"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5648. $as_echo "$ac_ct_NMEDIT" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. if test "x$ac_ct_NMEDIT" = x; then
  5654. NMEDIT=":"
  5655. else
  5656. case $cross_compiling:$ac_tool_warned in
  5657. yes:)
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5660. ac_tool_warned=yes ;;
  5661. esac
  5662. NMEDIT=$ac_ct_NMEDIT
  5663. fi
  5664. else
  5665. NMEDIT="$ac_cv_prog_NMEDIT"
  5666. fi
  5667. if test -n "$ac_tool_prefix"; then
  5668. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5669. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5671. $as_echo_n "checking for $ac_word... " >&6; }
  5672. if ${ac_cv_prog_LIPO+:} false; then :
  5673. $as_echo_n "(cached) " >&6
  5674. else
  5675. if test -n "$LIPO"; then
  5676. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5677. else
  5678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5679. for as_dir in $PATH
  5680. do
  5681. IFS=$as_save_IFS
  5682. test -z "$as_dir" && as_dir=.
  5683. for ac_exec_ext in '' $ac_executable_extensions; do
  5684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5685. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5687. break 2
  5688. fi
  5689. done
  5690. done
  5691. IFS=$as_save_IFS
  5692. fi
  5693. fi
  5694. LIPO=$ac_cv_prog_LIPO
  5695. if test -n "$LIPO"; then
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5697. $as_echo "$LIPO" >&6; }
  5698. else
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5700. $as_echo "no" >&6; }
  5701. fi
  5702. fi
  5703. if test -z "$ac_cv_prog_LIPO"; then
  5704. ac_ct_LIPO=$LIPO
  5705. # Extract the first word of "lipo", so it can be a program name with args.
  5706. set dummy lipo; ac_word=$2
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5708. $as_echo_n "checking for $ac_word... " >&6; }
  5709. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if test -n "$ac_ct_LIPO"; then
  5713. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5714. else
  5715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5716. for as_dir in $PATH
  5717. do
  5718. IFS=$as_save_IFS
  5719. test -z "$as_dir" && as_dir=.
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5722. ac_cv_prog_ac_ct_LIPO="lipo"
  5723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. fi
  5730. fi
  5731. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5732. if test -n "$ac_ct_LIPO"; then
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5734. $as_echo "$ac_ct_LIPO" >&6; }
  5735. else
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5737. $as_echo "no" >&6; }
  5738. fi
  5739. if test "x$ac_ct_LIPO" = x; then
  5740. LIPO=":"
  5741. else
  5742. case $cross_compiling:$ac_tool_warned in
  5743. yes:)
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5746. ac_tool_warned=yes ;;
  5747. esac
  5748. LIPO=$ac_ct_LIPO
  5749. fi
  5750. else
  5751. LIPO="$ac_cv_prog_LIPO"
  5752. fi
  5753. if test -n "$ac_tool_prefix"; then
  5754. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5755. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5757. $as_echo_n "checking for $ac_word... " >&6; }
  5758. if ${ac_cv_prog_OTOOL+:} false; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. if test -n "$OTOOL"; then
  5762. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5763. else
  5764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5765. for as_dir in $PATH
  5766. do
  5767. IFS=$as_save_IFS
  5768. test -z "$as_dir" && as_dir=.
  5769. for ac_exec_ext in '' $ac_executable_extensions; do
  5770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5771. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5773. break 2
  5774. fi
  5775. done
  5776. done
  5777. IFS=$as_save_IFS
  5778. fi
  5779. fi
  5780. OTOOL=$ac_cv_prog_OTOOL
  5781. if test -n "$OTOOL"; then
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5783. $as_echo "$OTOOL" >&6; }
  5784. else
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5786. $as_echo "no" >&6; }
  5787. fi
  5788. fi
  5789. if test -z "$ac_cv_prog_OTOOL"; then
  5790. ac_ct_OTOOL=$OTOOL
  5791. # Extract the first word of "otool", so it can be a program name with args.
  5792. set dummy otool; ac_word=$2
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5794. $as_echo_n "checking for $ac_word... " >&6; }
  5795. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. if test -n "$ac_ct_OTOOL"; then
  5799. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5800. else
  5801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5802. for as_dir in $PATH
  5803. do
  5804. IFS=$as_save_IFS
  5805. test -z "$as_dir" && as_dir=.
  5806. for ac_exec_ext in '' $ac_executable_extensions; do
  5807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5808. ac_cv_prog_ac_ct_OTOOL="otool"
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5810. break 2
  5811. fi
  5812. done
  5813. done
  5814. IFS=$as_save_IFS
  5815. fi
  5816. fi
  5817. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5818. if test -n "$ac_ct_OTOOL"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5820. $as_echo "$ac_ct_OTOOL" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. if test "x$ac_ct_OTOOL" = x; then
  5826. OTOOL=":"
  5827. else
  5828. case $cross_compiling:$ac_tool_warned in
  5829. yes:)
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5831. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5832. ac_tool_warned=yes ;;
  5833. esac
  5834. OTOOL=$ac_ct_OTOOL
  5835. fi
  5836. else
  5837. OTOOL="$ac_cv_prog_OTOOL"
  5838. fi
  5839. if test -n "$ac_tool_prefix"; then
  5840. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5841. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5843. $as_echo_n "checking for $ac_word... " >&6; }
  5844. if ${ac_cv_prog_OTOOL64+:} false; then :
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. if test -n "$OTOOL64"; then
  5848. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5849. else
  5850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5851. for as_dir in $PATH
  5852. do
  5853. IFS=$as_save_IFS
  5854. test -z "$as_dir" && as_dir=.
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5857. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. OTOOL64=$ac_cv_prog_OTOOL64
  5867. if test -n "$OTOOL64"; then
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5869. $as_echo "$OTOOL64" >&6; }
  5870. else
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5872. $as_echo "no" >&6; }
  5873. fi
  5874. fi
  5875. if test -z "$ac_cv_prog_OTOOL64"; then
  5876. ac_ct_OTOOL64=$OTOOL64
  5877. # Extract the first word of "otool64", so it can be a program name with args.
  5878. set dummy otool64; ac_word=$2
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5880. $as_echo_n "checking for $ac_word... " >&6; }
  5881. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5882. $as_echo_n "(cached) " >&6
  5883. else
  5884. if test -n "$ac_ct_OTOOL64"; then
  5885. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5886. else
  5887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5888. for as_dir in $PATH
  5889. do
  5890. IFS=$as_save_IFS
  5891. test -z "$as_dir" && as_dir=.
  5892. for ac_exec_ext in '' $ac_executable_extensions; do
  5893. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5894. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5896. break 2
  5897. fi
  5898. done
  5899. done
  5900. IFS=$as_save_IFS
  5901. fi
  5902. fi
  5903. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5904. if test -n "$ac_ct_OTOOL64"; then
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5906. $as_echo "$ac_ct_OTOOL64" >&6; }
  5907. else
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5909. $as_echo "no" >&6; }
  5910. fi
  5911. if test "x$ac_ct_OTOOL64" = x; then
  5912. OTOOL64=":"
  5913. else
  5914. case $cross_compiling:$ac_tool_warned in
  5915. yes:)
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5918. ac_tool_warned=yes ;;
  5919. esac
  5920. OTOOL64=$ac_ct_OTOOL64
  5921. fi
  5922. else
  5923. OTOOL64="$ac_cv_prog_OTOOL64"
  5924. fi
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5926. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5927. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5928. $as_echo_n "(cached) " >&6
  5929. else
  5930. lt_cv_apple_cc_single_mod=no
  5931. if test -z "${LT_MULTI_MODULE}"; then
  5932. # By default we will add the -single_module flag. You can override
  5933. # by either setting the environment variable LT_MULTI_MODULE
  5934. # non-empty at configure time, or by adding -multi_module to the
  5935. # link flags.
  5936. rm -rf libconftest.dylib*
  5937. echo "int foo(void){return 1;}" > conftest.c
  5938. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5939. -dynamiclib -Wl,-single_module conftest.c" >&5
  5940. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5941. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5942. _lt_result=$?
  5943. # If there is a non-empty error log, and "single_module"
  5944. # appears in it, assume the flag caused a linker warning
  5945. if test -s conftest.err && $GREP single_module conftest.err; then
  5946. cat conftest.err >&5
  5947. # Otherwise, if the output was created with a 0 exit code from
  5948. # the compiler, it worked.
  5949. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5950. lt_cv_apple_cc_single_mod=yes
  5951. else
  5952. cat conftest.err >&5
  5953. fi
  5954. rm -rf libconftest.dylib*
  5955. rm -f conftest.*
  5956. fi
  5957. fi
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5959. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5961. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5962. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5963. $as_echo_n "(cached) " >&6
  5964. else
  5965. lt_cv_ld_exported_symbols_list=no
  5966. save_LDFLAGS=$LDFLAGS
  5967. echo "_main" > conftest.sym
  5968. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end confdefs.h. */
  5971. int
  5972. main ()
  5973. {
  5974. ;
  5975. return 0;
  5976. }
  5977. _ACEOF
  5978. if ac_fn_c_try_link "$LINENO"; then :
  5979. lt_cv_ld_exported_symbols_list=yes
  5980. else
  5981. lt_cv_ld_exported_symbols_list=no
  5982. fi
  5983. rm -f core conftest.err conftest.$ac_objext \
  5984. conftest$ac_exeext conftest.$ac_ext
  5985. LDFLAGS="$save_LDFLAGS"
  5986. fi
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5988. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5990. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5991. if ${lt_cv_ld_force_load+:} false; then :
  5992. $as_echo_n "(cached) " >&6
  5993. else
  5994. lt_cv_ld_force_load=no
  5995. cat > conftest.c << _LT_EOF
  5996. int forced_loaded() { return 2;}
  5997. _LT_EOF
  5998. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5999. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6000. echo "$AR cru libconftest.a conftest.o" >&5
  6001. $AR cru libconftest.a conftest.o 2>&5
  6002. echo "$RANLIB libconftest.a" >&5
  6003. $RANLIB libconftest.a 2>&5
  6004. cat > conftest.c << _LT_EOF
  6005. int main() { return 0;}
  6006. _LT_EOF
  6007. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6008. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6009. _lt_result=$?
  6010. if test -s conftest.err && $GREP force_load conftest.err; then
  6011. cat conftest.err >&5
  6012. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6013. lt_cv_ld_force_load=yes
  6014. else
  6015. cat conftest.err >&5
  6016. fi
  6017. rm -f conftest.err libconftest.a conftest conftest.c
  6018. rm -rf conftest.dSYM
  6019. fi
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6021. $as_echo "$lt_cv_ld_force_load" >&6; }
  6022. case $host_os in
  6023. rhapsody* | darwin1.[012])
  6024. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6025. darwin1.*)
  6026. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6027. darwin*) # darwin 5.x on
  6028. # if running on 10.5 or later, the deployment target defaults
  6029. # to the OS version, if on x86, and 10.4, the deployment
  6030. # target defaults to 10.4. Don't you love it?
  6031. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6032. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6033. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6034. 10.[012]*)
  6035. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6036. 10.*)
  6037. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6038. esac
  6039. ;;
  6040. esac
  6041. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6042. _lt_dar_single_mod='$single_module'
  6043. fi
  6044. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6045. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6046. else
  6047. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6048. fi
  6049. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6050. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6051. else
  6052. _lt_dsymutil=
  6053. fi
  6054. ;;
  6055. esac
  6056. ac_ext=c
  6057. ac_cpp='$CPP $CPPFLAGS'
  6058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6062. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6063. # On Suns, sometimes $CPP names a directory.
  6064. if test -n "$CPP" && test -d "$CPP"; then
  6065. CPP=
  6066. fi
  6067. if test -z "$CPP"; then
  6068. if ${ac_cv_prog_CPP+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. # Double quotes because CPP needs to be expanded
  6072. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6073. do
  6074. ac_preproc_ok=false
  6075. for ac_c_preproc_warn_flag in '' yes
  6076. do
  6077. # Use a header file that comes with gcc, so configuring glibc
  6078. # with a fresh cross-compiler works.
  6079. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6080. # <limits.h> exists even on freestanding compilers.
  6081. # On the NeXT, cc -E runs the code through the compiler's parser,
  6082. # not just through cpp. "Syntax error" is here to catch this case.
  6083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6084. /* end confdefs.h. */
  6085. #ifdef __STDC__
  6086. # include <limits.h>
  6087. #else
  6088. # include <assert.h>
  6089. #endif
  6090. Syntax error
  6091. _ACEOF
  6092. if ac_fn_c_try_cpp "$LINENO"; then :
  6093. else
  6094. # Broken: fails on valid input.
  6095. continue
  6096. fi
  6097. rm -f conftest.err conftest.i conftest.$ac_ext
  6098. # OK, works on sane cases. Now check whether nonexistent headers
  6099. # can be detected and how.
  6100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6101. /* end confdefs.h. */
  6102. #include <ac_nonexistent.h>
  6103. _ACEOF
  6104. if ac_fn_c_try_cpp "$LINENO"; then :
  6105. # Broken: success on invalid input.
  6106. continue
  6107. else
  6108. # Passes both tests.
  6109. ac_preproc_ok=:
  6110. break
  6111. fi
  6112. rm -f conftest.err conftest.i conftest.$ac_ext
  6113. done
  6114. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6115. rm -f conftest.i conftest.err conftest.$ac_ext
  6116. if $ac_preproc_ok; then :
  6117. break
  6118. fi
  6119. done
  6120. ac_cv_prog_CPP=$CPP
  6121. fi
  6122. CPP=$ac_cv_prog_CPP
  6123. else
  6124. ac_cv_prog_CPP=$CPP
  6125. fi
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6127. $as_echo "$CPP" >&6; }
  6128. ac_preproc_ok=false
  6129. for ac_c_preproc_warn_flag in '' yes
  6130. do
  6131. # Use a header file that comes with gcc, so configuring glibc
  6132. # with a fresh cross-compiler works.
  6133. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6134. # <limits.h> exists even on freestanding compilers.
  6135. # On the NeXT, cc -E runs the code through the compiler's parser,
  6136. # not just through cpp. "Syntax error" is here to catch this case.
  6137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6138. /* end confdefs.h. */
  6139. #ifdef __STDC__
  6140. # include <limits.h>
  6141. #else
  6142. # include <assert.h>
  6143. #endif
  6144. Syntax error
  6145. _ACEOF
  6146. if ac_fn_c_try_cpp "$LINENO"; then :
  6147. else
  6148. # Broken: fails on valid input.
  6149. continue
  6150. fi
  6151. rm -f conftest.err conftest.i conftest.$ac_ext
  6152. # OK, works on sane cases. Now check whether nonexistent headers
  6153. # can be detected and how.
  6154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6155. /* end confdefs.h. */
  6156. #include <ac_nonexistent.h>
  6157. _ACEOF
  6158. if ac_fn_c_try_cpp "$LINENO"; then :
  6159. # Broken: success on invalid input.
  6160. continue
  6161. else
  6162. # Passes both tests.
  6163. ac_preproc_ok=:
  6164. break
  6165. fi
  6166. rm -f conftest.err conftest.i conftest.$ac_ext
  6167. done
  6168. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6169. rm -f conftest.i conftest.err conftest.$ac_ext
  6170. if $ac_preproc_ok; then :
  6171. else
  6172. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6173. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6174. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6175. See \`config.log' for more details" "$LINENO" 5; }
  6176. fi
  6177. ac_ext=c
  6178. ac_cpp='$CPP $CPPFLAGS'
  6179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6183. $as_echo_n "checking for ANSI C header files... " >&6; }
  6184. if ${ac_cv_header_stdc+:} false; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6188. /* end confdefs.h. */
  6189. #include <stdlib.h>
  6190. #include <stdarg.h>
  6191. #include <string.h>
  6192. #include <float.h>
  6193. int
  6194. main ()
  6195. {
  6196. ;
  6197. return 0;
  6198. }
  6199. _ACEOF
  6200. if ac_fn_c_try_compile "$LINENO"; then :
  6201. ac_cv_header_stdc=yes
  6202. else
  6203. ac_cv_header_stdc=no
  6204. fi
  6205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6206. if test $ac_cv_header_stdc = yes; then
  6207. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6209. /* end confdefs.h. */
  6210. #include <string.h>
  6211. _ACEOF
  6212. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6213. $EGREP "memchr" >/dev/null 2>&1; then :
  6214. else
  6215. ac_cv_header_stdc=no
  6216. fi
  6217. rm -f conftest*
  6218. fi
  6219. if test $ac_cv_header_stdc = yes; then
  6220. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6222. /* end confdefs.h. */
  6223. #include <stdlib.h>
  6224. _ACEOF
  6225. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6226. $EGREP "free" >/dev/null 2>&1; then :
  6227. else
  6228. ac_cv_header_stdc=no
  6229. fi
  6230. rm -f conftest*
  6231. fi
  6232. if test $ac_cv_header_stdc = yes; then
  6233. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6234. if test "$cross_compiling" = yes; then :
  6235. :
  6236. else
  6237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6238. /* end confdefs.h. */
  6239. #include <ctype.h>
  6240. #include <stdlib.h>
  6241. #if ((' ' & 0x0FF) == 0x020)
  6242. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6243. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6244. #else
  6245. # define ISLOWER(c) \
  6246. (('a' <= (c) && (c) <= 'i') \
  6247. || ('j' <= (c) && (c) <= 'r') \
  6248. || ('s' <= (c) && (c) <= 'z'))
  6249. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6250. #endif
  6251. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6252. int
  6253. main ()
  6254. {
  6255. int i;
  6256. for (i = 0; i < 256; i++)
  6257. if (XOR (islower (i), ISLOWER (i))
  6258. || toupper (i) != TOUPPER (i))
  6259. return 2;
  6260. return 0;
  6261. }
  6262. _ACEOF
  6263. if ac_fn_c_try_run "$LINENO"; then :
  6264. else
  6265. ac_cv_header_stdc=no
  6266. fi
  6267. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6268. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6269. fi
  6270. fi
  6271. fi
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6273. $as_echo "$ac_cv_header_stdc" >&6; }
  6274. if test $ac_cv_header_stdc = yes; then
  6275. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6276. fi
  6277. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6278. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6279. inttypes.h stdint.h unistd.h
  6280. do :
  6281. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6282. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6283. "
  6284. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6285. cat >>confdefs.h <<_ACEOF
  6286. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6287. _ACEOF
  6288. fi
  6289. done
  6290. for ac_header in dlfcn.h
  6291. do :
  6292. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6293. "
  6294. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6295. cat >>confdefs.h <<_ACEOF
  6296. #define HAVE_DLFCN_H 1
  6297. _ACEOF
  6298. fi
  6299. done
  6300. # Set options
  6301. enable_win32_dll=yes
  6302. case $host in
  6303. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6304. if test -n "$ac_tool_prefix"; then
  6305. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6306. set dummy ${ac_tool_prefix}as; ac_word=$2
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6308. $as_echo_n "checking for $ac_word... " >&6; }
  6309. if ${ac_cv_prog_AS+:} false; then :
  6310. $as_echo_n "(cached) " >&6
  6311. else
  6312. if test -n "$AS"; then
  6313. ac_cv_prog_AS="$AS" # Let the user override the test.
  6314. else
  6315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6316. for as_dir in $PATH
  6317. do
  6318. IFS=$as_save_IFS
  6319. test -z "$as_dir" && as_dir=.
  6320. for ac_exec_ext in '' $ac_executable_extensions; do
  6321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6322. ac_cv_prog_AS="${ac_tool_prefix}as"
  6323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6324. break 2
  6325. fi
  6326. done
  6327. done
  6328. IFS=$as_save_IFS
  6329. fi
  6330. fi
  6331. AS=$ac_cv_prog_AS
  6332. if test -n "$AS"; then
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6334. $as_echo "$AS" >&6; }
  6335. else
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6337. $as_echo "no" >&6; }
  6338. fi
  6339. fi
  6340. if test -z "$ac_cv_prog_AS"; then
  6341. ac_ct_AS=$AS
  6342. # Extract the first word of "as", so it can be a program name with args.
  6343. set dummy as; ac_word=$2
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6345. $as_echo_n "checking for $ac_word... " >&6; }
  6346. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6347. $as_echo_n "(cached) " >&6
  6348. else
  6349. if test -n "$ac_ct_AS"; then
  6350. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6351. else
  6352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6353. for as_dir in $PATH
  6354. do
  6355. IFS=$as_save_IFS
  6356. test -z "$as_dir" && as_dir=.
  6357. for ac_exec_ext in '' $ac_executable_extensions; do
  6358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6359. ac_cv_prog_ac_ct_AS="as"
  6360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6361. break 2
  6362. fi
  6363. done
  6364. done
  6365. IFS=$as_save_IFS
  6366. fi
  6367. fi
  6368. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6369. if test -n "$ac_ct_AS"; then
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6371. $as_echo "$ac_ct_AS" >&6; }
  6372. else
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6374. $as_echo "no" >&6; }
  6375. fi
  6376. if test "x$ac_ct_AS" = x; then
  6377. AS="false"
  6378. else
  6379. case $cross_compiling:$ac_tool_warned in
  6380. yes:)
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6382. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6383. ac_tool_warned=yes ;;
  6384. esac
  6385. AS=$ac_ct_AS
  6386. fi
  6387. else
  6388. AS="$ac_cv_prog_AS"
  6389. fi
  6390. if test -n "$ac_tool_prefix"; then
  6391. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6392. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6394. $as_echo_n "checking for $ac_word... " >&6; }
  6395. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6396. $as_echo_n "(cached) " >&6
  6397. else
  6398. if test -n "$DLLTOOL"; then
  6399. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6400. else
  6401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6402. for as_dir in $PATH
  6403. do
  6404. IFS=$as_save_IFS
  6405. test -z "$as_dir" && as_dir=.
  6406. for ac_exec_ext in '' $ac_executable_extensions; do
  6407. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6408. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6410. break 2
  6411. fi
  6412. done
  6413. done
  6414. IFS=$as_save_IFS
  6415. fi
  6416. fi
  6417. DLLTOOL=$ac_cv_prog_DLLTOOL
  6418. if test -n "$DLLTOOL"; then
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6420. $as_echo "$DLLTOOL" >&6; }
  6421. else
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6423. $as_echo "no" >&6; }
  6424. fi
  6425. fi
  6426. if test -z "$ac_cv_prog_DLLTOOL"; then
  6427. ac_ct_DLLTOOL=$DLLTOOL
  6428. # Extract the first word of "dlltool", so it can be a program name with args.
  6429. set dummy dlltool; ac_word=$2
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6431. $as_echo_n "checking for $ac_word... " >&6; }
  6432. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6433. $as_echo_n "(cached) " >&6
  6434. else
  6435. if test -n "$ac_ct_DLLTOOL"; then
  6436. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6437. else
  6438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6439. for as_dir in $PATH
  6440. do
  6441. IFS=$as_save_IFS
  6442. test -z "$as_dir" && as_dir=.
  6443. for ac_exec_ext in '' $ac_executable_extensions; do
  6444. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6445. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6447. break 2
  6448. fi
  6449. done
  6450. done
  6451. IFS=$as_save_IFS
  6452. fi
  6453. fi
  6454. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6455. if test -n "$ac_ct_DLLTOOL"; then
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6457. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6458. else
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6460. $as_echo "no" >&6; }
  6461. fi
  6462. if test "x$ac_ct_DLLTOOL" = x; then
  6463. DLLTOOL="false"
  6464. else
  6465. case $cross_compiling:$ac_tool_warned in
  6466. yes:)
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6469. ac_tool_warned=yes ;;
  6470. esac
  6471. DLLTOOL=$ac_ct_DLLTOOL
  6472. fi
  6473. else
  6474. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6475. fi
  6476. if test -n "$ac_tool_prefix"; then
  6477. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6478. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6480. $as_echo_n "checking for $ac_word... " >&6; }
  6481. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. if test -n "$OBJDUMP"; then
  6485. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6486. else
  6487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6488. for as_dir in $PATH
  6489. do
  6490. IFS=$as_save_IFS
  6491. test -z "$as_dir" && as_dir=.
  6492. for ac_exec_ext in '' $ac_executable_extensions; do
  6493. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6494. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6496. break 2
  6497. fi
  6498. done
  6499. done
  6500. IFS=$as_save_IFS
  6501. fi
  6502. fi
  6503. OBJDUMP=$ac_cv_prog_OBJDUMP
  6504. if test -n "$OBJDUMP"; then
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6506. $as_echo "$OBJDUMP" >&6; }
  6507. else
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6509. $as_echo "no" >&6; }
  6510. fi
  6511. fi
  6512. if test -z "$ac_cv_prog_OBJDUMP"; then
  6513. ac_ct_OBJDUMP=$OBJDUMP
  6514. # Extract the first word of "objdump", so it can be a program name with args.
  6515. set dummy objdump; ac_word=$2
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6517. $as_echo_n "checking for $ac_word... " >&6; }
  6518. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. if test -n "$ac_ct_OBJDUMP"; then
  6522. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6523. else
  6524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6525. for as_dir in $PATH
  6526. do
  6527. IFS=$as_save_IFS
  6528. test -z "$as_dir" && as_dir=.
  6529. for ac_exec_ext in '' $ac_executable_extensions; do
  6530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6531. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6533. break 2
  6534. fi
  6535. done
  6536. done
  6537. IFS=$as_save_IFS
  6538. fi
  6539. fi
  6540. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6541. if test -n "$ac_ct_OBJDUMP"; then
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6543. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6544. else
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6546. $as_echo "no" >&6; }
  6547. fi
  6548. if test "x$ac_ct_OBJDUMP" = x; then
  6549. OBJDUMP="false"
  6550. else
  6551. case $cross_compiling:$ac_tool_warned in
  6552. yes:)
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6555. ac_tool_warned=yes ;;
  6556. esac
  6557. OBJDUMP=$ac_ct_OBJDUMP
  6558. fi
  6559. else
  6560. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6561. fi
  6562. ;;
  6563. esac
  6564. test -z "$AS" && AS=as
  6565. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6566. test -z "$OBJDUMP" && OBJDUMP=objdump
  6567. enable_dlopen=no
  6568. # Check whether --enable-shared was given.
  6569. if test "${enable_shared+set}" = set; then :
  6570. enableval=$enable_shared; p=${PACKAGE-default}
  6571. case $enableval in
  6572. yes) enable_shared=yes ;;
  6573. no) enable_shared=no ;;
  6574. *)
  6575. enable_shared=no
  6576. # Look at the argument we got. We use all the common list separators.
  6577. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6578. for pkg in $enableval; do
  6579. IFS="$lt_save_ifs"
  6580. if test "X$pkg" = "X$p"; then
  6581. enable_shared=yes
  6582. fi
  6583. done
  6584. IFS="$lt_save_ifs"
  6585. ;;
  6586. esac
  6587. else
  6588. enable_shared=yes
  6589. fi
  6590. # Check whether --enable-static was given.
  6591. if test "${enable_static+set}" = set; then :
  6592. enableval=$enable_static; p=${PACKAGE-default}
  6593. case $enableval in
  6594. yes) enable_static=yes ;;
  6595. no) enable_static=no ;;
  6596. *)
  6597. enable_static=no
  6598. # Look at the argument we got. We use all the common list separators.
  6599. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6600. for pkg in $enableval; do
  6601. IFS="$lt_save_ifs"
  6602. if test "X$pkg" = "X$p"; then
  6603. enable_static=yes
  6604. fi
  6605. done
  6606. IFS="$lt_save_ifs"
  6607. ;;
  6608. esac
  6609. else
  6610. enable_static=yes
  6611. fi
  6612. # Check whether --with-pic was given.
  6613. if test "${with_pic+set}" = set; then :
  6614. withval=$with_pic; lt_p=${PACKAGE-default}
  6615. case $withval in
  6616. yes|no) pic_mode=$withval ;;
  6617. *)
  6618. pic_mode=default
  6619. # Look at the argument we got. We use all the common list separators.
  6620. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6621. for lt_pkg in $withval; do
  6622. IFS="$lt_save_ifs"
  6623. if test "X$lt_pkg" = "X$lt_p"; then
  6624. pic_mode=yes
  6625. fi
  6626. done
  6627. IFS="$lt_save_ifs"
  6628. ;;
  6629. esac
  6630. else
  6631. pic_mode=default
  6632. fi
  6633. test -z "$pic_mode" && pic_mode=default
  6634. # Check whether --enable-fast-install was given.
  6635. if test "${enable_fast_install+set}" = set; then :
  6636. enableval=$enable_fast_install; p=${PACKAGE-default}
  6637. case $enableval in
  6638. yes) enable_fast_install=yes ;;
  6639. no) enable_fast_install=no ;;
  6640. *)
  6641. enable_fast_install=no
  6642. # Look at the argument we got. We use all the common list separators.
  6643. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6644. for pkg in $enableval; do
  6645. IFS="$lt_save_ifs"
  6646. if test "X$pkg" = "X$p"; then
  6647. enable_fast_install=yes
  6648. fi
  6649. done
  6650. IFS="$lt_save_ifs"
  6651. ;;
  6652. esac
  6653. else
  6654. enable_fast_install=yes
  6655. fi
  6656. # This can be used to rebuild libtool when needed
  6657. LIBTOOL_DEPS="$ltmain"
  6658. # Always use our own libtool.
  6659. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6660. test -z "$LN_S" && LN_S="ln -s"
  6661. if test -n "${ZSH_VERSION+set}" ; then
  6662. setopt NO_GLOB_SUBST
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6665. $as_echo_n "checking for objdir... " >&6; }
  6666. if ${lt_cv_objdir+:} false; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. rm -f .libs 2>/dev/null
  6670. mkdir .libs 2>/dev/null
  6671. if test -d .libs; then
  6672. lt_cv_objdir=.libs
  6673. else
  6674. # MS-DOS does not allow filenames that begin with a dot.
  6675. lt_cv_objdir=_libs
  6676. fi
  6677. rmdir .libs 2>/dev/null
  6678. fi
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6680. $as_echo "$lt_cv_objdir" >&6; }
  6681. objdir=$lt_cv_objdir
  6682. cat >>confdefs.h <<_ACEOF
  6683. #define LT_OBJDIR "$lt_cv_objdir/"
  6684. _ACEOF
  6685. case $host_os in
  6686. aix3*)
  6687. # AIX sometimes has problems with the GCC collect2 program. For some
  6688. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6689. # vanish in a puff of smoke.
  6690. if test "X${COLLECT_NAMES+set}" != Xset; then
  6691. COLLECT_NAMES=
  6692. export COLLECT_NAMES
  6693. fi
  6694. ;;
  6695. esac
  6696. # Global variables:
  6697. ofile=libtool
  6698. can_build_shared=yes
  6699. # All known linkers require a `.a' archive for static linking (except MSVC,
  6700. # which needs '.lib').
  6701. libext=a
  6702. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6703. old_CC="$CC"
  6704. old_CFLAGS="$CFLAGS"
  6705. # Set sane defaults for various variables
  6706. test -z "$CC" && CC=cc
  6707. test -z "$LTCC" && LTCC=$CC
  6708. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6709. test -z "$LD" && LD=ld
  6710. test -z "$ac_objext" && ac_objext=o
  6711. for cc_temp in $compiler""; do
  6712. case $cc_temp in
  6713. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6714. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6715. \-*) ;;
  6716. *) break;;
  6717. esac
  6718. done
  6719. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6720. # Only perform the check for file, if the check method requires it
  6721. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6722. case $deplibs_check_method in
  6723. file_magic*)
  6724. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6726. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6727. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. case $MAGIC_CMD in
  6731. [\\/*] | ?:[\\/]*)
  6732. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6733. ;;
  6734. *)
  6735. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6736. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6737. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6738. for ac_dir in $ac_dummy; do
  6739. IFS="$lt_save_ifs"
  6740. test -z "$ac_dir" && ac_dir=.
  6741. if test -f $ac_dir/${ac_tool_prefix}file; then
  6742. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6743. if test -n "$file_magic_test_file"; then
  6744. case $deplibs_check_method in
  6745. "file_magic "*)
  6746. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6747. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6748. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6749. $EGREP "$file_magic_regex" > /dev/null; then
  6750. :
  6751. else
  6752. cat <<_LT_EOF 1>&2
  6753. *** Warning: the command libtool uses to detect shared libraries,
  6754. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6755. *** The result is that libtool may fail to recognize shared libraries
  6756. *** as such. This will affect the creation of libtool libraries that
  6757. *** depend on shared libraries, but programs linked with such libtool
  6758. *** libraries will work regardless of this problem. Nevertheless, you
  6759. *** may want to report the problem to your system manager and/or to
  6760. *** bug-libtool@gnu.org
  6761. _LT_EOF
  6762. fi ;;
  6763. esac
  6764. fi
  6765. break
  6766. fi
  6767. done
  6768. IFS="$lt_save_ifs"
  6769. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6770. ;;
  6771. esac
  6772. fi
  6773. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6774. if test -n "$MAGIC_CMD"; then
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6776. $as_echo "$MAGIC_CMD" >&6; }
  6777. else
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6779. $as_echo "no" >&6; }
  6780. fi
  6781. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6782. if test -n "$ac_tool_prefix"; then
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6784. $as_echo_n "checking for file... " >&6; }
  6785. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. case $MAGIC_CMD in
  6789. [\\/*] | ?:[\\/]*)
  6790. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6791. ;;
  6792. *)
  6793. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6794. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6795. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6796. for ac_dir in $ac_dummy; do
  6797. IFS="$lt_save_ifs"
  6798. test -z "$ac_dir" && ac_dir=.
  6799. if test -f $ac_dir/file; then
  6800. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6801. if test -n "$file_magic_test_file"; then
  6802. case $deplibs_check_method in
  6803. "file_magic "*)
  6804. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6805. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6806. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6807. $EGREP "$file_magic_regex" > /dev/null; then
  6808. :
  6809. else
  6810. cat <<_LT_EOF 1>&2
  6811. *** Warning: the command libtool uses to detect shared libraries,
  6812. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6813. *** The result is that libtool may fail to recognize shared libraries
  6814. *** as such. This will affect the creation of libtool libraries that
  6815. *** depend on shared libraries, but programs linked with such libtool
  6816. *** libraries will work regardless of this problem. Nevertheless, you
  6817. *** may want to report the problem to your system manager and/or to
  6818. *** bug-libtool@gnu.org
  6819. _LT_EOF
  6820. fi ;;
  6821. esac
  6822. fi
  6823. break
  6824. fi
  6825. done
  6826. IFS="$lt_save_ifs"
  6827. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6828. ;;
  6829. esac
  6830. fi
  6831. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6832. if test -n "$MAGIC_CMD"; then
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6834. $as_echo "$MAGIC_CMD" >&6; }
  6835. else
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6837. $as_echo "no" >&6; }
  6838. fi
  6839. else
  6840. MAGIC_CMD=:
  6841. fi
  6842. fi
  6843. fi
  6844. ;;
  6845. esac
  6846. # Use C for the default configuration in the libtool script
  6847. lt_save_CC="$CC"
  6848. ac_ext=c
  6849. ac_cpp='$CPP $CPPFLAGS'
  6850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6853. # Source file extension for C test sources.
  6854. ac_ext=c
  6855. # Object file extension for compiled C test sources.
  6856. objext=o
  6857. objext=$objext
  6858. # Code to be used in simple compile tests
  6859. lt_simple_compile_test_code="int some_variable = 0;"
  6860. # Code to be used in simple link tests
  6861. lt_simple_link_test_code='int main(){return(0);}'
  6862. # If no C compiler was specified, use CC.
  6863. LTCC=${LTCC-"$CC"}
  6864. # If no C compiler flags were specified, use CFLAGS.
  6865. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6866. # Allow CC to be a program name with arguments.
  6867. compiler=$CC
  6868. # Save the default compiler, since it gets overwritten when the other
  6869. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6870. compiler_DEFAULT=$CC
  6871. # save warnings/boilerplate of simple test code
  6872. ac_outfile=conftest.$ac_objext
  6873. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6874. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6875. _lt_compiler_boilerplate=`cat conftest.err`
  6876. $RM conftest*
  6877. ac_outfile=conftest.$ac_objext
  6878. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6879. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6880. _lt_linker_boilerplate=`cat conftest.err`
  6881. $RM -r conftest*
  6882. ## CAVEAT EMPTOR:
  6883. ## There is no encapsulation within the following macros, do not change
  6884. ## the running order or otherwise move them around unless you know exactly
  6885. ## what you are doing...
  6886. if test -n "$compiler"; then
  6887. lt_prog_compiler_no_builtin_flag=
  6888. if test "$GCC" = yes; then
  6889. case $cc_basename in
  6890. nvcc*)
  6891. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6892. *)
  6893. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6894. esac
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6896. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6897. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6898. $as_echo_n "(cached) " >&6
  6899. else
  6900. lt_cv_prog_compiler_rtti_exceptions=no
  6901. ac_outfile=conftest.$ac_objext
  6902. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6903. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6904. # Insert the option either (1) after the last *FLAGS variable, or
  6905. # (2) before a word containing "conftest.", or (3) at the end.
  6906. # Note that $ac_compile itself does not contain backslashes and begins
  6907. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6908. # The option is referenced via a variable to avoid confusing sed.
  6909. lt_compile=`echo "$ac_compile" | $SED \
  6910. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6911. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6912. -e 's:$: $lt_compiler_flag:'`
  6913. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6914. (eval "$lt_compile" 2>conftest.err)
  6915. ac_status=$?
  6916. cat conftest.err >&5
  6917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6918. if (exit $ac_status) && test -s "$ac_outfile"; then
  6919. # The compiler can only warn and ignore the option if not recognized
  6920. # So say no if there are warnings other than the usual output.
  6921. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6922. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6923. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6924. lt_cv_prog_compiler_rtti_exceptions=yes
  6925. fi
  6926. fi
  6927. $RM conftest*
  6928. fi
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6930. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6931. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6932. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6933. else
  6934. :
  6935. fi
  6936. fi
  6937. lt_prog_compiler_wl=
  6938. lt_prog_compiler_pic=
  6939. lt_prog_compiler_static=
  6940. if test "$GCC" = yes; then
  6941. lt_prog_compiler_wl='-Wl,'
  6942. lt_prog_compiler_static='-static'
  6943. case $host_os in
  6944. aix*)
  6945. # All AIX code is PIC.
  6946. if test "$host_cpu" = ia64; then
  6947. # AIX 5 now supports IA64 processor
  6948. lt_prog_compiler_static='-Bstatic'
  6949. fi
  6950. ;;
  6951. amigaos*)
  6952. case $host_cpu in
  6953. powerpc)
  6954. # see comment about AmigaOS4 .so support
  6955. lt_prog_compiler_pic='-fPIC'
  6956. ;;
  6957. m68k)
  6958. # FIXME: we need at least 68020 code to build shared libraries, but
  6959. # adding the `-m68020' flag to GCC prevents building anything better,
  6960. # like `-m68040'.
  6961. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6962. ;;
  6963. esac
  6964. ;;
  6965. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6966. # PIC is the default for these OSes.
  6967. ;;
  6968. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6969. # This hack is so that the source file can tell whether it is being
  6970. # built for inclusion in a dll (and should export symbols for example).
  6971. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6972. # (--disable-auto-import) libraries
  6973. lt_prog_compiler_pic='-DDLL_EXPORT'
  6974. ;;
  6975. darwin* | rhapsody*)
  6976. # PIC is the default on this platform
  6977. # Common symbols not allowed in MH_DYLIB files
  6978. lt_prog_compiler_pic='-fno-common'
  6979. ;;
  6980. haiku*)
  6981. # PIC is the default for Haiku.
  6982. # The "-static" flag exists, but is broken.
  6983. lt_prog_compiler_static=
  6984. ;;
  6985. hpux*)
  6986. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6987. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6988. # sets the default TLS model and affects inlining.
  6989. case $host_cpu in
  6990. hppa*64*)
  6991. # +Z the default
  6992. ;;
  6993. *)
  6994. lt_prog_compiler_pic='-fPIC'
  6995. ;;
  6996. esac
  6997. ;;
  6998. interix[3-9]*)
  6999. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7000. # Instead, we relocate shared libraries at runtime.
  7001. ;;
  7002. msdosdjgpp*)
  7003. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7004. # on systems that don't support them.
  7005. lt_prog_compiler_can_build_shared=no
  7006. enable_shared=no
  7007. ;;
  7008. *nto* | *qnx*)
  7009. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7010. # it will coredump.
  7011. lt_prog_compiler_pic='-fPIC -shared'
  7012. ;;
  7013. sysv4*MP*)
  7014. if test -d /usr/nec; then
  7015. lt_prog_compiler_pic=-Kconform_pic
  7016. fi
  7017. ;;
  7018. *)
  7019. lt_prog_compiler_pic='-fPIC'
  7020. ;;
  7021. esac
  7022. case $cc_basename in
  7023. nvcc*) # Cuda Compiler Driver 2.2
  7024. lt_prog_compiler_wl='-Xlinker '
  7025. if test -n "$lt_prog_compiler_pic"; then
  7026. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7027. fi
  7028. ;;
  7029. esac
  7030. else
  7031. # PORTME Check for flag to pass linker flags through the system compiler.
  7032. case $host_os in
  7033. aix*)
  7034. lt_prog_compiler_wl='-Wl,'
  7035. if test "$host_cpu" = ia64; then
  7036. # AIX 5 now supports IA64 processor
  7037. lt_prog_compiler_static='-Bstatic'
  7038. else
  7039. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7040. fi
  7041. ;;
  7042. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7043. # This hack is so that the source file can tell whether it is being
  7044. # built for inclusion in a dll (and should export symbols for example).
  7045. lt_prog_compiler_pic='-DDLL_EXPORT'
  7046. ;;
  7047. hpux9* | hpux10* | hpux11*)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7050. # not for PA HP-UX.
  7051. case $host_cpu in
  7052. hppa*64*|ia64*)
  7053. # +Z the default
  7054. ;;
  7055. *)
  7056. lt_prog_compiler_pic='+Z'
  7057. ;;
  7058. esac
  7059. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7060. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7061. ;;
  7062. irix5* | irix6* | nonstopux*)
  7063. lt_prog_compiler_wl='-Wl,'
  7064. # PIC (with -KPIC) is the default.
  7065. lt_prog_compiler_static='-non_shared'
  7066. ;;
  7067. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7068. case $cc_basename in
  7069. # old Intel for x86_64 which still supported -KPIC.
  7070. ecc*)
  7071. lt_prog_compiler_wl='-Wl,'
  7072. lt_prog_compiler_pic='-KPIC'
  7073. lt_prog_compiler_static='-static'
  7074. ;;
  7075. # icc used to be incompatible with GCC.
  7076. # ICC 10 doesn't accept -KPIC any more.
  7077. icc* | ifort*)
  7078. lt_prog_compiler_wl='-Wl,'
  7079. lt_prog_compiler_pic='-fPIC'
  7080. lt_prog_compiler_static='-static'
  7081. ;;
  7082. # Lahey Fortran 8.1.
  7083. lf95*)
  7084. lt_prog_compiler_wl='-Wl,'
  7085. lt_prog_compiler_pic='--shared'
  7086. lt_prog_compiler_static='--static'
  7087. ;;
  7088. nagfor*)
  7089. # NAG Fortran compiler
  7090. lt_prog_compiler_wl='-Wl,-Wl,,'
  7091. lt_prog_compiler_pic='-PIC'
  7092. lt_prog_compiler_static='-Bstatic'
  7093. ;;
  7094. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7095. # Portland Group compilers (*not* the Pentium gcc compiler,
  7096. # which looks to be a dead project)
  7097. lt_prog_compiler_wl='-Wl,'
  7098. lt_prog_compiler_pic='-fpic'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. ;;
  7101. ccc*)
  7102. lt_prog_compiler_wl='-Wl,'
  7103. # All Alpha code is PIC.
  7104. lt_prog_compiler_static='-non_shared'
  7105. ;;
  7106. xl* | bgxl* | bgf* | mpixl*)
  7107. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7108. lt_prog_compiler_wl='-Wl,'
  7109. lt_prog_compiler_pic='-qpic'
  7110. lt_prog_compiler_static='-qstaticlink'
  7111. ;;
  7112. *)
  7113. case `$CC -V 2>&1 | sed 5q` in
  7114. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7115. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7116. lt_prog_compiler_pic='-KPIC'
  7117. lt_prog_compiler_static='-Bstatic'
  7118. lt_prog_compiler_wl=''
  7119. ;;
  7120. *Sun\ F* | *Sun*Fortran*)
  7121. lt_prog_compiler_pic='-KPIC'
  7122. lt_prog_compiler_static='-Bstatic'
  7123. lt_prog_compiler_wl='-Qoption ld '
  7124. ;;
  7125. *Sun\ C*)
  7126. # Sun C 5.9
  7127. lt_prog_compiler_pic='-KPIC'
  7128. lt_prog_compiler_static='-Bstatic'
  7129. lt_prog_compiler_wl='-Wl,'
  7130. ;;
  7131. *Intel*\ [CF]*Compiler*)
  7132. lt_prog_compiler_wl='-Wl,'
  7133. lt_prog_compiler_pic='-fPIC'
  7134. lt_prog_compiler_static='-static'
  7135. ;;
  7136. *Portland\ Group*)
  7137. lt_prog_compiler_wl='-Wl,'
  7138. lt_prog_compiler_pic='-fpic'
  7139. lt_prog_compiler_static='-Bstatic'
  7140. ;;
  7141. esac
  7142. ;;
  7143. esac
  7144. ;;
  7145. newsos6)
  7146. lt_prog_compiler_pic='-KPIC'
  7147. lt_prog_compiler_static='-Bstatic'
  7148. ;;
  7149. *nto* | *qnx*)
  7150. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7151. # it will coredump.
  7152. lt_prog_compiler_pic='-fPIC -shared'
  7153. ;;
  7154. osf3* | osf4* | osf5*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. # All OSF/1 code is PIC.
  7157. lt_prog_compiler_static='-non_shared'
  7158. ;;
  7159. rdos*)
  7160. lt_prog_compiler_static='-non_shared'
  7161. ;;
  7162. solaris*)
  7163. lt_prog_compiler_pic='-KPIC'
  7164. lt_prog_compiler_static='-Bstatic'
  7165. case $cc_basename in
  7166. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7167. lt_prog_compiler_wl='-Qoption ld ';;
  7168. *)
  7169. lt_prog_compiler_wl='-Wl,';;
  7170. esac
  7171. ;;
  7172. sunos4*)
  7173. lt_prog_compiler_wl='-Qoption ld '
  7174. lt_prog_compiler_pic='-PIC'
  7175. lt_prog_compiler_static='-Bstatic'
  7176. ;;
  7177. sysv4 | sysv4.2uw2* | sysv4.3*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. lt_prog_compiler_pic='-KPIC'
  7180. lt_prog_compiler_static='-Bstatic'
  7181. ;;
  7182. sysv4*MP*)
  7183. if test -d /usr/nec ;then
  7184. lt_prog_compiler_pic='-Kconform_pic'
  7185. lt_prog_compiler_static='-Bstatic'
  7186. fi
  7187. ;;
  7188. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7189. lt_prog_compiler_wl='-Wl,'
  7190. lt_prog_compiler_pic='-KPIC'
  7191. lt_prog_compiler_static='-Bstatic'
  7192. ;;
  7193. unicos*)
  7194. lt_prog_compiler_wl='-Wl,'
  7195. lt_prog_compiler_can_build_shared=no
  7196. ;;
  7197. uts4*)
  7198. lt_prog_compiler_pic='-pic'
  7199. lt_prog_compiler_static='-Bstatic'
  7200. ;;
  7201. *)
  7202. lt_prog_compiler_can_build_shared=no
  7203. ;;
  7204. esac
  7205. fi
  7206. case $host_os in
  7207. # For platforms which do not support PIC, -DPIC is meaningless:
  7208. *djgpp*)
  7209. lt_prog_compiler_pic=
  7210. ;;
  7211. *)
  7212. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7213. ;;
  7214. esac
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7216. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7217. if ${lt_cv_prog_compiler_pic+:} false; then :
  7218. $as_echo_n "(cached) " >&6
  7219. else
  7220. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7221. fi
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7223. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7224. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7225. #
  7226. # Check to make sure the PIC flag actually works.
  7227. #
  7228. if test -n "$lt_prog_compiler_pic"; then
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7230. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7231. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7232. $as_echo_n "(cached) " >&6
  7233. else
  7234. lt_cv_prog_compiler_pic_works=no
  7235. ac_outfile=conftest.$ac_objext
  7236. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7237. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7238. # Insert the option either (1) after the last *FLAGS variable, or
  7239. # (2) before a word containing "conftest.", or (3) at the end.
  7240. # Note that $ac_compile itself does not contain backslashes and begins
  7241. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7242. # The option is referenced via a variable to avoid confusing sed.
  7243. lt_compile=`echo "$ac_compile" | $SED \
  7244. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7245. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7246. -e 's:$: $lt_compiler_flag:'`
  7247. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7248. (eval "$lt_compile" 2>conftest.err)
  7249. ac_status=$?
  7250. cat conftest.err >&5
  7251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7252. if (exit $ac_status) && test -s "$ac_outfile"; then
  7253. # The compiler can only warn and ignore the option if not recognized
  7254. # So say no if there are warnings other than the usual output.
  7255. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7256. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7257. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7258. lt_cv_prog_compiler_pic_works=yes
  7259. fi
  7260. fi
  7261. $RM conftest*
  7262. fi
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7264. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7265. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7266. case $lt_prog_compiler_pic in
  7267. "" | " "*) ;;
  7268. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7269. esac
  7270. else
  7271. lt_prog_compiler_pic=
  7272. lt_prog_compiler_can_build_shared=no
  7273. fi
  7274. fi
  7275. #
  7276. # Check to make sure the static flag actually works.
  7277. #
  7278. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7280. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7281. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7282. $as_echo_n "(cached) " >&6
  7283. else
  7284. lt_cv_prog_compiler_static_works=no
  7285. save_LDFLAGS="$LDFLAGS"
  7286. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7287. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7288. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7289. # The linker can only warn and ignore the option if not recognized
  7290. # So say no if there are warnings
  7291. if test -s conftest.err; then
  7292. # Append any errors to the config.log.
  7293. cat conftest.err 1>&5
  7294. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7295. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7296. if diff conftest.exp conftest.er2 >/dev/null; then
  7297. lt_cv_prog_compiler_static_works=yes
  7298. fi
  7299. else
  7300. lt_cv_prog_compiler_static_works=yes
  7301. fi
  7302. fi
  7303. $RM -r conftest*
  7304. LDFLAGS="$save_LDFLAGS"
  7305. fi
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7307. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7308. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7309. :
  7310. else
  7311. lt_prog_compiler_static=
  7312. fi
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7314. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7315. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. lt_cv_prog_compiler_c_o=no
  7319. $RM -r conftest 2>/dev/null
  7320. mkdir conftest
  7321. cd conftest
  7322. mkdir out
  7323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7324. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7325. # Insert the option either (1) after the last *FLAGS variable, or
  7326. # (2) before a word containing "conftest.", or (3) at the end.
  7327. # Note that $ac_compile itself does not contain backslashes and begins
  7328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7329. lt_compile=`echo "$ac_compile" | $SED \
  7330. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7331. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7332. -e 's:$: $lt_compiler_flag:'`
  7333. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7334. (eval "$lt_compile" 2>out/conftest.err)
  7335. ac_status=$?
  7336. cat out/conftest.err >&5
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7339. then
  7340. # The compiler can only warn and ignore the option if not recognized
  7341. # So say no if there are warnings
  7342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7343. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7344. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7345. lt_cv_prog_compiler_c_o=yes
  7346. fi
  7347. fi
  7348. chmod u+w . 2>&5
  7349. $RM conftest*
  7350. # SGI C++ compiler will create directory out/ii_files/ for
  7351. # template instantiation
  7352. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7353. $RM out/* && rmdir out
  7354. cd ..
  7355. $RM -r conftest
  7356. $RM conftest*
  7357. fi
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7359. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7361. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7362. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7363. $as_echo_n "(cached) " >&6
  7364. else
  7365. lt_cv_prog_compiler_c_o=no
  7366. $RM -r conftest 2>/dev/null
  7367. mkdir conftest
  7368. cd conftest
  7369. mkdir out
  7370. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7371. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7372. # Insert the option either (1) after the last *FLAGS variable, or
  7373. # (2) before a word containing "conftest.", or (3) at the end.
  7374. # Note that $ac_compile itself does not contain backslashes and begins
  7375. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7376. lt_compile=`echo "$ac_compile" | $SED \
  7377. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7378. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7379. -e 's:$: $lt_compiler_flag:'`
  7380. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7381. (eval "$lt_compile" 2>out/conftest.err)
  7382. ac_status=$?
  7383. cat out/conftest.err >&5
  7384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7385. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7386. then
  7387. # The compiler can only warn and ignore the option if not recognized
  7388. # So say no if there are warnings
  7389. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7390. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7391. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7392. lt_cv_prog_compiler_c_o=yes
  7393. fi
  7394. fi
  7395. chmod u+w . 2>&5
  7396. $RM conftest*
  7397. # SGI C++ compiler will create directory out/ii_files/ for
  7398. # template instantiation
  7399. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7400. $RM out/* && rmdir out
  7401. cd ..
  7402. $RM -r conftest
  7403. $RM conftest*
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7406. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7407. hard_links="nottested"
  7408. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7409. # do not overwrite the value of need_locks provided by the user
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7411. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7412. hard_links=yes
  7413. $RM conftest*
  7414. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7415. touch conftest.a
  7416. ln conftest.a conftest.b 2>&5 || hard_links=no
  7417. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7419. $as_echo "$hard_links" >&6; }
  7420. if test "$hard_links" = no; then
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7422. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7423. need_locks=warn
  7424. fi
  7425. else
  7426. need_locks=no
  7427. fi
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7429. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7430. runpath_var=
  7431. allow_undefined_flag=
  7432. always_export_symbols=no
  7433. archive_cmds=
  7434. archive_expsym_cmds=
  7435. compiler_needs_object=no
  7436. enable_shared_with_static_runtimes=no
  7437. export_dynamic_flag_spec=
  7438. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7439. hardcode_automatic=no
  7440. hardcode_direct=no
  7441. hardcode_direct_absolute=no
  7442. hardcode_libdir_flag_spec=
  7443. hardcode_libdir_separator=
  7444. hardcode_minus_L=no
  7445. hardcode_shlibpath_var=unsupported
  7446. inherit_rpath=no
  7447. link_all_deplibs=unknown
  7448. module_cmds=
  7449. module_expsym_cmds=
  7450. old_archive_from_new_cmds=
  7451. old_archive_from_expsyms_cmds=
  7452. thread_safe_flag_spec=
  7453. whole_archive_flag_spec=
  7454. # include_expsyms should be a list of space-separated symbols to be *always*
  7455. # included in the symbol list
  7456. include_expsyms=
  7457. # exclude_expsyms can be an extended regexp of symbols to exclude
  7458. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7459. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7460. # as well as any symbol that contains `d'.
  7461. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7462. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7463. # platforms (ab)use it in PIC code, but their linkers get confused if
  7464. # the symbol is explicitly referenced. Since portable code cannot
  7465. # rely on this symbol name, it's probably fine to never include it in
  7466. # preloaded symbol tables.
  7467. # Exclude shared library initialization/finalization symbols.
  7468. extract_expsyms_cmds=
  7469. case $host_os in
  7470. cygwin* | mingw* | pw32* | cegcc*)
  7471. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7472. # When not using gcc, we currently assume that we are using
  7473. # Microsoft Visual C++.
  7474. if test "$GCC" != yes; then
  7475. with_gnu_ld=no
  7476. fi
  7477. ;;
  7478. interix*)
  7479. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7480. with_gnu_ld=yes
  7481. ;;
  7482. openbsd*)
  7483. with_gnu_ld=no
  7484. ;;
  7485. esac
  7486. ld_shlibs=yes
  7487. # On some targets, GNU ld is compatible enough with the native linker
  7488. # that we're better off using the native interface for both.
  7489. lt_use_gnu_ld_interface=no
  7490. if test "$with_gnu_ld" = yes; then
  7491. case $host_os in
  7492. aix*)
  7493. # The AIX port of GNU ld has always aspired to compatibility
  7494. # with the native linker. However, as the warning in the GNU ld
  7495. # block says, versions before 2.19.5* couldn't really create working
  7496. # shared libraries, regardless of the interface used.
  7497. case `$LD -v 2>&1` in
  7498. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7499. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7500. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7501. *)
  7502. lt_use_gnu_ld_interface=yes
  7503. ;;
  7504. esac
  7505. ;;
  7506. *)
  7507. lt_use_gnu_ld_interface=yes
  7508. ;;
  7509. esac
  7510. fi
  7511. if test "$lt_use_gnu_ld_interface" = yes; then
  7512. # If archive_cmds runs LD, not CC, wlarc should be empty
  7513. wlarc='${wl}'
  7514. # Set some defaults for GNU ld with shared library support. These
  7515. # are reset later if shared libraries are not supported. Putting them
  7516. # here allows them to be overridden if necessary.
  7517. runpath_var=LD_RUN_PATH
  7518. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7519. export_dynamic_flag_spec='${wl}--export-dynamic'
  7520. # ancient GNU ld didn't support --whole-archive et. al.
  7521. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7522. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7523. else
  7524. whole_archive_flag_spec=
  7525. fi
  7526. supports_anon_versioning=no
  7527. case `$LD -v 2>&1` in
  7528. *GNU\ gold*) supports_anon_versioning=yes ;;
  7529. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7530. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7531. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7532. *\ 2.11.*) ;; # other 2.11 versions
  7533. *) supports_anon_versioning=yes ;;
  7534. esac
  7535. # See if GNU ld supports shared libraries.
  7536. case $host_os in
  7537. aix[3-9]*)
  7538. # On AIX/PPC, the GNU linker is very broken
  7539. if test "$host_cpu" != ia64; then
  7540. ld_shlibs=no
  7541. cat <<_LT_EOF 1>&2
  7542. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7543. *** to be unable to reliably create shared libraries on AIX.
  7544. *** Therefore, libtool is disabling shared libraries support. If you
  7545. *** really care for shared libraries, you may want to install binutils
  7546. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7547. *** You will then need to restart the configuration process.
  7548. _LT_EOF
  7549. fi
  7550. ;;
  7551. amigaos*)
  7552. case $host_cpu in
  7553. powerpc)
  7554. # see comment about AmigaOS4 .so support
  7555. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7556. archive_expsym_cmds=''
  7557. ;;
  7558. m68k)
  7559. 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)'
  7560. hardcode_libdir_flag_spec='-L$libdir'
  7561. hardcode_minus_L=yes
  7562. ;;
  7563. esac
  7564. ;;
  7565. beos*)
  7566. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7567. allow_undefined_flag=unsupported
  7568. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7569. # support --undefined. This deserves some investigation. FIXME
  7570. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7571. else
  7572. ld_shlibs=no
  7573. fi
  7574. ;;
  7575. cygwin* | mingw* | pw32* | cegcc*)
  7576. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7577. # as there is no search path for DLLs.
  7578. hardcode_libdir_flag_spec='-L$libdir'
  7579. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7580. allow_undefined_flag=unsupported
  7581. always_export_symbols=no
  7582. enable_shared_with_static_runtimes=yes
  7583. 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'
  7584. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7585. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7586. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7587. # If the export-symbols file already is a .def file (1st line
  7588. # is EXPORTS), use it as is; otherwise, prepend...
  7589. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7590. cp $export_symbols $output_objdir/$soname.def;
  7591. else
  7592. echo EXPORTS > $output_objdir/$soname.def;
  7593. cat $export_symbols >> $output_objdir/$soname.def;
  7594. fi~
  7595. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7596. else
  7597. ld_shlibs=no
  7598. fi
  7599. ;;
  7600. haiku*)
  7601. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7602. link_all_deplibs=yes
  7603. ;;
  7604. interix[3-9]*)
  7605. hardcode_direct=no
  7606. hardcode_shlibpath_var=no
  7607. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7608. export_dynamic_flag_spec='${wl}-E'
  7609. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7610. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7611. # default) and relocated if they conflict, which is a slow very memory
  7612. # consuming and fragmenting process. To avoid this, we pick a random,
  7613. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7614. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7615. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7616. 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'
  7617. ;;
  7618. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7619. tmp_diet=no
  7620. if test "$host_os" = linux-dietlibc; then
  7621. case $cc_basename in
  7622. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7623. esac
  7624. fi
  7625. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7626. && test "$tmp_diet" = no
  7627. then
  7628. tmp_addflag=' $pic_flag'
  7629. tmp_sharedflag='-shared'
  7630. case $cc_basename,$host_cpu in
  7631. pgcc*) # Portland Group C compiler
  7632. 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'
  7633. tmp_addflag=' $pic_flag'
  7634. ;;
  7635. pgf77* | pgf90* | pgf95* | pgfortran*)
  7636. # Portland Group f77 and f90 compilers
  7637. 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'
  7638. tmp_addflag=' $pic_flag -Mnomain' ;;
  7639. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7640. tmp_addflag=' -i_dynamic' ;;
  7641. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7642. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7643. ifc* | ifort*) # Intel Fortran compiler
  7644. tmp_addflag=' -nofor_main' ;;
  7645. lf95*) # Lahey Fortran 8.1
  7646. whole_archive_flag_spec=
  7647. tmp_sharedflag='--shared' ;;
  7648. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7649. tmp_sharedflag='-qmkshrobj'
  7650. tmp_addflag= ;;
  7651. nvcc*) # Cuda Compiler Driver 2.2
  7652. 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'
  7653. compiler_needs_object=yes
  7654. ;;
  7655. esac
  7656. case `$CC -V 2>&1 | sed 5q` in
  7657. *Sun\ C*) # Sun C 5.9
  7658. 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'
  7659. compiler_needs_object=yes
  7660. tmp_sharedflag='-G' ;;
  7661. *Sun\ F*) # Sun Fortran 8.3
  7662. tmp_sharedflag='-G' ;;
  7663. esac
  7664. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7665. if test "x$supports_anon_versioning" = xyes; then
  7666. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7667. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7668. echo "local: *; };" >> $output_objdir/$libname.ver~
  7669. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7670. fi
  7671. case $cc_basename in
  7672. xlf* | bgf* | bgxlf* | mpixlf*)
  7673. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7674. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7675. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7676. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7677. if test "x$supports_anon_versioning" = xyes; then
  7678. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7679. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7680. echo "local: *; };" >> $output_objdir/$libname.ver~
  7681. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7682. fi
  7683. ;;
  7684. esac
  7685. else
  7686. ld_shlibs=no
  7687. fi
  7688. ;;
  7689. netbsd*)
  7690. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7691. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7692. wlarc=
  7693. else
  7694. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7695. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7696. fi
  7697. ;;
  7698. solaris*)
  7699. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7700. ld_shlibs=no
  7701. cat <<_LT_EOF 1>&2
  7702. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7703. *** create shared libraries on Solaris systems. Therefore, libtool
  7704. *** is disabling shared libraries support. We urge you to upgrade GNU
  7705. *** binutils to release 2.9.1 or newer. Another option is to modify
  7706. *** your PATH or compiler configuration so that the native linker is
  7707. *** used, and then restart.
  7708. _LT_EOF
  7709. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7710. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7711. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7712. else
  7713. ld_shlibs=no
  7714. fi
  7715. ;;
  7716. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7717. case `$LD -v 2>&1` in
  7718. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7719. ld_shlibs=no
  7720. cat <<_LT_EOF 1>&2
  7721. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7722. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7723. *** is disabling shared libraries support. We urge you to upgrade GNU
  7724. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7725. *** your PATH or compiler configuration so that the native linker is
  7726. *** used, and then restart.
  7727. _LT_EOF
  7728. ;;
  7729. *)
  7730. # For security reasons, it is highly recommended that you always
  7731. # use absolute paths for naming shared libraries, and exclude the
  7732. # DT_RUNPATH tag from executables and libraries. But doing so
  7733. # requires that you compile everything twice, which is a pain.
  7734. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7735. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7736. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7737. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7738. else
  7739. ld_shlibs=no
  7740. fi
  7741. ;;
  7742. esac
  7743. ;;
  7744. sunos4*)
  7745. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7746. wlarc=
  7747. hardcode_direct=yes
  7748. hardcode_shlibpath_var=no
  7749. ;;
  7750. *)
  7751. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7752. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7753. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7754. else
  7755. ld_shlibs=no
  7756. fi
  7757. ;;
  7758. esac
  7759. if test "$ld_shlibs" = no; then
  7760. runpath_var=
  7761. hardcode_libdir_flag_spec=
  7762. export_dynamic_flag_spec=
  7763. whole_archive_flag_spec=
  7764. fi
  7765. else
  7766. # PORTME fill in a description of your system's linker (not GNU ld)
  7767. case $host_os in
  7768. aix3*)
  7769. allow_undefined_flag=unsupported
  7770. always_export_symbols=yes
  7771. 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'
  7772. # Note: this linker hardcodes the directories in LIBPATH if there
  7773. # are no directories specified by -L.
  7774. hardcode_minus_L=yes
  7775. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7776. # Neither direct hardcoding nor static linking is supported with a
  7777. # broken collect2.
  7778. hardcode_direct=unsupported
  7779. fi
  7780. ;;
  7781. aix[4-9]*)
  7782. if test "$host_cpu" = ia64; then
  7783. # On IA64, the linker does run time linking by default, so we don't
  7784. # have to do anything special.
  7785. aix_use_runtimelinking=no
  7786. exp_sym_flag='-Bexport'
  7787. no_entry_flag=""
  7788. else
  7789. # If we're using GNU nm, then we don't want the "-C" option.
  7790. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7791. # Also, AIX nm treats weak defined symbols like other global
  7792. # defined symbols, whereas GNU nm marks them as "W".
  7793. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7794. 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'
  7795. else
  7796. 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'
  7797. fi
  7798. aix_use_runtimelinking=no
  7799. # Test if we are trying to use run time linking or normal
  7800. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7801. # need to do runtime linking.
  7802. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7803. for ld_flag in $LDFLAGS; do
  7804. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7805. aix_use_runtimelinking=yes
  7806. break
  7807. fi
  7808. done
  7809. ;;
  7810. esac
  7811. exp_sym_flag='-bexport'
  7812. no_entry_flag='-bnoentry'
  7813. fi
  7814. # When large executables or shared objects are built, AIX ld can
  7815. # have problems creating the table of contents. If linking a library
  7816. # or program results in "error TOC overflow" add -mminimal-toc to
  7817. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7818. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7819. archive_cmds=''
  7820. hardcode_direct=yes
  7821. hardcode_direct_absolute=yes
  7822. hardcode_libdir_separator=':'
  7823. link_all_deplibs=yes
  7824. file_list_spec='${wl}-f,'
  7825. if test "$GCC" = yes; then
  7826. case $host_os in aix4.[012]|aix4.[012].*)
  7827. # We only want to do this on AIX 4.2 and lower, the check
  7828. # below for broken collect2 doesn't work under 4.3+
  7829. collect2name=`${CC} -print-prog-name=collect2`
  7830. if test -f "$collect2name" &&
  7831. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7832. then
  7833. # We have reworked collect2
  7834. :
  7835. else
  7836. # We have old collect2
  7837. hardcode_direct=unsupported
  7838. # It fails to find uninstalled libraries when the uninstalled
  7839. # path is not listed in the libpath. Setting hardcode_minus_L
  7840. # to unsupported forces relinking
  7841. hardcode_minus_L=yes
  7842. hardcode_libdir_flag_spec='-L$libdir'
  7843. hardcode_libdir_separator=
  7844. fi
  7845. ;;
  7846. esac
  7847. shared_flag='-shared'
  7848. if test "$aix_use_runtimelinking" = yes; then
  7849. shared_flag="$shared_flag "'${wl}-G'
  7850. fi
  7851. else
  7852. # not using gcc
  7853. if test "$host_cpu" = ia64; then
  7854. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7855. # chokes on -Wl,-G. The following line is correct:
  7856. shared_flag='-G'
  7857. else
  7858. if test "$aix_use_runtimelinking" = yes; then
  7859. shared_flag='${wl}-G'
  7860. else
  7861. shared_flag='${wl}-bM:SRE'
  7862. fi
  7863. fi
  7864. fi
  7865. export_dynamic_flag_spec='${wl}-bexpall'
  7866. # It seems that -bexpall does not export symbols beginning with
  7867. # underscore (_), so it is better to generate a list of symbols to export.
  7868. always_export_symbols=yes
  7869. if test "$aix_use_runtimelinking" = yes; then
  7870. # Warning - without using the other runtime loading flags (-brtl),
  7871. # -berok will link without error, but may produce a broken library.
  7872. allow_undefined_flag='-berok'
  7873. # Determine the default libpath from the value encoded in an
  7874. # empty executable.
  7875. if test "${lt_cv_aix_libpath+set}" = set; then
  7876. aix_libpath=$lt_cv_aix_libpath
  7877. else
  7878. if ${lt_cv_aix_libpath_+:} false; then :
  7879. $as_echo_n "(cached) " >&6
  7880. else
  7881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7882. /* end confdefs.h. */
  7883. int
  7884. main ()
  7885. {
  7886. ;
  7887. return 0;
  7888. }
  7889. _ACEOF
  7890. if ac_fn_c_try_link "$LINENO"; then :
  7891. lt_aix_libpath_sed='
  7892. /Import File Strings/,/^$/ {
  7893. /^0/ {
  7894. s/^0 *\([^ ]*\) *$/\1/
  7895. p
  7896. }
  7897. }'
  7898. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7899. # Check for a 64-bit object if we didn't find anything.
  7900. if test -z "$lt_cv_aix_libpath_"; then
  7901. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7902. fi
  7903. fi
  7904. rm -f core conftest.err conftest.$ac_objext \
  7905. conftest$ac_exeext conftest.$ac_ext
  7906. if test -z "$lt_cv_aix_libpath_"; then
  7907. lt_cv_aix_libpath_="/usr/lib:/lib"
  7908. fi
  7909. fi
  7910. aix_libpath=$lt_cv_aix_libpath_
  7911. fi
  7912. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7913. 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"
  7914. else
  7915. if test "$host_cpu" = ia64; then
  7916. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7917. allow_undefined_flag="-z nodefs"
  7918. 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"
  7919. else
  7920. # Determine the default libpath from the value encoded in an
  7921. # empty executable.
  7922. if test "${lt_cv_aix_libpath+set}" = set; then
  7923. aix_libpath=$lt_cv_aix_libpath
  7924. else
  7925. if ${lt_cv_aix_libpath_+:} false; then :
  7926. $as_echo_n "(cached) " >&6
  7927. else
  7928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7929. /* end confdefs.h. */
  7930. int
  7931. main ()
  7932. {
  7933. ;
  7934. return 0;
  7935. }
  7936. _ACEOF
  7937. if ac_fn_c_try_link "$LINENO"; then :
  7938. lt_aix_libpath_sed='
  7939. /Import File Strings/,/^$/ {
  7940. /^0/ {
  7941. s/^0 *\([^ ]*\) *$/\1/
  7942. p
  7943. }
  7944. }'
  7945. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7946. # Check for a 64-bit object if we didn't find anything.
  7947. if test -z "$lt_cv_aix_libpath_"; then
  7948. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7949. fi
  7950. fi
  7951. rm -f core conftest.err conftest.$ac_objext \
  7952. conftest$ac_exeext conftest.$ac_ext
  7953. if test -z "$lt_cv_aix_libpath_"; then
  7954. lt_cv_aix_libpath_="/usr/lib:/lib"
  7955. fi
  7956. fi
  7957. aix_libpath=$lt_cv_aix_libpath_
  7958. fi
  7959. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7960. # Warning - without using the other run time loading flags,
  7961. # -berok will link without error, but may produce a broken library.
  7962. no_undefined_flag=' ${wl}-bernotok'
  7963. allow_undefined_flag=' ${wl}-berok'
  7964. if test "$with_gnu_ld" = yes; then
  7965. # We only use this code for GNU lds that support --whole-archive.
  7966. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7967. else
  7968. # Exported symbols can be pulled into shared objects from archives
  7969. whole_archive_flag_spec='$convenience'
  7970. fi
  7971. archive_cmds_need_lc=yes
  7972. # This is similar to how AIX traditionally builds its shared libraries.
  7973. 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'
  7974. fi
  7975. fi
  7976. ;;
  7977. amigaos*)
  7978. case $host_cpu in
  7979. powerpc)
  7980. # see comment about AmigaOS4 .so support
  7981. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7982. archive_expsym_cmds=''
  7983. ;;
  7984. m68k)
  7985. 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)'
  7986. hardcode_libdir_flag_spec='-L$libdir'
  7987. hardcode_minus_L=yes
  7988. ;;
  7989. esac
  7990. ;;
  7991. bsdi[45]*)
  7992. export_dynamic_flag_spec=-rdynamic
  7993. ;;
  7994. cygwin* | mingw* | pw32* | cegcc*)
  7995. # When not using gcc, we currently assume that we are using
  7996. # Microsoft Visual C++.
  7997. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7998. # no search path for DLLs.
  7999. case $cc_basename in
  8000. cl*)
  8001. # Native MSVC
  8002. hardcode_libdir_flag_spec=' '
  8003. allow_undefined_flag=unsupported
  8004. always_export_symbols=yes
  8005. file_list_spec='@'
  8006. # Tell ltmain to make .lib files, not .a files.
  8007. libext=lib
  8008. # Tell ltmain to make .dll files, not .so files.
  8009. shrext_cmds=".dll"
  8010. # FIXME: Setting linknames here is a bad hack.
  8011. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8012. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8013. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8014. else
  8015. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8016. fi~
  8017. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8018. linknames='
  8019. # The linker will not automatically build a static lib if we build a DLL.
  8020. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8021. enable_shared_with_static_runtimes=yes
  8022. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8023. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8024. # Don't use ranlib
  8025. old_postinstall_cmds='chmod 644 $oldlib'
  8026. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8027. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8028. case $lt_outputfile in
  8029. *.exe|*.EXE) ;;
  8030. *)
  8031. lt_outputfile="$lt_outputfile.exe"
  8032. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8033. ;;
  8034. esac~
  8035. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8036. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8037. $RM "$lt_outputfile.manifest";
  8038. fi'
  8039. ;;
  8040. *)
  8041. # Assume MSVC wrapper
  8042. hardcode_libdir_flag_spec=' '
  8043. allow_undefined_flag=unsupported
  8044. # Tell ltmain to make .lib files, not .a files.
  8045. libext=lib
  8046. # Tell ltmain to make .dll files, not .so files.
  8047. shrext_cmds=".dll"
  8048. # FIXME: Setting linknames here is a bad hack.
  8049. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8050. # The linker will automatically build a .lib file if we build a DLL.
  8051. old_archive_from_new_cmds='true'
  8052. # FIXME: Should let the user specify the lib program.
  8053. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8054. enable_shared_with_static_runtimes=yes
  8055. ;;
  8056. esac
  8057. ;;
  8058. darwin* | rhapsody*)
  8059. archive_cmds_need_lc=no
  8060. hardcode_direct=no
  8061. hardcode_automatic=yes
  8062. hardcode_shlibpath_var=unsupported
  8063. if test "$lt_cv_ld_force_load" = "yes"; then
  8064. 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\"`'
  8065. else
  8066. whole_archive_flag_spec=''
  8067. fi
  8068. link_all_deplibs=yes
  8069. allow_undefined_flag="$_lt_dar_allow_undefined"
  8070. case $cc_basename in
  8071. ifort*) _lt_dar_can_shared=yes ;;
  8072. *) _lt_dar_can_shared=$GCC ;;
  8073. esac
  8074. if test "$_lt_dar_can_shared" = "yes"; then
  8075. output_verbose_link_cmd=func_echo_all
  8076. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8077. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8078. 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}"
  8079. 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}"
  8080. else
  8081. ld_shlibs=no
  8082. fi
  8083. ;;
  8084. dgux*)
  8085. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8086. hardcode_libdir_flag_spec='-L$libdir'
  8087. hardcode_shlibpath_var=no
  8088. ;;
  8089. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8090. # support. Future versions do this automatically, but an explicit c++rt0.o
  8091. # does not break anything, and helps significantly (at the cost of a little
  8092. # extra space).
  8093. freebsd2.2*)
  8094. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8095. hardcode_libdir_flag_spec='-R$libdir'
  8096. hardcode_direct=yes
  8097. hardcode_shlibpath_var=no
  8098. ;;
  8099. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8100. freebsd2.*)
  8101. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8102. hardcode_direct=yes
  8103. hardcode_minus_L=yes
  8104. hardcode_shlibpath_var=no
  8105. ;;
  8106. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8107. freebsd* | dragonfly*)
  8108. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8109. hardcode_libdir_flag_spec='-R$libdir'
  8110. hardcode_direct=yes
  8111. hardcode_shlibpath_var=no
  8112. ;;
  8113. hpux9*)
  8114. if test "$GCC" = yes; then
  8115. 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'
  8116. else
  8117. 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'
  8118. fi
  8119. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8120. hardcode_libdir_separator=:
  8121. hardcode_direct=yes
  8122. # hardcode_minus_L: Not really in the search PATH,
  8123. # but as the default location of the library.
  8124. hardcode_minus_L=yes
  8125. export_dynamic_flag_spec='${wl}-E'
  8126. ;;
  8127. hpux10*)
  8128. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8129. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8130. else
  8131. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8132. fi
  8133. if test "$with_gnu_ld" = no; then
  8134. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8135. hardcode_libdir_separator=:
  8136. hardcode_direct=yes
  8137. hardcode_direct_absolute=yes
  8138. export_dynamic_flag_spec='${wl}-E'
  8139. # hardcode_minus_L: Not really in the search PATH,
  8140. # but as the default location of the library.
  8141. hardcode_minus_L=yes
  8142. fi
  8143. ;;
  8144. hpux11*)
  8145. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8146. case $host_cpu in
  8147. hppa*64*)
  8148. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8149. ;;
  8150. ia64*)
  8151. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8152. ;;
  8153. *)
  8154. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8155. ;;
  8156. esac
  8157. else
  8158. case $host_cpu in
  8159. hppa*64*)
  8160. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8161. ;;
  8162. ia64*)
  8163. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8164. ;;
  8165. *)
  8166. # Older versions of the 11.00 compiler do not understand -b yet
  8167. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8169. $as_echo_n "checking if $CC understands -b... " >&6; }
  8170. if ${lt_cv_prog_compiler__b+:} false; then :
  8171. $as_echo_n "(cached) " >&6
  8172. else
  8173. lt_cv_prog_compiler__b=no
  8174. save_LDFLAGS="$LDFLAGS"
  8175. LDFLAGS="$LDFLAGS -b"
  8176. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8177. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8178. # The linker can only warn and ignore the option if not recognized
  8179. # So say no if there are warnings
  8180. if test -s conftest.err; then
  8181. # Append any errors to the config.log.
  8182. cat conftest.err 1>&5
  8183. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8184. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8185. if diff conftest.exp conftest.er2 >/dev/null; then
  8186. lt_cv_prog_compiler__b=yes
  8187. fi
  8188. else
  8189. lt_cv_prog_compiler__b=yes
  8190. fi
  8191. fi
  8192. $RM -r conftest*
  8193. LDFLAGS="$save_LDFLAGS"
  8194. fi
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8196. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8197. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8198. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8199. else
  8200. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8201. fi
  8202. ;;
  8203. esac
  8204. fi
  8205. if test "$with_gnu_ld" = no; then
  8206. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8207. hardcode_libdir_separator=:
  8208. case $host_cpu in
  8209. hppa*64*|ia64*)
  8210. hardcode_direct=no
  8211. hardcode_shlibpath_var=no
  8212. ;;
  8213. *)
  8214. hardcode_direct=yes
  8215. hardcode_direct_absolute=yes
  8216. export_dynamic_flag_spec='${wl}-E'
  8217. # hardcode_minus_L: Not really in the search PATH,
  8218. # but as the default location of the library.
  8219. hardcode_minus_L=yes
  8220. ;;
  8221. esac
  8222. fi
  8223. ;;
  8224. irix5* | irix6* | nonstopux*)
  8225. if test "$GCC" = yes; then
  8226. 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'
  8227. # Try to use the -exported_symbol ld option, if it does not
  8228. # work, assume that -exports_file does not work either and
  8229. # implicitly export all symbols.
  8230. # This should be the same for all languages, so no per-tag cache variable.
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8232. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8233. if ${lt_cv_irix_exported_symbol+:} false; then :
  8234. $as_echo_n "(cached) " >&6
  8235. else
  8236. save_LDFLAGS="$LDFLAGS"
  8237. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8239. /* end confdefs.h. */
  8240. int foo (void) { return 0; }
  8241. _ACEOF
  8242. if ac_fn_c_try_link "$LINENO"; then :
  8243. lt_cv_irix_exported_symbol=yes
  8244. else
  8245. lt_cv_irix_exported_symbol=no
  8246. fi
  8247. rm -f core conftest.err conftest.$ac_objext \
  8248. conftest$ac_exeext conftest.$ac_ext
  8249. LDFLAGS="$save_LDFLAGS"
  8250. fi
  8251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8252. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8253. if test "$lt_cv_irix_exported_symbol" = yes; then
  8254. 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'
  8255. fi
  8256. else
  8257. 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'
  8258. 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'
  8259. fi
  8260. archive_cmds_need_lc='no'
  8261. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8262. hardcode_libdir_separator=:
  8263. inherit_rpath=yes
  8264. link_all_deplibs=yes
  8265. ;;
  8266. netbsd*)
  8267. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8268. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8269. else
  8270. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8271. fi
  8272. hardcode_libdir_flag_spec='-R$libdir'
  8273. hardcode_direct=yes
  8274. hardcode_shlibpath_var=no
  8275. ;;
  8276. newsos6)
  8277. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8278. hardcode_direct=yes
  8279. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8280. hardcode_libdir_separator=:
  8281. hardcode_shlibpath_var=no
  8282. ;;
  8283. *nto* | *qnx*)
  8284. ;;
  8285. openbsd*)
  8286. if test -f /usr/libexec/ld.so; then
  8287. hardcode_direct=yes
  8288. hardcode_shlibpath_var=no
  8289. hardcode_direct_absolute=yes
  8290. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8291. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8292. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8293. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8294. export_dynamic_flag_spec='${wl}-E'
  8295. else
  8296. case $host_os in
  8297. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8298. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8299. hardcode_libdir_flag_spec='-R$libdir'
  8300. ;;
  8301. *)
  8302. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8303. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8304. ;;
  8305. esac
  8306. fi
  8307. else
  8308. ld_shlibs=no
  8309. fi
  8310. ;;
  8311. os2*)
  8312. hardcode_libdir_flag_spec='-L$libdir'
  8313. hardcode_minus_L=yes
  8314. allow_undefined_flag=unsupported
  8315. 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'
  8316. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8317. ;;
  8318. osf3*)
  8319. if test "$GCC" = yes; then
  8320. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8321. 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'
  8322. else
  8323. allow_undefined_flag=' -expect_unresolved \*'
  8324. 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'
  8325. fi
  8326. archive_cmds_need_lc='no'
  8327. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8328. hardcode_libdir_separator=:
  8329. ;;
  8330. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8331. if test "$GCC" = yes; then
  8332. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8333. 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'
  8334. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8335. else
  8336. allow_undefined_flag=' -expect_unresolved \*'
  8337. 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'
  8338. 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~
  8339. $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'
  8340. # Both c and cxx compiler support -rpath directly
  8341. hardcode_libdir_flag_spec='-rpath $libdir'
  8342. fi
  8343. archive_cmds_need_lc='no'
  8344. hardcode_libdir_separator=:
  8345. ;;
  8346. solaris*)
  8347. no_undefined_flag=' -z defs'
  8348. if test "$GCC" = yes; then
  8349. wlarc='${wl}'
  8350. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8352. $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'
  8353. else
  8354. case `$CC -V 2>&1` in
  8355. *"Compilers 5.0"*)
  8356. wlarc=''
  8357. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8358. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8359. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8360. ;;
  8361. *)
  8362. wlarc='${wl}'
  8363. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8364. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8365. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8366. ;;
  8367. esac
  8368. fi
  8369. hardcode_libdir_flag_spec='-R$libdir'
  8370. hardcode_shlibpath_var=no
  8371. case $host_os in
  8372. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8373. *)
  8374. # The compiler driver will combine and reorder linker options,
  8375. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8376. # but is careful enough not to reorder.
  8377. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8378. if test "$GCC" = yes; then
  8379. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8380. else
  8381. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8382. fi
  8383. ;;
  8384. esac
  8385. link_all_deplibs=yes
  8386. ;;
  8387. sunos4*)
  8388. if test "x$host_vendor" = xsequent; then
  8389. # Use $CC to link under sequent, because it throws in some extra .o
  8390. # files that make .init and .fini sections work.
  8391. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8392. else
  8393. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8394. fi
  8395. hardcode_libdir_flag_spec='-L$libdir'
  8396. hardcode_direct=yes
  8397. hardcode_minus_L=yes
  8398. hardcode_shlibpath_var=no
  8399. ;;
  8400. sysv4)
  8401. case $host_vendor in
  8402. sni)
  8403. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8404. hardcode_direct=yes # is this really true???
  8405. ;;
  8406. siemens)
  8407. ## LD is ld it makes a PLAMLIB
  8408. ## CC just makes a GrossModule.
  8409. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8410. reload_cmds='$CC -r -o $output$reload_objs'
  8411. hardcode_direct=no
  8412. ;;
  8413. motorola)
  8414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8415. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8416. ;;
  8417. esac
  8418. runpath_var='LD_RUN_PATH'
  8419. hardcode_shlibpath_var=no
  8420. ;;
  8421. sysv4.3*)
  8422. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8423. hardcode_shlibpath_var=no
  8424. export_dynamic_flag_spec='-Bexport'
  8425. ;;
  8426. sysv4*MP*)
  8427. if test -d /usr/nec; then
  8428. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8429. hardcode_shlibpath_var=no
  8430. runpath_var=LD_RUN_PATH
  8431. hardcode_runpath_var=yes
  8432. ld_shlibs=yes
  8433. fi
  8434. ;;
  8435. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8436. no_undefined_flag='${wl}-z,text'
  8437. archive_cmds_need_lc=no
  8438. hardcode_shlibpath_var=no
  8439. runpath_var='LD_RUN_PATH'
  8440. if test "$GCC" = yes; then
  8441. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8442. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. else
  8444. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8445. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. fi
  8447. ;;
  8448. sysv5* | sco3.2v5* | sco5v6*)
  8449. # Note: We can NOT use -z defs as we might desire, because we do not
  8450. # link with -lc, and that would cause any symbols used from libc to
  8451. # always be unresolved, which means just about no library would
  8452. # ever link correctly. If we're not using GNU ld we use -z text
  8453. # though, which does catch some bad symbols but isn't as heavy-handed
  8454. # as -z defs.
  8455. no_undefined_flag='${wl}-z,text'
  8456. allow_undefined_flag='${wl}-z,nodefs'
  8457. archive_cmds_need_lc=no
  8458. hardcode_shlibpath_var=no
  8459. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8460. hardcode_libdir_separator=':'
  8461. link_all_deplibs=yes
  8462. export_dynamic_flag_spec='${wl}-Bexport'
  8463. runpath_var='LD_RUN_PATH'
  8464. if test "$GCC" = yes; then
  8465. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. else
  8468. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. fi
  8471. ;;
  8472. uts4*)
  8473. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8474. hardcode_libdir_flag_spec='-L$libdir'
  8475. hardcode_shlibpath_var=no
  8476. ;;
  8477. *)
  8478. ld_shlibs=no
  8479. ;;
  8480. esac
  8481. if test x$host_vendor = xsni; then
  8482. case $host in
  8483. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8484. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8485. ;;
  8486. esac
  8487. fi
  8488. fi
  8489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8490. $as_echo "$ld_shlibs" >&6; }
  8491. test "$ld_shlibs" = no && can_build_shared=no
  8492. with_gnu_ld=$with_gnu_ld
  8493. #
  8494. # Do we need to explicitly link libc?
  8495. #
  8496. case "x$archive_cmds_need_lc" in
  8497. x|xyes)
  8498. # Assume -lc should be added
  8499. archive_cmds_need_lc=yes
  8500. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8501. case $archive_cmds in
  8502. *'~'*)
  8503. # FIXME: we may have to deal with multi-command sequences.
  8504. ;;
  8505. '$CC '*)
  8506. # Test whether the compiler implicitly links with -lc since on some
  8507. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8508. # to ld, don't add -lc before -lgcc.
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8510. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8511. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8512. $as_echo_n "(cached) " >&6
  8513. else
  8514. $RM conftest*
  8515. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8516. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8517. (eval $ac_compile) 2>&5
  8518. ac_status=$?
  8519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8520. test $ac_status = 0; } 2>conftest.err; then
  8521. soname=conftest
  8522. lib=conftest
  8523. libobjs=conftest.$ac_objext
  8524. deplibs=
  8525. wl=$lt_prog_compiler_wl
  8526. pic_flag=$lt_prog_compiler_pic
  8527. compiler_flags=-v
  8528. linker_flags=-v
  8529. verstring=
  8530. output_objdir=.
  8531. libname=conftest
  8532. lt_save_allow_undefined_flag=$allow_undefined_flag
  8533. allow_undefined_flag=
  8534. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8535. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8536. ac_status=$?
  8537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8538. test $ac_status = 0; }
  8539. then
  8540. lt_cv_archive_cmds_need_lc=no
  8541. else
  8542. lt_cv_archive_cmds_need_lc=yes
  8543. fi
  8544. allow_undefined_flag=$lt_save_allow_undefined_flag
  8545. else
  8546. cat conftest.err 1>&5
  8547. fi
  8548. $RM conftest*
  8549. fi
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8551. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8552. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8553. ;;
  8554. esac
  8555. fi
  8556. ;;
  8557. esac
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8559. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8560. if test "$GCC" = yes; then
  8561. case $host_os in
  8562. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8563. *) lt_awk_arg="/^libraries:/" ;;
  8564. esac
  8565. case $host_os in
  8566. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8567. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8568. esac
  8569. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8570. case $lt_search_path_spec in
  8571. *\;*)
  8572. # if the path contains ";" then we assume it to be the separator
  8573. # otherwise default to the standard path separator (i.e. ":") - it is
  8574. # assumed that no part of a normal pathname contains ";" but that should
  8575. # okay in the real world where ";" in dirpaths is itself problematic.
  8576. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8577. ;;
  8578. *)
  8579. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8580. ;;
  8581. esac
  8582. # Ok, now we have the path, separated by spaces, we can step through it
  8583. # and add multilib dir if necessary...
  8584. lt_tmp_lt_search_path_spec=
  8585. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8586. # ...but if some path already ends with the multilib dir we assume
  8587. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8588. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8589. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8590. lt_multi_os_dir=
  8591. ;;
  8592. esac
  8593. for lt_sys_path in $lt_search_path_spec; do
  8594. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8595. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8596. elif test -n "$lt_multi_os_dir"; then
  8597. test -d "$lt_sys_path" && \
  8598. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8599. fi
  8600. done
  8601. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8602. BEGIN {RS=" "; FS="/|\n";} {
  8603. lt_foo="";
  8604. lt_count=0;
  8605. for (lt_i = NF; lt_i > 0; lt_i--) {
  8606. if ($lt_i != "" && $lt_i != ".") {
  8607. if ($lt_i == "..") {
  8608. lt_count++;
  8609. } else {
  8610. if (lt_count == 0) {
  8611. lt_foo="/" $lt_i lt_foo;
  8612. } else {
  8613. lt_count--;
  8614. }
  8615. }
  8616. }
  8617. }
  8618. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8619. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8620. }'`
  8621. # AWK program above erroneously prepends '/' to C:/dos/paths
  8622. # for these hosts.
  8623. case $host_os in
  8624. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8625. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8626. esac
  8627. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8628. else
  8629. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8630. fi
  8631. library_names_spec=
  8632. libname_spec='lib$name'
  8633. soname_spec=
  8634. shrext_cmds=".so"
  8635. postinstall_cmds=
  8636. postuninstall_cmds=
  8637. finish_cmds=
  8638. finish_eval=
  8639. shlibpath_var=
  8640. shlibpath_overrides_runpath=unknown
  8641. version_type=none
  8642. dynamic_linker="$host_os ld.so"
  8643. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8644. need_lib_prefix=unknown
  8645. hardcode_into_libs=no
  8646. # when you set need_version to no, make sure it does not cause -set_version
  8647. # flags to be left without arguments
  8648. need_version=unknown
  8649. case $host_os in
  8650. aix3*)
  8651. version_type=linux # correct to gnu/linux during the next big refactor
  8652. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8653. shlibpath_var=LIBPATH
  8654. # AIX 3 has no versioning support, so we append a major version to the name.
  8655. soname_spec='${libname}${release}${shared_ext}$major'
  8656. ;;
  8657. aix[4-9]*)
  8658. version_type=linux # correct to gnu/linux during the next big refactor
  8659. need_lib_prefix=no
  8660. need_version=no
  8661. hardcode_into_libs=yes
  8662. if test "$host_cpu" = ia64; then
  8663. # AIX 5 supports IA64
  8664. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8665. shlibpath_var=LD_LIBRARY_PATH
  8666. else
  8667. # With GCC up to 2.95.x, collect2 would create an import file
  8668. # for dependence libraries. The import file would start with
  8669. # the line `#! .'. This would cause the generated library to
  8670. # depend on `.', always an invalid library. This was fixed in
  8671. # development snapshots of GCC prior to 3.0.
  8672. case $host_os in
  8673. aix4 | aix4.[01] | aix4.[01].*)
  8674. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8675. echo ' yes '
  8676. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8677. :
  8678. else
  8679. can_build_shared=no
  8680. fi
  8681. ;;
  8682. esac
  8683. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8684. # soname into executable. Probably we can add versioning support to
  8685. # collect2, so additional links can be useful in future.
  8686. if test "$aix_use_runtimelinking" = yes; then
  8687. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8688. # instead of lib<name>.a to let people know that these are not
  8689. # typical AIX shared libraries.
  8690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8691. else
  8692. # We preserve .a as extension for shared libraries through AIX4.2
  8693. # and later when we are not doing run time linking.
  8694. library_names_spec='${libname}${release}.a $libname.a'
  8695. soname_spec='${libname}${release}${shared_ext}$major'
  8696. fi
  8697. shlibpath_var=LIBPATH
  8698. fi
  8699. ;;
  8700. amigaos*)
  8701. case $host_cpu in
  8702. powerpc)
  8703. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8704. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8706. ;;
  8707. m68k)
  8708. library_names_spec='$libname.ixlibrary $libname.a'
  8709. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8710. 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'
  8711. ;;
  8712. esac
  8713. ;;
  8714. beos*)
  8715. library_names_spec='${libname}${shared_ext}'
  8716. dynamic_linker="$host_os ld.so"
  8717. shlibpath_var=LIBRARY_PATH
  8718. ;;
  8719. bsdi[45]*)
  8720. version_type=linux # correct to gnu/linux during the next big refactor
  8721. need_version=no
  8722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8723. soname_spec='${libname}${release}${shared_ext}$major'
  8724. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8725. shlibpath_var=LD_LIBRARY_PATH
  8726. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8727. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8728. # the default ld.so.conf also contains /usr/contrib/lib and
  8729. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8730. # libtool to hard-code these into programs
  8731. ;;
  8732. cygwin* | mingw* | pw32* | cegcc*)
  8733. version_type=windows
  8734. shrext_cmds=".dll"
  8735. need_version=no
  8736. need_lib_prefix=no
  8737. case $GCC,$cc_basename in
  8738. yes,*)
  8739. # gcc
  8740. library_names_spec='$libname.dll.a'
  8741. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8742. postinstall_cmds='base_file=`basename \${file}`~
  8743. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8744. dldir=$destdir/`dirname \$dlpath`~
  8745. test -d \$dldir || mkdir -p \$dldir~
  8746. $install_prog $dir/$dlname \$dldir/$dlname~
  8747. chmod a+x \$dldir/$dlname~
  8748. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8749. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8750. fi'
  8751. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8752. dlpath=$dir/\$dldll~
  8753. $RM \$dlpath'
  8754. shlibpath_overrides_runpath=yes
  8755. case $host_os in
  8756. cygwin*)
  8757. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8758. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8759. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8760. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8761. ;;
  8762. mingw* | cegcc*)
  8763. # MinGW DLLs use traditional 'lib' prefix
  8764. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8765. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8766. ;;
  8767. pw32*)
  8768. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8769. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8770. ;;
  8771. esac
  8772. dynamic_linker='Win32 ld.exe'
  8773. ;;
  8774. *,cl*)
  8775. # Native MSVC
  8776. libname_spec='$name'
  8777. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8778. library_names_spec='${libname}.dll.lib'
  8779. case $build_os in
  8780. mingw*)
  8781. sys_lib_search_path_spec=
  8782. lt_save_ifs=$IFS
  8783. IFS=';'
  8784. for lt_path in $LIB
  8785. do
  8786. IFS=$lt_save_ifs
  8787. # Let DOS variable expansion print the short 8.3 style file name.
  8788. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8789. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8790. done
  8791. IFS=$lt_save_ifs
  8792. # Convert to MSYS style.
  8793. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8794. ;;
  8795. cygwin*)
  8796. # Convert to unix form, then to dos form, then back to unix form
  8797. # but this time dos style (no spaces!) so that the unix form looks
  8798. # like /cygdrive/c/PROGRA~1:/cygdr...
  8799. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8800. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8801. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8802. ;;
  8803. *)
  8804. sys_lib_search_path_spec="$LIB"
  8805. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8806. # It is most probably a Windows format PATH.
  8807. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8808. else
  8809. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8810. fi
  8811. # FIXME: find the short name or the path components, as spaces are
  8812. # common. (e.g. "Program Files" -> "PROGRA~1")
  8813. ;;
  8814. esac
  8815. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8816. postinstall_cmds='base_file=`basename \${file}`~
  8817. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8818. dldir=$destdir/`dirname \$dlpath`~
  8819. test -d \$dldir || mkdir -p \$dldir~
  8820. $install_prog $dir/$dlname \$dldir/$dlname'
  8821. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8822. dlpath=$dir/\$dldll~
  8823. $RM \$dlpath'
  8824. shlibpath_overrides_runpath=yes
  8825. dynamic_linker='Win32 link.exe'
  8826. ;;
  8827. *)
  8828. # Assume MSVC wrapper
  8829. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8830. dynamic_linker='Win32 ld.exe'
  8831. ;;
  8832. esac
  8833. # FIXME: first we should search . and the directory the executable is in
  8834. shlibpath_var=PATH
  8835. ;;
  8836. darwin* | rhapsody*)
  8837. dynamic_linker="$host_os dyld"
  8838. version_type=darwin
  8839. need_lib_prefix=no
  8840. need_version=no
  8841. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8842. soname_spec='${libname}${release}${major}$shared_ext'
  8843. shlibpath_overrides_runpath=yes
  8844. shlibpath_var=DYLD_LIBRARY_PATH
  8845. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8846. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8847. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8848. ;;
  8849. dgux*)
  8850. version_type=linux # correct to gnu/linux during the next big refactor
  8851. need_lib_prefix=no
  8852. need_version=no
  8853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8854. soname_spec='${libname}${release}${shared_ext}$major'
  8855. shlibpath_var=LD_LIBRARY_PATH
  8856. ;;
  8857. freebsd* | dragonfly*)
  8858. # DragonFly does not have aout. When/if they implement a new
  8859. # versioning mechanism, adjust this.
  8860. if test -x /usr/bin/objformat; then
  8861. objformat=`/usr/bin/objformat`
  8862. else
  8863. case $host_os in
  8864. freebsd[23].*) objformat=aout ;;
  8865. *) objformat=elf ;;
  8866. esac
  8867. fi
  8868. version_type=freebsd-$objformat
  8869. case $version_type in
  8870. freebsd-elf*)
  8871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8872. need_version=no
  8873. need_lib_prefix=no
  8874. ;;
  8875. freebsd-*)
  8876. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8877. need_version=yes
  8878. ;;
  8879. esac
  8880. shlibpath_var=LD_LIBRARY_PATH
  8881. case $host_os in
  8882. freebsd2.*)
  8883. shlibpath_overrides_runpath=yes
  8884. ;;
  8885. freebsd3.[01]* | freebsdelf3.[01]*)
  8886. shlibpath_overrides_runpath=yes
  8887. hardcode_into_libs=yes
  8888. ;;
  8889. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8890. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8891. shlibpath_overrides_runpath=no
  8892. hardcode_into_libs=yes
  8893. ;;
  8894. *) # from 4.6 on, and DragonFly
  8895. shlibpath_overrides_runpath=yes
  8896. hardcode_into_libs=yes
  8897. ;;
  8898. esac
  8899. ;;
  8900. gnu*)
  8901. version_type=linux # correct to gnu/linux during the next big refactor
  8902. need_lib_prefix=no
  8903. need_version=no
  8904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8905. soname_spec='${libname}${release}${shared_ext}$major'
  8906. shlibpath_var=LD_LIBRARY_PATH
  8907. shlibpath_overrides_runpath=no
  8908. hardcode_into_libs=yes
  8909. ;;
  8910. haiku*)
  8911. version_type=linux # correct to gnu/linux during the next big refactor
  8912. need_lib_prefix=no
  8913. need_version=no
  8914. dynamic_linker="$host_os runtime_loader"
  8915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8916. soname_spec='${libname}${release}${shared_ext}$major'
  8917. shlibpath_var=LIBRARY_PATH
  8918. shlibpath_overrides_runpath=yes
  8919. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8920. hardcode_into_libs=yes
  8921. ;;
  8922. hpux9* | hpux10* | hpux11*)
  8923. # Give a soname corresponding to the major version so that dld.sl refuses to
  8924. # link against other versions.
  8925. version_type=sunos
  8926. need_lib_prefix=no
  8927. need_version=no
  8928. case $host_cpu in
  8929. ia64*)
  8930. shrext_cmds='.so'
  8931. hardcode_into_libs=yes
  8932. dynamic_linker="$host_os dld.so"
  8933. shlibpath_var=LD_LIBRARY_PATH
  8934. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8936. soname_spec='${libname}${release}${shared_ext}$major'
  8937. if test "X$HPUX_IA64_MODE" = X32; then
  8938. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8939. else
  8940. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8941. fi
  8942. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8943. ;;
  8944. hppa*64*)
  8945. shrext_cmds='.sl'
  8946. hardcode_into_libs=yes
  8947. dynamic_linker="$host_os dld.sl"
  8948. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8949. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8953. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8954. ;;
  8955. *)
  8956. shrext_cmds='.sl'
  8957. dynamic_linker="$host_os dld.sl"
  8958. shlibpath_var=SHLIB_PATH
  8959. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8961. soname_spec='${libname}${release}${shared_ext}$major'
  8962. ;;
  8963. esac
  8964. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8965. postinstall_cmds='chmod 555 $lib'
  8966. # or fails outright, so override atomically:
  8967. install_override_mode=555
  8968. ;;
  8969. interix[3-9]*)
  8970. version_type=linux # correct to gnu/linux during the next big refactor
  8971. need_lib_prefix=no
  8972. need_version=no
  8973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8974. soname_spec='${libname}${release}${shared_ext}$major'
  8975. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8976. shlibpath_var=LD_LIBRARY_PATH
  8977. shlibpath_overrides_runpath=no
  8978. hardcode_into_libs=yes
  8979. ;;
  8980. irix5* | irix6* | nonstopux*)
  8981. case $host_os in
  8982. nonstopux*) version_type=nonstopux ;;
  8983. *)
  8984. if test "$lt_cv_prog_gnu_ld" = yes; then
  8985. version_type=linux # correct to gnu/linux during the next big refactor
  8986. else
  8987. version_type=irix
  8988. fi ;;
  8989. esac
  8990. need_lib_prefix=no
  8991. need_version=no
  8992. soname_spec='${libname}${release}${shared_ext}$major'
  8993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8994. case $host_os in
  8995. irix5* | nonstopux*)
  8996. libsuff= shlibsuff=
  8997. ;;
  8998. *)
  8999. case $LD in # libtool.m4 will add one of these switches to LD
  9000. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9001. libsuff= shlibsuff= libmagic=32-bit;;
  9002. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9003. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9004. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9005. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9006. *) libsuff= shlibsuff= libmagic=never-match;;
  9007. esac
  9008. ;;
  9009. esac
  9010. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9011. shlibpath_overrides_runpath=no
  9012. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9013. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9014. hardcode_into_libs=yes
  9015. ;;
  9016. # No shared lib support for Linux oldld, aout, or coff.
  9017. linux*oldld* | linux*aout* | linux*coff*)
  9018. dynamic_linker=no
  9019. ;;
  9020. # This must be glibc/ELF.
  9021. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9022. version_type=linux # correct to gnu/linux during the next big refactor
  9023. need_lib_prefix=no
  9024. need_version=no
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9026. soname_spec='${libname}${release}${shared_ext}$major'
  9027. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9028. shlibpath_var=LD_LIBRARY_PATH
  9029. shlibpath_overrides_runpath=no
  9030. # Some binutils ld are patched to set DT_RUNPATH
  9031. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9032. $as_echo_n "(cached) " >&6
  9033. else
  9034. lt_cv_shlibpath_overrides_runpath=no
  9035. save_LDFLAGS=$LDFLAGS
  9036. save_libdir=$libdir
  9037. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9038. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9040. /* end confdefs.h. */
  9041. int
  9042. main ()
  9043. {
  9044. ;
  9045. return 0;
  9046. }
  9047. _ACEOF
  9048. if ac_fn_c_try_link "$LINENO"; then :
  9049. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9050. lt_cv_shlibpath_overrides_runpath=yes
  9051. fi
  9052. fi
  9053. rm -f core conftest.err conftest.$ac_objext \
  9054. conftest$ac_exeext conftest.$ac_ext
  9055. LDFLAGS=$save_LDFLAGS
  9056. libdir=$save_libdir
  9057. fi
  9058. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9059. # This implies no fast_install, which is unacceptable.
  9060. # Some rework will be needed to allow for fast_install
  9061. # before this can be enabled.
  9062. hardcode_into_libs=yes
  9063. # Append ld.so.conf contents to the search path
  9064. if test -f /etc/ld.so.conf; then
  9065. 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' ' '`
  9066. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9067. fi
  9068. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9069. # powerpc, because MkLinux only supported shared libraries with the
  9070. # GNU dynamic linker. Since this was broken with cross compilers,
  9071. # most powerpc-linux boxes support dynamic linking these days and
  9072. # people can always --disable-shared, the test was removed, and we
  9073. # assume the GNU/Linux dynamic linker is in use.
  9074. dynamic_linker='GNU/Linux ld.so'
  9075. ;;
  9076. netbsd*)
  9077. version_type=sunos
  9078. need_lib_prefix=no
  9079. need_version=no
  9080. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9082. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9083. dynamic_linker='NetBSD (a.out) ld.so'
  9084. else
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9086. soname_spec='${libname}${release}${shared_ext}$major'
  9087. dynamic_linker='NetBSD ld.elf_so'
  9088. fi
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. shlibpath_overrides_runpath=yes
  9091. hardcode_into_libs=yes
  9092. ;;
  9093. newsos6)
  9094. version_type=linux # correct to gnu/linux during the next big refactor
  9095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9096. shlibpath_var=LD_LIBRARY_PATH
  9097. shlibpath_overrides_runpath=yes
  9098. ;;
  9099. *nto* | *qnx*)
  9100. version_type=qnx
  9101. need_lib_prefix=no
  9102. need_version=no
  9103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9104. soname_spec='${libname}${release}${shared_ext}$major'
  9105. shlibpath_var=LD_LIBRARY_PATH
  9106. shlibpath_overrides_runpath=no
  9107. hardcode_into_libs=yes
  9108. dynamic_linker='ldqnx.so'
  9109. ;;
  9110. openbsd*)
  9111. version_type=sunos
  9112. sys_lib_dlsearch_path_spec="/usr/lib"
  9113. need_lib_prefix=no
  9114. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9115. case $host_os in
  9116. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9117. *) need_version=no ;;
  9118. esac
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9120. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9121. shlibpath_var=LD_LIBRARY_PATH
  9122. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9123. case $host_os in
  9124. openbsd2.[89] | openbsd2.[89].*)
  9125. shlibpath_overrides_runpath=no
  9126. ;;
  9127. *)
  9128. shlibpath_overrides_runpath=yes
  9129. ;;
  9130. esac
  9131. else
  9132. shlibpath_overrides_runpath=yes
  9133. fi
  9134. ;;
  9135. os2*)
  9136. libname_spec='$name'
  9137. shrext_cmds=".dll"
  9138. need_lib_prefix=no
  9139. library_names_spec='$libname${shared_ext} $libname.a'
  9140. dynamic_linker='OS/2 ld.exe'
  9141. shlibpath_var=LIBPATH
  9142. ;;
  9143. osf3* | osf4* | osf5*)
  9144. version_type=osf
  9145. need_lib_prefix=no
  9146. need_version=no
  9147. soname_spec='${libname}${release}${shared_ext}$major'
  9148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9151. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9152. ;;
  9153. rdos*)
  9154. dynamic_linker=no
  9155. ;;
  9156. solaris*)
  9157. version_type=linux # correct to gnu/linux during the next big refactor
  9158. need_lib_prefix=no
  9159. need_version=no
  9160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9161. soname_spec='${libname}${release}${shared_ext}$major'
  9162. shlibpath_var=LD_LIBRARY_PATH
  9163. shlibpath_overrides_runpath=yes
  9164. hardcode_into_libs=yes
  9165. # ldd complains unless libraries are executable
  9166. postinstall_cmds='chmod +x $lib'
  9167. ;;
  9168. sunos4*)
  9169. version_type=sunos
  9170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9171. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9172. shlibpath_var=LD_LIBRARY_PATH
  9173. shlibpath_overrides_runpath=yes
  9174. if test "$with_gnu_ld" = yes; then
  9175. need_lib_prefix=no
  9176. fi
  9177. need_version=yes
  9178. ;;
  9179. sysv4 | sysv4.3*)
  9180. version_type=linux # correct to gnu/linux during the next big refactor
  9181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9182. soname_spec='${libname}${release}${shared_ext}$major'
  9183. shlibpath_var=LD_LIBRARY_PATH
  9184. case $host_vendor in
  9185. sni)
  9186. shlibpath_overrides_runpath=no
  9187. need_lib_prefix=no
  9188. runpath_var=LD_RUN_PATH
  9189. ;;
  9190. siemens)
  9191. need_lib_prefix=no
  9192. ;;
  9193. motorola)
  9194. need_lib_prefix=no
  9195. need_version=no
  9196. shlibpath_overrides_runpath=no
  9197. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9198. ;;
  9199. esac
  9200. ;;
  9201. sysv4*MP*)
  9202. if test -d /usr/nec ;then
  9203. version_type=linux # correct to gnu/linux during the next big refactor
  9204. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9205. soname_spec='$libname${shared_ext}.$major'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. fi
  9208. ;;
  9209. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9210. version_type=freebsd-elf
  9211. need_lib_prefix=no
  9212. need_version=no
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9214. soname_spec='${libname}${release}${shared_ext}$major'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. shlibpath_overrides_runpath=yes
  9217. hardcode_into_libs=yes
  9218. if test "$with_gnu_ld" = yes; then
  9219. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9220. else
  9221. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9222. case $host_os in
  9223. sco3.2v5*)
  9224. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9225. ;;
  9226. esac
  9227. fi
  9228. sys_lib_dlsearch_path_spec='/usr/lib'
  9229. ;;
  9230. tpf*)
  9231. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9232. version_type=linux # correct to gnu/linux during the next big refactor
  9233. need_lib_prefix=no
  9234. need_version=no
  9235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9236. shlibpath_var=LD_LIBRARY_PATH
  9237. shlibpath_overrides_runpath=no
  9238. hardcode_into_libs=yes
  9239. ;;
  9240. uts4*)
  9241. version_type=linux # correct to gnu/linux during the next big refactor
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9243. soname_spec='${libname}${release}${shared_ext}$major'
  9244. shlibpath_var=LD_LIBRARY_PATH
  9245. ;;
  9246. *)
  9247. dynamic_linker=no
  9248. ;;
  9249. esac
  9250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9251. $as_echo "$dynamic_linker" >&6; }
  9252. test "$dynamic_linker" = no && can_build_shared=no
  9253. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9254. if test "$GCC" = yes; then
  9255. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9256. fi
  9257. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9258. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9259. fi
  9260. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9261. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9262. fi
  9263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9264. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9265. hardcode_action=
  9266. if test -n "$hardcode_libdir_flag_spec" ||
  9267. test -n "$runpath_var" ||
  9268. test "X$hardcode_automatic" = "Xyes" ; then
  9269. # We can hardcode non-existent directories.
  9270. if test "$hardcode_direct" != no &&
  9271. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9272. # have to relink, otherwise we might link with an installed library
  9273. # when we should be linking with a yet-to-be-installed one
  9274. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9275. test "$hardcode_minus_L" != no; then
  9276. # Linking always hardcodes the temporary library directory.
  9277. hardcode_action=relink
  9278. else
  9279. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9280. hardcode_action=immediate
  9281. fi
  9282. else
  9283. # We cannot hardcode anything, or else we can only hardcode existing
  9284. # directories.
  9285. hardcode_action=unsupported
  9286. fi
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9288. $as_echo "$hardcode_action" >&6; }
  9289. if test "$hardcode_action" = relink ||
  9290. test "$inherit_rpath" = yes; then
  9291. # Fast installation is not supported
  9292. enable_fast_install=no
  9293. elif test "$shlibpath_overrides_runpath" = yes ||
  9294. test "$enable_shared" = no; then
  9295. # Fast installation is not necessary
  9296. enable_fast_install=needless
  9297. fi
  9298. if test "x$enable_dlopen" != xyes; then
  9299. enable_dlopen=unknown
  9300. enable_dlopen_self=unknown
  9301. enable_dlopen_self_static=unknown
  9302. else
  9303. lt_cv_dlopen=no
  9304. lt_cv_dlopen_libs=
  9305. case $host_os in
  9306. beos*)
  9307. lt_cv_dlopen="load_add_on"
  9308. lt_cv_dlopen_libs=
  9309. lt_cv_dlopen_self=yes
  9310. ;;
  9311. mingw* | pw32* | cegcc*)
  9312. lt_cv_dlopen="LoadLibrary"
  9313. lt_cv_dlopen_libs=
  9314. ;;
  9315. cygwin*)
  9316. lt_cv_dlopen="dlopen"
  9317. lt_cv_dlopen_libs=
  9318. ;;
  9319. darwin*)
  9320. # if libdl is installed we need to link against it
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9322. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9323. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9324. $as_echo_n "(cached) " >&6
  9325. else
  9326. ac_check_lib_save_LIBS=$LIBS
  9327. LIBS="-ldl $LIBS"
  9328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9329. /* end confdefs.h. */
  9330. /* Override any GCC internal prototype to avoid an error.
  9331. Use char because int might match the return type of a GCC
  9332. builtin and then its argument prototype would still apply. */
  9333. #ifdef __cplusplus
  9334. extern "C"
  9335. #endif
  9336. char dlopen ();
  9337. int
  9338. main ()
  9339. {
  9340. return dlopen ();
  9341. ;
  9342. return 0;
  9343. }
  9344. _ACEOF
  9345. if ac_fn_c_try_link "$LINENO"; then :
  9346. ac_cv_lib_dl_dlopen=yes
  9347. else
  9348. ac_cv_lib_dl_dlopen=no
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext \
  9351. conftest$ac_exeext conftest.$ac_ext
  9352. LIBS=$ac_check_lib_save_LIBS
  9353. fi
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9355. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9356. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9357. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9358. else
  9359. lt_cv_dlopen="dyld"
  9360. lt_cv_dlopen_libs=
  9361. lt_cv_dlopen_self=yes
  9362. fi
  9363. ;;
  9364. *)
  9365. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9366. if test "x$ac_cv_func_shl_load" = xyes; then :
  9367. lt_cv_dlopen="shl_load"
  9368. else
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9370. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9371. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9372. $as_echo_n "(cached) " >&6
  9373. else
  9374. ac_check_lib_save_LIBS=$LIBS
  9375. LIBS="-ldld $LIBS"
  9376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9377. /* end confdefs.h. */
  9378. /* Override any GCC internal prototype to avoid an error.
  9379. Use char because int might match the return type of a GCC
  9380. builtin and then its argument prototype would still apply. */
  9381. #ifdef __cplusplus
  9382. extern "C"
  9383. #endif
  9384. char shl_load ();
  9385. int
  9386. main ()
  9387. {
  9388. return shl_load ();
  9389. ;
  9390. return 0;
  9391. }
  9392. _ACEOF
  9393. if ac_fn_c_try_link "$LINENO"; then :
  9394. ac_cv_lib_dld_shl_load=yes
  9395. else
  9396. ac_cv_lib_dld_shl_load=no
  9397. fi
  9398. rm -f core conftest.err conftest.$ac_objext \
  9399. conftest$ac_exeext conftest.$ac_ext
  9400. LIBS=$ac_check_lib_save_LIBS
  9401. fi
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9403. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9404. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9405. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9406. else
  9407. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9408. if test "x$ac_cv_func_dlopen" = xyes; then :
  9409. lt_cv_dlopen="dlopen"
  9410. else
  9411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9412. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9413. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9414. $as_echo_n "(cached) " >&6
  9415. else
  9416. ac_check_lib_save_LIBS=$LIBS
  9417. LIBS="-ldl $LIBS"
  9418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9419. /* end confdefs.h. */
  9420. /* Override any GCC internal prototype to avoid an error.
  9421. Use char because int might match the return type of a GCC
  9422. builtin and then its argument prototype would still apply. */
  9423. #ifdef __cplusplus
  9424. extern "C"
  9425. #endif
  9426. char dlopen ();
  9427. int
  9428. main ()
  9429. {
  9430. return dlopen ();
  9431. ;
  9432. return 0;
  9433. }
  9434. _ACEOF
  9435. if ac_fn_c_try_link "$LINENO"; then :
  9436. ac_cv_lib_dl_dlopen=yes
  9437. else
  9438. ac_cv_lib_dl_dlopen=no
  9439. fi
  9440. rm -f core conftest.err conftest.$ac_objext \
  9441. conftest$ac_exeext conftest.$ac_ext
  9442. LIBS=$ac_check_lib_save_LIBS
  9443. fi
  9444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9445. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9446. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9447. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9448. else
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9450. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9451. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9452. $as_echo_n "(cached) " >&6
  9453. else
  9454. ac_check_lib_save_LIBS=$LIBS
  9455. LIBS="-lsvld $LIBS"
  9456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9457. /* end confdefs.h. */
  9458. /* Override any GCC internal prototype to avoid an error.
  9459. Use char because int might match the return type of a GCC
  9460. builtin and then its argument prototype would still apply. */
  9461. #ifdef __cplusplus
  9462. extern "C"
  9463. #endif
  9464. char dlopen ();
  9465. int
  9466. main ()
  9467. {
  9468. return dlopen ();
  9469. ;
  9470. return 0;
  9471. }
  9472. _ACEOF
  9473. if ac_fn_c_try_link "$LINENO"; then :
  9474. ac_cv_lib_svld_dlopen=yes
  9475. else
  9476. ac_cv_lib_svld_dlopen=no
  9477. fi
  9478. rm -f core conftest.err conftest.$ac_objext \
  9479. conftest$ac_exeext conftest.$ac_ext
  9480. LIBS=$ac_check_lib_save_LIBS
  9481. fi
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9483. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9484. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9485. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9486. else
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9488. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9489. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9490. $as_echo_n "(cached) " >&6
  9491. else
  9492. ac_check_lib_save_LIBS=$LIBS
  9493. LIBS="-ldld $LIBS"
  9494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9495. /* end confdefs.h. */
  9496. /* Override any GCC internal prototype to avoid an error.
  9497. Use char because int might match the return type of a GCC
  9498. builtin and then its argument prototype would still apply. */
  9499. #ifdef __cplusplus
  9500. extern "C"
  9501. #endif
  9502. char dld_link ();
  9503. int
  9504. main ()
  9505. {
  9506. return dld_link ();
  9507. ;
  9508. return 0;
  9509. }
  9510. _ACEOF
  9511. if ac_fn_c_try_link "$LINENO"; then :
  9512. ac_cv_lib_dld_dld_link=yes
  9513. else
  9514. ac_cv_lib_dld_dld_link=no
  9515. fi
  9516. rm -f core conftest.err conftest.$ac_objext \
  9517. conftest$ac_exeext conftest.$ac_ext
  9518. LIBS=$ac_check_lib_save_LIBS
  9519. fi
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9521. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9522. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9523. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9524. fi
  9525. fi
  9526. fi
  9527. fi
  9528. fi
  9529. fi
  9530. ;;
  9531. esac
  9532. if test "x$lt_cv_dlopen" != xno; then
  9533. enable_dlopen=yes
  9534. else
  9535. enable_dlopen=no
  9536. fi
  9537. case $lt_cv_dlopen in
  9538. dlopen)
  9539. save_CPPFLAGS="$CPPFLAGS"
  9540. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9541. save_LDFLAGS="$LDFLAGS"
  9542. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9543. save_LIBS="$LIBS"
  9544. LIBS="$lt_cv_dlopen_libs $LIBS"
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9546. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9547. if ${lt_cv_dlopen_self+:} false; then :
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. if test "$cross_compiling" = yes; then :
  9551. lt_cv_dlopen_self=cross
  9552. else
  9553. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9554. lt_status=$lt_dlunknown
  9555. cat > conftest.$ac_ext <<_LT_EOF
  9556. #line $LINENO "configure"
  9557. #include "confdefs.h"
  9558. #if HAVE_DLFCN_H
  9559. #include <dlfcn.h>
  9560. #endif
  9561. #include <stdio.h>
  9562. #ifdef RTLD_GLOBAL
  9563. # define LT_DLGLOBAL RTLD_GLOBAL
  9564. #else
  9565. # ifdef DL_GLOBAL
  9566. # define LT_DLGLOBAL DL_GLOBAL
  9567. # else
  9568. # define LT_DLGLOBAL 0
  9569. # endif
  9570. #endif
  9571. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9572. find out it does not work in some platform. */
  9573. #ifndef LT_DLLAZY_OR_NOW
  9574. # ifdef RTLD_LAZY
  9575. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9576. # else
  9577. # ifdef DL_LAZY
  9578. # define LT_DLLAZY_OR_NOW DL_LAZY
  9579. # else
  9580. # ifdef RTLD_NOW
  9581. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9582. # else
  9583. # ifdef DL_NOW
  9584. # define LT_DLLAZY_OR_NOW DL_NOW
  9585. # else
  9586. # define LT_DLLAZY_OR_NOW 0
  9587. # endif
  9588. # endif
  9589. # endif
  9590. # endif
  9591. #endif
  9592. /* When -fvisbility=hidden is used, assume the code has been annotated
  9593. correspondingly for the symbols needed. */
  9594. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9595. int fnord () __attribute__((visibility("default")));
  9596. #endif
  9597. int fnord () { return 42; }
  9598. int main ()
  9599. {
  9600. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9601. int status = $lt_dlunknown;
  9602. if (self)
  9603. {
  9604. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9605. else
  9606. {
  9607. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9608. else puts (dlerror ());
  9609. }
  9610. /* dlclose (self); */
  9611. }
  9612. else
  9613. puts (dlerror ());
  9614. return status;
  9615. }
  9616. _LT_EOF
  9617. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9618. (eval $ac_link) 2>&5
  9619. ac_status=$?
  9620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9621. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9622. (./conftest; exit; ) >&5 2>/dev/null
  9623. lt_status=$?
  9624. case x$lt_status in
  9625. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9626. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9627. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9628. esac
  9629. else :
  9630. # compilation failed
  9631. lt_cv_dlopen_self=no
  9632. fi
  9633. fi
  9634. rm -fr conftest*
  9635. fi
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9637. $as_echo "$lt_cv_dlopen_self" >&6; }
  9638. if test "x$lt_cv_dlopen_self" = xyes; then
  9639. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9641. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9642. if ${lt_cv_dlopen_self_static+:} false; then :
  9643. $as_echo_n "(cached) " >&6
  9644. else
  9645. if test "$cross_compiling" = yes; then :
  9646. lt_cv_dlopen_self_static=cross
  9647. else
  9648. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9649. lt_status=$lt_dlunknown
  9650. cat > conftest.$ac_ext <<_LT_EOF
  9651. #line $LINENO "configure"
  9652. #include "confdefs.h"
  9653. #if HAVE_DLFCN_H
  9654. #include <dlfcn.h>
  9655. #endif
  9656. #include <stdio.h>
  9657. #ifdef RTLD_GLOBAL
  9658. # define LT_DLGLOBAL RTLD_GLOBAL
  9659. #else
  9660. # ifdef DL_GLOBAL
  9661. # define LT_DLGLOBAL DL_GLOBAL
  9662. # else
  9663. # define LT_DLGLOBAL 0
  9664. # endif
  9665. #endif
  9666. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9667. find out it does not work in some platform. */
  9668. #ifndef LT_DLLAZY_OR_NOW
  9669. # ifdef RTLD_LAZY
  9670. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9671. # else
  9672. # ifdef DL_LAZY
  9673. # define LT_DLLAZY_OR_NOW DL_LAZY
  9674. # else
  9675. # ifdef RTLD_NOW
  9676. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9677. # else
  9678. # ifdef DL_NOW
  9679. # define LT_DLLAZY_OR_NOW DL_NOW
  9680. # else
  9681. # define LT_DLLAZY_OR_NOW 0
  9682. # endif
  9683. # endif
  9684. # endif
  9685. # endif
  9686. #endif
  9687. /* When -fvisbility=hidden is used, assume the code has been annotated
  9688. correspondingly for the symbols needed. */
  9689. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9690. int fnord () __attribute__((visibility("default")));
  9691. #endif
  9692. int fnord () { return 42; }
  9693. int main ()
  9694. {
  9695. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9696. int status = $lt_dlunknown;
  9697. if (self)
  9698. {
  9699. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9700. else
  9701. {
  9702. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9703. else puts (dlerror ());
  9704. }
  9705. /* dlclose (self); */
  9706. }
  9707. else
  9708. puts (dlerror ());
  9709. return status;
  9710. }
  9711. _LT_EOF
  9712. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9713. (eval $ac_link) 2>&5
  9714. ac_status=$?
  9715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9716. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9717. (./conftest; exit; ) >&5 2>/dev/null
  9718. lt_status=$?
  9719. case x$lt_status in
  9720. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9721. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9722. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9723. esac
  9724. else :
  9725. # compilation failed
  9726. lt_cv_dlopen_self_static=no
  9727. fi
  9728. fi
  9729. rm -fr conftest*
  9730. fi
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9732. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9733. fi
  9734. CPPFLAGS="$save_CPPFLAGS"
  9735. LDFLAGS="$save_LDFLAGS"
  9736. LIBS="$save_LIBS"
  9737. ;;
  9738. esac
  9739. case $lt_cv_dlopen_self in
  9740. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9741. *) enable_dlopen_self=unknown ;;
  9742. esac
  9743. case $lt_cv_dlopen_self_static in
  9744. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9745. *) enable_dlopen_self_static=unknown ;;
  9746. esac
  9747. fi
  9748. striplib=
  9749. old_striplib=
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9751. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9752. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9753. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9754. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9756. $as_echo "yes" >&6; }
  9757. else
  9758. # FIXME - insert some real tests, host_os isn't really good enough
  9759. case $host_os in
  9760. darwin*)
  9761. if test -n "$STRIP" ; then
  9762. striplib="$STRIP -x"
  9763. old_striplib="$STRIP -S"
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9765. $as_echo "yes" >&6; }
  9766. else
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9768. $as_echo "no" >&6; }
  9769. fi
  9770. ;;
  9771. *)
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9773. $as_echo "no" >&6; }
  9774. ;;
  9775. esac
  9776. fi
  9777. # Report which library types will actually be built
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9779. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9781. $as_echo "$can_build_shared" >&6; }
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9783. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9784. test "$can_build_shared" = "no" && enable_shared=no
  9785. # On AIX, shared libraries and static libraries use the same namespace, and
  9786. # are all built from PIC.
  9787. case $host_os in
  9788. aix3*)
  9789. test "$enable_shared" = yes && enable_static=no
  9790. if test -n "$RANLIB"; then
  9791. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9792. postinstall_cmds='$RANLIB $lib'
  9793. fi
  9794. ;;
  9795. aix[4-9]*)
  9796. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9797. test "$enable_shared" = yes && enable_static=no
  9798. fi
  9799. ;;
  9800. esac
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9802. $as_echo "$enable_shared" >&6; }
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9804. $as_echo_n "checking whether to build static libraries... " >&6; }
  9805. # Make sure either enable_shared or enable_static is yes.
  9806. test "$enable_shared" = yes || enable_static=yes
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9808. $as_echo "$enable_static" >&6; }
  9809. fi
  9810. ac_ext=c
  9811. ac_cpp='$CPP $CPPFLAGS'
  9812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9815. CC="$lt_save_CC"
  9816. ac_config_commands="$ac_config_commands libtool"
  9817. # Only expand once:
  9818. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9819. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9820. LT_REVISION=$SDL_INTERFACE_AGE
  9821. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9822. ac_ext=c
  9823. ac_cpp='$CPP $CPPFLAGS'
  9824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9827. if test -n "$ac_tool_prefix"; then
  9828. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9829. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9831. $as_echo_n "checking for $ac_word... " >&6; }
  9832. if ${ac_cv_prog_CC+:} false; then :
  9833. $as_echo_n "(cached) " >&6
  9834. else
  9835. if test -n "$CC"; then
  9836. ac_cv_prog_CC="$CC" # Let the user override the test.
  9837. else
  9838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9839. for as_dir in $PATH
  9840. do
  9841. IFS=$as_save_IFS
  9842. test -z "$as_dir" && as_dir=.
  9843. for ac_exec_ext in '' $ac_executable_extensions; do
  9844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9845. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9847. break 2
  9848. fi
  9849. done
  9850. done
  9851. IFS=$as_save_IFS
  9852. fi
  9853. fi
  9854. CC=$ac_cv_prog_CC
  9855. if test -n "$CC"; then
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9857. $as_echo "$CC" >&6; }
  9858. else
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9860. $as_echo "no" >&6; }
  9861. fi
  9862. fi
  9863. if test -z "$ac_cv_prog_CC"; then
  9864. ac_ct_CC=$CC
  9865. # Extract the first word of "gcc", so it can be a program name with args.
  9866. set dummy gcc; ac_word=$2
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9868. $as_echo_n "checking for $ac_word... " >&6; }
  9869. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9870. $as_echo_n "(cached) " >&6
  9871. else
  9872. if test -n "$ac_ct_CC"; then
  9873. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9874. else
  9875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9876. for as_dir in $PATH
  9877. do
  9878. IFS=$as_save_IFS
  9879. test -z "$as_dir" && as_dir=.
  9880. for ac_exec_ext in '' $ac_executable_extensions; do
  9881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9882. ac_cv_prog_ac_ct_CC="gcc"
  9883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9884. break 2
  9885. fi
  9886. done
  9887. done
  9888. IFS=$as_save_IFS
  9889. fi
  9890. fi
  9891. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9892. if test -n "$ac_ct_CC"; then
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9894. $as_echo "$ac_ct_CC" >&6; }
  9895. else
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9897. $as_echo "no" >&6; }
  9898. fi
  9899. if test "x$ac_ct_CC" = x; then
  9900. CC=""
  9901. else
  9902. case $cross_compiling:$ac_tool_warned in
  9903. yes:)
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9905. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9906. ac_tool_warned=yes ;;
  9907. esac
  9908. CC=$ac_ct_CC
  9909. fi
  9910. else
  9911. CC="$ac_cv_prog_CC"
  9912. fi
  9913. if test -z "$CC"; then
  9914. if test -n "$ac_tool_prefix"; then
  9915. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9916. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9918. $as_echo_n "checking for $ac_word... " >&6; }
  9919. if ${ac_cv_prog_CC+:} false; then :
  9920. $as_echo_n "(cached) " >&6
  9921. else
  9922. if test -n "$CC"; then
  9923. ac_cv_prog_CC="$CC" # Let the user override the test.
  9924. else
  9925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9926. for as_dir in $PATH
  9927. do
  9928. IFS=$as_save_IFS
  9929. test -z "$as_dir" && as_dir=.
  9930. for ac_exec_ext in '' $ac_executable_extensions; do
  9931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9932. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9934. break 2
  9935. fi
  9936. done
  9937. done
  9938. IFS=$as_save_IFS
  9939. fi
  9940. fi
  9941. CC=$ac_cv_prog_CC
  9942. if test -n "$CC"; then
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9944. $as_echo "$CC" >&6; }
  9945. else
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9947. $as_echo "no" >&6; }
  9948. fi
  9949. fi
  9950. fi
  9951. if test -z "$CC"; then
  9952. # Extract the first word of "cc", so it can be a program name with args.
  9953. set dummy cc; ac_word=$2
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9955. $as_echo_n "checking for $ac_word... " >&6; }
  9956. if ${ac_cv_prog_CC+:} false; then :
  9957. $as_echo_n "(cached) " >&6
  9958. else
  9959. if test -n "$CC"; then
  9960. ac_cv_prog_CC="$CC" # Let the user override the test.
  9961. else
  9962. ac_prog_rejected=no
  9963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9964. for as_dir in $PATH
  9965. do
  9966. IFS=$as_save_IFS
  9967. test -z "$as_dir" && as_dir=.
  9968. for ac_exec_ext in '' $ac_executable_extensions; do
  9969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9970. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9971. ac_prog_rejected=yes
  9972. continue
  9973. fi
  9974. ac_cv_prog_CC="cc"
  9975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9976. break 2
  9977. fi
  9978. done
  9979. done
  9980. IFS=$as_save_IFS
  9981. if test $ac_prog_rejected = yes; then
  9982. # We found a bogon in the path, so make sure we never use it.
  9983. set dummy $ac_cv_prog_CC
  9984. shift
  9985. if test $# != 0; then
  9986. # We chose a different compiler from the bogus one.
  9987. # However, it has the same basename, so the bogon will be chosen
  9988. # first if we set CC to just the basename; use the full file name.
  9989. shift
  9990. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9991. fi
  9992. fi
  9993. fi
  9994. fi
  9995. CC=$ac_cv_prog_CC
  9996. if test -n "$CC"; then
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9998. $as_echo "$CC" >&6; }
  9999. else
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10001. $as_echo "no" >&6; }
  10002. fi
  10003. fi
  10004. if test -z "$CC"; then
  10005. if test -n "$ac_tool_prefix"; then
  10006. for ac_prog in cl.exe
  10007. do
  10008. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10009. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10011. $as_echo_n "checking for $ac_word... " >&6; }
  10012. if ${ac_cv_prog_CC+:} false; then :
  10013. $as_echo_n "(cached) " >&6
  10014. else
  10015. if test -n "$CC"; then
  10016. ac_cv_prog_CC="$CC" # Let the user override the test.
  10017. else
  10018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10019. for as_dir in $PATH
  10020. do
  10021. IFS=$as_save_IFS
  10022. test -z "$as_dir" && as_dir=.
  10023. for ac_exec_ext in '' $ac_executable_extensions; do
  10024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10025. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10027. break 2
  10028. fi
  10029. done
  10030. done
  10031. IFS=$as_save_IFS
  10032. fi
  10033. fi
  10034. CC=$ac_cv_prog_CC
  10035. if test -n "$CC"; then
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10037. $as_echo "$CC" >&6; }
  10038. else
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10040. $as_echo "no" >&6; }
  10041. fi
  10042. test -n "$CC" && break
  10043. done
  10044. fi
  10045. if test -z "$CC"; then
  10046. ac_ct_CC=$CC
  10047. for ac_prog in cl.exe
  10048. do
  10049. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10050. set dummy $ac_prog; ac_word=$2
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10052. $as_echo_n "checking for $ac_word... " >&6; }
  10053. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10054. $as_echo_n "(cached) " >&6
  10055. else
  10056. if test -n "$ac_ct_CC"; then
  10057. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10058. else
  10059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10060. for as_dir in $PATH
  10061. do
  10062. IFS=$as_save_IFS
  10063. test -z "$as_dir" && as_dir=.
  10064. for ac_exec_ext in '' $ac_executable_extensions; do
  10065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10066. ac_cv_prog_ac_ct_CC="$ac_prog"
  10067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10068. break 2
  10069. fi
  10070. done
  10071. done
  10072. IFS=$as_save_IFS
  10073. fi
  10074. fi
  10075. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10076. if test -n "$ac_ct_CC"; then
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10078. $as_echo "$ac_ct_CC" >&6; }
  10079. else
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10081. $as_echo "no" >&6; }
  10082. fi
  10083. test -n "$ac_ct_CC" && break
  10084. done
  10085. if test "x$ac_ct_CC" = x; then
  10086. CC=""
  10087. else
  10088. case $cross_compiling:$ac_tool_warned in
  10089. yes:)
  10090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10091. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10092. ac_tool_warned=yes ;;
  10093. esac
  10094. CC=$ac_ct_CC
  10095. fi
  10096. fi
  10097. fi
  10098. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10100. as_fn_error $? "no acceptable C compiler found in \$PATH
  10101. See \`config.log' for more details" "$LINENO" 5; }
  10102. # Provide some information about the compiler.
  10103. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10104. set X $ac_compile
  10105. ac_compiler=$2
  10106. for ac_option in --version -v -V -qversion; do
  10107. { { ac_try="$ac_compiler $ac_option >&5"
  10108. case "(($ac_try" in
  10109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10110. *) ac_try_echo=$ac_try;;
  10111. esac
  10112. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10113. $as_echo "$ac_try_echo"; } >&5
  10114. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10115. ac_status=$?
  10116. if test -s conftest.err; then
  10117. sed '10a\
  10118. ... rest of stderr output deleted ...
  10119. 10q' conftest.err >conftest.er1
  10120. cat conftest.er1 >&5
  10121. fi
  10122. rm -f conftest.er1 conftest.err
  10123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10124. test $ac_status = 0; }
  10125. done
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10127. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10128. if ${ac_cv_c_compiler_gnu+:} false; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10132. /* end confdefs.h. */
  10133. int
  10134. main ()
  10135. {
  10136. #ifndef __GNUC__
  10137. choke me
  10138. #endif
  10139. ;
  10140. return 0;
  10141. }
  10142. _ACEOF
  10143. if ac_fn_c_try_compile "$LINENO"; then :
  10144. ac_compiler_gnu=yes
  10145. else
  10146. ac_compiler_gnu=no
  10147. fi
  10148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10149. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10150. fi
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10152. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10153. if test $ac_compiler_gnu = yes; then
  10154. GCC=yes
  10155. else
  10156. GCC=
  10157. fi
  10158. ac_test_CFLAGS=${CFLAGS+set}
  10159. ac_save_CFLAGS=$CFLAGS
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10161. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10162. if ${ac_cv_prog_cc_g+:} false; then :
  10163. $as_echo_n "(cached) " >&6
  10164. else
  10165. ac_save_c_werror_flag=$ac_c_werror_flag
  10166. ac_c_werror_flag=yes
  10167. ac_cv_prog_cc_g=no
  10168. CFLAGS="-g"
  10169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10170. /* end confdefs.h. */
  10171. int
  10172. main ()
  10173. {
  10174. ;
  10175. return 0;
  10176. }
  10177. _ACEOF
  10178. if ac_fn_c_try_compile "$LINENO"; then :
  10179. ac_cv_prog_cc_g=yes
  10180. else
  10181. CFLAGS=""
  10182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10183. /* end confdefs.h. */
  10184. int
  10185. main ()
  10186. {
  10187. ;
  10188. return 0;
  10189. }
  10190. _ACEOF
  10191. if ac_fn_c_try_compile "$LINENO"; then :
  10192. else
  10193. ac_c_werror_flag=$ac_save_c_werror_flag
  10194. CFLAGS="-g"
  10195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10196. /* end confdefs.h. */
  10197. int
  10198. main ()
  10199. {
  10200. ;
  10201. return 0;
  10202. }
  10203. _ACEOF
  10204. if ac_fn_c_try_compile "$LINENO"; then :
  10205. ac_cv_prog_cc_g=yes
  10206. fi
  10207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10208. fi
  10209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10210. fi
  10211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10212. ac_c_werror_flag=$ac_save_c_werror_flag
  10213. fi
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10215. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10216. if test "$ac_test_CFLAGS" = set; then
  10217. CFLAGS=$ac_save_CFLAGS
  10218. elif test $ac_cv_prog_cc_g = yes; then
  10219. if test "$GCC" = yes; then
  10220. CFLAGS="-g -O2"
  10221. else
  10222. CFLAGS="-g"
  10223. fi
  10224. else
  10225. if test "$GCC" = yes; then
  10226. CFLAGS="-O2"
  10227. else
  10228. CFLAGS=
  10229. fi
  10230. fi
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10232. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10233. if ${ac_cv_prog_cc_c89+:} false; then :
  10234. $as_echo_n "(cached) " >&6
  10235. else
  10236. ac_cv_prog_cc_c89=no
  10237. ac_save_CC=$CC
  10238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10239. /* end confdefs.h. */
  10240. #include <stdarg.h>
  10241. #include <stdio.h>
  10242. struct stat;
  10243. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10244. struct buf { int x; };
  10245. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10246. static char *e (p, i)
  10247. char **p;
  10248. int i;
  10249. {
  10250. return p[i];
  10251. }
  10252. static char *f (char * (*g) (char **, int), char **p, ...)
  10253. {
  10254. char *s;
  10255. va_list v;
  10256. va_start (v,p);
  10257. s = g (p, va_arg (v,int));
  10258. va_end (v);
  10259. return s;
  10260. }
  10261. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10262. function prototypes and stuff, but not '\xHH' hex character constants.
  10263. These don't provoke an error unfortunately, instead are silently treated
  10264. as 'x'. The following induces an error, until -std is added to get
  10265. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10266. array size at least. It's necessary to write '\x00'==0 to get something
  10267. that's true only with -std. */
  10268. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10269. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10270. inside strings and character constants. */
  10271. #define FOO(x) 'x'
  10272. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10273. int test (int i, double x);
  10274. struct s1 {int (*f) (int a);};
  10275. struct s2 {int (*f) (double a);};
  10276. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10277. int argc;
  10278. char **argv;
  10279. int
  10280. main ()
  10281. {
  10282. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10283. ;
  10284. return 0;
  10285. }
  10286. _ACEOF
  10287. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10288. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10289. do
  10290. CC="$ac_save_CC $ac_arg"
  10291. if ac_fn_c_try_compile "$LINENO"; then :
  10292. ac_cv_prog_cc_c89=$ac_arg
  10293. fi
  10294. rm -f core conftest.err conftest.$ac_objext
  10295. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10296. done
  10297. rm -f conftest.$ac_ext
  10298. CC=$ac_save_CC
  10299. fi
  10300. # AC_CACHE_VAL
  10301. case "x$ac_cv_prog_cc_c89" in
  10302. x)
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10304. $as_echo "none needed" >&6; } ;;
  10305. xno)
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10307. $as_echo "unsupported" >&6; } ;;
  10308. *)
  10309. CC="$CC $ac_cv_prog_cc_c89"
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10311. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10312. esac
  10313. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10314. fi
  10315. ac_ext=c
  10316. ac_cpp='$CPP $CPPFLAGS'
  10317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10320. ac_ext=cpp
  10321. ac_cpp='$CXXCPP $CPPFLAGS'
  10322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10325. if test -z "$CXX"; then
  10326. if test -n "$CCC"; then
  10327. CXX=$CCC
  10328. else
  10329. if test -n "$ac_tool_prefix"; then
  10330. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10331. do
  10332. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10333. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10335. $as_echo_n "checking for $ac_word... " >&6; }
  10336. if ${ac_cv_prog_CXX+:} false; then :
  10337. $as_echo_n "(cached) " >&6
  10338. else
  10339. if test -n "$CXX"; then
  10340. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10341. else
  10342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10343. for as_dir in $PATH
  10344. do
  10345. IFS=$as_save_IFS
  10346. test -z "$as_dir" && as_dir=.
  10347. for ac_exec_ext in '' $ac_executable_extensions; do
  10348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10349. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10351. break 2
  10352. fi
  10353. done
  10354. done
  10355. IFS=$as_save_IFS
  10356. fi
  10357. fi
  10358. CXX=$ac_cv_prog_CXX
  10359. if test -n "$CXX"; then
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10361. $as_echo "$CXX" >&6; }
  10362. else
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10364. $as_echo "no" >&6; }
  10365. fi
  10366. test -n "$CXX" && break
  10367. done
  10368. fi
  10369. if test -z "$CXX"; then
  10370. ac_ct_CXX=$CXX
  10371. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10372. do
  10373. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10374. set dummy $ac_prog; ac_word=$2
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10376. $as_echo_n "checking for $ac_word... " >&6; }
  10377. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10378. $as_echo_n "(cached) " >&6
  10379. else
  10380. if test -n "$ac_ct_CXX"; then
  10381. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10382. else
  10383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10384. for as_dir in $PATH
  10385. do
  10386. IFS=$as_save_IFS
  10387. test -z "$as_dir" && as_dir=.
  10388. for ac_exec_ext in '' $ac_executable_extensions; do
  10389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10390. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10392. break 2
  10393. fi
  10394. done
  10395. done
  10396. IFS=$as_save_IFS
  10397. fi
  10398. fi
  10399. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10400. if test -n "$ac_ct_CXX"; then
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10402. $as_echo "$ac_ct_CXX" >&6; }
  10403. else
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10405. $as_echo "no" >&6; }
  10406. fi
  10407. test -n "$ac_ct_CXX" && break
  10408. done
  10409. if test "x$ac_ct_CXX" = x; then
  10410. CXX="g++"
  10411. else
  10412. case $cross_compiling:$ac_tool_warned in
  10413. yes:)
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10416. ac_tool_warned=yes ;;
  10417. esac
  10418. CXX=$ac_ct_CXX
  10419. fi
  10420. fi
  10421. fi
  10422. fi
  10423. # Provide some information about the compiler.
  10424. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10425. set X $ac_compile
  10426. ac_compiler=$2
  10427. for ac_option in --version -v -V -qversion; do
  10428. { { ac_try="$ac_compiler $ac_option >&5"
  10429. case "(($ac_try" in
  10430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10431. *) ac_try_echo=$ac_try;;
  10432. esac
  10433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10434. $as_echo "$ac_try_echo"; } >&5
  10435. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10436. ac_status=$?
  10437. if test -s conftest.err; then
  10438. sed '10a\
  10439. ... rest of stderr output deleted ...
  10440. 10q' conftest.err >conftest.er1
  10441. cat conftest.er1 >&5
  10442. fi
  10443. rm -f conftest.er1 conftest.err
  10444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10445. test $ac_status = 0; }
  10446. done
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10448. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10449. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10450. $as_echo_n "(cached) " >&6
  10451. else
  10452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10453. /* end confdefs.h. */
  10454. int
  10455. main ()
  10456. {
  10457. #ifndef __GNUC__
  10458. choke me
  10459. #endif
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_cxx_try_compile "$LINENO"; then :
  10465. ac_compiler_gnu=yes
  10466. else
  10467. ac_compiler_gnu=no
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10473. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10474. if test $ac_compiler_gnu = yes; then
  10475. GXX=yes
  10476. else
  10477. GXX=
  10478. fi
  10479. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10480. ac_save_CXXFLAGS=$CXXFLAGS
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10482. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10483. if ${ac_cv_prog_cxx_g+:} false; then :
  10484. $as_echo_n "(cached) " >&6
  10485. else
  10486. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10487. ac_cxx_werror_flag=yes
  10488. ac_cv_prog_cxx_g=no
  10489. CXXFLAGS="-g"
  10490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10491. /* end confdefs.h. */
  10492. int
  10493. main ()
  10494. {
  10495. ;
  10496. return 0;
  10497. }
  10498. _ACEOF
  10499. if ac_fn_cxx_try_compile "$LINENO"; then :
  10500. ac_cv_prog_cxx_g=yes
  10501. else
  10502. CXXFLAGS=""
  10503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10504. /* end confdefs.h. */
  10505. int
  10506. main ()
  10507. {
  10508. ;
  10509. return 0;
  10510. }
  10511. _ACEOF
  10512. if ac_fn_cxx_try_compile "$LINENO"; then :
  10513. else
  10514. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10515. CXXFLAGS="-g"
  10516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10517. /* end confdefs.h. */
  10518. int
  10519. main ()
  10520. {
  10521. ;
  10522. return 0;
  10523. }
  10524. _ACEOF
  10525. if ac_fn_cxx_try_compile "$LINENO"; then :
  10526. ac_cv_prog_cxx_g=yes
  10527. fi
  10528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10529. fi
  10530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10531. fi
  10532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10533. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10534. fi
  10535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10536. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10537. if test "$ac_test_CXXFLAGS" = set; then
  10538. CXXFLAGS=$ac_save_CXXFLAGS
  10539. elif test $ac_cv_prog_cxx_g = yes; then
  10540. if test "$GXX" = yes; then
  10541. CXXFLAGS="-g -O2"
  10542. else
  10543. CXXFLAGS="-g"
  10544. fi
  10545. else
  10546. if test "$GXX" = yes; then
  10547. CXXFLAGS="-O2"
  10548. else
  10549. CXXFLAGS=
  10550. fi
  10551. fi
  10552. ac_ext=c
  10553. ac_cpp='$CPP $CPPFLAGS'
  10554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10557. func_stripname_cnf ()
  10558. {
  10559. case ${2} in
  10560. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10561. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10562. esac
  10563. } # func_stripname_cnf
  10564. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10565. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10566. (test "X$CXX" != "Xg++"))) ; then
  10567. ac_ext=cpp
  10568. ac_cpp='$CXXCPP $CPPFLAGS'
  10569. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10570. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10571. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10573. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10574. if test -z "$CXXCPP"; then
  10575. if ${ac_cv_prog_CXXCPP+:} false; then :
  10576. $as_echo_n "(cached) " >&6
  10577. else
  10578. # Double quotes because CXXCPP needs to be expanded
  10579. for CXXCPP in "$CXX -E" "/lib/cpp"
  10580. do
  10581. ac_preproc_ok=false
  10582. for ac_cxx_preproc_warn_flag in '' yes
  10583. do
  10584. # Use a header file that comes with gcc, so configuring glibc
  10585. # with a fresh cross-compiler works.
  10586. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10587. # <limits.h> exists even on freestanding compilers.
  10588. # On the NeXT, cc -E runs the code through the compiler's parser,
  10589. # not just through cpp. "Syntax error" is here to catch this case.
  10590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10591. /* end confdefs.h. */
  10592. #ifdef __STDC__
  10593. # include <limits.h>
  10594. #else
  10595. # include <assert.h>
  10596. #endif
  10597. Syntax error
  10598. _ACEOF
  10599. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10600. else
  10601. # Broken: fails on valid input.
  10602. continue
  10603. fi
  10604. rm -f conftest.err conftest.i conftest.$ac_ext
  10605. # OK, works on sane cases. Now check whether nonexistent headers
  10606. # can be detected and how.
  10607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10608. /* end confdefs.h. */
  10609. #include <ac_nonexistent.h>
  10610. _ACEOF
  10611. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10612. # Broken: success on invalid input.
  10613. continue
  10614. else
  10615. # Passes both tests.
  10616. ac_preproc_ok=:
  10617. break
  10618. fi
  10619. rm -f conftest.err conftest.i conftest.$ac_ext
  10620. done
  10621. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10622. rm -f conftest.i conftest.err conftest.$ac_ext
  10623. if $ac_preproc_ok; then :
  10624. break
  10625. fi
  10626. done
  10627. ac_cv_prog_CXXCPP=$CXXCPP
  10628. fi
  10629. CXXCPP=$ac_cv_prog_CXXCPP
  10630. else
  10631. ac_cv_prog_CXXCPP=$CXXCPP
  10632. fi
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10634. $as_echo "$CXXCPP" >&6; }
  10635. ac_preproc_ok=false
  10636. for ac_cxx_preproc_warn_flag in '' yes
  10637. do
  10638. # Use a header file that comes with gcc, so configuring glibc
  10639. # with a fresh cross-compiler works.
  10640. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10641. # <limits.h> exists even on freestanding compilers.
  10642. # On the NeXT, cc -E runs the code through the compiler's parser,
  10643. # not just through cpp. "Syntax error" is here to catch this case.
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. #ifdef __STDC__
  10647. # include <limits.h>
  10648. #else
  10649. # include <assert.h>
  10650. #endif
  10651. Syntax error
  10652. _ACEOF
  10653. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10654. else
  10655. # Broken: fails on valid input.
  10656. continue
  10657. fi
  10658. rm -f conftest.err conftest.i conftest.$ac_ext
  10659. # OK, works on sane cases. Now check whether nonexistent headers
  10660. # can be detected and how.
  10661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10662. /* end confdefs.h. */
  10663. #include <ac_nonexistent.h>
  10664. _ACEOF
  10665. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10666. # Broken: success on invalid input.
  10667. continue
  10668. else
  10669. # Passes both tests.
  10670. ac_preproc_ok=:
  10671. break
  10672. fi
  10673. rm -f conftest.err conftest.i conftest.$ac_ext
  10674. done
  10675. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10676. rm -f conftest.i conftest.err conftest.$ac_ext
  10677. if $ac_preproc_ok; then :
  10678. else
  10679. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10680. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10681. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10682. See \`config.log' for more details" "$LINENO" 5; }
  10683. fi
  10684. ac_ext=c
  10685. ac_cpp='$CPP $CPPFLAGS'
  10686. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10687. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10688. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10689. else
  10690. _lt_caught_CXX_error=yes
  10691. fi
  10692. ac_ext=cpp
  10693. ac_cpp='$CXXCPP $CPPFLAGS'
  10694. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10695. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10696. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10697. archive_cmds_need_lc_CXX=no
  10698. allow_undefined_flag_CXX=
  10699. always_export_symbols_CXX=no
  10700. archive_expsym_cmds_CXX=
  10701. compiler_needs_object_CXX=no
  10702. export_dynamic_flag_spec_CXX=
  10703. hardcode_direct_CXX=no
  10704. hardcode_direct_absolute_CXX=no
  10705. hardcode_libdir_flag_spec_CXX=
  10706. hardcode_libdir_separator_CXX=
  10707. hardcode_minus_L_CXX=no
  10708. hardcode_shlibpath_var_CXX=unsupported
  10709. hardcode_automatic_CXX=no
  10710. inherit_rpath_CXX=no
  10711. module_cmds_CXX=
  10712. module_expsym_cmds_CXX=
  10713. link_all_deplibs_CXX=unknown
  10714. old_archive_cmds_CXX=$old_archive_cmds
  10715. reload_flag_CXX=$reload_flag
  10716. reload_cmds_CXX=$reload_cmds
  10717. no_undefined_flag_CXX=
  10718. whole_archive_flag_spec_CXX=
  10719. enable_shared_with_static_runtimes_CXX=no
  10720. # Source file extension for C++ test sources.
  10721. ac_ext=cpp
  10722. # Object file extension for compiled C++ test sources.
  10723. objext=o
  10724. objext_CXX=$objext
  10725. # No sense in running all these tests if we already determined that
  10726. # the CXX compiler isn't working. Some variables (like enable_shared)
  10727. # are currently assumed to apply to all compilers on this platform,
  10728. # and will be corrupted by setting them based on a non-working compiler.
  10729. if test "$_lt_caught_CXX_error" != yes; then
  10730. # Code to be used in simple compile tests
  10731. lt_simple_compile_test_code="int some_variable = 0;"
  10732. # Code to be used in simple link tests
  10733. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10734. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10735. # If no C compiler was specified, use CC.
  10736. LTCC=${LTCC-"$CC"}
  10737. # If no C compiler flags were specified, use CFLAGS.
  10738. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10739. # Allow CC to be a program name with arguments.
  10740. compiler=$CC
  10741. # save warnings/boilerplate of simple test code
  10742. ac_outfile=conftest.$ac_objext
  10743. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10744. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10745. _lt_compiler_boilerplate=`cat conftest.err`
  10746. $RM conftest*
  10747. ac_outfile=conftest.$ac_objext
  10748. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10749. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10750. _lt_linker_boilerplate=`cat conftest.err`
  10751. $RM -r conftest*
  10752. # Allow CC to be a program name with arguments.
  10753. lt_save_CC=$CC
  10754. lt_save_CFLAGS=$CFLAGS
  10755. lt_save_LD=$LD
  10756. lt_save_GCC=$GCC
  10757. GCC=$GXX
  10758. lt_save_with_gnu_ld=$with_gnu_ld
  10759. lt_save_path_LD=$lt_cv_path_LD
  10760. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10761. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10762. else
  10763. $as_unset lt_cv_prog_gnu_ld
  10764. fi
  10765. if test -n "${lt_cv_path_LDCXX+set}"; then
  10766. lt_cv_path_LD=$lt_cv_path_LDCXX
  10767. else
  10768. $as_unset lt_cv_path_LD
  10769. fi
  10770. test -z "${LDCXX+set}" || LD=$LDCXX
  10771. CC=${CXX-"c++"}
  10772. CFLAGS=$CXXFLAGS
  10773. compiler=$CC
  10774. compiler_CXX=$CC
  10775. for cc_temp in $compiler""; do
  10776. case $cc_temp in
  10777. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10778. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10779. \-*) ;;
  10780. *) break;;
  10781. esac
  10782. done
  10783. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10784. if test -n "$compiler"; then
  10785. # We don't want -fno-exception when compiling C++ code, so set the
  10786. # no_builtin_flag separately
  10787. if test "$GXX" = yes; then
  10788. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10789. else
  10790. lt_prog_compiler_no_builtin_flag_CXX=
  10791. fi
  10792. if test "$GXX" = yes; then
  10793. # Set up default GNU C++ configuration
  10794. # Check whether --with-gnu-ld was given.
  10795. if test "${with_gnu_ld+set}" = set; then :
  10796. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10797. else
  10798. with_gnu_ld=no
  10799. fi
  10800. ac_prog=ld
  10801. if test "$GCC" = yes; then
  10802. # Check if gcc -print-prog-name=ld gives a path.
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10804. $as_echo_n "checking for ld used by $CC... " >&6; }
  10805. case $host in
  10806. *-*-mingw*)
  10807. # gcc leaves a trailing carriage return which upsets mingw
  10808. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10809. *)
  10810. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10811. esac
  10812. case $ac_prog in
  10813. # Accept absolute paths.
  10814. [\\/]* | ?:[\\/]*)
  10815. re_direlt='/[^/][^/]*/\.\./'
  10816. # Canonicalize the pathname of ld
  10817. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10818. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10819. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10820. done
  10821. test -z "$LD" && LD="$ac_prog"
  10822. ;;
  10823. "")
  10824. # If it fails, then pretend we aren't using GCC.
  10825. ac_prog=ld
  10826. ;;
  10827. *)
  10828. # If it is relative, then search for the first ld in PATH.
  10829. with_gnu_ld=unknown
  10830. ;;
  10831. esac
  10832. elif test "$with_gnu_ld" = yes; then
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10834. $as_echo_n "checking for GNU ld... " >&6; }
  10835. else
  10836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10837. $as_echo_n "checking for non-GNU ld... " >&6; }
  10838. fi
  10839. if ${lt_cv_path_LD+:} false; then :
  10840. $as_echo_n "(cached) " >&6
  10841. else
  10842. if test -z "$LD"; then
  10843. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10844. for ac_dir in $PATH; do
  10845. IFS="$lt_save_ifs"
  10846. test -z "$ac_dir" && ac_dir=.
  10847. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10848. lt_cv_path_LD="$ac_dir/$ac_prog"
  10849. # Check to see if the program is GNU ld. I'd rather use --version,
  10850. # but apparently some variants of GNU ld only accept -v.
  10851. # Break only if it was the GNU/non-GNU ld that we prefer.
  10852. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10853. *GNU* | *'with BFD'*)
  10854. test "$with_gnu_ld" != no && break
  10855. ;;
  10856. *)
  10857. test "$with_gnu_ld" != yes && break
  10858. ;;
  10859. esac
  10860. fi
  10861. done
  10862. IFS="$lt_save_ifs"
  10863. else
  10864. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10865. fi
  10866. fi
  10867. LD="$lt_cv_path_LD"
  10868. if test -n "$LD"; then
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10870. $as_echo "$LD" >&6; }
  10871. else
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10873. $as_echo "no" >&6; }
  10874. fi
  10875. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10877. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10878. if ${lt_cv_prog_gnu_ld+:} false; then :
  10879. $as_echo_n "(cached) " >&6
  10880. else
  10881. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10882. case `$LD -v 2>&1 </dev/null` in
  10883. *GNU* | *'with BFD'*)
  10884. lt_cv_prog_gnu_ld=yes
  10885. ;;
  10886. *)
  10887. lt_cv_prog_gnu_ld=no
  10888. ;;
  10889. esac
  10890. fi
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10892. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10893. with_gnu_ld=$lt_cv_prog_gnu_ld
  10894. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10895. # archiving commands below assume that GNU ld is being used.
  10896. if test "$with_gnu_ld" = yes; then
  10897. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10898. 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'
  10899. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10900. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10901. # If archive_cmds runs LD, not CC, wlarc should be empty
  10902. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10903. # investigate it a little bit more. (MM)
  10904. wlarc='${wl}'
  10905. # ancient GNU ld didn't support --whole-archive et. al.
  10906. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10907. $GREP 'no-whole-archive' > /dev/null; then
  10908. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10909. else
  10910. whole_archive_flag_spec_CXX=
  10911. fi
  10912. else
  10913. with_gnu_ld=no
  10914. wlarc=
  10915. # A generic and very simple default shared library creation
  10916. # command for GNU C++ for the case where it uses the native
  10917. # linker, instead of GNU ld. If possible, this setting should
  10918. # overridden to take advantage of the native linker features on
  10919. # the platform it is being used on.
  10920. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10921. fi
  10922. # Commands to make compiler produce verbose output that lists
  10923. # what "hidden" libraries, object files and flags are used when
  10924. # linking a shared library.
  10925. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10926. else
  10927. GXX=no
  10928. with_gnu_ld=no
  10929. wlarc=
  10930. fi
  10931. # PORTME: fill in a description of your system's C++ link characteristics
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10933. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10934. ld_shlibs_CXX=yes
  10935. case $host_os in
  10936. aix3*)
  10937. # FIXME: insert proper C++ library support
  10938. ld_shlibs_CXX=no
  10939. ;;
  10940. aix[4-9]*)
  10941. if test "$host_cpu" = ia64; then
  10942. # On IA64, the linker does run time linking by default, so we don't
  10943. # have to do anything special.
  10944. aix_use_runtimelinking=no
  10945. exp_sym_flag='-Bexport'
  10946. no_entry_flag=""
  10947. else
  10948. aix_use_runtimelinking=no
  10949. # Test if we are trying to use run time linking or normal
  10950. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10951. # need to do runtime linking.
  10952. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10953. for ld_flag in $LDFLAGS; do
  10954. case $ld_flag in
  10955. *-brtl*)
  10956. aix_use_runtimelinking=yes
  10957. break
  10958. ;;
  10959. esac
  10960. done
  10961. ;;
  10962. esac
  10963. exp_sym_flag='-bexport'
  10964. no_entry_flag='-bnoentry'
  10965. fi
  10966. # When large executables or shared objects are built, AIX ld can
  10967. # have problems creating the table of contents. If linking a library
  10968. # or program results in "error TOC overflow" add -mminimal-toc to
  10969. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10970. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10971. archive_cmds_CXX=''
  10972. hardcode_direct_CXX=yes
  10973. hardcode_direct_absolute_CXX=yes
  10974. hardcode_libdir_separator_CXX=':'
  10975. link_all_deplibs_CXX=yes
  10976. file_list_spec_CXX='${wl}-f,'
  10977. if test "$GXX" = yes; then
  10978. case $host_os in aix4.[012]|aix4.[012].*)
  10979. # We only want to do this on AIX 4.2 and lower, the check
  10980. # below for broken collect2 doesn't work under 4.3+
  10981. collect2name=`${CC} -print-prog-name=collect2`
  10982. if test -f "$collect2name" &&
  10983. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10984. then
  10985. # We have reworked collect2
  10986. :
  10987. else
  10988. # We have old collect2
  10989. hardcode_direct_CXX=unsupported
  10990. # It fails to find uninstalled libraries when the uninstalled
  10991. # path is not listed in the libpath. Setting hardcode_minus_L
  10992. # to unsupported forces relinking
  10993. hardcode_minus_L_CXX=yes
  10994. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10995. hardcode_libdir_separator_CXX=
  10996. fi
  10997. esac
  10998. shared_flag='-shared'
  10999. if test "$aix_use_runtimelinking" = yes; then
  11000. shared_flag="$shared_flag "'${wl}-G'
  11001. fi
  11002. else
  11003. # not using gcc
  11004. if test "$host_cpu" = ia64; then
  11005. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11006. # chokes on -Wl,-G. The following line is correct:
  11007. shared_flag='-G'
  11008. else
  11009. if test "$aix_use_runtimelinking" = yes; then
  11010. shared_flag='${wl}-G'
  11011. else
  11012. shared_flag='${wl}-bM:SRE'
  11013. fi
  11014. fi
  11015. fi
  11016. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11017. # It seems that -bexpall does not export symbols beginning with
  11018. # underscore (_), so it is better to generate a list of symbols to
  11019. # export.
  11020. always_export_symbols_CXX=yes
  11021. if test "$aix_use_runtimelinking" = yes; then
  11022. # Warning - without using the other runtime loading flags (-brtl),
  11023. # -berok will link without error, but may produce a broken library.
  11024. allow_undefined_flag_CXX='-berok'
  11025. # Determine the default libpath from the value encoded in an empty
  11026. # executable.
  11027. if test "${lt_cv_aix_libpath+set}" = set; then
  11028. aix_libpath=$lt_cv_aix_libpath
  11029. else
  11030. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11031. $as_echo_n "(cached) " >&6
  11032. else
  11033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11034. /* end confdefs.h. */
  11035. int
  11036. main ()
  11037. {
  11038. ;
  11039. return 0;
  11040. }
  11041. _ACEOF
  11042. if ac_fn_cxx_try_link "$LINENO"; then :
  11043. lt_aix_libpath_sed='
  11044. /Import File Strings/,/^$/ {
  11045. /^0/ {
  11046. s/^0 *\([^ ]*\) *$/\1/
  11047. p
  11048. }
  11049. }'
  11050. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11051. # Check for a 64-bit object if we didn't find anything.
  11052. if test -z "$lt_cv_aix_libpath__CXX"; then
  11053. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11054. fi
  11055. fi
  11056. rm -f core conftest.err conftest.$ac_objext \
  11057. conftest$ac_exeext conftest.$ac_ext
  11058. if test -z "$lt_cv_aix_libpath__CXX"; then
  11059. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11060. fi
  11061. fi
  11062. aix_libpath=$lt_cv_aix_libpath__CXX
  11063. fi
  11064. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11065. 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"
  11066. else
  11067. if test "$host_cpu" = ia64; then
  11068. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11069. allow_undefined_flag_CXX="-z nodefs"
  11070. 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"
  11071. else
  11072. # Determine the default libpath from the value encoded in an
  11073. # empty executable.
  11074. if test "${lt_cv_aix_libpath+set}" = set; then
  11075. aix_libpath=$lt_cv_aix_libpath
  11076. else
  11077. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11078. $as_echo_n "(cached) " >&6
  11079. else
  11080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11081. /* end confdefs.h. */
  11082. int
  11083. main ()
  11084. {
  11085. ;
  11086. return 0;
  11087. }
  11088. _ACEOF
  11089. if ac_fn_cxx_try_link "$LINENO"; then :
  11090. lt_aix_libpath_sed='
  11091. /Import File Strings/,/^$/ {
  11092. /^0/ {
  11093. s/^0 *\([^ ]*\) *$/\1/
  11094. p
  11095. }
  11096. }'
  11097. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11098. # Check for a 64-bit object if we didn't find anything.
  11099. if test -z "$lt_cv_aix_libpath__CXX"; then
  11100. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11101. fi
  11102. fi
  11103. rm -f core conftest.err conftest.$ac_objext \
  11104. conftest$ac_exeext conftest.$ac_ext
  11105. if test -z "$lt_cv_aix_libpath__CXX"; then
  11106. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11107. fi
  11108. fi
  11109. aix_libpath=$lt_cv_aix_libpath__CXX
  11110. fi
  11111. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11112. # Warning - without using the other run time loading flags,
  11113. # -berok will link without error, but may produce a broken library.
  11114. no_undefined_flag_CXX=' ${wl}-bernotok'
  11115. allow_undefined_flag_CXX=' ${wl}-berok'
  11116. if test "$with_gnu_ld" = yes; then
  11117. # We only use this code for GNU lds that support --whole-archive.
  11118. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11119. else
  11120. # Exported symbols can be pulled into shared objects from archives
  11121. whole_archive_flag_spec_CXX='$convenience'
  11122. fi
  11123. archive_cmds_need_lc_CXX=yes
  11124. # This is similar to how AIX traditionally builds its shared
  11125. # libraries.
  11126. 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'
  11127. fi
  11128. fi
  11129. ;;
  11130. beos*)
  11131. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11132. allow_undefined_flag_CXX=unsupported
  11133. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11134. # support --undefined. This deserves some investigation. FIXME
  11135. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11136. else
  11137. ld_shlibs_CXX=no
  11138. fi
  11139. ;;
  11140. chorus*)
  11141. case $cc_basename in
  11142. *)
  11143. # FIXME: insert proper C++ library support
  11144. ld_shlibs_CXX=no
  11145. ;;
  11146. esac
  11147. ;;
  11148. cygwin* | mingw* | pw32* | cegcc*)
  11149. case $GXX,$cc_basename in
  11150. ,cl* | no,cl*)
  11151. # Native MSVC
  11152. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11153. # no search path for DLLs.
  11154. hardcode_libdir_flag_spec_CXX=' '
  11155. allow_undefined_flag_CXX=unsupported
  11156. always_export_symbols_CXX=yes
  11157. file_list_spec_CXX='@'
  11158. # Tell ltmain to make .lib files, not .a files.
  11159. libext=lib
  11160. # Tell ltmain to make .dll files, not .so files.
  11161. shrext_cmds=".dll"
  11162. # FIXME: Setting linknames here is a bad hack.
  11163. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11164. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11165. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11166. else
  11167. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11168. fi~
  11169. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11170. linknames='
  11171. # The linker will not automatically build a static lib if we build a DLL.
  11172. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11173. enable_shared_with_static_runtimes_CXX=yes
  11174. # Don't use ranlib
  11175. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11176. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11177. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11178. case $lt_outputfile in
  11179. *.exe|*.EXE) ;;
  11180. *)
  11181. lt_outputfile="$lt_outputfile.exe"
  11182. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11183. ;;
  11184. esac~
  11185. func_to_tool_file "$lt_outputfile"~
  11186. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11187. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11188. $RM "$lt_outputfile.manifest";
  11189. fi'
  11190. ;;
  11191. *)
  11192. # g++
  11193. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11194. # as there is no search path for DLLs.
  11195. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11196. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11197. allow_undefined_flag_CXX=unsupported
  11198. always_export_symbols_CXX=no
  11199. enable_shared_with_static_runtimes_CXX=yes
  11200. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11201. 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'
  11202. # If the export-symbols file already is a .def file (1st line
  11203. # is EXPORTS), use it as is; otherwise, prepend...
  11204. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11205. cp $export_symbols $output_objdir/$soname.def;
  11206. else
  11207. echo EXPORTS > $output_objdir/$soname.def;
  11208. cat $export_symbols >> $output_objdir/$soname.def;
  11209. fi~
  11210. $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'
  11211. else
  11212. ld_shlibs_CXX=no
  11213. fi
  11214. ;;
  11215. esac
  11216. ;;
  11217. darwin* | rhapsody*)
  11218. archive_cmds_need_lc_CXX=no
  11219. hardcode_direct_CXX=no
  11220. hardcode_automatic_CXX=yes
  11221. hardcode_shlibpath_var_CXX=unsupported
  11222. if test "$lt_cv_ld_force_load" = "yes"; then
  11223. 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\"`'
  11224. else
  11225. whole_archive_flag_spec_CXX=''
  11226. fi
  11227. link_all_deplibs_CXX=yes
  11228. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11229. case $cc_basename in
  11230. ifort*) _lt_dar_can_shared=yes ;;
  11231. *) _lt_dar_can_shared=$GCC ;;
  11232. esac
  11233. if test "$_lt_dar_can_shared" = "yes"; then
  11234. output_verbose_link_cmd=func_echo_all
  11235. 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}"
  11236. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11237. 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}"
  11238. 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}"
  11239. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11240. 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}"
  11241. 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}"
  11242. fi
  11243. else
  11244. ld_shlibs_CXX=no
  11245. fi
  11246. ;;
  11247. dgux*)
  11248. case $cc_basename in
  11249. ec++*)
  11250. # FIXME: insert proper C++ library support
  11251. ld_shlibs_CXX=no
  11252. ;;
  11253. ghcx*)
  11254. # Green Hills C++ Compiler
  11255. # FIXME: insert proper C++ library support
  11256. ld_shlibs_CXX=no
  11257. ;;
  11258. *)
  11259. # FIXME: insert proper C++ library support
  11260. ld_shlibs_CXX=no
  11261. ;;
  11262. esac
  11263. ;;
  11264. freebsd2.*)
  11265. # C++ shared libraries reported to be fairly broken before
  11266. # switch to ELF
  11267. ld_shlibs_CXX=no
  11268. ;;
  11269. freebsd-elf*)
  11270. archive_cmds_need_lc_CXX=no
  11271. ;;
  11272. freebsd* | dragonfly*)
  11273. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11274. # conventions
  11275. ld_shlibs_CXX=yes
  11276. ;;
  11277. gnu*)
  11278. ;;
  11279. haiku*)
  11280. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11281. link_all_deplibs_CXX=yes
  11282. ;;
  11283. hpux9*)
  11284. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11285. hardcode_libdir_separator_CXX=:
  11286. export_dynamic_flag_spec_CXX='${wl}-E'
  11287. hardcode_direct_CXX=yes
  11288. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11289. # but as the default
  11290. # location of the library.
  11291. case $cc_basename in
  11292. CC*)
  11293. # FIXME: insert proper C++ library support
  11294. ld_shlibs_CXX=no
  11295. ;;
  11296. aCC*)
  11297. 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'
  11298. # Commands to make compiler produce verbose output that lists
  11299. # what "hidden" libraries, object files and flags are used when
  11300. # linking a shared library.
  11301. #
  11302. # There doesn't appear to be a way to prevent this compiler from
  11303. # explicitly linking system object files so we need to strip them
  11304. # from the output so that they don't get included in the library
  11305. # dependencies.
  11306. 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"'
  11307. ;;
  11308. *)
  11309. if test "$GXX" = yes; then
  11310. 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'
  11311. else
  11312. # FIXME: insert proper C++ library support
  11313. ld_shlibs_CXX=no
  11314. fi
  11315. ;;
  11316. esac
  11317. ;;
  11318. hpux10*|hpux11*)
  11319. if test $with_gnu_ld = no; then
  11320. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11321. hardcode_libdir_separator_CXX=:
  11322. case $host_cpu in
  11323. hppa*64*|ia64*)
  11324. ;;
  11325. *)
  11326. export_dynamic_flag_spec_CXX='${wl}-E'
  11327. ;;
  11328. esac
  11329. fi
  11330. case $host_cpu in
  11331. hppa*64*|ia64*)
  11332. hardcode_direct_CXX=no
  11333. hardcode_shlibpath_var_CXX=no
  11334. ;;
  11335. *)
  11336. hardcode_direct_CXX=yes
  11337. hardcode_direct_absolute_CXX=yes
  11338. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11339. # but as the default
  11340. # location of the library.
  11341. ;;
  11342. esac
  11343. case $cc_basename in
  11344. CC*)
  11345. # FIXME: insert proper C++ library support
  11346. ld_shlibs_CXX=no
  11347. ;;
  11348. aCC*)
  11349. case $host_cpu in
  11350. hppa*64*)
  11351. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11352. ;;
  11353. ia64*)
  11354. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11355. ;;
  11356. *)
  11357. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11358. ;;
  11359. esac
  11360. # Commands to make compiler produce verbose output that lists
  11361. # what "hidden" libraries, object files and flags are used when
  11362. # linking a shared library.
  11363. #
  11364. # There doesn't appear to be a way to prevent this compiler from
  11365. # explicitly linking system object files so we need to strip them
  11366. # from the output so that they don't get included in the library
  11367. # dependencies.
  11368. 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"'
  11369. ;;
  11370. *)
  11371. if test "$GXX" = yes; then
  11372. if test $with_gnu_ld = no; then
  11373. case $host_cpu in
  11374. hppa*64*)
  11375. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11376. ;;
  11377. ia64*)
  11378. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11379. ;;
  11380. *)
  11381. 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'
  11382. ;;
  11383. esac
  11384. fi
  11385. else
  11386. # FIXME: insert proper C++ library support
  11387. ld_shlibs_CXX=no
  11388. fi
  11389. ;;
  11390. esac
  11391. ;;
  11392. interix[3-9]*)
  11393. hardcode_direct_CXX=no
  11394. hardcode_shlibpath_var_CXX=no
  11395. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11396. export_dynamic_flag_spec_CXX='${wl}-E'
  11397. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11398. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11399. # default) and relocated if they conflict, which is a slow very memory
  11400. # consuming and fragmenting process. To avoid this, we pick a random,
  11401. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11402. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11403. 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'
  11404. 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'
  11405. ;;
  11406. irix5* | irix6*)
  11407. case $cc_basename in
  11408. CC*)
  11409. # SGI C++
  11410. 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'
  11411. # Archives containing C++ object files must be created using
  11412. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11413. # necessary to make sure instantiated templates are included
  11414. # in the archive.
  11415. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11416. ;;
  11417. *)
  11418. if test "$GXX" = yes; then
  11419. if test "$with_gnu_ld" = no; then
  11420. 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'
  11421. else
  11422. 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'
  11423. fi
  11424. fi
  11425. link_all_deplibs_CXX=yes
  11426. ;;
  11427. esac
  11428. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11429. hardcode_libdir_separator_CXX=:
  11430. inherit_rpath_CXX=yes
  11431. ;;
  11432. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11433. case $cc_basename in
  11434. KCC*)
  11435. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11436. # KCC will only create a shared library if the output file
  11437. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11438. # to its proper name (with version) after linking.
  11439. 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'
  11440. 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'
  11441. # Commands to make compiler produce verbose output that lists
  11442. # what "hidden" libraries, object files and flags are used when
  11443. # linking a shared library.
  11444. #
  11445. # There doesn't appear to be a way to prevent this compiler from
  11446. # explicitly linking system object files so we need to strip them
  11447. # from the output so that they don't get included in the library
  11448. # dependencies.
  11449. 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"'
  11450. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11451. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11452. # Archives containing C++ object files must be created using
  11453. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11454. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11455. ;;
  11456. icpc* | ecpc* )
  11457. # Intel C++
  11458. with_gnu_ld=yes
  11459. # version 8.0 and above of icpc choke on multiply defined symbols
  11460. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11461. # earlier do not add the objects themselves.
  11462. case `$CC -V 2>&1` in
  11463. *"Version 7."*)
  11464. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11465. 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'
  11466. ;;
  11467. *) # Version 8.0 or newer
  11468. tmp_idyn=
  11469. case $host_cpu in
  11470. ia64*) tmp_idyn=' -i_dynamic';;
  11471. esac
  11472. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11473. 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'
  11474. ;;
  11475. esac
  11476. archive_cmds_need_lc_CXX=no
  11477. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11478. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11479. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11480. ;;
  11481. pgCC* | pgcpp*)
  11482. # Portland Group C++ compiler
  11483. case `$CC -V` in
  11484. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11485. prelink_cmds_CXX='tpldir=Template.dir~
  11486. rm -rf $tpldir~
  11487. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11488. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11489. old_archive_cmds_CXX='tpldir=Template.dir~
  11490. rm -rf $tpldir~
  11491. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11492. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11493. $RANLIB $oldlib'
  11494. archive_cmds_CXX='tpldir=Template.dir~
  11495. rm -rf $tpldir~
  11496. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11497. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11498. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11499. rm -rf $tpldir~
  11500. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11501. $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'
  11502. ;;
  11503. *) # Version 6 and above use weak symbols
  11504. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11505. 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'
  11506. ;;
  11507. esac
  11508. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11509. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11510. 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'
  11511. ;;
  11512. cxx*)
  11513. # Compaq C++
  11514. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11515. 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'
  11516. runpath_var=LD_RUN_PATH
  11517. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11518. hardcode_libdir_separator_CXX=:
  11519. # Commands to make compiler produce verbose output that lists
  11520. # what "hidden" libraries, object files and flags are used when
  11521. # linking a shared library.
  11522. #
  11523. # There doesn't appear to be a way to prevent this compiler from
  11524. # explicitly linking system object files so we need to strip them
  11525. # from the output so that they don't get included in the library
  11526. # dependencies.
  11527. 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'
  11528. ;;
  11529. xl* | mpixl* | bgxl*)
  11530. # IBM XL 8.0 on PPC, with GNU ld
  11531. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11532. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11533. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11534. if test "x$supports_anon_versioning" = xyes; then
  11535. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11536. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11537. echo "local: *; };" >> $output_objdir/$libname.ver~
  11538. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11539. fi
  11540. ;;
  11541. *)
  11542. case `$CC -V 2>&1 | sed 5q` in
  11543. *Sun\ C*)
  11544. # Sun C++ 5.9
  11545. no_undefined_flag_CXX=' -zdefs'
  11546. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11547. 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'
  11548. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11549. 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'
  11550. compiler_needs_object_CXX=yes
  11551. # Not sure whether something based on
  11552. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11553. # would be better.
  11554. output_verbose_link_cmd='func_echo_all'
  11555. # Archives containing C++ object files must be created using
  11556. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11557. # necessary to make sure instantiated templates are included
  11558. # in the archive.
  11559. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11560. ;;
  11561. esac
  11562. ;;
  11563. esac
  11564. ;;
  11565. lynxos*)
  11566. # FIXME: insert proper C++ library support
  11567. ld_shlibs_CXX=no
  11568. ;;
  11569. m88k*)
  11570. # FIXME: insert proper C++ library support
  11571. ld_shlibs_CXX=no
  11572. ;;
  11573. mvs*)
  11574. case $cc_basename in
  11575. cxx*)
  11576. # FIXME: insert proper C++ library support
  11577. ld_shlibs_CXX=no
  11578. ;;
  11579. *)
  11580. # FIXME: insert proper C++ library support
  11581. ld_shlibs_CXX=no
  11582. ;;
  11583. esac
  11584. ;;
  11585. netbsd*)
  11586. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11587. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11588. wlarc=
  11589. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11590. hardcode_direct_CXX=yes
  11591. hardcode_shlibpath_var_CXX=no
  11592. fi
  11593. # Workaround some broken pre-1.5 toolchains
  11594. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11595. ;;
  11596. *nto* | *qnx*)
  11597. ld_shlibs_CXX=yes
  11598. ;;
  11599. openbsd2*)
  11600. # C++ shared libraries are fairly broken
  11601. ld_shlibs_CXX=no
  11602. ;;
  11603. openbsd*)
  11604. if test -f /usr/libexec/ld.so; then
  11605. hardcode_direct_CXX=yes
  11606. hardcode_shlibpath_var_CXX=no
  11607. hardcode_direct_absolute_CXX=yes
  11608. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11609. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11610. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11611. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11612. export_dynamic_flag_spec_CXX='${wl}-E'
  11613. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11614. fi
  11615. output_verbose_link_cmd=func_echo_all
  11616. else
  11617. ld_shlibs_CXX=no
  11618. fi
  11619. ;;
  11620. osf3* | osf4* | osf5*)
  11621. case $cc_basename in
  11622. KCC*)
  11623. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11624. # KCC will only create a shared library if the output file
  11625. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11626. # to its proper name (with version) after linking.
  11627. 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'
  11628. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11629. hardcode_libdir_separator_CXX=:
  11630. # Archives containing C++ object files must be created using
  11631. # the KAI C++ compiler.
  11632. case $host in
  11633. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11634. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11635. esac
  11636. ;;
  11637. RCC*)
  11638. # Rational C++ 2.4.1
  11639. # FIXME: insert proper C++ library support
  11640. ld_shlibs_CXX=no
  11641. ;;
  11642. cxx*)
  11643. case $host in
  11644. osf3*)
  11645. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11646. 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'
  11647. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11648. ;;
  11649. *)
  11650. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11651. 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'
  11652. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11653. echo "-hidden">> $lib.exp~
  11654. $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~
  11655. $RM $lib.exp'
  11656. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11657. ;;
  11658. esac
  11659. hardcode_libdir_separator_CXX=:
  11660. # Commands to make compiler produce verbose output that lists
  11661. # what "hidden" libraries, object files and flags are used when
  11662. # linking a shared library.
  11663. #
  11664. # There doesn't appear to be a way to prevent this compiler from
  11665. # explicitly linking system object files so we need to strip them
  11666. # from the output so that they don't get included in the library
  11667. # dependencies.
  11668. 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"'
  11669. ;;
  11670. *)
  11671. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11672. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11673. case $host in
  11674. osf3*)
  11675. 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'
  11676. ;;
  11677. *)
  11678. 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'
  11679. ;;
  11680. esac
  11681. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11682. hardcode_libdir_separator_CXX=:
  11683. # Commands to make compiler produce verbose output that lists
  11684. # what "hidden" libraries, object files and flags are used when
  11685. # linking a shared library.
  11686. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11687. else
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. fi
  11691. ;;
  11692. esac
  11693. ;;
  11694. psos*)
  11695. # FIXME: insert proper C++ library support
  11696. ld_shlibs_CXX=no
  11697. ;;
  11698. sunos4*)
  11699. case $cc_basename in
  11700. CC*)
  11701. # Sun C++ 4.x
  11702. # FIXME: insert proper C++ library support
  11703. ld_shlibs_CXX=no
  11704. ;;
  11705. lcc*)
  11706. # Lucid
  11707. # FIXME: insert proper C++ library support
  11708. ld_shlibs_CXX=no
  11709. ;;
  11710. *)
  11711. # FIXME: insert proper C++ library support
  11712. ld_shlibs_CXX=no
  11713. ;;
  11714. esac
  11715. ;;
  11716. solaris*)
  11717. case $cc_basename in
  11718. CC* | sunCC*)
  11719. # Sun C++ 4.2, 5.x and Centerline C++
  11720. archive_cmds_need_lc_CXX=yes
  11721. no_undefined_flag_CXX=' -zdefs'
  11722. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11723. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11724. $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'
  11725. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11726. hardcode_shlibpath_var_CXX=no
  11727. case $host_os in
  11728. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11729. *)
  11730. # The compiler driver will combine and reorder linker options,
  11731. # but understands `-z linker_flag'.
  11732. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11733. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11734. ;;
  11735. esac
  11736. link_all_deplibs_CXX=yes
  11737. output_verbose_link_cmd='func_echo_all'
  11738. # Archives containing C++ object files must be created using
  11739. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11740. # necessary to make sure instantiated templates are included
  11741. # in the archive.
  11742. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11743. ;;
  11744. gcx*)
  11745. # Green Hills C++ Compiler
  11746. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11747. # The C++ compiler must be used to create the archive.
  11748. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11749. ;;
  11750. *)
  11751. # GNU C++ compiler with Solaris linker
  11752. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11753. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11754. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11755. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11756. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11757. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  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. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11762. else
  11763. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11764. # platform.
  11765. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11766. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11767. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11768. # Commands to make compiler produce verbose output that lists
  11769. # what "hidden" libraries, object files and flags are used when
  11770. # linking a shared library.
  11771. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11772. fi
  11773. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11774. case $host_os in
  11775. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11776. *)
  11777. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11778. ;;
  11779. esac
  11780. fi
  11781. ;;
  11782. esac
  11783. ;;
  11784. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11785. no_undefined_flag_CXX='${wl}-z,text'
  11786. archive_cmds_need_lc_CXX=no
  11787. hardcode_shlibpath_var_CXX=no
  11788. runpath_var='LD_RUN_PATH'
  11789. case $cc_basename in
  11790. CC*)
  11791. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11792. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11793. ;;
  11794. *)
  11795. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11796. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11797. ;;
  11798. esac
  11799. ;;
  11800. sysv5* | sco3.2v5* | sco5v6*)
  11801. # Note: We can NOT use -z defs as we might desire, because we do not
  11802. # link with -lc, and that would cause any symbols used from libc to
  11803. # always be unresolved, which means just about no library would
  11804. # ever link correctly. If we're not using GNU ld we use -z text
  11805. # though, which does catch some bad symbols but isn't as heavy-handed
  11806. # as -z defs.
  11807. no_undefined_flag_CXX='${wl}-z,text'
  11808. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11809. archive_cmds_need_lc_CXX=no
  11810. hardcode_shlibpath_var_CXX=no
  11811. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11812. hardcode_libdir_separator_CXX=':'
  11813. link_all_deplibs_CXX=yes
  11814. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11815. runpath_var='LD_RUN_PATH'
  11816. case $cc_basename in
  11817. CC*)
  11818. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11819. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11820. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11821. '"$old_archive_cmds_CXX"
  11822. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11823. '"$reload_cmds_CXX"
  11824. ;;
  11825. *)
  11826. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11827. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11828. ;;
  11829. esac
  11830. ;;
  11831. tandem*)
  11832. case $cc_basename in
  11833. NCC*)
  11834. # NonStop-UX NCC 3.20
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. *)
  11839. # FIXME: insert proper C++ library support
  11840. ld_shlibs_CXX=no
  11841. ;;
  11842. esac
  11843. ;;
  11844. vxworks*)
  11845. # FIXME: insert proper C++ library support
  11846. ld_shlibs_CXX=no
  11847. ;;
  11848. *)
  11849. # FIXME: insert proper C++ library support
  11850. ld_shlibs_CXX=no
  11851. ;;
  11852. esac
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11854. $as_echo "$ld_shlibs_CXX" >&6; }
  11855. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11856. GCC_CXX="$GXX"
  11857. LD_CXX="$LD"
  11858. ## CAVEAT EMPTOR:
  11859. ## There is no encapsulation within the following macros, do not change
  11860. ## the running order or otherwise move them around unless you know exactly
  11861. ## what you are doing...
  11862. # Dependencies to place before and after the object being linked:
  11863. predep_objects_CXX=
  11864. postdep_objects_CXX=
  11865. predeps_CXX=
  11866. postdeps_CXX=
  11867. compiler_lib_search_path_CXX=
  11868. cat > conftest.$ac_ext <<_LT_EOF
  11869. class Foo
  11870. {
  11871. public:
  11872. Foo (void) { a = 0; }
  11873. private:
  11874. int a;
  11875. };
  11876. _LT_EOF
  11877. _lt_libdeps_save_CFLAGS=$CFLAGS
  11878. case "$CC $CFLAGS " in #(
  11879. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11880. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11881. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11882. esac
  11883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11884. (eval $ac_compile) 2>&5
  11885. ac_status=$?
  11886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11887. test $ac_status = 0; }; then
  11888. # Parse the compiler output and extract the necessary
  11889. # objects, libraries and library flags.
  11890. # Sentinel used to keep track of whether or not we are before
  11891. # the conftest object file.
  11892. pre_test_object_deps_done=no
  11893. for p in `eval "$output_verbose_link_cmd"`; do
  11894. case ${prev}${p} in
  11895. -L* | -R* | -l*)
  11896. # Some compilers place space between "-{L,R}" and the path.
  11897. # Remove the space.
  11898. if test $p = "-L" ||
  11899. test $p = "-R"; then
  11900. prev=$p
  11901. continue
  11902. fi
  11903. # Expand the sysroot to ease extracting the directories later.
  11904. if test -z "$prev"; then
  11905. case $p in
  11906. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11907. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11908. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11909. esac
  11910. fi
  11911. case $p in
  11912. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11913. esac
  11914. if test "$pre_test_object_deps_done" = no; then
  11915. case ${prev} in
  11916. -L | -R)
  11917. # Internal compiler library paths should come after those
  11918. # provided the user. The postdeps already come after the
  11919. # user supplied libs so there is no need to process them.
  11920. if test -z "$compiler_lib_search_path_CXX"; then
  11921. compiler_lib_search_path_CXX="${prev}${p}"
  11922. else
  11923. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11924. fi
  11925. ;;
  11926. # The "-l" case would never come before the object being
  11927. # linked, so don't bother handling this case.
  11928. esac
  11929. else
  11930. if test -z "$postdeps_CXX"; then
  11931. postdeps_CXX="${prev}${p}"
  11932. else
  11933. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11934. fi
  11935. fi
  11936. prev=
  11937. ;;
  11938. *.lto.$objext) ;; # Ignore GCC LTO objects
  11939. *.$objext)
  11940. # This assumes that the test object file only shows up
  11941. # once in the compiler output.
  11942. if test "$p" = "conftest.$objext"; then
  11943. pre_test_object_deps_done=yes
  11944. continue
  11945. fi
  11946. if test "$pre_test_object_deps_done" = no; then
  11947. if test -z "$predep_objects_CXX"; then
  11948. predep_objects_CXX="$p"
  11949. else
  11950. predep_objects_CXX="$predep_objects_CXX $p"
  11951. fi
  11952. else
  11953. if test -z "$postdep_objects_CXX"; then
  11954. postdep_objects_CXX="$p"
  11955. else
  11956. postdep_objects_CXX="$postdep_objects_CXX $p"
  11957. fi
  11958. fi
  11959. ;;
  11960. *) ;; # Ignore the rest.
  11961. esac
  11962. done
  11963. # Clean up.
  11964. rm -f a.out a.exe
  11965. else
  11966. echo "libtool.m4: error: problem compiling CXX test program"
  11967. fi
  11968. $RM -f confest.$objext
  11969. CFLAGS=$_lt_libdeps_save_CFLAGS
  11970. # PORTME: override above test on systems where it is broken
  11971. case $host_os in
  11972. interix[3-9]*)
  11973. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11974. # hack all around it, let's just trust "g++" to DTRT.
  11975. predep_objects_CXX=
  11976. postdep_objects_CXX=
  11977. postdeps_CXX=
  11978. ;;
  11979. linux*)
  11980. case `$CC -V 2>&1 | sed 5q` in
  11981. *Sun\ C*)
  11982. # Sun C++ 5.9
  11983. # The more standards-conforming stlport4 library is
  11984. # incompatible with the Cstd library. Avoid specifying
  11985. # it if it's in CXXFLAGS. Ignore libCrun as
  11986. # -library=stlport4 depends on it.
  11987. case " $CXX $CXXFLAGS " in
  11988. *" -library=stlport4 "*)
  11989. solaris_use_stlport4=yes
  11990. ;;
  11991. esac
  11992. if test "$solaris_use_stlport4" != yes; then
  11993. postdeps_CXX='-library=Cstd -library=Crun'
  11994. fi
  11995. ;;
  11996. esac
  11997. ;;
  11998. solaris*)
  11999. case $cc_basename in
  12000. CC* | sunCC*)
  12001. # The more standards-conforming stlport4 library is
  12002. # incompatible with the Cstd library. Avoid specifying
  12003. # it if it's in CXXFLAGS. Ignore libCrun as
  12004. # -library=stlport4 depends on it.
  12005. case " $CXX $CXXFLAGS " in
  12006. *" -library=stlport4 "*)
  12007. solaris_use_stlport4=yes
  12008. ;;
  12009. esac
  12010. # Adding this requires a known-good setup of shared libraries for
  12011. # Sun compiler versions before 5.6, else PIC objects from an old
  12012. # archive will be linked into the output, leading to subtle bugs.
  12013. if test "$solaris_use_stlport4" != yes; then
  12014. postdeps_CXX='-library=Cstd -library=Crun'
  12015. fi
  12016. ;;
  12017. esac
  12018. ;;
  12019. esac
  12020. case " $postdeps_CXX " in
  12021. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12022. esac
  12023. compiler_lib_search_dirs_CXX=
  12024. if test -n "${compiler_lib_search_path_CXX}"; then
  12025. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12026. fi
  12027. lt_prog_compiler_wl_CXX=
  12028. lt_prog_compiler_pic_CXX=
  12029. lt_prog_compiler_static_CXX=
  12030. # C++ specific cases for pic, static, wl, etc.
  12031. if test "$GXX" = yes; then
  12032. lt_prog_compiler_wl_CXX='-Wl,'
  12033. lt_prog_compiler_static_CXX='-static'
  12034. case $host_os in
  12035. aix*)
  12036. # All AIX code is PIC.
  12037. if test "$host_cpu" = ia64; then
  12038. # AIX 5 now supports IA64 processor
  12039. lt_prog_compiler_static_CXX='-Bstatic'
  12040. fi
  12041. ;;
  12042. amigaos*)
  12043. case $host_cpu in
  12044. powerpc)
  12045. # see comment about AmigaOS4 .so support
  12046. lt_prog_compiler_pic_CXX='-fPIC'
  12047. ;;
  12048. m68k)
  12049. # FIXME: we need at least 68020 code to build shared libraries, but
  12050. # adding the `-m68020' flag to GCC prevents building anything better,
  12051. # like `-m68040'.
  12052. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12053. ;;
  12054. esac
  12055. ;;
  12056. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12057. # PIC is the default for these OSes.
  12058. ;;
  12059. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12060. # This hack is so that the source file can tell whether it is being
  12061. # built for inclusion in a dll (and should export symbols for example).
  12062. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12063. # (--disable-auto-import) libraries
  12064. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12065. ;;
  12066. darwin* | rhapsody*)
  12067. # PIC is the default on this platform
  12068. # Common symbols not allowed in MH_DYLIB files
  12069. lt_prog_compiler_pic_CXX='-fno-common'
  12070. ;;
  12071. *djgpp*)
  12072. # DJGPP does not support shared libraries at all
  12073. lt_prog_compiler_pic_CXX=
  12074. ;;
  12075. haiku*)
  12076. # PIC is the default for Haiku.
  12077. # The "-static" flag exists, but is broken.
  12078. lt_prog_compiler_static_CXX=
  12079. ;;
  12080. interix[3-9]*)
  12081. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12082. # Instead, we relocate shared libraries at runtime.
  12083. ;;
  12084. sysv4*MP*)
  12085. if test -d /usr/nec; then
  12086. lt_prog_compiler_pic_CXX=-Kconform_pic
  12087. fi
  12088. ;;
  12089. hpux*)
  12090. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12091. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12092. # sets the default TLS model and affects inlining.
  12093. case $host_cpu in
  12094. hppa*64*)
  12095. ;;
  12096. *)
  12097. lt_prog_compiler_pic_CXX='-fPIC'
  12098. ;;
  12099. esac
  12100. ;;
  12101. *qnx* | *nto*)
  12102. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12103. # it will coredump.
  12104. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12105. ;;
  12106. *)
  12107. lt_prog_compiler_pic_CXX='-fPIC'
  12108. ;;
  12109. esac
  12110. else
  12111. case $host_os in
  12112. aix[4-9]*)
  12113. # All AIX code is PIC.
  12114. if test "$host_cpu" = ia64; then
  12115. # AIX 5 now supports IA64 processor
  12116. lt_prog_compiler_static_CXX='-Bstatic'
  12117. else
  12118. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12119. fi
  12120. ;;
  12121. chorus*)
  12122. case $cc_basename in
  12123. cxch68*)
  12124. # Green Hills C++ Compiler
  12125. # _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"
  12126. ;;
  12127. esac
  12128. ;;
  12129. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12130. # This hack is so that the source file can tell whether it is being
  12131. # built for inclusion in a dll (and should export symbols for example).
  12132. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12133. ;;
  12134. dgux*)
  12135. case $cc_basename in
  12136. ec++*)
  12137. lt_prog_compiler_pic_CXX='-KPIC'
  12138. ;;
  12139. ghcx*)
  12140. # Green Hills C++ Compiler
  12141. lt_prog_compiler_pic_CXX='-pic'
  12142. ;;
  12143. *)
  12144. ;;
  12145. esac
  12146. ;;
  12147. freebsd* | dragonfly*)
  12148. # FreeBSD uses GNU C++
  12149. ;;
  12150. hpux9* | hpux10* | hpux11*)
  12151. case $cc_basename in
  12152. CC*)
  12153. lt_prog_compiler_wl_CXX='-Wl,'
  12154. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12155. if test "$host_cpu" != ia64; then
  12156. lt_prog_compiler_pic_CXX='+Z'
  12157. fi
  12158. ;;
  12159. aCC*)
  12160. lt_prog_compiler_wl_CXX='-Wl,'
  12161. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12162. case $host_cpu in
  12163. hppa*64*|ia64*)
  12164. # +Z the default
  12165. ;;
  12166. *)
  12167. lt_prog_compiler_pic_CXX='+Z'
  12168. ;;
  12169. esac
  12170. ;;
  12171. *)
  12172. ;;
  12173. esac
  12174. ;;
  12175. interix*)
  12176. # This is c89, which is MS Visual C++ (no shared libs)
  12177. # Anyone wants to do a port?
  12178. ;;
  12179. irix5* | irix6* | nonstopux*)
  12180. case $cc_basename in
  12181. CC*)
  12182. lt_prog_compiler_wl_CXX='-Wl,'
  12183. lt_prog_compiler_static_CXX='-non_shared'
  12184. # CC pic flag -KPIC is the default.
  12185. ;;
  12186. *)
  12187. ;;
  12188. esac
  12189. ;;
  12190. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12191. case $cc_basename in
  12192. KCC*)
  12193. # KAI C++ Compiler
  12194. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12195. lt_prog_compiler_pic_CXX='-fPIC'
  12196. ;;
  12197. ecpc* )
  12198. # old Intel C++ for x86_64 which still supported -KPIC.
  12199. lt_prog_compiler_wl_CXX='-Wl,'
  12200. lt_prog_compiler_pic_CXX='-KPIC'
  12201. lt_prog_compiler_static_CXX='-static'
  12202. ;;
  12203. icpc* )
  12204. # Intel C++, used to be incompatible with GCC.
  12205. # ICC 10 doesn't accept -KPIC any more.
  12206. lt_prog_compiler_wl_CXX='-Wl,'
  12207. lt_prog_compiler_pic_CXX='-fPIC'
  12208. lt_prog_compiler_static_CXX='-static'
  12209. ;;
  12210. pgCC* | pgcpp*)
  12211. # Portland Group C++ compiler
  12212. lt_prog_compiler_wl_CXX='-Wl,'
  12213. lt_prog_compiler_pic_CXX='-fpic'
  12214. lt_prog_compiler_static_CXX='-Bstatic'
  12215. ;;
  12216. cxx*)
  12217. # Compaq C++
  12218. # Make sure the PIC flag is empty. It appears that all Alpha
  12219. # Linux and Compaq Tru64 Unix objects are PIC.
  12220. lt_prog_compiler_pic_CXX=
  12221. lt_prog_compiler_static_CXX='-non_shared'
  12222. ;;
  12223. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12224. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12225. lt_prog_compiler_wl_CXX='-Wl,'
  12226. lt_prog_compiler_pic_CXX='-qpic'
  12227. lt_prog_compiler_static_CXX='-qstaticlink'
  12228. ;;
  12229. *)
  12230. case `$CC -V 2>&1 | sed 5q` in
  12231. *Sun\ C*)
  12232. # Sun C++ 5.9
  12233. lt_prog_compiler_pic_CXX='-KPIC'
  12234. lt_prog_compiler_static_CXX='-Bstatic'
  12235. lt_prog_compiler_wl_CXX='-Qoption ld '
  12236. ;;
  12237. esac
  12238. ;;
  12239. esac
  12240. ;;
  12241. lynxos*)
  12242. ;;
  12243. m88k*)
  12244. ;;
  12245. mvs*)
  12246. case $cc_basename in
  12247. cxx*)
  12248. lt_prog_compiler_pic_CXX='-W c,exportall'
  12249. ;;
  12250. *)
  12251. ;;
  12252. esac
  12253. ;;
  12254. netbsd*)
  12255. ;;
  12256. *qnx* | *nto*)
  12257. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12258. # it will coredump.
  12259. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12260. ;;
  12261. osf3* | osf4* | osf5*)
  12262. case $cc_basename in
  12263. KCC*)
  12264. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12265. ;;
  12266. RCC*)
  12267. # Rational C++ 2.4.1
  12268. lt_prog_compiler_pic_CXX='-pic'
  12269. ;;
  12270. cxx*)
  12271. # Digital/Compaq C++
  12272. lt_prog_compiler_wl_CXX='-Wl,'
  12273. # Make sure the PIC flag is empty. It appears that all Alpha
  12274. # Linux and Compaq Tru64 Unix objects are PIC.
  12275. lt_prog_compiler_pic_CXX=
  12276. lt_prog_compiler_static_CXX='-non_shared'
  12277. ;;
  12278. *)
  12279. ;;
  12280. esac
  12281. ;;
  12282. psos*)
  12283. ;;
  12284. solaris*)
  12285. case $cc_basename in
  12286. CC* | sunCC*)
  12287. # Sun C++ 4.2, 5.x and Centerline C++
  12288. lt_prog_compiler_pic_CXX='-KPIC'
  12289. lt_prog_compiler_static_CXX='-Bstatic'
  12290. lt_prog_compiler_wl_CXX='-Qoption ld '
  12291. ;;
  12292. gcx*)
  12293. # Green Hills C++ Compiler
  12294. lt_prog_compiler_pic_CXX='-PIC'
  12295. ;;
  12296. *)
  12297. ;;
  12298. esac
  12299. ;;
  12300. sunos4*)
  12301. case $cc_basename in
  12302. CC*)
  12303. # Sun C++ 4.x
  12304. lt_prog_compiler_pic_CXX='-pic'
  12305. lt_prog_compiler_static_CXX='-Bstatic'
  12306. ;;
  12307. lcc*)
  12308. # Lucid
  12309. lt_prog_compiler_pic_CXX='-pic'
  12310. ;;
  12311. *)
  12312. ;;
  12313. esac
  12314. ;;
  12315. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12316. case $cc_basename in
  12317. CC*)
  12318. lt_prog_compiler_wl_CXX='-Wl,'
  12319. lt_prog_compiler_pic_CXX='-KPIC'
  12320. lt_prog_compiler_static_CXX='-Bstatic'
  12321. ;;
  12322. esac
  12323. ;;
  12324. tandem*)
  12325. case $cc_basename in
  12326. NCC*)
  12327. # NonStop-UX NCC 3.20
  12328. lt_prog_compiler_pic_CXX='-KPIC'
  12329. ;;
  12330. *)
  12331. ;;
  12332. esac
  12333. ;;
  12334. vxworks*)
  12335. ;;
  12336. *)
  12337. lt_prog_compiler_can_build_shared_CXX=no
  12338. ;;
  12339. esac
  12340. fi
  12341. case $host_os in
  12342. # For platforms which do not support PIC, -DPIC is meaningless:
  12343. *djgpp*)
  12344. lt_prog_compiler_pic_CXX=
  12345. ;;
  12346. *)
  12347. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12348. ;;
  12349. esac
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12351. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12352. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12353. $as_echo_n "(cached) " >&6
  12354. else
  12355. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12356. fi
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12358. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12359. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12360. #
  12361. # Check to make sure the PIC flag actually works.
  12362. #
  12363. if test -n "$lt_prog_compiler_pic_CXX"; then
  12364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12365. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12366. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12367. $as_echo_n "(cached) " >&6
  12368. else
  12369. lt_cv_prog_compiler_pic_works_CXX=no
  12370. ac_outfile=conftest.$ac_objext
  12371. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12372. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12373. # Insert the option either (1) after the last *FLAGS variable, or
  12374. # (2) before a word containing "conftest.", or (3) at the end.
  12375. # Note that $ac_compile itself does not contain backslashes and begins
  12376. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12377. # The option is referenced via a variable to avoid confusing sed.
  12378. lt_compile=`echo "$ac_compile" | $SED \
  12379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12381. -e 's:$: $lt_compiler_flag:'`
  12382. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12383. (eval "$lt_compile" 2>conftest.err)
  12384. ac_status=$?
  12385. cat conftest.err >&5
  12386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12387. if (exit $ac_status) && test -s "$ac_outfile"; then
  12388. # The compiler can only warn and ignore the option if not recognized
  12389. # So say no if there are warnings other than the usual output.
  12390. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12391. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12392. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12393. lt_cv_prog_compiler_pic_works_CXX=yes
  12394. fi
  12395. fi
  12396. $RM conftest*
  12397. fi
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12399. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12400. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12401. case $lt_prog_compiler_pic_CXX in
  12402. "" | " "*) ;;
  12403. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12404. esac
  12405. else
  12406. lt_prog_compiler_pic_CXX=
  12407. lt_prog_compiler_can_build_shared_CXX=no
  12408. fi
  12409. fi
  12410. #
  12411. # Check to make sure the static flag actually works.
  12412. #
  12413. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12415. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12416. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12417. $as_echo_n "(cached) " >&6
  12418. else
  12419. lt_cv_prog_compiler_static_works_CXX=no
  12420. save_LDFLAGS="$LDFLAGS"
  12421. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12422. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12423. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12424. # The linker can only warn and ignore the option if not recognized
  12425. # So say no if there are warnings
  12426. if test -s conftest.err; then
  12427. # Append any errors to the config.log.
  12428. cat conftest.err 1>&5
  12429. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12430. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12431. if diff conftest.exp conftest.er2 >/dev/null; then
  12432. lt_cv_prog_compiler_static_works_CXX=yes
  12433. fi
  12434. else
  12435. lt_cv_prog_compiler_static_works_CXX=yes
  12436. fi
  12437. fi
  12438. $RM -r conftest*
  12439. LDFLAGS="$save_LDFLAGS"
  12440. fi
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12442. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12443. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12444. :
  12445. else
  12446. lt_prog_compiler_static_CXX=
  12447. fi
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12449. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12450. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12451. $as_echo_n "(cached) " >&6
  12452. else
  12453. lt_cv_prog_compiler_c_o_CXX=no
  12454. $RM -r conftest 2>/dev/null
  12455. mkdir conftest
  12456. cd conftest
  12457. mkdir out
  12458. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12459. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12460. # Insert the option either (1) after the last *FLAGS variable, or
  12461. # (2) before a word containing "conftest.", or (3) at the end.
  12462. # Note that $ac_compile itself does not contain backslashes and begins
  12463. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12464. lt_compile=`echo "$ac_compile" | $SED \
  12465. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12466. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12467. -e 's:$: $lt_compiler_flag:'`
  12468. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12469. (eval "$lt_compile" 2>out/conftest.err)
  12470. ac_status=$?
  12471. cat out/conftest.err >&5
  12472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12473. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12474. then
  12475. # The compiler can only warn and ignore the option if not recognized
  12476. # So say no if there are warnings
  12477. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12478. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12479. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12480. lt_cv_prog_compiler_c_o_CXX=yes
  12481. fi
  12482. fi
  12483. chmod u+w . 2>&5
  12484. $RM conftest*
  12485. # SGI C++ compiler will create directory out/ii_files/ for
  12486. # template instantiation
  12487. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12488. $RM out/* && rmdir out
  12489. cd ..
  12490. $RM -r conftest
  12491. $RM conftest*
  12492. fi
  12493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12494. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12496. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12497. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12498. $as_echo_n "(cached) " >&6
  12499. else
  12500. lt_cv_prog_compiler_c_o_CXX=no
  12501. $RM -r conftest 2>/dev/null
  12502. mkdir conftest
  12503. cd conftest
  12504. mkdir out
  12505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12506. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12507. # Insert the option either (1) after the last *FLAGS variable, or
  12508. # (2) before a word containing "conftest.", or (3) at the end.
  12509. # Note that $ac_compile itself does not contain backslashes and begins
  12510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12511. lt_compile=`echo "$ac_compile" | $SED \
  12512. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12513. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12514. -e 's:$: $lt_compiler_flag:'`
  12515. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12516. (eval "$lt_compile" 2>out/conftest.err)
  12517. ac_status=$?
  12518. cat out/conftest.err >&5
  12519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12520. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12521. then
  12522. # The compiler can only warn and ignore the option if not recognized
  12523. # So say no if there are warnings
  12524. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12525. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12526. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12527. lt_cv_prog_compiler_c_o_CXX=yes
  12528. fi
  12529. fi
  12530. chmod u+w . 2>&5
  12531. $RM conftest*
  12532. # SGI C++ compiler will create directory out/ii_files/ for
  12533. # template instantiation
  12534. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12535. $RM out/* && rmdir out
  12536. cd ..
  12537. $RM -r conftest
  12538. $RM conftest*
  12539. fi
  12540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12541. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12542. hard_links="nottested"
  12543. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12544. # do not overwrite the value of need_locks provided by the user
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12546. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12547. hard_links=yes
  12548. $RM conftest*
  12549. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12550. touch conftest.a
  12551. ln conftest.a conftest.b 2>&5 || hard_links=no
  12552. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12554. $as_echo "$hard_links" >&6; }
  12555. if test "$hard_links" = no; then
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12557. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12558. need_locks=warn
  12559. fi
  12560. else
  12561. need_locks=no
  12562. fi
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12564. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12565. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12566. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12567. case $host_os in
  12568. aix[4-9]*)
  12569. # If we're using GNU nm, then we don't want the "-C" option.
  12570. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12571. # Also, AIX nm treats weak defined symbols like other global defined
  12572. # symbols, whereas GNU nm marks them as "W".
  12573. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12574. 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'
  12575. else
  12576. 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'
  12577. fi
  12578. ;;
  12579. pw32*)
  12580. export_symbols_cmds_CXX="$ltdll_cmds"
  12581. ;;
  12582. cygwin* | mingw* | cegcc*)
  12583. case $cc_basename in
  12584. cl*)
  12585. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12586. ;;
  12587. *)
  12588. 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'
  12589. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12590. ;;
  12591. esac
  12592. ;;
  12593. *)
  12594. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12595. ;;
  12596. esac
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12598. $as_echo "$ld_shlibs_CXX" >&6; }
  12599. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12600. with_gnu_ld_CXX=$with_gnu_ld
  12601. #
  12602. # Do we need to explicitly link libc?
  12603. #
  12604. case "x$archive_cmds_need_lc_CXX" in
  12605. x|xyes)
  12606. # Assume -lc should be added
  12607. archive_cmds_need_lc_CXX=yes
  12608. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12609. case $archive_cmds_CXX in
  12610. *'~'*)
  12611. # FIXME: we may have to deal with multi-command sequences.
  12612. ;;
  12613. '$CC '*)
  12614. # Test whether the compiler implicitly links with -lc since on some
  12615. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12616. # to ld, don't add -lc before -lgcc.
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12618. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12619. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12620. $as_echo_n "(cached) " >&6
  12621. else
  12622. $RM conftest*
  12623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12624. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12625. (eval $ac_compile) 2>&5
  12626. ac_status=$?
  12627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12628. test $ac_status = 0; } 2>conftest.err; then
  12629. soname=conftest
  12630. lib=conftest
  12631. libobjs=conftest.$ac_objext
  12632. deplibs=
  12633. wl=$lt_prog_compiler_wl_CXX
  12634. pic_flag=$lt_prog_compiler_pic_CXX
  12635. compiler_flags=-v
  12636. linker_flags=-v
  12637. verstring=
  12638. output_objdir=.
  12639. libname=conftest
  12640. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12641. allow_undefined_flag_CXX=
  12642. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12643. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12644. ac_status=$?
  12645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12646. test $ac_status = 0; }
  12647. then
  12648. lt_cv_archive_cmds_need_lc_CXX=no
  12649. else
  12650. lt_cv_archive_cmds_need_lc_CXX=yes
  12651. fi
  12652. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12653. else
  12654. cat conftest.err 1>&5
  12655. fi
  12656. $RM conftest*
  12657. fi
  12658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12659. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12660. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12661. ;;
  12662. esac
  12663. fi
  12664. ;;
  12665. esac
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12667. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12668. library_names_spec=
  12669. libname_spec='lib$name'
  12670. soname_spec=
  12671. shrext_cmds=".so"
  12672. postinstall_cmds=
  12673. postuninstall_cmds=
  12674. finish_cmds=
  12675. finish_eval=
  12676. shlibpath_var=
  12677. shlibpath_overrides_runpath=unknown
  12678. version_type=none
  12679. dynamic_linker="$host_os ld.so"
  12680. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12681. need_lib_prefix=unknown
  12682. hardcode_into_libs=no
  12683. # when you set need_version to no, make sure it does not cause -set_version
  12684. # flags to be left without arguments
  12685. need_version=unknown
  12686. case $host_os in
  12687. aix3*)
  12688. version_type=linux # correct to gnu/linux during the next big refactor
  12689. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12690. shlibpath_var=LIBPATH
  12691. # AIX 3 has no versioning support, so we append a major version to the name.
  12692. soname_spec='${libname}${release}${shared_ext}$major'
  12693. ;;
  12694. aix[4-9]*)
  12695. version_type=linux # correct to gnu/linux during the next big refactor
  12696. need_lib_prefix=no
  12697. need_version=no
  12698. hardcode_into_libs=yes
  12699. if test "$host_cpu" = ia64; then
  12700. # AIX 5 supports IA64
  12701. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12702. shlibpath_var=LD_LIBRARY_PATH
  12703. else
  12704. # With GCC up to 2.95.x, collect2 would create an import file
  12705. # for dependence libraries. The import file would start with
  12706. # the line `#! .'. This would cause the generated library to
  12707. # depend on `.', always an invalid library. This was fixed in
  12708. # development snapshots of GCC prior to 3.0.
  12709. case $host_os in
  12710. aix4 | aix4.[01] | aix4.[01].*)
  12711. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12712. echo ' yes '
  12713. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12714. :
  12715. else
  12716. can_build_shared=no
  12717. fi
  12718. ;;
  12719. esac
  12720. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12721. # soname into executable. Probably we can add versioning support to
  12722. # collect2, so additional links can be useful in future.
  12723. if test "$aix_use_runtimelinking" = yes; then
  12724. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12725. # instead of lib<name>.a to let people know that these are not
  12726. # typical AIX shared libraries.
  12727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12728. else
  12729. # We preserve .a as extension for shared libraries through AIX4.2
  12730. # and later when we are not doing run time linking.
  12731. library_names_spec='${libname}${release}.a $libname.a'
  12732. soname_spec='${libname}${release}${shared_ext}$major'
  12733. fi
  12734. shlibpath_var=LIBPATH
  12735. fi
  12736. ;;
  12737. amigaos*)
  12738. case $host_cpu in
  12739. powerpc)
  12740. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12741. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12743. ;;
  12744. m68k)
  12745. library_names_spec='$libname.ixlibrary $libname.a'
  12746. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12747. 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'
  12748. ;;
  12749. esac
  12750. ;;
  12751. beos*)
  12752. library_names_spec='${libname}${shared_ext}'
  12753. dynamic_linker="$host_os ld.so"
  12754. shlibpath_var=LIBRARY_PATH
  12755. ;;
  12756. bsdi[45]*)
  12757. version_type=linux # correct to gnu/linux during the next big refactor
  12758. need_version=no
  12759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12760. soname_spec='${libname}${release}${shared_ext}$major'
  12761. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12762. shlibpath_var=LD_LIBRARY_PATH
  12763. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12764. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12765. # the default ld.so.conf also contains /usr/contrib/lib and
  12766. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12767. # libtool to hard-code these into programs
  12768. ;;
  12769. cygwin* | mingw* | pw32* | cegcc*)
  12770. version_type=windows
  12771. shrext_cmds=".dll"
  12772. need_version=no
  12773. need_lib_prefix=no
  12774. case $GCC,$cc_basename in
  12775. yes,*)
  12776. # gcc
  12777. library_names_spec='$libname.dll.a'
  12778. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12779. postinstall_cmds='base_file=`basename \${file}`~
  12780. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12781. dldir=$destdir/`dirname \$dlpath`~
  12782. test -d \$dldir || mkdir -p \$dldir~
  12783. $install_prog $dir/$dlname \$dldir/$dlname~
  12784. chmod a+x \$dldir/$dlname~
  12785. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12786. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12787. fi'
  12788. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12789. dlpath=$dir/\$dldll~
  12790. $RM \$dlpath'
  12791. shlibpath_overrides_runpath=yes
  12792. case $host_os in
  12793. cygwin*)
  12794. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12795. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12796. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12797. ;;
  12798. mingw* | cegcc*)
  12799. # MinGW DLLs use traditional 'lib' prefix
  12800. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12801. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12802. ;;
  12803. pw32*)
  12804. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12805. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12806. ;;
  12807. esac
  12808. dynamic_linker='Win32 ld.exe'
  12809. ;;
  12810. *,cl*)
  12811. # Native MSVC
  12812. libname_spec='$name'
  12813. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12814. library_names_spec='${libname}.dll.lib'
  12815. case $build_os in
  12816. mingw*)
  12817. sys_lib_search_path_spec=
  12818. lt_save_ifs=$IFS
  12819. IFS=';'
  12820. for lt_path in $LIB
  12821. do
  12822. IFS=$lt_save_ifs
  12823. # Let DOS variable expansion print the short 8.3 style file name.
  12824. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12825. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12826. done
  12827. IFS=$lt_save_ifs
  12828. # Convert to MSYS style.
  12829. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12830. ;;
  12831. cygwin*)
  12832. # Convert to unix form, then to dos form, then back to unix form
  12833. # but this time dos style (no spaces!) so that the unix form looks
  12834. # like /cygdrive/c/PROGRA~1:/cygdr...
  12835. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12836. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12837. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12838. ;;
  12839. *)
  12840. sys_lib_search_path_spec="$LIB"
  12841. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12842. # It is most probably a Windows format PATH.
  12843. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12844. else
  12845. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12846. fi
  12847. # FIXME: find the short name or the path components, as spaces are
  12848. # common. (e.g. "Program Files" -> "PROGRA~1")
  12849. ;;
  12850. esac
  12851. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12852. postinstall_cmds='base_file=`basename \${file}`~
  12853. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12854. dldir=$destdir/`dirname \$dlpath`~
  12855. test -d \$dldir || mkdir -p \$dldir~
  12856. $install_prog $dir/$dlname \$dldir/$dlname'
  12857. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12858. dlpath=$dir/\$dldll~
  12859. $RM \$dlpath'
  12860. shlibpath_overrides_runpath=yes
  12861. dynamic_linker='Win32 link.exe'
  12862. ;;
  12863. *)
  12864. # Assume MSVC wrapper
  12865. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12866. dynamic_linker='Win32 ld.exe'
  12867. ;;
  12868. esac
  12869. # FIXME: first we should search . and the directory the executable is in
  12870. shlibpath_var=PATH
  12871. ;;
  12872. darwin* | rhapsody*)
  12873. dynamic_linker="$host_os dyld"
  12874. version_type=darwin
  12875. need_lib_prefix=no
  12876. need_version=no
  12877. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12878. soname_spec='${libname}${release}${major}$shared_ext'
  12879. shlibpath_overrides_runpath=yes
  12880. shlibpath_var=DYLD_LIBRARY_PATH
  12881. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12882. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12883. ;;
  12884. dgux*)
  12885. version_type=linux # correct to gnu/linux during the next big refactor
  12886. need_lib_prefix=no
  12887. need_version=no
  12888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12889. soname_spec='${libname}${release}${shared_ext}$major'
  12890. shlibpath_var=LD_LIBRARY_PATH
  12891. ;;
  12892. freebsd* | dragonfly*)
  12893. # DragonFly does not have aout. When/if they implement a new
  12894. # versioning mechanism, adjust this.
  12895. if test -x /usr/bin/objformat; then
  12896. objformat=`/usr/bin/objformat`
  12897. else
  12898. case $host_os in
  12899. freebsd[23].*) objformat=aout ;;
  12900. *) objformat=elf ;;
  12901. esac
  12902. fi
  12903. version_type=freebsd-$objformat
  12904. case $version_type in
  12905. freebsd-elf*)
  12906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12907. need_version=no
  12908. need_lib_prefix=no
  12909. ;;
  12910. freebsd-*)
  12911. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12912. need_version=yes
  12913. ;;
  12914. esac
  12915. shlibpath_var=LD_LIBRARY_PATH
  12916. case $host_os in
  12917. freebsd2.*)
  12918. shlibpath_overrides_runpath=yes
  12919. ;;
  12920. freebsd3.[01]* | freebsdelf3.[01]*)
  12921. shlibpath_overrides_runpath=yes
  12922. hardcode_into_libs=yes
  12923. ;;
  12924. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12925. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12926. shlibpath_overrides_runpath=no
  12927. hardcode_into_libs=yes
  12928. ;;
  12929. *) # from 4.6 on, and DragonFly
  12930. shlibpath_overrides_runpath=yes
  12931. hardcode_into_libs=yes
  12932. ;;
  12933. esac
  12934. ;;
  12935. gnu*)
  12936. version_type=linux # correct to gnu/linux during the next big refactor
  12937. need_lib_prefix=no
  12938. need_version=no
  12939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12940. soname_spec='${libname}${release}${shared_ext}$major'
  12941. shlibpath_var=LD_LIBRARY_PATH
  12942. shlibpath_overrides_runpath=no
  12943. hardcode_into_libs=yes
  12944. ;;
  12945. haiku*)
  12946. version_type=linux # correct to gnu/linux during the next big refactor
  12947. need_lib_prefix=no
  12948. need_version=no
  12949. dynamic_linker="$host_os runtime_loader"
  12950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12951. soname_spec='${libname}${release}${shared_ext}$major'
  12952. shlibpath_var=LIBRARY_PATH
  12953. shlibpath_overrides_runpath=yes
  12954. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12955. hardcode_into_libs=yes
  12956. ;;
  12957. hpux9* | hpux10* | hpux11*)
  12958. # Give a soname corresponding to the major version so that dld.sl refuses to
  12959. # link against other versions.
  12960. version_type=sunos
  12961. need_lib_prefix=no
  12962. need_version=no
  12963. case $host_cpu in
  12964. ia64*)
  12965. shrext_cmds='.so'
  12966. hardcode_into_libs=yes
  12967. dynamic_linker="$host_os dld.so"
  12968. shlibpath_var=LD_LIBRARY_PATH
  12969. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12971. soname_spec='${libname}${release}${shared_ext}$major'
  12972. if test "X$HPUX_IA64_MODE" = X32; then
  12973. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12974. else
  12975. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12976. fi
  12977. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12978. ;;
  12979. hppa*64*)
  12980. shrext_cmds='.sl'
  12981. hardcode_into_libs=yes
  12982. dynamic_linker="$host_os dld.sl"
  12983. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12984. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12986. soname_spec='${libname}${release}${shared_ext}$major'
  12987. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12988. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12989. ;;
  12990. *)
  12991. shrext_cmds='.sl'
  12992. dynamic_linker="$host_os dld.sl"
  12993. shlibpath_var=SHLIB_PATH
  12994. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12996. soname_spec='${libname}${release}${shared_ext}$major'
  12997. ;;
  12998. esac
  12999. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13000. postinstall_cmds='chmod 555 $lib'
  13001. # or fails outright, so override atomically:
  13002. install_override_mode=555
  13003. ;;
  13004. interix[3-9]*)
  13005. version_type=linux # correct to gnu/linux during the next big refactor
  13006. need_lib_prefix=no
  13007. need_version=no
  13008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13009. soname_spec='${libname}${release}${shared_ext}$major'
  13010. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13011. shlibpath_var=LD_LIBRARY_PATH
  13012. shlibpath_overrides_runpath=no
  13013. hardcode_into_libs=yes
  13014. ;;
  13015. irix5* | irix6* | nonstopux*)
  13016. case $host_os in
  13017. nonstopux*) version_type=nonstopux ;;
  13018. *)
  13019. if test "$lt_cv_prog_gnu_ld" = yes; then
  13020. version_type=linux # correct to gnu/linux during the next big refactor
  13021. else
  13022. version_type=irix
  13023. fi ;;
  13024. esac
  13025. need_lib_prefix=no
  13026. need_version=no
  13027. soname_spec='${libname}${release}${shared_ext}$major'
  13028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13029. case $host_os in
  13030. irix5* | nonstopux*)
  13031. libsuff= shlibsuff=
  13032. ;;
  13033. *)
  13034. case $LD in # libtool.m4 will add one of these switches to LD
  13035. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13036. libsuff= shlibsuff= libmagic=32-bit;;
  13037. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13038. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13039. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13040. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13041. *) libsuff= shlibsuff= libmagic=never-match;;
  13042. esac
  13043. ;;
  13044. esac
  13045. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13046. shlibpath_overrides_runpath=no
  13047. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13048. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13049. hardcode_into_libs=yes
  13050. ;;
  13051. # No shared lib support for Linux oldld, aout, or coff.
  13052. linux*oldld* | linux*aout* | linux*coff*)
  13053. dynamic_linker=no
  13054. ;;
  13055. # This must be glibc/ELF.
  13056. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13057. version_type=linux # correct to gnu/linux during the next big refactor
  13058. need_lib_prefix=no
  13059. need_version=no
  13060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13061. soname_spec='${libname}${release}${shared_ext}$major'
  13062. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13063. shlibpath_var=LD_LIBRARY_PATH
  13064. shlibpath_overrides_runpath=no
  13065. # Some binutils ld are patched to set DT_RUNPATH
  13066. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13067. $as_echo_n "(cached) " >&6
  13068. else
  13069. lt_cv_shlibpath_overrides_runpath=no
  13070. save_LDFLAGS=$LDFLAGS
  13071. save_libdir=$libdir
  13072. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13073. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13075. /* end confdefs.h. */
  13076. int
  13077. main ()
  13078. {
  13079. ;
  13080. return 0;
  13081. }
  13082. _ACEOF
  13083. if ac_fn_cxx_try_link "$LINENO"; then :
  13084. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13085. lt_cv_shlibpath_overrides_runpath=yes
  13086. fi
  13087. fi
  13088. rm -f core conftest.err conftest.$ac_objext \
  13089. conftest$ac_exeext conftest.$ac_ext
  13090. LDFLAGS=$save_LDFLAGS
  13091. libdir=$save_libdir
  13092. fi
  13093. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13094. # This implies no fast_install, which is unacceptable.
  13095. # Some rework will be needed to allow for fast_install
  13096. # before this can be enabled.
  13097. hardcode_into_libs=yes
  13098. # Append ld.so.conf contents to the search path
  13099. if test -f /etc/ld.so.conf; then
  13100. 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' ' '`
  13101. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13102. fi
  13103. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13104. # powerpc, because MkLinux only supported shared libraries with the
  13105. # GNU dynamic linker. Since this was broken with cross compilers,
  13106. # most powerpc-linux boxes support dynamic linking these days and
  13107. # people can always --disable-shared, the test was removed, and we
  13108. # assume the GNU/Linux dynamic linker is in use.
  13109. dynamic_linker='GNU/Linux ld.so'
  13110. ;;
  13111. netbsd*)
  13112. version_type=sunos
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13117. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13118. dynamic_linker='NetBSD (a.out) ld.so'
  13119. else
  13120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13121. soname_spec='${libname}${release}${shared_ext}$major'
  13122. dynamic_linker='NetBSD ld.elf_so'
  13123. fi
  13124. shlibpath_var=LD_LIBRARY_PATH
  13125. shlibpath_overrides_runpath=yes
  13126. hardcode_into_libs=yes
  13127. ;;
  13128. newsos6)
  13129. version_type=linux # correct to gnu/linux during the next big refactor
  13130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13131. shlibpath_var=LD_LIBRARY_PATH
  13132. shlibpath_overrides_runpath=yes
  13133. ;;
  13134. *nto* | *qnx*)
  13135. version_type=qnx
  13136. need_lib_prefix=no
  13137. need_version=no
  13138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13139. soname_spec='${libname}${release}${shared_ext}$major'
  13140. shlibpath_var=LD_LIBRARY_PATH
  13141. shlibpath_overrides_runpath=no
  13142. hardcode_into_libs=yes
  13143. dynamic_linker='ldqnx.so'
  13144. ;;
  13145. openbsd*)
  13146. version_type=sunos
  13147. sys_lib_dlsearch_path_spec="/usr/lib"
  13148. need_lib_prefix=no
  13149. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13150. case $host_os in
  13151. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13152. *) need_version=no ;;
  13153. esac
  13154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13155. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13156. shlibpath_var=LD_LIBRARY_PATH
  13157. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13158. case $host_os in
  13159. openbsd2.[89] | openbsd2.[89].*)
  13160. shlibpath_overrides_runpath=no
  13161. ;;
  13162. *)
  13163. shlibpath_overrides_runpath=yes
  13164. ;;
  13165. esac
  13166. else
  13167. shlibpath_overrides_runpath=yes
  13168. fi
  13169. ;;
  13170. os2*)
  13171. libname_spec='$name'
  13172. shrext_cmds=".dll"
  13173. need_lib_prefix=no
  13174. library_names_spec='$libname${shared_ext} $libname.a'
  13175. dynamic_linker='OS/2 ld.exe'
  13176. shlibpath_var=LIBPATH
  13177. ;;
  13178. osf3* | osf4* | osf5*)
  13179. version_type=osf
  13180. need_lib_prefix=no
  13181. need_version=no
  13182. soname_spec='${libname}${release}${shared_ext}$major'
  13183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13184. shlibpath_var=LD_LIBRARY_PATH
  13185. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13186. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13187. ;;
  13188. rdos*)
  13189. dynamic_linker=no
  13190. ;;
  13191. solaris*)
  13192. version_type=linux # correct to gnu/linux during the next big refactor
  13193. need_lib_prefix=no
  13194. need_version=no
  13195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13196. soname_spec='${libname}${release}${shared_ext}$major'
  13197. shlibpath_var=LD_LIBRARY_PATH
  13198. shlibpath_overrides_runpath=yes
  13199. hardcode_into_libs=yes
  13200. # ldd complains unless libraries are executable
  13201. postinstall_cmds='chmod +x $lib'
  13202. ;;
  13203. sunos4*)
  13204. version_type=sunos
  13205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13206. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13207. shlibpath_var=LD_LIBRARY_PATH
  13208. shlibpath_overrides_runpath=yes
  13209. if test "$with_gnu_ld" = yes; then
  13210. need_lib_prefix=no
  13211. fi
  13212. need_version=yes
  13213. ;;
  13214. sysv4 | sysv4.3*)
  13215. version_type=linux # correct to gnu/linux during the next big refactor
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13217. soname_spec='${libname}${release}${shared_ext}$major'
  13218. shlibpath_var=LD_LIBRARY_PATH
  13219. case $host_vendor in
  13220. sni)
  13221. shlibpath_overrides_runpath=no
  13222. need_lib_prefix=no
  13223. runpath_var=LD_RUN_PATH
  13224. ;;
  13225. siemens)
  13226. need_lib_prefix=no
  13227. ;;
  13228. motorola)
  13229. need_lib_prefix=no
  13230. need_version=no
  13231. shlibpath_overrides_runpath=no
  13232. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13233. ;;
  13234. esac
  13235. ;;
  13236. sysv4*MP*)
  13237. if test -d /usr/nec ;then
  13238. version_type=linux # correct to gnu/linux during the next big refactor
  13239. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13240. soname_spec='$libname${shared_ext}.$major'
  13241. shlibpath_var=LD_LIBRARY_PATH
  13242. fi
  13243. ;;
  13244. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13245. version_type=freebsd-elf
  13246. need_lib_prefix=no
  13247. need_version=no
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13249. soname_spec='${libname}${release}${shared_ext}$major'
  13250. shlibpath_var=LD_LIBRARY_PATH
  13251. shlibpath_overrides_runpath=yes
  13252. hardcode_into_libs=yes
  13253. if test "$with_gnu_ld" = yes; then
  13254. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13255. else
  13256. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13257. case $host_os in
  13258. sco3.2v5*)
  13259. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13260. ;;
  13261. esac
  13262. fi
  13263. sys_lib_dlsearch_path_spec='/usr/lib'
  13264. ;;
  13265. tpf*)
  13266. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13267. version_type=linux # correct to gnu/linux during the next big refactor
  13268. need_lib_prefix=no
  13269. need_version=no
  13270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13271. shlibpath_var=LD_LIBRARY_PATH
  13272. shlibpath_overrides_runpath=no
  13273. hardcode_into_libs=yes
  13274. ;;
  13275. uts4*)
  13276. version_type=linux # correct to gnu/linux during the next big refactor
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13278. soname_spec='${libname}${release}${shared_ext}$major'
  13279. shlibpath_var=LD_LIBRARY_PATH
  13280. ;;
  13281. *)
  13282. dynamic_linker=no
  13283. ;;
  13284. esac
  13285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13286. $as_echo "$dynamic_linker" >&6; }
  13287. test "$dynamic_linker" = no && can_build_shared=no
  13288. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13289. if test "$GCC" = yes; then
  13290. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13291. fi
  13292. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13293. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13294. fi
  13295. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13296. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13297. fi
  13298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13299. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13300. hardcode_action_CXX=
  13301. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13302. test -n "$runpath_var_CXX" ||
  13303. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13304. # We can hardcode non-existent directories.
  13305. if test "$hardcode_direct_CXX" != no &&
  13306. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13307. # have to relink, otherwise we might link with an installed library
  13308. # when we should be linking with a yet-to-be-installed one
  13309. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13310. test "$hardcode_minus_L_CXX" != no; then
  13311. # Linking always hardcodes the temporary library directory.
  13312. hardcode_action_CXX=relink
  13313. else
  13314. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13315. hardcode_action_CXX=immediate
  13316. fi
  13317. else
  13318. # We cannot hardcode anything, or else we can only hardcode existing
  13319. # directories.
  13320. hardcode_action_CXX=unsupported
  13321. fi
  13322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13323. $as_echo "$hardcode_action_CXX" >&6; }
  13324. if test "$hardcode_action_CXX" = relink ||
  13325. test "$inherit_rpath_CXX" = yes; then
  13326. # Fast installation is not supported
  13327. enable_fast_install=no
  13328. elif test "$shlibpath_overrides_runpath" = yes ||
  13329. test "$enable_shared" = no; then
  13330. # Fast installation is not necessary
  13331. enable_fast_install=needless
  13332. fi
  13333. fi # test -n "$compiler"
  13334. CC=$lt_save_CC
  13335. CFLAGS=$lt_save_CFLAGS
  13336. LDCXX=$LD
  13337. LD=$lt_save_LD
  13338. GCC=$lt_save_GCC
  13339. with_gnu_ld=$lt_save_with_gnu_ld
  13340. lt_cv_path_LDCXX=$lt_cv_path_LD
  13341. lt_cv_path_LD=$lt_save_path_LD
  13342. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13343. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13344. fi # test "$_lt_caught_CXX_error" != yes
  13345. ac_ext=c
  13346. ac_cpp='$CPP $CPPFLAGS'
  13347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13350. # Find a good install program. We prefer a C program (faster),
  13351. # so one script is as good as another. But avoid the broken or
  13352. # incompatible versions:
  13353. # SysV /etc/install, /usr/sbin/install
  13354. # SunOS /usr/etc/install
  13355. # IRIX /sbin/install
  13356. # AIX /bin/install
  13357. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13358. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13359. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13360. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13361. # OS/2's system install, which has a completely different semantic
  13362. # ./install, which can be erroneously created by make from ./install.sh.
  13363. # Reject install programs that cannot install multiple files.
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13365. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13366. if test -z "$INSTALL"; then
  13367. if ${ac_cv_path_install+:} false; then :
  13368. $as_echo_n "(cached) " >&6
  13369. else
  13370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13371. for as_dir in $PATH
  13372. do
  13373. IFS=$as_save_IFS
  13374. test -z "$as_dir" && as_dir=.
  13375. # Account for people who put trailing slashes in PATH elements.
  13376. case $as_dir/ in #((
  13377. ./ | .// | /[cC]/* | \
  13378. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13379. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13380. /usr/ucb/* ) ;;
  13381. *)
  13382. # OSF1 and SCO ODT 3.0 have their own names for install.
  13383. # Don't use installbsd from OSF since it installs stuff as root
  13384. # by default.
  13385. for ac_prog in ginstall scoinst install; do
  13386. for ac_exec_ext in '' $ac_executable_extensions; do
  13387. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13388. if test $ac_prog = install &&
  13389. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13390. # AIX install. It has an incompatible calling convention.
  13391. :
  13392. elif test $ac_prog = install &&
  13393. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13394. # program-specific install script used by HP pwplus--don't use.
  13395. :
  13396. else
  13397. rm -rf conftest.one conftest.two conftest.dir
  13398. echo one > conftest.one
  13399. echo two > conftest.two
  13400. mkdir conftest.dir
  13401. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13402. test -s conftest.one && test -s conftest.two &&
  13403. test -s conftest.dir/conftest.one &&
  13404. test -s conftest.dir/conftest.two
  13405. then
  13406. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13407. break 3
  13408. fi
  13409. fi
  13410. fi
  13411. done
  13412. done
  13413. ;;
  13414. esac
  13415. done
  13416. IFS=$as_save_IFS
  13417. rm -rf conftest.one conftest.two conftest.dir
  13418. fi
  13419. if test "${ac_cv_path_install+set}" = set; then
  13420. INSTALL=$ac_cv_path_install
  13421. else
  13422. # As a last resort, use the slow shell script. Don't cache a
  13423. # value for INSTALL within a source directory, because that will
  13424. # break other packages using the cache if that directory is
  13425. # removed, or if the value is a relative name.
  13426. INSTALL=$ac_install_sh
  13427. fi
  13428. fi
  13429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13430. $as_echo "$INSTALL" >&6; }
  13431. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13432. # It thinks the first close brace ends the variable substitution.
  13433. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13434. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13435. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13437. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13438. set x ${MAKE-make}
  13439. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13440. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13441. $as_echo_n "(cached) " >&6
  13442. else
  13443. cat >conftest.make <<\_ACEOF
  13444. SHELL = /bin/sh
  13445. all:
  13446. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13447. _ACEOF
  13448. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13449. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13450. *@@@%%%=?*=@@@%%%*)
  13451. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13452. *)
  13453. eval ac_cv_prog_make_${ac_make}_set=no;;
  13454. esac
  13455. rm -f conftest.make
  13456. fi
  13457. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13459. $as_echo "yes" >&6; }
  13460. SET_MAKE=
  13461. else
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13463. $as_echo "no" >&6; }
  13464. SET_MAKE="MAKE=${MAKE-make}"
  13465. fi
  13466. if test -n "$ac_tool_prefix"; then
  13467. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13468. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13470. $as_echo_n "checking for $ac_word... " >&6; }
  13471. if ${ac_cv_prog_WINDRES+:} false; then :
  13472. $as_echo_n "(cached) " >&6
  13473. else
  13474. if test -n "$WINDRES"; then
  13475. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13476. else
  13477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13478. for as_dir in $PATH
  13479. do
  13480. IFS=$as_save_IFS
  13481. test -z "$as_dir" && as_dir=.
  13482. for ac_exec_ext in '' $ac_executable_extensions; do
  13483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13484. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13486. break 2
  13487. fi
  13488. done
  13489. done
  13490. IFS=$as_save_IFS
  13491. fi
  13492. fi
  13493. WINDRES=$ac_cv_prog_WINDRES
  13494. if test -n "$WINDRES"; then
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13496. $as_echo "$WINDRES" >&6; }
  13497. else
  13498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13499. $as_echo "no" >&6; }
  13500. fi
  13501. fi
  13502. if test -z "$ac_cv_prog_WINDRES"; then
  13503. ac_ct_WINDRES=$WINDRES
  13504. # Extract the first word of "windres", so it can be a program name with args.
  13505. set dummy windres; ac_word=$2
  13506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13507. $as_echo_n "checking for $ac_word... " >&6; }
  13508. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13509. $as_echo_n "(cached) " >&6
  13510. else
  13511. if test -n "$ac_ct_WINDRES"; then
  13512. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13513. else
  13514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13515. for as_dir in $PATH
  13516. do
  13517. IFS=$as_save_IFS
  13518. test -z "$as_dir" && as_dir=.
  13519. for ac_exec_ext in '' $ac_executable_extensions; do
  13520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13521. ac_cv_prog_ac_ct_WINDRES="windres"
  13522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13523. break 2
  13524. fi
  13525. done
  13526. done
  13527. IFS=$as_save_IFS
  13528. fi
  13529. fi
  13530. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13531. if test -n "$ac_ct_WINDRES"; then
  13532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13533. $as_echo "$ac_ct_WINDRES" >&6; }
  13534. else
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13536. $as_echo "no" >&6; }
  13537. fi
  13538. if test "x$ac_ct_WINDRES" = x; then
  13539. WINDRES=":"
  13540. else
  13541. case $cross_compiling:$ac_tool_warned in
  13542. yes:)
  13543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13545. ac_tool_warned=yes ;;
  13546. esac
  13547. WINDRES=$ac_ct_WINDRES
  13548. fi
  13549. else
  13550. WINDRES="$ac_cv_prog_WINDRES"
  13551. fi
  13552. case "$host" in
  13553. *-*-mingw32*)
  13554. # Except on msys, where make can't handle full pathnames (bug 1972)
  13555. ;;
  13556. *)
  13557. srcdir=`cd $srcdir && pwd`
  13558. ;;
  13559. esac
  13560. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13561. if test x$srcdir != x.; then
  13562. INCLUDE="-Iinclude $INCLUDE"
  13563. elif test -d .hg; then
  13564. as_fn_error $? "
  13565. *** When building from Mercurial you should configure and build in a
  13566. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13567. " "$LINENO" 5
  13568. fi
  13569. BASE_CFLAGS=""
  13570. BASE_LDFLAGS=""
  13571. case "$host" in
  13572. *-*-cygwin*)
  13573. # We build SDL on cygwin without the UNIX emulation layer
  13574. save_CFLAGS="$CFLAGS"
  13575. have_no_cygwin=no
  13576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13577. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13578. CFLAGS="$save_CFLAGS -mno-cygwin"
  13579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13580. /* end confdefs.h. */
  13581. int
  13582. main ()
  13583. {
  13584. ;
  13585. return 0;
  13586. }
  13587. _ACEOF
  13588. if ac_fn_c_try_compile "$LINENO"; then :
  13589. have_no_cygwin=yes
  13590. fi
  13591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13593. $as_echo "$have_no_cygwin" >&6; }
  13594. CFLAGS="$save_CFLAGS"
  13595. if test x$have_no_cygwin = xyes; then
  13596. BASE_CFLAGS="-mno-cygwin"
  13597. BASE_LDFLAGS="-mno-cygwin"
  13598. fi
  13599. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13600. ;;
  13601. esac
  13602. # Uncomment the following line if you want to force SDL and applications
  13603. # built with it to be compiled for a particular architecture.
  13604. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13605. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13606. # The default optimization for SDL is -O3 (Bug #31)
  13607. if test "x$orig_CFLAGS" = x; then
  13608. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13609. fi
  13610. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13611. BUILD_LDFLAGS="$LDFLAGS"
  13612. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13613. ## These are common directories to find software packages
  13614. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13615. # if test -d $path/include; then
  13616. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13617. # fi
  13618. # if test -d $path/lib; then
  13619. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13620. # fi
  13621. #done
  13622. SDL_CFLAGS="$BASE_CFLAGS"
  13623. SDL_LIBS="-lSDL2"
  13624. if test "x$BASE_LDFLAGS" != x; then
  13625. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13626. fi
  13627. if test "x$EXTRA_CFLAGS" != x; then
  13628. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13629. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13630. fi
  13631. if test "x$EXTRA_LDFLAGS" != x; then
  13632. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13633. fi
  13634. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13635. find_lib()
  13636. {
  13637. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13638. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13639. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13640. if test "$cross_compiling" = yes; then
  13641. host_lib_path=""
  13642. else
  13643. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13644. fi
  13645. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13646. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13647. if test x$lib != x; then
  13648. echo $lib
  13649. return
  13650. fi
  13651. done
  13652. }
  13653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13654. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13655. if ${ac_cv_c_const+:} false; then :
  13656. $as_echo_n "(cached) " >&6
  13657. else
  13658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13659. /* end confdefs.h. */
  13660. int
  13661. main ()
  13662. {
  13663. #ifndef __cplusplus
  13664. /* Ultrix mips cc rejects this sort of thing. */
  13665. typedef int charset[2];
  13666. const charset cs = { 0, 0 };
  13667. /* SunOS 4.1.1 cc rejects this. */
  13668. char const *const *pcpcc;
  13669. char **ppc;
  13670. /* NEC SVR4.0.2 mips cc rejects this. */
  13671. struct point {int x, y;};
  13672. static struct point const zero = {0,0};
  13673. /* AIX XL C 1.02.0.0 rejects this.
  13674. It does not let you subtract one const X* pointer from another in
  13675. an arm of an if-expression whose if-part is not a constant
  13676. expression */
  13677. const char *g = "string";
  13678. pcpcc = &g + (g ? g-g : 0);
  13679. /* HPUX 7.0 cc rejects these. */
  13680. ++pcpcc;
  13681. ppc = (char**) pcpcc;
  13682. pcpcc = (char const *const *) ppc;
  13683. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13684. char tx;
  13685. char *t = &tx;
  13686. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13687. *t++ = 0;
  13688. if (s) return 0;
  13689. }
  13690. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13691. int x[] = {25, 17};
  13692. const int *foo = &x[0];
  13693. ++foo;
  13694. }
  13695. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13696. typedef const int *iptr;
  13697. iptr p = 0;
  13698. ++p;
  13699. }
  13700. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13701. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13702. struct s { int j; const int *ap[3]; } bx;
  13703. struct s *b = &bx; b->j = 5;
  13704. }
  13705. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13706. const int foo = 10;
  13707. if (!foo) return 0;
  13708. }
  13709. return !cs[0] && !zero.x;
  13710. #endif
  13711. ;
  13712. return 0;
  13713. }
  13714. _ACEOF
  13715. if ac_fn_c_try_compile "$LINENO"; then :
  13716. ac_cv_c_const=yes
  13717. else
  13718. ac_cv_c_const=no
  13719. fi
  13720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13721. fi
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13723. $as_echo "$ac_cv_c_const" >&6; }
  13724. if test $ac_cv_c_const = no; then
  13725. $as_echo "#define const /**/" >>confdefs.h
  13726. fi
  13727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13728. $as_echo_n "checking for inline... " >&6; }
  13729. if ${ac_cv_c_inline+:} false; then :
  13730. $as_echo_n "(cached) " >&6
  13731. else
  13732. ac_cv_c_inline=no
  13733. for ac_kw in inline __inline__ __inline; do
  13734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13735. /* end confdefs.h. */
  13736. #ifndef __cplusplus
  13737. typedef int foo_t;
  13738. static $ac_kw foo_t static_foo () {return 0; }
  13739. $ac_kw foo_t foo () {return 0; }
  13740. #endif
  13741. _ACEOF
  13742. if ac_fn_c_try_compile "$LINENO"; then :
  13743. ac_cv_c_inline=$ac_kw
  13744. fi
  13745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13746. test "$ac_cv_c_inline" != no && break
  13747. done
  13748. fi
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13750. $as_echo "$ac_cv_c_inline" >&6; }
  13751. case $ac_cv_c_inline in
  13752. inline | yes) ;;
  13753. *)
  13754. case $ac_cv_c_inline in
  13755. no) ac_val=;;
  13756. *) ac_val=$ac_cv_c_inline;;
  13757. esac
  13758. cat >>confdefs.h <<_ACEOF
  13759. #ifndef __cplusplus
  13760. #define inline $ac_val
  13761. #endif
  13762. _ACEOF
  13763. ;;
  13764. esac
  13765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13766. $as_echo_n "checking for working volatile... " >&6; }
  13767. if ${ac_cv_c_volatile+:} false; then :
  13768. $as_echo_n "(cached) " >&6
  13769. else
  13770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13771. /* end confdefs.h. */
  13772. int
  13773. main ()
  13774. {
  13775. volatile int x;
  13776. int * volatile y = (int *) 0;
  13777. return !x && !y;
  13778. ;
  13779. return 0;
  13780. }
  13781. _ACEOF
  13782. if ac_fn_c_try_compile "$LINENO"; then :
  13783. ac_cv_c_volatile=yes
  13784. else
  13785. ac_cv_c_volatile=no
  13786. fi
  13787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13788. fi
  13789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13790. $as_echo "$ac_cv_c_volatile" >&6; }
  13791. if test $ac_cv_c_volatile = no; then
  13792. $as_echo "#define volatile /**/" >>confdefs.h
  13793. fi
  13794. # Check whether --enable-assertions was given.
  13795. if test "${enable_assertions+set}" = set; then :
  13796. enableval=$enable_assertions;
  13797. else
  13798. enable_assertions=auto
  13799. fi
  13800. case "$enable_assertions" in
  13801. auto) # Use optimization settings to determine assertion level
  13802. ;;
  13803. disabled)
  13804. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13805. ;;
  13806. release)
  13807. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13808. ;;
  13809. enabled)
  13810. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13811. ;;
  13812. paranoid)
  13813. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13814. ;;
  13815. *)
  13816. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13817. ;;
  13818. esac
  13819. # Check whether --enable-dependency-tracking was given.
  13820. if test "${enable_dependency_tracking+set}" = set; then :
  13821. enableval=$enable_dependency_tracking;
  13822. else
  13823. enable_dependency_tracking=yes
  13824. fi
  13825. if test x$enable_dependency_tracking = xyes; then
  13826. have_gcc_mmd_mt=no
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13828. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13830. /* end confdefs.h. */
  13831. #if !defined(__GNUC__) || __GNUC__ < 3
  13832. #error Dependency tracking requires GCC 3.0 or newer
  13833. #endif
  13834. int
  13835. main ()
  13836. {
  13837. ;
  13838. return 0;
  13839. }
  13840. _ACEOF
  13841. if ac_fn_c_try_compile "$LINENO"; then :
  13842. have_gcc_mmd_mt=yes
  13843. fi
  13844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13846. $as_echo "$have_gcc_mmd_mt" >&6; }
  13847. if test x$have_gcc_mmd_mt = xyes; then
  13848. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13849. fi
  13850. fi
  13851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13852. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13853. have_no_undefined=no
  13854. case "$host" in
  13855. *-*-openbsd*)
  13856. ;;
  13857. *)
  13858. save_LDFLAGS="$LDFLAGS"
  13859. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13861. /* end confdefs.h. */
  13862. int
  13863. main ()
  13864. {
  13865. ;
  13866. return 0;
  13867. }
  13868. _ACEOF
  13869. if ac_fn_c_try_link "$LINENO"; then :
  13870. have_no_undefined=yes
  13871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13872. fi
  13873. rm -f core conftest.err conftest.$ac_objext \
  13874. conftest$ac_exeext conftest.$ac_ext
  13875. LDFLAGS="$save_LDFLAGS"
  13876. ;;
  13877. esac
  13878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13879. $as_echo "$have_no_undefined" >&6; }
  13880. # Check whether --enable-libc was given.
  13881. if test "${enable_libc+set}" = set; then :
  13882. enableval=$enable_libc;
  13883. else
  13884. enable_libc=yes
  13885. fi
  13886. if test x$enable_libc = xyes; then
  13887. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13889. $as_echo_n "checking for ANSI C header files... " >&6; }
  13890. if ${ac_cv_header_stdc+:} false; then :
  13891. $as_echo_n "(cached) " >&6
  13892. else
  13893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13894. /* end confdefs.h. */
  13895. #include <stdlib.h>
  13896. #include <stdarg.h>
  13897. #include <string.h>
  13898. #include <float.h>
  13899. int
  13900. main ()
  13901. {
  13902. ;
  13903. return 0;
  13904. }
  13905. _ACEOF
  13906. if ac_fn_c_try_compile "$LINENO"; then :
  13907. ac_cv_header_stdc=yes
  13908. else
  13909. ac_cv_header_stdc=no
  13910. fi
  13911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13912. if test $ac_cv_header_stdc = yes; then
  13913. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13915. /* end confdefs.h. */
  13916. #include <string.h>
  13917. _ACEOF
  13918. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13919. $EGREP "memchr" >/dev/null 2>&1; then :
  13920. else
  13921. ac_cv_header_stdc=no
  13922. fi
  13923. rm -f conftest*
  13924. fi
  13925. if test $ac_cv_header_stdc = yes; then
  13926. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13928. /* end confdefs.h. */
  13929. #include <stdlib.h>
  13930. _ACEOF
  13931. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13932. $EGREP "free" >/dev/null 2>&1; then :
  13933. else
  13934. ac_cv_header_stdc=no
  13935. fi
  13936. rm -f conftest*
  13937. fi
  13938. if test $ac_cv_header_stdc = yes; then
  13939. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13940. if test "$cross_compiling" = yes; then :
  13941. :
  13942. else
  13943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13944. /* end confdefs.h. */
  13945. #include <ctype.h>
  13946. #include <stdlib.h>
  13947. #if ((' ' & 0x0FF) == 0x020)
  13948. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13949. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13950. #else
  13951. # define ISLOWER(c) \
  13952. (('a' <= (c) && (c) <= 'i') \
  13953. || ('j' <= (c) && (c) <= 'r') \
  13954. || ('s' <= (c) && (c) <= 'z'))
  13955. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13956. #endif
  13957. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13958. int
  13959. main ()
  13960. {
  13961. int i;
  13962. for (i = 0; i < 256; i++)
  13963. if (XOR (islower (i), ISLOWER (i))
  13964. || toupper (i) != TOUPPER (i))
  13965. return 2;
  13966. return 0;
  13967. }
  13968. _ACEOF
  13969. if ac_fn_c_try_run "$LINENO"; then :
  13970. else
  13971. ac_cv_header_stdc=no
  13972. fi
  13973. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13974. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13975. fi
  13976. fi
  13977. fi
  13978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13979. $as_echo "$ac_cv_header_stdc" >&6; }
  13980. if test $ac_cv_header_stdc = yes; then
  13981. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13982. fi
  13983. 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
  13984. do :
  13985. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13986. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13987. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13988. cat >>confdefs.h <<_ACEOF
  13989. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13990. _ACEOF
  13991. fi
  13992. done
  13993. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13994. if test "x$ac_cv_type_size_t" = xyes; then :
  13995. else
  13996. cat >>confdefs.h <<_ACEOF
  13997. #define size_t unsigned int
  13998. _ACEOF
  13999. fi
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14001. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14002. if ${ac_cv_define_M_PI+:} false; then :
  14003. $as_echo_n "(cached) " >&6
  14004. else
  14005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14006. /* end confdefs.h. */
  14007. #include <math.h>
  14008. #ifdef M_PI
  14009. YES_IS_DEFINED
  14010. #endif
  14011. _ACEOF
  14012. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14013. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14014. ac_cv_define_M_PI=yes
  14015. else
  14016. ac_cv_define_M_PI=no
  14017. fi
  14018. rm -f conftest*
  14019. fi
  14020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14021. $as_echo "$ac_cv_define_M_PI" >&6; }
  14022. if test "$ac_cv_define_M_PI" = "yes" ; then
  14023. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14024. fi
  14025. case "$host" in
  14026. *-*-cygwin* | *-*-mingw32*)
  14027. ;;
  14028. *)
  14029. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14030. # for constant arguments. Useless!
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14032. $as_echo_n "checking for working alloca.h... " >&6; }
  14033. if ${ac_cv_working_alloca_h+:} false; then :
  14034. $as_echo_n "(cached) " >&6
  14035. else
  14036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14037. /* end confdefs.h. */
  14038. #include <alloca.h>
  14039. int
  14040. main ()
  14041. {
  14042. char *p = (char *) alloca (2 * sizeof (int));
  14043. if (p) return 0;
  14044. ;
  14045. return 0;
  14046. }
  14047. _ACEOF
  14048. if ac_fn_c_try_link "$LINENO"; then :
  14049. ac_cv_working_alloca_h=yes
  14050. else
  14051. ac_cv_working_alloca_h=no
  14052. fi
  14053. rm -f core conftest.err conftest.$ac_objext \
  14054. conftest$ac_exeext conftest.$ac_ext
  14055. fi
  14056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14057. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14058. if test $ac_cv_working_alloca_h = yes; then
  14059. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14060. fi
  14061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14062. $as_echo_n "checking for alloca... " >&6; }
  14063. if ${ac_cv_func_alloca_works+:} false; then :
  14064. $as_echo_n "(cached) " >&6
  14065. else
  14066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14067. /* end confdefs.h. */
  14068. #ifdef __GNUC__
  14069. # define alloca __builtin_alloca
  14070. #else
  14071. # ifdef _MSC_VER
  14072. # include <malloc.h>
  14073. # define alloca _alloca
  14074. # else
  14075. # ifdef HAVE_ALLOCA_H
  14076. # include <alloca.h>
  14077. # else
  14078. # ifdef _AIX
  14079. #pragma alloca
  14080. # else
  14081. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14082. void *alloca (size_t);
  14083. # endif
  14084. # endif
  14085. # endif
  14086. # endif
  14087. #endif
  14088. int
  14089. main ()
  14090. {
  14091. char *p = (char *) alloca (1);
  14092. if (p) return 0;
  14093. ;
  14094. return 0;
  14095. }
  14096. _ACEOF
  14097. if ac_fn_c_try_link "$LINENO"; then :
  14098. ac_cv_func_alloca_works=yes
  14099. else
  14100. ac_cv_func_alloca_works=no
  14101. fi
  14102. rm -f core conftest.err conftest.$ac_objext \
  14103. conftest$ac_exeext conftest.$ac_ext
  14104. fi
  14105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14106. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14107. if test $ac_cv_func_alloca_works = yes; then
  14108. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14109. else
  14110. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14111. # that cause trouble. Some versions do not even contain alloca or
  14112. # contain a buggy version. If you still want to use their alloca,
  14113. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14114. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14115. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14117. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14118. if ${ac_cv_os_cray+:} false; then :
  14119. $as_echo_n "(cached) " >&6
  14120. else
  14121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14122. /* end confdefs.h. */
  14123. #if defined CRAY && ! defined CRAY2
  14124. webecray
  14125. #else
  14126. wenotbecray
  14127. #endif
  14128. _ACEOF
  14129. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14130. $EGREP "webecray" >/dev/null 2>&1; then :
  14131. ac_cv_os_cray=yes
  14132. else
  14133. ac_cv_os_cray=no
  14134. fi
  14135. rm -f conftest*
  14136. fi
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14138. $as_echo "$ac_cv_os_cray" >&6; }
  14139. if test $ac_cv_os_cray = yes; then
  14140. for ac_func in _getb67 GETB67 getb67; do
  14141. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14142. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14143. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14144. cat >>confdefs.h <<_ACEOF
  14145. #define CRAY_STACKSEG_END $ac_func
  14146. _ACEOF
  14147. break
  14148. fi
  14149. done
  14150. fi
  14151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14152. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14153. if ${ac_cv_c_stack_direction+:} false; then :
  14154. $as_echo_n "(cached) " >&6
  14155. else
  14156. if test "$cross_compiling" = yes; then :
  14157. ac_cv_c_stack_direction=0
  14158. else
  14159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14160. /* end confdefs.h. */
  14161. $ac_includes_default
  14162. int
  14163. find_stack_direction (int *addr, int depth)
  14164. {
  14165. int dir, dummy = 0;
  14166. if (! addr)
  14167. addr = &dummy;
  14168. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14169. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14170. return dir + dummy;
  14171. }
  14172. int
  14173. main (int argc, char **argv)
  14174. {
  14175. return find_stack_direction (0, argc + !argv + 20) < 0;
  14176. }
  14177. _ACEOF
  14178. if ac_fn_c_try_run "$LINENO"; then :
  14179. ac_cv_c_stack_direction=1
  14180. else
  14181. ac_cv_c_stack_direction=-1
  14182. fi
  14183. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14184. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14185. fi
  14186. fi
  14187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14188. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14189. cat >>confdefs.h <<_ACEOF
  14190. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14191. _ACEOF
  14192. fi
  14193. ;;
  14194. esac
  14195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14196. $as_echo_n "checking for working memcmp... " >&6; }
  14197. if ${ac_cv_func_memcmp_working+:} false; then :
  14198. $as_echo_n "(cached) " >&6
  14199. else
  14200. if test "$cross_compiling" = yes; then :
  14201. ac_cv_func_memcmp_working=no
  14202. else
  14203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14204. /* end confdefs.h. */
  14205. $ac_includes_default
  14206. int
  14207. main ()
  14208. {
  14209. /* Some versions of memcmp are not 8-bit clean. */
  14210. char c0 = '\100', c1 = '\200', c2 = '\201';
  14211. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14212. return 1;
  14213. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14214. or more and with at least one buffer not starting on a 4-byte boundary.
  14215. William Lewis provided this test program. */
  14216. {
  14217. char foo[21];
  14218. char bar[21];
  14219. int i;
  14220. for (i = 0; i < 4; i++)
  14221. {
  14222. char *a = foo + i;
  14223. char *b = bar + i;
  14224. strcpy (a, "--------01111111");
  14225. strcpy (b, "--------10000000");
  14226. if (memcmp (a, b, 16) >= 0)
  14227. return 1;
  14228. }
  14229. return 0;
  14230. }
  14231. ;
  14232. return 0;
  14233. }
  14234. _ACEOF
  14235. if ac_fn_c_try_run "$LINENO"; then :
  14236. ac_cv_func_memcmp_working=yes
  14237. else
  14238. ac_cv_func_memcmp_working=no
  14239. fi
  14240. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14241. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14242. fi
  14243. fi
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14245. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14246. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14247. *" memcmp.$ac_objext "* ) ;;
  14248. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14249. ;;
  14250. esac
  14251. if test x$ac_cv_func_memcmp_working = xyes; then
  14252. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14253. fi
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14255. $as_echo_n "checking for working strtod... " >&6; }
  14256. if ${ac_cv_func_strtod+:} false; then :
  14257. $as_echo_n "(cached) " >&6
  14258. else
  14259. if test "$cross_compiling" = yes; then :
  14260. ac_cv_func_strtod=no
  14261. else
  14262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14263. /* end confdefs.h. */
  14264. $ac_includes_default
  14265. #ifndef strtod
  14266. double strtod ();
  14267. #endif
  14268. int
  14269. main()
  14270. {
  14271. {
  14272. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14273. char *string = " +69";
  14274. char *term;
  14275. double value;
  14276. value = strtod (string, &term);
  14277. if (value != 69 || term != (string + 4))
  14278. return 1;
  14279. }
  14280. {
  14281. /* Under Solaris 2.4, strtod returns the wrong value for the
  14282. terminating character under some conditions. */
  14283. char *string = "NaN";
  14284. char *term;
  14285. strtod (string, &term);
  14286. if (term != string && *(term - 1) == 0)
  14287. return 1;
  14288. }
  14289. return 0;
  14290. }
  14291. _ACEOF
  14292. if ac_fn_c_try_run "$LINENO"; then :
  14293. ac_cv_func_strtod=yes
  14294. else
  14295. ac_cv_func_strtod=no
  14296. fi
  14297. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14298. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14299. fi
  14300. fi
  14301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14302. $as_echo "$ac_cv_func_strtod" >&6; }
  14303. if test $ac_cv_func_strtod = no; then
  14304. case " $LIBOBJS " in
  14305. *" strtod.$ac_objext "* ) ;;
  14306. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14307. ;;
  14308. esac
  14309. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14310. if test "x$ac_cv_func_pow" = xyes; then :
  14311. fi
  14312. if test $ac_cv_func_pow = no; then
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14314. $as_echo_n "checking for pow in -lm... " >&6; }
  14315. if ${ac_cv_lib_m_pow+:} false; then :
  14316. $as_echo_n "(cached) " >&6
  14317. else
  14318. ac_check_lib_save_LIBS=$LIBS
  14319. LIBS="-lm $LIBS"
  14320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14321. /* end confdefs.h. */
  14322. /* Override any GCC internal prototype to avoid an error.
  14323. Use char because int might match the return type of a GCC
  14324. builtin and then its argument prototype would still apply. */
  14325. #ifdef __cplusplus
  14326. extern "C"
  14327. #endif
  14328. char pow ();
  14329. int
  14330. main ()
  14331. {
  14332. return pow ();
  14333. ;
  14334. return 0;
  14335. }
  14336. _ACEOF
  14337. if ac_fn_c_try_link "$LINENO"; then :
  14338. ac_cv_lib_m_pow=yes
  14339. else
  14340. ac_cv_lib_m_pow=no
  14341. fi
  14342. rm -f core conftest.err conftest.$ac_objext \
  14343. conftest$ac_exeext conftest.$ac_ext
  14344. LIBS=$ac_check_lib_save_LIBS
  14345. fi
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14347. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14348. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14349. POW_LIB=-lm
  14350. else
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14352. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14353. fi
  14354. fi
  14355. fi
  14356. if test x$ac_cv_func_strtod = xyes; then
  14357. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14358. fi
  14359. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14360. if test "x$ac_cv_func_mprotect" = xyes; then :
  14361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14362. /* end confdefs.h. */
  14363. #include <sys/types.h>
  14364. #include <sys/mman.h>
  14365. int
  14366. main ()
  14367. {
  14368. ;
  14369. return 0;
  14370. }
  14371. _ACEOF
  14372. if ac_fn_c_try_compile "$LINENO"; then :
  14373. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14374. fi
  14375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14376. fi
  14377. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr 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
  14378. do :
  14379. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14380. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14381. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14382. cat >>confdefs.h <<_ACEOF
  14383. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14384. _ACEOF
  14385. fi
  14386. done
  14387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14388. $as_echo_n "checking for pow in -lm... " >&6; }
  14389. if ${ac_cv_lib_m_pow+:} false; then :
  14390. $as_echo_n "(cached) " >&6
  14391. else
  14392. ac_check_lib_save_LIBS=$LIBS
  14393. LIBS="-lm $LIBS"
  14394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14395. /* end confdefs.h. */
  14396. /* Override any GCC internal prototype to avoid an error.
  14397. Use char because int might match the return type of a GCC
  14398. builtin and then its argument prototype would still apply. */
  14399. #ifdef __cplusplus
  14400. extern "C"
  14401. #endif
  14402. char pow ();
  14403. int
  14404. main ()
  14405. {
  14406. return pow ();
  14407. ;
  14408. return 0;
  14409. }
  14410. _ACEOF
  14411. if ac_fn_c_try_link "$LINENO"; then :
  14412. ac_cv_lib_m_pow=yes
  14413. else
  14414. ac_cv_lib_m_pow=no
  14415. fi
  14416. rm -f core conftest.err conftest.$ac_objext \
  14417. conftest$ac_exeext conftest.$ac_ext
  14418. LIBS=$ac_check_lib_save_LIBS
  14419. fi
  14420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14421. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14422. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14423. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14424. fi
  14425. 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
  14426. do :
  14427. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14428. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14429. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14430. cat >>confdefs.h <<_ACEOF
  14431. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14432. _ACEOF
  14433. fi
  14434. done
  14435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14436. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14437. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14438. $as_echo_n "(cached) " >&6
  14439. else
  14440. ac_check_lib_save_LIBS=$LIBS
  14441. LIBS="-liconv $LIBS"
  14442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14443. /* end confdefs.h. */
  14444. /* Override any GCC internal prototype to avoid an error.
  14445. Use char because int might match the return type of a GCC
  14446. builtin and then its argument prototype would still apply. */
  14447. #ifdef __cplusplus
  14448. extern "C"
  14449. #endif
  14450. char iconv_open ();
  14451. int
  14452. main ()
  14453. {
  14454. return iconv_open ();
  14455. ;
  14456. return 0;
  14457. }
  14458. _ACEOF
  14459. if ac_fn_c_try_link "$LINENO"; then :
  14460. ac_cv_lib_iconv_iconv_open=yes
  14461. else
  14462. ac_cv_lib_iconv_iconv_open=no
  14463. fi
  14464. rm -f core conftest.err conftest.$ac_objext \
  14465. conftest$ac_exeext conftest.$ac_ext
  14466. LIBS=$ac_check_lib_save_LIBS
  14467. fi
  14468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14469. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14470. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14471. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14472. fi
  14473. for ac_func in iconv
  14474. do :
  14475. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14476. if test "x$ac_cv_func_iconv" = xyes; then :
  14477. cat >>confdefs.h <<_ACEOF
  14478. #define HAVE_ICONV 1
  14479. _ACEOF
  14480. fi
  14481. done
  14482. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14483. "
  14484. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14485. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14486. fi
  14487. for ac_header in libunwind.h
  14488. do :
  14489. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14490. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14491. cat >>confdefs.h <<_ACEOF
  14492. #define HAVE_LIBUNWIND_H 1
  14493. _ACEOF
  14494. fi
  14495. done
  14496. fi
  14497. # Check whether --enable-gcc-atomics was given.
  14498. if test "${enable_gcc_atomics+set}" = set; then :
  14499. enableval=$enable_gcc_atomics;
  14500. else
  14501. enable_gcc_atomics=yes
  14502. fi
  14503. if test x$enable_gcc_atomics = xyes; then
  14504. have_gcc_atomics=no
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14506. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14508. /* end confdefs.h. */
  14509. int
  14510. main ()
  14511. {
  14512. int a;
  14513. void *x, *y, *z;
  14514. __sync_lock_test_and_set(&a, 4);
  14515. __sync_lock_test_and_set(&x, y);
  14516. __sync_fetch_and_add(&a, 1);
  14517. __sync_bool_compare_and_swap(&a, 5, 10);
  14518. __sync_bool_compare_and_swap(&x, y, z);
  14519. ;
  14520. return 0;
  14521. }
  14522. _ACEOF
  14523. if ac_fn_c_try_link "$LINENO"; then :
  14524. have_gcc_atomics=yes
  14525. fi
  14526. rm -f core conftest.err conftest.$ac_objext \
  14527. conftest$ac_exeext conftest.$ac_ext
  14528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14529. $as_echo "$have_gcc_atomics" >&6; }
  14530. if test x$have_gcc_atomics = xyes; then
  14531. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14532. else
  14533. # See if we have the minimum operation needed for GCC atomics
  14534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14535. /* end confdefs.h. */
  14536. int
  14537. main ()
  14538. {
  14539. int a;
  14540. __sync_lock_test_and_set(&a, 1);
  14541. __sync_lock_release(&a);
  14542. ;
  14543. return 0;
  14544. }
  14545. _ACEOF
  14546. if ac_fn_c_try_link "$LINENO"; then :
  14547. have_gcc_sync_lock_test_and_set=yes
  14548. fi
  14549. rm -f core conftest.err conftest.$ac_objext \
  14550. conftest$ac_exeext conftest.$ac_ext
  14551. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14552. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14553. fi
  14554. fi
  14555. fi
  14556. # Standard C sources
  14557. SOURCES="$SOURCES $srcdir/src/*.c"
  14558. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14559. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14560. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14561. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14562. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14563. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14564. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14565. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14566. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14567. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14568. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14569. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14570. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14571. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14572. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14573. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14574. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14575. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14576. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14577. # Check whether --enable-atomic was given.
  14578. if test "${enable_atomic+set}" = set; then :
  14579. enableval=$enable_atomic;
  14580. else
  14581. enable_atomic=yes
  14582. fi
  14583. if test x$enable_atomic != xyes; then
  14584. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14585. else
  14586. SUMMARY_modules="${SUMMARY_modules} atomic"
  14587. fi
  14588. # Check whether --enable-audio was given.
  14589. if test "${enable_audio+set}" = set; then :
  14590. enableval=$enable_audio;
  14591. else
  14592. enable_audio=yes
  14593. fi
  14594. if test x$enable_audio != xyes; then
  14595. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14596. else
  14597. SUMMARY_modules="${SUMMARY_modules} audio"
  14598. fi
  14599. # Check whether --enable-video was given.
  14600. if test "${enable_video+set}" = set; then :
  14601. enableval=$enable_video;
  14602. else
  14603. enable_video=yes
  14604. fi
  14605. if test x$enable_video != xyes; then
  14606. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14607. else
  14608. SUMMARY_modules="${SUMMARY_modules} video"
  14609. fi
  14610. # Check whether --enable-render was given.
  14611. if test "${enable_render+set}" = set; then :
  14612. enableval=$enable_render;
  14613. else
  14614. enable_render=yes
  14615. fi
  14616. if test x$enable_render != xyes; then
  14617. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14618. else
  14619. SUMMARY_modules="${SUMMARY_modules} render"
  14620. fi
  14621. # Check whether --enable-events was given.
  14622. if test "${enable_events+set}" = set; then :
  14623. enableval=$enable_events;
  14624. else
  14625. enable_events=yes
  14626. fi
  14627. if test x$enable_events != xyes; then
  14628. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14629. else
  14630. SUMMARY_modules="${SUMMARY_modules} events"
  14631. fi
  14632. # Check whether --enable-joystick was given.
  14633. if test "${enable_joystick+set}" = set; then :
  14634. enableval=$enable_joystick;
  14635. else
  14636. enable_joystick=yes
  14637. fi
  14638. if test x$enable_joystick != xyes; then
  14639. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14640. else
  14641. SUMMARY_modules="${SUMMARY_modules} joystick"
  14642. fi
  14643. # Check whether --enable-haptic was given.
  14644. if test "${enable_haptic+set}" = set; then :
  14645. enableval=$enable_haptic;
  14646. else
  14647. enable_haptic=yes
  14648. fi
  14649. if test x$enable_haptic != xyes; then
  14650. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14651. else
  14652. SUMMARY_modules="${SUMMARY_modules} haptic"
  14653. fi
  14654. # Check whether --enable-sensor was given.
  14655. if test "${enable_sensor+set}" = set; then :
  14656. enableval=$enable_sensor;
  14657. else
  14658. enable_sensor=yes
  14659. fi
  14660. if test x$enable_sensor != xyes; then
  14661. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14662. else
  14663. SUMMARY_modules="${SUMMARY_modules} sensor"
  14664. fi
  14665. # Check whether --enable-power was given.
  14666. if test "${enable_power+set}" = set; then :
  14667. enableval=$enable_power;
  14668. else
  14669. enable_power=yes
  14670. fi
  14671. if test x$enable_power != xyes; then
  14672. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14673. else
  14674. SUMMARY_modules="${SUMMARY_modules} power"
  14675. fi
  14676. # Check whether --enable-filesystem was given.
  14677. if test "${enable_filesystem+set}" = set; then :
  14678. enableval=$enable_filesystem;
  14679. else
  14680. enable_filesystem=yes
  14681. fi
  14682. if test x$enable_filesystem != xyes; then
  14683. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14684. else
  14685. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14686. fi
  14687. # Check whether --enable-threads was given.
  14688. if test "${enable_threads+set}" = set; then :
  14689. enableval=$enable_threads;
  14690. else
  14691. enable_threads=yes
  14692. fi
  14693. if test x$enable_threads != xyes; then
  14694. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14695. else
  14696. SUMMARY_modules="${SUMMARY_modules} threads"
  14697. fi
  14698. # Check whether --enable-timers was given.
  14699. if test "${enable_timers+set}" = set; then :
  14700. enableval=$enable_timers;
  14701. else
  14702. enable_timers=yes
  14703. fi
  14704. if test x$enable_timers != xyes; then
  14705. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14706. else
  14707. SUMMARY_modules="${SUMMARY_modules} timers"
  14708. fi
  14709. # Check whether --enable-file was given.
  14710. if test "${enable_file+set}" = set; then :
  14711. enableval=$enable_file;
  14712. else
  14713. enable_file=yes
  14714. fi
  14715. if test x$enable_file != xyes; then
  14716. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14717. else
  14718. SUMMARY_modules="${SUMMARY_modules} file"
  14719. fi
  14720. # Check whether --enable-loadso was given.
  14721. if test "${enable_loadso+set}" = set; then :
  14722. enableval=$enable_loadso;
  14723. else
  14724. enable_loadso=yes
  14725. fi
  14726. if test x$enable_loadso != xyes; then
  14727. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14728. else
  14729. SUMMARY_modules="${SUMMARY_modules} loadso"
  14730. fi
  14731. # Check whether --enable-cpuinfo was given.
  14732. if test "${enable_cpuinfo+set}" = set; then :
  14733. enableval=$enable_cpuinfo;
  14734. else
  14735. enable_cpuinfo=yes
  14736. fi
  14737. if test x$enable_cpuinfo != xyes; then
  14738. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14739. else
  14740. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14741. fi
  14742. # Check whether --enable-assembly was given.
  14743. if test "${enable_assembly+set}" = set; then :
  14744. enableval=$enable_assembly;
  14745. else
  14746. enable_assembly=yes
  14747. fi
  14748. if test x$enable_assembly = xyes; then
  14749. SUMMARY_modules="${SUMMARY_modules} assembly"
  14750. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14751. # Make sure that we don't generate floating point code that would
  14752. # cause illegal instruction exceptions on older processors
  14753. case "$host" in
  14754. *-*-darwin*)
  14755. # Don't need to worry about Apple hardware, it's all SSE capable
  14756. default_ssemath=yes
  14757. ;;
  14758. *64-*-*)
  14759. # x86 64-bit architectures all have SSE instructions
  14760. default_ssemath=yes
  14761. ;;
  14762. *)
  14763. default_ssemath=no
  14764. ;;
  14765. esac
  14766. # Check whether --enable-ssemath was given.
  14767. if test "${enable_ssemath+set}" = set; then :
  14768. enableval=$enable_ssemath;
  14769. else
  14770. enable_ssemath=$default_ssemath
  14771. fi
  14772. if test x$enable_ssemath = xno; then
  14773. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14774. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14775. fi
  14776. fi
  14777. # Check whether --enable-mmx was given.
  14778. if test "${enable_mmx+set}" = set; then :
  14779. enableval=$enable_mmx;
  14780. else
  14781. enable_mmx=yes
  14782. fi
  14783. if test x$enable_mmx = xyes; then
  14784. save_CFLAGS="$CFLAGS"
  14785. have_gcc_mmx=no
  14786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14787. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14788. mmx_CFLAGS="-mmmx"
  14789. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14791. /* end confdefs.h. */
  14792. #ifdef __MINGW32__
  14793. #include <_mingw.h>
  14794. #ifdef __MINGW64_VERSION_MAJOR
  14795. #include <intrin.h>
  14796. #else
  14797. #include <mmintrin.h>
  14798. #endif
  14799. #else
  14800. #include <mmintrin.h>
  14801. #endif
  14802. #ifndef __MMX__
  14803. #error Assembler CPP flag not enabled
  14804. #endif
  14805. int
  14806. main ()
  14807. {
  14808. ;
  14809. return 0;
  14810. }
  14811. _ACEOF
  14812. if ac_fn_c_try_compile "$LINENO"; then :
  14813. have_gcc_mmx=yes
  14814. fi
  14815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14817. $as_echo "$have_gcc_mmx" >&6; }
  14818. CFLAGS="$save_CFLAGS"
  14819. if test x$have_gcc_mmx = xyes; then
  14820. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14821. SUMMARY_math="${SUMMARY_math} mmx"
  14822. fi
  14823. fi
  14824. # Check whether --enable-3dnow was given.
  14825. if test "${enable_3dnow+set}" = set; then :
  14826. enableval=$enable_3dnow;
  14827. else
  14828. enable_3dnow=yes
  14829. fi
  14830. if test x$enable_3dnow = xyes; then
  14831. save_CFLAGS="$CFLAGS"
  14832. have_gcc_3dnow=no
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14834. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14835. amd3dnow_CFLAGS="-m3dnow"
  14836. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14838. /* end confdefs.h. */
  14839. #include <mm3dnow.h>
  14840. #ifndef __3dNOW__
  14841. #error Assembler CPP flag not enabled
  14842. #endif
  14843. int
  14844. main ()
  14845. {
  14846. void *p = 0;
  14847. _m_prefetch(p);
  14848. ;
  14849. return 0;
  14850. }
  14851. _ACEOF
  14852. if ac_fn_c_try_link "$LINENO"; then :
  14853. have_gcc_3dnow=yes
  14854. fi
  14855. rm -f core conftest.err conftest.$ac_objext \
  14856. conftest$ac_exeext conftest.$ac_ext
  14857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14858. $as_echo "$have_gcc_3dnow" >&6; }
  14859. CFLAGS="$save_CFLAGS"
  14860. if test x$have_gcc_3dnow = xyes; then
  14861. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14862. SUMMARY_math="${SUMMARY_math} 3dnow"
  14863. fi
  14864. fi
  14865. # Check whether --enable-sse was given.
  14866. if test "${enable_sse+set}" = set; then :
  14867. enableval=$enable_sse;
  14868. else
  14869. enable_sse=yes
  14870. fi
  14871. if test x$enable_sse = xyes; then
  14872. save_CFLAGS="$CFLAGS"
  14873. have_gcc_sse=no
  14874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14875. $as_echo_n "checking for GCC -msse option... " >&6; }
  14876. sse_CFLAGS="-msse"
  14877. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14879. /* end confdefs.h. */
  14880. #ifdef __MINGW32__
  14881. #include <_mingw.h>
  14882. #ifdef __MINGW64_VERSION_MAJOR
  14883. #include <intrin.h>
  14884. #else
  14885. #include <xmmintrin.h>
  14886. #endif
  14887. #else
  14888. #include <xmmintrin.h>
  14889. #endif
  14890. #ifndef __SSE__
  14891. #error Assembler CPP flag not enabled
  14892. #endif
  14893. int
  14894. main ()
  14895. {
  14896. ;
  14897. return 0;
  14898. }
  14899. _ACEOF
  14900. if ac_fn_c_try_compile "$LINENO"; then :
  14901. have_gcc_sse=yes
  14902. fi
  14903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14905. $as_echo "$have_gcc_sse" >&6; }
  14906. CFLAGS="$save_CFLAGS"
  14907. if test x$have_gcc_sse = xyes; then
  14908. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14909. SUMMARY_math="${SUMMARY_math} sse"
  14910. fi
  14911. fi
  14912. # Check whether --enable-sse2 was given.
  14913. if test "${enable_sse2+set}" = set; then :
  14914. enableval=$enable_sse2;
  14915. else
  14916. enable_sse2=$default_ssemath
  14917. fi
  14918. if test x$enable_sse2 = xyes; then
  14919. save_CFLAGS="$CFLAGS"
  14920. have_gcc_sse2=no
  14921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14922. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14923. sse2_CFLAGS="-msse2"
  14924. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14926. /* end confdefs.h. */
  14927. #ifdef __MINGW32__
  14928. #include <_mingw.h>
  14929. #ifdef __MINGW64_VERSION_MAJOR
  14930. #include <intrin.h>
  14931. #else
  14932. #include <emmintrin.h>
  14933. #endif
  14934. #else
  14935. #include <emmintrin.h>
  14936. #endif
  14937. #ifndef __SSE2__
  14938. #error Assembler CPP flag not enabled
  14939. #endif
  14940. int
  14941. main ()
  14942. {
  14943. ;
  14944. return 0;
  14945. }
  14946. _ACEOF
  14947. if ac_fn_c_try_compile "$LINENO"; then :
  14948. have_gcc_sse2=yes
  14949. fi
  14950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14952. $as_echo "$have_gcc_sse2" >&6; }
  14953. CFLAGS="$save_CFLAGS"
  14954. if test x$have_gcc_sse2 = xyes; then
  14955. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14956. SUMMARY_math="${SUMMARY_math} sse2"
  14957. fi
  14958. fi
  14959. # Check whether --enable-sse3 was given.
  14960. if test "${enable_sse3+set}" = set; then :
  14961. enableval=$enable_sse3;
  14962. else
  14963. enable_sse3=$default_ssemath
  14964. fi
  14965. if test x$enable_sse3 = xyes; then
  14966. save_CFLAGS="$CFLAGS"
  14967. have_gcc_sse3=no
  14968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14969. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14970. sse3_CFLAGS="-msse3"
  14971. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14973. /* end confdefs.h. */
  14974. #ifdef __MINGW32__
  14975. #include <_mingw.h>
  14976. #ifdef __MINGW64_VERSION_MAJOR
  14977. #include <intrin.h>
  14978. #else
  14979. #include <pmmintrin.h>
  14980. #endif
  14981. #else
  14982. #include <pmmintrin.h>
  14983. #endif
  14984. #ifndef __SSE2__
  14985. #error Assembler CPP flag not enabled
  14986. #endif
  14987. int
  14988. main ()
  14989. {
  14990. ;
  14991. return 0;
  14992. }
  14993. _ACEOF
  14994. if ac_fn_c_try_compile "$LINENO"; then :
  14995. have_gcc_sse3=yes
  14996. fi
  14997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14999. $as_echo "$have_gcc_sse3" >&6; }
  15000. CFLAGS="$save_CFLAGS"
  15001. if test x$have_gcc_sse3 = xyes; then
  15002. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15003. SUMMARY_math="${SUMMARY_math} sse3"
  15004. fi
  15005. fi
  15006. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15007. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15008. have_immintrin_h_hdr=yes
  15009. else
  15010. have_immintrin_h_hdr=no
  15011. fi
  15012. if test x$have_immintrin_h_hdr = xyes; then
  15013. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15014. fi
  15015. # Check whether --enable-altivec was given.
  15016. if test "${enable_altivec+set}" = set; then :
  15017. enableval=$enable_altivec;
  15018. else
  15019. enable_altivec=yes
  15020. fi
  15021. if test x$enable_altivec = xyes; then
  15022. save_CFLAGS="$CFLAGS"
  15023. have_gcc_altivec=no
  15024. have_altivec_h_hdr=no
  15025. altivec_CFLAGS="-maltivec"
  15026. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15028. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15030. /* end confdefs.h. */
  15031. #include <altivec.h>
  15032. vector unsigned int vzero() {
  15033. return vec_splat_u32(0);
  15034. }
  15035. int
  15036. main ()
  15037. {
  15038. ;
  15039. return 0;
  15040. }
  15041. _ACEOF
  15042. if ac_fn_c_try_compile "$LINENO"; then :
  15043. have_gcc_altivec=yes
  15044. have_altivec_h_hdr=yes
  15045. fi
  15046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15048. $as_echo "$have_gcc_altivec" >&6; }
  15049. if test x$have_gcc_altivec = xno; then
  15050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15051. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15053. /* end confdefs.h. */
  15054. vector unsigned int vzero() {
  15055. return vec_splat_u32(0);
  15056. }
  15057. int
  15058. main ()
  15059. {
  15060. ;
  15061. return 0;
  15062. }
  15063. _ACEOF
  15064. if ac_fn_c_try_compile "$LINENO"; then :
  15065. have_gcc_altivec=yes
  15066. fi
  15067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15069. $as_echo "$have_gcc_altivec" >&6; }
  15070. fi
  15071. if test x$have_gcc_altivec = xno; then
  15072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15073. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15074. altivec_CFLAGS="-faltivec"
  15075. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15077. /* end confdefs.h. */
  15078. #include <altivec.h>
  15079. vector unsigned int vzero() {
  15080. return vec_splat_u32(0);
  15081. }
  15082. int
  15083. main ()
  15084. {
  15085. ;
  15086. return 0;
  15087. }
  15088. _ACEOF
  15089. if ac_fn_c_try_compile "$LINENO"; then :
  15090. have_gcc_altivec=yes
  15091. have_altivec_h_hdr=yes
  15092. fi
  15093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15095. $as_echo "$have_gcc_altivec" >&6; }
  15096. fi
  15097. if test x$have_gcc_altivec = xno; then
  15098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15099. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15101. /* end confdefs.h. */
  15102. vector unsigned int vzero() {
  15103. return vec_splat_u32(0);
  15104. }
  15105. int
  15106. main ()
  15107. {
  15108. ;
  15109. return 0;
  15110. }
  15111. _ACEOF
  15112. if ac_fn_c_try_compile "$LINENO"; then :
  15113. have_gcc_altivec=yes
  15114. fi
  15115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15117. $as_echo "$have_gcc_altivec" >&6; }
  15118. fi
  15119. CFLAGS="$save_CFLAGS"
  15120. if test x$have_gcc_altivec = xyes; then
  15121. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15122. if test x$have_altivec_h_hdr = xyes; then
  15123. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15124. fi
  15125. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15126. SUMMARY_math="${SUMMARY_math} altivec"
  15127. fi
  15128. fi
  15129. fi
  15130. CheckOSS()
  15131. {
  15132. # Check whether --enable-oss was given.
  15133. if test "${enable_oss+set}" = set; then :
  15134. enableval=$enable_oss;
  15135. else
  15136. enable_oss=maybe
  15137. fi
  15138. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15139. # use sndio instead. So on there, we default to disabled. You can force
  15140. # it on if you really want, though.
  15141. if test x$enable_oss = xmaybe; then
  15142. enable_oss=yes
  15143. case "$host" in
  15144. *-*-openbsd*)
  15145. enable_oss=no;;
  15146. esac
  15147. fi
  15148. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15150. $as_echo_n "checking for OSS audio support... " >&6; }
  15151. have_oss=no
  15152. if test x$have_oss != xyes; then
  15153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15154. /* end confdefs.h. */
  15155. #include <sys/soundcard.h>
  15156. int
  15157. main ()
  15158. {
  15159. int arg = SNDCTL_DSP_SETFRAGMENT;
  15160. ;
  15161. return 0;
  15162. }
  15163. _ACEOF
  15164. if ac_fn_c_try_compile "$LINENO"; then :
  15165. have_oss=yes
  15166. fi
  15167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15168. fi
  15169. if test x$have_oss != xyes; then
  15170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15171. /* end confdefs.h. */
  15172. #include <soundcard.h>
  15173. int
  15174. main ()
  15175. {
  15176. int arg = SNDCTL_DSP_SETFRAGMENT;
  15177. ;
  15178. return 0;
  15179. }
  15180. _ACEOF
  15181. if ac_fn_c_try_compile "$LINENO"; then :
  15182. have_oss=yes
  15183. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15184. fi
  15185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15186. fi
  15187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15188. $as_echo "$have_oss" >&6; }
  15189. if test x$have_oss = xyes; then
  15190. SUMMARY_audio="${SUMMARY_audio} oss"
  15191. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15192. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15193. have_audio=yes
  15194. # We may need to link with ossaudio emulation library
  15195. case "$host" in
  15196. *-*-openbsd*|*-*-netbsd*)
  15197. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15198. esac
  15199. fi
  15200. fi
  15201. }
  15202. CheckALSA()
  15203. {
  15204. # Check whether --enable-alsa was given.
  15205. if test "${enable_alsa+set}" = set; then :
  15206. enableval=$enable_alsa;
  15207. else
  15208. enable_alsa=yes
  15209. fi
  15210. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15211. alsa_save_CFLAGS="$CFLAGS"
  15212. alsa_save_LDFLAGS="$LDFLAGS"
  15213. alsa_save_LIBS="$LIBS"
  15214. alsa_found=yes
  15215. # Check whether --with-alsa-prefix was given.
  15216. if test "${with_alsa_prefix+set}" = set; then :
  15217. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15218. else
  15219. alsa_prefix=""
  15220. fi
  15221. # Check whether --with-alsa-inc-prefix was given.
  15222. if test "${with_alsa_inc_prefix+set}" = set; then :
  15223. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15224. else
  15225. alsa_inc_prefix=""
  15226. fi
  15227. # Check whether --enable-alsatest was given.
  15228. if test "${enable_alsatest+set}" = set; then :
  15229. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15230. else
  15231. enable_alsatest=yes
  15232. fi
  15233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15234. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15235. if test "$alsa_inc_prefix" != "" ; then
  15236. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15237. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15238. fi
  15239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15240. $as_echo "$ALSA_CFLAGS" >&6; }
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15242. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15243. if test "$alsa_prefix" != "" ; then
  15244. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15245. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15246. fi
  15247. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15248. LIBS=`echo $LIBS | sed 's/-lm//'`
  15249. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15250. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15251. LIBS=`echo $LIBS | sed 's/ //'`
  15252. LIBS="$ALSA_LIBS $LIBS"
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15254. $as_echo "$ALSA_LIBS" >&6; }
  15255. min_alsa_version=1.0.11
  15256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15257. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15258. no_alsa=""
  15259. alsa_min_major_version=`echo $min_alsa_version | \
  15260. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15261. alsa_min_minor_version=`echo $min_alsa_version | \
  15262. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15263. alsa_min_micro_version=`echo $min_alsa_version | \
  15264. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15265. ac_ext=c
  15266. ac_cpp='$CPP $CPPFLAGS'
  15267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15271. /* end confdefs.h. */
  15272. #include <alsa/asoundlib.h>
  15273. int
  15274. main ()
  15275. {
  15276. /* ensure backward compatibility */
  15277. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15278. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15279. #endif
  15280. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15281. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15282. #endif
  15283. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15284. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15285. #endif
  15286. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15287. exit(0);
  15288. # else
  15289. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15290. # error not present
  15291. # endif
  15292. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15293. exit(0);
  15294. # else
  15295. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15296. # error not present
  15297. # endif
  15298. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15299. # error not present
  15300. # endif
  15301. # endif
  15302. # endif
  15303. exit(0);
  15304. ;
  15305. return 0;
  15306. }
  15307. _ACEOF
  15308. if ac_fn_c_try_compile "$LINENO"; then :
  15309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15310. $as_echo "found." >&6; }
  15311. else
  15312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15313. $as_echo "not present." >&6; }
  15314. alsa_found=no
  15315. fi
  15316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15317. ac_ext=c
  15318. ac_cpp='$CPP $CPPFLAGS'
  15319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15322. if test "x$enable_alsatest" = "xyes"; then
  15323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15324. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15325. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15326. $as_echo_n "(cached) " >&6
  15327. else
  15328. ac_check_lib_save_LIBS=$LIBS
  15329. LIBS="-lasound $LIBS"
  15330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15331. /* end confdefs.h. */
  15332. /* Override any GCC internal prototype to avoid an error.
  15333. Use char because int might match the return type of a GCC
  15334. builtin and then its argument prototype would still apply. */
  15335. #ifdef __cplusplus
  15336. extern "C"
  15337. #endif
  15338. char snd_ctl_open ();
  15339. int
  15340. main ()
  15341. {
  15342. return snd_ctl_open ();
  15343. ;
  15344. return 0;
  15345. }
  15346. _ACEOF
  15347. if ac_fn_c_try_link "$LINENO"; then :
  15348. ac_cv_lib_asound_snd_ctl_open=yes
  15349. else
  15350. ac_cv_lib_asound_snd_ctl_open=no
  15351. fi
  15352. rm -f core conftest.err conftest.$ac_objext \
  15353. conftest$ac_exeext conftest.$ac_ext
  15354. LIBS=$ac_check_lib_save_LIBS
  15355. fi
  15356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15357. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15358. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15359. cat >>confdefs.h <<_ACEOF
  15360. #define HAVE_LIBASOUND 1
  15361. _ACEOF
  15362. LIBS="-lasound $LIBS"
  15363. else
  15364. alsa_found=no
  15365. fi
  15366. fi
  15367. if test "x$alsa_found" = "xyes" ; then
  15368. have_alsa=yes
  15369. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15370. LIBS=`echo $LIBS | sed 's/ //'`
  15371. LIBS="-lasound $LIBS"
  15372. fi
  15373. if test "x$alsa_found" = "xno" ; then
  15374. have_alsa=no
  15375. CFLAGS="$alsa_save_CFLAGS"
  15376. LDFLAGS="$alsa_save_LDFLAGS"
  15377. LIBS="$alsa_save_LIBS"
  15378. ALSA_CFLAGS=""
  15379. ALSA_LIBS=""
  15380. fi
  15381. # Restore all flags from before the ALSA detection runs
  15382. CFLAGS="$alsa_save_CFLAGS"
  15383. LDFLAGS="$alsa_save_LDFLAGS"
  15384. LIBS="$alsa_save_LIBS"
  15385. if test x$have_alsa = xyes; then
  15386. # Check whether --enable-alsa-shared was given.
  15387. if test "${enable_alsa_shared+set}" = set; then :
  15388. enableval=$enable_alsa_shared;
  15389. else
  15390. enable_alsa_shared=yes
  15391. fi
  15392. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15393. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15394. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15395. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15396. if test x$have_loadso != xyes && \
  15397. test x$enable_alsa_shared = xyes; then
  15398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15399. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15400. fi
  15401. if test x$have_loadso = xyes && \
  15402. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15403. echo "-- dynamic libasound -> $alsa_lib"
  15404. cat >>confdefs.h <<_ACEOF
  15405. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15406. _ACEOF
  15407. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15408. else
  15409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15410. SUMMARY_audio="${SUMMARY_audio} alsa"
  15411. fi
  15412. have_audio=yes
  15413. fi
  15414. fi
  15415. }
  15416. CheckJACK()
  15417. {
  15418. # Check whether --enable-jack was given.
  15419. if test "${enable_jack+set}" = set; then :
  15420. enableval=$enable_jack;
  15421. else
  15422. enable_jack=yes
  15423. fi
  15424. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15425. audio_jack=no
  15426. JACK_REQUIRED_VERSION=0.125
  15427. # Extract the first word of "pkg-config", so it can be a program name with args.
  15428. set dummy pkg-config; ac_word=$2
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15430. $as_echo_n "checking for $ac_word... " >&6; }
  15431. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15432. $as_echo_n "(cached) " >&6
  15433. else
  15434. case $PKG_CONFIG in
  15435. [\\/]* | ?:[\\/]*)
  15436. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15437. ;;
  15438. *)
  15439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15440. for as_dir in $PATH
  15441. do
  15442. IFS=$as_save_IFS
  15443. test -z "$as_dir" && as_dir=.
  15444. for ac_exec_ext in '' $ac_executable_extensions; do
  15445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15446. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15448. break 2
  15449. fi
  15450. done
  15451. done
  15452. IFS=$as_save_IFS
  15453. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15454. ;;
  15455. esac
  15456. fi
  15457. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15458. if test -n "$PKG_CONFIG"; then
  15459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15460. $as_echo "$PKG_CONFIG" >&6; }
  15461. else
  15462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15463. $as_echo "no" >&6; }
  15464. fi
  15465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15466. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15467. if test x$PKG_CONFIG != xno; then
  15468. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15469. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15470. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15471. audio_jack=yes
  15472. fi
  15473. fi
  15474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15475. $as_echo "$audio_jack" >&6; }
  15476. if test x$audio_jack = xyes; then
  15477. # Check whether --enable-jack-shared was given.
  15478. if test "${enable_jack_shared+set}" = set; then :
  15479. enableval=$enable_jack_shared;
  15480. else
  15481. enable_jack_shared=yes
  15482. fi
  15483. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15484. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15485. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15486. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15487. if test x$have_loadso != xyes && \
  15488. test x$enable_jack_shared = xyes; then
  15489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15490. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15491. fi
  15492. if test x$have_loadso = xyes && \
  15493. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15494. echo "-- dynamic libjack -> $jack_lib"
  15495. cat >>confdefs.h <<_ACEOF
  15496. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15497. _ACEOF
  15498. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15499. case "$host" in
  15500. # On Solaris, jack must be linked deferred explicitly
  15501. # to prevent undefined symbol failures.
  15502. *-*-solaris*)
  15503. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15504. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15505. esac
  15506. else
  15507. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15508. SUMMARY_audio="${SUMMARY_audio} jack"
  15509. fi
  15510. have_audio=yes
  15511. fi
  15512. fi
  15513. }
  15514. CheckESD()
  15515. {
  15516. # Check whether --enable-esd was given.
  15517. if test "${enable_esd+set}" = set; then :
  15518. enableval=$enable_esd;
  15519. else
  15520. enable_esd=yes
  15521. fi
  15522. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15523. # Check whether --with-esd-prefix was given.
  15524. if test "${with_esd_prefix+set}" = set; then :
  15525. withval=$with_esd_prefix; esd_prefix="$withval"
  15526. else
  15527. esd_prefix=""
  15528. fi
  15529. # Check whether --with-esd-exec-prefix was given.
  15530. if test "${with_esd_exec_prefix+set}" = set; then :
  15531. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15532. else
  15533. esd_exec_prefix=""
  15534. fi
  15535. # Check whether --enable-esdtest was given.
  15536. if test "${enable_esdtest+set}" = set; then :
  15537. enableval=$enable_esdtest;
  15538. else
  15539. enable_esdtest=yes
  15540. fi
  15541. if test x$esd_exec_prefix != x ; then
  15542. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15543. if test x${ESD_CONFIG+set} != xset ; then
  15544. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15545. fi
  15546. fi
  15547. if test x$esd_prefix != x ; then
  15548. esd_args="$esd_args --prefix=$esd_prefix"
  15549. if test x${ESD_CONFIG+set} != xset ; then
  15550. ESD_CONFIG=$esd_prefix/bin/esd-config
  15551. fi
  15552. fi
  15553. # Extract the first word of "esd-config", so it can be a program name with args.
  15554. set dummy esd-config; ac_word=$2
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15556. $as_echo_n "checking for $ac_word... " >&6; }
  15557. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15558. $as_echo_n "(cached) " >&6
  15559. else
  15560. case $ESD_CONFIG in
  15561. [\\/]* | ?:[\\/]*)
  15562. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15563. ;;
  15564. *)
  15565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15566. for as_dir in $PATH
  15567. do
  15568. IFS=$as_save_IFS
  15569. test -z "$as_dir" && as_dir=.
  15570. for ac_exec_ext in '' $ac_executable_extensions; do
  15571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15572. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15574. break 2
  15575. fi
  15576. done
  15577. done
  15578. IFS=$as_save_IFS
  15579. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15580. ;;
  15581. esac
  15582. fi
  15583. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15584. if test -n "$ESD_CONFIG"; then
  15585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15586. $as_echo "$ESD_CONFIG" >&6; }
  15587. else
  15588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15589. $as_echo "no" >&6; }
  15590. fi
  15591. min_esd_version=0.2.8
  15592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15593. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15594. no_esd=""
  15595. if test "$ESD_CONFIG" = "no" ; then
  15596. no_esd=yes
  15597. else
  15598. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15599. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15600. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15601. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15602. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15603. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15604. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15605. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15606. if test "x$enable_esdtest" = "xyes" ; then
  15607. ac_save_CFLAGS="$CFLAGS"
  15608. ac_save_LIBS="$LIBS"
  15609. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15610. LIBS="$LIBS $ESD_LIBS"
  15611. rm -f conf.esdtest
  15612. if test "$cross_compiling" = yes; then :
  15613. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15614. else
  15615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15616. /* end confdefs.h. */
  15617. #include <stdio.h>
  15618. #include <stdlib.h>
  15619. #include <string.h>
  15620. #include <esd.h>
  15621. char*
  15622. my_strdup (char *str)
  15623. {
  15624. char *new_str;
  15625. if (str)
  15626. {
  15627. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15628. strcpy (new_str, str);
  15629. }
  15630. else
  15631. new_str = NULL;
  15632. return new_str;
  15633. }
  15634. int main ()
  15635. {
  15636. int major, minor, micro;
  15637. char *tmp_version;
  15638. system ("touch conf.esdtest");
  15639. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15640. tmp_version = my_strdup("$min_esd_version");
  15641. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15642. printf("%s, bad version string\n", "$min_esd_version");
  15643. exit(1);
  15644. }
  15645. if (($esd_major_version > major) ||
  15646. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15647. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15648. {
  15649. return 0;
  15650. }
  15651. else
  15652. {
  15653. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15654. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15655. printf("*** best to upgrade to the required version.\n");
  15656. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15657. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15658. printf("*** config.cache before re-running configure\n");
  15659. return 1;
  15660. }
  15661. }
  15662. _ACEOF
  15663. if ac_fn_c_try_run "$LINENO"; then :
  15664. else
  15665. no_esd=yes
  15666. fi
  15667. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15668. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15669. fi
  15670. CFLAGS="$ac_save_CFLAGS"
  15671. LIBS="$ac_save_LIBS"
  15672. fi
  15673. fi
  15674. if test "x$no_esd" = x ; then
  15675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15676. $as_echo "yes" >&6; }
  15677. have_esd=yes
  15678. else
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15680. $as_echo "no" >&6; }
  15681. if test "$ESD_CONFIG" = "no" ; then
  15682. echo "*** The esd-config script installed by ESD could not be found"
  15683. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15684. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15685. echo "*** full path to esd-config."
  15686. else
  15687. if test -f conf.esdtest ; then
  15688. :
  15689. else
  15690. echo "*** Could not run ESD test program, checking why..."
  15691. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15692. LIBS="$LIBS $ESD_LIBS"
  15693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15694. /* end confdefs.h. */
  15695. #include <stdio.h>
  15696. #include <esd.h>
  15697. int
  15698. main ()
  15699. {
  15700. return 0;
  15701. ;
  15702. return 0;
  15703. }
  15704. _ACEOF
  15705. if ac_fn_c_try_link "$LINENO"; then :
  15706. echo "*** The test program compiled, but did not run. This usually means"
  15707. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15708. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15709. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15710. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15711. echo "*** is required on your system"
  15712. echo "***"
  15713. echo "*** If you have an old version installed, it is best to remove it, although"
  15714. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15715. else
  15716. echo "*** The test program failed to compile or link. See the file config.log for the"
  15717. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15718. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15719. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15720. fi
  15721. rm -f core conftest.err conftest.$ac_objext \
  15722. conftest$ac_exeext conftest.$ac_ext
  15723. CFLAGS="$ac_save_CFLAGS"
  15724. LIBS="$ac_save_LIBS"
  15725. fi
  15726. fi
  15727. ESD_CFLAGS=""
  15728. ESD_LIBS=""
  15729. have_esd=no
  15730. fi
  15731. rm -f conf.esdtest
  15732. if test x$have_esd = xyes; then
  15733. # Check whether --enable-esd-shared was given.
  15734. if test "${enable_esd_shared+set}" = set; then :
  15735. enableval=$enable_esd_shared;
  15736. else
  15737. enable_esd_shared=yes
  15738. fi
  15739. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15740. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15741. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15742. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15743. if test x$have_loadso != xyes && \
  15744. test x$enable_esd_shared = xyes; then
  15745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15746. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15747. fi
  15748. if test x$have_loadso = xyes && \
  15749. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15750. echo "-- dynamic libesd -> $esd_lib"
  15751. cat >>confdefs.h <<_ACEOF
  15752. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15753. _ACEOF
  15754. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15755. else
  15756. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15757. SUMMARY_audio="${SUMMARY_audio} esd"
  15758. fi
  15759. have_audio=yes
  15760. fi
  15761. fi
  15762. }
  15763. CheckPulseAudio()
  15764. {
  15765. # Check whether --enable-pulseaudio was given.
  15766. if test "${enable_pulseaudio+set}" = set; then :
  15767. enableval=$enable_pulseaudio;
  15768. else
  15769. enable_pulseaudio=yes
  15770. fi
  15771. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15772. audio_pulseaudio=no
  15773. PULSEAUDIO_REQUIRED_VERSION=0.9
  15774. # Extract the first word of "pkg-config", so it can be a program name with args.
  15775. set dummy pkg-config; ac_word=$2
  15776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15777. $as_echo_n "checking for $ac_word... " >&6; }
  15778. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15779. $as_echo_n "(cached) " >&6
  15780. else
  15781. case $PKG_CONFIG in
  15782. [\\/]* | ?:[\\/]*)
  15783. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15784. ;;
  15785. *)
  15786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15787. for as_dir in $PATH
  15788. do
  15789. IFS=$as_save_IFS
  15790. test -z "$as_dir" && as_dir=.
  15791. for ac_exec_ext in '' $ac_executable_extensions; do
  15792. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15793. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15795. break 2
  15796. fi
  15797. done
  15798. done
  15799. IFS=$as_save_IFS
  15800. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15801. ;;
  15802. esac
  15803. fi
  15804. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15805. if test -n "$PKG_CONFIG"; then
  15806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15807. $as_echo "$PKG_CONFIG" >&6; }
  15808. else
  15809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15810. $as_echo "no" >&6; }
  15811. fi
  15812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15813. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15814. if test x$PKG_CONFIG != xno; then
  15815. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15816. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15817. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15818. audio_pulseaudio=yes
  15819. fi
  15820. fi
  15821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15822. $as_echo "$audio_pulseaudio" >&6; }
  15823. if test x$audio_pulseaudio = xyes; then
  15824. # Check whether --enable-pulseaudio-shared was given.
  15825. if test "${enable_pulseaudio_shared+set}" = set; then :
  15826. enableval=$enable_pulseaudio_shared;
  15827. else
  15828. enable_pulseaudio_shared=yes
  15829. fi
  15830. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15831. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15832. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15833. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15834. if test x$have_loadso != xyes && \
  15835. test x$enable_pulseaudio_shared = xyes; then
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15837. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15838. fi
  15839. if test x$have_loadso = xyes && \
  15840. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15841. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15842. cat >>confdefs.h <<_ACEOF
  15843. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15844. _ACEOF
  15845. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15846. case "$host" in
  15847. # On Solaris, pulseaudio must be linked deferred explicitly
  15848. # to prevent undefined symbol failures.
  15849. *-*-solaris*)
  15850. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15851. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15852. esac
  15853. else
  15854. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15855. SUMMARY_audio="${SUMMARY_audio} pulse"
  15856. fi
  15857. have_audio=yes
  15858. fi
  15859. fi
  15860. }
  15861. CheckARTSC()
  15862. {
  15863. # Check whether --enable-arts was given.
  15864. if test "${enable_arts+set}" = set; then :
  15865. enableval=$enable_arts;
  15866. else
  15867. enable_arts=yes
  15868. fi
  15869. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15870. # Extract the first word of "artsc-config", so it can be a program name with args.
  15871. set dummy artsc-config; ac_word=$2
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15873. $as_echo_n "checking for $ac_word... " >&6; }
  15874. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15875. $as_echo_n "(cached) " >&6
  15876. else
  15877. case $ARTSCONFIG in
  15878. [\\/]* | ?:[\\/]*)
  15879. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15880. ;;
  15881. *)
  15882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15883. for as_dir in $PATH
  15884. do
  15885. IFS=$as_save_IFS
  15886. test -z "$as_dir" && as_dir=.
  15887. for ac_exec_ext in '' $ac_executable_extensions; do
  15888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15889. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15891. break 2
  15892. fi
  15893. done
  15894. done
  15895. IFS=$as_save_IFS
  15896. ;;
  15897. esac
  15898. fi
  15899. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15900. if test -n "$ARTSCONFIG"; then
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15902. $as_echo "$ARTSCONFIG" >&6; }
  15903. else
  15904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15905. $as_echo "no" >&6; }
  15906. fi
  15907. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15908. : # arts isn't installed
  15909. else
  15910. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15911. ARTS_LIBS=`$ARTSCONFIG --libs`
  15912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15913. $as_echo_n "checking for aRts development environment... " >&6; }
  15914. audio_arts=no
  15915. save_CFLAGS="$CFLAGS"
  15916. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15918. /* end confdefs.h. */
  15919. #include <artsc.h>
  15920. int
  15921. main ()
  15922. {
  15923. arts_stream_t stream;
  15924. ;
  15925. return 0;
  15926. }
  15927. _ACEOF
  15928. if ac_fn_c_try_compile "$LINENO"; then :
  15929. audio_arts=yes
  15930. fi
  15931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15932. CFLAGS="$save_CFLAGS"
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15934. $as_echo "$audio_arts" >&6; }
  15935. if test x$audio_arts = xyes; then
  15936. # Check whether --enable-arts-shared was given.
  15937. if test "${enable_arts_shared+set}" = set; then :
  15938. enableval=$enable_arts_shared;
  15939. else
  15940. enable_arts_shared=yes
  15941. fi
  15942. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15943. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15944. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15945. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15946. if test x$have_loadso != xyes && \
  15947. test x$enable_arts_shared = xyes; then
  15948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15949. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15950. fi
  15951. if test x$have_loadso = xyes && \
  15952. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15953. echo "-- dynamic libartsc -> $arts_lib"
  15954. cat >>confdefs.h <<_ACEOF
  15955. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15956. _ACEOF
  15957. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15958. else
  15959. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15960. SUMMARY_audio="${SUMMARY_audio} arts"
  15961. fi
  15962. have_audio=yes
  15963. fi
  15964. fi
  15965. fi
  15966. }
  15967. CheckNAS()
  15968. {
  15969. # Check whether --enable-nas was given.
  15970. if test "${enable_nas+set}" = set; then :
  15971. enableval=$enable_nas;
  15972. else
  15973. enable_nas=yes
  15974. fi
  15975. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15976. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15977. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15978. have_nas_hdr=yes
  15979. fi
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15981. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15982. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15983. $as_echo_n "(cached) " >&6
  15984. else
  15985. ac_check_lib_save_LIBS=$LIBS
  15986. LIBS="-laudio $LIBS"
  15987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15988. /* end confdefs.h. */
  15989. /* Override any GCC internal prototype to avoid an error.
  15990. Use char because int might match the return type of a GCC
  15991. builtin and then its argument prototype would still apply. */
  15992. #ifdef __cplusplus
  15993. extern "C"
  15994. #endif
  15995. char AuOpenServer ();
  15996. int
  15997. main ()
  15998. {
  15999. return AuOpenServer ();
  16000. ;
  16001. return 0;
  16002. }
  16003. _ACEOF
  16004. if ac_fn_c_try_link "$LINENO"; then :
  16005. ac_cv_lib_audio_AuOpenServer=yes
  16006. else
  16007. ac_cv_lib_audio_AuOpenServer=no
  16008. fi
  16009. rm -f core conftest.err conftest.$ac_objext \
  16010. conftest$ac_exeext conftest.$ac_ext
  16011. LIBS=$ac_check_lib_save_LIBS
  16012. fi
  16013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16014. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16015. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16016. have_nas_lib=yes
  16017. fi
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16019. $as_echo_n "checking for NAS audio support... " >&6; }
  16020. have_nas=no
  16021. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16022. have_nas=yes
  16023. NAS_LIBS="-laudio"
  16024. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16025. have_nas=yes
  16026. NAS_CFLAGS="-I/usr/X11R6/include/"
  16027. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16028. fi
  16029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16030. $as_echo "$have_nas" >&6; }
  16031. if test x$have_nas = xyes; then
  16032. # Check whether --enable-nas-shared was given.
  16033. if test "${enable_nas_shared+set}" = set; then :
  16034. enableval=$enable_nas_shared;
  16035. else
  16036. enable_nas_shared=yes
  16037. fi
  16038. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16039. if test x$have_loadso != xyes && \
  16040. test x$enable_nas_shared = xyes; then
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16042. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16043. fi
  16044. if test x$have_loadso = xyes && \
  16045. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16046. echo "-- dynamic libaudio -> $nas_lib"
  16047. cat >>confdefs.h <<_ACEOF
  16048. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16049. _ACEOF
  16050. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16051. else
  16052. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16053. SUMMARY_audio="${SUMMARY_audio} nas"
  16054. fi
  16055. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16056. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16057. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16058. have_audio=yes
  16059. fi
  16060. fi
  16061. }
  16062. CheckSNDIO()
  16063. {
  16064. # Check whether --enable-sndio was given.
  16065. if test "${enable_sndio+set}" = set; then :
  16066. enableval=$enable_sndio;
  16067. else
  16068. enable_sndio=yes
  16069. fi
  16070. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16071. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16072. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16073. have_sndio_hdr=yes
  16074. fi
  16075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16076. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16077. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16078. $as_echo_n "(cached) " >&6
  16079. else
  16080. ac_check_lib_save_LIBS=$LIBS
  16081. LIBS="-lsndio $LIBS"
  16082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16083. /* end confdefs.h. */
  16084. /* Override any GCC internal prototype to avoid an error.
  16085. Use char because int might match the return type of a GCC
  16086. builtin and then its argument prototype would still apply. */
  16087. #ifdef __cplusplus
  16088. extern "C"
  16089. #endif
  16090. char sio_open ();
  16091. int
  16092. main ()
  16093. {
  16094. return sio_open ();
  16095. ;
  16096. return 0;
  16097. }
  16098. _ACEOF
  16099. if ac_fn_c_try_link "$LINENO"; then :
  16100. ac_cv_lib_sndio_sio_open=yes
  16101. else
  16102. ac_cv_lib_sndio_sio_open=no
  16103. fi
  16104. rm -f core conftest.err conftest.$ac_objext \
  16105. conftest$ac_exeext conftest.$ac_ext
  16106. LIBS=$ac_check_lib_save_LIBS
  16107. fi
  16108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16109. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16110. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16111. have_sndio_lib=yes
  16112. fi
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16114. $as_echo_n "checking for sndio audio support... " >&6; }
  16115. have_sndio=no
  16116. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16117. have_sndio=yes
  16118. SNDIO_LIBS="-lsndio"
  16119. fi
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16121. $as_echo "$have_sndio" >&6; }
  16122. if test x$have_sndio = xyes; then
  16123. # Check whether --enable-sndio-shared was given.
  16124. if test "${enable_sndio_shared+set}" = set; then :
  16125. enableval=$enable_sndio_shared;
  16126. else
  16127. enable_sndio_shared=yes
  16128. fi
  16129. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16130. if test x$have_loadso != xyes && \
  16131. test x$enable_sndio_shared = xyes; then
  16132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16133. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16134. fi
  16135. if test x$have_loadso = xyes && \
  16136. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16137. echo "-- dynamic libsndio -> $sndio_lib"
  16138. cat >>confdefs.h <<_ACEOF
  16139. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16140. _ACEOF
  16141. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16142. else
  16143. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16144. SUMMARY_audio="${SUMMARY_audio} sndio"
  16145. fi
  16146. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16147. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16148. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16149. have_audio=yes
  16150. fi
  16151. fi
  16152. }
  16153. CheckFusionSound()
  16154. {
  16155. # Check whether --enable-fusionsound was given.
  16156. if test "${enable_fusionsound+set}" = set; then :
  16157. enableval=$enable_fusionsound;
  16158. else
  16159. enable_fusionsound=no
  16160. fi
  16161. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16162. fusionsound=no
  16163. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16164. # Extract the first word of "pkg-config", so it can be a program name with args.
  16165. set dummy pkg-config; ac_word=$2
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16167. $as_echo_n "checking for $ac_word... " >&6; }
  16168. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16169. $as_echo_n "(cached) " >&6
  16170. else
  16171. case $PKG_CONFIG in
  16172. [\\/]* | ?:[\\/]*)
  16173. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16174. ;;
  16175. *)
  16176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16177. for as_dir in $PATH
  16178. do
  16179. IFS=$as_save_IFS
  16180. test -z "$as_dir" && as_dir=.
  16181. for ac_exec_ext in '' $ac_executable_extensions; do
  16182. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16183. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16185. break 2
  16186. fi
  16187. done
  16188. done
  16189. IFS=$as_save_IFS
  16190. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16191. ;;
  16192. esac
  16193. fi
  16194. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16195. if test -n "$PKG_CONFIG"; then
  16196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16197. $as_echo "$PKG_CONFIG" >&6; }
  16198. else
  16199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16200. $as_echo "no" >&6; }
  16201. fi
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16203. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16204. if test x$PKG_CONFIG != xno; then
  16205. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16206. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16207. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16208. fusionsound=yes
  16209. fi
  16210. fi
  16211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16212. $as_echo "$fusionsound" >&6; }
  16213. if test x$fusionsound = xyes; then
  16214. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16215. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16216. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16217. # Check whether --enable-fusionsound-shared was given.
  16218. if test "${enable_fusionsound_shared+set}" = set; then :
  16219. enableval=$enable_fusionsound_shared;
  16220. else
  16221. enable_fusionsound_shared=yes
  16222. fi
  16223. fusionsound_shared=no
  16224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16225. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16226. if test x$have_loadso != xyes && \
  16227. test x$enable_fusionsound_shared = xyes; then
  16228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16229. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16230. fi
  16231. if test x$have_loadso = xyes && \
  16232. test x$enable_fusionsound_shared = xyes; then
  16233. cat >>confdefs.h <<_ACEOF
  16234. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16235. _ACEOF
  16236. fusionsound_shared=yes
  16237. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16238. else
  16239. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16240. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16241. fi
  16242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16243. $as_echo "$fusionsound_shared" >&6; }
  16244. have_audio=yes
  16245. fi
  16246. fi
  16247. }
  16248. CheckDiskAudio()
  16249. {
  16250. # Check whether --enable-diskaudio was given.
  16251. if test "${enable_diskaudio+set}" = set; then :
  16252. enableval=$enable_diskaudio;
  16253. else
  16254. enable_diskaudio=yes
  16255. fi
  16256. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16257. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16258. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16259. SUMMARY_audio="${SUMMARY_audio} disk"
  16260. fi
  16261. }
  16262. CheckDummyAudio()
  16263. {
  16264. # Check whether --enable-dummyaudio was given.
  16265. if test "${enable_dummyaudio+set}" = set; then :
  16266. enableval=$enable_dummyaudio;
  16267. else
  16268. enable_dummyaudio=yes
  16269. fi
  16270. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16271. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16272. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16273. SUMMARY_audio="${SUMMARY_audio} dummy"
  16274. fi
  16275. }
  16276. CheckLibSampleRate()
  16277. {
  16278. # Check whether --enable-libsamplerate was given.
  16279. if test "${enable_libsamplerate+set}" = set; then :
  16280. enableval=$enable_libsamplerate;
  16281. else
  16282. enable_libsamplerate=yes
  16283. fi
  16284. if test x$enable_libsamplerate = xyes; then
  16285. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16287. have_samplerate_h_hdr=yes
  16288. else
  16289. have_samplerate_h_hdr=no
  16290. fi
  16291. if test x$have_samplerate_h_hdr = xyes; then
  16292. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16293. # Check whether --enable-libsamplerate-shared was given.
  16294. if test "${enable_libsamplerate_shared+set}" = set; then :
  16295. enableval=$enable_libsamplerate_shared;
  16296. else
  16297. enable_libsamplerate_shared=yes
  16298. fi
  16299. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16300. if test x$have_loadso != xyes && \
  16301. test x$enable_libsamplerate_shared = xyes; then
  16302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16303. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16304. fi
  16305. if test x$have_loadso = xyes && \
  16306. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16307. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16308. cat >>confdefs.h <<_ACEOF
  16309. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16310. _ACEOF
  16311. else
  16312. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16313. fi
  16314. fi
  16315. fi
  16316. }
  16317. CheckVisibilityHidden()
  16318. {
  16319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16320. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16321. have_gcc_fvisibility=no
  16322. visibility_CFLAGS="-fvisibility=hidden"
  16323. save_CFLAGS="$CFLAGS"
  16324. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16326. /* end confdefs.h. */
  16327. #if !defined(__GNUC__) || __GNUC__ < 4
  16328. #error SDL only uses visibility attributes in GCC 4 or newer
  16329. #endif
  16330. int
  16331. main ()
  16332. {
  16333. ;
  16334. return 0;
  16335. }
  16336. _ACEOF
  16337. if ac_fn_c_try_compile "$LINENO"; then :
  16338. have_gcc_fvisibility=yes
  16339. fi
  16340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16342. $as_echo "$have_gcc_fvisibility" >&6; }
  16343. CFLAGS="$save_CFLAGS"
  16344. if test x$have_gcc_fvisibility = xyes; then
  16345. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16346. fi
  16347. }
  16348. CheckStackBoundary()
  16349. {
  16350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16351. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16352. have_gcc_preferred_stack_boundary=no
  16353. save_CFLAGS="$CFLAGS"
  16354. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16356. /* end confdefs.h. */
  16357. int x = 0;
  16358. int
  16359. main ()
  16360. {
  16361. ;
  16362. return 0;
  16363. }
  16364. _ACEOF
  16365. if ac_fn_c_try_compile "$LINENO"; then :
  16366. have_gcc_preferred_stack_boundary=yes
  16367. fi
  16368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16370. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16371. CFLAGS="$save_CFLAGS"
  16372. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16373. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16374. fi
  16375. }
  16376. CheckDeclarationAfterStatement()
  16377. {
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16379. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16380. have_gcc_declaration_after_statement=no
  16381. save_CFLAGS="$CFLAGS"
  16382. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16384. /* end confdefs.h. */
  16385. int x = 0;
  16386. int
  16387. main ()
  16388. {
  16389. ;
  16390. return 0;
  16391. }
  16392. _ACEOF
  16393. if ac_fn_c_try_compile "$LINENO"; then :
  16394. have_gcc_declaration_after_statement=yes
  16395. fi
  16396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16398. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16399. CFLAGS="$save_CFLAGS"
  16400. if test x$have_gcc_declaration_after_statement = xyes; then
  16401. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16402. fi
  16403. }
  16404. CheckWarnAll()
  16405. {
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16407. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16408. have_gcc_Wall=no
  16409. save_CFLAGS="$CFLAGS"
  16410. CFLAGS="$save_CFLAGS -Wall"
  16411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16412. /* end confdefs.h. */
  16413. int x = 0;
  16414. int
  16415. main ()
  16416. {
  16417. ;
  16418. return 0;
  16419. }
  16420. _ACEOF
  16421. if ac_fn_c_try_compile "$LINENO"; then :
  16422. have_gcc_Wall=yes
  16423. fi
  16424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16426. $as_echo "$have_gcc_Wall" >&6; }
  16427. CFLAGS="$save_CFLAGS"
  16428. if test x$have_gcc_Wall = xyes; then
  16429. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16431. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16432. need_gcc_Wno_multichar=no
  16433. case "$host" in
  16434. *-*-haiku*)
  16435. need_gcc_Wno_multichar=yes
  16436. ;;
  16437. esac
  16438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16439. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16440. if test x$need_gcc_Wno_multichar = xyes; then
  16441. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16442. fi
  16443. fi
  16444. }
  16445. CheckWayland()
  16446. {
  16447. # Check whether --enable-video-wayland was given.
  16448. if test "${enable_video_wayland+set}" = set; then :
  16449. enableval=$enable_video_wayland;
  16450. else
  16451. enable_video_wayland=yes
  16452. fi
  16453. # Check whether --enable-video-wayland-qt-touch was given.
  16454. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16455. enableval=$enable_video_wayland_qt_touch;
  16456. else
  16457. enable_video_wayland_qt_touch=yes
  16458. fi
  16459. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16460. # Extract the first word of "pkg-config", so it can be a program name with args.
  16461. set dummy pkg-config; ac_word=$2
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16463. $as_echo_n "checking for $ac_word... " >&6; }
  16464. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16465. $as_echo_n "(cached) " >&6
  16466. else
  16467. case $PKG_CONFIG in
  16468. [\\/]* | ?:[\\/]*)
  16469. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16470. ;;
  16471. *)
  16472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16473. for as_dir in $PATH
  16474. do
  16475. IFS=$as_save_IFS
  16476. test -z "$as_dir" && as_dir=.
  16477. for ac_exec_ext in '' $ac_executable_extensions; do
  16478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16479. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16481. break 2
  16482. fi
  16483. done
  16484. done
  16485. IFS=$as_save_IFS
  16486. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16487. ;;
  16488. esac
  16489. fi
  16490. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16491. if test -n "$PKG_CONFIG"; then
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16493. $as_echo "$PKG_CONFIG" >&6; }
  16494. else
  16495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16496. $as_echo "no" >&6; }
  16497. fi
  16498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16499. $as_echo_n "checking for Wayland support... " >&6; }
  16500. video_wayland=no
  16501. if test x$PKG_CONFIG != xno && \
  16502. test x$video_opengl_egl = xyes && \
  16503. test x$video_opengles_v2 = xyes; then
  16504. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16505. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16506. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16507. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16508. video_wayland=yes
  16509. fi
  16510. fi
  16511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16512. $as_echo "$video_wayland" >&6; }
  16513. if test x$video_wayland = xyes; then
  16514. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16515. if test x$enable_video_wayland_qt_touch = xyes; then
  16516. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16517. fi
  16518. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16519. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16520. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16521. # Check whether --enable-wayland-shared was given.
  16522. if test "${enable_wayland_shared+set}" = set; then :
  16523. enableval=$enable_wayland_shared;
  16524. else
  16525. enable_wayland_shared=maybe
  16526. fi
  16527. case "$host" in
  16528. *)
  16529. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16530. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16531. if test x$wayland_egl_lib = x; then
  16532. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16533. fi
  16534. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16535. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16536. ;;
  16537. esac
  16538. if test x$enable_wayland_shared = xmaybe; then
  16539. enable_wayland_shared=yes
  16540. fi
  16541. if test x$have_loadso != xyes && \
  16542. test x$enable_wayland_shared = xyes; then
  16543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16544. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16545. enable_wayland_shared=no
  16546. fi
  16547. if test x$have_loadso = xyes && \
  16548. test x$enable_wayland_shared = xyes && \
  16549. test x$wayland_client_lib != x && \
  16550. test x$wayland_egl_lib != x && \
  16551. test x$wayland_cursor_lib != x && \
  16552. test x$xkbcommon_lib != x; then
  16553. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16554. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16555. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16556. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16557. cat >>confdefs.h <<_ACEOF
  16558. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16559. _ACEOF
  16560. cat >>confdefs.h <<_ACEOF
  16561. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16562. _ACEOF
  16563. cat >>confdefs.h <<_ACEOF
  16564. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16565. _ACEOF
  16566. cat >>confdefs.h <<_ACEOF
  16567. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16568. _ACEOF
  16569. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16570. else
  16571. enable_wayland_shared=no
  16572. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16573. SUMMARY_video="${SUMMARY_video} wayland"
  16574. fi
  16575. have_video=yes
  16576. fi
  16577. fi
  16578. }
  16579. CheckMir()
  16580. {
  16581. # Check whether --enable-video-mir was given.
  16582. if test "${enable_video_mir+set}" = set; then :
  16583. enableval=$enable_video_mir;
  16584. else
  16585. enable_video_mir=no
  16586. fi
  16587. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16588. # Extract the first word of "pkg-config", so it can be a program name with args.
  16589. set dummy pkg-config; ac_word=$2
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16591. $as_echo_n "checking for $ac_word... " >&6; }
  16592. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16593. $as_echo_n "(cached) " >&6
  16594. else
  16595. case $PKG_CONFIG in
  16596. [\\/]* | ?:[\\/]*)
  16597. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16598. ;;
  16599. *)
  16600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16601. for as_dir in $PATH
  16602. do
  16603. IFS=$as_save_IFS
  16604. test -z "$as_dir" && as_dir=.
  16605. for ac_exec_ext in '' $ac_executable_extensions; do
  16606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16607. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16609. break 2
  16610. fi
  16611. done
  16612. done
  16613. IFS=$as_save_IFS
  16614. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16615. ;;
  16616. esac
  16617. fi
  16618. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16619. if test -n "$PKG_CONFIG"; then
  16620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16621. $as_echo "$PKG_CONFIG" >&6; }
  16622. else
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16624. $as_echo "no" >&6; }
  16625. fi
  16626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16627. $as_echo_n "checking for Mir support... " >&6; }
  16628. video_mir=no
  16629. if test x$PKG_CONFIG != xno; then
  16630. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16631. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16632. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16633. save_CFLAGS="$CFLAGS"
  16634. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16636. /* end confdefs.h. */
  16637. #include <mir_toolkit/mir_client_library.h>
  16638. int
  16639. main ()
  16640. {
  16641. MirWindowAttrib attrib = mir_window_attrib_state
  16642. ;
  16643. return 0;
  16644. }
  16645. _ACEOF
  16646. if ac_fn_c_try_compile "$LINENO"; then :
  16647. video_mir=yes
  16648. fi
  16649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16650. CFLAGS="$save_CFLAGS"
  16651. fi
  16652. fi
  16653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16654. $as_echo "$video_mir" >&6; }
  16655. if test x$video_mir = xyes; then
  16656. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16657. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16658. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16659. # Check whether --enable-mir-shared was given.
  16660. if test "${enable_mir_shared+set}" = set; then :
  16661. enableval=$enable_mir_shared;
  16662. else
  16663. enable_mir_shared=maybe
  16664. fi
  16665. case "$host" in
  16666. *)
  16667. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16668. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16669. ;;
  16670. esac
  16671. if test x$enable_mir_shared = xmaybe; then
  16672. enable_mir_shared=yes
  16673. fi
  16674. if test x$have_loadso != xyes && \
  16675. test x$enable_mir_shared = xyes; then
  16676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16677. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16678. enable_mir_shared=no
  16679. fi
  16680. if test x$have_loadso = xyes && \
  16681. test x$enable_mir_shared = xyes && \
  16682. test x$mirclient_lib != x && \
  16683. test x$xkbcommon_lib != x; then
  16684. echo "-- dynamic libmirclient -> $mirclient_lib"
  16685. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16686. cat >>confdefs.h <<_ACEOF
  16687. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16688. _ACEOF
  16689. cat >>confdefs.h <<_ACEOF
  16690. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16691. _ACEOF
  16692. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16693. else
  16694. enable_mir_shared=no
  16695. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16696. SUMMARY_video="${SUMMARY_video} mir"
  16697. fi
  16698. have_video=yes
  16699. fi
  16700. fi
  16701. }
  16702. CheckNativeClient()
  16703. {
  16704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16705. /* end confdefs.h. */
  16706. #if !defined(__native_client__)
  16707. #error "NO NACL"
  16708. #endif
  16709. int
  16710. main ()
  16711. {
  16712. ;
  16713. return 0;
  16714. }
  16715. _ACEOF
  16716. if ac_fn_c_try_compile "$LINENO"; then :
  16717. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16718. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16719. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16720. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16721. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16722. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16723. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16724. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16725. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16726. SUMMARY_audio="${SUMMARY_audio} nacl"
  16727. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16728. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16729. fi
  16730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16731. }
  16732. CheckRPI()
  16733. {
  16734. # Check whether --enable-video-rpi was given.
  16735. if test "${enable_video_rpi+set}" = set; then :
  16736. enableval=$enable_video_rpi;
  16737. else
  16738. enable_video_rpi=yes
  16739. fi
  16740. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16741. # Extract the first word of "pkg-config", so it can be a program name with args.
  16742. set dummy pkg-config; ac_word=$2
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16744. $as_echo_n "checking for $ac_word... " >&6; }
  16745. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16746. $as_echo_n "(cached) " >&6
  16747. else
  16748. case $PKG_CONFIG in
  16749. [\\/]* | ?:[\\/]*)
  16750. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16751. ;;
  16752. *)
  16753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16754. for as_dir in $PATH
  16755. do
  16756. IFS=$as_save_IFS
  16757. test -z "$as_dir" && as_dir=.
  16758. for ac_exec_ext in '' $ac_executable_extensions; do
  16759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16760. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16762. break 2
  16763. fi
  16764. done
  16765. done
  16766. IFS=$as_save_IFS
  16767. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16768. ;;
  16769. esac
  16770. fi
  16771. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16772. if test -n "$PKG_CONFIG"; then
  16773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16774. $as_echo "$PKG_CONFIG" >&6; }
  16775. else
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16777. $as_echo "no" >&6; }
  16778. fi
  16779. if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
  16780. RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
  16781. RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
  16782. elif test x$ARCH = xnetbsd; then
  16783. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16784. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16785. else
  16786. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16787. RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16788. fi
  16789. # Save the original compiler flags and libraries
  16790. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16791. # Add the Raspberry Pi compiler flags and libraries
  16792. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16794. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16795. have_video_rpi=no
  16796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16797. /* end confdefs.h. */
  16798. #include <bcm_host.h>
  16799. int
  16800. main ()
  16801. {
  16802. bcm_host_init();
  16803. ;
  16804. return 0;
  16805. }
  16806. _ACEOF
  16807. if ac_fn_c_try_link "$LINENO"; then :
  16808. have_video_rpi=yes
  16809. fi
  16810. rm -f core conftest.err conftest.$ac_objext \
  16811. conftest$ac_exeext conftest.$ac_ext
  16812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16813. $as_echo "$have_video_rpi" >&6; }
  16814. # Restore the compiler flags and libraries
  16815. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16816. if test x$have_video_rpi = xyes; then
  16817. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16818. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16819. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16820. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16821. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16822. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16823. SUMMARY_video="${SUMMARY_video} rpi"
  16824. fi
  16825. fi
  16826. }
  16827. CheckX11()
  16828. {
  16829. # Check whether --enable-video-x11 was given.
  16830. if test "${enable_video_x11+set}" = set; then :
  16831. enableval=$enable_video_x11;
  16832. else
  16833. enable_video_x11=yes
  16834. fi
  16835. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16836. case "$host" in
  16837. *-*-darwin*)
  16838. # This isn't necessary for X11, but fixes GLX detection
  16839. if test "x$x_includes" = xNONE && \
  16840. test "x$x_libraries" = xNONE && \
  16841. test -d /usr/X11R6/include && \
  16842. test -d /usr/X11R6/lib; then
  16843. x_includes="/usr/X11R6/include"
  16844. x_libraries="/usr/X11R6/lib"
  16845. fi
  16846. ;;
  16847. esac
  16848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16849. $as_echo_n "checking for X... " >&6; }
  16850. # Check whether --with-x was given.
  16851. if test "${with_x+set}" = set; then :
  16852. withval=$with_x;
  16853. fi
  16854. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16855. if test "x$with_x" = xno; then
  16856. # The user explicitly disabled X.
  16857. have_x=disabled
  16858. else
  16859. case $x_includes,$x_libraries in #(
  16860. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16861. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16862. $as_echo_n "(cached) " >&6
  16863. else
  16864. # One or both of the vars are not set, and there is no cached value.
  16865. ac_x_includes=no ac_x_libraries=no
  16866. rm -f -r conftest.dir
  16867. if mkdir conftest.dir; then
  16868. cd conftest.dir
  16869. cat >Imakefile <<'_ACEOF'
  16870. incroot:
  16871. @echo incroot='${INCROOT}'
  16872. usrlibdir:
  16873. @echo usrlibdir='${USRLIBDIR}'
  16874. libdir:
  16875. @echo libdir='${LIBDIR}'
  16876. _ACEOF
  16877. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16878. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16879. for ac_var in incroot usrlibdir libdir; do
  16880. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16881. done
  16882. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16883. for ac_extension in a so sl dylib la dll; do
  16884. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16885. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16886. ac_im_usrlibdir=$ac_im_libdir; break
  16887. fi
  16888. done
  16889. # Screen out bogus values from the imake configuration. They are
  16890. # bogus both because they are the default anyway, and because
  16891. # using them would break gcc on systems where it needs fixed includes.
  16892. case $ac_im_incroot in
  16893. /usr/include) ac_x_includes= ;;
  16894. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16895. esac
  16896. case $ac_im_usrlibdir in
  16897. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16898. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16899. esac
  16900. fi
  16901. cd ..
  16902. rm -f -r conftest.dir
  16903. fi
  16904. # Standard set of common directories for X headers.
  16905. # Check X11 before X11Rn because it is often a symlink to the current release.
  16906. ac_x_header_dirs='
  16907. /usr/X11/include
  16908. /usr/X11R7/include
  16909. /usr/X11R6/include
  16910. /usr/X11R5/include
  16911. /usr/X11R4/include
  16912. /usr/include/X11
  16913. /usr/include/X11R7
  16914. /usr/include/X11R6
  16915. /usr/include/X11R5
  16916. /usr/include/X11R4
  16917. /usr/local/X11/include
  16918. /usr/local/X11R7/include
  16919. /usr/local/X11R6/include
  16920. /usr/local/X11R5/include
  16921. /usr/local/X11R4/include
  16922. /usr/local/include/X11
  16923. /usr/local/include/X11R7
  16924. /usr/local/include/X11R6
  16925. /usr/local/include/X11R5
  16926. /usr/local/include/X11R4
  16927. /usr/X386/include
  16928. /usr/x386/include
  16929. /usr/XFree86/include/X11
  16930. /usr/include
  16931. /usr/local/include
  16932. /usr/unsupported/include
  16933. /usr/athena/include
  16934. /usr/local/x11r5/include
  16935. /usr/lpp/Xamples/include
  16936. /usr/openwin/include
  16937. /usr/openwin/share/include'
  16938. if test "$ac_x_includes" = no; then
  16939. # Guess where to find include files, by looking for Xlib.h.
  16940. # First, try using that file with no special directory specified.
  16941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16942. /* end confdefs.h. */
  16943. #include <X11/Xlib.h>
  16944. _ACEOF
  16945. if ac_fn_c_try_cpp "$LINENO"; then :
  16946. # We can compile using X headers with no special include directory.
  16947. ac_x_includes=
  16948. else
  16949. for ac_dir in $ac_x_header_dirs; do
  16950. if test -r "$ac_dir/X11/Xlib.h"; then
  16951. ac_x_includes=$ac_dir
  16952. break
  16953. fi
  16954. done
  16955. fi
  16956. rm -f conftest.err conftest.i conftest.$ac_ext
  16957. fi # $ac_x_includes = no
  16958. if test "$ac_x_libraries" = no; then
  16959. # Check for the libraries.
  16960. # See if we find them without any special options.
  16961. # Don't add to $LIBS permanently.
  16962. ac_save_LIBS=$LIBS
  16963. LIBS="-lX11 $LIBS"
  16964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16965. /* end confdefs.h. */
  16966. #include <X11/Xlib.h>
  16967. int
  16968. main ()
  16969. {
  16970. XrmInitialize ()
  16971. ;
  16972. return 0;
  16973. }
  16974. _ACEOF
  16975. if ac_fn_c_try_link "$LINENO"; then :
  16976. LIBS=$ac_save_LIBS
  16977. # We can link X programs with no special library path.
  16978. ac_x_libraries=
  16979. else
  16980. LIBS=$ac_save_LIBS
  16981. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16982. do
  16983. # Don't even attempt the hair of trying to link an X program!
  16984. for ac_extension in a so sl dylib la dll; do
  16985. if test -r "$ac_dir/libX11.$ac_extension"; then
  16986. ac_x_libraries=$ac_dir
  16987. break 2
  16988. fi
  16989. done
  16990. done
  16991. fi
  16992. rm -f core conftest.err conftest.$ac_objext \
  16993. conftest$ac_exeext conftest.$ac_ext
  16994. fi # $ac_x_libraries = no
  16995. case $ac_x_includes,$ac_x_libraries in #(
  16996. no,* | *,no | *\'*)
  16997. # Didn't find X, or a directory has "'" in its name.
  16998. ac_cv_have_x="have_x=no";; #(
  16999. *)
  17000. # Record where we found X for the cache.
  17001. ac_cv_have_x="have_x=yes\
  17002. ac_x_includes='$ac_x_includes'\
  17003. ac_x_libraries='$ac_x_libraries'"
  17004. esac
  17005. fi
  17006. ;; #(
  17007. *) have_x=yes;;
  17008. esac
  17009. eval "$ac_cv_have_x"
  17010. fi # $with_x != no
  17011. if test "$have_x" != yes; then
  17012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17013. $as_echo "$have_x" >&6; }
  17014. no_x=yes
  17015. else
  17016. # If each of the values was on the command line, it overrides each guess.
  17017. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17018. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17019. # Update the cache value to reflect the command line values.
  17020. ac_cv_have_x="have_x=yes\
  17021. ac_x_includes='$x_includes'\
  17022. ac_x_libraries='$x_libraries'"
  17023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17024. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17025. fi
  17026. if test "$no_x" = yes; then
  17027. # Not all programs may use this symbol, but it does not hurt to define it.
  17028. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17029. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17030. else
  17031. if test -n "$x_includes"; then
  17032. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17033. fi
  17034. # It would also be nice to do this for all -L options, not just this one.
  17035. if test -n "$x_libraries"; then
  17036. X_LIBS="$X_LIBS -L$x_libraries"
  17037. # For Solaris; some versions of Sun CC require a space after -R and
  17038. # others require no space. Words are not sufficient . . . .
  17039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17040. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17041. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17042. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17043. ac_c_werror_flag=yes
  17044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17045. /* end confdefs.h. */
  17046. int
  17047. main ()
  17048. {
  17049. ;
  17050. return 0;
  17051. }
  17052. _ACEOF
  17053. if ac_fn_c_try_link "$LINENO"; then :
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17055. $as_echo "no" >&6; }
  17056. X_LIBS="$X_LIBS -R$x_libraries"
  17057. else
  17058. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17060. /* end confdefs.h. */
  17061. int
  17062. main ()
  17063. {
  17064. ;
  17065. return 0;
  17066. }
  17067. _ACEOF
  17068. if ac_fn_c_try_link "$LINENO"; then :
  17069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17070. $as_echo "yes" >&6; }
  17071. X_LIBS="$X_LIBS -R $x_libraries"
  17072. else
  17073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17074. $as_echo "neither works" >&6; }
  17075. fi
  17076. rm -f core conftest.err conftest.$ac_objext \
  17077. conftest$ac_exeext conftest.$ac_ext
  17078. fi
  17079. rm -f core conftest.err conftest.$ac_objext \
  17080. conftest$ac_exeext conftest.$ac_ext
  17081. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17082. LIBS=$ac_xsave_LIBS
  17083. fi
  17084. # Check for system-dependent libraries X programs must link with.
  17085. # Do this before checking for the system-independent R6 libraries
  17086. # (-lICE), since we may need -lsocket or whatever for X linking.
  17087. if test "$ISC" = yes; then
  17088. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17089. else
  17090. # Martyn Johnson says this is needed for Ultrix, if the X
  17091. # libraries were built with DECnet support. And Karl Berry says
  17092. # the Alpha needs dnet_stub (dnet does not exist).
  17093. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17095. /* end confdefs.h. */
  17096. /* Override any GCC internal prototype to avoid an error.
  17097. Use char because int might match the return type of a GCC
  17098. builtin and then its argument prototype would still apply. */
  17099. #ifdef __cplusplus
  17100. extern "C"
  17101. #endif
  17102. char XOpenDisplay ();
  17103. int
  17104. main ()
  17105. {
  17106. return XOpenDisplay ();
  17107. ;
  17108. return 0;
  17109. }
  17110. _ACEOF
  17111. if ac_fn_c_try_link "$LINENO"; then :
  17112. else
  17113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17114. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17115. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17116. $as_echo_n "(cached) " >&6
  17117. else
  17118. ac_check_lib_save_LIBS=$LIBS
  17119. LIBS="-ldnet $LIBS"
  17120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17121. /* end confdefs.h. */
  17122. /* Override any GCC internal prototype to avoid an error.
  17123. Use char because int might match the return type of a GCC
  17124. builtin and then its argument prototype would still apply. */
  17125. #ifdef __cplusplus
  17126. extern "C"
  17127. #endif
  17128. char dnet_ntoa ();
  17129. int
  17130. main ()
  17131. {
  17132. return dnet_ntoa ();
  17133. ;
  17134. return 0;
  17135. }
  17136. _ACEOF
  17137. if ac_fn_c_try_link "$LINENO"; then :
  17138. ac_cv_lib_dnet_dnet_ntoa=yes
  17139. else
  17140. ac_cv_lib_dnet_dnet_ntoa=no
  17141. fi
  17142. rm -f core conftest.err conftest.$ac_objext \
  17143. conftest$ac_exeext conftest.$ac_ext
  17144. LIBS=$ac_check_lib_save_LIBS
  17145. fi
  17146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17147. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17148. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17149. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17150. fi
  17151. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17153. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17154. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17155. $as_echo_n "(cached) " >&6
  17156. else
  17157. ac_check_lib_save_LIBS=$LIBS
  17158. LIBS="-ldnet_stub $LIBS"
  17159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17160. /* end confdefs.h. */
  17161. /* Override any GCC internal prototype to avoid an error.
  17162. Use char because int might match the return type of a GCC
  17163. builtin and then its argument prototype would still apply. */
  17164. #ifdef __cplusplus
  17165. extern "C"
  17166. #endif
  17167. char dnet_ntoa ();
  17168. int
  17169. main ()
  17170. {
  17171. return dnet_ntoa ();
  17172. ;
  17173. return 0;
  17174. }
  17175. _ACEOF
  17176. if ac_fn_c_try_link "$LINENO"; then :
  17177. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17178. else
  17179. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17180. fi
  17181. rm -f core conftest.err conftest.$ac_objext \
  17182. conftest$ac_exeext conftest.$ac_ext
  17183. LIBS=$ac_check_lib_save_LIBS
  17184. fi
  17185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17186. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17187. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17188. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17189. fi
  17190. fi
  17191. fi
  17192. rm -f core conftest.err conftest.$ac_objext \
  17193. conftest$ac_exeext conftest.$ac_ext
  17194. LIBS="$ac_xsave_LIBS"
  17195. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17196. # to get the SysV transport functions.
  17197. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17198. # needs -lnsl.
  17199. # The nsl library prevents programs from opening the X display
  17200. # on Irix 5.2, according to T.E. Dickey.
  17201. # The functions gethostbyname, getservbyname, and inet_addr are
  17202. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17203. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17204. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17205. fi
  17206. if test $ac_cv_func_gethostbyname = no; then
  17207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17208. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17209. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17210. $as_echo_n "(cached) " >&6
  17211. else
  17212. ac_check_lib_save_LIBS=$LIBS
  17213. LIBS="-lnsl $LIBS"
  17214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17215. /* end confdefs.h. */
  17216. /* Override any GCC internal prototype to avoid an error.
  17217. Use char because int might match the return type of a GCC
  17218. builtin and then its argument prototype would still apply. */
  17219. #ifdef __cplusplus
  17220. extern "C"
  17221. #endif
  17222. char gethostbyname ();
  17223. int
  17224. main ()
  17225. {
  17226. return gethostbyname ();
  17227. ;
  17228. return 0;
  17229. }
  17230. _ACEOF
  17231. if ac_fn_c_try_link "$LINENO"; then :
  17232. ac_cv_lib_nsl_gethostbyname=yes
  17233. else
  17234. ac_cv_lib_nsl_gethostbyname=no
  17235. fi
  17236. rm -f core conftest.err conftest.$ac_objext \
  17237. conftest$ac_exeext conftest.$ac_ext
  17238. LIBS=$ac_check_lib_save_LIBS
  17239. fi
  17240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17241. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17242. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17243. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17244. fi
  17245. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17247. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17248. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17249. $as_echo_n "(cached) " >&6
  17250. else
  17251. ac_check_lib_save_LIBS=$LIBS
  17252. LIBS="-lbsd $LIBS"
  17253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17254. /* end confdefs.h. */
  17255. /* Override any GCC internal prototype to avoid an error.
  17256. Use char because int might match the return type of a GCC
  17257. builtin and then its argument prototype would still apply. */
  17258. #ifdef __cplusplus
  17259. extern "C"
  17260. #endif
  17261. char gethostbyname ();
  17262. int
  17263. main ()
  17264. {
  17265. return gethostbyname ();
  17266. ;
  17267. return 0;
  17268. }
  17269. _ACEOF
  17270. if ac_fn_c_try_link "$LINENO"; then :
  17271. ac_cv_lib_bsd_gethostbyname=yes
  17272. else
  17273. ac_cv_lib_bsd_gethostbyname=no
  17274. fi
  17275. rm -f core conftest.err conftest.$ac_objext \
  17276. conftest$ac_exeext conftest.$ac_ext
  17277. LIBS=$ac_check_lib_save_LIBS
  17278. fi
  17279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17280. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17281. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17282. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17283. fi
  17284. fi
  17285. fi
  17286. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17287. # socket/setsockopt and other routines are undefined under SCO ODT
  17288. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17289. # on later versions), says Simon Leinen: it contains gethostby*
  17290. # variants that don't use the name server (or something). -lsocket
  17291. # must be given before -lnsl if both are needed. We assume that
  17292. # if connect needs -lnsl, so does gethostbyname.
  17293. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17294. if test "x$ac_cv_func_connect" = xyes; then :
  17295. fi
  17296. if test $ac_cv_func_connect = no; then
  17297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17298. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17299. if ${ac_cv_lib_socket_connect+:} false; then :
  17300. $as_echo_n "(cached) " >&6
  17301. else
  17302. ac_check_lib_save_LIBS=$LIBS
  17303. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17305. /* end confdefs.h. */
  17306. /* Override any GCC internal prototype to avoid an error.
  17307. Use char because int might match the return type of a GCC
  17308. builtin and then its argument prototype would still apply. */
  17309. #ifdef __cplusplus
  17310. extern "C"
  17311. #endif
  17312. char connect ();
  17313. int
  17314. main ()
  17315. {
  17316. return connect ();
  17317. ;
  17318. return 0;
  17319. }
  17320. _ACEOF
  17321. if ac_fn_c_try_link "$LINENO"; then :
  17322. ac_cv_lib_socket_connect=yes
  17323. else
  17324. ac_cv_lib_socket_connect=no
  17325. fi
  17326. rm -f core conftest.err conftest.$ac_objext \
  17327. conftest$ac_exeext conftest.$ac_ext
  17328. LIBS=$ac_check_lib_save_LIBS
  17329. fi
  17330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17331. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17332. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17333. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17334. fi
  17335. fi
  17336. # Guillermo Gomez says -lposix is necessary on A/UX.
  17337. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17338. if test "x$ac_cv_func_remove" = xyes; then :
  17339. fi
  17340. if test $ac_cv_func_remove = no; then
  17341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17342. $as_echo_n "checking for remove in -lposix... " >&6; }
  17343. if ${ac_cv_lib_posix_remove+:} false; then :
  17344. $as_echo_n "(cached) " >&6
  17345. else
  17346. ac_check_lib_save_LIBS=$LIBS
  17347. LIBS="-lposix $LIBS"
  17348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17349. /* end confdefs.h. */
  17350. /* Override any GCC internal prototype to avoid an error.
  17351. Use char because int might match the return type of a GCC
  17352. builtin and then its argument prototype would still apply. */
  17353. #ifdef __cplusplus
  17354. extern "C"
  17355. #endif
  17356. char remove ();
  17357. int
  17358. main ()
  17359. {
  17360. return remove ();
  17361. ;
  17362. return 0;
  17363. }
  17364. _ACEOF
  17365. if ac_fn_c_try_link "$LINENO"; then :
  17366. ac_cv_lib_posix_remove=yes
  17367. else
  17368. ac_cv_lib_posix_remove=no
  17369. fi
  17370. rm -f core conftest.err conftest.$ac_objext \
  17371. conftest$ac_exeext conftest.$ac_ext
  17372. LIBS=$ac_check_lib_save_LIBS
  17373. fi
  17374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17375. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17376. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17377. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17378. fi
  17379. fi
  17380. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17381. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17382. if test "x$ac_cv_func_shmat" = xyes; then :
  17383. fi
  17384. if test $ac_cv_func_shmat = no; then
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17386. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17387. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17388. $as_echo_n "(cached) " >&6
  17389. else
  17390. ac_check_lib_save_LIBS=$LIBS
  17391. LIBS="-lipc $LIBS"
  17392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17393. /* end confdefs.h. */
  17394. /* Override any GCC internal prototype to avoid an error.
  17395. Use char because int might match the return type of a GCC
  17396. builtin and then its argument prototype would still apply. */
  17397. #ifdef __cplusplus
  17398. extern "C"
  17399. #endif
  17400. char shmat ();
  17401. int
  17402. main ()
  17403. {
  17404. return shmat ();
  17405. ;
  17406. return 0;
  17407. }
  17408. _ACEOF
  17409. if ac_fn_c_try_link "$LINENO"; then :
  17410. ac_cv_lib_ipc_shmat=yes
  17411. else
  17412. ac_cv_lib_ipc_shmat=no
  17413. fi
  17414. rm -f core conftest.err conftest.$ac_objext \
  17415. conftest$ac_exeext conftest.$ac_ext
  17416. LIBS=$ac_check_lib_save_LIBS
  17417. fi
  17418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17419. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17420. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17421. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17422. fi
  17423. fi
  17424. fi
  17425. # Check for libraries that X11R6 Xt/Xaw programs need.
  17426. ac_save_LDFLAGS=$LDFLAGS
  17427. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17428. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17429. # check for ICE first), but we must link in the order -lSM -lICE or
  17430. # we get undefined symbols. So assume we have SM if we have ICE.
  17431. # These have to be linked with before -lX11, unlike the other
  17432. # libraries we check for below, so use a different variable.
  17433. # John Interrante, Karl Berry
  17434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17435. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17436. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17437. $as_echo_n "(cached) " >&6
  17438. else
  17439. ac_check_lib_save_LIBS=$LIBS
  17440. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17442. /* end confdefs.h. */
  17443. /* Override any GCC internal prototype to avoid an error.
  17444. Use char because int might match the return type of a GCC
  17445. builtin and then its argument prototype would still apply. */
  17446. #ifdef __cplusplus
  17447. extern "C"
  17448. #endif
  17449. char IceConnectionNumber ();
  17450. int
  17451. main ()
  17452. {
  17453. return IceConnectionNumber ();
  17454. ;
  17455. return 0;
  17456. }
  17457. _ACEOF
  17458. if ac_fn_c_try_link "$LINENO"; then :
  17459. ac_cv_lib_ICE_IceConnectionNumber=yes
  17460. else
  17461. ac_cv_lib_ICE_IceConnectionNumber=no
  17462. fi
  17463. rm -f core conftest.err conftest.$ac_objext \
  17464. conftest$ac_exeext conftest.$ac_ext
  17465. LIBS=$ac_check_lib_save_LIBS
  17466. fi
  17467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17468. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17469. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17470. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17471. fi
  17472. LDFLAGS=$ac_save_LDFLAGS
  17473. fi
  17474. if test x$have_x = xyes; then
  17475. # Check whether --enable-x11-shared was given.
  17476. if test "${enable_x11_shared+set}" = set; then :
  17477. enableval=$enable_x11_shared;
  17478. else
  17479. enable_x11_shared=maybe
  17480. fi
  17481. case "$host" in
  17482. *-*-darwin*)
  17483. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17484. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17485. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17486. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17487. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17488. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17489. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17490. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17491. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17492. ;;
  17493. *-*-openbsd*)
  17494. x11_lib='libX11.so'
  17495. x11ext_lib='libXext.so'
  17496. xcursor_lib='libXcursor.so'
  17497. xinerama_lib='libXinerama.so'
  17498. xinput_lib='libXi.so'
  17499. xrandr_lib='libXrandr.so'
  17500. xrender_lib='libXrender.so'
  17501. xss_lib='libXss.so'
  17502. xvidmode_lib='libXxf86vm.so'
  17503. ;;
  17504. *)
  17505. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17506. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17507. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17508. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17509. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17510. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17511. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17512. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17513. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17514. ;;
  17515. esac
  17516. if test x$ac_cv_func_shmat != xyes; then
  17517. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17518. fi
  17519. CFLAGS="$CFLAGS $X_CFLAGS"
  17520. LDFLAGS="$LDFLAGS $X_LIBS"
  17521. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17522. #include <X11/Xproto.h>
  17523. "
  17524. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17525. have_xext_h_hdr=yes
  17526. else
  17527. have_xext_h_hdr=no
  17528. fi
  17529. if test x$have_xext_h_hdr != xyes; then
  17530. as_fn_error $? "
  17531. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17532. " "$LINENO" 5
  17533. fi
  17534. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17535. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17536. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17537. # Needed so SDL applications can include SDL_syswm.h
  17538. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17539. if test x$enable_x11_shared = xmaybe; then
  17540. enable_x11_shared=yes
  17541. fi
  17542. if test x$have_loadso != xyes && \
  17543. test x$enable_x11_shared = xyes; then
  17544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17545. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17546. enable_x11_shared=no
  17547. fi
  17548. if test x$have_loadso = xyes && \
  17549. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17550. echo "-- dynamic libX11 -> $x11_lib"
  17551. echo "-- dynamic libX11ext -> $x11ext_lib"
  17552. cat >>confdefs.h <<_ACEOF
  17553. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17554. _ACEOF
  17555. cat >>confdefs.h <<_ACEOF
  17556. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17557. _ACEOF
  17558. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17559. else
  17560. enable_x11_shared=no
  17561. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17562. SUMMARY_video="${SUMMARY_video} x11"
  17563. fi
  17564. have_video=yes
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17566. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17567. have_const_param_XextAddDisplay=no
  17568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17569. /* end confdefs.h. */
  17570. #include <X11/Xlib.h>
  17571. #include <X11/Xproto.h>
  17572. #include <X11/extensions/Xext.h>
  17573. #include <X11/extensions/extutil.h>
  17574. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17575. int
  17576. main ()
  17577. {
  17578. ;
  17579. return 0;
  17580. }
  17581. _ACEOF
  17582. if ac_fn_c_try_compile "$LINENO"; then :
  17583. have_const_param_XextAddDisplay=yes
  17584. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17585. fi
  17586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17588. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17590. $as_echo_n "checking for XGenericEvent... " >&6; }
  17591. have_XGenericEvent=no
  17592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17593. /* end confdefs.h. */
  17594. #include <X11/Xlib.h>
  17595. int
  17596. main ()
  17597. {
  17598. Display *display;
  17599. XEvent event;
  17600. XGenericEventCookie *cookie = &event.xcookie;
  17601. XNextEvent(display, &event);
  17602. XGetEventData(display, cookie);
  17603. XFreeEventData(display, cookie);
  17604. ;
  17605. return 0;
  17606. }
  17607. _ACEOF
  17608. if ac_fn_c_try_compile "$LINENO"; then :
  17609. have_XGenericEvent=yes
  17610. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17611. fi
  17612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17614. $as_echo "$have_XGenericEvent" >&6; }
  17615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17616. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17617. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17618. $as_echo_n "(cached) " >&6
  17619. else
  17620. ac_check_lib_save_LIBS=$LIBS
  17621. LIBS="-lX11 $LIBS"
  17622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17623. /* end confdefs.h. */
  17624. /* Override any GCC internal prototype to avoid an error.
  17625. Use char because int might match the return type of a GCC
  17626. builtin and then its argument prototype would still apply. */
  17627. #ifdef __cplusplus
  17628. extern "C"
  17629. #endif
  17630. char XkbKeycodeToKeysym ();
  17631. int
  17632. main ()
  17633. {
  17634. return XkbKeycodeToKeysym ();
  17635. ;
  17636. return 0;
  17637. }
  17638. _ACEOF
  17639. if ac_fn_c_try_link "$LINENO"; then :
  17640. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17641. else
  17642. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17643. fi
  17644. rm -f core conftest.err conftest.$ac_objext \
  17645. conftest$ac_exeext conftest.$ac_ext
  17646. LIBS=$ac_check_lib_save_LIBS
  17647. fi
  17648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17649. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17650. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17651. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17652. fi
  17653. # Check whether --enable-video-x11-xcursor was given.
  17654. if test "${enable_video_x11_xcursor+set}" = set; then :
  17655. enableval=$enable_video_x11_xcursor;
  17656. else
  17657. enable_video_x11_xcursor=yes
  17658. fi
  17659. if test x$enable_video_x11_xcursor = xyes; then
  17660. definitely_enable_video_x11_xcursor=no
  17661. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17662. "
  17663. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17664. have_xcursor_h_hdr=yes
  17665. else
  17666. have_xcursor_h_hdr=no
  17667. fi
  17668. if test x$have_xcursor_h_hdr = xyes; then
  17669. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17670. echo "-- dynamic libXcursor -> $xcursor_lib"
  17671. cat >>confdefs.h <<_ACEOF
  17672. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17673. _ACEOF
  17674. definitely_enable_video_x11_xcursor=yes
  17675. else
  17676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17677. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17678. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17679. $as_echo_n "(cached) " >&6
  17680. else
  17681. ac_check_lib_save_LIBS=$LIBS
  17682. LIBS="-lXcursor $LIBS"
  17683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17684. /* end confdefs.h. */
  17685. /* Override any GCC internal prototype to avoid an error.
  17686. Use char because int might match the return type of a GCC
  17687. builtin and then its argument prototype would still apply. */
  17688. #ifdef __cplusplus
  17689. extern "C"
  17690. #endif
  17691. char XcursorImageCreate ();
  17692. int
  17693. main ()
  17694. {
  17695. return XcursorImageCreate ();
  17696. ;
  17697. return 0;
  17698. }
  17699. _ACEOF
  17700. if ac_fn_c_try_link "$LINENO"; then :
  17701. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17702. else
  17703. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17704. fi
  17705. rm -f core conftest.err conftest.$ac_objext \
  17706. conftest$ac_exeext conftest.$ac_ext
  17707. LIBS=$ac_check_lib_save_LIBS
  17708. fi
  17709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17710. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17711. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17712. have_xcursor_lib=yes
  17713. fi
  17714. if test x$have_xcursor_lib = xyes ; then
  17715. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17716. definitely_enable_video_x11_xcursor=yes
  17717. fi
  17718. fi
  17719. fi
  17720. fi
  17721. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17722. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17723. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17724. fi
  17725. # Check whether --enable-video-x11-xdbe was given.
  17726. if test "${enable_video_x11_xdbe+set}" = set; then :
  17727. enableval=$enable_video_x11_xdbe;
  17728. else
  17729. enable_video_x11_xdbe=yes
  17730. fi
  17731. if test x$enable_video_x11_xdbe = xyes; then
  17732. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17733. "
  17734. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17735. have_dbe_h_hdr=yes
  17736. else
  17737. have_dbe_h_hdr=no
  17738. fi
  17739. if test x$have_dbe_h_hdr = xyes; then
  17740. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17741. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17742. fi
  17743. fi
  17744. # Check whether --enable-video-x11-xinerama was given.
  17745. if test "${enable_video_x11_xinerama+set}" = set; then :
  17746. enableval=$enable_video_x11_xinerama;
  17747. else
  17748. enable_video_x11_xinerama=yes
  17749. fi
  17750. if test x$enable_video_x11_xinerama = xyes; then
  17751. definitely_enable_video_x11_xinerama=no
  17752. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17753. "
  17754. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17755. have_xinerama_h_hdr=yes
  17756. else
  17757. have_xinerama_h_hdr=no
  17758. fi
  17759. if test x$have_xinerama_h_hdr = xyes; then
  17760. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17761. echo "-- dynamic libXinerama -> $xinerama_lib"
  17762. cat >>confdefs.h <<_ACEOF
  17763. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17764. _ACEOF
  17765. definitely_enable_video_x11_xinerama=yes
  17766. else
  17767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17768. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17769. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17770. $as_echo_n "(cached) " >&6
  17771. else
  17772. ac_check_lib_save_LIBS=$LIBS
  17773. LIBS="-lXinerama $LIBS"
  17774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17775. /* end confdefs.h. */
  17776. /* Override any GCC internal prototype to avoid an error.
  17777. Use char because int might match the return type of a GCC
  17778. builtin and then its argument prototype would still apply. */
  17779. #ifdef __cplusplus
  17780. extern "C"
  17781. #endif
  17782. char XineramaQueryExtension ();
  17783. int
  17784. main ()
  17785. {
  17786. return XineramaQueryExtension ();
  17787. ;
  17788. return 0;
  17789. }
  17790. _ACEOF
  17791. if ac_fn_c_try_link "$LINENO"; then :
  17792. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17793. else
  17794. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17795. fi
  17796. rm -f core conftest.err conftest.$ac_objext \
  17797. conftest$ac_exeext conftest.$ac_ext
  17798. LIBS=$ac_check_lib_save_LIBS
  17799. fi
  17800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17801. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17802. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17803. have_xinerama_lib=yes
  17804. fi
  17805. if test x$have_xinerama_lib = xyes ; then
  17806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17807. definitely_enable_video_x11_xinerama=yes
  17808. fi
  17809. fi
  17810. fi
  17811. fi
  17812. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17813. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17814. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17815. fi
  17816. # Check whether --enable-video-x11-xinput was given.
  17817. if test "${enable_video_x11_xinput+set}" = set; then :
  17818. enableval=$enable_video_x11_xinput;
  17819. else
  17820. enable_video_x11_xinput=yes
  17821. fi
  17822. if test x$enable_video_x11_xinput = xyes; then
  17823. definitely_enable_video_x11_xinput=no
  17824. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17825. "
  17826. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17827. have_xinput_h_hdr=yes
  17828. else
  17829. have_xinput_h_hdr=no
  17830. fi
  17831. if test x$have_xinput_h_hdr = xyes; then
  17832. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17833. echo "-- dynamic libXi -> $xinput_lib"
  17834. cat >>confdefs.h <<_ACEOF
  17835. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17836. _ACEOF
  17837. definitely_enable_video_x11_xinput=yes
  17838. else
  17839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17840. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17841. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17842. $as_echo_n "(cached) " >&6
  17843. else
  17844. ac_check_lib_save_LIBS=$LIBS
  17845. LIBS="-lXi $LIBS"
  17846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17847. /* end confdefs.h. */
  17848. /* Override any GCC internal prototype to avoid an error.
  17849. Use char because int might match the return type of a GCC
  17850. builtin and then its argument prototype would still apply. */
  17851. #ifdef __cplusplus
  17852. extern "C"
  17853. #endif
  17854. char XOpenDevice ();
  17855. int
  17856. main ()
  17857. {
  17858. return XOpenDevice ();
  17859. ;
  17860. return 0;
  17861. }
  17862. _ACEOF
  17863. if ac_fn_c_try_link "$LINENO"; then :
  17864. ac_cv_lib_Xi_XOpenDevice=yes
  17865. else
  17866. ac_cv_lib_Xi_XOpenDevice=no
  17867. fi
  17868. rm -f core conftest.err conftest.$ac_objext \
  17869. conftest$ac_exeext conftest.$ac_ext
  17870. LIBS=$ac_check_lib_save_LIBS
  17871. fi
  17872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17873. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17874. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17875. have_xinput_lib=yes
  17876. fi
  17877. if test x$have_xinput_lib = xyes ; then
  17878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17879. definitely_enable_video_x11_xinput=yes
  17880. fi
  17881. fi
  17882. fi
  17883. fi
  17884. if test x$definitely_enable_video_x11_xinput = xyes; then
  17885. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17886. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17888. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17889. have_xinput2_multitouch=no
  17890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17891. /* end confdefs.h. */
  17892. #include <X11/Xlib.h>
  17893. #include <X11/Xproto.h>
  17894. #include <X11/extensions/XInput2.h>
  17895. int
  17896. main ()
  17897. {
  17898. int event_type = XI_TouchBegin;
  17899. XITouchClassInfo *t;
  17900. ;
  17901. return 0;
  17902. }
  17903. _ACEOF
  17904. if ac_fn_c_try_compile "$LINENO"; then :
  17905. have_xinput2_multitouch=yes
  17906. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17907. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17908. fi
  17909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17911. $as_echo "$have_xinput2_multitouch" >&6; }
  17912. fi
  17913. # Check whether --enable-video-x11-xrandr was given.
  17914. if test "${enable_video_x11_xrandr+set}" = set; then :
  17915. enableval=$enable_video_x11_xrandr;
  17916. else
  17917. enable_video_x11_xrandr=yes
  17918. fi
  17919. if test x$enable_video_x11_xrandr = xyes; then
  17920. definitely_enable_video_x11_xrandr=no
  17921. have_xrandr_h_hdr=no
  17922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17923. /* end confdefs.h. */
  17924. #include <X11/Xlib.h>
  17925. #include <X11/extensions/Xrandr.h>
  17926. int
  17927. main ()
  17928. {
  17929. XRRScreenResources *res = NULL;
  17930. ;
  17931. return 0;
  17932. }
  17933. _ACEOF
  17934. if ac_fn_c_try_compile "$LINENO"; then :
  17935. have_xrandr_h_hdr=yes
  17936. fi
  17937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17938. if test x$have_xrandr_h_hdr = xyes; then
  17939. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17940. echo "-- dynamic libXrandr -> $xrandr_lib"
  17941. cat >>confdefs.h <<_ACEOF
  17942. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17943. _ACEOF
  17944. definitely_enable_video_x11_xrandr=yes
  17945. else
  17946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17947. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17948. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17949. $as_echo_n "(cached) " >&6
  17950. else
  17951. ac_check_lib_save_LIBS=$LIBS
  17952. LIBS="-lXrandr $LIBS"
  17953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17954. /* end confdefs.h. */
  17955. /* Override any GCC internal prototype to avoid an error.
  17956. Use char because int might match the return type of a GCC
  17957. builtin and then its argument prototype would still apply. */
  17958. #ifdef __cplusplus
  17959. extern "C"
  17960. #endif
  17961. char XRRQueryExtension ();
  17962. int
  17963. main ()
  17964. {
  17965. return XRRQueryExtension ();
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_link "$LINENO"; then :
  17971. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17972. else
  17973. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17974. fi
  17975. rm -f core conftest.err conftest.$ac_objext \
  17976. conftest$ac_exeext conftest.$ac_ext
  17977. LIBS=$ac_check_lib_save_LIBS
  17978. fi
  17979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17980. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17981. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17982. have_xrandr_lib=yes
  17983. fi
  17984. if test x$have_xrandr_lib = xyes ; then
  17985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17986. definitely_enable_video_x11_xrandr=yes
  17987. fi
  17988. fi
  17989. fi
  17990. fi
  17991. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17992. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17993. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17994. fi
  17995. # Check whether --enable-video-x11-scrnsaver was given.
  17996. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17997. enableval=$enable_video_x11_scrnsaver;
  17998. else
  17999. enable_video_x11_scrnsaver=yes
  18000. fi
  18001. if test x$enable_video_x11_scrnsaver = xyes; then
  18002. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18003. "
  18004. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18005. have_scrnsaver_h_hdr=yes
  18006. else
  18007. have_scrnsaver_h_hdr=no
  18008. fi
  18009. if test x$have_scrnsaver_h_hdr = xyes; then
  18010. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18011. echo "-- dynamic libXss -> $xss_lib"
  18012. cat >>confdefs.h <<_ACEOF
  18013. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18014. _ACEOF
  18015. definitely_enable_video_x11_scrnsaver=yes
  18016. else
  18017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18018. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18019. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18020. $as_echo_n "(cached) " >&6
  18021. else
  18022. ac_check_lib_save_LIBS=$LIBS
  18023. LIBS="-lXss $LIBS"
  18024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18025. /* end confdefs.h. */
  18026. /* Override any GCC internal prototype to avoid an error.
  18027. Use char because int might match the return type of a GCC
  18028. builtin and then its argument prototype would still apply. */
  18029. #ifdef __cplusplus
  18030. extern "C"
  18031. #endif
  18032. char XScreenSaverSuspend ();
  18033. int
  18034. main ()
  18035. {
  18036. return XScreenSaverSuspend ();
  18037. ;
  18038. return 0;
  18039. }
  18040. _ACEOF
  18041. if ac_fn_c_try_link "$LINENO"; then :
  18042. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18043. else
  18044. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18045. fi
  18046. rm -f core conftest.err conftest.$ac_objext \
  18047. conftest$ac_exeext conftest.$ac_ext
  18048. LIBS=$ac_check_lib_save_LIBS
  18049. fi
  18050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18051. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18052. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18053. have_xss_lib=yes
  18054. fi
  18055. if test x$have_xss_lib = xyes ; then
  18056. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18057. definitely_enable_video_x11_scrnsaver=yes
  18058. fi
  18059. fi
  18060. fi
  18061. fi
  18062. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18063. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18064. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18065. fi
  18066. # Check whether --enable-video-x11-xshape was given.
  18067. if test "${enable_video_x11_xshape+set}" = set; then :
  18068. enableval=$enable_video_x11_xshape;
  18069. else
  18070. enable_video_x11_xshape=yes
  18071. fi
  18072. if test x$enable_video_x11_xshape = xyes; then
  18073. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18074. "
  18075. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18076. have_shape_h_hdr=yes
  18077. else
  18078. have_shape_h_hdr=no
  18079. fi
  18080. if test x$have_shape_h_hdr = xyes; then
  18081. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18082. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18083. fi
  18084. fi
  18085. # Check whether --enable-video-x11-vm was given.
  18086. if test "${enable_video_x11_vm+set}" = set; then :
  18087. enableval=$enable_video_x11_vm;
  18088. else
  18089. enable_video_x11_vm=yes
  18090. fi
  18091. if test x$enable_video_x11_vm = xyes; then
  18092. definitely_enable_video_x11_vm=no
  18093. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18094. "
  18095. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18096. have_vm_h_hdr=yes
  18097. else
  18098. have_vm_h_hdr=no
  18099. fi
  18100. if test x$have_vm_h_hdr = xyes; then
  18101. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18102. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18103. cat >>confdefs.h <<_ACEOF
  18104. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18105. _ACEOF
  18106. definitely_enable_video_x11_vm=yes
  18107. else
  18108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18109. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18110. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18111. $as_echo_n "(cached) " >&6
  18112. else
  18113. ac_check_lib_save_LIBS=$LIBS
  18114. LIBS="-lXxf86vm $LIBS"
  18115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18116. /* end confdefs.h. */
  18117. /* Override any GCC internal prototype to avoid an error.
  18118. Use char because int might match the return type of a GCC
  18119. builtin and then its argument prototype would still apply. */
  18120. #ifdef __cplusplus
  18121. extern "C"
  18122. #endif
  18123. char XF86VidModeQueryVersion ();
  18124. int
  18125. main ()
  18126. {
  18127. return XF86VidModeQueryVersion ();
  18128. ;
  18129. return 0;
  18130. }
  18131. _ACEOF
  18132. if ac_fn_c_try_link "$LINENO"; then :
  18133. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18134. else
  18135. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18136. fi
  18137. rm -f core conftest.err conftest.$ac_objext \
  18138. conftest$ac_exeext conftest.$ac_ext
  18139. LIBS=$ac_check_lib_save_LIBS
  18140. fi
  18141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18142. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18143. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18144. have_vm_lib=yes
  18145. fi
  18146. if test x$have_vm_lib = xyes ; then
  18147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18148. definitely_enable_video_x11_vm=yes
  18149. fi
  18150. fi
  18151. fi
  18152. fi
  18153. if test x$definitely_enable_video_x11_vm = xyes; then
  18154. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18155. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18156. fi
  18157. fi
  18158. fi
  18159. }
  18160. CheckVivanteVideo()
  18161. {
  18162. # Check whether --enable-video-vivante was given.
  18163. if test "${enable_video_vivante+set}" = set; then :
  18164. enableval=$enable_video_vivante;
  18165. else
  18166. enable_video_vivante=yes
  18167. fi
  18168. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18170. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18171. have_vivante_vdk=no
  18172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18173. /* end confdefs.h. */
  18174. #define LINUX
  18175. #define EGL_API_FB
  18176. #include <gc_vdk.h>
  18177. int
  18178. main ()
  18179. {
  18180. ;
  18181. return 0;
  18182. }
  18183. _ACEOF
  18184. if ac_fn_c_try_compile "$LINENO"; then :
  18185. have_vivante_vdk=yes
  18186. fi
  18187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18189. $as_echo "$have_vivante_vdk" >&6; }
  18190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18191. $as_echo_n "checking for Vivante FB API... " >&6; }
  18192. have_vivante_egl=no
  18193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18194. /* end confdefs.h. */
  18195. #define LINUX
  18196. #define EGL_API_FB
  18197. #include <EGL/eglvivante.h>
  18198. int
  18199. main ()
  18200. {
  18201. ;
  18202. return 0;
  18203. }
  18204. _ACEOF
  18205. if ac_fn_c_try_compile "$LINENO"; then :
  18206. have_vivante_egl=yes
  18207. fi
  18208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18210. $as_echo "$have_vivante_egl" >&6; }
  18211. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18212. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18213. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18214. if test x$have_vivante_vdk = xyes; then
  18215. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18216. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18217. fi
  18218. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18219. SUMMARY_video="${SUMMARY_video} vivante"
  18220. have_video=yes
  18221. fi
  18222. fi
  18223. }
  18224. CheckHaikuVideo()
  18225. {
  18226. if test x$enable_video = xyes; then
  18227. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18228. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18229. have_video=yes
  18230. SUMMARY_video="${SUMMARY_video} haiku"
  18231. fi
  18232. }
  18233. CheckCOCOA()
  18234. {
  18235. # Check whether --enable-video-cocoa was given.
  18236. if test "${enable_video_cocoa+set}" = set; then :
  18237. enableval=$enable_video_cocoa;
  18238. else
  18239. enable_video_cocoa=yes
  18240. fi
  18241. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18242. save_CFLAGS="$CFLAGS"
  18243. CFLAGS="$CFLAGS -x objective-c"
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18245. $as_echo_n "checking for Cocoa framework... " >&6; }
  18246. have_cocoa=no
  18247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18248. /* end confdefs.h. */
  18249. #import <Cocoa/Cocoa.h>
  18250. int
  18251. main ()
  18252. {
  18253. ;
  18254. return 0;
  18255. }
  18256. _ACEOF
  18257. if ac_fn_c_try_compile "$LINENO"; then :
  18258. have_cocoa=yes
  18259. fi
  18260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18262. $as_echo "$have_cocoa" >&6; }
  18263. CFLAGS="$save_CFLAGS"
  18264. if test x$have_cocoa = xyes; then
  18265. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18266. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18267. SUMMARY_video="${SUMMARY_video} cocoa"
  18268. have_video=yes
  18269. fi
  18270. fi
  18271. }
  18272. CheckMETAL()
  18273. {
  18274. # Check whether --enable-render-metal was given.
  18275. if test "${enable_render_metal+set}" = set; then :
  18276. enableval=$enable_render_metal;
  18277. else
  18278. enable_render_metal=yes
  18279. fi
  18280. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18281. save_CFLAGS="$CFLAGS"
  18282. CFLAGS="$CFLAGS -x objective-c"
  18283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18284. $as_echo_n "checking for Metal framework... " >&6; }
  18285. have_metal=no
  18286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18287. /* end confdefs.h. */
  18288. #import <Cocoa/Cocoa.h>
  18289. #import <Metal/Metal.h>
  18290. #import <QuartzCore/CAMetalLayer.h>
  18291. #if !TARGET_CPU_X86_64
  18292. #error Metal doesn't work on this configuration
  18293. #endif
  18294. int
  18295. main ()
  18296. {
  18297. ;
  18298. return 0;
  18299. }
  18300. _ACEOF
  18301. if ac_fn_c_try_compile "$LINENO"; then :
  18302. have_metal=yes
  18303. fi
  18304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18305. CFLAGS="$save_CFLAGS"
  18306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18307. $as_echo "$have_metal" >&6; }
  18308. if test x$have_metal = xyes; then
  18309. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18310. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18311. SUMMARY_video="${SUMMARY_video} metal"
  18312. else
  18313. enable_render_metal=no
  18314. fi
  18315. fi
  18316. }
  18317. CheckDirectFB()
  18318. {
  18319. # Check whether --enable-video-directfb was given.
  18320. if test "${enable_video_directfb+set}" = set; then :
  18321. enableval=$enable_video_directfb;
  18322. else
  18323. enable_video_directfb=no
  18324. fi
  18325. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18326. video_directfb=no
  18327. DIRECTFB_REQUIRED_VERSION=1.0.0
  18328. for ac_prog in directfb-config
  18329. do
  18330. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18331. set dummy $ac_prog; ac_word=$2
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18333. $as_echo_n "checking for $ac_word... " >&6; }
  18334. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18335. $as_echo_n "(cached) " >&6
  18336. else
  18337. case $DIRECTFBCONFIG in
  18338. [\\/]* | ?:[\\/]*)
  18339. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18340. ;;
  18341. *)
  18342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18343. as_dummy="$prefix/bin:$PATH"
  18344. for as_dir in $as_dummy
  18345. do
  18346. IFS=$as_save_IFS
  18347. test -z "$as_dir" && as_dir=.
  18348. for ac_exec_ext in '' $ac_executable_extensions; do
  18349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18350. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18352. break 2
  18353. fi
  18354. done
  18355. done
  18356. IFS=$as_save_IFS
  18357. ;;
  18358. esac
  18359. fi
  18360. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18361. if test -n "$DIRECTFBCONFIG"; then
  18362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18363. $as_echo "$DIRECTFBCONFIG" >&6; }
  18364. else
  18365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18366. $as_echo "no" >&6; }
  18367. fi
  18368. test -n "$DIRECTFBCONFIG" && break
  18369. done
  18370. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18371. if test x$DIRECTFBCONFIG = xno; then
  18372. # Extract the first word of "pkg-config", so it can be a program name with args.
  18373. set dummy pkg-config; ac_word=$2
  18374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18375. $as_echo_n "checking for $ac_word... " >&6; }
  18376. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18377. $as_echo_n "(cached) " >&6
  18378. else
  18379. case $PKG_CONFIG in
  18380. [\\/]* | ?:[\\/]*)
  18381. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18382. ;;
  18383. *)
  18384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18385. for as_dir in $PATH
  18386. do
  18387. IFS=$as_save_IFS
  18388. test -z "$as_dir" && as_dir=.
  18389. for ac_exec_ext in '' $ac_executable_extensions; do
  18390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18391. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18393. break 2
  18394. fi
  18395. done
  18396. done
  18397. IFS=$as_save_IFS
  18398. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18399. ;;
  18400. esac
  18401. fi
  18402. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18403. if test -n "$PKG_CONFIG"; then
  18404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18405. $as_echo "$PKG_CONFIG" >&6; }
  18406. else
  18407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18408. $as_echo "no" >&6; }
  18409. fi
  18410. if test x$PKG_CONFIG != xno; then
  18411. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18412. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18413. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18414. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18415. video_directfb=yes
  18416. fi
  18417. fi
  18418. else
  18419. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18420. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18421. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18422. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18423. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18424. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18425. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18426. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18427. video_directfb=yes
  18428. fi
  18429. fi
  18430. if test x$video_directfb = xyes; then
  18431. # SuSE 11.1 installs directfb-config without directfb-devel
  18432. save_CPPFLAGS="$CPPFLAGS"
  18433. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18434. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18435. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18436. have_directfb_hdr=yes
  18437. else
  18438. have_directfb_hdr=no
  18439. fi
  18440. CPPFLAGS="$save_CPPFLAGS"
  18441. video_directfb=$have_directfb_hdr
  18442. fi
  18443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18444. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18446. $as_echo "$video_directfb" >&6; }
  18447. if test x$video_directfb = xyes; then
  18448. # Check whether --enable-directfb-shared was given.
  18449. if test "${enable_directfb_shared+set}" = set; then :
  18450. enableval=$enable_directfb_shared;
  18451. else
  18452. enable_directfb_shared=yes
  18453. fi
  18454. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18455. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18456. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18457. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18459. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18460. directfb_shared=no
  18461. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18462. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18464. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18465. if test x$have_loadso != xyes && \
  18466. test x$enable_directfb_shared = xyes; then
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18468. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18469. fi
  18470. if test x$have_loadso = xyes && \
  18471. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18472. directfb_shared=yes
  18473. echo "-- $directfb_lib_spec -> $directfb_lib"
  18474. cat >>confdefs.h <<_ACEOF
  18475. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18476. _ACEOF
  18477. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18478. else
  18479. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18480. SUMMARY_video="${SUMMARY_video} directfb"
  18481. fi
  18482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18483. $as_echo "$directfb_shared" >&6; }
  18484. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18485. have_video=yes
  18486. fi
  18487. fi
  18488. }
  18489. CheckKMSDRM()
  18490. {
  18491. # Check whether --enable-video-kmsdrm was given.
  18492. if test "${enable_video_kmsdrm+set}" = set; then :
  18493. enableval=$enable_video_kmsdrm;
  18494. else
  18495. enable_video_kmsdrm=no
  18496. fi
  18497. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18498. video_kmsdrm=no
  18499. libdrm_avail=no
  18500. libgbm_avail=no
  18501. LIBDRM_REQUIRED_VERSION=2.4.46
  18502. LIBGBM_REQUIRED_VERSION=9.0.0
  18503. # Extract the first word of "pkg-config", so it can be a program name with args.
  18504. set dummy pkg-config; ac_word=$2
  18505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18506. $as_echo_n "checking for $ac_word... " >&6; }
  18507. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18508. $as_echo_n "(cached) " >&6
  18509. else
  18510. case $PKG_CONFIG in
  18511. [\\/]* | ?:[\\/]*)
  18512. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18513. ;;
  18514. *)
  18515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18516. for as_dir in $PATH
  18517. do
  18518. IFS=$as_save_IFS
  18519. test -z "$as_dir" && as_dir=.
  18520. for ac_exec_ext in '' $ac_executable_extensions; do
  18521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18522. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18524. break 2
  18525. fi
  18526. done
  18527. done
  18528. IFS=$as_save_IFS
  18529. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18530. ;;
  18531. esac
  18532. fi
  18533. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18534. if test -n "$PKG_CONFIG"; then
  18535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18536. $as_echo "$PKG_CONFIG" >&6; }
  18537. else
  18538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18539. $as_echo "no" >&6; }
  18540. fi
  18541. if test x$PKG_CONFIG != xno; then
  18542. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18543. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18544. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18545. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18546. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18547. libdrm_avail=yes
  18548. fi
  18549. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18550. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18551. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18552. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18553. libgbm_avail=yes
  18554. fi
  18555. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18556. video_kmsdrm=yes
  18557. fi
  18558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18559. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18561. $as_echo "$libdrm_avail" >&6; }
  18562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18563. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18565. $as_echo "$libgbm_avail" >&6; }
  18566. if test x$video_kmsdrm = xyes; then
  18567. # Check whether --enable-kmsdrm-shared was given.
  18568. if test "${enable_kmsdrm_shared+set}" = set; then :
  18569. enableval=$enable_kmsdrm_shared;
  18570. else
  18571. enable_kmsdrm_shared=yes
  18572. fi
  18573. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18574. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18575. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18577. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18578. kmsdrm_shared=no
  18579. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18580. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18581. if test x$have_loadso != xyes && \
  18582. test x$enable_kmsdrm_shared = xyes; then
  18583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18584. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18585. fi
  18586. if test x$have_loadso = xyes && \
  18587. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18588. kmsdrm_shared=yes
  18589. cat >>confdefs.h <<_ACEOF
  18590. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18591. _ACEOF
  18592. cat >>confdefs.h <<_ACEOF
  18593. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18594. _ACEOF
  18595. cat >>confdefs.h <<_ACEOF
  18596. #define HAVE_KMSDRM_SHARED "TRUE"
  18597. _ACEOF
  18598. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18599. else
  18600. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18601. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18602. fi
  18603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18604. $as_echo "$kmsdrm_shared" >&6; }
  18605. have_video=yes
  18606. fi
  18607. fi
  18608. fi
  18609. fi
  18610. }
  18611. CheckDummyVideo()
  18612. {
  18613. # Check whether --enable-video-dummy was given.
  18614. if test "${enable_video_dummy+set}" = set; then :
  18615. enableval=$enable_video_dummy;
  18616. else
  18617. enable_video_dummy=yes
  18618. fi
  18619. if test x$enable_video_dummy = xyes; then
  18620. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18621. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18622. have_video=yes
  18623. SUMMARY_video="${SUMMARY_video} dummy"
  18624. fi
  18625. }
  18626. CheckQNXVideo()
  18627. {
  18628. if test x$enable_video = xyes; then
  18629. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18630. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18631. have_video=yes
  18632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18633. SUMMARY_video="${SUMMARY_video} qnx"
  18634. fi
  18635. }
  18636. CheckQNXAudio()
  18637. {
  18638. if test x$enable_audio = xyes; then
  18639. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18640. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18641. have_audio=yes
  18642. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18643. SUMMARY_audio="${SUMMARY_audio} qsa"
  18644. fi
  18645. }
  18646. # Check whether --enable-video-opengl was given.
  18647. if test "${enable_video_opengl+set}" = set; then :
  18648. enableval=$enable_video_opengl;
  18649. else
  18650. enable_video_opengl=yes
  18651. fi
  18652. CheckOpenGLX11()
  18653. {
  18654. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18656. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18657. video_opengl=no
  18658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18659. /* end confdefs.h. */
  18660. #include <GL/gl.h>
  18661. #include <GL/glx.h>
  18662. int
  18663. main ()
  18664. {
  18665. ;
  18666. return 0;
  18667. }
  18668. _ACEOF
  18669. if ac_fn_c_try_compile "$LINENO"; then :
  18670. video_opengl=yes
  18671. fi
  18672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18674. $as_echo "$video_opengl" >&6; }
  18675. if test x$video_opengl = xyes; then
  18676. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18677. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18678. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18679. SUMMARY_video="${SUMMARY_video} opengl"
  18680. fi
  18681. fi
  18682. }
  18683. # Check whether --enable-video-opengles was given.
  18684. if test "${enable_video_opengles+set}" = set; then :
  18685. enableval=$enable_video_opengles;
  18686. else
  18687. enable_video_opengles=yes
  18688. fi
  18689. # Check whether --enable-video-opengles1 was given.
  18690. if test "${enable_video_opengles1+set}" = set; then :
  18691. enableval=$enable_video_opengles1;
  18692. else
  18693. enable_video_opengles1=yes
  18694. fi
  18695. # Check whether --enable-video-opengles2 was given.
  18696. if test "${enable_video_opengles2+set}" = set; then :
  18697. enableval=$enable_video_opengles2;
  18698. else
  18699. enable_video_opengles2=yes
  18700. fi
  18701. CheckOpenGLESX11()
  18702. {
  18703. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18705. $as_echo_n "checking for EGL support... " >&6; }
  18706. video_opengl_egl=no
  18707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18708. /* end confdefs.h. */
  18709. #define LINUX
  18710. #define EGL_API_FB
  18711. #include <EGL/egl.h>
  18712. #include <EGL/eglext.h>
  18713. int
  18714. main ()
  18715. {
  18716. ;
  18717. return 0;
  18718. }
  18719. _ACEOF
  18720. if ac_fn_c_try_compile "$LINENO"; then :
  18721. video_opengl_egl=yes
  18722. fi
  18723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18725. $as_echo "$video_opengl_egl" >&6; }
  18726. if test x$video_opengl_egl = xyes; then
  18727. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18728. fi
  18729. if test x$enable_video_opengles1 = xyes; then
  18730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18731. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18732. video_opengles_v1=no
  18733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18734. /* end confdefs.h. */
  18735. #include <GLES/gl.h>
  18736. #include <GLES/glext.h>
  18737. int
  18738. main ()
  18739. {
  18740. ;
  18741. return 0;
  18742. }
  18743. _ACEOF
  18744. if ac_fn_c_try_compile "$LINENO"; then :
  18745. video_opengles_v1=yes
  18746. fi
  18747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18749. $as_echo "$video_opengles_v1" >&6; }
  18750. if test x$video_opengles_v1 = xyes; then
  18751. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18752. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18753. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18754. fi
  18755. fi
  18756. if test x$enable_video_opengles2 = xyes; then
  18757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18758. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18759. video_opengles_v2=no
  18760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18761. /* end confdefs.h. */
  18762. #include <GLES2/gl2.h>
  18763. #include <GLES2/gl2ext.h>
  18764. int
  18765. main ()
  18766. {
  18767. ;
  18768. return 0;
  18769. }
  18770. _ACEOF
  18771. if ac_fn_c_try_compile "$LINENO"; then :
  18772. video_opengles_v2=yes
  18773. fi
  18774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18776. $as_echo "$video_opengles_v2" >&6; }
  18777. if test x$video_opengles_v2 = xyes; then
  18778. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18779. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18780. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18781. fi
  18782. fi
  18783. fi
  18784. }
  18785. CheckWINDOWSGL()
  18786. {
  18787. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18788. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18789. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18790. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18791. SUMMARY_video="${SUMMARY_video} opengl"
  18792. fi
  18793. }
  18794. CheckWINDOWSGLES()
  18795. {
  18796. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18798. $as_echo_n "checking for EGL support... " >&6; }
  18799. video_opengl_egl=no
  18800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18801. /* end confdefs.h. */
  18802. #include <EGL/egl.h>
  18803. int
  18804. main ()
  18805. {
  18806. ;
  18807. return 0;
  18808. }
  18809. _ACEOF
  18810. if ac_fn_c_try_compile "$LINENO"; then :
  18811. video_opengl_egl=yes
  18812. fi
  18813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18815. $as_echo "$video_opengl_egl" >&6; }
  18816. if test x$video_opengl_egl = xyes; then
  18817. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18818. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18819. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18820. fi
  18821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18822. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18823. video_opengles_v2=no
  18824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18825. /* end confdefs.h. */
  18826. #include <GLES2/gl2.h>
  18827. #include <GLES2/gl2ext.h>
  18828. int
  18829. main ()
  18830. {
  18831. ;
  18832. return 0;
  18833. }
  18834. _ACEOF
  18835. if ac_fn_c_try_compile "$LINENO"; then :
  18836. video_opengles_v2=yes
  18837. fi
  18838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18840. $as_echo "$video_opengles_v2" >&6; }
  18841. if test x$video_opengles_v2 = xyes; then
  18842. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18843. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18844. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18845. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18846. fi
  18847. fi
  18848. }
  18849. CheckHaikuGL()
  18850. {
  18851. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18852. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18853. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18854. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18855. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18856. SUMMARY_video="${SUMMARY_video} opengl"
  18857. fi
  18858. }
  18859. CheckMacGL()
  18860. {
  18861. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18862. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18863. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18864. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18865. SUMMARY_video="${SUMMARY_video} opengl"
  18866. fi
  18867. }
  18868. CheckMacGLES()
  18869. {
  18870. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18871. video_opengl_egl=yes
  18872. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18873. video_opengles_v2=yes
  18874. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18875. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18876. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18877. fi
  18878. }
  18879. CheckEmscriptenGLES()
  18880. {
  18881. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18883. $as_echo_n "checking for EGL support... " >&6; }
  18884. video_opengl_egl=no
  18885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18886. /* end confdefs.h. */
  18887. #include <EGL/egl.h>
  18888. int
  18889. main ()
  18890. {
  18891. ;
  18892. return 0;
  18893. }
  18894. _ACEOF
  18895. if ac_fn_c_try_compile "$LINENO"; then :
  18896. video_opengl_egl=yes
  18897. fi
  18898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18900. $as_echo "$video_opengl_egl" >&6; }
  18901. if test x$video_opengl_egl = xyes; then
  18902. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18903. fi
  18904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18905. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18906. video_opengles_v2=no
  18907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18908. /* end confdefs.h. */
  18909. #include <GLES2/gl2.h>
  18910. #include <GLES2/gl2ext.h>
  18911. int
  18912. main ()
  18913. {
  18914. ;
  18915. return 0;
  18916. }
  18917. _ACEOF
  18918. if ac_fn_c_try_compile "$LINENO"; then :
  18919. video_opengles_v2=yes
  18920. fi
  18921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18923. $as_echo "$video_opengles_v2" >&6; }
  18924. if test x$video_opengles_v2 = xyes; then
  18925. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18926. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18927. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18928. fi
  18929. fi
  18930. }
  18931. # Check whether --enable-video-vulkan was given.
  18932. if test "${enable_video_vulkan+set}" = set; then :
  18933. enableval=$enable_video_vulkan;
  18934. else
  18935. enable_video_vulkan=yes
  18936. fi
  18937. CheckVulkan()
  18938. {
  18939. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18940. case "$host" in
  18941. *-*-android*)
  18942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18943. /* end confdefs.h. */
  18944. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18945. #error Vulkan doesn't work on this configuration
  18946. #endif
  18947. int
  18948. main ()
  18949. {
  18950. ;
  18951. return 0;
  18952. }
  18953. _ACEOF
  18954. if ac_fn_c_try_compile "$LINENO"; then :
  18955. else
  18956. enable_video_vulkan=no
  18957. fi
  18958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18959. ;;
  18960. *-*-darwin*)
  18961. save_CFLAGS="$CFLAGS"
  18962. CFLAGS="$CFLAGS -x objective-c"
  18963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18964. /* end confdefs.h. */
  18965. #include <Cocoa/Cocoa.h>
  18966. #include <Metal/Metal.h>
  18967. #include <QuartzCore/CAMetalLayer.h>
  18968. #if !TARGET_CPU_X86_64
  18969. #error Vulkan doesn't work on this configuration
  18970. #endif
  18971. int
  18972. main ()
  18973. {
  18974. ;
  18975. return 0;
  18976. }
  18977. _ACEOF
  18978. if ac_fn_c_try_compile "$LINENO"; then :
  18979. else
  18980. enable_video_vulkan=no
  18981. fi
  18982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18983. CFLAGS="$save_CFLAGS"
  18984. ;;
  18985. *)
  18986. ;;
  18987. esac
  18988. if test x$enable_video_vulkan = xno; then
  18989. # For reasons I am totally unable to see, I get an undefined macro error if
  18990. # I put this in the AC_TRY_COMPILE.
  18991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18992. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18993. fi
  18994. fi
  18995. if test x$enable_video_vulkan = xyes; then
  18996. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18997. SUMMARY_video="${SUMMARY_video} vulkan"
  18998. fi
  18999. }
  19000. CheckInputEvents()
  19001. {
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19003. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19004. use_input_events=no
  19005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19006. /* end confdefs.h. */
  19007. #include <linux/input.h>
  19008. int
  19009. main ()
  19010. {
  19011. #ifndef EVIOCGNAME
  19012. #error EVIOCGNAME() ioctl not available
  19013. #endif
  19014. ;
  19015. return 0;
  19016. }
  19017. _ACEOF
  19018. if ac_fn_c_try_compile "$LINENO"; then :
  19019. use_input_events=yes
  19020. fi
  19021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19023. $as_echo "$use_input_events" >&6; }
  19024. if test x$use_input_events = xyes; then
  19025. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19026. SUMMARY_input="${SUMMARY_input} linuxev"
  19027. fi
  19028. }
  19029. CheckInputKD()
  19030. {
  19031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19032. $as_echo_n "checking for Linux kd.h... " >&6; }
  19033. use_input_kd=no
  19034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19035. /* end confdefs.h. */
  19036. #include <linux/kd.h>
  19037. #include <linux/keyboard.h>
  19038. int
  19039. main ()
  19040. {
  19041. struct kbentry kbe;
  19042. kbe.kb_table = KG_CTRL;
  19043. ioctl(0, KDGKBENT, &kbe);
  19044. ;
  19045. return 0;
  19046. }
  19047. _ACEOF
  19048. if ac_fn_c_try_compile "$LINENO"; then :
  19049. use_input_kd=yes
  19050. fi
  19051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19053. $as_echo "$use_input_kd" >&6; }
  19054. if test x$use_input_kd = xyes; then
  19055. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19056. SUMMARY_input="${SUMMARY_input} linuxkd"
  19057. fi
  19058. }
  19059. CheckLibUDev()
  19060. {
  19061. # Check whether --enable-libudev was given.
  19062. if test "${enable_libudev+set}" = set; then :
  19063. enableval=$enable_libudev;
  19064. else
  19065. enable_libudev=yes
  19066. fi
  19067. if test x$enable_libudev = xyes; then
  19068. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19069. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19070. have_libudev_h_hdr=yes
  19071. else
  19072. have_libudev_h_hdr=no
  19073. fi
  19074. if test x$have_libudev_h_hdr = xyes; then
  19075. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19076. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19077. if test x$udev_lib != x; then
  19078. echo "-- dynamic udev -> $udev_lib"
  19079. cat >>confdefs.h <<_ACEOF
  19080. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19081. _ACEOF
  19082. fi
  19083. fi
  19084. fi
  19085. }
  19086. CheckDBus()
  19087. {
  19088. # Check whether --enable-dbus was given.
  19089. if test "${enable_dbus+set}" = set; then :
  19090. enableval=$enable_dbus;
  19091. else
  19092. enable_dbus=yes
  19093. fi
  19094. if test x$enable_dbus = xyes; then
  19095. # Extract the first word of "pkg-config", so it can be a program name with args.
  19096. set dummy pkg-config; ac_word=$2
  19097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19098. $as_echo_n "checking for $ac_word... " >&6; }
  19099. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19100. $as_echo_n "(cached) " >&6
  19101. else
  19102. case $PKG_CONFIG in
  19103. [\\/]* | ?:[\\/]*)
  19104. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19105. ;;
  19106. *)
  19107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19108. for as_dir in $PATH
  19109. do
  19110. IFS=$as_save_IFS
  19111. test -z "$as_dir" && as_dir=.
  19112. for ac_exec_ext in '' $ac_executable_extensions; do
  19113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19114. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19116. break 2
  19117. fi
  19118. done
  19119. done
  19120. IFS=$as_save_IFS
  19121. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19122. ;;
  19123. esac
  19124. fi
  19125. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19126. if test -n "$PKG_CONFIG"; then
  19127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19128. $as_echo "$PKG_CONFIG" >&6; }
  19129. else
  19130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19131. $as_echo "no" >&6; }
  19132. fi
  19133. if test x$PKG_CONFIG != xno; then
  19134. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19135. save_CFLAGS="$CFLAGS"
  19136. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19137. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19138. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19139. have_dbus_dbus_h_hdr=yes
  19140. else
  19141. have_dbus_dbus_h_hdr=no
  19142. fi
  19143. CFLAGS="$save_CFLAGS"
  19144. if test x$have_dbus_dbus_h_hdr = xyes; then
  19145. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19146. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19147. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19148. fi
  19149. fi
  19150. fi
  19151. }
  19152. CheckIME()
  19153. {
  19154. # Check whether --enable-ime was given.
  19155. if test "${enable_ime+set}" = set; then :
  19156. enableval=$enable_ime;
  19157. else
  19158. enable_ime=yes
  19159. fi
  19160. if test x$enable_ime = xyes; then
  19161. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19162. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19163. fi
  19164. }
  19165. CheckIBus()
  19166. {
  19167. # Check whether --enable-ibus was given.
  19168. if test "${enable_ibus+set}" = set; then :
  19169. enableval=$enable_ibus;
  19170. else
  19171. enable_ibus=yes
  19172. fi
  19173. if test x$enable_ibus = xyes; then
  19174. # Extract the first word of "pkg-config", so it can be a program name with args.
  19175. set dummy pkg-config; ac_word=$2
  19176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19177. $as_echo_n "checking for $ac_word... " >&6; }
  19178. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19179. $as_echo_n "(cached) " >&6
  19180. else
  19181. case $PKG_CONFIG in
  19182. [\\/]* | ?:[\\/]*)
  19183. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19184. ;;
  19185. *)
  19186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19187. for as_dir in $PATH
  19188. do
  19189. IFS=$as_save_IFS
  19190. test -z "$as_dir" && as_dir=.
  19191. for ac_exec_ext in '' $ac_executable_extensions; do
  19192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19193. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19195. break 2
  19196. fi
  19197. done
  19198. done
  19199. IFS=$as_save_IFS
  19200. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19201. ;;
  19202. esac
  19203. fi
  19204. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19205. if test -n "$PKG_CONFIG"; then
  19206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19207. $as_echo "$PKG_CONFIG" >&6; }
  19208. else
  19209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19210. $as_echo "no" >&6; }
  19211. fi
  19212. if test x$PKG_CONFIG != xno; then
  19213. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19214. save_CFLAGS="$CFLAGS"
  19215. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19216. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19217. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19218. have_ibus_ibus_h_hdr=yes
  19219. else
  19220. have_ibus_ibus_h_hdr=no
  19221. fi
  19222. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19223. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19224. have_inotify_inotify_h_hdr=yes
  19225. else
  19226. have_inotify_inotify_h_hdr=no
  19227. fi
  19228. CFLAGS="$save_CFLAGS"
  19229. if test x$have_ibus_ibus_h_hdr = xyes; then
  19230. if test x$enable_ime != xyes; then
  19231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19232. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19233. have_ibus_ibus_h_hdr=no
  19234. elif test x$enable_dbus != xyes; then
  19235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19236. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19237. have_ibus_ibus_h_hdr=no
  19238. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19240. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19241. have_ibus_ibus_h_hdr=no
  19242. else
  19243. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19244. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19245. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19246. fi
  19247. fi
  19248. fi
  19249. fi
  19250. }
  19251. CheckFcitx()
  19252. {
  19253. # Check whether --enable-fcitx was given.
  19254. if test "${enable_fcitx+set}" = set; then :
  19255. enableval=$enable_fcitx;
  19256. else
  19257. enable_fcitx=yes
  19258. fi
  19259. if test x$enable_fcitx = xyes; then
  19260. # Extract the first word of "pkg-config", so it can be a program name with args.
  19261. set dummy pkg-config; ac_word=$2
  19262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19263. $as_echo_n "checking for $ac_word... " >&6; }
  19264. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19265. $as_echo_n "(cached) " >&6
  19266. else
  19267. case $PKG_CONFIG in
  19268. [\\/]* | ?:[\\/]*)
  19269. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19270. ;;
  19271. *)
  19272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19273. for as_dir in $PATH
  19274. do
  19275. IFS=$as_save_IFS
  19276. test -z "$as_dir" && as_dir=.
  19277. for ac_exec_ext in '' $ac_executable_extensions; do
  19278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19279. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19281. break 2
  19282. fi
  19283. done
  19284. done
  19285. IFS=$as_save_IFS
  19286. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19287. ;;
  19288. esac
  19289. fi
  19290. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19291. if test -n "$PKG_CONFIG"; then
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19293. $as_echo "$PKG_CONFIG" >&6; }
  19294. else
  19295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19296. $as_echo "no" >&6; }
  19297. fi
  19298. if test x$PKG_CONFIG != xno; then
  19299. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19300. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19301. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19302. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19303. have_fcitx_frontend_h_hdr=yes
  19304. else
  19305. have_fcitx_frontend_h_hdr=no
  19306. fi
  19307. CFLAGS="$save_CFLAGS"
  19308. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19309. if test x$enable_ime != xyes; then
  19310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19311. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19312. have_fcitx_frontend_h_hdr=no
  19313. elif test x$enable_dbus != xyes; then
  19314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19315. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19316. have_fcitx_frontend_h_hdr=no
  19317. else
  19318. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19319. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19320. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19321. fi
  19322. fi
  19323. fi
  19324. fi
  19325. }
  19326. CheckTslib()
  19327. {
  19328. # Check whether --enable-input-tslib was given.
  19329. if test "${enable_input_tslib+set}" = set; then :
  19330. enableval=$enable_input_tslib;
  19331. else
  19332. enable_input_tslib=yes
  19333. fi
  19334. if test x$enable_input_tslib = xyes; then
  19335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19336. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19337. enable_input_tslib=no
  19338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19339. /* end confdefs.h. */
  19340. #include "tslib.h"
  19341. int
  19342. main ()
  19343. {
  19344. ;
  19345. return 0;
  19346. }
  19347. _ACEOF
  19348. if ac_fn_c_try_compile "$LINENO"; then :
  19349. enable_input_tslib=yes
  19350. fi
  19351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19353. $as_echo "$enable_input_tslib" >&6; }
  19354. if test x$enable_input_tslib = xyes; then
  19355. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19357. SUMMARY_input="${SUMMARY_input} ts"
  19358. fi
  19359. fi
  19360. }
  19361. CheckPTHREAD()
  19362. {
  19363. # Check whether --enable-pthreads was given.
  19364. if test "${enable_pthreads+set}" = set; then :
  19365. enableval=$enable_pthreads;
  19366. else
  19367. enable_pthreads=yes
  19368. fi
  19369. # Check whether --enable-pthread-sem was given.
  19370. if test "${enable_pthread_sem+set}" = set; then :
  19371. enableval=$enable_pthread_sem;
  19372. else
  19373. enable_pthread_sem=yes
  19374. fi
  19375. case "$host" in
  19376. *-*-android*)
  19377. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19378. pthread_lib=""
  19379. ;;
  19380. *-*-linux*|*-*-uclinux*)
  19381. pthread_cflags="-D_REENTRANT"
  19382. pthread_lib="-lpthread"
  19383. ;;
  19384. *-*-bsdi*)
  19385. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19386. pthread_lib=""
  19387. ;;
  19388. *-*-darwin*)
  19389. pthread_cflags="-D_THREAD_SAFE"
  19390. # causes Carbon.p complaints?
  19391. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19392. ;;
  19393. *-*-freebsd*|*-*-dragonfly*)
  19394. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19395. pthread_lib="-pthread"
  19396. ;;
  19397. *-*-netbsd*)
  19398. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19399. pthread_lib="-lpthread"
  19400. ;;
  19401. *-*-openbsd*)
  19402. pthread_cflags="-D_REENTRANT"
  19403. pthread_lib="-pthread"
  19404. ;;
  19405. *-*-solaris2.9)
  19406. # From Solaris 9+, posix4's preferred name is rt.
  19407. pthread_cflags="-D_REENTRANT"
  19408. pthread_lib="-lpthread -lrt"
  19409. ;;
  19410. *-*-solaris2.10)
  19411. # Solaris 10+ merged pthread into libc.
  19412. pthread_cflags="-D_REENTRANT"
  19413. pthread_lib="-lrt"
  19414. ;;
  19415. *-*-solaris*)
  19416. # Solaris 11+ merged rt into libc.
  19417. pthread_cflags="-D_REENTRANT"
  19418. pthread_lib=""
  19419. ;;
  19420. *-*-sysv5*)
  19421. pthread_cflags="-D_REENTRANT -Kthread"
  19422. pthread_lib=""
  19423. ;;
  19424. *-*-aix*)
  19425. pthread_cflags="-D_REENTRANT -mthreads"
  19426. pthread_lib="-lpthread"
  19427. ;;
  19428. *-*-hpux11*)
  19429. pthread_cflags="-D_REENTRANT"
  19430. pthread_lib="-L/usr/lib -lpthread"
  19431. ;;
  19432. *-*-haiku*)
  19433. pthread_cflags="-D_REENTRANT"
  19434. pthread_lib=""
  19435. ;;
  19436. *-*-nto*)
  19437. pthread_cflags="-D_REENTRANT"
  19438. pthread_lib=""
  19439. ;;
  19440. *)
  19441. pthread_cflags="-D_REENTRANT"
  19442. pthread_lib="-lpthread"
  19443. ;;
  19444. esac
  19445. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19446. # Save the original compiler flags and libraries
  19447. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19448. # Add the pthread compiler flags and libraries
  19449. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19450. # Check to see if we have pthread support on this system
  19451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19452. $as_echo_n "checking for pthreads... " >&6; }
  19453. use_pthreads=no
  19454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19455. /* end confdefs.h. */
  19456. #include <pthread.h>
  19457. int
  19458. main ()
  19459. {
  19460. pthread_attr_t type;
  19461. pthread_attr_init(&type);
  19462. ;
  19463. return 0;
  19464. }
  19465. _ACEOF
  19466. if ac_fn_c_try_link "$LINENO"; then :
  19467. use_pthreads=yes
  19468. fi
  19469. rm -f core conftest.err conftest.$ac_objext \
  19470. conftest$ac_exeext conftest.$ac_ext
  19471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19472. $as_echo "$use_pthreads" >&6; }
  19473. # Restore the compiler flags and libraries
  19474. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19475. # Do futher testing if we have pthread support...
  19476. if test x$use_pthreads = xyes; then
  19477. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19478. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19479. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19480. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19481. # Save the original compiler flags and libraries
  19482. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19483. # Add the pthread compiler flags and libraries
  19484. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19485. # Check to see if recursive mutexes are available
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19487. $as_echo_n "checking for recursive mutexes... " >&6; }
  19488. has_recursive_mutexes=no
  19489. if test x$has_recursive_mutexes = xno; then
  19490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19491. /* end confdefs.h. */
  19492. #define _GNU_SOURCE 1
  19493. #include <pthread.h>
  19494. int
  19495. main ()
  19496. {
  19497. pthread_mutexattr_t attr;
  19498. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19499. ;
  19500. return 0;
  19501. }
  19502. _ACEOF
  19503. if ac_fn_c_try_link "$LINENO"; then :
  19504. has_recursive_mutexes=yes
  19505. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19506. fi
  19507. rm -f core conftest.err conftest.$ac_objext \
  19508. conftest$ac_exeext conftest.$ac_ext
  19509. fi
  19510. if test x$has_recursive_mutexes = xno; then
  19511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19512. /* end confdefs.h. */
  19513. #define _GNU_SOURCE 1
  19514. #include <pthread.h>
  19515. int
  19516. main ()
  19517. {
  19518. pthread_mutexattr_t attr;
  19519. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19520. ;
  19521. return 0;
  19522. }
  19523. _ACEOF
  19524. if ac_fn_c_try_link "$LINENO"; then :
  19525. has_recursive_mutexes=yes
  19526. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19527. fi
  19528. rm -f core conftest.err conftest.$ac_objext \
  19529. conftest$ac_exeext conftest.$ac_ext
  19530. fi
  19531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19532. $as_echo "$has_recursive_mutexes" >&6; }
  19533. # Check to see if pthread semaphore support is missing
  19534. if test x$enable_pthread_sem = xyes; then
  19535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19536. $as_echo_n "checking for pthread semaphores... " >&6; }
  19537. have_pthread_sem=no
  19538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19539. /* end confdefs.h. */
  19540. #include <pthread.h>
  19541. #include <semaphore.h>
  19542. int
  19543. main ()
  19544. {
  19545. ;
  19546. return 0;
  19547. }
  19548. _ACEOF
  19549. if ac_fn_c_try_compile "$LINENO"; then :
  19550. have_pthread_sem=yes
  19551. fi
  19552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19554. $as_echo "$have_pthread_sem" >&6; }
  19555. fi
  19556. if test x$have_pthread_sem = xyes; then
  19557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19558. $as_echo_n "checking for sem_timedwait... " >&6; }
  19559. have_sem_timedwait=no
  19560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19561. /* end confdefs.h. */
  19562. #include <pthread.h>
  19563. #include <semaphore.h>
  19564. int
  19565. main ()
  19566. {
  19567. sem_timedwait(NULL, NULL);
  19568. ;
  19569. return 0;
  19570. }
  19571. _ACEOF
  19572. if ac_fn_c_try_link "$LINENO"; then :
  19573. have_sem_timedwait=yes
  19574. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19575. fi
  19576. rm -f core conftest.err conftest.$ac_objext \
  19577. conftest$ac_exeext conftest.$ac_ext
  19578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19579. $as_echo "$have_sem_timedwait" >&6; }
  19580. fi
  19581. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19582. "
  19583. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19584. have_pthread_np_h=yes
  19585. else
  19586. have_pthread_np_h=no
  19587. fi
  19588. if test x$have_pthread_np_h = xyes; then
  19589. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19590. fi
  19591. # Check to see if pthread naming is available
  19592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19593. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19595. /* end confdefs.h. */
  19596. /* Override any GCC internal prototype to avoid an error.
  19597. Use char because int might match the return type of a GCC
  19598. builtin and then its argument prototype would still apply. */
  19599. #ifdef __cplusplus
  19600. extern "C"
  19601. #endif
  19602. char pthread_setname_np ();
  19603. int
  19604. main ()
  19605. {
  19606. return pthread_setname_np ();
  19607. ;
  19608. return 0;
  19609. }
  19610. _ACEOF
  19611. if ac_fn_c_try_link "$LINENO"; then :
  19612. has_pthread_setname_np=yes
  19613. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19614. else
  19615. has_pthread_setname_np=no
  19616. fi
  19617. rm -f core conftest.err conftest.$ac_objext \
  19618. conftest$ac_exeext conftest.$ac_ext
  19619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19620. $as_echo "$has_pthread_setname_np" >&6; }
  19621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19622. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19624. /* end confdefs.h. */
  19625. /* Override any GCC internal prototype to avoid an error.
  19626. Use char because int might match the return type of a GCC
  19627. builtin and then its argument prototype would still apply. */
  19628. #ifdef __cplusplus
  19629. extern "C"
  19630. #endif
  19631. char pthread_set_name_np ();
  19632. int
  19633. main ()
  19634. {
  19635. return pthread_set_name_np ();
  19636. ;
  19637. return 0;
  19638. }
  19639. _ACEOF
  19640. if ac_fn_c_try_link "$LINENO"; then :
  19641. has_pthread_set_name_np=yes
  19642. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19643. else
  19644. has_pthread_set_name_np=no
  19645. fi
  19646. rm -f core conftest.err conftest.$ac_objext \
  19647. conftest$ac_exeext conftest.$ac_ext
  19648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19649. $as_echo "$has_pthread_set_name_np" >&6; }
  19650. # Restore the compiler flags and libraries
  19651. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19652. # Basic thread creation functions
  19653. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19654. # Semaphores
  19655. # We can fake these with mutexes and condition variables if necessary
  19656. if test x$have_pthread_sem = xyes; then
  19657. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19658. else
  19659. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19660. fi
  19661. # Mutexes
  19662. # We can fake these with semaphores if necessary
  19663. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19664. # Condition variables
  19665. # We can fake these with semaphores and mutexes if necessary
  19666. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19667. # Thread local storage
  19668. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19669. have_threads=yes
  19670. fi
  19671. fi
  19672. }
  19673. CheckWINDOWS()
  19674. {
  19675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19676. $as_echo_n "checking Windows compiler... " >&6; }
  19677. have_win32_gcc=no
  19678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19679. /* end confdefs.h. */
  19680. #include <windows.h>
  19681. int
  19682. main ()
  19683. {
  19684. ;
  19685. return 0;
  19686. }
  19687. _ACEOF
  19688. if ac_fn_c_try_compile "$LINENO"; then :
  19689. have_win32_gcc=yes
  19690. fi
  19691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19693. $as_echo "$have_win32_gcc" >&6; }
  19694. if test x$have_win32_gcc != xyes; then
  19695. as_fn_error $? "
  19696. *** Your compiler ($CC) does not produce Windows executables!
  19697. " "$LINENO" 5
  19698. fi
  19699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19700. $as_echo_n "checking Windows CE... " >&6; }
  19701. have_wince=no
  19702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19703. /* end confdefs.h. */
  19704. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19705. #error This is not Windows CE
  19706. #endif
  19707. int
  19708. main ()
  19709. {
  19710. ;
  19711. return 0;
  19712. }
  19713. _ACEOF
  19714. if ac_fn_c_try_compile "$LINENO"; then :
  19715. have_wince=yes
  19716. as_fn_error $? "
  19717. *** Sorry, Windows CE is no longer supported.
  19718. " "$LINENO" 5
  19719. fi
  19720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19722. $as_echo "$have_wince" >&6; }
  19723. # This fixes Windows stack alignment with newer GCC
  19724. CheckStackBoundary
  19725. }
  19726. CheckDIRECTX()
  19727. {
  19728. # Check whether --enable-directx was given.
  19729. if test "${enable_directx+set}" = set; then :
  19730. enableval=$enable_directx;
  19731. else
  19732. enable_directx=yes
  19733. fi
  19734. if test x$enable_directx = xyes; then
  19735. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19736. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19737. have_d3d=yes
  19738. fi
  19739. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19740. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19741. have_d3d11=yes
  19742. fi
  19743. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19744. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19745. have_ddraw=yes
  19746. fi
  19747. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19748. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19749. have_dsound=yes
  19750. fi
  19751. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19752. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19753. have_dinput=yes
  19754. fi
  19755. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19756. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19757. have_dxgi=yes
  19758. fi
  19759. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19760. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19761. have_xinput=yes
  19762. fi
  19763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19764. /* end confdefs.h. */
  19765. #include <windows.h>
  19766. #include <xinput.h>
  19767. XINPUT_GAMEPAD_EX x1;
  19768. int
  19769. main ()
  19770. {
  19771. ;
  19772. return 0;
  19773. }
  19774. _ACEOF
  19775. if ac_fn_c_try_compile "$LINENO"; then :
  19776. have_xinput_gamepadex=yes
  19777. fi
  19778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19780. /* end confdefs.h. */
  19781. #include <windows.h>
  19782. #include <xinput.h>
  19783. XINPUT_STATE_EX s1;
  19784. int
  19785. main ()
  19786. {
  19787. ;
  19788. return 0;
  19789. }
  19790. _ACEOF
  19791. if ac_fn_c_try_compile "$LINENO"; then :
  19792. have_xinput_stateex=yes
  19793. fi
  19794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19795. if test x$have_ddraw = xyes; then
  19796. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19797. fi
  19798. if test x$have_dinput = xyes; then
  19799. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19800. fi
  19801. if test x$have_dsound = xyes; then
  19802. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19803. fi
  19804. if test x$have_dxgi = xyes; then
  19805. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19806. fi
  19807. if test x$have_xinput = xyes; then
  19808. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19809. fi
  19810. if test x$have_xinput_gamepadex = xyes; then
  19811. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19812. fi
  19813. if test x$have_xinput_stateex = xyes; then
  19814. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19815. fi
  19816. SUMMARY_video="${SUMMARY_video} directx"
  19817. SUMMARY_audio="${SUMMARY_audio} directx"
  19818. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19819. # FIXME: ...so force it off for now.
  19820. case "$host" in
  19821. *-*-cygwin*)
  19822. have_dinput=false
  19823. ;;
  19824. esac
  19825. fi
  19826. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19827. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19828. have_wasapi=yes
  19829. fi
  19830. if test x$have_wasapi = xyes; then
  19831. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  19832. fi
  19833. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19834. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19835. else
  19836. have_wasapi=no
  19837. fi
  19838. if test x$have_wasapi = xyes; then
  19839. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  19840. fi
  19841. ac_fn_c_check_header_mongrel "$LINENO" "endpointvolume.h" "ac_cv_header_endpointvolume_h" "$ac_includes_default"
  19842. if test "x$ac_cv_header_endpointvolume_h" = xyes; then :
  19843. $as_echo "#define HAVE_ENDPOINTVOLUME_H 1" >>confdefs.h
  19844. fi
  19845. # Check whether --enable-wasapi was given.
  19846. if test "${enable_wasapi+set}" = set; then :
  19847. enableval=$enable_wasapi;
  19848. else
  19849. enable_wasapi=yes
  19850. fi
  19851. }
  19852. CheckDLOPEN()
  19853. {
  19854. # Check whether --enable-sdl-dlopen was given.
  19855. if test "${enable_sdl_dlopen+set}" = set; then :
  19856. enableval=$enable_sdl_dlopen;
  19857. else
  19858. enable_sdl_dlopen=yes
  19859. fi
  19860. if test x$enable_sdl_dlopen = xyes; then
  19861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19862. $as_echo_n "checking for dlopen... " >&6; }
  19863. have_dlopen=no
  19864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19865. /* end confdefs.h. */
  19866. #include <dlfcn.h>
  19867. int
  19868. main ()
  19869. {
  19870. void *handle = dlopen("", RTLD_NOW);
  19871. const char *loaderror = (char *) dlerror();
  19872. ;
  19873. return 0;
  19874. }
  19875. _ACEOF
  19876. if ac_fn_c_try_compile "$LINENO"; then :
  19877. have_dlopen=yes
  19878. fi
  19879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19881. $as_echo "$have_dlopen" >&6; }
  19882. if test x$have_dlopen = xyes; then
  19883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19884. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19885. if ${ac_cv_lib_c_dlopen+:} false; then :
  19886. $as_echo_n "(cached) " >&6
  19887. else
  19888. ac_check_lib_save_LIBS=$LIBS
  19889. LIBS="-lc $LIBS"
  19890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19891. /* end confdefs.h. */
  19892. /* Override any GCC internal prototype to avoid an error.
  19893. Use char because int might match the return type of a GCC
  19894. builtin and then its argument prototype would still apply. */
  19895. #ifdef __cplusplus
  19896. extern "C"
  19897. #endif
  19898. char dlopen ();
  19899. int
  19900. main ()
  19901. {
  19902. return dlopen ();
  19903. ;
  19904. return 0;
  19905. }
  19906. _ACEOF
  19907. if ac_fn_c_try_link "$LINENO"; then :
  19908. ac_cv_lib_c_dlopen=yes
  19909. else
  19910. ac_cv_lib_c_dlopen=no
  19911. fi
  19912. rm -f core conftest.err conftest.$ac_objext \
  19913. conftest$ac_exeext conftest.$ac_ext
  19914. LIBS=$ac_check_lib_save_LIBS
  19915. fi
  19916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19917. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19918. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19919. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19920. else
  19921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19922. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19923. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19924. $as_echo_n "(cached) " >&6
  19925. else
  19926. ac_check_lib_save_LIBS=$LIBS
  19927. LIBS="-ldl $LIBS"
  19928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19929. /* end confdefs.h. */
  19930. /* Override any GCC internal prototype to avoid an error.
  19931. Use char because int might match the return type of a GCC
  19932. builtin and then its argument prototype would still apply. */
  19933. #ifdef __cplusplus
  19934. extern "C"
  19935. #endif
  19936. char dlopen ();
  19937. int
  19938. main ()
  19939. {
  19940. return dlopen ();
  19941. ;
  19942. return 0;
  19943. }
  19944. _ACEOF
  19945. if ac_fn_c_try_link "$LINENO"; then :
  19946. ac_cv_lib_dl_dlopen=yes
  19947. else
  19948. ac_cv_lib_dl_dlopen=no
  19949. fi
  19950. rm -f core conftest.err conftest.$ac_objext \
  19951. conftest$ac_exeext conftest.$ac_ext
  19952. LIBS=$ac_check_lib_save_LIBS
  19953. fi
  19954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19955. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19956. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19957. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19958. else
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19960. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19961. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19962. $as_echo_n "(cached) " >&6
  19963. else
  19964. ac_check_lib_save_LIBS=$LIBS
  19965. LIBS="-lltdl $LIBS"
  19966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19967. /* end confdefs.h. */
  19968. /* Override any GCC internal prototype to avoid an error.
  19969. Use char because int might match the return type of a GCC
  19970. builtin and then its argument prototype would still apply. */
  19971. #ifdef __cplusplus
  19972. extern "C"
  19973. #endif
  19974. char dlopen ();
  19975. int
  19976. main ()
  19977. {
  19978. return dlopen ();
  19979. ;
  19980. return 0;
  19981. }
  19982. _ACEOF
  19983. if ac_fn_c_try_link "$LINENO"; then :
  19984. ac_cv_lib_ltdl_dlopen=yes
  19985. else
  19986. ac_cv_lib_ltdl_dlopen=no
  19987. fi
  19988. rm -f core conftest.err conftest.$ac_objext \
  19989. conftest$ac_exeext conftest.$ac_ext
  19990. LIBS=$ac_check_lib_save_LIBS
  19991. fi
  19992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19993. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19994. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19996. fi
  19997. fi
  19998. fi
  19999. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20000. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20001. have_loadso=yes
  20002. fi
  20003. fi
  20004. }
  20005. CheckUSBHID()
  20006. {
  20007. case "$host" in
  20008. *-*-*bsd*)
  20009. if test x$enable_joystick = xyes; then
  20010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20011. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20012. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20013. $as_echo_n "(cached) " >&6
  20014. else
  20015. ac_check_lib_save_LIBS=$LIBS
  20016. LIBS="-lusbhid $LIBS"
  20017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20018. /* end confdefs.h. */
  20019. /* Override any GCC internal prototype to avoid an error.
  20020. Use char because int might match the return type of a GCC
  20021. builtin and then its argument prototype would still apply. */
  20022. #ifdef __cplusplus
  20023. extern "C"
  20024. #endif
  20025. char hid_init ();
  20026. int
  20027. main ()
  20028. {
  20029. return hid_init ();
  20030. ;
  20031. return 0;
  20032. }
  20033. _ACEOF
  20034. if ac_fn_c_try_link "$LINENO"; then :
  20035. ac_cv_lib_usbhid_hid_init=yes
  20036. else
  20037. ac_cv_lib_usbhid_hid_init=no
  20038. fi
  20039. rm -f core conftest.err conftest.$ac_objext \
  20040. conftest$ac_exeext conftest.$ac_ext
  20041. LIBS=$ac_check_lib_save_LIBS
  20042. fi
  20043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20044. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20045. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20046. have_libusbhid=yes
  20047. fi
  20048. if test x$have_libusbhid = xyes; then
  20049. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20050. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20051. USB_CFLAGS="-DHAVE_USBHID_H"
  20052. fi
  20053. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20054. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20055. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20056. fi
  20057. USB_LIBS="$USB_LIBS -lusbhid"
  20058. else
  20059. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20060. if test "x$ac_cv_header_usb_h" = xyes; then :
  20061. USB_CFLAGS="-DHAVE_USB_H"
  20062. fi
  20063. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20064. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20065. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20066. fi
  20067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20068. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20069. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20070. $as_echo_n "(cached) " >&6
  20071. else
  20072. ac_check_lib_save_LIBS=$LIBS
  20073. LIBS="-lusb $LIBS"
  20074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20075. /* end confdefs.h. */
  20076. /* Override any GCC internal prototype to avoid an error.
  20077. Use char because int might match the return type of a GCC
  20078. builtin and then its argument prototype would still apply. */
  20079. #ifdef __cplusplus
  20080. extern "C"
  20081. #endif
  20082. char hid_init ();
  20083. int
  20084. main ()
  20085. {
  20086. return hid_init ();
  20087. ;
  20088. return 0;
  20089. }
  20090. _ACEOF
  20091. if ac_fn_c_try_link "$LINENO"; then :
  20092. ac_cv_lib_usb_hid_init=yes
  20093. else
  20094. ac_cv_lib_usb_hid_init=no
  20095. fi
  20096. rm -f core conftest.err conftest.$ac_objext \
  20097. conftest$ac_exeext conftest.$ac_ext
  20098. LIBS=$ac_check_lib_save_LIBS
  20099. fi
  20100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20101. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20102. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20103. USB_LIBS="$USB_LIBS -lusb"
  20104. fi
  20105. fi
  20106. save_CFLAGS="$CFLAGS"
  20107. CFLAGS="$CFLAGS $USB_CFLAGS"
  20108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20109. $as_echo_n "checking for usbhid... " >&6; }
  20110. have_usbhid=no
  20111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20112. /* end confdefs.h. */
  20113. #include <sys/types.h>
  20114. #if defined(HAVE_USB_H)
  20115. #include <usb.h>
  20116. #endif
  20117. #ifdef __DragonFly__
  20118. # include <bus/usb/usb.h>
  20119. # include <bus/usb/usbhid.h>
  20120. #else
  20121. # include <dev/usb/usb.h>
  20122. # include <dev/usb/usbhid.h>
  20123. #endif
  20124. #if defined(HAVE_USBHID_H)
  20125. #include <usbhid.h>
  20126. #elif defined(HAVE_LIBUSB_H)
  20127. #include <libusb.h>
  20128. #elif defined(HAVE_LIBUSBHID_H)
  20129. #include <libusbhid.h>
  20130. #endif
  20131. int
  20132. main ()
  20133. {
  20134. struct report_desc *repdesc;
  20135. struct usb_ctl_report *repbuf;
  20136. hid_kind_t hidkind;
  20137. ;
  20138. return 0;
  20139. }
  20140. _ACEOF
  20141. if ac_fn_c_try_compile "$LINENO"; then :
  20142. have_usbhid=yes
  20143. fi
  20144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20146. $as_echo "$have_usbhid" >&6; }
  20147. if test x$have_usbhid = xyes; then
  20148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20149. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20150. have_usbhid_ucr_data=no
  20151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20152. /* end confdefs.h. */
  20153. #include <sys/types.h>
  20154. #if defined(HAVE_USB_H)
  20155. #include <usb.h>
  20156. #endif
  20157. #ifdef __DragonFly__
  20158. # include <bus/usb/usb.h>
  20159. # include <bus/usb/usbhid.h>
  20160. #else
  20161. # include <dev/usb/usb.h>
  20162. # include <dev/usb/usbhid.h>
  20163. #endif
  20164. #if defined(HAVE_USBHID_H)
  20165. #include <usbhid.h>
  20166. #elif defined(HAVE_LIBUSB_H)
  20167. #include <libusb.h>
  20168. #elif defined(HAVE_LIBUSBHID_H)
  20169. #include <libusbhid.h>
  20170. #endif
  20171. int
  20172. main ()
  20173. {
  20174. struct usb_ctl_report buf;
  20175. if (buf.ucr_data) { }
  20176. ;
  20177. return 0;
  20178. }
  20179. _ACEOF
  20180. if ac_fn_c_try_compile "$LINENO"; then :
  20181. have_usbhid_ucr_data=yes
  20182. fi
  20183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20184. if test x$have_usbhid_ucr_data = xyes; then
  20185. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20186. fi
  20187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20188. $as_echo "$have_usbhid_ucr_data" >&6; }
  20189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20190. $as_echo_n "checking for new usbhid API... " >&6; }
  20191. have_usbhid_new=no
  20192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20193. /* end confdefs.h. */
  20194. #include <sys/types.h>
  20195. #if defined(HAVE_USB_H)
  20196. #include <usb.h>
  20197. #endif
  20198. #ifdef __DragonFly__
  20199. #include <bus/usb/usb.h>
  20200. #include <bus/usb/usbhid.h>
  20201. #else
  20202. #include <dev/usb/usb.h>
  20203. #include <dev/usb/usbhid.h>
  20204. #endif
  20205. #if defined(HAVE_USBHID_H)
  20206. #include <usbhid.h>
  20207. #elif defined(HAVE_LIBUSB_H)
  20208. #include <libusb.h>
  20209. #elif defined(HAVE_LIBUSBHID_H)
  20210. #include <libusbhid.h>
  20211. #endif
  20212. int
  20213. main ()
  20214. {
  20215. report_desc_t d;
  20216. hid_start_parse(d, 1, 1);
  20217. ;
  20218. return 0;
  20219. }
  20220. _ACEOF
  20221. if ac_fn_c_try_compile "$LINENO"; then :
  20222. have_usbhid_new=yes
  20223. fi
  20224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20225. if test x$have_usbhid_new = xyes; then
  20226. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20227. fi
  20228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20229. $as_echo "$have_usbhid_new" >&6; }
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20231. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20232. have_machine_joystick=no
  20233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20234. /* end confdefs.h. */
  20235. #include <machine/joystick.h>
  20236. int
  20237. main ()
  20238. {
  20239. struct joystick t;
  20240. ;
  20241. return 0;
  20242. }
  20243. _ACEOF
  20244. if ac_fn_c_try_compile "$LINENO"; then :
  20245. have_machine_joystick=yes
  20246. fi
  20247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20248. if test x$have_machine_joystick = xyes; then
  20249. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20250. fi
  20251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20252. $as_echo "$have_machine_joystick" >&6; }
  20253. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20254. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20255. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20256. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20257. have_joystick=yes
  20258. fi
  20259. CFLAGS="$save_CFLAGS"
  20260. fi
  20261. ;;
  20262. esac
  20263. }
  20264. CheckHIDAPI()
  20265. {
  20266. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20267. # so we'll just use libusb when it's available.
  20268. #
  20269. # Except that libusb requires root permissions to open devices, so that's not generally useful, and we'll disable this by default.
  20270. # Check whether --enable-hidapi was given.
  20271. if test "${enable_hidapi+set}" = set; then :
  20272. enableval=$enable_hidapi;
  20273. else
  20274. enable_hidapi=no
  20275. fi
  20276. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20277. hidapi_support=no
  20278. # Extract the first word of "pkg-config", so it can be a program name with args.
  20279. set dummy pkg-config; ac_word=$2
  20280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20281. $as_echo_n "checking for $ac_word... " >&6; }
  20282. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  20283. $as_echo_n "(cached) " >&6
  20284. else
  20285. case $PKG_CONFIG in
  20286. [\\/]* | ?:[\\/]*)
  20287. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20288. ;;
  20289. *)
  20290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20291. for as_dir in $PATH
  20292. do
  20293. IFS=$as_save_IFS
  20294. test -z "$as_dir" && as_dir=.
  20295. for ac_exec_ext in '' $ac_executable_extensions; do
  20296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20297. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20299. break 2
  20300. fi
  20301. done
  20302. done
  20303. IFS=$as_save_IFS
  20304. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  20305. ;;
  20306. esac
  20307. fi
  20308. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20309. if test -n "$PKG_CONFIG"; then
  20310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20311. $as_echo "$PKG_CONFIG" >&6; }
  20312. else
  20313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20314. $as_echo "no" >&6; }
  20315. fi
  20316. if test x$PKG_CONFIG != xno; then
  20317. LIBUSB_CFLAGS=`$PKG_CONFIG --cflags libusb-1.0`
  20318. LIBUSB_LDFLAGS=`$PKG_CONFIG --libs libusb-1.0`
  20319. save_CFLAGS="$CFLAGS"
  20320. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20321. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20322. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20323. have_libusb_h=yes
  20324. fi
  20325. CFLAGS="$save_CFLAGS"
  20326. fi
  20327. if test x$have_libusb_h = xyes; then
  20328. hidapi_support=yes
  20329. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20330. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20331. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20332. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20333. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20334. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LDFLAGS"
  20335. fi
  20336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20337. $as_echo_n "checking for hidapi support... " >&6; }
  20338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20339. $as_echo "$hidapi_support" >&6; }
  20340. fi
  20341. }
  20342. CheckClockGettime()
  20343. {
  20344. # Check whether --enable-clock_gettime was given.
  20345. if test "${enable_clock_gettime+set}" = set; then :
  20346. enableval=$enable_clock_gettime;
  20347. else
  20348. enable_clock_gettime=yes
  20349. fi
  20350. if test x$enable_clock_gettime = xyes; then
  20351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20352. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20353. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20354. $as_echo_n "(cached) " >&6
  20355. else
  20356. ac_check_lib_save_LIBS=$LIBS
  20357. LIBS="-lrt $LIBS"
  20358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20359. /* end confdefs.h. */
  20360. /* Override any GCC internal prototype to avoid an error.
  20361. Use char because int might match the return type of a GCC
  20362. builtin and then its argument prototype would still apply. */
  20363. #ifdef __cplusplus
  20364. extern "C"
  20365. #endif
  20366. char clock_gettime ();
  20367. int
  20368. main ()
  20369. {
  20370. return clock_gettime ();
  20371. ;
  20372. return 0;
  20373. }
  20374. _ACEOF
  20375. if ac_fn_c_try_link "$LINENO"; then :
  20376. ac_cv_lib_rt_clock_gettime=yes
  20377. else
  20378. ac_cv_lib_rt_clock_gettime=no
  20379. fi
  20380. rm -f core conftest.err conftest.$ac_objext \
  20381. conftest$ac_exeext conftest.$ac_ext
  20382. LIBS=$ac_check_lib_save_LIBS
  20383. fi
  20384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20385. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20386. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20387. have_clock_gettime=yes
  20388. fi
  20389. if test x$have_clock_gettime = xyes; then
  20390. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20392. else
  20393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20394. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20395. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20396. $as_echo_n "(cached) " >&6
  20397. else
  20398. ac_check_lib_save_LIBS=$LIBS
  20399. LIBS="-lc $LIBS"
  20400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20401. /* end confdefs.h. */
  20402. /* Override any GCC internal prototype to avoid an error.
  20403. Use char because int might match the return type of a GCC
  20404. builtin and then its argument prototype would still apply. */
  20405. #ifdef __cplusplus
  20406. extern "C"
  20407. #endif
  20408. char clock_gettime ();
  20409. int
  20410. main ()
  20411. {
  20412. return clock_gettime ();
  20413. ;
  20414. return 0;
  20415. }
  20416. _ACEOF
  20417. if ac_fn_c_try_link "$LINENO"; then :
  20418. ac_cv_lib_c_clock_gettime=yes
  20419. else
  20420. ac_cv_lib_c_clock_gettime=no
  20421. fi
  20422. rm -f core conftest.err conftest.$ac_objext \
  20423. conftest$ac_exeext conftest.$ac_ext
  20424. LIBS=$ac_check_lib_save_LIBS
  20425. fi
  20426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20427. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20428. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20429. have_clock_gettime=yes
  20430. fi
  20431. if test x$have_clock_gettime = xyes; then
  20432. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20433. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20434. fi
  20435. fi
  20436. fi
  20437. }
  20438. CheckLinuxVersion()
  20439. {
  20440. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20441. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20442. have_linux_version_h=yes
  20443. fi
  20444. if test x$have_linux_version_h = xyes; then
  20445. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20446. fi
  20447. }
  20448. CheckRPATH()
  20449. {
  20450. # Check whether --enable-rpath was given.
  20451. if test "${enable_rpath+set}" = set; then :
  20452. enableval=$enable_rpath;
  20453. else
  20454. enable_rpath=yes
  20455. fi
  20456. }
  20457. CheckWarnAll
  20458. case "$host" in
  20459. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20460. case "$host" in
  20461. *-*-android*)
  20462. # Android
  20463. ARCH=android
  20464. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20465. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20466. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20467. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20468. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20469. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20470. if test x$enable_video = xyes; then
  20471. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20472. # FIXME: confdefs? Not AC_DEFINE?
  20473. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20474. SUMMARY_video="${SUMMARY_video} android"
  20475. fi
  20476. ;;
  20477. *-*-linux*) ARCH=linux ;;
  20478. *-*-uclinux*) ARCH=linux ;;
  20479. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20480. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20481. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20482. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20483. *-*-bsdi*) ARCH=bsdi ;;
  20484. *-*-freebsd*) ARCH=freebsd ;;
  20485. *-*-dragonfly*) ARCH=freebsd ;;
  20486. *-*-netbsd*) ARCH=netbsd ;;
  20487. *-*-openbsd*) ARCH=openbsd ;;
  20488. *-*-sysv5*) ARCH=sysv5 ;;
  20489. *-*-solaris*) ARCH=solaris ;;
  20490. *-*-hpux*) ARCH=hpux ;;
  20491. *-*-aix*) ARCH=aix ;;
  20492. *-*-minix*) ARCH=minix ;;
  20493. *-*-nto*) ARCH=nto
  20494. CheckQNXVideo
  20495. ;;
  20496. esac
  20497. CheckVisibilityHidden
  20498. CheckDeclarationAfterStatement
  20499. CheckDummyVideo
  20500. CheckDiskAudio
  20501. CheckDummyAudio
  20502. CheckDLOPEN
  20503. CheckOSS
  20504. CheckALSA
  20505. CheckPulseAudio
  20506. CheckJACK
  20507. CheckARTSC
  20508. CheckESD
  20509. CheckNAS
  20510. CheckSNDIO
  20511. CheckFusionSound
  20512. CheckLibSampleRate
  20513. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20514. CheckRPI
  20515. CheckX11
  20516. CheckDirectFB
  20517. CheckKMSDRM
  20518. CheckOpenGLX11
  20519. CheckOpenGLESX11
  20520. CheckVulkan
  20521. CheckMir
  20522. CheckWayland
  20523. CheckLibUDev
  20524. CheckDBus
  20525. CheckIME
  20526. CheckIBus
  20527. CheckFcitx
  20528. case $ARCH in
  20529. linux)
  20530. CheckInputEvents
  20531. CheckInputKD
  20532. ;;
  20533. esac
  20534. CheckTslib
  20535. CheckUSBHID
  20536. CheckHIDAPI
  20537. CheckPTHREAD
  20538. CheckClockGettime
  20539. CheckLinuxVersion
  20540. CheckRPATH
  20541. CheckVivanteVideo
  20542. # Set up files for the audio library
  20543. if test x$enable_audio = xyes; then
  20544. case $ARCH in
  20545. sysv5|solaris|hpux)
  20546. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20547. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20548. SUMMARY_audio="${SUMMARY_audio} sun"
  20549. have_audio=yes
  20550. ;;
  20551. netbsd) # Don't use this on OpenBSD, it's busted.
  20552. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20553. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20554. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20555. have_audio=yes
  20556. ;;
  20557. aix)
  20558. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20559. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20560. SUMMARY_audio="${SUMMARY_audio} paudio"
  20561. have_audio=yes
  20562. ;;
  20563. android)
  20564. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20565. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20566. SUMMARY_audio="${SUMMARY_audio} android"
  20567. have_audio=yes
  20568. ;;
  20569. nto)
  20570. CheckQNXAudio
  20571. ;;
  20572. esac
  20573. fi
  20574. # Set up files for the joystick library
  20575. if test x$enable_joystick = xyes; then
  20576. case $ARCH in
  20577. linux)
  20578. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20579. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20580. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20581. have_joystick=yes
  20582. ;;
  20583. android)
  20584. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20585. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20586. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20587. have_joystick=yes
  20588. ;;
  20589. esac
  20590. fi
  20591. # Set up files for the haptic library
  20592. if test x$enable_haptic = xyes; then
  20593. case $ARCH in
  20594. linux)
  20595. if test x$use_input_events = xyes; then
  20596. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20597. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20598. have_haptic=yes
  20599. fi
  20600. ;;
  20601. android)
  20602. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20603. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20604. have_haptic=yes
  20605. ;;
  20606. esac
  20607. fi
  20608. # Set up files for the sensor library
  20609. if test x$enable_sensor = xyes; then
  20610. case $ARCH in
  20611. android)
  20612. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  20613. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  20614. have_sensor=yes
  20615. ;;
  20616. esac
  20617. fi
  20618. # Set up files for the power library
  20619. if test x$enable_power = xyes; then
  20620. case $ARCH in
  20621. linux)
  20622. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20623. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20624. have_power=yes
  20625. ;;
  20626. android)
  20627. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20628. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20629. have_power=yes
  20630. ;;
  20631. esac
  20632. fi
  20633. # Set up files for the filesystem library
  20634. if test x$enable_filesystem = xyes; then
  20635. case $ARCH in
  20636. android)
  20637. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20638. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20639. have_filesystem=yes
  20640. ;;
  20641. *)
  20642. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20643. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20644. have_filesystem=yes
  20645. ;;
  20646. esac
  20647. fi
  20648. # Set up files for the timer library
  20649. if test x$enable_timers = xyes; then
  20650. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20651. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20652. have_timers=yes
  20653. fi
  20654. # Set up files for udev hotplugging support
  20655. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20656. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20657. fi
  20658. # Set up files for evdev input
  20659. if test x$use_input_events = xyes; then
  20660. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20661. fi
  20662. # Set up other core UNIX files
  20663. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20664. ;;
  20665. *-*-cygwin* | *-*-mingw32*)
  20666. ARCH=win32
  20667. if test "$build" != "$host"; then # cross-compiling
  20668. # Default cross-compile location
  20669. ac_default_prefix=/usr/local/cross-tools/$host
  20670. else
  20671. # Look for the location of the tools and install there
  20672. if test "$BUILD_PREFIX" != ""; then
  20673. ac_default_prefix=$BUILD_PREFIX
  20674. fi
  20675. fi
  20676. CheckDeclarationAfterStatement
  20677. CheckDummyVideo
  20678. CheckDiskAudio
  20679. CheckDummyAudio
  20680. CheckWINDOWS
  20681. CheckWINDOWSGL
  20682. CheckWINDOWSGLES
  20683. CheckVulkan
  20684. CheckDIRECTX
  20685. # Set up the core platform files
  20686. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20687. # Set up files for the video library
  20688. if test x$enable_video = xyes; then
  20689. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20690. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20691. have_video=yes
  20692. # Check whether --enable-render-d3d was given.
  20693. if test "${enable_render_d3d+set}" = set; then :
  20694. enableval=$enable_render_d3d;
  20695. else
  20696. enable_render_d3d=yes
  20697. fi
  20698. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20699. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20700. fi
  20701. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20702. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20703. fi
  20704. fi
  20705. # Set up files for the audio library
  20706. if test x$enable_audio = xyes; then
  20707. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20708. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20709. if test x$have_dsound = xyes; then
  20710. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20711. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20712. fi
  20713. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  20714. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20715. SUMMARY_audio="${SUMMARY_audio} wasapi"
  20716. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20717. fi
  20718. have_audio=yes
  20719. fi
  20720. # Set up files for the joystick library
  20721. if test x$enable_joystick = xyes; then
  20722. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20723. if test x$have_xinput = xyes; then
  20724. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20725. fi
  20726. if test x$have_dinput = xyes; then
  20727. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20729. fi
  20730. else
  20731. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20732. fi
  20733. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20734. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20735. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20736. SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
  20737. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20738. have_joystick=yes
  20739. fi
  20740. if test x$enable_haptic = xyes; then
  20741. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20742. if test x$have_xinput = xyes; then
  20743. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20744. fi
  20745. if test x$have_dinput = xyes; then
  20746. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20747. fi
  20748. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20749. have_haptic=yes
  20750. fi
  20751. fi
  20752. if test x$enable_power = xyes; then
  20753. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20754. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20755. have_power=yes
  20756. fi
  20757. if test x$enable_filesystem = xyes; then
  20758. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20759. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20760. have_filesystem=yes
  20761. fi
  20762. # Set up files for the thread library
  20763. if test x$enable_threads = xyes; then
  20764. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20765. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20766. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20767. have_threads=yes
  20768. fi
  20769. # Set up files for the timer library
  20770. if test x$enable_timers = xyes; then
  20771. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20772. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20773. have_timers=yes
  20774. fi
  20775. # Set up files for the shared object loading library
  20776. if test x$enable_loadso = xyes; then
  20777. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20778. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20779. have_loadso=yes
  20780. fi
  20781. # Set up the system libraries we need
  20782. if test -f /lib/w32api/libuuid.a; then
  20783. LIBUUID=/lib/w32api/libuuid.a
  20784. else
  20785. LIBUUID=-luuid
  20786. fi
  20787. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  20788. # The Windows platform requires special setup
  20789. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20790. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20791. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20792. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20793. # Check to see if this is a mingw or cygwin build
  20794. have_mingw32=
  20795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20796. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20797. if ${ac_cv_lib_mingw32_main+:} false; then :
  20798. $as_echo_n "(cached) " >&6
  20799. else
  20800. ac_check_lib_save_LIBS=$LIBS
  20801. LIBS="-lmingw32 $LIBS"
  20802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20803. /* end confdefs.h. */
  20804. int
  20805. main ()
  20806. {
  20807. return main ();
  20808. ;
  20809. return 0;
  20810. }
  20811. _ACEOF
  20812. if ac_fn_c_try_link "$LINENO"; then :
  20813. ac_cv_lib_mingw32_main=yes
  20814. else
  20815. ac_cv_lib_mingw32_main=no
  20816. fi
  20817. rm -f core conftest.err conftest.$ac_objext \
  20818. conftest$ac_exeext conftest.$ac_ext
  20819. LIBS=$ac_check_lib_save_LIBS
  20820. fi
  20821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20822. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20823. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20824. have_mingw32=yes
  20825. fi
  20826. if test x$have_mingw32 = xyes; then
  20827. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20828. else
  20829. SDL_LIBS="-lcygwin $SDL_LIBS"
  20830. fi
  20831. ;;
  20832. *-*-beos*)
  20833. as_fn_error $? "
  20834. *** BeOS support has been removed as of SDL 2.0.2.
  20835. " "$LINENO" 5
  20836. ;;
  20837. *-*-haiku*)
  20838. ARCH=haiku
  20839. ac_default_prefix=/boot/system
  20840. CheckDummyVideo
  20841. CheckDiskAudio
  20842. CheckDummyAudio
  20843. CheckDLOPEN
  20844. CheckHaikuVideo
  20845. CheckHaikuGL
  20846. CheckPTHREAD
  20847. # Set up files for the audio library
  20848. if test x$enable_audio = xyes; then
  20849. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20850. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20851. SUMMARY_audio="${SUMMARY_audio} haiku"
  20852. have_audio=yes
  20853. fi
  20854. # Set up files for the joystick library
  20855. if test x$enable_joystick = xyes; then
  20856. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20857. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20858. have_joystick=yes
  20859. fi
  20860. # Set up files for the timer library
  20861. if test x$enable_timers = xyes; then
  20862. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20863. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20864. have_timers=yes
  20865. fi
  20866. # Set up files for the system power library
  20867. if test x$enable_power = xyes; then
  20868. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20869. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20870. have_power=yes
  20871. fi
  20872. # Set up files for the system filesystem library
  20873. if test x$enable_filesystem = xyes; then
  20874. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20875. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20876. have_filesystem=yes
  20877. fi
  20878. # The Haiku platform requires special setup.
  20879. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20881. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20882. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20883. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20885. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20886. if eval \${$as_ac_File+:} false; then :
  20887. $as_echo_n "(cached) " >&6
  20888. else
  20889. test "$cross_compiling" = yes &&
  20890. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20891. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20892. eval "$as_ac_File=yes"
  20893. else
  20894. eval "$as_ac_File=no"
  20895. fi
  20896. fi
  20897. eval ac_res=\$$as_ac_File
  20898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20899. $as_echo "$ac_res" >&6; }
  20900. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20901. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20902. else
  20903. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20904. fi
  20905. ;;
  20906. arm*-apple-darwin*|*-ios-*)
  20907. ARCH=ios
  20908. CheckVisibilityHidden
  20909. CheckDeclarationAfterStatement
  20910. CheckDummyVideo
  20911. CheckDiskAudio
  20912. CheckDummyAudio
  20913. CheckDLOPEN
  20914. CheckMETAL
  20915. CheckVulkan
  20916. CheckPTHREAD
  20917. # Set up files for the audio library
  20918. if test x$enable_audio = xyes; then
  20919. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20920. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20921. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20922. have_audio=yes
  20923. fi
  20924. # Set up files for the joystick library
  20925. if test x$enable_joystick = xyes; then
  20926. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20927. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20928. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20929. have_joystick=yes
  20930. fi
  20931. # Set up files for the haptic library
  20932. #if test x$enable_haptic = xyes; then
  20933. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20934. # have_haptic=yes
  20935. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20936. #fi
  20937. # Set up files for the power library
  20938. if test x$enable_power = xyes; then
  20939. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20940. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20941. have_power=yes
  20942. fi
  20943. # Set up files for the filesystem library
  20944. if test x$enable_filesystem = xyes; then
  20945. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20946. have_filesystem=yes
  20947. fi
  20948. # Set up additional files for the file library
  20949. if test x$enable_file = xyes; then
  20950. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20951. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20952. fi
  20953. # Set up files for the timer library
  20954. if test x$enable_timers = xyes; then
  20955. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20956. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20957. have_timers=yes
  20958. fi
  20959. # Set up other core UNIX files
  20960. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20961. # The iOS platform requires special setup.
  20962. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20963. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20964. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20965. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20966. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20967. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20969. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20972. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20978. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20979. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  20981. fi
  20982. ;;
  20983. *-*-darwin* )
  20984. # This could be either full "Mac OS X", or plain "Darwin" which is
  20985. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20986. # Next line is broken, and a few files below require Mac OS X (full)
  20987. ARCH=macosx
  20988. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20989. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20990. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20991. CheckVisibilityHidden
  20992. CheckDeclarationAfterStatement
  20993. CheckDummyVideo
  20994. CheckDiskAudio
  20995. CheckDummyAudio
  20996. CheckDLOPEN
  20997. CheckCOCOA
  20998. CheckMETAL
  20999. CheckX11
  21000. CheckMacGL
  21001. CheckMacGLES
  21002. CheckOpenGLX11
  21003. CheckVulkan
  21004. CheckPTHREAD
  21005. # Set up files for the audio library
  21006. if test x$enable_audio = xyes; then
  21007. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21008. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21009. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21010. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21011. have_audio=yes
  21012. fi
  21013. # Set up files for the joystick library
  21014. if test x$enable_joystick = xyes; then
  21015. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21016. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21017. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21018. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21019. SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
  21020. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21021. have_joystick=yes
  21022. fi
  21023. # Set up files for the haptic library
  21024. if test x$enable_haptic = xyes; then
  21025. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21026. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21027. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21028. have_haptic=yes
  21029. fi
  21030. # Set up files for the power library
  21031. if test x$enable_power = xyes; then
  21032. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21033. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21034. have_power=yes
  21035. fi
  21036. # Set up files for the filesystem library
  21037. if test x$enable_filesystem = xyes; then
  21038. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21039. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21040. have_filesystem=yes
  21041. fi
  21042. # Set up files for the timer library
  21043. if test x$enable_timers = xyes; then
  21044. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21045. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21046. have_timers=yes
  21047. fi
  21048. # Set up additional files for the file library
  21049. if test x$enable_file = xyes; then
  21050. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21051. fi
  21052. # Set up other core UNIX files
  21053. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21054. # The Mac OS X platform requires special setup.
  21055. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21056. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21057. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21058. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21059. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21060. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21062. fi
  21063. ;;
  21064. *-nacl|*-pnacl)
  21065. ARCH=nacl
  21066. CheckNativeClient
  21067. CheckDummyAudio
  21068. CheckDummyVideo
  21069. CheckInputEvents
  21070. CheckPTHREAD
  21071. # Set up files for the timer library
  21072. if test x$enable_timers = xyes; then
  21073. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21074. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21075. have_timers=yes
  21076. fi
  21077. if test x$enable_filesystem = xyes; then
  21078. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21079. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21080. have_filesystem=yes
  21081. fi
  21082. ;;
  21083. *-*-emscripten* )
  21084. if test x$enable_video = xyes; then
  21085. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21086. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21087. have_video=yes
  21088. SUMMARY_video="${SUMMARY_video} emscripten"
  21089. fi
  21090. if test x$enable_audio = xyes; then
  21091. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21092. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21093. have_audio=yes
  21094. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21095. fi
  21096. CheckVisibilityHidden
  21097. CheckDeclarationAfterStatement
  21098. CheckDummyVideo
  21099. CheckDiskAudio
  21100. CheckDummyAudio
  21101. CheckDLOPEN
  21102. CheckClockGettime
  21103. CheckEmscriptenGLES
  21104. # Set up files for the power library
  21105. if test x$enable_power = xyes; then
  21106. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21107. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21108. have_power=yes
  21109. fi
  21110. # Set up files for the power library
  21111. if test x$enable_joystick = xyes; then
  21112. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21113. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21114. have_joystick=yes
  21115. fi
  21116. # Set up files for the filesystem library
  21117. if test x$enable_filesystem = xyes; then
  21118. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21119. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21120. have_filesystem=yes
  21121. fi
  21122. # Set up files for the timer library
  21123. if test x$enable_timers = xyes; then
  21124. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21125. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21126. have_timers=yes
  21127. fi
  21128. ;;
  21129. *)
  21130. as_fn_error $? "
  21131. *** Unsupported host: Please add to configure.in
  21132. " "$LINENO" 5
  21133. ;;
  21134. esac
  21135. # Verify that we have all the platform specific files we need
  21136. if test x$have_joystick != xyes; then
  21137. if test x$enable_joystick = xyes; then
  21138. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21139. fi
  21140. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21141. fi
  21142. if test x$have_haptic != xyes; then
  21143. if test x$enable_haptic = xyes; then
  21144. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21145. fi
  21146. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21147. fi
  21148. if test x$have_sensor != xyes; then
  21149. if test x$enable_sensor = xyes; then
  21150. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21151. fi
  21152. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21153. fi
  21154. if test x$have_threads != xyes; then
  21155. if test x$enable_threads = xyes; then
  21156. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21157. fi
  21158. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21159. fi
  21160. if test x$have_timers != xyes; then
  21161. if test x$enable_timers = xyes; then
  21162. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21163. fi
  21164. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21165. fi
  21166. if test x$have_filesystem != xyes; then
  21167. if test x$enable_filesystem = xyes; then
  21168. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21169. fi
  21170. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21171. fi
  21172. if test x$have_loadso != xyes; then
  21173. if test x$enable_loadso = xyes; then
  21174. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21175. fi
  21176. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21177. fi
  21178. if test x$SDLMAIN_SOURCES = x; then
  21179. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21180. fi
  21181. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21182. if test x$video_wayland = xyes; then
  21183. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21184. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21185. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21186. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21187. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21188. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21189. echo ;\
  21190. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21191. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21192. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21193. echo ;\
  21194. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21195. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21196. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21197. echo ;\
  21198. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21199. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21200. done ;\
  21201. echo ;\
  21202. 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`
  21203. fi
  21204. OBJECTS=`echo $SOURCES`
  21205. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21206. for EXT in asm cc m c S; do
  21207. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21208. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21209. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  21210. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21211. done
  21212. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21213. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21214. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21215. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21216. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21217. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21218. \\$(WINDRES) \\$< \\$@,g"`
  21219. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21220. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21221. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21222. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21223. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21224. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21225. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21226. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21227. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21228. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21229. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21230. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21231. # Set runtime shared library paths as needed
  21232. if test "x$enable_rpath" = "xyes"; then
  21233. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21234. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21236. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21237. have_enable_new_dtags=no
  21238. save_LDFLAGS="$LDFLAGS"
  21239. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21241. /* end confdefs.h. */
  21242. int
  21243. main ()
  21244. {
  21245. ;
  21246. return 0;
  21247. }
  21248. _ACEOF
  21249. if ac_fn_c_try_link "$LINENO"; then :
  21250. have_enable_new_dtags=yes
  21251. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21252. fi
  21253. rm -f core conftest.err conftest.$ac_objext \
  21254. conftest$ac_exeext conftest.$ac_ext
  21255. LDFLAGS="$save_LDFLAGS"
  21256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21257. $as_echo "$have_enable_new_dtags" >&6; }
  21258. fi
  21259. if test $ARCH = solaris; then
  21260. SDL_RLD_FLAGS="-R\${libdir}"
  21261. fi
  21262. else
  21263. SDL_RLD_FLAGS=""
  21264. fi
  21265. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21266. if test x$enable_shared = xyes; then
  21267. ENABLE_SHARED_TRUE=
  21268. ENABLE_SHARED_FALSE="#"
  21269. else
  21270. ENABLE_SHARED_TRUE="#"
  21271. ENABLE_SHARED_FALSE=
  21272. fi
  21273. if test x$enable_static = xyes; then
  21274. ENABLE_STATIC_TRUE=
  21275. ENABLE_STATIC_FALSE="#"
  21276. else
  21277. ENABLE_STATIC_TRUE="#"
  21278. ENABLE_STATIC_FALSE=
  21279. fi
  21280. cat >Makefile.rules <<__EOF__
  21281. # Build rules for objects
  21282. -include \$(OBJECTS:.lo=.d)
  21283. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21284. $srcdir/src/SDL.c: update-revision
  21285. $DEPENDS
  21286. $VERSION_DEPENDS
  21287. $SDLMAIN_DEPENDS
  21288. $SDLTEST_DEPENDS
  21289. $WAYLAND_PROTOCOLS_DEPENDS
  21290. __EOF__
  21291. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21292. ac_config_commands="$ac_config_commands sdl2_config"
  21293. SUMMARY="SDL2 Configure Summary:\n"
  21294. if test x$enable_shared = xyes; then
  21295. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21296. fi
  21297. if test x$enable_static = xyes; then
  21298. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21299. fi
  21300. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21301. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21302. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21303. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21304. if test x$have_x = xyes; then
  21305. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21306. fi
  21307. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21308. if test x$have_samplerate_h_hdr = xyes; then
  21309. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21310. else
  21311. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21312. fi
  21313. if test x$have_libudev_h_hdr = xyes; then
  21314. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21315. else
  21316. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21317. fi
  21318. if test x$have_dbus_dbus_h_hdr = xyes; then
  21319. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21320. else
  21321. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21322. fi
  21323. if test x$enable_ime = xyes; then
  21324. SUMMARY="${SUMMARY}Using ime : YES\n"
  21325. else
  21326. SUMMARY="${SUMMARY}Using ime : NO\n"
  21327. fi
  21328. if test x$have_ibus_ibus_h_hdr = xyes; then
  21329. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21330. else
  21331. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21332. fi
  21333. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21334. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21335. else
  21336. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21337. fi
  21338. ac_config_commands="$ac_config_commands summary"
  21339. cat >confcache <<\_ACEOF
  21340. # This file is a shell script that caches the results of configure
  21341. # tests run on this system so they can be shared between configure
  21342. # scripts and configure runs, see configure's option --config-cache.
  21343. # It is not useful on other systems. If it contains results you don't
  21344. # want to keep, you may remove or edit it.
  21345. #
  21346. # config.status only pays attention to the cache file if you give it
  21347. # the --recheck option to rerun configure.
  21348. #
  21349. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21350. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21351. # following values.
  21352. _ACEOF
  21353. # The following way of writing the cache mishandles newlines in values,
  21354. # but we know of no workaround that is simple, portable, and efficient.
  21355. # So, we kill variables containing newlines.
  21356. # Ultrix sh set writes to stderr and can't be redirected directly,
  21357. # and sets the high bit in the cache file unless we assign to the vars.
  21358. (
  21359. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21360. eval ac_val=\$$ac_var
  21361. case $ac_val in #(
  21362. *${as_nl}*)
  21363. case $ac_var in #(
  21364. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21365. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21366. esac
  21367. case $ac_var in #(
  21368. _ | IFS | as_nl) ;; #(
  21369. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21370. *) { eval $ac_var=; unset $ac_var;} ;;
  21371. esac ;;
  21372. esac
  21373. done
  21374. (set) 2>&1 |
  21375. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21376. *${as_nl}ac_space=\ *)
  21377. # `set' does not quote correctly, so add quotes: double-quote
  21378. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21379. sed -n \
  21380. "s/'/'\\\\''/g;
  21381. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21382. ;; #(
  21383. *)
  21384. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21385. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21386. ;;
  21387. esac |
  21388. sort
  21389. ) |
  21390. sed '
  21391. /^ac_cv_env_/b end
  21392. t clear
  21393. :clear
  21394. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21395. t end
  21396. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21397. :end' >>confcache
  21398. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21399. if test -w "$cache_file"; then
  21400. if test "x$cache_file" != "x/dev/null"; then
  21401. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21402. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21403. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21404. cat confcache >"$cache_file"
  21405. else
  21406. case $cache_file in #(
  21407. */* | ?:*)
  21408. mv -f confcache "$cache_file"$$ &&
  21409. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21410. *)
  21411. mv -f confcache "$cache_file" ;;
  21412. esac
  21413. fi
  21414. fi
  21415. else
  21416. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21417. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21418. fi
  21419. fi
  21420. rm -f confcache
  21421. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21422. # Let make expand exec_prefix.
  21423. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21424. DEFS=-DHAVE_CONFIG_H
  21425. ac_libobjs=
  21426. ac_ltlibobjs=
  21427. U=
  21428. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21429. # 1. Remove the extension, and $U if already installed.
  21430. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21431. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21432. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21433. # will be set to the directory where LIBOBJS objects are built.
  21434. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21435. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21436. done
  21437. LIBOBJS=$ac_libobjs
  21438. LTLIBOBJS=$ac_ltlibobjs
  21439. : "${CONFIG_STATUS=./config.status}"
  21440. ac_write_fail=0
  21441. ac_clean_files_save=$ac_clean_files
  21442. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21443. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21444. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21445. as_write_fail=0
  21446. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21447. #! $SHELL
  21448. # Generated by $as_me.
  21449. # Run this file to recreate the current configuration.
  21450. # Compiler output produced by configure, useful for debugging
  21451. # configure, is in config.log if it exists.
  21452. debug=false
  21453. ac_cs_recheck=false
  21454. ac_cs_silent=false
  21455. SHELL=\${CONFIG_SHELL-$SHELL}
  21456. export SHELL
  21457. _ASEOF
  21458. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21459. ## -------------------- ##
  21460. ## M4sh Initialization. ##
  21461. ## -------------------- ##
  21462. # Be more Bourne compatible
  21463. DUALCASE=1; export DUALCASE # for MKS sh
  21464. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21465. emulate sh
  21466. NULLCMD=:
  21467. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21468. # is contrary to our usage. Disable this feature.
  21469. alias -g '${1+"$@"}'='"$@"'
  21470. setopt NO_GLOB_SUBST
  21471. else
  21472. case `(set -o) 2>/dev/null` in #(
  21473. *posix*) :
  21474. set -o posix ;; #(
  21475. *) :
  21476. ;;
  21477. esac
  21478. fi
  21479. as_nl='
  21480. '
  21481. export as_nl
  21482. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21483. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21484. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21485. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21486. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21487. # but without wasting forks for bash or zsh.
  21488. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21489. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21490. as_echo='print -r --'
  21491. as_echo_n='print -rn --'
  21492. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21493. as_echo='printf %s\n'
  21494. as_echo_n='printf %s'
  21495. else
  21496. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21497. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21498. as_echo_n='/usr/ucb/echo -n'
  21499. else
  21500. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21501. as_echo_n_body='eval
  21502. arg=$1;
  21503. case $arg in #(
  21504. *"$as_nl"*)
  21505. expr "X$arg" : "X\\(.*\\)$as_nl";
  21506. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21507. esac;
  21508. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21509. '
  21510. export as_echo_n_body
  21511. as_echo_n='sh -c $as_echo_n_body as_echo'
  21512. fi
  21513. export as_echo_body
  21514. as_echo='sh -c $as_echo_body as_echo'
  21515. fi
  21516. # The user is always right.
  21517. if test "${PATH_SEPARATOR+set}" != set; then
  21518. PATH_SEPARATOR=:
  21519. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21520. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21521. PATH_SEPARATOR=';'
  21522. }
  21523. fi
  21524. # IFS
  21525. # We need space, tab and new line, in precisely that order. Quoting is
  21526. # there to prevent editors from complaining about space-tab.
  21527. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21528. # splitting by setting IFS to empty value.)
  21529. IFS=" "" $as_nl"
  21530. # Find who we are. Look in the path if we contain no directory separator.
  21531. as_myself=
  21532. case $0 in #((
  21533. *[\\/]* ) as_myself=$0 ;;
  21534. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21535. for as_dir in $PATH
  21536. do
  21537. IFS=$as_save_IFS
  21538. test -z "$as_dir" && as_dir=.
  21539. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21540. done
  21541. IFS=$as_save_IFS
  21542. ;;
  21543. esac
  21544. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21545. # in which case we are not to be found in the path.
  21546. if test "x$as_myself" = x; then
  21547. as_myself=$0
  21548. fi
  21549. if test ! -f "$as_myself"; then
  21550. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21551. exit 1
  21552. fi
  21553. # Unset variables that we do not need and which cause bugs (e.g. in
  21554. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21555. # suppresses any "Segmentation fault" message there. '((' could
  21556. # trigger a bug in pdksh 5.2.14.
  21557. for as_var in BASH_ENV ENV MAIL MAILPATH
  21558. do eval test x\${$as_var+set} = xset \
  21559. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21560. done
  21561. PS1='$ '
  21562. PS2='> '
  21563. PS4='+ '
  21564. # NLS nuisances.
  21565. LC_ALL=C
  21566. export LC_ALL
  21567. LANGUAGE=C
  21568. export LANGUAGE
  21569. # CDPATH.
  21570. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21571. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21572. # ----------------------------------------
  21573. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21574. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21575. # script with STATUS, using 1 if that was 0.
  21576. as_fn_error ()
  21577. {
  21578. as_status=$1; test $as_status -eq 0 && as_status=1
  21579. if test "$4"; then
  21580. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21581. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21582. fi
  21583. $as_echo "$as_me: error: $2" >&2
  21584. as_fn_exit $as_status
  21585. } # as_fn_error
  21586. # as_fn_set_status STATUS
  21587. # -----------------------
  21588. # Set $? to STATUS, without forking.
  21589. as_fn_set_status ()
  21590. {
  21591. return $1
  21592. } # as_fn_set_status
  21593. # as_fn_exit STATUS
  21594. # -----------------
  21595. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21596. as_fn_exit ()
  21597. {
  21598. set +e
  21599. as_fn_set_status $1
  21600. exit $1
  21601. } # as_fn_exit
  21602. # as_fn_unset VAR
  21603. # ---------------
  21604. # Portably unset VAR.
  21605. as_fn_unset ()
  21606. {
  21607. { eval $1=; unset $1;}
  21608. }
  21609. as_unset=as_fn_unset
  21610. # as_fn_append VAR VALUE
  21611. # ----------------------
  21612. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21613. # advantage of any shell optimizations that allow amortized linear growth over
  21614. # repeated appends, instead of the typical quadratic growth present in naive
  21615. # implementations.
  21616. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21617. eval 'as_fn_append ()
  21618. {
  21619. eval $1+=\$2
  21620. }'
  21621. else
  21622. as_fn_append ()
  21623. {
  21624. eval $1=\$$1\$2
  21625. }
  21626. fi # as_fn_append
  21627. # as_fn_arith ARG...
  21628. # ------------------
  21629. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21630. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21631. # must be portable across $(()) and expr.
  21632. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21633. eval 'as_fn_arith ()
  21634. {
  21635. as_val=$(( $* ))
  21636. }'
  21637. else
  21638. as_fn_arith ()
  21639. {
  21640. as_val=`expr "$@" || test $? -eq 1`
  21641. }
  21642. fi # as_fn_arith
  21643. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21644. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21645. as_expr=expr
  21646. else
  21647. as_expr=false
  21648. fi
  21649. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21650. as_basename=basename
  21651. else
  21652. as_basename=false
  21653. fi
  21654. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21655. as_dirname=dirname
  21656. else
  21657. as_dirname=false
  21658. fi
  21659. as_me=`$as_basename -- "$0" ||
  21660. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21661. X"$0" : 'X\(//\)$' \| \
  21662. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21663. $as_echo X/"$0" |
  21664. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21665. s//\1/
  21666. q
  21667. }
  21668. /^X\/\(\/\/\)$/{
  21669. s//\1/
  21670. q
  21671. }
  21672. /^X\/\(\/\).*/{
  21673. s//\1/
  21674. q
  21675. }
  21676. s/.*/./; q'`
  21677. # Avoid depending upon Character Ranges.
  21678. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21679. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21680. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21681. as_cr_digits='0123456789'
  21682. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21683. ECHO_C= ECHO_N= ECHO_T=
  21684. case `echo -n x` in #(((((
  21685. -n*)
  21686. case `echo 'xy\c'` in
  21687. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21688. xy) ECHO_C='\c';;
  21689. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21690. ECHO_T=' ';;
  21691. esac;;
  21692. *)
  21693. ECHO_N='-n';;
  21694. esac
  21695. rm -f conf$$ conf$$.exe conf$$.file
  21696. if test -d conf$$.dir; then
  21697. rm -f conf$$.dir/conf$$.file
  21698. else
  21699. rm -f conf$$.dir
  21700. mkdir conf$$.dir 2>/dev/null
  21701. fi
  21702. if (echo >conf$$.file) 2>/dev/null; then
  21703. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21704. as_ln_s='ln -s'
  21705. # ... but there are two gotchas:
  21706. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21707. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21708. # In both cases, we have to default to `cp -pR'.
  21709. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21710. as_ln_s='cp -pR'
  21711. elif ln conf$$.file conf$$ 2>/dev/null; then
  21712. as_ln_s=ln
  21713. else
  21714. as_ln_s='cp -pR'
  21715. fi
  21716. else
  21717. as_ln_s='cp -pR'
  21718. fi
  21719. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21720. rmdir conf$$.dir 2>/dev/null
  21721. # as_fn_mkdir_p
  21722. # -------------
  21723. # Create "$as_dir" as a directory, including parents if necessary.
  21724. as_fn_mkdir_p ()
  21725. {
  21726. case $as_dir in #(
  21727. -*) as_dir=./$as_dir;;
  21728. esac
  21729. test -d "$as_dir" || eval $as_mkdir_p || {
  21730. as_dirs=
  21731. while :; do
  21732. case $as_dir in #(
  21733. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21734. *) as_qdir=$as_dir;;
  21735. esac
  21736. as_dirs="'$as_qdir' $as_dirs"
  21737. as_dir=`$as_dirname -- "$as_dir" ||
  21738. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21739. X"$as_dir" : 'X\(//\)[^/]' \| \
  21740. X"$as_dir" : 'X\(//\)$' \| \
  21741. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21742. $as_echo X"$as_dir" |
  21743. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21744. s//\1/
  21745. q
  21746. }
  21747. /^X\(\/\/\)[^/].*/{
  21748. s//\1/
  21749. q
  21750. }
  21751. /^X\(\/\/\)$/{
  21752. s//\1/
  21753. q
  21754. }
  21755. /^X\(\/\).*/{
  21756. s//\1/
  21757. q
  21758. }
  21759. s/.*/./; q'`
  21760. test -d "$as_dir" && break
  21761. done
  21762. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21763. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21764. } # as_fn_mkdir_p
  21765. if mkdir -p . 2>/dev/null; then
  21766. as_mkdir_p='mkdir -p "$as_dir"'
  21767. else
  21768. test -d ./-p && rmdir ./-p
  21769. as_mkdir_p=false
  21770. fi
  21771. # as_fn_executable_p FILE
  21772. # -----------------------
  21773. # Test if FILE is an executable regular file.
  21774. as_fn_executable_p ()
  21775. {
  21776. test -f "$1" && test -x "$1"
  21777. } # as_fn_executable_p
  21778. as_test_x='test -x'
  21779. as_executable_p=as_fn_executable_p
  21780. # Sed expression to map a string onto a valid CPP name.
  21781. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21782. # Sed expression to map a string onto a valid variable name.
  21783. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21784. exec 6>&1
  21785. ## ----------------------------------- ##
  21786. ## Main body of $CONFIG_STATUS script. ##
  21787. ## ----------------------------------- ##
  21788. _ASEOF
  21789. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21790. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21791. # Save the log message, to keep $0 and so on meaningful, and to
  21792. # report actual input values of CONFIG_FILES etc. instead of their
  21793. # values after options handling.
  21794. ac_log="
  21795. This file was extended by $as_me, which was
  21796. generated by GNU Autoconf 2.69. Invocation command line was
  21797. CONFIG_FILES = $CONFIG_FILES
  21798. CONFIG_HEADERS = $CONFIG_HEADERS
  21799. CONFIG_LINKS = $CONFIG_LINKS
  21800. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21801. $ $0 $@
  21802. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21803. "
  21804. _ACEOF
  21805. case $ac_config_files in *"
  21806. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21807. esac
  21808. case $ac_config_headers in *"
  21809. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21810. esac
  21811. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21812. # Files that config.status was made for.
  21813. config_files="$ac_config_files"
  21814. config_headers="$ac_config_headers"
  21815. config_commands="$ac_config_commands"
  21816. _ACEOF
  21817. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21818. ac_cs_usage="\
  21819. \`$as_me' instantiates files and other configuration actions
  21820. from templates according to the current configuration. Unless the files
  21821. and actions are specified as TAGs, all are instantiated by default.
  21822. Usage: $0 [OPTION]... [TAG]...
  21823. -h, --help print this help, then exit
  21824. -V, --version print version number and configuration settings, then exit
  21825. --config print configuration, then exit
  21826. -q, --quiet, --silent
  21827. do not print progress messages
  21828. -d, --debug don't remove temporary files
  21829. --recheck update $as_me by reconfiguring in the same conditions
  21830. --file=FILE[:TEMPLATE]
  21831. instantiate the configuration file FILE
  21832. --header=FILE[:TEMPLATE]
  21833. instantiate the configuration header FILE
  21834. Configuration files:
  21835. $config_files
  21836. Configuration headers:
  21837. $config_headers
  21838. Configuration commands:
  21839. $config_commands
  21840. Report bugs to the package provider."
  21841. _ACEOF
  21842. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21843. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21844. ac_cs_version="\\
  21845. config.status
  21846. configured by $0, generated by GNU Autoconf 2.69,
  21847. with options \\"\$ac_cs_config\\"
  21848. Copyright (C) 2012 Free Software Foundation, Inc.
  21849. This config.status script is free software; the Free Software Foundation
  21850. gives unlimited permission to copy, distribute and modify it."
  21851. ac_pwd='$ac_pwd'
  21852. srcdir='$srcdir'
  21853. INSTALL='$INSTALL'
  21854. AWK='$AWK'
  21855. test -n "\$AWK" || AWK=awk
  21856. _ACEOF
  21857. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21858. # The default lists apply if the user does not specify any file.
  21859. ac_need_defaults=:
  21860. while test $# != 0
  21861. do
  21862. case $1 in
  21863. --*=?*)
  21864. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21865. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21866. ac_shift=:
  21867. ;;
  21868. --*=)
  21869. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21870. ac_optarg=
  21871. ac_shift=:
  21872. ;;
  21873. *)
  21874. ac_option=$1
  21875. ac_optarg=$2
  21876. ac_shift=shift
  21877. ;;
  21878. esac
  21879. case $ac_option in
  21880. # Handling of the options.
  21881. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21882. ac_cs_recheck=: ;;
  21883. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21884. $as_echo "$ac_cs_version"; exit ;;
  21885. --config | --confi | --conf | --con | --co | --c )
  21886. $as_echo "$ac_cs_config"; exit ;;
  21887. --debug | --debu | --deb | --de | --d | -d )
  21888. debug=: ;;
  21889. --file | --fil | --fi | --f )
  21890. $ac_shift
  21891. case $ac_optarg in
  21892. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21893. '') as_fn_error $? "missing file argument" ;;
  21894. esac
  21895. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21896. ac_need_defaults=false;;
  21897. --header | --heade | --head | --hea )
  21898. $ac_shift
  21899. case $ac_optarg in
  21900. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21901. esac
  21902. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21903. ac_need_defaults=false;;
  21904. --he | --h)
  21905. # Conflict between --help and --header
  21906. as_fn_error $? "ambiguous option: \`$1'
  21907. Try \`$0 --help' for more information.";;
  21908. --help | --hel | -h )
  21909. $as_echo "$ac_cs_usage"; exit ;;
  21910. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21911. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21912. ac_cs_silent=: ;;
  21913. # This is an error.
  21914. -*) as_fn_error $? "unrecognized option: \`$1'
  21915. Try \`$0 --help' for more information." ;;
  21916. *) as_fn_append ac_config_targets " $1"
  21917. ac_need_defaults=false ;;
  21918. esac
  21919. shift
  21920. done
  21921. ac_configure_extra_args=
  21922. if $ac_cs_silent; then
  21923. exec 6>/dev/null
  21924. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21925. fi
  21926. _ACEOF
  21927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21928. if \$ac_cs_recheck; then
  21929. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21930. shift
  21931. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21932. CONFIG_SHELL='$SHELL'
  21933. export CONFIG_SHELL
  21934. exec "\$@"
  21935. fi
  21936. _ACEOF
  21937. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21938. exec 5>>config.log
  21939. {
  21940. echo
  21941. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21942. ## Running $as_me. ##
  21943. _ASBOX
  21944. $as_echo "$ac_log"
  21945. } >&5
  21946. _ACEOF
  21947. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21948. #
  21949. # INIT-COMMANDS
  21950. #
  21951. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21952. # if CDPATH is set.
  21953. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21954. sed_quote_subst='$sed_quote_subst'
  21955. double_quote_subst='$double_quote_subst'
  21956. delay_variable_subst='$delay_variable_subst'
  21957. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21958. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21959. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21960. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21961. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21962. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21963. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21964. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21965. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21966. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21967. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21968. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21969. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21970. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21971. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21972. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21973. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21974. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21975. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21976. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21977. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21978. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21979. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21980. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21981. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21982. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21983. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21984. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21985. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21986. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21987. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21988. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21989. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21990. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21991. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21992. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21993. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21994. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21995. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21996. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21997. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21998. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21999. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22000. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22001. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22002. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22003. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22004. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22005. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22006. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22007. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22008. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22009. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22010. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22011. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22012. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22013. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22014. 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"`'
  22015. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22016. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22017. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22018. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22019. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22020. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22021. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22022. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22023. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22024. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22025. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22026. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22027. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22028. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22029. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22030. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22031. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22032. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22033. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22034. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22035. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22036. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22037. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22038. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22039. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22040. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22041. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22042. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22043. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22044. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22045. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22046. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22047. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22048. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22049. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22050. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22051. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22052. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22053. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22054. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22055. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22056. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22057. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22058. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22059. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22060. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22061. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22062. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22063. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22064. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22065. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22066. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22067. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22068. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22069. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22070. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22071. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22072. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22073. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22074. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22075. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22076. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22077. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22078. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22079. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22080. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22081. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22082. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22083. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22084. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22085. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22086. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22087. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22088. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22089. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22090. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22091. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22092. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22093. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22094. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22095. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22096. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22097. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22098. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22099. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22100. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22101. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22102. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22103. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22104. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22105. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22106. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22107. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22108. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22109. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22110. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22111. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22112. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22113. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22114. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22115. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22116. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22117. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22118. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22119. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22120. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22121. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22122. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22123. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22124. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22125. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22126. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22127. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22128. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22129. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22130. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22131. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22132. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22133. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22134. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22135. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22136. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22137. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22138. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22139. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22140. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22141. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22142. LTCC='$LTCC'
  22143. LTCFLAGS='$LTCFLAGS'
  22144. compiler='$compiler_DEFAULT'
  22145. # A function that is used when there is no print builtin or printf.
  22146. func_fallback_echo ()
  22147. {
  22148. eval 'cat <<_LTECHO_EOF
  22149. \$1
  22150. _LTECHO_EOF'
  22151. }
  22152. # Quote evaled strings.
  22153. for var in AS \
  22154. DLLTOOL \
  22155. OBJDUMP \
  22156. SHELL \
  22157. ECHO \
  22158. PATH_SEPARATOR \
  22159. SED \
  22160. GREP \
  22161. EGREP \
  22162. FGREP \
  22163. LD \
  22164. NM \
  22165. LN_S \
  22166. lt_SP2NL \
  22167. lt_NL2SP \
  22168. reload_flag \
  22169. deplibs_check_method \
  22170. file_magic_cmd \
  22171. file_magic_glob \
  22172. want_nocaseglob \
  22173. sharedlib_from_linklib_cmd \
  22174. AR \
  22175. AR_FLAGS \
  22176. archiver_list_spec \
  22177. STRIP \
  22178. RANLIB \
  22179. CC \
  22180. CFLAGS \
  22181. compiler \
  22182. lt_cv_sys_global_symbol_pipe \
  22183. lt_cv_sys_global_symbol_to_cdecl \
  22184. lt_cv_sys_global_symbol_to_c_name_address \
  22185. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22186. nm_file_list_spec \
  22187. lt_prog_compiler_no_builtin_flag \
  22188. lt_prog_compiler_pic \
  22189. lt_prog_compiler_wl \
  22190. lt_prog_compiler_static \
  22191. lt_cv_prog_compiler_c_o \
  22192. need_locks \
  22193. MANIFEST_TOOL \
  22194. DSYMUTIL \
  22195. NMEDIT \
  22196. LIPO \
  22197. OTOOL \
  22198. OTOOL64 \
  22199. shrext_cmds \
  22200. export_dynamic_flag_spec \
  22201. whole_archive_flag_spec \
  22202. compiler_needs_object \
  22203. with_gnu_ld \
  22204. allow_undefined_flag \
  22205. no_undefined_flag \
  22206. hardcode_libdir_flag_spec \
  22207. hardcode_libdir_separator \
  22208. exclude_expsyms \
  22209. include_expsyms \
  22210. file_list_spec \
  22211. variables_saved_for_relink \
  22212. libname_spec \
  22213. library_names_spec \
  22214. soname_spec \
  22215. install_override_mode \
  22216. finish_eval \
  22217. old_striplib \
  22218. striplib \
  22219. compiler_lib_search_dirs \
  22220. predep_objects \
  22221. postdep_objects \
  22222. predeps \
  22223. postdeps \
  22224. compiler_lib_search_path \
  22225. LD_CXX \
  22226. reload_flag_CXX \
  22227. compiler_CXX \
  22228. lt_prog_compiler_no_builtin_flag_CXX \
  22229. lt_prog_compiler_pic_CXX \
  22230. lt_prog_compiler_wl_CXX \
  22231. lt_prog_compiler_static_CXX \
  22232. lt_cv_prog_compiler_c_o_CXX \
  22233. export_dynamic_flag_spec_CXX \
  22234. whole_archive_flag_spec_CXX \
  22235. compiler_needs_object_CXX \
  22236. with_gnu_ld_CXX \
  22237. allow_undefined_flag_CXX \
  22238. no_undefined_flag_CXX \
  22239. hardcode_libdir_flag_spec_CXX \
  22240. hardcode_libdir_separator_CXX \
  22241. exclude_expsyms_CXX \
  22242. include_expsyms_CXX \
  22243. file_list_spec_CXX \
  22244. compiler_lib_search_dirs_CXX \
  22245. predep_objects_CXX \
  22246. postdep_objects_CXX \
  22247. predeps_CXX \
  22248. postdeps_CXX \
  22249. compiler_lib_search_path_CXX; do
  22250. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22251. *[\\\\\\\`\\"\\\$]*)
  22252. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22253. ;;
  22254. *)
  22255. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22256. ;;
  22257. esac
  22258. done
  22259. # Double-quote double-evaled strings.
  22260. for var in reload_cmds \
  22261. old_postinstall_cmds \
  22262. old_postuninstall_cmds \
  22263. old_archive_cmds \
  22264. extract_expsyms_cmds \
  22265. old_archive_from_new_cmds \
  22266. old_archive_from_expsyms_cmds \
  22267. archive_cmds \
  22268. archive_expsym_cmds \
  22269. module_cmds \
  22270. module_expsym_cmds \
  22271. export_symbols_cmds \
  22272. prelink_cmds \
  22273. postlink_cmds \
  22274. postinstall_cmds \
  22275. postuninstall_cmds \
  22276. finish_cmds \
  22277. sys_lib_search_path_spec \
  22278. sys_lib_dlsearch_path_spec \
  22279. reload_cmds_CXX \
  22280. old_archive_cmds_CXX \
  22281. old_archive_from_new_cmds_CXX \
  22282. old_archive_from_expsyms_cmds_CXX \
  22283. archive_cmds_CXX \
  22284. archive_expsym_cmds_CXX \
  22285. module_cmds_CXX \
  22286. module_expsym_cmds_CXX \
  22287. export_symbols_cmds_CXX \
  22288. prelink_cmds_CXX \
  22289. postlink_cmds_CXX; do
  22290. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22291. *[\\\\\\\`\\"\\\$]*)
  22292. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22293. ;;
  22294. *)
  22295. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22296. ;;
  22297. esac
  22298. done
  22299. ac_aux_dir='$ac_aux_dir'
  22300. xsi_shell='$xsi_shell'
  22301. lt_shell_append='$lt_shell_append'
  22302. # See if we are running on zsh, and set the options which allow our
  22303. # commands through without removal of \ escapes INIT.
  22304. if test -n "\${ZSH_VERSION+set}" ; then
  22305. setopt NO_GLOB_SUBST
  22306. fi
  22307. PACKAGE='$PACKAGE'
  22308. VERSION='$VERSION'
  22309. TIMESTAMP='$TIMESTAMP'
  22310. RM='$RM'
  22311. ofile='$ofile'
  22312. SUMMARY="$SUMMARY"
  22313. _ACEOF
  22314. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22315. # Handling of arguments.
  22316. for ac_config_target in $ac_config_targets
  22317. do
  22318. case $ac_config_target in
  22319. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22320. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22321. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22322. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22323. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22324. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22325. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22326. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22327. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22328. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22329. esac
  22330. done
  22331. # If the user did not use the arguments to specify the items to instantiate,
  22332. # then the envvar interface is used. Set only those that are not.
  22333. # We use the long form for the default assignment because of an extremely
  22334. # bizarre bug on SunOS 4.1.3.
  22335. if $ac_need_defaults; then
  22336. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22337. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22338. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22339. fi
  22340. # Have a temporary directory for convenience. Make it in the build tree
  22341. # simply because there is no reason against having it here, and in addition,
  22342. # creating and moving files from /tmp can sometimes cause problems.
  22343. # Hook for its removal unless debugging.
  22344. # Note that there is a small window in which the directory will not be cleaned:
  22345. # after its creation but before its name has been assigned to `$tmp'.
  22346. $debug ||
  22347. {
  22348. tmp= ac_tmp=
  22349. trap 'exit_status=$?
  22350. : "${ac_tmp:=$tmp}"
  22351. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22352. ' 0
  22353. trap 'as_fn_exit 1' 1 2 13 15
  22354. }
  22355. # Create a (secure) tmp directory for tmp files.
  22356. {
  22357. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22358. test -d "$tmp"
  22359. } ||
  22360. {
  22361. tmp=./conf$$-$RANDOM
  22362. (umask 077 && mkdir "$tmp")
  22363. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22364. ac_tmp=$tmp
  22365. # Set up the scripts for CONFIG_FILES section.
  22366. # No need to generate them if there are no CONFIG_FILES.
  22367. # This happens for instance with `./config.status config.h'.
  22368. if test -n "$CONFIG_FILES"; then
  22369. ac_cr=`echo X | tr X '\015'`
  22370. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22371. # But we know of no other shell where ac_cr would be empty at this
  22372. # point, so we can use a bashism as a fallback.
  22373. if test "x$ac_cr" = x; then
  22374. eval ac_cr=\$\'\\r\'
  22375. fi
  22376. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22377. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22378. ac_cs_awk_cr='\\r'
  22379. else
  22380. ac_cs_awk_cr=$ac_cr
  22381. fi
  22382. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22383. _ACEOF
  22384. {
  22385. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22386. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22387. echo "_ACEOF"
  22388. } >conf$$subs.sh ||
  22389. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22390. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22391. ac_delim='%!_!# '
  22392. for ac_last_try in false false false false false :; do
  22393. . ./conf$$subs.sh ||
  22394. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22395. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22396. if test $ac_delim_n = $ac_delim_num; then
  22397. break
  22398. elif $ac_last_try; then
  22399. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22400. else
  22401. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22402. fi
  22403. done
  22404. rm -f conf$$subs.sh
  22405. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22406. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22407. _ACEOF
  22408. sed -n '
  22409. h
  22410. s/^/S["/; s/!.*/"]=/
  22411. p
  22412. g
  22413. s/^[^!]*!//
  22414. :repl
  22415. t repl
  22416. s/'"$ac_delim"'$//
  22417. t delim
  22418. :nl
  22419. h
  22420. s/\(.\{148\}\)..*/\1/
  22421. t more1
  22422. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22423. p
  22424. n
  22425. b repl
  22426. :more1
  22427. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22428. p
  22429. g
  22430. s/.\{148\}//
  22431. t nl
  22432. :delim
  22433. h
  22434. s/\(.\{148\}\)..*/\1/
  22435. t more2
  22436. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22437. p
  22438. b
  22439. :more2
  22440. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22441. p
  22442. g
  22443. s/.\{148\}//
  22444. t delim
  22445. ' <conf$$subs.awk | sed '
  22446. /^[^""]/{
  22447. N
  22448. s/\n//
  22449. }
  22450. ' >>$CONFIG_STATUS || ac_write_fail=1
  22451. rm -f conf$$subs.awk
  22452. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22453. _ACAWK
  22454. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22455. for (key in S) S_is_set[key] = 1
  22456. FS = ""
  22457. }
  22458. {
  22459. line = $ 0
  22460. nfields = split(line, field, "@")
  22461. substed = 0
  22462. len = length(field[1])
  22463. for (i = 2; i < nfields; i++) {
  22464. key = field[i]
  22465. keylen = length(key)
  22466. if (S_is_set[key]) {
  22467. value = S[key]
  22468. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22469. len += length(value) + length(field[++i])
  22470. substed = 1
  22471. } else
  22472. len += 1 + keylen
  22473. }
  22474. print line
  22475. }
  22476. _ACAWK
  22477. _ACEOF
  22478. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22479. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22480. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22481. else
  22482. cat
  22483. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22484. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22485. _ACEOF
  22486. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22487. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22488. # trailing colons and then remove the whole line if VPATH becomes empty
  22489. # (actually we leave an empty line to preserve line numbers).
  22490. if test "x$srcdir" = x.; then
  22491. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22492. h
  22493. s///
  22494. s/^/:/
  22495. s/[ ]*$/:/
  22496. s/:\$(srcdir):/:/g
  22497. s/:\${srcdir}:/:/g
  22498. s/:@srcdir@:/:/g
  22499. s/^:*//
  22500. s/:*$//
  22501. x
  22502. s/\(=[ ]*\).*/\1/
  22503. G
  22504. s/\n//
  22505. s/^[^=]*=[ ]*$//
  22506. }'
  22507. fi
  22508. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22509. fi # test -n "$CONFIG_FILES"
  22510. # Set up the scripts for CONFIG_HEADERS section.
  22511. # No need to generate them if there are no CONFIG_HEADERS.
  22512. # This happens for instance with `./config.status Makefile'.
  22513. if test -n "$CONFIG_HEADERS"; then
  22514. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22515. BEGIN {
  22516. _ACEOF
  22517. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22518. # here-document in config.status, that substitutes the proper values into
  22519. # config.h.in to produce config.h.
  22520. # Create a delimiter string that does not exist in confdefs.h, to ease
  22521. # handling of long lines.
  22522. ac_delim='%!_!# '
  22523. for ac_last_try in false false :; do
  22524. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22525. if test -z "$ac_tt"; then
  22526. break
  22527. elif $ac_last_try; then
  22528. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22529. else
  22530. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22531. fi
  22532. done
  22533. # For the awk script, D is an array of macro values keyed by name,
  22534. # likewise P contains macro parameters if any. Preserve backslash
  22535. # newline sequences.
  22536. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22537. sed -n '
  22538. s/.\{148\}/&'"$ac_delim"'/g
  22539. t rset
  22540. :rset
  22541. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22542. t def
  22543. d
  22544. :def
  22545. s/\\$//
  22546. t bsnl
  22547. s/["\\]/\\&/g
  22548. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22549. D["\1"]=" \3"/p
  22550. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22551. d
  22552. :bsnl
  22553. s/["\\]/\\&/g
  22554. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22555. D["\1"]=" \3\\\\\\n"\\/p
  22556. t cont
  22557. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22558. t cont
  22559. d
  22560. :cont
  22561. n
  22562. s/.\{148\}/&'"$ac_delim"'/g
  22563. t clear
  22564. :clear
  22565. s/\\$//
  22566. t bsnlc
  22567. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22568. d
  22569. :bsnlc
  22570. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22571. b cont
  22572. ' <confdefs.h | sed '
  22573. s/'"$ac_delim"'/"\\\
  22574. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22576. for (key in D) D_is_set[key] = 1
  22577. FS = ""
  22578. }
  22579. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22580. line = \$ 0
  22581. split(line, arg, " ")
  22582. if (arg[1] == "#") {
  22583. defundef = arg[2]
  22584. mac1 = arg[3]
  22585. } else {
  22586. defundef = substr(arg[1], 2)
  22587. mac1 = arg[2]
  22588. }
  22589. split(mac1, mac2, "(") #)
  22590. macro = mac2[1]
  22591. prefix = substr(line, 1, index(line, defundef) - 1)
  22592. if (D_is_set[macro]) {
  22593. # Preserve the white space surrounding the "#".
  22594. print prefix "define", macro P[macro] D[macro]
  22595. next
  22596. } else {
  22597. # Replace #undef with comments. This is necessary, for example,
  22598. # in the case of _POSIX_SOURCE, which is predefined and required
  22599. # on some systems where configure will not decide to define it.
  22600. if (defundef == "undef") {
  22601. print "/*", prefix defundef, macro, "*/"
  22602. next
  22603. }
  22604. }
  22605. }
  22606. { print }
  22607. _ACAWK
  22608. _ACEOF
  22609. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22610. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22611. fi # test -n "$CONFIG_HEADERS"
  22612. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22613. shift
  22614. for ac_tag
  22615. do
  22616. case $ac_tag in
  22617. :[FHLC]) ac_mode=$ac_tag; continue;;
  22618. esac
  22619. case $ac_mode$ac_tag in
  22620. :[FHL]*:*);;
  22621. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22622. :[FH]-) ac_tag=-:-;;
  22623. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22624. esac
  22625. ac_save_IFS=$IFS
  22626. IFS=:
  22627. set x $ac_tag
  22628. IFS=$ac_save_IFS
  22629. shift
  22630. ac_file=$1
  22631. shift
  22632. case $ac_mode in
  22633. :L) ac_source=$1;;
  22634. :[FH])
  22635. ac_file_inputs=
  22636. for ac_f
  22637. do
  22638. case $ac_f in
  22639. -) ac_f="$ac_tmp/stdin";;
  22640. *) # Look for the file first in the build tree, then in the source tree
  22641. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22642. # because $ac_f cannot contain `:'.
  22643. test -f "$ac_f" ||
  22644. case $ac_f in
  22645. [\\/$]*) false;;
  22646. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22647. esac ||
  22648. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22649. esac
  22650. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22651. as_fn_append ac_file_inputs " '$ac_f'"
  22652. done
  22653. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22654. # use $as_me), people would be surprised to read:
  22655. # /* config.h. Generated by config.status. */
  22656. configure_input='Generated from '`
  22657. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22658. `' by configure.'
  22659. if test x"$ac_file" != x-; then
  22660. configure_input="$ac_file. $configure_input"
  22661. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22662. $as_echo "$as_me: creating $ac_file" >&6;}
  22663. fi
  22664. # Neutralize special characters interpreted by sed in replacement strings.
  22665. case $configure_input in #(
  22666. *\&* | *\|* | *\\* )
  22667. ac_sed_conf_input=`$as_echo "$configure_input" |
  22668. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22669. *) ac_sed_conf_input=$configure_input;;
  22670. esac
  22671. case $ac_tag in
  22672. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22673. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22674. esac
  22675. ;;
  22676. esac
  22677. ac_dir=`$as_dirname -- "$ac_file" ||
  22678. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22679. X"$ac_file" : 'X\(//\)[^/]' \| \
  22680. X"$ac_file" : 'X\(//\)$' \| \
  22681. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22682. $as_echo X"$ac_file" |
  22683. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22684. s//\1/
  22685. q
  22686. }
  22687. /^X\(\/\/\)[^/].*/{
  22688. s//\1/
  22689. q
  22690. }
  22691. /^X\(\/\/\)$/{
  22692. s//\1/
  22693. q
  22694. }
  22695. /^X\(\/\).*/{
  22696. s//\1/
  22697. q
  22698. }
  22699. s/.*/./; q'`
  22700. as_dir="$ac_dir"; as_fn_mkdir_p
  22701. ac_builddir=.
  22702. case "$ac_dir" in
  22703. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22704. *)
  22705. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22706. # A ".." for each directory in $ac_dir_suffix.
  22707. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22708. case $ac_top_builddir_sub in
  22709. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22710. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22711. esac ;;
  22712. esac
  22713. ac_abs_top_builddir=$ac_pwd
  22714. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22715. # for backward compatibility:
  22716. ac_top_builddir=$ac_top_build_prefix
  22717. case $srcdir in
  22718. .) # We are building in place.
  22719. ac_srcdir=.
  22720. ac_top_srcdir=$ac_top_builddir_sub
  22721. ac_abs_top_srcdir=$ac_pwd ;;
  22722. [\\/]* | ?:[\\/]* ) # Absolute name.
  22723. ac_srcdir=$srcdir$ac_dir_suffix;
  22724. ac_top_srcdir=$srcdir
  22725. ac_abs_top_srcdir=$srcdir ;;
  22726. *) # Relative name.
  22727. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22728. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22729. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22730. esac
  22731. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22732. case $ac_mode in
  22733. :F)
  22734. #
  22735. # CONFIG_FILE
  22736. #
  22737. case $INSTALL in
  22738. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22739. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22740. esac
  22741. _ACEOF
  22742. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22743. # If the template does not know about datarootdir, expand it.
  22744. # FIXME: This hack should be removed a few years after 2.60.
  22745. ac_datarootdir_hack=; ac_datarootdir_seen=
  22746. ac_sed_dataroot='
  22747. /datarootdir/ {
  22748. p
  22749. q
  22750. }
  22751. /@datadir@/p
  22752. /@docdir@/p
  22753. /@infodir@/p
  22754. /@localedir@/p
  22755. /@mandir@/p'
  22756. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22757. *datarootdir*) ac_datarootdir_seen=yes;;
  22758. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22760. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22761. _ACEOF
  22762. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22763. ac_datarootdir_hack='
  22764. s&@datadir@&$datadir&g
  22765. s&@docdir@&$docdir&g
  22766. s&@infodir@&$infodir&g
  22767. s&@localedir@&$localedir&g
  22768. s&@mandir@&$mandir&g
  22769. s&\\\${datarootdir}&$datarootdir&g' ;;
  22770. esac
  22771. _ACEOF
  22772. # Neutralize VPATH when `$srcdir' = `.'.
  22773. # Shell code in configure.ac might set extrasub.
  22774. # FIXME: do we really want to maintain this feature?
  22775. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22776. ac_sed_extra="$ac_vpsub
  22777. $extrasub
  22778. _ACEOF
  22779. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22780. :t
  22781. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22782. s|@configure_input@|$ac_sed_conf_input|;t t
  22783. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22784. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22785. s&@srcdir@&$ac_srcdir&;t t
  22786. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22787. s&@top_srcdir@&$ac_top_srcdir&;t t
  22788. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22789. s&@builddir@&$ac_builddir&;t t
  22790. s&@abs_builddir@&$ac_abs_builddir&;t t
  22791. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22792. s&@INSTALL@&$ac_INSTALL&;t t
  22793. $ac_datarootdir_hack
  22794. "
  22795. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22796. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22797. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22798. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22799. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22800. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22802. which seems to be undefined. Please make sure it is defined" >&5
  22803. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22804. which seems to be undefined. Please make sure it is defined" >&2;}
  22805. rm -f "$ac_tmp/stdin"
  22806. case $ac_file in
  22807. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22808. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22809. esac \
  22810. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22811. ;;
  22812. :H)
  22813. #
  22814. # CONFIG_HEADER
  22815. #
  22816. if test x"$ac_file" != x-; then
  22817. {
  22818. $as_echo "/* $configure_input */" \
  22819. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22820. } >"$ac_tmp/config.h" \
  22821. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22822. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22823. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22824. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22825. else
  22826. rm -f "$ac_file"
  22827. mv "$ac_tmp/config.h" "$ac_file" \
  22828. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22829. fi
  22830. else
  22831. $as_echo "/* $configure_input */" \
  22832. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22833. || as_fn_error $? "could not create -" "$LINENO" 5
  22834. fi
  22835. ;;
  22836. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22837. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22838. ;;
  22839. esac
  22840. case $ac_file$ac_mode in
  22841. "libtool":C)
  22842. # See if we are running on zsh, and set the options which allow our
  22843. # commands through without removal of \ escapes.
  22844. if test -n "${ZSH_VERSION+set}" ; then
  22845. setopt NO_GLOB_SUBST
  22846. fi
  22847. cfgfile="${ofile}T"
  22848. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22849. $RM "$cfgfile"
  22850. cat <<_LT_EOF >> "$cfgfile"
  22851. #! $SHELL
  22852. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22853. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22854. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22855. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22856. #
  22857. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22858. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22859. # Foundation, Inc.
  22860. # Written by Gordon Matzigkeit, 1996
  22861. #
  22862. # This file is part of GNU Libtool.
  22863. #
  22864. # GNU Libtool is free software; you can redistribute it and/or
  22865. # modify it under the terms of the GNU General Public License as
  22866. # published by the Free Software Foundation; either version 2 of
  22867. # the License, or (at your option) any later version.
  22868. #
  22869. # As a special exception to the GNU General Public License,
  22870. # if you distribute this file as part of a program or library that
  22871. # is built using GNU Libtool, you may include this file under the
  22872. # same distribution terms that you use for the rest of that program.
  22873. #
  22874. # GNU Libtool is distributed in the hope that it will be useful,
  22875. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22876. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22877. # GNU General Public License for more details.
  22878. #
  22879. # You should have received a copy of the GNU General Public License
  22880. # along with GNU Libtool; see the file COPYING. If not, a copy
  22881. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22882. # obtained by writing to the Free Software Foundation, Inc.,
  22883. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22884. # The names of the tagged configurations supported by this script.
  22885. available_tags="CXX "
  22886. # ### BEGIN LIBTOOL CONFIG
  22887. # Which release of libtool.m4 was used?
  22888. macro_version=$macro_version
  22889. macro_revision=$macro_revision
  22890. # Assembler program.
  22891. AS=$lt_AS
  22892. # DLL creation program.
  22893. DLLTOOL=$lt_DLLTOOL
  22894. # Object dumper program.
  22895. OBJDUMP=$lt_OBJDUMP
  22896. # Whether or not to build shared libraries.
  22897. build_libtool_libs=$enable_shared
  22898. # Whether or not to build static libraries.
  22899. build_old_libs=$enable_static
  22900. # What type of objects to build.
  22901. pic_mode=$pic_mode
  22902. # Whether or not to optimize for fast installation.
  22903. fast_install=$enable_fast_install
  22904. # Shell to use when invoking shell scripts.
  22905. SHELL=$lt_SHELL
  22906. # An echo program that protects backslashes.
  22907. ECHO=$lt_ECHO
  22908. # The PATH separator for the build system.
  22909. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22910. # The host system.
  22911. host_alias=$host_alias
  22912. host=$host
  22913. host_os=$host_os
  22914. # The build system.
  22915. build_alias=$build_alias
  22916. build=$build
  22917. build_os=$build_os
  22918. # A sed program that does not truncate output.
  22919. SED=$lt_SED
  22920. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22921. Xsed="\$SED -e 1s/^X//"
  22922. # A grep program that handles long lines.
  22923. GREP=$lt_GREP
  22924. # An ERE matcher.
  22925. EGREP=$lt_EGREP
  22926. # A literal string matcher.
  22927. FGREP=$lt_FGREP
  22928. # A BSD- or MS-compatible name lister.
  22929. NM=$lt_NM
  22930. # Whether we need soft or hard links.
  22931. LN_S=$lt_LN_S
  22932. # What is the maximum length of a command?
  22933. max_cmd_len=$max_cmd_len
  22934. # Object file suffix (normally "o").
  22935. objext=$ac_objext
  22936. # Executable file suffix (normally "").
  22937. exeext=$exeext
  22938. # whether the shell understands "unset".
  22939. lt_unset=$lt_unset
  22940. # turn spaces into newlines.
  22941. SP2NL=$lt_lt_SP2NL
  22942. # turn newlines into spaces.
  22943. NL2SP=$lt_lt_NL2SP
  22944. # convert \$build file names to \$host format.
  22945. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22946. # convert \$build files to toolchain format.
  22947. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22948. # Method to check whether dependent libraries are shared objects.
  22949. deplibs_check_method=$lt_deplibs_check_method
  22950. # Command to use when deplibs_check_method = "file_magic".
  22951. file_magic_cmd=$lt_file_magic_cmd
  22952. # How to find potential files when deplibs_check_method = "file_magic".
  22953. file_magic_glob=$lt_file_magic_glob
  22954. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22955. want_nocaseglob=$lt_want_nocaseglob
  22956. # Command to associate shared and link libraries.
  22957. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22958. # The archiver.
  22959. AR=$lt_AR
  22960. # Flags to create an archive.
  22961. AR_FLAGS=$lt_AR_FLAGS
  22962. # How to feed a file listing to the archiver.
  22963. archiver_list_spec=$lt_archiver_list_spec
  22964. # A symbol stripping program.
  22965. STRIP=$lt_STRIP
  22966. # Commands used to install an old-style archive.
  22967. RANLIB=$lt_RANLIB
  22968. old_postinstall_cmds=$lt_old_postinstall_cmds
  22969. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22970. # Whether to use a lock for old archive extraction.
  22971. lock_old_archive_extraction=$lock_old_archive_extraction
  22972. # A C compiler.
  22973. LTCC=$lt_CC
  22974. # LTCC compiler flags.
  22975. LTCFLAGS=$lt_CFLAGS
  22976. # Take the output of nm and produce a listing of raw symbols and C names.
  22977. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22978. # Transform the output of nm in a proper C declaration.
  22979. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22980. # Transform the output of nm in a C name address pair.
  22981. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22982. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22983. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22984. # Specify filename containing input files for \$NM.
  22985. nm_file_list_spec=$lt_nm_file_list_spec
  22986. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22987. lt_sysroot=$lt_sysroot
  22988. # The name of the directory that contains temporary libtool files.
  22989. objdir=$objdir
  22990. # Used to examine libraries when file_magic_cmd begins with "file".
  22991. MAGIC_CMD=$MAGIC_CMD
  22992. # Must we lock files when doing compilation?
  22993. need_locks=$lt_need_locks
  22994. # Manifest tool.
  22995. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22996. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22997. DSYMUTIL=$lt_DSYMUTIL
  22998. # Tool to change global to local symbols on Mac OS X.
  22999. NMEDIT=$lt_NMEDIT
  23000. # Tool to manipulate fat objects and archives on Mac OS X.
  23001. LIPO=$lt_LIPO
  23002. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23003. OTOOL=$lt_OTOOL
  23004. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23005. OTOOL64=$lt_OTOOL64
  23006. # Old archive suffix (normally "a").
  23007. libext=$libext
  23008. # Shared library suffix (normally ".so").
  23009. shrext_cmds=$lt_shrext_cmds
  23010. # The commands to extract the exported symbol list from a shared archive.
  23011. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23012. # Variables whose values should be saved in libtool wrapper scripts and
  23013. # restored at link time.
  23014. variables_saved_for_relink=$lt_variables_saved_for_relink
  23015. # Do we need the "lib" prefix for modules?
  23016. need_lib_prefix=$need_lib_prefix
  23017. # Do we need a version for libraries?
  23018. need_version=$need_version
  23019. # Library versioning type.
  23020. version_type=$version_type
  23021. # Shared library runtime path variable.
  23022. runpath_var=$runpath_var
  23023. # Shared library path variable.
  23024. shlibpath_var=$shlibpath_var
  23025. # Is shlibpath searched before the hard-coded library search path?
  23026. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23027. # Format of library name prefix.
  23028. libname_spec=$lt_libname_spec
  23029. # List of archive names. First name is the real one, the rest are links.
  23030. # The last name is the one that the linker finds with -lNAME
  23031. library_names_spec=$lt_library_names_spec
  23032. # The coded name of the library, if different from the real name.
  23033. soname_spec=$lt_soname_spec
  23034. # Permission mode override for installation of shared libraries.
  23035. install_override_mode=$lt_install_override_mode
  23036. # Command to use after installation of a shared archive.
  23037. postinstall_cmds=$lt_postinstall_cmds
  23038. # Command to use after uninstallation of a shared archive.
  23039. postuninstall_cmds=$lt_postuninstall_cmds
  23040. # Commands used to finish a libtool library installation in a directory.
  23041. finish_cmds=$lt_finish_cmds
  23042. # As "finish_cmds", except a single script fragment to be evaled but
  23043. # not shown.
  23044. finish_eval=$lt_finish_eval
  23045. # Whether we should hardcode library paths into libraries.
  23046. hardcode_into_libs=$hardcode_into_libs
  23047. # Compile-time system search path for libraries.
  23048. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23049. # Run-time system search path for libraries.
  23050. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23051. # Whether dlopen is supported.
  23052. dlopen_support=$enable_dlopen
  23053. # Whether dlopen of programs is supported.
  23054. dlopen_self=$enable_dlopen_self
  23055. # Whether dlopen of statically linked programs is supported.
  23056. dlopen_self_static=$enable_dlopen_self_static
  23057. # Commands to strip libraries.
  23058. old_striplib=$lt_old_striplib
  23059. striplib=$lt_striplib
  23060. # The linker used to build libraries.
  23061. LD=$lt_LD
  23062. # How to create reloadable object files.
  23063. reload_flag=$lt_reload_flag
  23064. reload_cmds=$lt_reload_cmds
  23065. # Commands used to build an old-style archive.
  23066. old_archive_cmds=$lt_old_archive_cmds
  23067. # A language specific compiler.
  23068. CC=$lt_compiler
  23069. # Is the compiler the GNU compiler?
  23070. with_gcc=$GCC
  23071. # Compiler flag to turn off builtin functions.
  23072. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23073. # Additional compiler flags for building library objects.
  23074. pic_flag=$lt_lt_prog_compiler_pic
  23075. # How to pass a linker flag through the compiler.
  23076. wl=$lt_lt_prog_compiler_wl
  23077. # Compiler flag to prevent dynamic linking.
  23078. link_static_flag=$lt_lt_prog_compiler_static
  23079. # Does compiler simultaneously support -c and -o options?
  23080. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23081. # Whether or not to add -lc for building shared libraries.
  23082. build_libtool_need_lc=$archive_cmds_need_lc
  23083. # Whether or not to disallow shared libs when runtime libs are static.
  23084. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23085. # Compiler flag to allow reflexive dlopens.
  23086. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23087. # Compiler flag to generate shared objects directly from archives.
  23088. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23089. # Whether the compiler copes with passing no objects directly.
  23090. compiler_needs_object=$lt_compiler_needs_object
  23091. # Create an old-style archive from a shared archive.
  23092. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23093. # Create a temporary old-style archive to link instead of a shared archive.
  23094. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23095. # Commands used to build a shared archive.
  23096. archive_cmds=$lt_archive_cmds
  23097. archive_expsym_cmds=$lt_archive_expsym_cmds
  23098. # Commands used to build a loadable module if different from building
  23099. # a shared archive.
  23100. module_cmds=$lt_module_cmds
  23101. module_expsym_cmds=$lt_module_expsym_cmds
  23102. # Whether we are building with GNU ld or not.
  23103. with_gnu_ld=$lt_with_gnu_ld
  23104. # Flag that allows shared libraries with undefined symbols to be built.
  23105. allow_undefined_flag=$lt_allow_undefined_flag
  23106. # Flag that enforces no undefined symbols.
  23107. no_undefined_flag=$lt_no_undefined_flag
  23108. # Flag to hardcode \$libdir into a binary during linking.
  23109. # This must work even if \$libdir does not exist
  23110. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23111. # Whether we need a single "-rpath" flag with a separated argument.
  23112. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23113. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23114. # DIR into the resulting binary.
  23115. hardcode_direct=$hardcode_direct
  23116. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23117. # DIR into the resulting binary and the resulting library dependency is
  23118. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23119. # library is relocated.
  23120. hardcode_direct_absolute=$hardcode_direct_absolute
  23121. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23122. # into the resulting binary.
  23123. hardcode_minus_L=$hardcode_minus_L
  23124. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23125. # into the resulting binary.
  23126. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23127. # Set to "yes" if building a shared library automatically hardcodes DIR
  23128. # into the library and all subsequent libraries and executables linked
  23129. # against it.
  23130. hardcode_automatic=$hardcode_automatic
  23131. # Set to yes if linker adds runtime paths of dependent libraries
  23132. # to runtime path list.
  23133. inherit_rpath=$inherit_rpath
  23134. # Whether libtool must link a program against all its dependency libraries.
  23135. link_all_deplibs=$link_all_deplibs
  23136. # Set to "yes" if exported symbols are required.
  23137. always_export_symbols=$always_export_symbols
  23138. # The commands to list exported symbols.
  23139. export_symbols_cmds=$lt_export_symbols_cmds
  23140. # Symbols that should not be listed in the preloaded symbols.
  23141. exclude_expsyms=$lt_exclude_expsyms
  23142. # Symbols that must always be exported.
  23143. include_expsyms=$lt_include_expsyms
  23144. # Commands necessary for linking programs (against libraries) with templates.
  23145. prelink_cmds=$lt_prelink_cmds
  23146. # Commands necessary for finishing linking programs.
  23147. postlink_cmds=$lt_postlink_cmds
  23148. # Specify filename containing input files.
  23149. file_list_spec=$lt_file_list_spec
  23150. # How to hardcode a shared library path into an executable.
  23151. hardcode_action=$hardcode_action
  23152. # The directories searched by this compiler when creating a shared library.
  23153. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23154. # Dependencies to place before and after the objects being linked to
  23155. # create a shared library.
  23156. predep_objects=$lt_predep_objects
  23157. postdep_objects=$lt_postdep_objects
  23158. predeps=$lt_predeps
  23159. postdeps=$lt_postdeps
  23160. # The library search path used internally by the compiler when linking
  23161. # a shared library.
  23162. compiler_lib_search_path=$lt_compiler_lib_search_path
  23163. # ### END LIBTOOL CONFIG
  23164. _LT_EOF
  23165. case $host_os in
  23166. aix3*)
  23167. cat <<\_LT_EOF >> "$cfgfile"
  23168. # AIX sometimes has problems with the GCC collect2 program. For some
  23169. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23170. # vanish in a puff of smoke.
  23171. if test "X${COLLECT_NAMES+set}" != Xset; then
  23172. COLLECT_NAMES=
  23173. export COLLECT_NAMES
  23174. fi
  23175. _LT_EOF
  23176. ;;
  23177. esac
  23178. ltmain="$ac_aux_dir/ltmain.sh"
  23179. # We use sed instead of cat because bash on DJGPP gets confused if
  23180. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23181. # text mode, it properly converts lines to CR/LF. This bash problem
  23182. # is reportedly fixed, but why not run on old versions too?
  23183. sed '$q' "$ltmain" >> "$cfgfile" \
  23184. || (rm -f "$cfgfile"; exit 1)
  23185. if test x"$xsi_shell" = xyes; then
  23186. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23187. func_dirname ()\
  23188. {\
  23189. \ case ${1} in\
  23190. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23191. \ * ) func_dirname_result="${3}" ;;\
  23192. \ esac\
  23193. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23194. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23195. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23196. test 0 -eq $? || _lt_function_replace_fail=:
  23197. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23198. func_basename ()\
  23199. {\
  23200. \ func_basename_result="${1##*/}"\
  23201. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23202. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23203. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23204. test 0 -eq $? || _lt_function_replace_fail=:
  23205. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23206. func_dirname_and_basename ()\
  23207. {\
  23208. \ case ${1} in\
  23209. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23210. \ * ) func_dirname_result="${3}" ;;\
  23211. \ esac\
  23212. \ func_basename_result="${1##*/}"\
  23213. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23214. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23215. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23216. test 0 -eq $? || _lt_function_replace_fail=:
  23217. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23218. func_stripname ()\
  23219. {\
  23220. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23221. \ # positional parameters, so assign one to ordinary parameter first.\
  23222. \ func_stripname_result=${3}\
  23223. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23224. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23225. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23226. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23227. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23228. test 0 -eq $? || _lt_function_replace_fail=:
  23229. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23230. func_split_long_opt ()\
  23231. {\
  23232. \ func_split_long_opt_name=${1%%=*}\
  23233. \ func_split_long_opt_arg=${1#*=}\
  23234. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23235. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23236. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23237. test 0 -eq $? || _lt_function_replace_fail=:
  23238. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23239. func_split_short_opt ()\
  23240. {\
  23241. \ func_split_short_opt_arg=${1#??}\
  23242. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23243. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23244. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23245. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23246. test 0 -eq $? || _lt_function_replace_fail=:
  23247. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23248. func_lo2o ()\
  23249. {\
  23250. \ case ${1} in\
  23251. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23252. \ *) func_lo2o_result=${1} ;;\
  23253. \ esac\
  23254. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23255. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23256. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23257. test 0 -eq $? || _lt_function_replace_fail=:
  23258. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23259. func_xform ()\
  23260. {\
  23261. func_xform_result=${1%.*}.lo\
  23262. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23263. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23264. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23265. test 0 -eq $? || _lt_function_replace_fail=:
  23266. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23267. func_arith ()\
  23268. {\
  23269. func_arith_result=$(( $* ))\
  23270. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23271. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23272. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23273. test 0 -eq $? || _lt_function_replace_fail=:
  23274. sed -e '/^func_len ()$/,/^} # func_len /c\
  23275. func_len ()\
  23276. {\
  23277. func_len_result=${#1}\
  23278. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23279. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23280. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23281. test 0 -eq $? || _lt_function_replace_fail=:
  23282. fi
  23283. if test x"$lt_shell_append" = xyes; then
  23284. sed -e '/^func_append ()$/,/^} # func_append /c\
  23285. func_append ()\
  23286. {\
  23287. eval "${1}+=\\${2}"\
  23288. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23289. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23290. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23291. test 0 -eq $? || _lt_function_replace_fail=:
  23292. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23293. func_append_quoted ()\
  23294. {\
  23295. \ func_quote_for_eval "${2}"\
  23296. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23297. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23298. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23299. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23300. test 0 -eq $? || _lt_function_replace_fail=:
  23301. # Save a `func_append' function call where possible by direct use of '+='
  23302. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23303. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23304. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23305. test 0 -eq $? || _lt_function_replace_fail=:
  23306. else
  23307. # Save a `func_append' function call even when '+=' is not available
  23308. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23309. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23310. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23311. test 0 -eq $? || _lt_function_replace_fail=:
  23312. fi
  23313. if test x"$_lt_function_replace_fail" = x":"; then
  23314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23315. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23316. fi
  23317. mv -f "$cfgfile" "$ofile" ||
  23318. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23319. chmod +x "$ofile"
  23320. cat <<_LT_EOF >> "$ofile"
  23321. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23322. # The linker used to build libraries.
  23323. LD=$lt_LD_CXX
  23324. # How to create reloadable object files.
  23325. reload_flag=$lt_reload_flag_CXX
  23326. reload_cmds=$lt_reload_cmds_CXX
  23327. # Commands used to build an old-style archive.
  23328. old_archive_cmds=$lt_old_archive_cmds_CXX
  23329. # A language specific compiler.
  23330. CC=$lt_compiler_CXX
  23331. # Is the compiler the GNU compiler?
  23332. with_gcc=$GCC_CXX
  23333. # Compiler flag to turn off builtin functions.
  23334. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23335. # Additional compiler flags for building library objects.
  23336. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23337. # How to pass a linker flag through the compiler.
  23338. wl=$lt_lt_prog_compiler_wl_CXX
  23339. # Compiler flag to prevent dynamic linking.
  23340. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23341. # Does compiler simultaneously support -c and -o options?
  23342. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23343. # Whether or not to add -lc for building shared libraries.
  23344. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23345. # Whether or not to disallow shared libs when runtime libs are static.
  23346. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23347. # Compiler flag to allow reflexive dlopens.
  23348. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23349. # Compiler flag to generate shared objects directly from archives.
  23350. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23351. # Whether the compiler copes with passing no objects directly.
  23352. compiler_needs_object=$lt_compiler_needs_object_CXX
  23353. # Create an old-style archive from a shared archive.
  23354. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23355. # Create a temporary old-style archive to link instead of a shared archive.
  23356. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23357. # Commands used to build a shared archive.
  23358. archive_cmds=$lt_archive_cmds_CXX
  23359. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23360. # Commands used to build a loadable module if different from building
  23361. # a shared archive.
  23362. module_cmds=$lt_module_cmds_CXX
  23363. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23364. # Whether we are building with GNU ld or not.
  23365. with_gnu_ld=$lt_with_gnu_ld_CXX
  23366. # Flag that allows shared libraries with undefined symbols to be built.
  23367. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23368. # Flag that enforces no undefined symbols.
  23369. no_undefined_flag=$lt_no_undefined_flag_CXX
  23370. # Flag to hardcode \$libdir into a binary during linking.
  23371. # This must work even if \$libdir does not exist
  23372. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23373. # Whether we need a single "-rpath" flag with a separated argument.
  23374. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23375. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23376. # DIR into the resulting binary.
  23377. hardcode_direct=$hardcode_direct_CXX
  23378. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23379. # DIR into the resulting binary and the resulting library dependency is
  23380. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23381. # library is relocated.
  23382. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23383. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23384. # into the resulting binary.
  23385. hardcode_minus_L=$hardcode_minus_L_CXX
  23386. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23387. # into the resulting binary.
  23388. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23389. # Set to "yes" if building a shared library automatically hardcodes DIR
  23390. # into the library and all subsequent libraries and executables linked
  23391. # against it.
  23392. hardcode_automatic=$hardcode_automatic_CXX
  23393. # Set to yes if linker adds runtime paths of dependent libraries
  23394. # to runtime path list.
  23395. inherit_rpath=$inherit_rpath_CXX
  23396. # Whether libtool must link a program against all its dependency libraries.
  23397. link_all_deplibs=$link_all_deplibs_CXX
  23398. # Set to "yes" if exported symbols are required.
  23399. always_export_symbols=$always_export_symbols_CXX
  23400. # The commands to list exported symbols.
  23401. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23402. # Symbols that should not be listed in the preloaded symbols.
  23403. exclude_expsyms=$lt_exclude_expsyms_CXX
  23404. # Symbols that must always be exported.
  23405. include_expsyms=$lt_include_expsyms_CXX
  23406. # Commands necessary for linking programs (against libraries) with templates.
  23407. prelink_cmds=$lt_prelink_cmds_CXX
  23408. # Commands necessary for finishing linking programs.
  23409. postlink_cmds=$lt_postlink_cmds_CXX
  23410. # Specify filename containing input files.
  23411. file_list_spec=$lt_file_list_spec_CXX
  23412. # How to hardcode a shared library path into an executable.
  23413. hardcode_action=$hardcode_action_CXX
  23414. # The directories searched by this compiler when creating a shared library.
  23415. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23416. # Dependencies to place before and after the objects being linked to
  23417. # create a shared library.
  23418. predep_objects=$lt_predep_objects_CXX
  23419. postdep_objects=$lt_postdep_objects_CXX
  23420. predeps=$lt_predeps_CXX
  23421. postdeps=$lt_postdeps_CXX
  23422. # The library search path used internally by the compiler when linking
  23423. # a shared library.
  23424. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23425. # ### END LIBTOOL TAG CONFIG: CXX
  23426. _LT_EOF
  23427. ;;
  23428. "sdl2_config":C) chmod a+x sdl2-config ;;
  23429. "summary":C) echo -en "$SUMMARY" ;;
  23430. esac
  23431. done # for ac_tag
  23432. as_fn_exit 0
  23433. _ACEOF
  23434. ac_clean_files=$ac_clean_files_save
  23435. test $ac_write_fail = 0 ||
  23436. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23437. # configure is writing to config.log, and then calls config.status.
  23438. # config.status does its own redirection, appending to config.log.
  23439. # Unfortunately, on DOS this fails, as config.log is still kept open
  23440. # by configure, so config.status won't be able to write to it; its
  23441. # output is simply discarded. So we exec the FD to /dev/null,
  23442. # effectively closing config.log, so it can be properly (re)opened and
  23443. # appended to by config.status. When coming back to configure, we
  23444. # need to make the FD available again.
  23445. if test "$no_create" != yes; then
  23446. ac_cs_success=:
  23447. ac_config_status_args=
  23448. test "$silent" = yes &&
  23449. ac_config_status_args="$ac_config_status_args --quiet"
  23450. exec 5>/dev/null
  23451. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23452. exec 5>>config.log
  23453. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23454. # would make configure fail if this is the last instruction.
  23455. $ac_cs_success || as_fn_exit 1
  23456. fi
  23457. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23459. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23460. fi