configure 823 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. INSTALL_SDL2_CONFIG
  603. LIBUSB_LIBS
  604. LIBUSB_CFLAGS
  605. FCITX_LIBS
  606. FCITX_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. ESD_LIBS
  630. ESD_CFLAGS
  631. ESD_CONFIG
  632. JACK_LIBS
  633. JACK_CFLAGS
  634. ALSA_LIBS
  635. ALSA_CFLAGS
  636. POW_LIB
  637. LIBOBJS
  638. ALLOCA
  639. PKG_CONFIG_LIBDIR
  640. PKG_CONFIG_PATH
  641. PKG_CONFIG
  642. WINDRES
  643. SET_MAKE
  644. INSTALL_DATA
  645. INSTALL_SCRIPT
  646. INSTALL_PROGRAM
  647. CXXCPP
  648. ac_ct_CXX
  649. CXXFLAGS
  650. CXX
  651. LT_AGE
  652. LT_REVISION
  653. LT_CURRENT
  654. LT_RELEASE
  655. CPP
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. AWK
  663. RANLIB
  664. STRIP
  665. ac_ct_AR
  666. AR
  667. LN_S
  668. NM
  669. ac_ct_DUMPBIN
  670. DUMPBIN
  671. LD
  672. FGREP
  673. EGREP
  674. GREP
  675. SED
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. host_os
  684. host_vendor
  685. host_cpu
  686. host
  687. build_os
  688. build_vendor
  689. build_cpu
  690. build
  691. LIBTOOL
  692. OBJDUMP
  693. DLLTOOL
  694. AS
  695. SDL_VERSION
  696. SDL_BINARY_AGE
  697. SDL_INTERFACE_AGE
  698. SDL_MICRO_VERSION
  699. SDL_MINOR_VERSION
  700. SDL_MAJOR_VERSION
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_assertions
  750. enable_dependency_tracking
  751. enable_libc
  752. enable_gcc_atomics
  753. enable_atomic
  754. enable_audio
  755. enable_video
  756. enable_render
  757. enable_events
  758. enable_joystick
  759. enable_haptic
  760. enable_sensor
  761. enable_power
  762. enable_filesystem
  763. enable_threads
  764. enable_timers
  765. enable_file
  766. enable_loadso
  767. enable_cpuinfo
  768. enable_assembly
  769. enable_ssemath
  770. enable_mmx
  771. enable_3dnow
  772. enable_sse
  773. enable_sse2
  774. enable_sse3
  775. enable_altivec
  776. enable_oss
  777. enable_alsa
  778. with_alsa_prefix
  779. with_alsa_inc_prefix
  780. enable_alsatest
  781. enable_alsa_shared
  782. enable_jack
  783. enable_jack_shared
  784. enable_esd
  785. with_esd_prefix
  786. with_esd_exec_prefix
  787. enable_esdtest
  788. enable_esd_shared
  789. enable_pulseaudio
  790. enable_pulseaudio_shared
  791. enable_arts
  792. enable_arts_shared
  793. enable_nas
  794. enable_nas_shared
  795. enable_sndio
  796. enable_sndio_shared
  797. enable_fusionsound
  798. enable_fusionsound_shared
  799. enable_diskaudio
  800. enable_dummyaudio
  801. enable_libsamplerate
  802. enable_libsamplerate_shared
  803. enable_arm_simd
  804. enable_arm_neon
  805. enable_video_wayland
  806. enable_video_wayland_qt_touch
  807. enable_wayland_shared
  808. enable_video_rpi
  809. enable_video_x11
  810. with_x
  811. enable_x11_shared
  812. enable_video_x11_xcursor
  813. enable_video_x11_xdbe
  814. enable_video_x11_xinerama
  815. enable_video_x11_xinput
  816. enable_video_x11_xrandr
  817. enable_video_x11_scrnsaver
  818. enable_video_x11_xshape
  819. enable_video_x11_vm
  820. enable_video_vivante
  821. enable_video_cocoa
  822. enable_video_metal
  823. enable_render_metal
  824. enable_video_directfb
  825. enable_directfb_shared
  826. enable_video_kmsdrm
  827. enable_kmsdrm_shared
  828. enable_video_dummy
  829. enable_video_opengl
  830. enable_video_opengles
  831. enable_video_opengles1
  832. enable_video_opengles2
  833. enable_video_vulkan
  834. enable_libudev
  835. enable_dbus
  836. enable_ime
  837. enable_ibus
  838. enable_fcitx
  839. enable_input_tslib
  840. enable_pthreads
  841. enable_pthread_sem
  842. enable_directx
  843. enable_wasapi
  844. enable_sdl_dlopen
  845. enable_hidapi
  846. enable_clock_gettime
  847. enable_rpath
  848. enable_backgrounding_signal
  849. enable_foregrounding_signal
  850. enable_joystick_virtual
  851. enable_render_d3d
  852. enable_sdl2_config
  853. '
  854. ac_precious_vars='build_alias
  855. host_alias
  856. target_alias
  857. CC
  858. CFLAGS
  859. LDFLAGS
  860. LIBS
  861. CPPFLAGS
  862. CPP
  863. CXX
  864. CXXFLAGS
  865. CCC
  866. CXXCPP
  867. PKG_CONFIG
  868. PKG_CONFIG_PATH
  869. PKG_CONFIG_LIBDIR
  870. JACK_CFLAGS
  871. JACK_LIBS
  872. PULSEAUDIO_CFLAGS
  873. PULSEAUDIO_LIBS
  874. FUSIONSOUND_CFLAGS
  875. FUSIONSOUND_LIBS
  876. RPI_CFLAGS
  877. RPI_LIBS
  878. XMKMF
  879. DIRECTFB_CFLAGS
  880. DIRECTFB_LIBS
  881. LIBDRM_CFLAGS
  882. LIBDRM_LIBS
  883. LIBGBM_CFLAGS
  884. LIBGBM_LIBS
  885. DBUS_CFLAGS
  886. DBUS_LIBS
  887. IBUS_CFLAGS
  888. IBUS_LIBS
  889. FCITX_CFLAGS
  890. FCITX_LIBS
  891. LIBUSB_CFLAGS
  892. LIBUSB_LIBS'
  893. # Initialize some variables set by options.
  894. ac_init_help=
  895. ac_init_version=false
  896. ac_unrecognized_opts=
  897. ac_unrecognized_sep=
  898. # The variables have the same names as the options, with
  899. # dashes changed to underlines.
  900. cache_file=/dev/null
  901. exec_prefix=NONE
  902. no_create=
  903. no_recursion=
  904. prefix=NONE
  905. program_prefix=NONE
  906. program_suffix=NONE
  907. program_transform_name=s,x,x,
  908. silent=
  909. site=
  910. srcdir=
  911. verbose=
  912. x_includes=NONE
  913. x_libraries=NONE
  914. # Installation directory options.
  915. # These are left unexpanded so users can "make install exec_prefix=/foo"
  916. # and all the variables that are supposed to be based on exec_prefix
  917. # by default will actually change.
  918. # Use braces instead of parens because sh, perl, etc. also accept them.
  919. # (The list follows the same order as the GNU Coding Standards.)
  920. bindir='${exec_prefix}/bin'
  921. sbindir='${exec_prefix}/sbin'
  922. libexecdir='${exec_prefix}/libexec'
  923. datarootdir='${prefix}/share'
  924. datadir='${datarootdir}'
  925. sysconfdir='${prefix}/etc'
  926. sharedstatedir='${prefix}/com'
  927. localstatedir='${prefix}/var'
  928. includedir='${prefix}/include'
  929. oldincludedir='/usr/include'
  930. docdir='${datarootdir}/doc/${PACKAGE}'
  931. infodir='${datarootdir}/info'
  932. htmldir='${docdir}'
  933. dvidir='${docdir}'
  934. pdfdir='${docdir}'
  935. psdir='${docdir}'
  936. libdir='${exec_prefix}/lib'
  937. localedir='${datarootdir}/locale'
  938. mandir='${datarootdir}/man'
  939. ac_prev=
  940. ac_dashdash=
  941. for ac_option
  942. do
  943. # If the previous option needs an argument, assign it.
  944. if test -n "$ac_prev"; then
  945. eval $ac_prev=\$ac_option
  946. ac_prev=
  947. continue
  948. fi
  949. case $ac_option in
  950. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  951. *=) ac_optarg= ;;
  952. *) ac_optarg=yes ;;
  953. esac
  954. # Accept the important Cygnus configure options, so we can diagnose typos.
  955. case $ac_dashdash$ac_option in
  956. --)
  957. ac_dashdash=yes ;;
  958. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  959. ac_prev=bindir ;;
  960. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  961. bindir=$ac_optarg ;;
  962. -build | --build | --buil | --bui | --bu)
  963. ac_prev=build_alias ;;
  964. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  965. build_alias=$ac_optarg ;;
  966. -cache-file | --cache-file | --cache-fil | --cache-fi \
  967. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  968. ac_prev=cache_file ;;
  969. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  970. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  971. cache_file=$ac_optarg ;;
  972. --config-cache | -C)
  973. cache_file=config.cache ;;
  974. -datadir | --datadir | --datadi | --datad)
  975. ac_prev=datadir ;;
  976. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  977. datadir=$ac_optarg ;;
  978. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  979. | --dataroo | --dataro | --datar)
  980. ac_prev=datarootdir ;;
  981. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  982. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  983. datarootdir=$ac_optarg ;;
  984. -disable-* | --disable-*)
  985. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  988. as_fn_error $? "invalid feature name: $ac_useropt"
  989. ac_useropt_orig=$ac_useropt
  990. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  991. case $ac_user_opts in
  992. *"
  993. "enable_$ac_useropt"
  994. "*) ;;
  995. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  996. ac_unrecognized_sep=', ';;
  997. esac
  998. eval enable_$ac_useropt=no ;;
  999. -docdir | --docdir | --docdi | --doc | --do)
  1000. ac_prev=docdir ;;
  1001. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1002. docdir=$ac_optarg ;;
  1003. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1004. ac_prev=dvidir ;;
  1005. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1006. dvidir=$ac_optarg ;;
  1007. -enable-* | --enable-*)
  1008. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1009. # Reject names that are not valid shell variable names.
  1010. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1011. as_fn_error $? "invalid feature name: $ac_useropt"
  1012. ac_useropt_orig=$ac_useropt
  1013. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1014. case $ac_user_opts in
  1015. *"
  1016. "enable_$ac_useropt"
  1017. "*) ;;
  1018. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1019. ac_unrecognized_sep=', ';;
  1020. esac
  1021. eval enable_$ac_useropt=\$ac_optarg ;;
  1022. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1023. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1024. | --exec | --exe | --ex)
  1025. ac_prev=exec_prefix ;;
  1026. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1027. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1028. | --exec=* | --exe=* | --ex=*)
  1029. exec_prefix=$ac_optarg ;;
  1030. -gas | --gas | --ga | --g)
  1031. # Obsolete; use --with-gas.
  1032. with_gas=yes ;;
  1033. -help | --help | --hel | --he | -h)
  1034. ac_init_help=long ;;
  1035. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1036. ac_init_help=recursive ;;
  1037. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1038. ac_init_help=short ;;
  1039. -host | --host | --hos | --ho)
  1040. ac_prev=host_alias ;;
  1041. -host=* | --host=* | --hos=* | --ho=*)
  1042. host_alias=$ac_optarg ;;
  1043. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1044. ac_prev=htmldir ;;
  1045. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1046. | --ht=*)
  1047. htmldir=$ac_optarg ;;
  1048. -includedir | --includedir | --includedi | --included | --include \
  1049. | --includ | --inclu | --incl | --inc)
  1050. ac_prev=includedir ;;
  1051. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1052. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1053. includedir=$ac_optarg ;;
  1054. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1055. ac_prev=infodir ;;
  1056. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1057. infodir=$ac_optarg ;;
  1058. -libdir | --libdir | --libdi | --libd)
  1059. ac_prev=libdir ;;
  1060. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1061. libdir=$ac_optarg ;;
  1062. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1063. | --libexe | --libex | --libe)
  1064. ac_prev=libexecdir ;;
  1065. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1066. | --libexe=* | --libex=* | --libe=*)
  1067. libexecdir=$ac_optarg ;;
  1068. -localedir | --localedir | --localedi | --localed | --locale)
  1069. ac_prev=localedir ;;
  1070. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1071. localedir=$ac_optarg ;;
  1072. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1073. | --localstate | --localstat | --localsta | --localst | --locals)
  1074. ac_prev=localstatedir ;;
  1075. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1076. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1077. localstatedir=$ac_optarg ;;
  1078. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1079. ac_prev=mandir ;;
  1080. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1081. mandir=$ac_optarg ;;
  1082. -nfp | --nfp | --nf)
  1083. # Obsolete; use --without-fp.
  1084. with_fp=no ;;
  1085. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1086. | --no-cr | --no-c | -n)
  1087. no_create=yes ;;
  1088. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1089. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1090. no_recursion=yes ;;
  1091. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1092. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1093. | --oldin | --oldi | --old | --ol | --o)
  1094. ac_prev=oldincludedir ;;
  1095. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1096. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1097. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1098. oldincludedir=$ac_optarg ;;
  1099. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1100. ac_prev=prefix ;;
  1101. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1102. prefix=$ac_optarg ;;
  1103. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1104. | --program-pre | --program-pr | --program-p)
  1105. ac_prev=program_prefix ;;
  1106. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1107. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1108. program_prefix=$ac_optarg ;;
  1109. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1110. | --program-suf | --program-su | --program-s)
  1111. ac_prev=program_suffix ;;
  1112. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1113. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1114. program_suffix=$ac_optarg ;;
  1115. -program-transform-name | --program-transform-name \
  1116. | --program-transform-nam | --program-transform-na \
  1117. | --program-transform-n | --program-transform- \
  1118. | --program-transform | --program-transfor \
  1119. | --program-transfo | --program-transf \
  1120. | --program-trans | --program-tran \
  1121. | --progr-tra | --program-tr | --program-t)
  1122. ac_prev=program_transform_name ;;
  1123. -program-transform-name=* | --program-transform-name=* \
  1124. | --program-transform-nam=* | --program-transform-na=* \
  1125. | --program-transform-n=* | --program-transform-=* \
  1126. | --program-transform=* | --program-transfor=* \
  1127. | --program-transfo=* | --program-transf=* \
  1128. | --program-trans=* | --program-tran=* \
  1129. | --progr-tra=* | --program-tr=* | --program-t=*)
  1130. program_transform_name=$ac_optarg ;;
  1131. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1132. ac_prev=pdfdir ;;
  1133. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1134. pdfdir=$ac_optarg ;;
  1135. -psdir | --psdir | --psdi | --psd | --ps)
  1136. ac_prev=psdir ;;
  1137. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1138. psdir=$ac_optarg ;;
  1139. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1140. | -silent | --silent | --silen | --sile | --sil)
  1141. silent=yes ;;
  1142. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1143. ac_prev=sbindir ;;
  1144. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1145. | --sbi=* | --sb=*)
  1146. sbindir=$ac_optarg ;;
  1147. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1148. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1149. | --sharedst | --shareds | --shared | --share | --shar \
  1150. | --sha | --sh)
  1151. ac_prev=sharedstatedir ;;
  1152. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1153. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1154. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1155. | --sha=* | --sh=*)
  1156. sharedstatedir=$ac_optarg ;;
  1157. -site | --site | --sit)
  1158. ac_prev=site ;;
  1159. -site=* | --site=* | --sit=*)
  1160. site=$ac_optarg ;;
  1161. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1162. ac_prev=srcdir ;;
  1163. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1164. srcdir=$ac_optarg ;;
  1165. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1166. | --syscon | --sysco | --sysc | --sys | --sy)
  1167. ac_prev=sysconfdir ;;
  1168. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1169. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1170. sysconfdir=$ac_optarg ;;
  1171. -target | --target | --targe | --targ | --tar | --ta | --t)
  1172. ac_prev=target_alias ;;
  1173. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1174. target_alias=$ac_optarg ;;
  1175. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1176. verbose=yes ;;
  1177. -version | --version | --versio | --versi | --vers | -V)
  1178. ac_init_version=: ;;
  1179. -with-* | --with-*)
  1180. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1181. # Reject names that are not valid shell variable names.
  1182. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1183. as_fn_error $? "invalid package name: $ac_useropt"
  1184. ac_useropt_orig=$ac_useropt
  1185. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1186. case $ac_user_opts in
  1187. *"
  1188. "with_$ac_useropt"
  1189. "*) ;;
  1190. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1191. ac_unrecognized_sep=', ';;
  1192. esac
  1193. eval with_$ac_useropt=\$ac_optarg ;;
  1194. -without-* | --without-*)
  1195. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1196. # Reject names that are not valid shell variable names.
  1197. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1198. as_fn_error $? "invalid package name: $ac_useropt"
  1199. ac_useropt_orig=$ac_useropt
  1200. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1201. case $ac_user_opts in
  1202. *"
  1203. "with_$ac_useropt"
  1204. "*) ;;
  1205. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1206. ac_unrecognized_sep=', ';;
  1207. esac
  1208. eval with_$ac_useropt=no ;;
  1209. --x)
  1210. # Obsolete; use --with-x.
  1211. with_x=yes ;;
  1212. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1213. | --x-incl | --x-inc | --x-in | --x-i)
  1214. ac_prev=x_includes ;;
  1215. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1216. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1217. x_includes=$ac_optarg ;;
  1218. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1219. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1220. ac_prev=x_libraries ;;
  1221. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1222. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1223. x_libraries=$ac_optarg ;;
  1224. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1225. Try \`$0 --help' for more information"
  1226. ;;
  1227. *=*)
  1228. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1229. # Reject names that are not valid shell variable names.
  1230. case $ac_envvar in #(
  1231. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1232. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1233. esac
  1234. eval $ac_envvar=\$ac_optarg
  1235. export $ac_envvar ;;
  1236. *)
  1237. # FIXME: should be removed in autoconf 3.0.
  1238. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1239. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1240. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1241. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1242. ;;
  1243. esac
  1244. done
  1245. if test -n "$ac_prev"; then
  1246. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1247. as_fn_error $? "missing argument to $ac_option"
  1248. fi
  1249. if test -n "$ac_unrecognized_opts"; then
  1250. case $enable_option_checking in
  1251. no) ;;
  1252. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1253. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1254. esac
  1255. fi
  1256. # Check all directory arguments for consistency.
  1257. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1258. datadir sysconfdir sharedstatedir localstatedir includedir \
  1259. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1260. libdir localedir mandir
  1261. do
  1262. eval ac_val=\$$ac_var
  1263. # Remove trailing slashes.
  1264. case $ac_val in
  1265. */ )
  1266. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1267. eval $ac_var=\$ac_val;;
  1268. esac
  1269. # Be sure to have absolute directory names.
  1270. case $ac_val in
  1271. [\\/$]* | ?:[\\/]* ) continue;;
  1272. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1273. esac
  1274. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1275. done
  1276. # There might be people who depend on the old broken behavior: `$host'
  1277. # used to hold the argument of --host etc.
  1278. # FIXME: To remove some day.
  1279. build=$build_alias
  1280. host=$host_alias
  1281. target=$target_alias
  1282. # FIXME: To remove some day.
  1283. if test "x$host_alias" != x; then
  1284. if test "x$build_alias" = x; then
  1285. cross_compiling=maybe
  1286. elif test "x$build_alias" != "x$host_alias"; then
  1287. cross_compiling=yes
  1288. fi
  1289. fi
  1290. ac_tool_prefix=
  1291. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1292. test "$silent" = yes && exec 6>/dev/null
  1293. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1294. ac_ls_di=`ls -di .` &&
  1295. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1296. as_fn_error $? "working directory cannot be determined"
  1297. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1298. as_fn_error $? "pwd does not report name of working directory"
  1299. # Find the source files, if location was not specified.
  1300. if test -z "$srcdir"; then
  1301. ac_srcdir_defaulted=yes
  1302. # Try the directory containing this script, then the parent directory.
  1303. ac_confdir=`$as_dirname -- "$as_myself" ||
  1304. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1305. X"$as_myself" : 'X\(//\)[^/]' \| \
  1306. X"$as_myself" : 'X\(//\)$' \| \
  1307. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1308. $as_echo X"$as_myself" |
  1309. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1310. s//\1/
  1311. q
  1312. }
  1313. /^X\(\/\/\)[^/].*/{
  1314. s//\1/
  1315. q
  1316. }
  1317. /^X\(\/\/\)$/{
  1318. s//\1/
  1319. q
  1320. }
  1321. /^X\(\/\).*/{
  1322. s//\1/
  1323. q
  1324. }
  1325. s/.*/./; q'`
  1326. srcdir=$ac_confdir
  1327. if test ! -r "$srcdir/$ac_unique_file"; then
  1328. srcdir=..
  1329. fi
  1330. else
  1331. ac_srcdir_defaulted=no
  1332. fi
  1333. if test ! -r "$srcdir/$ac_unique_file"; then
  1334. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1335. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1336. fi
  1337. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1338. ac_abs_confdir=`(
  1339. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1340. pwd)`
  1341. # When building in place, set srcdir=.
  1342. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1343. srcdir=.
  1344. fi
  1345. # Remove unnecessary trailing slashes from srcdir.
  1346. # Double slashes in file names in object file debugging info
  1347. # mess up M-x gdb in Emacs.
  1348. case $srcdir in
  1349. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1350. esac
  1351. for ac_var in $ac_precious_vars; do
  1352. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1353. eval ac_env_${ac_var}_value=\$${ac_var}
  1354. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1355. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1356. done
  1357. #
  1358. # Report the --help message.
  1359. #
  1360. if test "$ac_init_help" = "long"; then
  1361. # Omit some internal or obsolete options to make the list less imposing.
  1362. # This message is too long to be a string in the A/UX 3.1 sh.
  1363. cat <<_ACEOF
  1364. \`configure' configures this package to adapt to many kinds of systems.
  1365. Usage: $0 [OPTION]... [VAR=VALUE]...
  1366. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1367. VAR=VALUE. See below for descriptions of some of the useful variables.
  1368. Defaults for the options are specified in brackets.
  1369. Configuration:
  1370. -h, --help display this help and exit
  1371. --help=short display options specific to this package
  1372. --help=recursive display the short help of all the included packages
  1373. -V, --version display version information and exit
  1374. -q, --quiet, --silent do not print \`checking ...' messages
  1375. --cache-file=FILE cache test results in FILE [disabled]
  1376. -C, --config-cache alias for \`--cache-file=config.cache'
  1377. -n, --no-create do not create output files
  1378. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1379. Installation directories:
  1380. --prefix=PREFIX install architecture-independent files in PREFIX
  1381. [$ac_default_prefix]
  1382. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1383. [PREFIX]
  1384. By default, \`make install' will install all the files in
  1385. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1386. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1387. for instance \`--prefix=\$HOME'.
  1388. For better control, use the options below.
  1389. Fine tuning of the installation directories:
  1390. --bindir=DIR user executables [EPREFIX/bin]
  1391. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1392. --libexecdir=DIR program executables [EPREFIX/libexec]
  1393. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1394. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1395. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1396. --libdir=DIR object code libraries [EPREFIX/lib]
  1397. --includedir=DIR C header files [PREFIX/include]
  1398. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1399. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1400. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1401. --infodir=DIR info documentation [DATAROOTDIR/info]
  1402. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1403. --mandir=DIR man documentation [DATAROOTDIR/man]
  1404. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1405. --htmldir=DIR html documentation [DOCDIR]
  1406. --dvidir=DIR dvi documentation [DOCDIR]
  1407. --pdfdir=DIR pdf documentation [DOCDIR]
  1408. --psdir=DIR ps documentation [DOCDIR]
  1409. _ACEOF
  1410. cat <<\_ACEOF
  1411. X features:
  1412. --x-includes=DIR X include files are in DIR
  1413. --x-libraries=DIR X library files are in DIR
  1414. System types:
  1415. --build=BUILD configure for building on BUILD [guessed]
  1416. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1417. _ACEOF
  1418. fi
  1419. if test -n "$ac_init_help"; then
  1420. cat <<\_ACEOF
  1421. Optional Features:
  1422. --disable-option-checking ignore unrecognized --enable/--with options
  1423. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1424. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1425. --enable-shared[=PKGS] build shared libraries [default=yes]
  1426. --enable-static[=PKGS] build static libraries [default=yes]
  1427. --enable-fast-install[=PKGS]
  1428. optimize for fast installation [default=yes]
  1429. --disable-libtool-lock avoid locking (might break parallel builds)
  1430. --enable-assertions Enable internal sanity checks
  1431. (auto/disabled/release/enabled/paranoid)
  1432. [[default=auto]]
  1433. --enable-dependency-tracking
  1434. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1435. --enable-libc Use the system C library [[default=yes]]
  1436. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1437. --enable-atomic Enable the atomic operations subsystem
  1438. [[default=yes]]
  1439. --enable-audio Enable the audio subsystem [[default=yes]]
  1440. --enable-video Enable the video subsystem [[default=yes]]
  1441. --enable-render Enable the render subsystem [[default=yes]]
  1442. --enable-events Enable the events subsystem [[default=yes]]
  1443. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1444. --enable-haptic Enable the haptic (force feedback) subsystem
  1445. [[default=yes]]
  1446. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1447. --enable-power Enable the power subsystem [[default=yes]]
  1448. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1449. --enable-threads Enable the threading subsystem [[default=yes]]
  1450. --enable-timers Enable the timer subsystem [[default=yes]]
  1451. --enable-file Enable the file subsystem [[default=yes]]
  1452. --enable-loadso Enable the shared object loading subsystem
  1453. [[default=yes]]
  1454. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1455. --enable-assembly Enable assembly routines [[default=yes]]
  1456. --enable-ssemath Allow GCC to use SSE floating point math
  1457. [[default=maybe]]
  1458. --enable-mmx use MMX assembly routines [[default=yes]]
  1459. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1460. --enable-sse use SSE assembly routines [[default=yes]]
  1461. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1462. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1463. --enable-altivec use Altivec assembly routines [[default=yes]]
  1464. --enable-oss support the OSS audio API [[default=maybe]]
  1465. --enable-alsa support the ALSA audio API [[default=yes]]
  1466. --disable-alsatest Do not try to compile and run a test Alsa program
  1467. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1468. --enable-jack use JACK audio [[default=yes]]
  1469. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1470. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1471. --disable-esdtest Do not try to compile and run a test ESD program
  1472. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1473. --enable-pulseaudio use PulseAudio [[default=yes]]
  1474. --enable-pulseaudio-shared
  1475. dynamically load PulseAudio support [[default=yes]]
  1476. --enable-arts support the Analog Real Time Synthesizer
  1477. [[default=yes]]
  1478. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1479. --enable-nas support the NAS audio API [[default=yes]]
  1480. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1481. --enable-sndio support the sndio audio API [[default=yes]]
  1482. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1483. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1484. --enable-fusionsound-shared
  1485. dynamically load fusionsound audio support
  1486. [[default=yes]]
  1487. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1488. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1489. --enable-libsamplerate use libsamplerate for audio rate conversion
  1490. [[default=yes]]
  1491. --enable-libsamplerate-shared
  1492. dynamically load libsamplerate [[default=yes]]
  1493. --enable-arm-simd use SIMD assembly blitters on ARM [[default=yes]]
  1494. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1495. --enable-video-wayland use Wayland video driver [[default=yes]]
  1496. --enable-video-wayland-qt-touch
  1497. QtWayland server support for Wayland video driver
  1498. [[default=yes]]
  1499. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1500. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1501. --enable-video-x11 use X11 video driver [[default=yes]]
  1502. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1503. --enable-video-x11-xcursor
  1504. enable X11 Xcursor support [[default=yes]]
  1505. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1506. --enable-video-x11-xinerama
  1507. enable X11 Xinerama support [[default=yes]]
  1508. --enable-video-x11-xinput
  1509. enable X11 XInput extension for manymouse, tablets,
  1510. etc [[default=yes]]
  1511. --enable-video-x11-xrandr
  1512. enable X11 Xrandr extension for fullscreen
  1513. [[default=yes]]
  1514. --enable-video-x11-scrnsaver
  1515. enable X11 screensaver extension [[default=yes]]
  1516. --enable-video-x11-xshape
  1517. enable X11 XShape support [[default=yes]]
  1518. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1519. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1520. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1521. --enable-video-metal include Metal support [[default=yes]]
  1522. --enable-render-metal enable the Metal render driver [[default=yes]]
  1523. --enable-video-directfb use DirectFB video driver [[default=no]]
  1524. --enable-directfb-shared
  1525. dynamically load directfb support [[default=yes]]
  1526. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1527. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1528. --enable-video-dummy use dummy video driver [[default=yes]]
  1529. --enable-video-opengl include OpenGL support [[default=yes]]
  1530. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1531. --enable-video-opengles1
  1532. include OpenGL ES 1.1 support [[default=yes]]
  1533. --enable-video-opengles2
  1534. include OpenGL ES 2.0 support [[default=yes]]
  1535. --enable-video-vulkan include Vulkan support [[default=yes]]
  1536. --enable-libudev enable libudev support [[default=yes]]
  1537. --enable-dbus enable D-Bus support [[default=yes]]
  1538. --enable-ime enable IME support [[default=yes]]
  1539. --enable-ibus enable IBus support [[default=yes]]
  1540. --enable-fcitx enable fcitx support [[default=yes]]
  1541. --enable-input-tslib use the Touchscreen library for input
  1542. [[default=yes]]
  1543. --enable-pthreads use POSIX threads for multi-threading
  1544. [[default=yes]]
  1545. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1546. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1547. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1548. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1549. --enable-hidapi use HIDAPI for low level joystick drivers
  1550. [[default=no]]
  1551. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1552. UNIX [[default=yes]]
  1553. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1554. --enable-backgrounding-signal
  1555. number to use for magic backgrounding signal or 'no'
  1556. [[default=no]]
  1557. --enable-foregrounding-signal
  1558. number to use for magic foregrounding signal or 'no'
  1559. [[default=no]]
  1560. --enable-joystick-virtual
  1561. enable virtual joystick APIs [[default=no]]
  1562. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1563. --enable-sdl2-config Install sdl2-config [default=yes]
  1564. Optional Packages:
  1565. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1566. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1567. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1568. both]
  1569. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1570. --with-sysroot=DIR Search for dependent libraries within DIR
  1571. (or the compiler's sysroot if not specified).
  1572. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1573. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1574. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1575. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1576. --with-x use the X Window System
  1577. Some influential environment variables:
  1578. CC C compiler command
  1579. CFLAGS C compiler flags
  1580. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1581. nonstandard directory <lib dir>
  1582. LIBS libraries to pass to the linker, e.g. -l<library>
  1583. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1584. you have headers in a nonstandard directory <include dir>
  1585. CPP C preprocessor
  1586. CXX C++ compiler command
  1587. CXXFLAGS C++ compiler flags
  1588. CXXCPP C++ preprocessor
  1589. PKG_CONFIG path to pkg-config utility
  1590. PKG_CONFIG_PATH
  1591. directories to add to pkg-config's search path
  1592. PKG_CONFIG_LIBDIR
  1593. path overriding pkg-config's built-in search path
  1594. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1595. JACK_LIBS linker flags for JACK, overriding pkg-config
  1596. PULSEAUDIO_CFLAGS
  1597. C compiler flags for PULSEAUDIO, overriding pkg-config
  1598. PULSEAUDIO_LIBS
  1599. linker flags for PULSEAUDIO, overriding pkg-config
  1600. FUSIONSOUND_CFLAGS
  1601. C compiler flags for FUSIONSOUND, overriding pkg-config
  1602. FUSIONSOUND_LIBS
  1603. linker flags for FUSIONSOUND, overriding pkg-config
  1604. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1605. RPI_LIBS linker flags for RPI, overriding pkg-config
  1606. XMKMF Path to xmkmf, Makefile generator for X Window System
  1607. DIRECTFB_CFLAGS
  1608. C compiler flags for DIRECTFB, overriding pkg-config
  1609. DIRECTFB_LIBS
  1610. linker flags for DIRECTFB, overriding pkg-config
  1611. LIBDRM_CFLAGS
  1612. C compiler flags for LIBDRM, overriding pkg-config
  1613. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1614. LIBGBM_CFLAGS
  1615. C compiler flags for LIBGBM, overriding pkg-config
  1616. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1617. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1618. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1619. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1620. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1621. FCITX_CFLAGS
  1622. C compiler flags for FCITX, overriding pkg-config
  1623. FCITX_LIBS linker flags for FCITX, overriding pkg-config
  1624. LIBUSB_CFLAGS
  1625. C compiler flags for LIBUSB, overriding pkg-config
  1626. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1627. Use these variables to override the choices made by `configure' or to help
  1628. it to find libraries and programs with nonstandard names/locations.
  1629. Report bugs to the package provider.
  1630. _ACEOF
  1631. ac_status=$?
  1632. fi
  1633. if test "$ac_init_help" = "recursive"; then
  1634. # If there are subdirs, report their specific --help.
  1635. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1636. test -d "$ac_dir" ||
  1637. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1638. continue
  1639. ac_builddir=.
  1640. case "$ac_dir" in
  1641. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1642. *)
  1643. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1644. # A ".." for each directory in $ac_dir_suffix.
  1645. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1646. case $ac_top_builddir_sub in
  1647. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1648. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1649. esac ;;
  1650. esac
  1651. ac_abs_top_builddir=$ac_pwd
  1652. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1653. # for backward compatibility:
  1654. ac_top_builddir=$ac_top_build_prefix
  1655. case $srcdir in
  1656. .) # We are building in place.
  1657. ac_srcdir=.
  1658. ac_top_srcdir=$ac_top_builddir_sub
  1659. ac_abs_top_srcdir=$ac_pwd ;;
  1660. [\\/]* | ?:[\\/]* ) # Absolute name.
  1661. ac_srcdir=$srcdir$ac_dir_suffix;
  1662. ac_top_srcdir=$srcdir
  1663. ac_abs_top_srcdir=$srcdir ;;
  1664. *) # Relative name.
  1665. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1666. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1667. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1668. esac
  1669. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1670. cd "$ac_dir" || { ac_status=$?; continue; }
  1671. # Check for guested configure.
  1672. if test -f "$ac_srcdir/configure.gnu"; then
  1673. echo &&
  1674. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1675. elif test -f "$ac_srcdir/configure"; then
  1676. echo &&
  1677. $SHELL "$ac_srcdir/configure" --help=recursive
  1678. else
  1679. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1680. fi || ac_status=$?
  1681. cd "$ac_pwd" || { ac_status=$?; break; }
  1682. done
  1683. fi
  1684. test -n "$ac_init_help" && exit $ac_status
  1685. if $ac_init_version; then
  1686. cat <<\_ACEOF
  1687. configure
  1688. generated by GNU Autoconf 2.69
  1689. Copyright (C) 2012 Free Software Foundation, Inc.
  1690. This configure script is free software; the Free Software Foundation
  1691. gives unlimited permission to copy, distribute and modify it.
  1692. _ACEOF
  1693. exit
  1694. fi
  1695. ## ------------------------ ##
  1696. ## Autoconf initialization. ##
  1697. ## ------------------------ ##
  1698. # ac_fn_c_try_compile LINENO
  1699. # --------------------------
  1700. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1701. ac_fn_c_try_compile ()
  1702. {
  1703. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1704. rm -f conftest.$ac_objext
  1705. if { { ac_try="$ac_compile"
  1706. case "(($ac_try" in
  1707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1708. *) ac_try_echo=$ac_try;;
  1709. esac
  1710. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1711. $as_echo "$ac_try_echo"; } >&5
  1712. (eval "$ac_compile") 2>conftest.err
  1713. ac_status=$?
  1714. if test -s conftest.err; then
  1715. grep -v '^ *+' conftest.err >conftest.er1
  1716. cat conftest.er1 >&5
  1717. mv -f conftest.er1 conftest.err
  1718. fi
  1719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1720. test $ac_status = 0; } && {
  1721. test -z "$ac_c_werror_flag" ||
  1722. test ! -s conftest.err
  1723. } && test -s conftest.$ac_objext; then :
  1724. ac_retval=0
  1725. else
  1726. $as_echo "$as_me: failed program was:" >&5
  1727. sed 's/^/| /' conftest.$ac_ext >&5
  1728. ac_retval=1
  1729. fi
  1730. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1731. as_fn_set_status $ac_retval
  1732. } # ac_fn_c_try_compile
  1733. # ac_fn_c_try_link LINENO
  1734. # -----------------------
  1735. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1736. ac_fn_c_try_link ()
  1737. {
  1738. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1739. rm -f conftest.$ac_objext conftest$ac_exeext
  1740. if { { ac_try="$ac_link"
  1741. case "(($ac_try" in
  1742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1743. *) ac_try_echo=$ac_try;;
  1744. esac
  1745. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1746. $as_echo "$ac_try_echo"; } >&5
  1747. (eval "$ac_link") 2>conftest.err
  1748. ac_status=$?
  1749. if test -s conftest.err; then
  1750. grep -v '^ *+' conftest.err >conftest.er1
  1751. cat conftest.er1 >&5
  1752. mv -f conftest.er1 conftest.err
  1753. fi
  1754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1755. test $ac_status = 0; } && {
  1756. test -z "$ac_c_werror_flag" ||
  1757. test ! -s conftest.err
  1758. } && test -s conftest$ac_exeext && {
  1759. test "$cross_compiling" = yes ||
  1760. test -x conftest$ac_exeext
  1761. }; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1769. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1770. # interfere with the next link command; also delete a directory that is
  1771. # left behind by Apple's compiler. We do this before executing the actions.
  1772. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1773. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1774. as_fn_set_status $ac_retval
  1775. } # ac_fn_c_try_link
  1776. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1777. # -------------------------------------------------------
  1778. # Tests whether HEADER exists and can be compiled using the include files in
  1779. # INCLUDES, setting the cache variable VAR accordingly.
  1780. ac_fn_c_check_header_compile ()
  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. $4
  1791. #include <$2>
  1792. _ACEOF
  1793. if ac_fn_c_try_compile "$LINENO"; then :
  1794. eval "$3=yes"
  1795. else
  1796. eval "$3=no"
  1797. fi
  1798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1799. fi
  1800. eval ac_res=\$$3
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1802. $as_echo "$ac_res" >&6; }
  1803. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1804. } # ac_fn_c_check_header_compile
  1805. # ac_fn_c_try_cpp LINENO
  1806. # ----------------------
  1807. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1808. ac_fn_c_try_cpp ()
  1809. {
  1810. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1811. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1812. case "(($ac_try" in
  1813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1814. *) ac_try_echo=$ac_try;;
  1815. esac
  1816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1817. $as_echo "$ac_try_echo"; } >&5
  1818. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1819. ac_status=$?
  1820. if test -s conftest.err; then
  1821. grep -v '^ *+' conftest.err >conftest.er1
  1822. cat conftest.er1 >&5
  1823. mv -f conftest.er1 conftest.err
  1824. fi
  1825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1826. test $ac_status = 0; } > conftest.i && {
  1827. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1828. test ! -s conftest.err
  1829. }; then :
  1830. ac_retval=0
  1831. else
  1832. $as_echo "$as_me: failed program was:" >&5
  1833. sed 's/^/| /' conftest.$ac_ext >&5
  1834. ac_retval=1
  1835. fi
  1836. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1837. as_fn_set_status $ac_retval
  1838. } # ac_fn_c_try_cpp
  1839. # ac_fn_c_try_run LINENO
  1840. # ----------------------
  1841. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1842. # that executables *can* be run.
  1843. ac_fn_c_try_run ()
  1844. {
  1845. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1846. if { { ac_try="$ac_link"
  1847. case "(($ac_try" in
  1848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1849. *) ac_try_echo=$ac_try;;
  1850. esac
  1851. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1852. $as_echo "$ac_try_echo"; } >&5
  1853. (eval "$ac_link") 2>&5
  1854. ac_status=$?
  1855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1856. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1857. { { case "(($ac_try" in
  1858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1859. *) ac_try_echo=$ac_try;;
  1860. esac
  1861. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1862. $as_echo "$ac_try_echo"; } >&5
  1863. (eval "$ac_try") 2>&5
  1864. ac_status=$?
  1865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1866. test $ac_status = 0; }; }; then :
  1867. ac_retval=0
  1868. else
  1869. $as_echo "$as_me: program exited with status $ac_status" >&5
  1870. $as_echo "$as_me: failed program was:" >&5
  1871. sed 's/^/| /' conftest.$ac_ext >&5
  1872. ac_retval=$ac_status
  1873. fi
  1874. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1875. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1876. as_fn_set_status $ac_retval
  1877. } # ac_fn_c_try_run
  1878. # ac_fn_c_check_func LINENO FUNC VAR
  1879. # ----------------------------------
  1880. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1881. ac_fn_c_check_func ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1885. $as_echo_n "checking for $2... " >&6; }
  1886. if eval \${$3+:} false; then :
  1887. $as_echo_n "(cached) " >&6
  1888. else
  1889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1890. /* end confdefs.h. */
  1891. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1892. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1893. #define $2 innocuous_$2
  1894. /* System header to define __stub macros and hopefully few prototypes,
  1895. which can conflict with char $2 (); below.
  1896. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1897. <limits.h> exists even on freestanding compilers. */
  1898. #ifdef __STDC__
  1899. # include <limits.h>
  1900. #else
  1901. # include <assert.h>
  1902. #endif
  1903. #undef $2
  1904. /* Override any GCC internal prototype to avoid an error.
  1905. Use char because int might match the return type of a GCC
  1906. builtin and then its argument prototype would still apply. */
  1907. #ifdef __cplusplus
  1908. extern "C"
  1909. #endif
  1910. char $2 ();
  1911. /* The GNU C library defines this for functions which it implements
  1912. to always fail with ENOSYS. Some functions are actually named
  1913. something starting with __ and the normal name is an alias. */
  1914. #if defined __stub_$2 || defined __stub___$2
  1915. choke me
  1916. #endif
  1917. int
  1918. main ()
  1919. {
  1920. return $2 ();
  1921. ;
  1922. return 0;
  1923. }
  1924. _ACEOF
  1925. if ac_fn_c_try_link "$LINENO"; then :
  1926. eval "$3=yes"
  1927. else
  1928. eval "$3=no"
  1929. fi
  1930. rm -f core conftest.err conftest.$ac_objext \
  1931. conftest$ac_exeext conftest.$ac_ext
  1932. fi
  1933. eval ac_res=\$$3
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1935. $as_echo "$ac_res" >&6; }
  1936. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1937. } # ac_fn_c_check_func
  1938. # ac_fn_cxx_try_compile LINENO
  1939. # ----------------------------
  1940. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1941. ac_fn_cxx_try_compile ()
  1942. {
  1943. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1944. rm -f conftest.$ac_objext
  1945. if { { ac_try="$ac_compile"
  1946. case "(($ac_try" in
  1947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1948. *) ac_try_echo=$ac_try;;
  1949. esac
  1950. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1951. $as_echo "$ac_try_echo"; } >&5
  1952. (eval "$ac_compile") 2>conftest.err
  1953. ac_status=$?
  1954. if test -s conftest.err; then
  1955. grep -v '^ *+' conftest.err >conftest.er1
  1956. cat conftest.er1 >&5
  1957. mv -f conftest.er1 conftest.err
  1958. fi
  1959. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1960. test $ac_status = 0; } && {
  1961. test -z "$ac_cxx_werror_flag" ||
  1962. test ! -s conftest.err
  1963. } && test -s conftest.$ac_objext; then :
  1964. ac_retval=0
  1965. else
  1966. $as_echo "$as_me: failed program was:" >&5
  1967. sed 's/^/| /' conftest.$ac_ext >&5
  1968. ac_retval=1
  1969. fi
  1970. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1971. as_fn_set_status $ac_retval
  1972. } # ac_fn_cxx_try_compile
  1973. # ac_fn_cxx_try_cpp LINENO
  1974. # ------------------------
  1975. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1976. ac_fn_cxx_try_cpp ()
  1977. {
  1978. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1979. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1980. case "(($ac_try" in
  1981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1982. *) ac_try_echo=$ac_try;;
  1983. esac
  1984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1985. $as_echo "$ac_try_echo"; } >&5
  1986. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1987. ac_status=$?
  1988. if test -s conftest.err; then
  1989. grep -v '^ *+' conftest.err >conftest.er1
  1990. cat conftest.er1 >&5
  1991. mv -f conftest.er1 conftest.err
  1992. fi
  1993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1994. test $ac_status = 0; } > conftest.i && {
  1995. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1996. test ! -s conftest.err
  1997. }; then :
  1998. ac_retval=0
  1999. else
  2000. $as_echo "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. ac_retval=1
  2003. fi
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. as_fn_set_status $ac_retval
  2006. } # ac_fn_cxx_try_cpp
  2007. # ac_fn_cxx_try_link LINENO
  2008. # -------------------------
  2009. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2010. ac_fn_cxx_try_link ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. rm -f conftest.$ac_objext conftest$ac_exeext
  2014. if { { ac_try="$ac_link"
  2015. case "(($ac_try" in
  2016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2017. *) ac_try_echo=$ac_try;;
  2018. esac
  2019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2020. $as_echo "$ac_try_echo"; } >&5
  2021. (eval "$ac_link") 2>conftest.err
  2022. ac_status=$?
  2023. if test -s conftest.err; then
  2024. grep -v '^ *+' conftest.err >conftest.er1
  2025. cat conftest.er1 >&5
  2026. mv -f conftest.er1 conftest.err
  2027. fi
  2028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2029. test $ac_status = 0; } && {
  2030. test -z "$ac_cxx_werror_flag" ||
  2031. test ! -s conftest.err
  2032. } && test -s conftest$ac_exeext && {
  2033. test "$cross_compiling" = yes ||
  2034. test -x conftest$ac_exeext
  2035. }; then :
  2036. ac_retval=0
  2037. else
  2038. $as_echo "$as_me: failed program was:" >&5
  2039. sed 's/^/| /' conftest.$ac_ext >&5
  2040. ac_retval=1
  2041. fi
  2042. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2043. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2044. # interfere with the next link command; also delete a directory that is
  2045. # left behind by Apple's compiler. We do this before executing the actions.
  2046. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2047. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2048. as_fn_set_status $ac_retval
  2049. } # ac_fn_cxx_try_link
  2050. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2051. # -------------------------------------------------------
  2052. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2053. # the include files in INCLUDES and setting the cache variable VAR
  2054. # accordingly.
  2055. ac_fn_c_check_header_mongrel ()
  2056. {
  2057. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2058. if eval \${$3+:} false; then :
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2060. $as_echo_n "checking for $2... " >&6; }
  2061. if eval \${$3+:} false; then :
  2062. $as_echo_n "(cached) " >&6
  2063. fi
  2064. eval ac_res=\$$3
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2066. $as_echo "$ac_res" >&6; }
  2067. else
  2068. # Is the header compilable?
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2070. $as_echo_n "checking $2 usability... " >&6; }
  2071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2072. /* end confdefs.h. */
  2073. $4
  2074. #include <$2>
  2075. _ACEOF
  2076. if ac_fn_c_try_compile "$LINENO"; then :
  2077. ac_header_compiler=yes
  2078. else
  2079. ac_header_compiler=no
  2080. fi
  2081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2083. $as_echo "$ac_header_compiler" >&6; }
  2084. # Is the header present?
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2086. $as_echo_n "checking $2 presence... " >&6; }
  2087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2088. /* end confdefs.h. */
  2089. #include <$2>
  2090. _ACEOF
  2091. if ac_fn_c_try_cpp "$LINENO"; then :
  2092. ac_header_preproc=yes
  2093. else
  2094. ac_header_preproc=no
  2095. fi
  2096. rm -f conftest.err conftest.i conftest.$ac_ext
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2098. $as_echo "$ac_header_preproc" >&6; }
  2099. # So? What about this header?
  2100. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2101. yes:no: )
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2103. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2105. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2106. ;;
  2107. no:yes:* )
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2109. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2111. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2113. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2115. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2117. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2118. ;;
  2119. esac
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2121. $as_echo_n "checking for $2... " >&6; }
  2122. if eval \${$3+:} false; then :
  2123. $as_echo_n "(cached) " >&6
  2124. else
  2125. eval "$3=\$ac_header_compiler"
  2126. fi
  2127. eval ac_res=\$$3
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2129. $as_echo "$ac_res" >&6; }
  2130. fi
  2131. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2132. } # ac_fn_c_check_header_mongrel
  2133. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2134. # -------------------------------------------
  2135. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2136. # variable VAR accordingly.
  2137. ac_fn_c_check_type ()
  2138. {
  2139. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2141. $as_echo_n "checking for $2... " >&6; }
  2142. if eval \${$3+:} false; then :
  2143. $as_echo_n "(cached) " >&6
  2144. else
  2145. eval "$3=no"
  2146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2147. /* end confdefs.h. */
  2148. $4
  2149. int
  2150. main ()
  2151. {
  2152. if (sizeof ($2))
  2153. return 0;
  2154. ;
  2155. return 0;
  2156. }
  2157. _ACEOF
  2158. if ac_fn_c_try_compile "$LINENO"; then :
  2159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2160. /* end confdefs.h. */
  2161. $4
  2162. int
  2163. main ()
  2164. {
  2165. if (sizeof (($2)))
  2166. return 0;
  2167. ;
  2168. return 0;
  2169. }
  2170. _ACEOF
  2171. if ac_fn_c_try_compile "$LINENO"; then :
  2172. else
  2173. eval "$3=yes"
  2174. fi
  2175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2176. fi
  2177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2178. fi
  2179. eval ac_res=\$$3
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2181. $as_echo "$ac_res" >&6; }
  2182. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2183. } # ac_fn_c_check_type
  2184. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2185. # ----------------------------------------------------
  2186. # Tries to find if the field MEMBER exists in type AGGR, after including
  2187. # INCLUDES, setting cache variable VAR accordingly.
  2188. ac_fn_c_check_member ()
  2189. {
  2190. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2192. $as_echo_n "checking for $2.$3... " >&6; }
  2193. if eval \${$4+:} false; then :
  2194. $as_echo_n "(cached) " >&6
  2195. else
  2196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2197. /* end confdefs.h. */
  2198. $5
  2199. int
  2200. main ()
  2201. {
  2202. static $2 ac_aggr;
  2203. if (ac_aggr.$3)
  2204. return 0;
  2205. ;
  2206. return 0;
  2207. }
  2208. _ACEOF
  2209. if ac_fn_c_try_compile "$LINENO"; then :
  2210. eval "$4=yes"
  2211. else
  2212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2213. /* end confdefs.h. */
  2214. $5
  2215. int
  2216. main ()
  2217. {
  2218. static $2 ac_aggr;
  2219. if (sizeof ac_aggr.$3)
  2220. return 0;
  2221. ;
  2222. return 0;
  2223. }
  2224. _ACEOF
  2225. if ac_fn_c_try_compile "$LINENO"; then :
  2226. eval "$4=yes"
  2227. else
  2228. eval "$4=no"
  2229. fi
  2230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2231. fi
  2232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2233. fi
  2234. eval ac_res=\$$4
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2236. $as_echo "$ac_res" >&6; }
  2237. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2238. } # ac_fn_c_check_member
  2239. cat >config.log <<_ACEOF
  2240. This file contains any messages produced by compilers while
  2241. running configure, to aid debugging if configure makes a mistake.
  2242. It was created by $as_me, which was
  2243. generated by GNU Autoconf 2.69. Invocation command line was
  2244. $ $0 $@
  2245. _ACEOF
  2246. exec 5>>config.log
  2247. {
  2248. cat <<_ASUNAME
  2249. ## --------- ##
  2250. ## Platform. ##
  2251. ## --------- ##
  2252. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2253. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2254. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2255. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2256. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2257. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2258. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2259. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2260. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2261. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2262. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2263. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2264. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2265. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2266. _ASUNAME
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. $as_echo "PATH: $as_dir"
  2273. done
  2274. IFS=$as_save_IFS
  2275. } >&5
  2276. cat >&5 <<_ACEOF
  2277. ## ----------- ##
  2278. ## Core tests. ##
  2279. ## ----------- ##
  2280. _ACEOF
  2281. # Keep a trace of the command line.
  2282. # Strip out --no-create and --no-recursion so they do not pile up.
  2283. # Strip out --silent because we don't want to record it for future runs.
  2284. # Also quote any args containing shell meta-characters.
  2285. # Make two passes to allow for proper duplicate-argument suppression.
  2286. ac_configure_args=
  2287. ac_configure_args0=
  2288. ac_configure_args1=
  2289. ac_must_keep_next=false
  2290. for ac_pass in 1 2
  2291. do
  2292. for ac_arg
  2293. do
  2294. case $ac_arg in
  2295. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2296. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2297. | -silent | --silent | --silen | --sile | --sil)
  2298. continue ;;
  2299. *\'*)
  2300. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2301. esac
  2302. case $ac_pass in
  2303. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2304. 2)
  2305. as_fn_append ac_configure_args1 " '$ac_arg'"
  2306. if test $ac_must_keep_next = true; then
  2307. ac_must_keep_next=false # Got value, back to normal.
  2308. else
  2309. case $ac_arg in
  2310. *=* | --config-cache | -C | -disable-* | --disable-* \
  2311. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2312. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2313. | -with-* | --with-* | -without-* | --without-* | --x)
  2314. case "$ac_configure_args0 " in
  2315. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2316. esac
  2317. ;;
  2318. -* ) ac_must_keep_next=true ;;
  2319. esac
  2320. fi
  2321. as_fn_append ac_configure_args " '$ac_arg'"
  2322. ;;
  2323. esac
  2324. done
  2325. done
  2326. { ac_configure_args0=; unset ac_configure_args0;}
  2327. { ac_configure_args1=; unset ac_configure_args1;}
  2328. # When interrupted or exit'd, cleanup temporary files, and complete
  2329. # config.log. We remove comments because anyway the quotes in there
  2330. # would cause problems or look ugly.
  2331. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2332. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2333. trap 'exit_status=$?
  2334. # Save into config.log some information that might help in debugging.
  2335. {
  2336. echo
  2337. $as_echo "## ---------------- ##
  2338. ## Cache variables. ##
  2339. ## ---------------- ##"
  2340. echo
  2341. # The following way of writing the cache mishandles newlines in values,
  2342. (
  2343. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2344. eval ac_val=\$$ac_var
  2345. case $ac_val in #(
  2346. *${as_nl}*)
  2347. case $ac_var in #(
  2348. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2349. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2350. esac
  2351. case $ac_var in #(
  2352. _ | IFS | as_nl) ;; #(
  2353. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2354. *) { eval $ac_var=; unset $ac_var;} ;;
  2355. esac ;;
  2356. esac
  2357. done
  2358. (set) 2>&1 |
  2359. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2360. *${as_nl}ac_space=\ *)
  2361. sed -n \
  2362. "s/'\''/'\''\\\\'\'''\''/g;
  2363. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2364. ;; #(
  2365. *)
  2366. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2367. ;;
  2368. esac |
  2369. sort
  2370. )
  2371. echo
  2372. $as_echo "## ----------------- ##
  2373. ## Output variables. ##
  2374. ## ----------------- ##"
  2375. echo
  2376. for ac_var in $ac_subst_vars
  2377. do
  2378. eval ac_val=\$$ac_var
  2379. case $ac_val in
  2380. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2381. esac
  2382. $as_echo "$ac_var='\''$ac_val'\''"
  2383. done | sort
  2384. echo
  2385. if test -n "$ac_subst_files"; then
  2386. $as_echo "## ------------------- ##
  2387. ## File substitutions. ##
  2388. ## ------------------- ##"
  2389. echo
  2390. for ac_var in $ac_subst_files
  2391. do
  2392. eval ac_val=\$$ac_var
  2393. case $ac_val in
  2394. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2395. esac
  2396. $as_echo "$ac_var='\''$ac_val'\''"
  2397. done | sort
  2398. echo
  2399. fi
  2400. if test -s confdefs.h; then
  2401. $as_echo "## ----------- ##
  2402. ## confdefs.h. ##
  2403. ## ----------- ##"
  2404. echo
  2405. cat confdefs.h
  2406. echo
  2407. fi
  2408. test "$ac_signal" != 0 &&
  2409. $as_echo "$as_me: caught signal $ac_signal"
  2410. $as_echo "$as_me: exit $exit_status"
  2411. } >&5
  2412. rm -f core *.core core.conftest.* &&
  2413. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2414. exit $exit_status
  2415. ' 0
  2416. for ac_signal in 1 2 13 15; do
  2417. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2418. done
  2419. ac_signal=0
  2420. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2421. rm -f -r conftest* confdefs.h
  2422. $as_echo "/* confdefs.h */" > confdefs.h
  2423. # Predefined preprocessor variables.
  2424. cat >>confdefs.h <<_ACEOF
  2425. #define PACKAGE_NAME "$PACKAGE_NAME"
  2426. _ACEOF
  2427. cat >>confdefs.h <<_ACEOF
  2428. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2429. _ACEOF
  2430. cat >>confdefs.h <<_ACEOF
  2431. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2432. _ACEOF
  2433. cat >>confdefs.h <<_ACEOF
  2434. #define PACKAGE_STRING "$PACKAGE_STRING"
  2435. _ACEOF
  2436. cat >>confdefs.h <<_ACEOF
  2437. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2438. _ACEOF
  2439. cat >>confdefs.h <<_ACEOF
  2440. #define PACKAGE_URL "$PACKAGE_URL"
  2441. _ACEOF
  2442. # Let the site file select an alternate cache file if it wants to.
  2443. # Prefer an explicitly selected file to automatically selected ones.
  2444. ac_site_file1=NONE
  2445. ac_site_file2=NONE
  2446. if test -n "$CONFIG_SITE"; then
  2447. # We do not want a PATH search for config.site.
  2448. case $CONFIG_SITE in #((
  2449. -*) ac_site_file1=./$CONFIG_SITE;;
  2450. */*) ac_site_file1=$CONFIG_SITE;;
  2451. *) ac_site_file1=./$CONFIG_SITE;;
  2452. esac
  2453. elif test "x$prefix" != xNONE; then
  2454. ac_site_file1=$prefix/share/config.site
  2455. ac_site_file2=$prefix/etc/config.site
  2456. else
  2457. ac_site_file1=$ac_default_prefix/share/config.site
  2458. ac_site_file2=$ac_default_prefix/etc/config.site
  2459. fi
  2460. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2461. do
  2462. test "x$ac_site_file" = xNONE && continue
  2463. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2465. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2466. sed 's/^/| /' "$ac_site_file" >&5
  2467. . "$ac_site_file" \
  2468. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2470. as_fn_error $? "failed to load site script $ac_site_file
  2471. See \`config.log' for more details" "$LINENO" 5; }
  2472. fi
  2473. done
  2474. if test -r "$cache_file"; then
  2475. # Some versions of bash will fail to source /dev/null (special files
  2476. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2477. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2479. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2480. case $cache_file in
  2481. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2482. *) . "./$cache_file";;
  2483. esac
  2484. fi
  2485. else
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2487. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2488. >$cache_file
  2489. fi
  2490. # Check that the precious variables saved in the cache have kept the same
  2491. # value.
  2492. ac_cache_corrupted=false
  2493. for ac_var in $ac_precious_vars; do
  2494. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2495. eval ac_new_set=\$ac_env_${ac_var}_set
  2496. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2497. eval ac_new_val=\$ac_env_${ac_var}_value
  2498. case $ac_old_set,$ac_new_set in
  2499. set,)
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2501. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2502. ac_cache_corrupted=: ;;
  2503. ,set)
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2505. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2506. ac_cache_corrupted=: ;;
  2507. ,);;
  2508. *)
  2509. if test "x$ac_old_val" != "x$ac_new_val"; then
  2510. # differences in whitespace do not lead to failure.
  2511. ac_old_val_w=`echo x $ac_old_val`
  2512. ac_new_val_w=`echo x $ac_new_val`
  2513. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2515. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2516. ac_cache_corrupted=:
  2517. else
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2519. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2520. eval $ac_var=\$ac_old_val
  2521. fi
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2523. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2525. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2526. fi;;
  2527. esac
  2528. # Pass precious variables to config.status.
  2529. if test "$ac_new_set" = set; then
  2530. case $ac_new_val in
  2531. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2532. *) ac_arg=$ac_var=$ac_new_val ;;
  2533. esac
  2534. case " $ac_configure_args " in
  2535. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2536. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2537. esac
  2538. fi
  2539. done
  2540. if $ac_cache_corrupted; then
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2542. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2544. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2545. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2546. fi
  2547. ## -------------------- ##
  2548. ## Main body of script. ##
  2549. ## -------------------- ##
  2550. ac_ext=c
  2551. ac_cpp='$CPP $CPPFLAGS'
  2552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2555. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2556. ac_aux_dir=
  2557. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2558. if test -f "$ac_dir/install-sh"; then
  2559. ac_aux_dir=$ac_dir
  2560. ac_install_sh="$ac_aux_dir/install-sh -c"
  2561. break
  2562. elif test -f "$ac_dir/install.sh"; then
  2563. ac_aux_dir=$ac_dir
  2564. ac_install_sh="$ac_aux_dir/install.sh -c"
  2565. break
  2566. elif test -f "$ac_dir/shtool"; then
  2567. ac_aux_dir=$ac_dir
  2568. ac_install_sh="$ac_aux_dir/shtool install -c"
  2569. break
  2570. fi
  2571. done
  2572. if test -z "$ac_aux_dir"; then
  2573. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2574. fi
  2575. # These three variables are undocumented and unsupported,
  2576. # and are intended to be withdrawn in a future Autoconf release.
  2577. # They can cause serious problems if a builder's source tree is in a directory
  2578. # whose full name contains unusual characters.
  2579. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2580. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2581. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2582. orig_CFLAGS="$CFLAGS"
  2583. #
  2584. # Making releases:
  2585. # Edit include/SDL_version.h and change the version, then:
  2586. # SDL_MICRO_VERSION += 1;
  2587. # SDL_INTERFACE_AGE += 1;
  2588. # SDL_BINARY_AGE += 1;
  2589. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2590. # if backwards compatibility has been broken,
  2591. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2592. #
  2593. SDL_MAJOR_VERSION=2
  2594. SDL_MINOR_VERSION=0
  2595. SDL_MICRO_VERSION=13
  2596. SDL_INTERFACE_AGE=1
  2597. SDL_BINARY_AGE=13
  2598. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2599. # libtool versioning
  2600. case `pwd` in
  2601. *\ * | *\ *)
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2603. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2604. esac
  2605. macro_version='2.4.2'
  2606. macro_revision='1.3337'
  2607. ltmain="$ac_aux_dir/ltmain.sh"
  2608. # Make sure we can run config.sub.
  2609. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2610. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2612. $as_echo_n "checking build system type... " >&6; }
  2613. if ${ac_cv_build+:} false; then :
  2614. $as_echo_n "(cached) " >&6
  2615. else
  2616. ac_build_alias=$build_alias
  2617. test "x$ac_build_alias" = x &&
  2618. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2619. test "x$ac_build_alias" = x &&
  2620. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2621. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2622. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2623. fi
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2625. $as_echo "$ac_cv_build" >&6; }
  2626. case $ac_cv_build in
  2627. *-*-*) ;;
  2628. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2629. esac
  2630. build=$ac_cv_build
  2631. ac_save_IFS=$IFS; IFS='-'
  2632. set x $ac_cv_build
  2633. shift
  2634. build_cpu=$1
  2635. build_vendor=$2
  2636. shift; shift
  2637. # Remember, the first character of IFS is used to create $*,
  2638. # except with old shells:
  2639. build_os=$*
  2640. IFS=$ac_save_IFS
  2641. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2643. $as_echo_n "checking host system type... " >&6; }
  2644. if ${ac_cv_host+:} false; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. if test "x$host_alias" = x; then
  2648. ac_cv_host=$ac_cv_build
  2649. else
  2650. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2651. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2652. fi
  2653. fi
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2655. $as_echo "$ac_cv_host" >&6; }
  2656. case $ac_cv_host in
  2657. *-*-*) ;;
  2658. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2659. esac
  2660. host=$ac_cv_host
  2661. ac_save_IFS=$IFS; IFS='-'
  2662. set x $ac_cv_host
  2663. shift
  2664. host_cpu=$1
  2665. host_vendor=$2
  2666. shift; shift
  2667. # Remember, the first character of IFS is used to create $*,
  2668. # except with old shells:
  2669. host_os=$*
  2670. IFS=$ac_save_IFS
  2671. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2672. # Backslashify metacharacters that are still active within
  2673. # double-quoted strings.
  2674. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2675. # Same as above, but do not quote variable references.
  2676. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2677. # Sed substitution to delay expansion of an escaped shell variable in a
  2678. # double_quote_subst'ed string.
  2679. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2680. # Sed substitution to delay expansion of an escaped single quote.
  2681. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2682. # Sed substitution to avoid accidental globbing in evaled expressions
  2683. no_glob_subst='s/\*/\\\*/g'
  2684. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2685. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2686. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2688. $as_echo_n "checking how to print strings... " >&6; }
  2689. # Test print first, because it will be a builtin if present.
  2690. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2691. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2692. ECHO='print -r --'
  2693. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2694. ECHO='printf %s\n'
  2695. else
  2696. # Use this function as a fallback that always works.
  2697. func_fallback_echo ()
  2698. {
  2699. eval 'cat <<_LTECHO_EOF
  2700. $1
  2701. _LTECHO_EOF'
  2702. }
  2703. ECHO='func_fallback_echo'
  2704. fi
  2705. # func_echo_all arg...
  2706. # Invoke $ECHO with all args, space-separated.
  2707. func_echo_all ()
  2708. {
  2709. $ECHO ""
  2710. }
  2711. case "$ECHO" in
  2712. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2713. $as_echo "printf" >&6; } ;;
  2714. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2715. $as_echo "print -r" >&6; } ;;
  2716. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2717. $as_echo "cat" >&6; } ;;
  2718. esac
  2719. ac_ext=c
  2720. ac_cpp='$CPP $CPPFLAGS'
  2721. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2722. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2723. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2724. if test -n "$ac_tool_prefix"; then
  2725. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2726. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2728. $as_echo_n "checking for $ac_word... " >&6; }
  2729. if ${ac_cv_prog_CC+:} false; then :
  2730. $as_echo_n "(cached) " >&6
  2731. else
  2732. if test -n "$CC"; then
  2733. ac_cv_prog_CC="$CC" # Let the user override the test.
  2734. else
  2735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2736. for as_dir in $PATH
  2737. do
  2738. IFS=$as_save_IFS
  2739. test -z "$as_dir" && as_dir=.
  2740. for ac_exec_ext in '' $ac_executable_extensions; do
  2741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2742. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2744. break 2
  2745. fi
  2746. done
  2747. done
  2748. IFS=$as_save_IFS
  2749. fi
  2750. fi
  2751. CC=$ac_cv_prog_CC
  2752. if test -n "$CC"; then
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2754. $as_echo "$CC" >&6; }
  2755. else
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2757. $as_echo "no" >&6; }
  2758. fi
  2759. fi
  2760. if test -z "$ac_cv_prog_CC"; then
  2761. ac_ct_CC=$CC
  2762. # Extract the first word of "gcc", so it can be a program name with args.
  2763. set dummy gcc; ac_word=$2
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2765. $as_echo_n "checking for $ac_word... " >&6; }
  2766. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. if test -n "$ac_ct_CC"; then
  2770. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2771. else
  2772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2773. for as_dir in $PATH
  2774. do
  2775. IFS=$as_save_IFS
  2776. test -z "$as_dir" && as_dir=.
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2779. ac_cv_prog_ac_ct_CC="gcc"
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2781. break 2
  2782. fi
  2783. done
  2784. done
  2785. IFS=$as_save_IFS
  2786. fi
  2787. fi
  2788. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2789. if test -n "$ac_ct_CC"; then
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2791. $as_echo "$ac_ct_CC" >&6; }
  2792. else
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. fi
  2796. if test "x$ac_ct_CC" = x; then
  2797. CC=""
  2798. else
  2799. case $cross_compiling:$ac_tool_warned in
  2800. yes:)
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2803. ac_tool_warned=yes ;;
  2804. esac
  2805. CC=$ac_ct_CC
  2806. fi
  2807. else
  2808. CC="$ac_cv_prog_CC"
  2809. fi
  2810. if test -z "$CC"; then
  2811. if test -n "$ac_tool_prefix"; then
  2812. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2813. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2815. $as_echo_n "checking for $ac_word... " >&6; }
  2816. if ${ac_cv_prog_CC+:} false; then :
  2817. $as_echo_n "(cached) " >&6
  2818. else
  2819. if test -n "$CC"; then
  2820. ac_cv_prog_CC="$CC" # Let the user override the test.
  2821. else
  2822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2823. for as_dir in $PATH
  2824. do
  2825. IFS=$as_save_IFS
  2826. test -z "$as_dir" && as_dir=.
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2829. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2831. break 2
  2832. fi
  2833. done
  2834. done
  2835. IFS=$as_save_IFS
  2836. fi
  2837. fi
  2838. CC=$ac_cv_prog_CC
  2839. if test -n "$CC"; then
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2841. $as_echo "$CC" >&6; }
  2842. else
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2844. $as_echo "no" >&6; }
  2845. fi
  2846. fi
  2847. fi
  2848. if test -z "$CC"; then
  2849. # Extract the first word of "cc", so it can be a program name with args.
  2850. set dummy cc; ac_word=$2
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2852. $as_echo_n "checking for $ac_word... " >&6; }
  2853. if ${ac_cv_prog_CC+:} false; then :
  2854. $as_echo_n "(cached) " >&6
  2855. else
  2856. if test -n "$CC"; then
  2857. ac_cv_prog_CC="$CC" # Let the user override the test.
  2858. else
  2859. ac_prog_rejected=no
  2860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2861. for as_dir in $PATH
  2862. do
  2863. IFS=$as_save_IFS
  2864. test -z "$as_dir" && as_dir=.
  2865. for ac_exec_ext in '' $ac_executable_extensions; do
  2866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2867. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2868. ac_prog_rejected=yes
  2869. continue
  2870. fi
  2871. ac_cv_prog_CC="cc"
  2872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2873. break 2
  2874. fi
  2875. done
  2876. done
  2877. IFS=$as_save_IFS
  2878. if test $ac_prog_rejected = yes; then
  2879. # We found a bogon in the path, so make sure we never use it.
  2880. set dummy $ac_cv_prog_CC
  2881. shift
  2882. if test $# != 0; then
  2883. # We chose a different compiler from the bogus one.
  2884. # However, it has the same basename, so the bogon will be chosen
  2885. # first if we set CC to just the basename; use the full file name.
  2886. shift
  2887. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2888. fi
  2889. fi
  2890. fi
  2891. fi
  2892. CC=$ac_cv_prog_CC
  2893. if test -n "$CC"; then
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2895. $as_echo "$CC" >&6; }
  2896. else
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2898. $as_echo "no" >&6; }
  2899. fi
  2900. fi
  2901. if test -z "$CC"; then
  2902. if test -n "$ac_tool_prefix"; then
  2903. for ac_prog in cl.exe
  2904. do
  2905. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2906. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2908. $as_echo_n "checking for $ac_word... " >&6; }
  2909. if ${ac_cv_prog_CC+:} false; then :
  2910. $as_echo_n "(cached) " >&6
  2911. else
  2912. if test -n "$CC"; then
  2913. ac_cv_prog_CC="$CC" # Let the user override the test.
  2914. else
  2915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2916. for as_dir in $PATH
  2917. do
  2918. IFS=$as_save_IFS
  2919. test -z "$as_dir" && as_dir=.
  2920. for ac_exec_ext in '' $ac_executable_extensions; do
  2921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2922. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2924. break 2
  2925. fi
  2926. done
  2927. done
  2928. IFS=$as_save_IFS
  2929. fi
  2930. fi
  2931. CC=$ac_cv_prog_CC
  2932. if test -n "$CC"; then
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2934. $as_echo "$CC" >&6; }
  2935. else
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2937. $as_echo "no" >&6; }
  2938. fi
  2939. test -n "$CC" && break
  2940. done
  2941. fi
  2942. if test -z "$CC"; then
  2943. ac_ct_CC=$CC
  2944. for ac_prog in cl.exe
  2945. do
  2946. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2947. set dummy $ac_prog; ac_word=$2
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2949. $as_echo_n "checking for $ac_word... " >&6; }
  2950. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2951. $as_echo_n "(cached) " >&6
  2952. else
  2953. if test -n "$ac_ct_CC"; then
  2954. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2955. else
  2956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2957. for as_dir in $PATH
  2958. do
  2959. IFS=$as_save_IFS
  2960. test -z "$as_dir" && as_dir=.
  2961. for ac_exec_ext in '' $ac_executable_extensions; do
  2962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2963. ac_cv_prog_ac_ct_CC="$ac_prog"
  2964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2965. break 2
  2966. fi
  2967. done
  2968. done
  2969. IFS=$as_save_IFS
  2970. fi
  2971. fi
  2972. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2973. if test -n "$ac_ct_CC"; then
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2975. $as_echo "$ac_ct_CC" >&6; }
  2976. else
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2978. $as_echo "no" >&6; }
  2979. fi
  2980. test -n "$ac_ct_CC" && break
  2981. done
  2982. if test "x$ac_ct_CC" = x; then
  2983. CC=""
  2984. else
  2985. case $cross_compiling:$ac_tool_warned in
  2986. yes:)
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2988. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2989. ac_tool_warned=yes ;;
  2990. esac
  2991. CC=$ac_ct_CC
  2992. fi
  2993. fi
  2994. fi
  2995. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2996. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2997. as_fn_error $? "no acceptable C compiler found in \$PATH
  2998. See \`config.log' for more details" "$LINENO" 5; }
  2999. # Provide some information about the compiler.
  3000. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3001. set X $ac_compile
  3002. ac_compiler=$2
  3003. for ac_option in --version -v -V -qversion; do
  3004. { { ac_try="$ac_compiler $ac_option >&5"
  3005. case "(($ac_try" in
  3006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3007. *) ac_try_echo=$ac_try;;
  3008. esac
  3009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3010. $as_echo "$ac_try_echo"; } >&5
  3011. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3012. ac_status=$?
  3013. if test -s conftest.err; then
  3014. sed '10a\
  3015. ... rest of stderr output deleted ...
  3016. 10q' conftest.err >conftest.er1
  3017. cat conftest.er1 >&5
  3018. fi
  3019. rm -f conftest.er1 conftest.err
  3020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3021. test $ac_status = 0; }
  3022. done
  3023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3024. /* end confdefs.h. */
  3025. int
  3026. main ()
  3027. {
  3028. ;
  3029. return 0;
  3030. }
  3031. _ACEOF
  3032. ac_clean_files_save=$ac_clean_files
  3033. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3034. # Try to create an executable without -o first, disregard a.out.
  3035. # It will help us diagnose broken compilers, and finding out an intuition
  3036. # of exeext.
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3038. $as_echo_n "checking whether the C compiler works... " >&6; }
  3039. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3040. # The possible output files:
  3041. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3042. ac_rmfiles=
  3043. for ac_file in $ac_files
  3044. do
  3045. case $ac_file in
  3046. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3047. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3048. esac
  3049. done
  3050. rm -f $ac_rmfiles
  3051. if { { ac_try="$ac_link_default"
  3052. case "(($ac_try" in
  3053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3054. *) ac_try_echo=$ac_try;;
  3055. esac
  3056. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3057. $as_echo "$ac_try_echo"; } >&5
  3058. (eval "$ac_link_default") 2>&5
  3059. ac_status=$?
  3060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3061. test $ac_status = 0; }; then :
  3062. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3063. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3064. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3065. # so that the user can short-circuit this test for compilers unknown to
  3066. # Autoconf.
  3067. for ac_file in $ac_files ''
  3068. do
  3069. test -f "$ac_file" || continue
  3070. case $ac_file in
  3071. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3072. ;;
  3073. [ab].out )
  3074. # We found the default executable, but exeext='' is most
  3075. # certainly right.
  3076. break;;
  3077. *.* )
  3078. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3079. then :; else
  3080. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3081. fi
  3082. # We set ac_cv_exeext here because the later test for it is not
  3083. # safe: cross compilers may not add the suffix if given an `-o'
  3084. # argument, so we may need to know it at that point already.
  3085. # Even if this section looks crufty: it has the advantage of
  3086. # actually working.
  3087. break;;
  3088. * )
  3089. break;;
  3090. esac
  3091. done
  3092. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3093. else
  3094. ac_file=''
  3095. fi
  3096. if test -z "$ac_file"; then :
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3098. $as_echo "no" >&6; }
  3099. $as_echo "$as_me: failed program was:" >&5
  3100. sed 's/^/| /' conftest.$ac_ext >&5
  3101. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3102. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3103. as_fn_error 77 "C compiler cannot create executables
  3104. See \`config.log' for more details" "$LINENO" 5; }
  3105. else
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3107. $as_echo "yes" >&6; }
  3108. fi
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3110. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3112. $as_echo "$ac_file" >&6; }
  3113. ac_exeext=$ac_cv_exeext
  3114. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3115. ac_clean_files=$ac_clean_files_save
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3117. $as_echo_n "checking for suffix of executables... " >&6; }
  3118. if { { ac_try="$ac_link"
  3119. case "(($ac_try" in
  3120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3121. *) ac_try_echo=$ac_try;;
  3122. esac
  3123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3124. $as_echo "$ac_try_echo"; } >&5
  3125. (eval "$ac_link") 2>&5
  3126. ac_status=$?
  3127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3128. test $ac_status = 0; }; then :
  3129. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3130. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3131. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3132. # `rm'.
  3133. for ac_file in conftest.exe conftest conftest.*; do
  3134. test -f "$ac_file" || continue
  3135. case $ac_file in
  3136. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3137. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3138. break;;
  3139. * ) break;;
  3140. esac
  3141. done
  3142. else
  3143. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3144. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3145. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3146. See \`config.log' for more details" "$LINENO" 5; }
  3147. fi
  3148. rm -f conftest conftest$ac_cv_exeext
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3150. $as_echo "$ac_cv_exeext" >&6; }
  3151. rm -f conftest.$ac_ext
  3152. EXEEXT=$ac_cv_exeext
  3153. ac_exeext=$EXEEXT
  3154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3155. /* end confdefs.h. */
  3156. #include <stdio.h>
  3157. int
  3158. main ()
  3159. {
  3160. FILE *f = fopen ("conftest.out", "w");
  3161. return ferror (f) || fclose (f) != 0;
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. ac_clean_files="$ac_clean_files conftest.out"
  3167. # Check that the compiler produces executables we can run. If not, either
  3168. # the compiler is broken, or we cross compile.
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3170. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3171. if test "$cross_compiling" != yes; then
  3172. { { ac_try="$ac_link"
  3173. case "(($ac_try" in
  3174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3175. *) ac_try_echo=$ac_try;;
  3176. esac
  3177. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3178. $as_echo "$ac_try_echo"; } >&5
  3179. (eval "$ac_link") 2>&5
  3180. ac_status=$?
  3181. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3182. test $ac_status = 0; }
  3183. if { ac_try='./conftest$ac_cv_exeext'
  3184. { { case "(($ac_try" in
  3185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3186. *) ac_try_echo=$ac_try;;
  3187. esac
  3188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3189. $as_echo "$ac_try_echo"; } >&5
  3190. (eval "$ac_try") 2>&5
  3191. ac_status=$?
  3192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3193. test $ac_status = 0; }; }; then
  3194. cross_compiling=no
  3195. else
  3196. if test "$cross_compiling" = maybe; then
  3197. cross_compiling=yes
  3198. else
  3199. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3201. as_fn_error $? "cannot run C compiled programs.
  3202. If you meant to cross compile, use \`--host'.
  3203. See \`config.log' for more details" "$LINENO" 5; }
  3204. fi
  3205. fi
  3206. fi
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3208. $as_echo "$cross_compiling" >&6; }
  3209. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3210. ac_clean_files=$ac_clean_files_save
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3212. $as_echo_n "checking for suffix of object files... " >&6; }
  3213. if ${ac_cv_objext+:} false; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3217. /* end confdefs.h. */
  3218. int
  3219. main ()
  3220. {
  3221. ;
  3222. return 0;
  3223. }
  3224. _ACEOF
  3225. rm -f conftest.o conftest.obj
  3226. if { { ac_try="$ac_compile"
  3227. case "(($ac_try" in
  3228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3229. *) ac_try_echo=$ac_try;;
  3230. esac
  3231. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3232. $as_echo "$ac_try_echo"; } >&5
  3233. (eval "$ac_compile") 2>&5
  3234. ac_status=$?
  3235. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3236. test $ac_status = 0; }; then :
  3237. for ac_file in conftest.o conftest.obj conftest.*; do
  3238. test -f "$ac_file" || continue;
  3239. case $ac_file in
  3240. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3241. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3242. break;;
  3243. esac
  3244. done
  3245. else
  3246. $as_echo "$as_me: failed program was:" >&5
  3247. sed 's/^/| /' conftest.$ac_ext >&5
  3248. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3249. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3250. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3251. See \`config.log' for more details" "$LINENO" 5; }
  3252. fi
  3253. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3254. fi
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3256. $as_echo "$ac_cv_objext" >&6; }
  3257. OBJEXT=$ac_cv_objext
  3258. ac_objext=$OBJEXT
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3260. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3261. if ${ac_cv_c_compiler_gnu+:} false; then :
  3262. $as_echo_n "(cached) " >&6
  3263. else
  3264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3265. /* end confdefs.h. */
  3266. int
  3267. main ()
  3268. {
  3269. #ifndef __GNUC__
  3270. choke me
  3271. #endif
  3272. ;
  3273. return 0;
  3274. }
  3275. _ACEOF
  3276. if ac_fn_c_try_compile "$LINENO"; then :
  3277. ac_compiler_gnu=yes
  3278. else
  3279. ac_compiler_gnu=no
  3280. fi
  3281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3282. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3283. fi
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3285. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3286. if test $ac_compiler_gnu = yes; then
  3287. GCC=yes
  3288. else
  3289. GCC=
  3290. fi
  3291. ac_test_CFLAGS=${CFLAGS+set}
  3292. ac_save_CFLAGS=$CFLAGS
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3294. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3295. if ${ac_cv_prog_cc_g+:} false; then :
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. ac_save_c_werror_flag=$ac_c_werror_flag
  3299. ac_c_werror_flag=yes
  3300. ac_cv_prog_cc_g=no
  3301. CFLAGS="-g"
  3302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3303. /* end confdefs.h. */
  3304. int
  3305. main ()
  3306. {
  3307. ;
  3308. return 0;
  3309. }
  3310. _ACEOF
  3311. if ac_fn_c_try_compile "$LINENO"; then :
  3312. ac_cv_prog_cc_g=yes
  3313. else
  3314. CFLAGS=""
  3315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3316. /* end confdefs.h. */
  3317. int
  3318. main ()
  3319. {
  3320. ;
  3321. return 0;
  3322. }
  3323. _ACEOF
  3324. if ac_fn_c_try_compile "$LINENO"; then :
  3325. else
  3326. ac_c_werror_flag=$ac_save_c_werror_flag
  3327. CFLAGS="-g"
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. int
  3331. main ()
  3332. {
  3333. ;
  3334. return 0;
  3335. }
  3336. _ACEOF
  3337. if ac_fn_c_try_compile "$LINENO"; then :
  3338. ac_cv_prog_cc_g=yes
  3339. fi
  3340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3341. fi
  3342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. ac_c_werror_flag=$ac_save_c_werror_flag
  3346. fi
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3348. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3349. if test "$ac_test_CFLAGS" = set; then
  3350. CFLAGS=$ac_save_CFLAGS
  3351. elif test $ac_cv_prog_cc_g = yes; then
  3352. if test "$GCC" = yes; then
  3353. CFLAGS="-g -O2"
  3354. else
  3355. CFLAGS="-g"
  3356. fi
  3357. else
  3358. if test "$GCC" = yes; then
  3359. CFLAGS="-O2"
  3360. else
  3361. CFLAGS=
  3362. fi
  3363. fi
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3365. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3366. if ${ac_cv_prog_cc_c89+:} false; then :
  3367. $as_echo_n "(cached) " >&6
  3368. else
  3369. ac_cv_prog_cc_c89=no
  3370. ac_save_CC=$CC
  3371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3372. /* end confdefs.h. */
  3373. #include <stdarg.h>
  3374. #include <stdio.h>
  3375. struct stat;
  3376. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3377. struct buf { int x; };
  3378. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3379. static char *e (p, i)
  3380. char **p;
  3381. int i;
  3382. {
  3383. return p[i];
  3384. }
  3385. static char *f (char * (*g) (char **, int), char **p, ...)
  3386. {
  3387. char *s;
  3388. va_list v;
  3389. va_start (v,p);
  3390. s = g (p, va_arg (v,int));
  3391. va_end (v);
  3392. return s;
  3393. }
  3394. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3395. function prototypes and stuff, but not '\xHH' hex character constants.
  3396. These don't provoke an error unfortunately, instead are silently treated
  3397. as 'x'. The following induces an error, until -std is added to get
  3398. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3399. array size at least. It's necessary to write '\x00'==0 to get something
  3400. that's true only with -std. */
  3401. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3402. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3403. inside strings and character constants. */
  3404. #define FOO(x) 'x'
  3405. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3406. int test (int i, double x);
  3407. struct s1 {int (*f) (int a);};
  3408. struct s2 {int (*f) (double a);};
  3409. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3410. int argc;
  3411. char **argv;
  3412. int
  3413. main ()
  3414. {
  3415. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3416. ;
  3417. return 0;
  3418. }
  3419. _ACEOF
  3420. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3421. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3422. do
  3423. CC="$ac_save_CC $ac_arg"
  3424. if ac_fn_c_try_compile "$LINENO"; then :
  3425. ac_cv_prog_cc_c89=$ac_arg
  3426. fi
  3427. rm -f core conftest.err conftest.$ac_objext
  3428. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3429. done
  3430. rm -f conftest.$ac_ext
  3431. CC=$ac_save_CC
  3432. fi
  3433. # AC_CACHE_VAL
  3434. case "x$ac_cv_prog_cc_c89" in
  3435. x)
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3437. $as_echo "none needed" >&6; } ;;
  3438. xno)
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3440. $as_echo "unsupported" >&6; } ;;
  3441. *)
  3442. CC="$CC $ac_cv_prog_cc_c89"
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3444. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3445. esac
  3446. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3447. fi
  3448. ac_ext=c
  3449. ac_cpp='$CPP $CPPFLAGS'
  3450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3454. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3455. if ${ac_cv_path_SED+:} false; then :
  3456. $as_echo_n "(cached) " >&6
  3457. else
  3458. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3459. for ac_i in 1 2 3 4 5 6 7; do
  3460. ac_script="$ac_script$as_nl$ac_script"
  3461. done
  3462. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3463. { ac_script=; unset ac_script;}
  3464. if test -z "$SED"; then
  3465. ac_path_SED_found=false
  3466. # Loop through the user's path and test for each of PROGNAME-LIST
  3467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3468. for as_dir in $PATH
  3469. do
  3470. IFS=$as_save_IFS
  3471. test -z "$as_dir" && as_dir=.
  3472. for ac_prog in sed gsed; do
  3473. for ac_exec_ext in '' $ac_executable_extensions; do
  3474. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3475. as_fn_executable_p "$ac_path_SED" || continue
  3476. # Check for GNU ac_path_SED and select it if it is found.
  3477. # Check for GNU $ac_path_SED
  3478. case `"$ac_path_SED" --version 2>&1` in
  3479. *GNU*)
  3480. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3481. *)
  3482. ac_count=0
  3483. $as_echo_n 0123456789 >"conftest.in"
  3484. while :
  3485. do
  3486. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3487. mv "conftest.tmp" "conftest.in"
  3488. cp "conftest.in" "conftest.nl"
  3489. $as_echo '' >> "conftest.nl"
  3490. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3491. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3492. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3493. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3494. # Best one so far, save it but keep looking for a better one
  3495. ac_cv_path_SED="$ac_path_SED"
  3496. ac_path_SED_max=$ac_count
  3497. fi
  3498. # 10*(2^10) chars as input seems more than enough
  3499. test $ac_count -gt 10 && break
  3500. done
  3501. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3502. esac
  3503. $ac_path_SED_found && break 3
  3504. done
  3505. done
  3506. done
  3507. IFS=$as_save_IFS
  3508. if test -z "$ac_cv_path_SED"; then
  3509. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3510. fi
  3511. else
  3512. ac_cv_path_SED=$SED
  3513. fi
  3514. fi
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3516. $as_echo "$ac_cv_path_SED" >&6; }
  3517. SED="$ac_cv_path_SED"
  3518. rm -f conftest.sed
  3519. test -z "$SED" && SED=sed
  3520. Xsed="$SED -e 1s/^X//"
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3522. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3523. if ${ac_cv_path_GREP+:} false; then :
  3524. $as_echo_n "(cached) " >&6
  3525. else
  3526. if test -z "$GREP"; then
  3527. ac_path_GREP_found=false
  3528. # Loop through the user's path and test for each of PROGNAME-LIST
  3529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3530. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3531. do
  3532. IFS=$as_save_IFS
  3533. test -z "$as_dir" && as_dir=.
  3534. for ac_prog in grep ggrep; do
  3535. for ac_exec_ext in '' $ac_executable_extensions; do
  3536. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3537. as_fn_executable_p "$ac_path_GREP" || continue
  3538. # Check for GNU ac_path_GREP and select it if it is found.
  3539. # Check for GNU $ac_path_GREP
  3540. case `"$ac_path_GREP" --version 2>&1` in
  3541. *GNU*)
  3542. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3543. *)
  3544. ac_count=0
  3545. $as_echo_n 0123456789 >"conftest.in"
  3546. while :
  3547. do
  3548. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3549. mv "conftest.tmp" "conftest.in"
  3550. cp "conftest.in" "conftest.nl"
  3551. $as_echo 'GREP' >> "conftest.nl"
  3552. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3553. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3554. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3555. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3556. # Best one so far, save it but keep looking for a better one
  3557. ac_cv_path_GREP="$ac_path_GREP"
  3558. ac_path_GREP_max=$ac_count
  3559. fi
  3560. # 10*(2^10) chars as input seems more than enough
  3561. test $ac_count -gt 10 && break
  3562. done
  3563. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3564. esac
  3565. $ac_path_GREP_found && break 3
  3566. done
  3567. done
  3568. done
  3569. IFS=$as_save_IFS
  3570. if test -z "$ac_cv_path_GREP"; then
  3571. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3572. fi
  3573. else
  3574. ac_cv_path_GREP=$GREP
  3575. fi
  3576. fi
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3578. $as_echo "$ac_cv_path_GREP" >&6; }
  3579. GREP="$ac_cv_path_GREP"
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3581. $as_echo_n "checking for egrep... " >&6; }
  3582. if ${ac_cv_path_EGREP+:} false; then :
  3583. $as_echo_n "(cached) " >&6
  3584. else
  3585. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3586. then ac_cv_path_EGREP="$GREP -E"
  3587. else
  3588. if test -z "$EGREP"; then
  3589. ac_path_EGREP_found=false
  3590. # Loop through the user's path and test for each of PROGNAME-LIST
  3591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3592. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3593. do
  3594. IFS=$as_save_IFS
  3595. test -z "$as_dir" && as_dir=.
  3596. for ac_prog in egrep; do
  3597. for ac_exec_ext in '' $ac_executable_extensions; do
  3598. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3599. as_fn_executable_p "$ac_path_EGREP" || continue
  3600. # Check for GNU ac_path_EGREP and select it if it is found.
  3601. # Check for GNU $ac_path_EGREP
  3602. case `"$ac_path_EGREP" --version 2>&1` in
  3603. *GNU*)
  3604. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3605. *)
  3606. ac_count=0
  3607. $as_echo_n 0123456789 >"conftest.in"
  3608. while :
  3609. do
  3610. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3611. mv "conftest.tmp" "conftest.in"
  3612. cp "conftest.in" "conftest.nl"
  3613. $as_echo 'EGREP' >> "conftest.nl"
  3614. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3615. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3616. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3617. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3618. # Best one so far, save it but keep looking for a better one
  3619. ac_cv_path_EGREP="$ac_path_EGREP"
  3620. ac_path_EGREP_max=$ac_count
  3621. fi
  3622. # 10*(2^10) chars as input seems more than enough
  3623. test $ac_count -gt 10 && break
  3624. done
  3625. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3626. esac
  3627. $ac_path_EGREP_found && break 3
  3628. done
  3629. done
  3630. done
  3631. IFS=$as_save_IFS
  3632. if test -z "$ac_cv_path_EGREP"; then
  3633. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3634. fi
  3635. else
  3636. ac_cv_path_EGREP=$EGREP
  3637. fi
  3638. fi
  3639. fi
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3641. $as_echo "$ac_cv_path_EGREP" >&6; }
  3642. EGREP="$ac_cv_path_EGREP"
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3644. $as_echo_n "checking for fgrep... " >&6; }
  3645. if ${ac_cv_path_FGREP+:} false; then :
  3646. $as_echo_n "(cached) " >&6
  3647. else
  3648. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3649. then ac_cv_path_FGREP="$GREP -F"
  3650. else
  3651. if test -z "$FGREP"; then
  3652. ac_path_FGREP_found=false
  3653. # Loop through the user's path and test for each of PROGNAME-LIST
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3656. do
  3657. IFS=$as_save_IFS
  3658. test -z "$as_dir" && as_dir=.
  3659. for ac_prog in fgrep; do
  3660. for ac_exec_ext in '' $ac_executable_extensions; do
  3661. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3662. as_fn_executable_p "$ac_path_FGREP" || continue
  3663. # Check for GNU ac_path_FGREP and select it if it is found.
  3664. # Check for GNU $ac_path_FGREP
  3665. case `"$ac_path_FGREP" --version 2>&1` in
  3666. *GNU*)
  3667. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3668. *)
  3669. ac_count=0
  3670. $as_echo_n 0123456789 >"conftest.in"
  3671. while :
  3672. do
  3673. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3674. mv "conftest.tmp" "conftest.in"
  3675. cp "conftest.in" "conftest.nl"
  3676. $as_echo 'FGREP' >> "conftest.nl"
  3677. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3678. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3679. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3680. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3681. # Best one so far, save it but keep looking for a better one
  3682. ac_cv_path_FGREP="$ac_path_FGREP"
  3683. ac_path_FGREP_max=$ac_count
  3684. fi
  3685. # 10*(2^10) chars as input seems more than enough
  3686. test $ac_count -gt 10 && break
  3687. done
  3688. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3689. esac
  3690. $ac_path_FGREP_found && break 3
  3691. done
  3692. done
  3693. done
  3694. IFS=$as_save_IFS
  3695. if test -z "$ac_cv_path_FGREP"; then
  3696. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3697. fi
  3698. else
  3699. ac_cv_path_FGREP=$FGREP
  3700. fi
  3701. fi
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3704. $as_echo "$ac_cv_path_FGREP" >&6; }
  3705. FGREP="$ac_cv_path_FGREP"
  3706. test -z "$GREP" && GREP=grep
  3707. # Check whether --with-gnu-ld was given.
  3708. if test "${with_gnu_ld+set}" = set; then :
  3709. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3710. else
  3711. with_gnu_ld=no
  3712. fi
  3713. ac_prog=ld
  3714. if test "$GCC" = yes; then
  3715. # Check if gcc -print-prog-name=ld gives a path.
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3717. $as_echo_n "checking for ld used by $CC... " >&6; }
  3718. case $host in
  3719. *-*-mingw*)
  3720. # gcc leaves a trailing carriage return which upsets mingw
  3721. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3722. *)
  3723. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3724. esac
  3725. case $ac_prog in
  3726. # Accept absolute paths.
  3727. [\\/]* | ?:[\\/]*)
  3728. re_direlt='/[^/][^/]*/\.\./'
  3729. # Canonicalize the pathname of ld
  3730. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3731. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3732. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3733. done
  3734. test -z "$LD" && LD="$ac_prog"
  3735. ;;
  3736. "")
  3737. # If it fails, then pretend we aren't using GCC.
  3738. ac_prog=ld
  3739. ;;
  3740. *)
  3741. # If it is relative, then search for the first ld in PATH.
  3742. with_gnu_ld=unknown
  3743. ;;
  3744. esac
  3745. elif test "$with_gnu_ld" = yes; then
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3747. $as_echo_n "checking for GNU ld... " >&6; }
  3748. else
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3750. $as_echo_n "checking for non-GNU ld... " >&6; }
  3751. fi
  3752. if ${lt_cv_path_LD+:} false; then :
  3753. $as_echo_n "(cached) " >&6
  3754. else
  3755. if test -z "$LD"; then
  3756. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3757. for ac_dir in $PATH; do
  3758. IFS="$lt_save_ifs"
  3759. test -z "$ac_dir" && ac_dir=.
  3760. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3761. lt_cv_path_LD="$ac_dir/$ac_prog"
  3762. # Check to see if the program is GNU ld. I'd rather use --version,
  3763. # but apparently some variants of GNU ld only accept -v.
  3764. # Break only if it was the GNU/non-GNU ld that we prefer.
  3765. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3766. *GNU* | *'with BFD'*)
  3767. test "$with_gnu_ld" != no && break
  3768. ;;
  3769. *)
  3770. test "$with_gnu_ld" != yes && break
  3771. ;;
  3772. esac
  3773. fi
  3774. done
  3775. IFS="$lt_save_ifs"
  3776. else
  3777. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3778. fi
  3779. fi
  3780. LD="$lt_cv_path_LD"
  3781. if test -n "$LD"; then
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3783. $as_echo "$LD" >&6; }
  3784. else
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3786. $as_echo "no" >&6; }
  3787. fi
  3788. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3790. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3791. if ${lt_cv_prog_gnu_ld+:} false; then :
  3792. $as_echo_n "(cached) " >&6
  3793. else
  3794. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3795. case `$LD -v 2>&1 </dev/null` in
  3796. *GNU* | *'with BFD'*)
  3797. lt_cv_prog_gnu_ld=yes
  3798. ;;
  3799. *)
  3800. lt_cv_prog_gnu_ld=no
  3801. ;;
  3802. esac
  3803. fi
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3805. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3806. with_gnu_ld=$lt_cv_prog_gnu_ld
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3808. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3809. if ${lt_cv_path_NM+:} false; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. if test -n "$NM"; then
  3813. # Let the user override the test.
  3814. lt_cv_path_NM="$NM"
  3815. else
  3816. lt_nm_to_check="${ac_tool_prefix}nm"
  3817. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3818. lt_nm_to_check="$lt_nm_to_check nm"
  3819. fi
  3820. for lt_tmp_nm in $lt_nm_to_check; do
  3821. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3822. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3823. IFS="$lt_save_ifs"
  3824. test -z "$ac_dir" && ac_dir=.
  3825. tmp_nm="$ac_dir/$lt_tmp_nm"
  3826. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3827. # Check to see if the nm accepts a BSD-compat flag.
  3828. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3829. # nm: unknown option "B" ignored
  3830. # Tru64's nm complains that /dev/null is an invalid object file
  3831. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3832. */dev/null* | *'Invalid file or object type'*)
  3833. lt_cv_path_NM="$tmp_nm -B"
  3834. break
  3835. ;;
  3836. *)
  3837. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3838. */dev/null*)
  3839. lt_cv_path_NM="$tmp_nm -p"
  3840. break
  3841. ;;
  3842. *)
  3843. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3844. continue # so that we can try to find one that supports BSD flags
  3845. ;;
  3846. esac
  3847. ;;
  3848. esac
  3849. fi
  3850. done
  3851. IFS="$lt_save_ifs"
  3852. done
  3853. : ${lt_cv_path_NM=no}
  3854. fi
  3855. fi
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3857. $as_echo "$lt_cv_path_NM" >&6; }
  3858. if test "$lt_cv_path_NM" != "no"; then
  3859. NM="$lt_cv_path_NM"
  3860. else
  3861. # Didn't find any BSD compatible name lister, look for dumpbin.
  3862. if test -n "$DUMPBIN"; then :
  3863. # Let the user override the test.
  3864. else
  3865. if test -n "$ac_tool_prefix"; then
  3866. for ac_prog in dumpbin "link -dump"
  3867. do
  3868. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3869. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3871. $as_echo_n "checking for $ac_word... " >&6; }
  3872. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. if test -n "$DUMPBIN"; then
  3876. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3877. else
  3878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3879. for as_dir in $PATH
  3880. do
  3881. IFS=$as_save_IFS
  3882. test -z "$as_dir" && as_dir=.
  3883. for ac_exec_ext in '' $ac_executable_extensions; do
  3884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3885. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3887. break 2
  3888. fi
  3889. done
  3890. done
  3891. IFS=$as_save_IFS
  3892. fi
  3893. fi
  3894. DUMPBIN=$ac_cv_prog_DUMPBIN
  3895. if test -n "$DUMPBIN"; then
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3897. $as_echo "$DUMPBIN" >&6; }
  3898. else
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3900. $as_echo "no" >&6; }
  3901. fi
  3902. test -n "$DUMPBIN" && break
  3903. done
  3904. fi
  3905. if test -z "$DUMPBIN"; then
  3906. ac_ct_DUMPBIN=$DUMPBIN
  3907. for ac_prog in dumpbin "link -dump"
  3908. do
  3909. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3910. set dummy $ac_prog; ac_word=$2
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3912. $as_echo_n "checking for $ac_word... " >&6; }
  3913. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. if test -n "$ac_ct_DUMPBIN"; then
  3917. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3918. else
  3919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3920. for as_dir in $PATH
  3921. do
  3922. IFS=$as_save_IFS
  3923. test -z "$as_dir" && as_dir=.
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3926. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3928. break 2
  3929. fi
  3930. done
  3931. done
  3932. IFS=$as_save_IFS
  3933. fi
  3934. fi
  3935. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3936. if test -n "$ac_ct_DUMPBIN"; then
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3938. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3939. else
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3941. $as_echo "no" >&6; }
  3942. fi
  3943. test -n "$ac_ct_DUMPBIN" && break
  3944. done
  3945. if test "x$ac_ct_DUMPBIN" = x; then
  3946. DUMPBIN=":"
  3947. else
  3948. case $cross_compiling:$ac_tool_warned in
  3949. yes:)
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3952. ac_tool_warned=yes ;;
  3953. esac
  3954. DUMPBIN=$ac_ct_DUMPBIN
  3955. fi
  3956. fi
  3957. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3958. *COFF*)
  3959. DUMPBIN="$DUMPBIN -symbols"
  3960. ;;
  3961. *)
  3962. DUMPBIN=:
  3963. ;;
  3964. esac
  3965. fi
  3966. if test "$DUMPBIN" != ":"; then
  3967. NM="$DUMPBIN"
  3968. fi
  3969. fi
  3970. test -z "$NM" && NM=nm
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3972. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3973. if ${lt_cv_nm_interface+:} false; then :
  3974. $as_echo_n "(cached) " >&6
  3975. else
  3976. lt_cv_nm_interface="BSD nm"
  3977. echo "int some_variable = 0;" > conftest.$ac_ext
  3978. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3979. (eval "$ac_compile" 2>conftest.err)
  3980. cat conftest.err >&5
  3981. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3982. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3983. cat conftest.err >&5
  3984. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3985. cat conftest.out >&5
  3986. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3987. lt_cv_nm_interface="MS dumpbin"
  3988. fi
  3989. rm -f conftest*
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3992. $as_echo "$lt_cv_nm_interface" >&6; }
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3994. $as_echo_n "checking whether ln -s works... " >&6; }
  3995. LN_S=$as_ln_s
  3996. if test "$LN_S" = "ln -s"; then
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3998. $as_echo "yes" >&6; }
  3999. else
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4001. $as_echo "no, using $LN_S" >&6; }
  4002. fi
  4003. # find the maximum length of command line arguments
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4005. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4006. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4007. $as_echo_n "(cached) " >&6
  4008. else
  4009. i=0
  4010. teststring="ABCD"
  4011. case $build_os in
  4012. msdosdjgpp*)
  4013. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4014. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4015. # during glob expansion). Even if it were fixed, the result of this
  4016. # check would be larger than it should be.
  4017. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4018. ;;
  4019. gnu*)
  4020. # Under GNU Hurd, this test is not required because there is
  4021. # no limit to the length of command line arguments.
  4022. # Libtool will interpret -1 as no limit whatsoever
  4023. lt_cv_sys_max_cmd_len=-1;
  4024. ;;
  4025. cygwin* | mingw* | cegcc*)
  4026. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4027. # about 5 minutes as the teststring grows exponentially.
  4028. # Worse, since 9x/ME are not pre-emptively multitasking,
  4029. # you end up with a "frozen" computer, even though with patience
  4030. # the test eventually succeeds (with a max line length of 256k).
  4031. # Instead, let's just punt: use the minimum linelength reported by
  4032. # all of the supported platforms: 8192 (on NT/2K/XP).
  4033. lt_cv_sys_max_cmd_len=8192;
  4034. ;;
  4035. mint*)
  4036. # On MiNT this can take a long time and run out of memory.
  4037. lt_cv_sys_max_cmd_len=8192;
  4038. ;;
  4039. amigaos*)
  4040. # On AmigaOS with pdksh, this test takes hours, literally.
  4041. # So we just punt and use a minimum line length of 8192.
  4042. lt_cv_sys_max_cmd_len=8192;
  4043. ;;
  4044. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4045. # This has been around since 386BSD, at least. Likely further.
  4046. if test -x /sbin/sysctl; then
  4047. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4048. elif test -x /usr/sbin/sysctl; then
  4049. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4050. else
  4051. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4052. fi
  4053. # And add a safety zone
  4054. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4055. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4056. ;;
  4057. interix*)
  4058. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4059. lt_cv_sys_max_cmd_len=196608
  4060. ;;
  4061. os2*)
  4062. # The test takes a long time on OS/2.
  4063. lt_cv_sys_max_cmd_len=8192
  4064. ;;
  4065. osf*)
  4066. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4067. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4068. # nice to cause kernel panics so lets avoid the loop below.
  4069. # First set a reasonable default.
  4070. lt_cv_sys_max_cmd_len=16384
  4071. #
  4072. if test -x /sbin/sysconfig; then
  4073. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4074. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4075. esac
  4076. fi
  4077. ;;
  4078. sco3.2v5*)
  4079. lt_cv_sys_max_cmd_len=102400
  4080. ;;
  4081. sysv5* | sco5v6* | sysv4.2uw2*)
  4082. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4083. if test -n "$kargmax"; then
  4084. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4085. else
  4086. lt_cv_sys_max_cmd_len=32768
  4087. fi
  4088. ;;
  4089. *)
  4090. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4091. if test -n "$lt_cv_sys_max_cmd_len"; then
  4092. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4093. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4094. else
  4095. # Make teststring a little bigger before we do anything with it.
  4096. # a 1K string should be a reasonable start.
  4097. for i in 1 2 3 4 5 6 7 8 ; do
  4098. teststring=$teststring$teststring
  4099. done
  4100. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4101. # If test is not a shell built-in, we'll probably end up computing a
  4102. # maximum length that is only half of the actual maximum length, but
  4103. # we can't tell.
  4104. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4105. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4106. test $i != 17 # 1/2 MB should be enough
  4107. do
  4108. i=`expr $i + 1`
  4109. teststring=$teststring$teststring
  4110. done
  4111. # Only check the string length outside the loop.
  4112. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4113. teststring=
  4114. # Add a significant safety factor because C++ compilers can tack on
  4115. # massive amounts of additional arguments before passing them to the
  4116. # linker. It appears as though 1/2 is a usable value.
  4117. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4118. fi
  4119. ;;
  4120. esac
  4121. fi
  4122. if test -n $lt_cv_sys_max_cmd_len ; then
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4124. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4125. else
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4127. $as_echo "none" >&6; }
  4128. fi
  4129. max_cmd_len=$lt_cv_sys_max_cmd_len
  4130. : ${CP="cp -f"}
  4131. : ${MV="mv -f"}
  4132. : ${RM="rm -f"}
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4134. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4135. # Try some XSI features
  4136. xsi_shell=no
  4137. ( _lt_dummy="a/b/c"
  4138. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4139. = c,a/b,b/c, \
  4140. && eval 'test $(( 1 + 1 )) -eq 2 \
  4141. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4142. && xsi_shell=yes
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4144. $as_echo "$xsi_shell" >&6; }
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4146. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4147. lt_shell_append=no
  4148. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4149. >/dev/null 2>&1 \
  4150. && lt_shell_append=yes
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4152. $as_echo "$lt_shell_append" >&6; }
  4153. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4154. lt_unset=unset
  4155. else
  4156. lt_unset=false
  4157. fi
  4158. # test EBCDIC or ASCII
  4159. case `echo X|tr X '\101'` in
  4160. A) # ASCII based system
  4161. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4162. lt_SP2NL='tr \040 \012'
  4163. lt_NL2SP='tr \015\012 \040\040'
  4164. ;;
  4165. *) # EBCDIC based system
  4166. lt_SP2NL='tr \100 \n'
  4167. lt_NL2SP='tr \r\n \100\100'
  4168. ;;
  4169. esac
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4171. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4172. if ${lt_cv_to_host_file_cmd+:} false; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. case $host in
  4176. *-*-mingw* )
  4177. case $build in
  4178. *-*-mingw* ) # actually msys
  4179. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4180. ;;
  4181. *-*-cygwin* )
  4182. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4183. ;;
  4184. * ) # otherwise, assume *nix
  4185. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4186. ;;
  4187. esac
  4188. ;;
  4189. *-*-cygwin* )
  4190. case $build in
  4191. *-*-mingw* ) # actually msys
  4192. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4193. ;;
  4194. *-*-cygwin* )
  4195. lt_cv_to_host_file_cmd=func_convert_file_noop
  4196. ;;
  4197. * ) # otherwise, assume *nix
  4198. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4199. ;;
  4200. esac
  4201. ;;
  4202. * ) # unhandled hosts (and "normal" native builds)
  4203. lt_cv_to_host_file_cmd=func_convert_file_noop
  4204. ;;
  4205. esac
  4206. fi
  4207. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4209. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4211. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4212. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. #assume ordinary cross tools, or native build.
  4216. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4217. case $host in
  4218. *-*-mingw* )
  4219. case $build in
  4220. *-*-mingw* ) # actually msys
  4221. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4222. ;;
  4223. esac
  4224. ;;
  4225. esac
  4226. fi
  4227. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4229. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4231. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4232. if ${lt_cv_ld_reload_flag+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. lt_cv_ld_reload_flag='-r'
  4236. fi
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4238. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4239. reload_flag=$lt_cv_ld_reload_flag
  4240. case $reload_flag in
  4241. "" | " "*) ;;
  4242. *) reload_flag=" $reload_flag" ;;
  4243. esac
  4244. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4245. case $host_os in
  4246. cygwin* | mingw* | pw32* | cegcc*)
  4247. if test "$GCC" != yes; then
  4248. reload_cmds=false
  4249. fi
  4250. ;;
  4251. darwin*)
  4252. if test "$GCC" = yes; then
  4253. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4254. else
  4255. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4256. fi
  4257. ;;
  4258. esac
  4259. if test -n "$ac_tool_prefix"; then
  4260. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4261. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4263. $as_echo_n "checking for $ac_word... " >&6; }
  4264. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4265. $as_echo_n "(cached) " >&6
  4266. else
  4267. if test -n "$OBJDUMP"; then
  4268. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4269. else
  4270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4271. for as_dir in $PATH
  4272. do
  4273. IFS=$as_save_IFS
  4274. test -z "$as_dir" && as_dir=.
  4275. for ac_exec_ext in '' $ac_executable_extensions; do
  4276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4277. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4279. break 2
  4280. fi
  4281. done
  4282. done
  4283. IFS=$as_save_IFS
  4284. fi
  4285. fi
  4286. OBJDUMP=$ac_cv_prog_OBJDUMP
  4287. if test -n "$OBJDUMP"; then
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4289. $as_echo "$OBJDUMP" >&6; }
  4290. else
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4292. $as_echo "no" >&6; }
  4293. fi
  4294. fi
  4295. if test -z "$ac_cv_prog_OBJDUMP"; then
  4296. ac_ct_OBJDUMP=$OBJDUMP
  4297. # Extract the first word of "objdump", so it can be a program name with args.
  4298. set dummy objdump; ac_word=$2
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4300. $as_echo_n "checking for $ac_word... " >&6; }
  4301. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4302. $as_echo_n "(cached) " >&6
  4303. else
  4304. if test -n "$ac_ct_OBJDUMP"; then
  4305. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4306. else
  4307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4308. for as_dir in $PATH
  4309. do
  4310. IFS=$as_save_IFS
  4311. test -z "$as_dir" && as_dir=.
  4312. for ac_exec_ext in '' $ac_executable_extensions; do
  4313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4314. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4316. break 2
  4317. fi
  4318. done
  4319. done
  4320. IFS=$as_save_IFS
  4321. fi
  4322. fi
  4323. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4324. if test -n "$ac_ct_OBJDUMP"; then
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4326. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4327. else
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4329. $as_echo "no" >&6; }
  4330. fi
  4331. if test "x$ac_ct_OBJDUMP" = x; then
  4332. OBJDUMP="false"
  4333. else
  4334. case $cross_compiling:$ac_tool_warned in
  4335. yes:)
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4337. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4338. ac_tool_warned=yes ;;
  4339. esac
  4340. OBJDUMP=$ac_ct_OBJDUMP
  4341. fi
  4342. else
  4343. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4344. fi
  4345. test -z "$OBJDUMP" && OBJDUMP=objdump
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4347. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4348. if ${lt_cv_deplibs_check_method+:} false; then :
  4349. $as_echo_n "(cached) " >&6
  4350. else
  4351. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4352. lt_cv_file_magic_test_file=
  4353. lt_cv_deplibs_check_method='unknown'
  4354. # Need to set the preceding variable on all platforms that support
  4355. # interlibrary dependencies.
  4356. # 'none' -- dependencies not supported.
  4357. # `unknown' -- same as none, but documents that we really don't know.
  4358. # 'pass_all' -- all dependencies passed with no checks.
  4359. # 'test_compile' -- check by making test program.
  4360. # 'file_magic [[regex]]' -- check by looking for files in library path
  4361. # which responds to the $file_magic_cmd with a given extended regex.
  4362. # If you have `file' or equivalent on your system and you're not sure
  4363. # whether `pass_all' will *always* work, you probably want this one.
  4364. case $host_os in
  4365. aix[4-9]*)
  4366. lt_cv_deplibs_check_method=pass_all
  4367. ;;
  4368. beos*)
  4369. lt_cv_deplibs_check_method=pass_all
  4370. ;;
  4371. bsdi[45]*)
  4372. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4373. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4374. lt_cv_file_magic_test_file=/shlib/libc.so
  4375. ;;
  4376. cygwin*)
  4377. # func_win32_libid is a shell function defined in ltmain.sh
  4378. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4379. lt_cv_file_magic_cmd='func_win32_libid'
  4380. lt_cv_deplibs_check_method=pass_all
  4381. ;;
  4382. mingw* | pw32*)
  4383. # Base MSYS/MinGW do not provide the 'file' command needed by
  4384. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4385. # unless we find 'file', for example because we are cross-compiling.
  4386. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4387. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4388. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4389. lt_cv_file_magic_cmd='func_win32_libid'
  4390. else
  4391. # Keep this pattern in sync with the one in func_win32_libid.
  4392. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4393. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4394. fi
  4395. lt_cv_deplibs_check_method=pass_all
  4396. ;;
  4397. cegcc*)
  4398. # use the weaker test based on 'objdump'. See mingw*.
  4399. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4400. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4401. ;;
  4402. darwin* | rhapsody*)
  4403. lt_cv_deplibs_check_method=pass_all
  4404. ;;
  4405. freebsd* | dragonfly*)
  4406. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4407. case $host_cpu in
  4408. i*86 )
  4409. # Not sure whether the presence of OpenBSD here was a mistake.
  4410. # Let's accept both of them until this is cleared up.
  4411. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4412. lt_cv_file_magic_cmd=/usr/bin/file
  4413. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4414. ;;
  4415. esac
  4416. else
  4417. lt_cv_deplibs_check_method=pass_all
  4418. fi
  4419. ;;
  4420. gnu*)
  4421. lt_cv_deplibs_check_method=pass_all
  4422. ;;
  4423. haiku*)
  4424. lt_cv_deplibs_check_method=pass_all
  4425. ;;
  4426. hpux10.20* | hpux11*)
  4427. lt_cv_file_magic_cmd=/usr/bin/file
  4428. case $host_cpu in
  4429. ia64*)
  4430. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4431. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4432. ;;
  4433. hppa*64*)
  4434. 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]'
  4435. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4436. ;;
  4437. *)
  4438. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4439. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4440. ;;
  4441. esac
  4442. ;;
  4443. interix[3-9]*)
  4444. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4445. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4446. ;;
  4447. irix5* | irix6* | nonstopux*)
  4448. case $LD in
  4449. *-32|*"-32 ") libmagic=32-bit;;
  4450. *-n32|*"-n32 ") libmagic=N32;;
  4451. *-64|*"-64 ") libmagic=64-bit;;
  4452. *) libmagic=never-match;;
  4453. esac
  4454. lt_cv_deplibs_check_method=pass_all
  4455. ;;
  4456. # This must be glibc/ELF.
  4457. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4458. lt_cv_deplibs_check_method=pass_all
  4459. ;;
  4460. netbsd*)
  4461. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4462. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4463. else
  4464. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4465. fi
  4466. ;;
  4467. newos6*)
  4468. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4469. lt_cv_file_magic_cmd=/usr/bin/file
  4470. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4471. ;;
  4472. *nto* | *qnx*)
  4473. lt_cv_deplibs_check_method=pass_all
  4474. ;;
  4475. openbsd*)
  4476. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4477. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4478. else
  4479. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4480. fi
  4481. ;;
  4482. osf3* | osf4* | osf5*)
  4483. lt_cv_deplibs_check_method=pass_all
  4484. ;;
  4485. rdos*)
  4486. lt_cv_deplibs_check_method=pass_all
  4487. ;;
  4488. solaris*)
  4489. lt_cv_deplibs_check_method=pass_all
  4490. ;;
  4491. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4492. lt_cv_deplibs_check_method=pass_all
  4493. ;;
  4494. sysv4 | sysv4.3*)
  4495. case $host_vendor in
  4496. motorola)
  4497. 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]'
  4498. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4499. ;;
  4500. ncr)
  4501. lt_cv_deplibs_check_method=pass_all
  4502. ;;
  4503. sequent)
  4504. lt_cv_file_magic_cmd='/bin/file'
  4505. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4506. ;;
  4507. sni)
  4508. lt_cv_file_magic_cmd='/bin/file'
  4509. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4510. lt_cv_file_magic_test_file=/lib/libc.so
  4511. ;;
  4512. siemens)
  4513. lt_cv_deplibs_check_method=pass_all
  4514. ;;
  4515. pc)
  4516. lt_cv_deplibs_check_method=pass_all
  4517. ;;
  4518. esac
  4519. ;;
  4520. tpf*)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. esac
  4524. fi
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4526. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4527. file_magic_glob=
  4528. want_nocaseglob=no
  4529. if test "$build" = "$host"; then
  4530. case $host_os in
  4531. mingw* | pw32*)
  4532. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4533. want_nocaseglob=yes
  4534. else
  4535. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4536. fi
  4537. ;;
  4538. esac
  4539. fi
  4540. file_magic_cmd=$lt_cv_file_magic_cmd
  4541. deplibs_check_method=$lt_cv_deplibs_check_method
  4542. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4543. if test -n "$ac_tool_prefix"; then
  4544. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4545. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4547. $as_echo_n "checking for $ac_word... " >&6; }
  4548. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. if test -n "$DLLTOOL"; then
  4552. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4553. else
  4554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4555. for as_dir in $PATH
  4556. do
  4557. IFS=$as_save_IFS
  4558. test -z "$as_dir" && as_dir=.
  4559. for ac_exec_ext in '' $ac_executable_extensions; do
  4560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4561. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4563. break 2
  4564. fi
  4565. done
  4566. done
  4567. IFS=$as_save_IFS
  4568. fi
  4569. fi
  4570. DLLTOOL=$ac_cv_prog_DLLTOOL
  4571. if test -n "$DLLTOOL"; then
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4573. $as_echo "$DLLTOOL" >&6; }
  4574. else
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4576. $as_echo "no" >&6; }
  4577. fi
  4578. fi
  4579. if test -z "$ac_cv_prog_DLLTOOL"; then
  4580. ac_ct_DLLTOOL=$DLLTOOL
  4581. # Extract the first word of "dlltool", so it can be a program name with args.
  4582. set dummy dlltool; ac_word=$2
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4584. $as_echo_n "checking for $ac_word... " >&6; }
  4585. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. if test -n "$ac_ct_DLLTOOL"; then
  4589. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4590. else
  4591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4592. for as_dir in $PATH
  4593. do
  4594. IFS=$as_save_IFS
  4595. test -z "$as_dir" && as_dir=.
  4596. for ac_exec_ext in '' $ac_executable_extensions; do
  4597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4598. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4600. break 2
  4601. fi
  4602. done
  4603. done
  4604. IFS=$as_save_IFS
  4605. fi
  4606. fi
  4607. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4608. if test -n "$ac_ct_DLLTOOL"; then
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4610. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4611. else
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4613. $as_echo "no" >&6; }
  4614. fi
  4615. if test "x$ac_ct_DLLTOOL" = x; then
  4616. DLLTOOL="false"
  4617. else
  4618. case $cross_compiling:$ac_tool_warned in
  4619. yes:)
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4621. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4622. ac_tool_warned=yes ;;
  4623. esac
  4624. DLLTOOL=$ac_ct_DLLTOOL
  4625. fi
  4626. else
  4627. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4628. fi
  4629. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4631. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4632. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4633. $as_echo_n "(cached) " >&6
  4634. else
  4635. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4636. case $host_os in
  4637. cygwin* | mingw* | pw32* | cegcc*)
  4638. # two different shell functions defined in ltmain.sh
  4639. # decide which to use based on capabilities of $DLLTOOL
  4640. case `$DLLTOOL --help 2>&1` in
  4641. *--identify-strict*)
  4642. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4643. ;;
  4644. *)
  4645. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4646. ;;
  4647. esac
  4648. ;;
  4649. *)
  4650. # fallback: assume linklib IS sharedlib
  4651. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4652. ;;
  4653. esac
  4654. fi
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4656. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4657. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4658. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4659. if test -n "$ac_tool_prefix"; then
  4660. for ac_prog in ar
  4661. do
  4662. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4663. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4665. $as_echo_n "checking for $ac_word... " >&6; }
  4666. if ${ac_cv_prog_AR+:} false; then :
  4667. $as_echo_n "(cached) " >&6
  4668. else
  4669. if test -n "$AR"; then
  4670. ac_cv_prog_AR="$AR" # Let the user override the test.
  4671. else
  4672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4673. for as_dir in $PATH
  4674. do
  4675. IFS=$as_save_IFS
  4676. test -z "$as_dir" && as_dir=.
  4677. for ac_exec_ext in '' $ac_executable_extensions; do
  4678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4679. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4681. break 2
  4682. fi
  4683. done
  4684. done
  4685. IFS=$as_save_IFS
  4686. fi
  4687. fi
  4688. AR=$ac_cv_prog_AR
  4689. if test -n "$AR"; then
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4691. $as_echo "$AR" >&6; }
  4692. else
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4694. $as_echo "no" >&6; }
  4695. fi
  4696. test -n "$AR" && break
  4697. done
  4698. fi
  4699. if test -z "$AR"; then
  4700. ac_ct_AR=$AR
  4701. for ac_prog in ar
  4702. do
  4703. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4704. set dummy $ac_prog; ac_word=$2
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4706. $as_echo_n "checking for $ac_word... " >&6; }
  4707. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4708. $as_echo_n "(cached) " >&6
  4709. else
  4710. if test -n "$ac_ct_AR"; then
  4711. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4712. else
  4713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4714. for as_dir in $PATH
  4715. do
  4716. IFS=$as_save_IFS
  4717. test -z "$as_dir" && as_dir=.
  4718. for ac_exec_ext in '' $ac_executable_extensions; do
  4719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4720. ac_cv_prog_ac_ct_AR="$ac_prog"
  4721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4722. break 2
  4723. fi
  4724. done
  4725. done
  4726. IFS=$as_save_IFS
  4727. fi
  4728. fi
  4729. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4730. if test -n "$ac_ct_AR"; then
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4732. $as_echo "$ac_ct_AR" >&6; }
  4733. else
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4735. $as_echo "no" >&6; }
  4736. fi
  4737. test -n "$ac_ct_AR" && break
  4738. done
  4739. if test "x$ac_ct_AR" = x; then
  4740. AR="false"
  4741. else
  4742. case $cross_compiling:$ac_tool_warned in
  4743. yes:)
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4746. ac_tool_warned=yes ;;
  4747. esac
  4748. AR=$ac_ct_AR
  4749. fi
  4750. fi
  4751. : ${AR=ar}
  4752. : ${AR_FLAGS=cru}
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4754. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4755. if ${lt_cv_ar_at_file+:} false; then :
  4756. $as_echo_n "(cached) " >&6
  4757. else
  4758. lt_cv_ar_at_file=no
  4759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4760. /* end confdefs.h. */
  4761. int
  4762. main ()
  4763. {
  4764. ;
  4765. return 0;
  4766. }
  4767. _ACEOF
  4768. if ac_fn_c_try_compile "$LINENO"; then :
  4769. echo conftest.$ac_objext > conftest.lst
  4770. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4771. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4772. (eval $lt_ar_try) 2>&5
  4773. ac_status=$?
  4774. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4775. test $ac_status = 0; }
  4776. if test "$ac_status" -eq 0; then
  4777. # Ensure the archiver fails upon bogus file names.
  4778. rm -f conftest.$ac_objext libconftest.a
  4779. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4780. (eval $lt_ar_try) 2>&5
  4781. ac_status=$?
  4782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4783. test $ac_status = 0; }
  4784. if test "$ac_status" -ne 0; then
  4785. lt_cv_ar_at_file=@
  4786. fi
  4787. fi
  4788. rm -f conftest.* libconftest.a
  4789. fi
  4790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4791. fi
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4793. $as_echo "$lt_cv_ar_at_file" >&6; }
  4794. if test "x$lt_cv_ar_at_file" = xno; then
  4795. archiver_list_spec=
  4796. else
  4797. archiver_list_spec=$lt_cv_ar_at_file
  4798. fi
  4799. if test -n "$ac_tool_prefix"; then
  4800. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4801. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4803. $as_echo_n "checking for $ac_word... " >&6; }
  4804. if ${ac_cv_prog_STRIP+:} false; then :
  4805. $as_echo_n "(cached) " >&6
  4806. else
  4807. if test -n "$STRIP"; then
  4808. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4809. else
  4810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4811. for as_dir in $PATH
  4812. do
  4813. IFS=$as_save_IFS
  4814. test -z "$as_dir" && as_dir=.
  4815. for ac_exec_ext in '' $ac_executable_extensions; do
  4816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4817. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4819. break 2
  4820. fi
  4821. done
  4822. done
  4823. IFS=$as_save_IFS
  4824. fi
  4825. fi
  4826. STRIP=$ac_cv_prog_STRIP
  4827. if test -n "$STRIP"; then
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4829. $as_echo "$STRIP" >&6; }
  4830. else
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4832. $as_echo "no" >&6; }
  4833. fi
  4834. fi
  4835. if test -z "$ac_cv_prog_STRIP"; then
  4836. ac_ct_STRIP=$STRIP
  4837. # Extract the first word of "strip", so it can be a program name with args.
  4838. set dummy strip; ac_word=$2
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4840. $as_echo_n "checking for $ac_word... " >&6; }
  4841. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4842. $as_echo_n "(cached) " >&6
  4843. else
  4844. if test -n "$ac_ct_STRIP"; then
  4845. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4846. else
  4847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4848. for as_dir in $PATH
  4849. do
  4850. IFS=$as_save_IFS
  4851. test -z "$as_dir" && as_dir=.
  4852. for ac_exec_ext in '' $ac_executable_extensions; do
  4853. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4854. ac_cv_prog_ac_ct_STRIP="strip"
  4855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4856. break 2
  4857. fi
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. fi
  4862. fi
  4863. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4864. if test -n "$ac_ct_STRIP"; then
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4866. $as_echo "$ac_ct_STRIP" >&6; }
  4867. else
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4869. $as_echo "no" >&6; }
  4870. fi
  4871. if test "x$ac_ct_STRIP" = x; then
  4872. STRIP=":"
  4873. else
  4874. case $cross_compiling:$ac_tool_warned in
  4875. yes:)
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4877. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4878. ac_tool_warned=yes ;;
  4879. esac
  4880. STRIP=$ac_ct_STRIP
  4881. fi
  4882. else
  4883. STRIP="$ac_cv_prog_STRIP"
  4884. fi
  4885. test -z "$STRIP" && STRIP=:
  4886. if test -n "$ac_tool_prefix"; then
  4887. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4888. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4890. $as_echo_n "checking for $ac_word... " >&6; }
  4891. if ${ac_cv_prog_RANLIB+:} false; then :
  4892. $as_echo_n "(cached) " >&6
  4893. else
  4894. if test -n "$RANLIB"; then
  4895. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4896. else
  4897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4898. for as_dir in $PATH
  4899. do
  4900. IFS=$as_save_IFS
  4901. test -z "$as_dir" && as_dir=.
  4902. for ac_exec_ext in '' $ac_executable_extensions; do
  4903. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4904. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4906. break 2
  4907. fi
  4908. done
  4909. done
  4910. IFS=$as_save_IFS
  4911. fi
  4912. fi
  4913. RANLIB=$ac_cv_prog_RANLIB
  4914. if test -n "$RANLIB"; then
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4916. $as_echo "$RANLIB" >&6; }
  4917. else
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4919. $as_echo "no" >&6; }
  4920. fi
  4921. fi
  4922. if test -z "$ac_cv_prog_RANLIB"; then
  4923. ac_ct_RANLIB=$RANLIB
  4924. # Extract the first word of "ranlib", so it can be a program name with args.
  4925. set dummy ranlib; ac_word=$2
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4927. $as_echo_n "checking for $ac_word... " >&6; }
  4928. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. if test -n "$ac_ct_RANLIB"; then
  4932. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4933. else
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_exec_ext in '' $ac_executable_extensions; do
  4940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4941. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. fi
  4949. fi
  4950. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4951. if test -n "$ac_ct_RANLIB"; then
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4953. $as_echo "$ac_ct_RANLIB" >&6; }
  4954. else
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4956. $as_echo "no" >&6; }
  4957. fi
  4958. if test "x$ac_ct_RANLIB" = x; then
  4959. RANLIB=":"
  4960. else
  4961. case $cross_compiling:$ac_tool_warned in
  4962. yes:)
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4965. ac_tool_warned=yes ;;
  4966. esac
  4967. RANLIB=$ac_ct_RANLIB
  4968. fi
  4969. else
  4970. RANLIB="$ac_cv_prog_RANLIB"
  4971. fi
  4972. test -z "$RANLIB" && RANLIB=:
  4973. # Determine commands to create old-style static archives.
  4974. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4975. old_postinstall_cmds='chmod 644 $oldlib'
  4976. old_postuninstall_cmds=
  4977. if test -n "$RANLIB"; then
  4978. case $host_os in
  4979. openbsd*)
  4980. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4981. ;;
  4982. *)
  4983. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4984. ;;
  4985. esac
  4986. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4987. fi
  4988. case $host_os in
  4989. darwin*)
  4990. lock_old_archive_extraction=yes ;;
  4991. *)
  4992. lock_old_archive_extraction=no ;;
  4993. esac
  4994. for ac_prog in gawk mawk nawk awk
  4995. do
  4996. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4997. set dummy $ac_prog; ac_word=$2
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4999. $as_echo_n "checking for $ac_word... " >&6; }
  5000. if ${ac_cv_prog_AWK+:} false; then :
  5001. $as_echo_n "(cached) " >&6
  5002. else
  5003. if test -n "$AWK"; then
  5004. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5005. else
  5006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5007. for as_dir in $PATH
  5008. do
  5009. IFS=$as_save_IFS
  5010. test -z "$as_dir" && as_dir=.
  5011. for ac_exec_ext in '' $ac_executable_extensions; do
  5012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5013. ac_cv_prog_AWK="$ac_prog"
  5014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5015. break 2
  5016. fi
  5017. done
  5018. done
  5019. IFS=$as_save_IFS
  5020. fi
  5021. fi
  5022. AWK=$ac_cv_prog_AWK
  5023. if test -n "$AWK"; then
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5025. $as_echo "$AWK" >&6; }
  5026. else
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5028. $as_echo "no" >&6; }
  5029. fi
  5030. test -n "$AWK" && break
  5031. done
  5032. # If no C compiler was specified, use CC.
  5033. LTCC=${LTCC-"$CC"}
  5034. # If no C compiler flags were specified, use CFLAGS.
  5035. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5036. # Allow CC to be a program name with arguments.
  5037. compiler=$CC
  5038. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5040. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5041. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. # These are sane defaults that work on at least a few old systems.
  5045. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5046. # Character class describing NM global symbol codes.
  5047. symcode='[BCDEGRST]'
  5048. # Regexp to match symbols that can be accessed directly from C.
  5049. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5050. # Define system-specific variables.
  5051. case $host_os in
  5052. aix*)
  5053. symcode='[BCDT]'
  5054. ;;
  5055. cygwin* | mingw* | pw32* | cegcc*)
  5056. symcode='[ABCDGISTW]'
  5057. ;;
  5058. hpux*)
  5059. if test "$host_cpu" = ia64; then
  5060. symcode='[ABCDEGRST]'
  5061. fi
  5062. ;;
  5063. irix* | nonstopux*)
  5064. symcode='[BCDEGRST]'
  5065. ;;
  5066. osf*)
  5067. symcode='[BCDEGQRST]'
  5068. ;;
  5069. solaris*)
  5070. symcode='[BDRT]'
  5071. ;;
  5072. sco3.2v5*)
  5073. symcode='[DT]'
  5074. ;;
  5075. sysv4.2uw2*)
  5076. symcode='[DT]'
  5077. ;;
  5078. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5079. symcode='[ABDT]'
  5080. ;;
  5081. sysv4)
  5082. symcode='[DFNSTU]'
  5083. ;;
  5084. esac
  5085. # If we're using GNU nm, then use its standard symbol codes.
  5086. case `$NM -V 2>&1` in
  5087. *GNU* | *'with BFD'*)
  5088. symcode='[ABCDGIRSTW]' ;;
  5089. esac
  5090. # Transform an extracted symbol line into a proper C declaration.
  5091. # Some systems (esp. on ia64) link data and code symbols differently,
  5092. # so use this general approach.
  5093. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5094. # Transform an extracted symbol line into symbol name and symbol address
  5095. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5096. 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'"
  5097. # Handle CRLF in mingw tool chain
  5098. opt_cr=
  5099. case $build_os in
  5100. mingw*)
  5101. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5102. ;;
  5103. esac
  5104. # Try without a prefix underscore, then with it.
  5105. for ac_symprfx in "" "_"; do
  5106. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5107. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5108. # Write the raw and C identifiers.
  5109. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5110. # Fake it for dumpbin and say T for any non-static function
  5111. # and D for any global variable.
  5112. # Also find C++ and __fastcall symbols from MSVC++,
  5113. # which start with @ or ?.
  5114. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5115. " {last_section=section; section=\$ 3};"\
  5116. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5117. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5118. " \$ 0!~/External *\|/{next};"\
  5119. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5120. " {if(hide[section]) next};"\
  5121. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5122. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5123. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5124. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5125. " ' prfx=^$ac_symprfx"
  5126. else
  5127. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5128. fi
  5129. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5130. # Check to see that the pipe works correctly.
  5131. pipe_works=no
  5132. rm -f conftest*
  5133. cat > conftest.$ac_ext <<_LT_EOF
  5134. #ifdef __cplusplus
  5135. extern "C" {
  5136. #endif
  5137. char nm_test_var;
  5138. void nm_test_func(void);
  5139. void nm_test_func(void){}
  5140. #ifdef __cplusplus
  5141. }
  5142. #endif
  5143. int main(){nm_test_var='a';nm_test_func();return(0);}
  5144. _LT_EOF
  5145. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5146. (eval $ac_compile) 2>&5
  5147. ac_status=$?
  5148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5149. test $ac_status = 0; }; then
  5150. # Now try to grab the symbols.
  5151. nlist=conftest.nm
  5152. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5153. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5154. ac_status=$?
  5155. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5156. test $ac_status = 0; } && test -s "$nlist"; then
  5157. # Try sorting and uniquifying the output.
  5158. if sort "$nlist" | uniq > "$nlist"T; then
  5159. mv -f "$nlist"T "$nlist"
  5160. else
  5161. rm -f "$nlist"T
  5162. fi
  5163. # Make sure that we snagged all the symbols we need.
  5164. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5165. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5166. cat <<_LT_EOF > conftest.$ac_ext
  5167. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5168. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5169. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5170. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5171. # define LT_DLSYM_CONST
  5172. #elif defined(__osf__)
  5173. /* This system does not cope well with relocations in const data. */
  5174. # define LT_DLSYM_CONST
  5175. #else
  5176. # define LT_DLSYM_CONST const
  5177. #endif
  5178. #ifdef __cplusplus
  5179. extern "C" {
  5180. #endif
  5181. _LT_EOF
  5182. # Now generate the symbol file.
  5183. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5184. cat <<_LT_EOF >> conftest.$ac_ext
  5185. /* The mapping between symbol names and symbols. */
  5186. LT_DLSYM_CONST struct {
  5187. const char *name;
  5188. void *address;
  5189. }
  5190. lt__PROGRAM__LTX_preloaded_symbols[] =
  5191. {
  5192. { "@PROGRAM@", (void *) 0 },
  5193. _LT_EOF
  5194. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5195. cat <<\_LT_EOF >> conftest.$ac_ext
  5196. {0, (void *) 0}
  5197. };
  5198. /* This works around a problem in FreeBSD linker */
  5199. #ifdef FREEBSD_WORKAROUND
  5200. static const void *lt_preloaded_setup() {
  5201. return lt__PROGRAM__LTX_preloaded_symbols;
  5202. }
  5203. #endif
  5204. #ifdef __cplusplus
  5205. }
  5206. #endif
  5207. _LT_EOF
  5208. # Now try linking the two files.
  5209. mv conftest.$ac_objext conftstm.$ac_objext
  5210. lt_globsym_save_LIBS=$LIBS
  5211. lt_globsym_save_CFLAGS=$CFLAGS
  5212. LIBS="conftstm.$ac_objext"
  5213. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5214. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5215. (eval $ac_link) 2>&5
  5216. ac_status=$?
  5217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5218. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5219. pipe_works=yes
  5220. fi
  5221. LIBS=$lt_globsym_save_LIBS
  5222. CFLAGS=$lt_globsym_save_CFLAGS
  5223. else
  5224. echo "cannot find nm_test_func in $nlist" >&5
  5225. fi
  5226. else
  5227. echo "cannot find nm_test_var in $nlist" >&5
  5228. fi
  5229. else
  5230. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5231. fi
  5232. else
  5233. echo "$progname: failed program was:" >&5
  5234. cat conftest.$ac_ext >&5
  5235. fi
  5236. rm -rf conftest* conftst*
  5237. # Do not use the global_symbol_pipe unless it works.
  5238. if test "$pipe_works" = yes; then
  5239. break
  5240. else
  5241. lt_cv_sys_global_symbol_pipe=
  5242. fi
  5243. done
  5244. fi
  5245. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5246. lt_cv_sys_global_symbol_to_cdecl=
  5247. fi
  5248. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5250. $as_echo "failed" >&6; }
  5251. else
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5253. $as_echo "ok" >&6; }
  5254. fi
  5255. # Response file support.
  5256. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5257. nm_file_list_spec='@'
  5258. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5259. nm_file_list_spec='@'
  5260. fi
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5262. $as_echo_n "checking for sysroot... " >&6; }
  5263. # Check whether --with-sysroot was given.
  5264. if test "${with_sysroot+set}" = set; then :
  5265. withval=$with_sysroot;
  5266. else
  5267. with_sysroot=no
  5268. fi
  5269. lt_sysroot=
  5270. case ${with_sysroot} in #(
  5271. yes)
  5272. if test "$GCC" = yes; then
  5273. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5274. fi
  5275. ;; #(
  5276. /*)
  5277. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5278. ;; #(
  5279. no|'')
  5280. ;; #(
  5281. *)
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5283. $as_echo "${with_sysroot}" >&6; }
  5284. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5285. ;;
  5286. esac
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5288. $as_echo "${lt_sysroot:-no}" >&6; }
  5289. # Check whether --enable-libtool-lock was given.
  5290. if test "${enable_libtool_lock+set}" = set; then :
  5291. enableval=$enable_libtool_lock;
  5292. fi
  5293. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5294. # Some flags need to be propagated to the compiler or linker for good
  5295. # libtool support.
  5296. case $host in
  5297. ia64-*-hpux*)
  5298. # Find out which ABI we are using.
  5299. echo 'int i;' > conftest.$ac_ext
  5300. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5301. (eval $ac_compile) 2>&5
  5302. ac_status=$?
  5303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5304. test $ac_status = 0; }; then
  5305. case `/usr/bin/file conftest.$ac_objext` in
  5306. *ELF-32*)
  5307. HPUX_IA64_MODE="32"
  5308. ;;
  5309. *ELF-64*)
  5310. HPUX_IA64_MODE="64"
  5311. ;;
  5312. esac
  5313. fi
  5314. rm -rf conftest*
  5315. ;;
  5316. *-*-irix6*)
  5317. # Find out which ABI we are using.
  5318. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5320. (eval $ac_compile) 2>&5
  5321. ac_status=$?
  5322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5323. test $ac_status = 0; }; then
  5324. if test "$lt_cv_prog_gnu_ld" = yes; then
  5325. case `/usr/bin/file conftest.$ac_objext` in
  5326. *32-bit*)
  5327. LD="${LD-ld} -melf32bsmip"
  5328. ;;
  5329. *N32*)
  5330. LD="${LD-ld} -melf32bmipn32"
  5331. ;;
  5332. *64-bit*)
  5333. LD="${LD-ld} -melf64bmip"
  5334. ;;
  5335. esac
  5336. else
  5337. case `/usr/bin/file conftest.$ac_objext` in
  5338. *32-bit*)
  5339. LD="${LD-ld} -32"
  5340. ;;
  5341. *N32*)
  5342. LD="${LD-ld} -n32"
  5343. ;;
  5344. *64-bit*)
  5345. LD="${LD-ld} -64"
  5346. ;;
  5347. esac
  5348. fi
  5349. fi
  5350. rm -rf conftest*
  5351. ;;
  5352. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5353. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5354. # Find out which ABI we are using.
  5355. echo 'int i;' > conftest.$ac_ext
  5356. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5357. (eval $ac_compile) 2>&5
  5358. ac_status=$?
  5359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5360. test $ac_status = 0; }; then
  5361. case `/usr/bin/file conftest.o` in
  5362. *32-bit*)
  5363. case $host in
  5364. x86_64-*kfreebsd*-gnu)
  5365. LD="${LD-ld} -m elf_i386_fbsd"
  5366. ;;
  5367. x86_64-*linux*)
  5368. LD="${LD-ld} -m elf_i386"
  5369. ;;
  5370. ppc64-*linux*|powerpc64-*linux*)
  5371. LD="${LD-ld} -m elf32ppclinux"
  5372. ;;
  5373. s390x-*linux*)
  5374. LD="${LD-ld} -m elf_s390"
  5375. ;;
  5376. sparc64-*linux*)
  5377. LD="${LD-ld} -m elf32_sparc"
  5378. ;;
  5379. esac
  5380. ;;
  5381. *64-bit*)
  5382. case $host in
  5383. x86_64-*kfreebsd*-gnu)
  5384. LD="${LD-ld} -m elf_x86_64_fbsd"
  5385. ;;
  5386. x86_64-*linux*)
  5387. LD="${LD-ld} -m elf_x86_64"
  5388. ;;
  5389. powerpc64le-*linux*)
  5390. LD="${LD-ld} -m elf64lppc"
  5391. ;;
  5392. powerpc64-*linux*)
  5393. LD="${LD-ld} -m elf64ppc"
  5394. ;;
  5395. s390*-*linux*|s390*-*tpf*)
  5396. LD="${LD-ld} -m elf64_s390"
  5397. ;;
  5398. sparc*-*linux*)
  5399. LD="${LD-ld} -m elf64_sparc"
  5400. ;;
  5401. esac
  5402. ;;
  5403. esac
  5404. fi
  5405. rm -rf conftest*
  5406. ;;
  5407. *-*-sco3.2v5*)
  5408. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5409. SAVE_CFLAGS="$CFLAGS"
  5410. CFLAGS="$CFLAGS -belf"
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5412. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5413. if ${lt_cv_cc_needs_belf+:} false; then :
  5414. $as_echo_n "(cached) " >&6
  5415. else
  5416. ac_ext=c
  5417. ac_cpp='$CPP $CPPFLAGS'
  5418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5422. /* end confdefs.h. */
  5423. int
  5424. main ()
  5425. {
  5426. ;
  5427. return 0;
  5428. }
  5429. _ACEOF
  5430. if ac_fn_c_try_link "$LINENO"; then :
  5431. lt_cv_cc_needs_belf=yes
  5432. else
  5433. lt_cv_cc_needs_belf=no
  5434. fi
  5435. rm -f core conftest.err conftest.$ac_objext \
  5436. conftest$ac_exeext conftest.$ac_ext
  5437. ac_ext=c
  5438. ac_cpp='$CPP $CPPFLAGS'
  5439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5442. fi
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5444. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5445. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5446. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5447. CFLAGS="$SAVE_CFLAGS"
  5448. fi
  5449. ;;
  5450. *-*solaris*)
  5451. # Find out which ABI we are using.
  5452. echo 'int i;' > conftest.$ac_ext
  5453. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5454. (eval $ac_compile) 2>&5
  5455. ac_status=$?
  5456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5457. test $ac_status = 0; }; then
  5458. case `/usr/bin/file conftest.o` in
  5459. *64-bit*)
  5460. case $lt_cv_prog_gnu_ld in
  5461. yes*)
  5462. case $host in
  5463. i?86-*-solaris*)
  5464. LD="${LD-ld} -m elf_x86_64"
  5465. ;;
  5466. sparc*-*-solaris*)
  5467. LD="${LD-ld} -m elf64_sparc"
  5468. ;;
  5469. esac
  5470. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5471. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5472. LD="${LD-ld}_sol2"
  5473. fi
  5474. ;;
  5475. *)
  5476. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5477. LD="${LD-ld} -64"
  5478. fi
  5479. ;;
  5480. esac
  5481. ;;
  5482. esac
  5483. fi
  5484. rm -rf conftest*
  5485. ;;
  5486. esac
  5487. need_locks="$enable_libtool_lock"
  5488. if test -n "$ac_tool_prefix"; then
  5489. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5490. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5492. $as_echo_n "checking for $ac_word... " >&6; }
  5493. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. if test -n "$MANIFEST_TOOL"; then
  5497. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5498. else
  5499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5500. for as_dir in $PATH
  5501. do
  5502. IFS=$as_save_IFS
  5503. test -z "$as_dir" && as_dir=.
  5504. for ac_exec_ext in '' $ac_executable_extensions; do
  5505. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5506. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5508. break 2
  5509. fi
  5510. done
  5511. done
  5512. IFS=$as_save_IFS
  5513. fi
  5514. fi
  5515. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5516. if test -n "$MANIFEST_TOOL"; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5518. $as_echo "$MANIFEST_TOOL" >&6; }
  5519. else
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5521. $as_echo "no" >&6; }
  5522. fi
  5523. fi
  5524. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5525. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5526. # Extract the first word of "mt", so it can be a program name with args.
  5527. set dummy mt; ac_word=$2
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. $as_echo_n "checking for $ac_word... " >&6; }
  5530. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5534. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5535. else
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5543. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. fi
  5551. fi
  5552. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5553. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5555. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5556. else
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5558. $as_echo "no" >&6; }
  5559. fi
  5560. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5561. MANIFEST_TOOL=":"
  5562. else
  5563. case $cross_compiling:$ac_tool_warned in
  5564. yes:)
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5566. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5567. ac_tool_warned=yes ;;
  5568. esac
  5569. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5570. fi
  5571. else
  5572. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5573. fi
  5574. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5576. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5577. if ${lt_cv_path_mainfest_tool+:} false; then :
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. lt_cv_path_mainfest_tool=no
  5581. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5582. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5583. cat conftest.err >&5
  5584. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5585. lt_cv_path_mainfest_tool=yes
  5586. fi
  5587. rm -f conftest*
  5588. fi
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5590. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5591. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5592. MANIFEST_TOOL=:
  5593. fi
  5594. case $host_os in
  5595. rhapsody* | darwin*)
  5596. if test -n "$ac_tool_prefix"; then
  5597. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5598. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5600. $as_echo_n "checking for $ac_word... " >&6; }
  5601. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5602. $as_echo_n "(cached) " >&6
  5603. else
  5604. if test -n "$DSYMUTIL"; then
  5605. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5606. else
  5607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5608. for as_dir in $PATH
  5609. do
  5610. IFS=$as_save_IFS
  5611. test -z "$as_dir" && as_dir=.
  5612. for ac_exec_ext in '' $ac_executable_extensions; do
  5613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5614. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5616. break 2
  5617. fi
  5618. done
  5619. done
  5620. IFS=$as_save_IFS
  5621. fi
  5622. fi
  5623. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5624. if test -n "$DSYMUTIL"; then
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5626. $as_echo "$DSYMUTIL" >&6; }
  5627. else
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5629. $as_echo "no" >&6; }
  5630. fi
  5631. fi
  5632. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5633. ac_ct_DSYMUTIL=$DSYMUTIL
  5634. # Extract the first word of "dsymutil", so it can be a program name with args.
  5635. set dummy dsymutil; ac_word=$2
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5637. $as_echo_n "checking for $ac_word... " >&6; }
  5638. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5639. $as_echo_n "(cached) " >&6
  5640. else
  5641. if test -n "$ac_ct_DSYMUTIL"; then
  5642. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5643. else
  5644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5645. for as_dir in $PATH
  5646. do
  5647. IFS=$as_save_IFS
  5648. test -z "$as_dir" && as_dir=.
  5649. for ac_exec_ext in '' $ac_executable_extensions; do
  5650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5651. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5653. break 2
  5654. fi
  5655. done
  5656. done
  5657. IFS=$as_save_IFS
  5658. fi
  5659. fi
  5660. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5661. if test -n "$ac_ct_DSYMUTIL"; then
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5663. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5664. else
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5666. $as_echo "no" >&6; }
  5667. fi
  5668. if test "x$ac_ct_DSYMUTIL" = x; then
  5669. DSYMUTIL=":"
  5670. else
  5671. case $cross_compiling:$ac_tool_warned in
  5672. yes:)
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5675. ac_tool_warned=yes ;;
  5676. esac
  5677. DSYMUTIL=$ac_ct_DSYMUTIL
  5678. fi
  5679. else
  5680. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5681. fi
  5682. if test -n "$ac_tool_prefix"; then
  5683. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5684. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5686. $as_echo_n "checking for $ac_word... " >&6; }
  5687. if ${ac_cv_prog_NMEDIT+:} false; then :
  5688. $as_echo_n "(cached) " >&6
  5689. else
  5690. if test -n "$NMEDIT"; then
  5691. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5692. else
  5693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5694. for as_dir in $PATH
  5695. do
  5696. IFS=$as_save_IFS
  5697. test -z "$as_dir" && as_dir=.
  5698. for ac_exec_ext in '' $ac_executable_extensions; do
  5699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5700. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5702. break 2
  5703. fi
  5704. done
  5705. done
  5706. IFS=$as_save_IFS
  5707. fi
  5708. fi
  5709. NMEDIT=$ac_cv_prog_NMEDIT
  5710. if test -n "$NMEDIT"; then
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5712. $as_echo "$NMEDIT" >&6; }
  5713. else
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5715. $as_echo "no" >&6; }
  5716. fi
  5717. fi
  5718. if test -z "$ac_cv_prog_NMEDIT"; then
  5719. ac_ct_NMEDIT=$NMEDIT
  5720. # Extract the first word of "nmedit", so it can be a program name with args.
  5721. set dummy nmedit; ac_word=$2
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5723. $as_echo_n "checking for $ac_word... " >&6; }
  5724. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5725. $as_echo_n "(cached) " >&6
  5726. else
  5727. if test -n "$ac_ct_NMEDIT"; then
  5728. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5729. else
  5730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5731. for as_dir in $PATH
  5732. do
  5733. IFS=$as_save_IFS
  5734. test -z "$as_dir" && as_dir=.
  5735. for ac_exec_ext in '' $ac_executable_extensions; do
  5736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5737. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5739. break 2
  5740. fi
  5741. done
  5742. done
  5743. IFS=$as_save_IFS
  5744. fi
  5745. fi
  5746. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5747. if test -n "$ac_ct_NMEDIT"; then
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5749. $as_echo "$ac_ct_NMEDIT" >&6; }
  5750. else
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5752. $as_echo "no" >&6; }
  5753. fi
  5754. if test "x$ac_ct_NMEDIT" = x; then
  5755. NMEDIT=":"
  5756. else
  5757. case $cross_compiling:$ac_tool_warned in
  5758. yes:)
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5760. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5761. ac_tool_warned=yes ;;
  5762. esac
  5763. NMEDIT=$ac_ct_NMEDIT
  5764. fi
  5765. else
  5766. NMEDIT="$ac_cv_prog_NMEDIT"
  5767. fi
  5768. if test -n "$ac_tool_prefix"; then
  5769. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5770. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. $as_echo_n "checking for $ac_word... " >&6; }
  5773. if ${ac_cv_prog_LIPO+:} false; then :
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. if test -n "$LIPO"; then
  5777. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5778. else
  5779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5780. for as_dir in $PATH
  5781. do
  5782. IFS=$as_save_IFS
  5783. test -z "$as_dir" && as_dir=.
  5784. for ac_exec_ext in '' $ac_executable_extensions; do
  5785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5786. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5788. break 2
  5789. fi
  5790. done
  5791. done
  5792. IFS=$as_save_IFS
  5793. fi
  5794. fi
  5795. LIPO=$ac_cv_prog_LIPO
  5796. if test -n "$LIPO"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5798. $as_echo "$LIPO" >&6; }
  5799. else
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5801. $as_echo "no" >&6; }
  5802. fi
  5803. fi
  5804. if test -z "$ac_cv_prog_LIPO"; then
  5805. ac_ct_LIPO=$LIPO
  5806. # Extract the first word of "lipo", so it can be a program name with args.
  5807. set dummy lipo; ac_word=$2
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5809. $as_echo_n "checking for $ac_word... " >&6; }
  5810. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5811. $as_echo_n "(cached) " >&6
  5812. else
  5813. if test -n "$ac_ct_LIPO"; then
  5814. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5815. else
  5816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5817. for as_dir in $PATH
  5818. do
  5819. IFS=$as_save_IFS
  5820. test -z "$as_dir" && as_dir=.
  5821. for ac_exec_ext in '' $ac_executable_extensions; do
  5822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5823. ac_cv_prog_ac_ct_LIPO="lipo"
  5824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5825. break 2
  5826. fi
  5827. done
  5828. done
  5829. IFS=$as_save_IFS
  5830. fi
  5831. fi
  5832. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5833. if test -n "$ac_ct_LIPO"; then
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5835. $as_echo "$ac_ct_LIPO" >&6; }
  5836. else
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5838. $as_echo "no" >&6; }
  5839. fi
  5840. if test "x$ac_ct_LIPO" = x; then
  5841. LIPO=":"
  5842. else
  5843. case $cross_compiling:$ac_tool_warned in
  5844. yes:)
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5847. ac_tool_warned=yes ;;
  5848. esac
  5849. LIPO=$ac_ct_LIPO
  5850. fi
  5851. else
  5852. LIPO="$ac_cv_prog_LIPO"
  5853. fi
  5854. if test -n "$ac_tool_prefix"; then
  5855. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5856. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if ${ac_cv_prog_OTOOL+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$OTOOL"; then
  5863. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5872. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. OTOOL=$ac_cv_prog_OTOOL
  5882. if test -n "$OTOOL"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5884. $as_echo "$OTOOL" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. fi
  5890. if test -z "$ac_cv_prog_OTOOL"; then
  5891. ac_ct_OTOOL=$OTOOL
  5892. # Extract the first word of "otool", so it can be a program name with args.
  5893. set dummy otool; ac_word=$2
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5895. $as_echo_n "checking for $ac_word... " >&6; }
  5896. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. if test -n "$ac_ct_OTOOL"; then
  5900. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5901. else
  5902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5903. for as_dir in $PATH
  5904. do
  5905. IFS=$as_save_IFS
  5906. test -z "$as_dir" && as_dir=.
  5907. for ac_exec_ext in '' $ac_executable_extensions; do
  5908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5909. ac_cv_prog_ac_ct_OTOOL="otool"
  5910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5911. break 2
  5912. fi
  5913. done
  5914. done
  5915. IFS=$as_save_IFS
  5916. fi
  5917. fi
  5918. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5919. if test -n "$ac_ct_OTOOL"; then
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5921. $as_echo "$ac_ct_OTOOL" >&6; }
  5922. else
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5924. $as_echo "no" >&6; }
  5925. fi
  5926. if test "x$ac_ct_OTOOL" = x; then
  5927. OTOOL=":"
  5928. else
  5929. case $cross_compiling:$ac_tool_warned in
  5930. yes:)
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5932. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5933. ac_tool_warned=yes ;;
  5934. esac
  5935. OTOOL=$ac_ct_OTOOL
  5936. fi
  5937. else
  5938. OTOOL="$ac_cv_prog_OTOOL"
  5939. fi
  5940. if test -n "$ac_tool_prefix"; then
  5941. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5942. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5944. $as_echo_n "checking for $ac_word... " >&6; }
  5945. if ${ac_cv_prog_OTOOL64+:} false; then :
  5946. $as_echo_n "(cached) " >&6
  5947. else
  5948. if test -n "$OTOOL64"; then
  5949. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5950. else
  5951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5952. for as_dir in $PATH
  5953. do
  5954. IFS=$as_save_IFS
  5955. test -z "$as_dir" && as_dir=.
  5956. for ac_exec_ext in '' $ac_executable_extensions; do
  5957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5958. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5960. break 2
  5961. fi
  5962. done
  5963. done
  5964. IFS=$as_save_IFS
  5965. fi
  5966. fi
  5967. OTOOL64=$ac_cv_prog_OTOOL64
  5968. if test -n "$OTOOL64"; then
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5970. $as_echo "$OTOOL64" >&6; }
  5971. else
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5973. $as_echo "no" >&6; }
  5974. fi
  5975. fi
  5976. if test -z "$ac_cv_prog_OTOOL64"; then
  5977. ac_ct_OTOOL64=$OTOOL64
  5978. # Extract the first word of "otool64", so it can be a program name with args.
  5979. set dummy otool64; ac_word=$2
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5981. $as_echo_n "checking for $ac_word... " >&6; }
  5982. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5983. $as_echo_n "(cached) " >&6
  5984. else
  5985. if test -n "$ac_ct_OTOOL64"; then
  5986. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5987. else
  5988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5989. for as_dir in $PATH
  5990. do
  5991. IFS=$as_save_IFS
  5992. test -z "$as_dir" && as_dir=.
  5993. for ac_exec_ext in '' $ac_executable_extensions; do
  5994. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5995. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5997. break 2
  5998. fi
  5999. done
  6000. done
  6001. IFS=$as_save_IFS
  6002. fi
  6003. fi
  6004. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6005. if test -n "$ac_ct_OTOOL64"; then
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6007. $as_echo "$ac_ct_OTOOL64" >&6; }
  6008. else
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6010. $as_echo "no" >&6; }
  6011. fi
  6012. if test "x$ac_ct_OTOOL64" = x; then
  6013. OTOOL64=":"
  6014. else
  6015. case $cross_compiling:$ac_tool_warned in
  6016. yes:)
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6018. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6019. ac_tool_warned=yes ;;
  6020. esac
  6021. OTOOL64=$ac_ct_OTOOL64
  6022. fi
  6023. else
  6024. OTOOL64="$ac_cv_prog_OTOOL64"
  6025. fi
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6027. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6028. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6029. $as_echo_n "(cached) " >&6
  6030. else
  6031. lt_cv_apple_cc_single_mod=no
  6032. if test -z "${LT_MULTI_MODULE}"; then
  6033. # By default we will add the -single_module flag. You can override
  6034. # by either setting the environment variable LT_MULTI_MODULE
  6035. # non-empty at configure time, or by adding -multi_module to the
  6036. # link flags.
  6037. rm -rf libconftest.dylib*
  6038. echo "int foo(void){return 1;}" > conftest.c
  6039. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6040. -dynamiclib -Wl,-single_module conftest.c" >&5
  6041. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6042. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6043. _lt_result=$?
  6044. # If there is a non-empty error log, and "single_module"
  6045. # appears in it, assume the flag caused a linker warning
  6046. if test -s conftest.err && $GREP single_module conftest.err; then
  6047. cat conftest.err >&5
  6048. # Otherwise, if the output was created with a 0 exit code from
  6049. # the compiler, it worked.
  6050. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6051. lt_cv_apple_cc_single_mod=yes
  6052. else
  6053. cat conftest.err >&5
  6054. fi
  6055. rm -rf libconftest.dylib*
  6056. rm -f conftest.*
  6057. fi
  6058. fi
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6060. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6062. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6063. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6064. $as_echo_n "(cached) " >&6
  6065. else
  6066. lt_cv_ld_exported_symbols_list=no
  6067. save_LDFLAGS=$LDFLAGS
  6068. echo "_main" > conftest.sym
  6069. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6071. /* end confdefs.h. */
  6072. int
  6073. main ()
  6074. {
  6075. ;
  6076. return 0;
  6077. }
  6078. _ACEOF
  6079. if ac_fn_c_try_link "$LINENO"; then :
  6080. lt_cv_ld_exported_symbols_list=yes
  6081. else
  6082. lt_cv_ld_exported_symbols_list=no
  6083. fi
  6084. rm -f core conftest.err conftest.$ac_objext \
  6085. conftest$ac_exeext conftest.$ac_ext
  6086. LDFLAGS="$save_LDFLAGS"
  6087. fi
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6089. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6091. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6092. if ${lt_cv_ld_force_load+:} false; then :
  6093. $as_echo_n "(cached) " >&6
  6094. else
  6095. lt_cv_ld_force_load=no
  6096. cat > conftest.c << _LT_EOF
  6097. int forced_loaded() { return 2;}
  6098. _LT_EOF
  6099. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6100. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6101. echo "$AR cru libconftest.a conftest.o" >&5
  6102. $AR cru libconftest.a conftest.o 2>&5
  6103. echo "$RANLIB libconftest.a" >&5
  6104. $RANLIB libconftest.a 2>&5
  6105. cat > conftest.c << _LT_EOF
  6106. int main() { return 0;}
  6107. _LT_EOF
  6108. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6109. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6110. _lt_result=$?
  6111. if test -s conftest.err && $GREP force_load conftest.err; then
  6112. cat conftest.err >&5
  6113. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6114. lt_cv_ld_force_load=yes
  6115. else
  6116. cat conftest.err >&5
  6117. fi
  6118. rm -f conftest.err libconftest.a conftest conftest.c
  6119. rm -rf conftest.dSYM
  6120. fi
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6122. $as_echo "$lt_cv_ld_force_load" >&6; }
  6123. case $host_os in
  6124. rhapsody* | darwin1.[012])
  6125. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6126. darwin1.*)
  6127. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6128. darwin*) # darwin 5.x on
  6129. # if running on 10.5 or later, the deployment target defaults
  6130. # to the OS version, if on x86, and 10.4, the deployment
  6131. # target defaults to 10.4. Don't you love it?
  6132. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6133. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6134. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6135. 10.[012]*)
  6136. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6137. 10.*)
  6138. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6139. esac
  6140. ;;
  6141. esac
  6142. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6143. _lt_dar_single_mod='$single_module'
  6144. fi
  6145. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6146. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6147. else
  6148. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6149. fi
  6150. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6151. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6152. else
  6153. _lt_dsymutil=
  6154. fi
  6155. ;;
  6156. esac
  6157. ac_ext=c
  6158. ac_cpp='$CPP $CPPFLAGS'
  6159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6163. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6164. # On Suns, sometimes $CPP names a directory.
  6165. if test -n "$CPP" && test -d "$CPP"; then
  6166. CPP=
  6167. fi
  6168. if test -z "$CPP"; then
  6169. if ${ac_cv_prog_CPP+:} false; then :
  6170. $as_echo_n "(cached) " >&6
  6171. else
  6172. # Double quotes because CPP needs to be expanded
  6173. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6174. do
  6175. ac_preproc_ok=false
  6176. for ac_c_preproc_warn_flag in '' yes
  6177. do
  6178. # Use a header file that comes with gcc, so configuring glibc
  6179. # with a fresh cross-compiler works.
  6180. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6181. # <limits.h> exists even on freestanding compilers.
  6182. # On the NeXT, cc -E runs the code through the compiler's parser,
  6183. # not just through cpp. "Syntax error" is here to catch this case.
  6184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6185. /* end confdefs.h. */
  6186. #ifdef __STDC__
  6187. # include <limits.h>
  6188. #else
  6189. # include <assert.h>
  6190. #endif
  6191. Syntax error
  6192. _ACEOF
  6193. if ac_fn_c_try_cpp "$LINENO"; then :
  6194. else
  6195. # Broken: fails on valid input.
  6196. continue
  6197. fi
  6198. rm -f conftest.err conftest.i conftest.$ac_ext
  6199. # OK, works on sane cases. Now check whether nonexistent headers
  6200. # can be detected and how.
  6201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h. */
  6203. #include <ac_nonexistent.h>
  6204. _ACEOF
  6205. if ac_fn_c_try_cpp "$LINENO"; then :
  6206. # Broken: success on invalid input.
  6207. continue
  6208. else
  6209. # Passes both tests.
  6210. ac_preproc_ok=:
  6211. break
  6212. fi
  6213. rm -f conftest.err conftest.i conftest.$ac_ext
  6214. done
  6215. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6216. rm -f conftest.i conftest.err conftest.$ac_ext
  6217. if $ac_preproc_ok; then :
  6218. break
  6219. fi
  6220. done
  6221. ac_cv_prog_CPP=$CPP
  6222. fi
  6223. CPP=$ac_cv_prog_CPP
  6224. else
  6225. ac_cv_prog_CPP=$CPP
  6226. fi
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6228. $as_echo "$CPP" >&6; }
  6229. ac_preproc_ok=false
  6230. for ac_c_preproc_warn_flag in '' yes
  6231. do
  6232. # Use a header file that comes with gcc, so configuring glibc
  6233. # with a fresh cross-compiler works.
  6234. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6235. # <limits.h> exists even on freestanding compilers.
  6236. # On the NeXT, cc -E runs the code through the compiler's parser,
  6237. # not just through cpp. "Syntax error" is here to catch this case.
  6238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6239. /* end confdefs.h. */
  6240. #ifdef __STDC__
  6241. # include <limits.h>
  6242. #else
  6243. # include <assert.h>
  6244. #endif
  6245. Syntax error
  6246. _ACEOF
  6247. if ac_fn_c_try_cpp "$LINENO"; then :
  6248. else
  6249. # Broken: fails on valid input.
  6250. continue
  6251. fi
  6252. rm -f conftest.err conftest.i conftest.$ac_ext
  6253. # OK, works on sane cases. Now check whether nonexistent headers
  6254. # can be detected and how.
  6255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6256. /* end confdefs.h. */
  6257. #include <ac_nonexistent.h>
  6258. _ACEOF
  6259. if ac_fn_c_try_cpp "$LINENO"; then :
  6260. # Broken: success on invalid input.
  6261. continue
  6262. else
  6263. # Passes both tests.
  6264. ac_preproc_ok=:
  6265. break
  6266. fi
  6267. rm -f conftest.err conftest.i conftest.$ac_ext
  6268. done
  6269. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6270. rm -f conftest.i conftest.err conftest.$ac_ext
  6271. if $ac_preproc_ok; then :
  6272. else
  6273. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6274. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6275. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6276. See \`config.log' for more details" "$LINENO" 5; }
  6277. fi
  6278. ac_ext=c
  6279. ac_cpp='$CPP $CPPFLAGS'
  6280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6284. $as_echo_n "checking for ANSI C header files... " >&6; }
  6285. if ${ac_cv_header_stdc+:} false; then :
  6286. $as_echo_n "(cached) " >&6
  6287. else
  6288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6289. /* end confdefs.h. */
  6290. #include <stdlib.h>
  6291. #include <stdarg.h>
  6292. #include <string.h>
  6293. #include <float.h>
  6294. int
  6295. main ()
  6296. {
  6297. ;
  6298. return 0;
  6299. }
  6300. _ACEOF
  6301. if ac_fn_c_try_compile "$LINENO"; then :
  6302. ac_cv_header_stdc=yes
  6303. else
  6304. ac_cv_header_stdc=no
  6305. fi
  6306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6307. if test $ac_cv_header_stdc = yes; then
  6308. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6310. /* end confdefs.h. */
  6311. #include <string.h>
  6312. _ACEOF
  6313. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6314. $EGREP "memchr" >/dev/null 2>&1; then :
  6315. else
  6316. ac_cv_header_stdc=no
  6317. fi
  6318. rm -f conftest*
  6319. fi
  6320. if test $ac_cv_header_stdc = yes; then
  6321. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6323. /* end confdefs.h. */
  6324. #include <stdlib.h>
  6325. _ACEOF
  6326. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6327. $EGREP "free" >/dev/null 2>&1; then :
  6328. else
  6329. ac_cv_header_stdc=no
  6330. fi
  6331. rm -f conftest*
  6332. fi
  6333. if test $ac_cv_header_stdc = yes; then
  6334. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6335. if test "$cross_compiling" = yes; then :
  6336. :
  6337. else
  6338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6339. /* end confdefs.h. */
  6340. #include <ctype.h>
  6341. #include <stdlib.h>
  6342. #if ((' ' & 0x0FF) == 0x020)
  6343. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6344. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6345. #else
  6346. # define ISLOWER(c) \
  6347. (('a' <= (c) && (c) <= 'i') \
  6348. || ('j' <= (c) && (c) <= 'r') \
  6349. || ('s' <= (c) && (c) <= 'z'))
  6350. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6351. #endif
  6352. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6353. int
  6354. main ()
  6355. {
  6356. int i;
  6357. for (i = 0; i < 256; i++)
  6358. if (XOR (islower (i), ISLOWER (i))
  6359. || toupper (i) != TOUPPER (i))
  6360. return 2;
  6361. return 0;
  6362. }
  6363. _ACEOF
  6364. if ac_fn_c_try_run "$LINENO"; then :
  6365. else
  6366. ac_cv_header_stdc=no
  6367. fi
  6368. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6369. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6370. fi
  6371. fi
  6372. fi
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6374. $as_echo "$ac_cv_header_stdc" >&6; }
  6375. if test $ac_cv_header_stdc = yes; then
  6376. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6377. fi
  6378. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6379. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6380. inttypes.h stdint.h unistd.h
  6381. do :
  6382. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6383. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6384. "
  6385. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6386. cat >>confdefs.h <<_ACEOF
  6387. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6388. _ACEOF
  6389. fi
  6390. done
  6391. for ac_header in dlfcn.h
  6392. do :
  6393. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6394. "
  6395. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6396. cat >>confdefs.h <<_ACEOF
  6397. #define HAVE_DLFCN_H 1
  6398. _ACEOF
  6399. fi
  6400. done
  6401. # Set options
  6402. enable_win32_dll=yes
  6403. case $host in
  6404. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6405. if test -n "$ac_tool_prefix"; then
  6406. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6407. set dummy ${ac_tool_prefix}as; ac_word=$2
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6409. $as_echo_n "checking for $ac_word... " >&6; }
  6410. if ${ac_cv_prog_AS+:} false; then :
  6411. $as_echo_n "(cached) " >&6
  6412. else
  6413. if test -n "$AS"; then
  6414. ac_cv_prog_AS="$AS" # Let the user override the test.
  6415. else
  6416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6417. for as_dir in $PATH
  6418. do
  6419. IFS=$as_save_IFS
  6420. test -z "$as_dir" && as_dir=.
  6421. for ac_exec_ext in '' $ac_executable_extensions; do
  6422. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6423. ac_cv_prog_AS="${ac_tool_prefix}as"
  6424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6425. break 2
  6426. fi
  6427. done
  6428. done
  6429. IFS=$as_save_IFS
  6430. fi
  6431. fi
  6432. AS=$ac_cv_prog_AS
  6433. if test -n "$AS"; then
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6435. $as_echo "$AS" >&6; }
  6436. else
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6438. $as_echo "no" >&6; }
  6439. fi
  6440. fi
  6441. if test -z "$ac_cv_prog_AS"; then
  6442. ac_ct_AS=$AS
  6443. # Extract the first word of "as", so it can be a program name with args.
  6444. set dummy as; ac_word=$2
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6446. $as_echo_n "checking for $ac_word... " >&6; }
  6447. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6448. $as_echo_n "(cached) " >&6
  6449. else
  6450. if test -n "$ac_ct_AS"; then
  6451. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6452. else
  6453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6454. for as_dir in $PATH
  6455. do
  6456. IFS=$as_save_IFS
  6457. test -z "$as_dir" && as_dir=.
  6458. for ac_exec_ext in '' $ac_executable_extensions; do
  6459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6460. ac_cv_prog_ac_ct_AS="as"
  6461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6462. break 2
  6463. fi
  6464. done
  6465. done
  6466. IFS=$as_save_IFS
  6467. fi
  6468. fi
  6469. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6470. if test -n "$ac_ct_AS"; then
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6472. $as_echo "$ac_ct_AS" >&6; }
  6473. else
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6475. $as_echo "no" >&6; }
  6476. fi
  6477. if test "x$ac_ct_AS" = x; then
  6478. AS="false"
  6479. else
  6480. case $cross_compiling:$ac_tool_warned in
  6481. yes:)
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6483. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6484. ac_tool_warned=yes ;;
  6485. esac
  6486. AS=$ac_ct_AS
  6487. fi
  6488. else
  6489. AS="$ac_cv_prog_AS"
  6490. fi
  6491. if test -n "$ac_tool_prefix"; then
  6492. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6493. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6495. $as_echo_n "checking for $ac_word... " >&6; }
  6496. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. if test -n "$DLLTOOL"; then
  6500. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6501. else
  6502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6503. for as_dir in $PATH
  6504. do
  6505. IFS=$as_save_IFS
  6506. test -z "$as_dir" && as_dir=.
  6507. for ac_exec_ext in '' $ac_executable_extensions; do
  6508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6509. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6511. break 2
  6512. fi
  6513. done
  6514. done
  6515. IFS=$as_save_IFS
  6516. fi
  6517. fi
  6518. DLLTOOL=$ac_cv_prog_DLLTOOL
  6519. if test -n "$DLLTOOL"; then
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6521. $as_echo "$DLLTOOL" >&6; }
  6522. else
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6524. $as_echo "no" >&6; }
  6525. fi
  6526. fi
  6527. if test -z "$ac_cv_prog_DLLTOOL"; then
  6528. ac_ct_DLLTOOL=$DLLTOOL
  6529. # Extract the first word of "dlltool", so it can be a program name with args.
  6530. set dummy dlltool; ac_word=$2
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6532. $as_echo_n "checking for $ac_word... " >&6; }
  6533. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6534. $as_echo_n "(cached) " >&6
  6535. else
  6536. if test -n "$ac_ct_DLLTOOL"; then
  6537. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6538. else
  6539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6540. for as_dir in $PATH
  6541. do
  6542. IFS=$as_save_IFS
  6543. test -z "$as_dir" && as_dir=.
  6544. for ac_exec_ext in '' $ac_executable_extensions; do
  6545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6546. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6548. break 2
  6549. fi
  6550. done
  6551. done
  6552. IFS=$as_save_IFS
  6553. fi
  6554. fi
  6555. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6556. if test -n "$ac_ct_DLLTOOL"; then
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6558. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6559. else
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6561. $as_echo "no" >&6; }
  6562. fi
  6563. if test "x$ac_ct_DLLTOOL" = x; then
  6564. DLLTOOL="false"
  6565. else
  6566. case $cross_compiling:$ac_tool_warned in
  6567. yes:)
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6570. ac_tool_warned=yes ;;
  6571. esac
  6572. DLLTOOL=$ac_ct_DLLTOOL
  6573. fi
  6574. else
  6575. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6576. fi
  6577. if test -n "$ac_tool_prefix"; then
  6578. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6579. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6581. $as_echo_n "checking for $ac_word... " >&6; }
  6582. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6583. $as_echo_n "(cached) " >&6
  6584. else
  6585. if test -n "$OBJDUMP"; then
  6586. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6587. else
  6588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589. for as_dir in $PATH
  6590. do
  6591. IFS=$as_save_IFS
  6592. test -z "$as_dir" && as_dir=.
  6593. for ac_exec_ext in '' $ac_executable_extensions; do
  6594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6595. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6597. break 2
  6598. fi
  6599. done
  6600. done
  6601. IFS=$as_save_IFS
  6602. fi
  6603. fi
  6604. OBJDUMP=$ac_cv_prog_OBJDUMP
  6605. if test -n "$OBJDUMP"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6607. $as_echo "$OBJDUMP" >&6; }
  6608. else
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6610. $as_echo "no" >&6; }
  6611. fi
  6612. fi
  6613. if test -z "$ac_cv_prog_OBJDUMP"; then
  6614. ac_ct_OBJDUMP=$OBJDUMP
  6615. # Extract the first word of "objdump", so it can be a program name with args.
  6616. set dummy objdump; ac_word=$2
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6618. $as_echo_n "checking for $ac_word... " >&6; }
  6619. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. if test -n "$ac_ct_OBJDUMP"; then
  6623. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6624. else
  6625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6626. for as_dir in $PATH
  6627. do
  6628. IFS=$as_save_IFS
  6629. test -z "$as_dir" && as_dir=.
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6632. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6642. if test -n "$ac_ct_OBJDUMP"; then
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6644. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6645. else
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. $as_echo "no" >&6; }
  6648. fi
  6649. if test "x$ac_ct_OBJDUMP" = x; then
  6650. OBJDUMP="false"
  6651. else
  6652. case $cross_compiling:$ac_tool_warned in
  6653. yes:)
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6656. ac_tool_warned=yes ;;
  6657. esac
  6658. OBJDUMP=$ac_ct_OBJDUMP
  6659. fi
  6660. else
  6661. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6662. fi
  6663. ;;
  6664. esac
  6665. test -z "$AS" && AS=as
  6666. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6667. test -z "$OBJDUMP" && OBJDUMP=objdump
  6668. enable_dlopen=no
  6669. # Check whether --enable-shared was given.
  6670. if test "${enable_shared+set}" = set; then :
  6671. enableval=$enable_shared; p=${PACKAGE-default}
  6672. case $enableval in
  6673. yes) enable_shared=yes ;;
  6674. no) enable_shared=no ;;
  6675. *)
  6676. enable_shared=no
  6677. # Look at the argument we got. We use all the common list separators.
  6678. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6679. for pkg in $enableval; do
  6680. IFS="$lt_save_ifs"
  6681. if test "X$pkg" = "X$p"; then
  6682. enable_shared=yes
  6683. fi
  6684. done
  6685. IFS="$lt_save_ifs"
  6686. ;;
  6687. esac
  6688. else
  6689. enable_shared=yes
  6690. fi
  6691. # Check whether --enable-static was given.
  6692. if test "${enable_static+set}" = set; then :
  6693. enableval=$enable_static; p=${PACKAGE-default}
  6694. case $enableval in
  6695. yes) enable_static=yes ;;
  6696. no) enable_static=no ;;
  6697. *)
  6698. enable_static=no
  6699. # Look at the argument we got. We use all the common list separators.
  6700. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6701. for pkg in $enableval; do
  6702. IFS="$lt_save_ifs"
  6703. if test "X$pkg" = "X$p"; then
  6704. enable_static=yes
  6705. fi
  6706. done
  6707. IFS="$lt_save_ifs"
  6708. ;;
  6709. esac
  6710. else
  6711. enable_static=yes
  6712. fi
  6713. # Check whether --with-pic was given.
  6714. if test "${with_pic+set}" = set; then :
  6715. withval=$with_pic; lt_p=${PACKAGE-default}
  6716. case $withval in
  6717. yes|no) pic_mode=$withval ;;
  6718. *)
  6719. pic_mode=default
  6720. # Look at the argument we got. We use all the common list separators.
  6721. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6722. for lt_pkg in $withval; do
  6723. IFS="$lt_save_ifs"
  6724. if test "X$lt_pkg" = "X$lt_p"; then
  6725. pic_mode=yes
  6726. fi
  6727. done
  6728. IFS="$lt_save_ifs"
  6729. ;;
  6730. esac
  6731. else
  6732. pic_mode=default
  6733. fi
  6734. test -z "$pic_mode" && pic_mode=default
  6735. # Check whether --enable-fast-install was given.
  6736. if test "${enable_fast_install+set}" = set; then :
  6737. enableval=$enable_fast_install; p=${PACKAGE-default}
  6738. case $enableval in
  6739. yes) enable_fast_install=yes ;;
  6740. no) enable_fast_install=no ;;
  6741. *)
  6742. enable_fast_install=no
  6743. # Look at the argument we got. We use all the common list separators.
  6744. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6745. for pkg in $enableval; do
  6746. IFS="$lt_save_ifs"
  6747. if test "X$pkg" = "X$p"; then
  6748. enable_fast_install=yes
  6749. fi
  6750. done
  6751. IFS="$lt_save_ifs"
  6752. ;;
  6753. esac
  6754. else
  6755. enable_fast_install=yes
  6756. fi
  6757. # This can be used to rebuild libtool when needed
  6758. LIBTOOL_DEPS="$ltmain"
  6759. # Always use our own libtool.
  6760. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6761. test -z "$LN_S" && LN_S="ln -s"
  6762. if test -n "${ZSH_VERSION+set}" ; then
  6763. setopt NO_GLOB_SUBST
  6764. fi
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6766. $as_echo_n "checking for objdir... " >&6; }
  6767. if ${lt_cv_objdir+:} false; then :
  6768. $as_echo_n "(cached) " >&6
  6769. else
  6770. rm -f .libs 2>/dev/null
  6771. mkdir .libs 2>/dev/null
  6772. if test -d .libs; then
  6773. lt_cv_objdir=.libs
  6774. else
  6775. # MS-DOS does not allow filenames that begin with a dot.
  6776. lt_cv_objdir=_libs
  6777. fi
  6778. rmdir .libs 2>/dev/null
  6779. fi
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6781. $as_echo "$lt_cv_objdir" >&6; }
  6782. objdir=$lt_cv_objdir
  6783. cat >>confdefs.h <<_ACEOF
  6784. #define LT_OBJDIR "$lt_cv_objdir/"
  6785. _ACEOF
  6786. case $host_os in
  6787. aix3*)
  6788. # AIX sometimes has problems with the GCC collect2 program. For some
  6789. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6790. # vanish in a puff of smoke.
  6791. if test "X${COLLECT_NAMES+set}" != Xset; then
  6792. COLLECT_NAMES=
  6793. export COLLECT_NAMES
  6794. fi
  6795. ;;
  6796. esac
  6797. # Global variables:
  6798. ofile=libtool
  6799. can_build_shared=yes
  6800. # All known linkers require a `.a' archive for static linking (except MSVC,
  6801. # which needs '.lib').
  6802. libext=a
  6803. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6804. old_CC="$CC"
  6805. old_CFLAGS="$CFLAGS"
  6806. # Set sane defaults for various variables
  6807. test -z "$CC" && CC=cc
  6808. test -z "$LTCC" && LTCC=$CC
  6809. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6810. test -z "$LD" && LD=ld
  6811. test -z "$ac_objext" && ac_objext=o
  6812. for cc_temp in $compiler""; do
  6813. case $cc_temp in
  6814. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6815. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6816. \-*) ;;
  6817. *) break;;
  6818. esac
  6819. done
  6820. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6821. # Only perform the check for file, if the check method requires it
  6822. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6823. case $deplibs_check_method in
  6824. file_magic*)
  6825. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6827. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6828. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. case $MAGIC_CMD in
  6832. [\\/*] | ?:[\\/]*)
  6833. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6834. ;;
  6835. *)
  6836. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6837. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6838. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6839. for ac_dir in $ac_dummy; do
  6840. IFS="$lt_save_ifs"
  6841. test -z "$ac_dir" && ac_dir=.
  6842. if test -f $ac_dir/${ac_tool_prefix}file; then
  6843. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6844. if test -n "$file_magic_test_file"; then
  6845. case $deplibs_check_method in
  6846. "file_magic "*)
  6847. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6848. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6849. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6850. $EGREP "$file_magic_regex" > /dev/null; then
  6851. :
  6852. else
  6853. cat <<_LT_EOF 1>&2
  6854. *** Warning: the command libtool uses to detect shared libraries,
  6855. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6856. *** The result is that libtool may fail to recognize shared libraries
  6857. *** as such. This will affect the creation of libtool libraries that
  6858. *** depend on shared libraries, but programs linked with such libtool
  6859. *** libraries will work regardless of this problem. Nevertheless, you
  6860. *** may want to report the problem to your system manager and/or to
  6861. *** bug-libtool@gnu.org
  6862. _LT_EOF
  6863. fi ;;
  6864. esac
  6865. fi
  6866. break
  6867. fi
  6868. done
  6869. IFS="$lt_save_ifs"
  6870. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6871. ;;
  6872. esac
  6873. fi
  6874. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6875. if test -n "$MAGIC_CMD"; then
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6877. $as_echo "$MAGIC_CMD" >&6; }
  6878. else
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6880. $as_echo "no" >&6; }
  6881. fi
  6882. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6883. if test -n "$ac_tool_prefix"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6885. $as_echo_n "checking for file... " >&6; }
  6886. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6887. $as_echo_n "(cached) " >&6
  6888. else
  6889. case $MAGIC_CMD in
  6890. [\\/*] | ?:[\\/]*)
  6891. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6892. ;;
  6893. *)
  6894. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6895. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6896. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6897. for ac_dir in $ac_dummy; do
  6898. IFS="$lt_save_ifs"
  6899. test -z "$ac_dir" && ac_dir=.
  6900. if test -f $ac_dir/file; then
  6901. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6902. if test -n "$file_magic_test_file"; then
  6903. case $deplibs_check_method in
  6904. "file_magic "*)
  6905. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6906. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6907. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6908. $EGREP "$file_magic_regex" > /dev/null; then
  6909. :
  6910. else
  6911. cat <<_LT_EOF 1>&2
  6912. *** Warning: the command libtool uses to detect shared libraries,
  6913. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6914. *** The result is that libtool may fail to recognize shared libraries
  6915. *** as such. This will affect the creation of libtool libraries that
  6916. *** depend on shared libraries, but programs linked with such libtool
  6917. *** libraries will work regardless of this problem. Nevertheless, you
  6918. *** may want to report the problem to your system manager and/or to
  6919. *** bug-libtool@gnu.org
  6920. _LT_EOF
  6921. fi ;;
  6922. esac
  6923. fi
  6924. break
  6925. fi
  6926. done
  6927. IFS="$lt_save_ifs"
  6928. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6929. ;;
  6930. esac
  6931. fi
  6932. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6933. if test -n "$MAGIC_CMD"; then
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6935. $as_echo "$MAGIC_CMD" >&6; }
  6936. else
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6938. $as_echo "no" >&6; }
  6939. fi
  6940. else
  6941. MAGIC_CMD=:
  6942. fi
  6943. fi
  6944. fi
  6945. ;;
  6946. esac
  6947. # Use C for the default configuration in the libtool script
  6948. lt_save_CC="$CC"
  6949. ac_ext=c
  6950. ac_cpp='$CPP $CPPFLAGS'
  6951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6954. # Source file extension for C test sources.
  6955. ac_ext=c
  6956. # Object file extension for compiled C test sources.
  6957. objext=o
  6958. objext=$objext
  6959. # Code to be used in simple compile tests
  6960. lt_simple_compile_test_code="int some_variable = 0;"
  6961. # Code to be used in simple link tests
  6962. lt_simple_link_test_code='int main(){return(0);}'
  6963. # If no C compiler was specified, use CC.
  6964. LTCC=${LTCC-"$CC"}
  6965. # If no C compiler flags were specified, use CFLAGS.
  6966. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6967. # Allow CC to be a program name with arguments.
  6968. compiler=$CC
  6969. # Save the default compiler, since it gets overwritten when the other
  6970. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6971. compiler_DEFAULT=$CC
  6972. # save warnings/boilerplate of simple test code
  6973. ac_outfile=conftest.$ac_objext
  6974. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6975. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6976. _lt_compiler_boilerplate=`cat conftest.err`
  6977. $RM conftest*
  6978. ac_outfile=conftest.$ac_objext
  6979. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6980. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6981. _lt_linker_boilerplate=`cat conftest.err`
  6982. $RM -r conftest*
  6983. ## CAVEAT EMPTOR:
  6984. ## There is no encapsulation within the following macros, do not change
  6985. ## the running order or otherwise move them around unless you know exactly
  6986. ## what you are doing...
  6987. if test -n "$compiler"; then
  6988. lt_prog_compiler_no_builtin_flag=
  6989. if test "$GCC" = yes; then
  6990. case $cc_basename in
  6991. nvcc*)
  6992. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6993. *)
  6994. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6995. esac
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6997. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6998. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6999. $as_echo_n "(cached) " >&6
  7000. else
  7001. lt_cv_prog_compiler_rtti_exceptions=no
  7002. ac_outfile=conftest.$ac_objext
  7003. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7004. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7005. # Insert the option either (1) after the last *FLAGS variable, or
  7006. # (2) before a word containing "conftest.", or (3) at the end.
  7007. # Note that $ac_compile itself does not contain backslashes and begins
  7008. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7009. # The option is referenced via a variable to avoid confusing sed.
  7010. lt_compile=`echo "$ac_compile" | $SED \
  7011. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7012. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7013. -e 's:$: $lt_compiler_flag:'`
  7014. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7015. (eval "$lt_compile" 2>conftest.err)
  7016. ac_status=$?
  7017. cat conftest.err >&5
  7018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7019. if (exit $ac_status) && test -s "$ac_outfile"; then
  7020. # The compiler can only warn and ignore the option if not recognized
  7021. # So say no if there are warnings other than the usual output.
  7022. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7023. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7024. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7025. lt_cv_prog_compiler_rtti_exceptions=yes
  7026. fi
  7027. fi
  7028. $RM conftest*
  7029. fi
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7031. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7032. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7033. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7034. else
  7035. :
  7036. fi
  7037. fi
  7038. lt_prog_compiler_wl=
  7039. lt_prog_compiler_pic=
  7040. lt_prog_compiler_static=
  7041. if test "$GCC" = yes; then
  7042. lt_prog_compiler_wl='-Wl,'
  7043. lt_prog_compiler_static='-static'
  7044. case $host_os in
  7045. aix*)
  7046. # All AIX code is PIC.
  7047. if test "$host_cpu" = ia64; then
  7048. # AIX 5 now supports IA64 processor
  7049. lt_prog_compiler_static='-Bstatic'
  7050. fi
  7051. ;;
  7052. amigaos*)
  7053. case $host_cpu in
  7054. powerpc)
  7055. # see comment about AmigaOS4 .so support
  7056. lt_prog_compiler_pic='-fPIC'
  7057. ;;
  7058. m68k)
  7059. # FIXME: we need at least 68020 code to build shared libraries, but
  7060. # adding the `-m68020' flag to GCC prevents building anything better,
  7061. # like `-m68040'.
  7062. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7063. ;;
  7064. esac
  7065. ;;
  7066. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7067. # PIC is the default for these OSes.
  7068. ;;
  7069. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7070. # This hack is so that the source file can tell whether it is being
  7071. # built for inclusion in a dll (and should export symbols for example).
  7072. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7073. # (--disable-auto-import) libraries
  7074. lt_prog_compiler_pic='-DDLL_EXPORT'
  7075. ;;
  7076. darwin* | rhapsody*)
  7077. # PIC is the default on this platform
  7078. # Common symbols not allowed in MH_DYLIB files
  7079. lt_prog_compiler_pic='-fno-common'
  7080. ;;
  7081. haiku*)
  7082. # PIC is the default for Haiku.
  7083. # The "-static" flag exists, but is broken.
  7084. lt_prog_compiler_static=
  7085. ;;
  7086. hpux*)
  7087. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7088. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7089. # sets the default TLS model and affects inlining.
  7090. case $host_cpu in
  7091. hppa*64*)
  7092. # +Z the default
  7093. ;;
  7094. *)
  7095. lt_prog_compiler_pic='-fPIC'
  7096. ;;
  7097. esac
  7098. ;;
  7099. interix[3-9]*)
  7100. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7101. # Instead, we relocate shared libraries at runtime.
  7102. ;;
  7103. msdosdjgpp*)
  7104. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7105. # on systems that don't support them.
  7106. lt_prog_compiler_can_build_shared=no
  7107. enable_shared=no
  7108. ;;
  7109. *nto* | *qnx*)
  7110. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7111. # it will coredump.
  7112. lt_prog_compiler_pic='-fPIC -shared'
  7113. ;;
  7114. sysv4*MP*)
  7115. if test -d /usr/nec; then
  7116. lt_prog_compiler_pic=-Kconform_pic
  7117. fi
  7118. ;;
  7119. *)
  7120. lt_prog_compiler_pic='-fPIC'
  7121. ;;
  7122. esac
  7123. case $cc_basename in
  7124. nvcc*) # Cuda Compiler Driver 2.2
  7125. lt_prog_compiler_wl='-Xlinker '
  7126. if test -n "$lt_prog_compiler_pic"; then
  7127. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7128. fi
  7129. ;;
  7130. esac
  7131. else
  7132. # PORTME Check for flag to pass linker flags through the system compiler.
  7133. case $host_os in
  7134. aix*)
  7135. lt_prog_compiler_wl='-Wl,'
  7136. if test "$host_cpu" = ia64; then
  7137. # AIX 5 now supports IA64 processor
  7138. lt_prog_compiler_static='-Bstatic'
  7139. else
  7140. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7141. fi
  7142. ;;
  7143. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7144. # This hack is so that the source file can tell whether it is being
  7145. # built for inclusion in a dll (and should export symbols for example).
  7146. lt_prog_compiler_pic='-DDLL_EXPORT'
  7147. ;;
  7148. hpux9* | hpux10* | hpux11*)
  7149. lt_prog_compiler_wl='-Wl,'
  7150. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7151. # not for PA HP-UX.
  7152. case $host_cpu in
  7153. hppa*64*|ia64*)
  7154. # +Z the default
  7155. ;;
  7156. *)
  7157. lt_prog_compiler_pic='+Z'
  7158. ;;
  7159. esac
  7160. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7161. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7162. ;;
  7163. irix5* | irix6* | nonstopux*)
  7164. lt_prog_compiler_wl='-Wl,'
  7165. # PIC (with -KPIC) is the default.
  7166. lt_prog_compiler_static='-non_shared'
  7167. ;;
  7168. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7169. case $cc_basename in
  7170. # old Intel for x86_64 which still supported -KPIC.
  7171. ecc*)
  7172. lt_prog_compiler_wl='-Wl,'
  7173. lt_prog_compiler_pic='-KPIC'
  7174. lt_prog_compiler_static='-static'
  7175. ;;
  7176. # icc used to be incompatible with GCC.
  7177. # ICC 10 doesn't accept -KPIC any more.
  7178. icc* | ifort*)
  7179. lt_prog_compiler_wl='-Wl,'
  7180. lt_prog_compiler_pic='-fPIC'
  7181. lt_prog_compiler_static='-static'
  7182. ;;
  7183. # Lahey Fortran 8.1.
  7184. lf95*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_pic='--shared'
  7187. lt_prog_compiler_static='--static'
  7188. ;;
  7189. nagfor*)
  7190. # NAG Fortran compiler
  7191. lt_prog_compiler_wl='-Wl,-Wl,,'
  7192. lt_prog_compiler_pic='-PIC'
  7193. lt_prog_compiler_static='-Bstatic'
  7194. ;;
  7195. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7196. # Portland Group compilers (*not* the Pentium gcc compiler,
  7197. # which looks to be a dead project)
  7198. lt_prog_compiler_wl='-Wl,'
  7199. lt_prog_compiler_pic='-fpic'
  7200. lt_prog_compiler_static='-Bstatic'
  7201. ;;
  7202. ccc*)
  7203. lt_prog_compiler_wl='-Wl,'
  7204. # All Alpha code is PIC.
  7205. lt_prog_compiler_static='-non_shared'
  7206. ;;
  7207. xl* | bgxl* | bgf* | mpixl*)
  7208. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7209. lt_prog_compiler_wl='-Wl,'
  7210. lt_prog_compiler_pic='-qpic'
  7211. lt_prog_compiler_static='-qstaticlink'
  7212. ;;
  7213. *)
  7214. case `$CC -V 2>&1 | sed 5q` in
  7215. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7216. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7217. lt_prog_compiler_pic='-KPIC'
  7218. lt_prog_compiler_static='-Bstatic'
  7219. lt_prog_compiler_wl=''
  7220. ;;
  7221. *Sun\ F* | *Sun*Fortran*)
  7222. lt_prog_compiler_pic='-KPIC'
  7223. lt_prog_compiler_static='-Bstatic'
  7224. lt_prog_compiler_wl='-Qoption ld '
  7225. ;;
  7226. *Sun\ C*)
  7227. # Sun C 5.9
  7228. lt_prog_compiler_pic='-KPIC'
  7229. lt_prog_compiler_static='-Bstatic'
  7230. lt_prog_compiler_wl='-Wl,'
  7231. ;;
  7232. *Intel*\ [CF]*Compiler*)
  7233. lt_prog_compiler_wl='-Wl,'
  7234. lt_prog_compiler_pic='-fPIC'
  7235. lt_prog_compiler_static='-static'
  7236. ;;
  7237. *Portland\ Group*)
  7238. lt_prog_compiler_wl='-Wl,'
  7239. lt_prog_compiler_pic='-fpic'
  7240. lt_prog_compiler_static='-Bstatic'
  7241. ;;
  7242. esac
  7243. ;;
  7244. esac
  7245. ;;
  7246. newsos6)
  7247. lt_prog_compiler_pic='-KPIC'
  7248. lt_prog_compiler_static='-Bstatic'
  7249. ;;
  7250. *nto* | *qnx*)
  7251. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7252. # it will coredump.
  7253. lt_prog_compiler_pic='-fPIC -shared'
  7254. ;;
  7255. osf3* | osf4* | osf5*)
  7256. lt_prog_compiler_wl='-Wl,'
  7257. # All OSF/1 code is PIC.
  7258. lt_prog_compiler_static='-non_shared'
  7259. ;;
  7260. rdos*)
  7261. lt_prog_compiler_static='-non_shared'
  7262. ;;
  7263. solaris*)
  7264. lt_prog_compiler_pic='-KPIC'
  7265. lt_prog_compiler_static='-Bstatic'
  7266. case $cc_basename in
  7267. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7268. lt_prog_compiler_wl='-Qoption ld ';;
  7269. *)
  7270. lt_prog_compiler_wl='-Wl,';;
  7271. esac
  7272. ;;
  7273. sunos4*)
  7274. lt_prog_compiler_wl='-Qoption ld '
  7275. lt_prog_compiler_pic='-PIC'
  7276. lt_prog_compiler_static='-Bstatic'
  7277. ;;
  7278. sysv4 | sysv4.2uw2* | sysv4.3*)
  7279. lt_prog_compiler_wl='-Wl,'
  7280. lt_prog_compiler_pic='-KPIC'
  7281. lt_prog_compiler_static='-Bstatic'
  7282. ;;
  7283. sysv4*MP*)
  7284. if test -d /usr/nec ;then
  7285. lt_prog_compiler_pic='-Kconform_pic'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. fi
  7288. ;;
  7289. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7290. lt_prog_compiler_wl='-Wl,'
  7291. lt_prog_compiler_pic='-KPIC'
  7292. lt_prog_compiler_static='-Bstatic'
  7293. ;;
  7294. unicos*)
  7295. lt_prog_compiler_wl='-Wl,'
  7296. lt_prog_compiler_can_build_shared=no
  7297. ;;
  7298. uts4*)
  7299. lt_prog_compiler_pic='-pic'
  7300. lt_prog_compiler_static='-Bstatic'
  7301. ;;
  7302. *)
  7303. lt_prog_compiler_can_build_shared=no
  7304. ;;
  7305. esac
  7306. fi
  7307. case $host_os in
  7308. # For platforms which do not support PIC, -DPIC is meaningless:
  7309. *djgpp*)
  7310. lt_prog_compiler_pic=
  7311. ;;
  7312. *)
  7313. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7314. ;;
  7315. esac
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7317. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7318. if ${lt_cv_prog_compiler_pic+:} false; then :
  7319. $as_echo_n "(cached) " >&6
  7320. else
  7321. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7322. fi
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7324. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7325. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7326. #
  7327. # Check to make sure the PIC flag actually works.
  7328. #
  7329. if test -n "$lt_prog_compiler_pic"; then
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7331. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7332. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7333. $as_echo_n "(cached) " >&6
  7334. else
  7335. lt_cv_prog_compiler_pic_works=no
  7336. ac_outfile=conftest.$ac_objext
  7337. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7338. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7339. # Insert the option either (1) after the last *FLAGS variable, or
  7340. # (2) before a word containing "conftest.", or (3) at the end.
  7341. # Note that $ac_compile itself does not contain backslashes and begins
  7342. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7343. # The option is referenced via a variable to avoid confusing sed.
  7344. lt_compile=`echo "$ac_compile" | $SED \
  7345. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7346. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7347. -e 's:$: $lt_compiler_flag:'`
  7348. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7349. (eval "$lt_compile" 2>conftest.err)
  7350. ac_status=$?
  7351. cat conftest.err >&5
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. if (exit $ac_status) && test -s "$ac_outfile"; then
  7354. # The compiler can only warn and ignore the option if not recognized
  7355. # So say no if there are warnings other than the usual output.
  7356. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7357. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7358. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7359. lt_cv_prog_compiler_pic_works=yes
  7360. fi
  7361. fi
  7362. $RM conftest*
  7363. fi
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7365. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7366. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7367. case $lt_prog_compiler_pic in
  7368. "" | " "*) ;;
  7369. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7370. esac
  7371. else
  7372. lt_prog_compiler_pic=
  7373. lt_prog_compiler_can_build_shared=no
  7374. fi
  7375. fi
  7376. #
  7377. # Check to make sure the static flag actually works.
  7378. #
  7379. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7381. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7382. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7383. $as_echo_n "(cached) " >&6
  7384. else
  7385. lt_cv_prog_compiler_static_works=no
  7386. save_LDFLAGS="$LDFLAGS"
  7387. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7388. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7389. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7390. # The linker can only warn and ignore the option if not recognized
  7391. # So say no if there are warnings
  7392. if test -s conftest.err; then
  7393. # Append any errors to the config.log.
  7394. cat conftest.err 1>&5
  7395. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7396. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7397. if diff conftest.exp conftest.er2 >/dev/null; then
  7398. lt_cv_prog_compiler_static_works=yes
  7399. fi
  7400. else
  7401. lt_cv_prog_compiler_static_works=yes
  7402. fi
  7403. fi
  7404. $RM -r conftest*
  7405. LDFLAGS="$save_LDFLAGS"
  7406. fi
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7408. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7409. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7410. :
  7411. else
  7412. lt_prog_compiler_static=
  7413. fi
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7415. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7416. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7417. $as_echo_n "(cached) " >&6
  7418. else
  7419. lt_cv_prog_compiler_c_o=no
  7420. $RM -r conftest 2>/dev/null
  7421. mkdir conftest
  7422. cd conftest
  7423. mkdir out
  7424. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7425. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7426. # Insert the option either (1) after the last *FLAGS variable, or
  7427. # (2) before a word containing "conftest.", or (3) at the end.
  7428. # Note that $ac_compile itself does not contain backslashes and begins
  7429. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7430. lt_compile=`echo "$ac_compile" | $SED \
  7431. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7432. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7433. -e 's:$: $lt_compiler_flag:'`
  7434. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7435. (eval "$lt_compile" 2>out/conftest.err)
  7436. ac_status=$?
  7437. cat out/conftest.err >&5
  7438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7440. then
  7441. # The compiler can only warn and ignore the option if not recognized
  7442. # So say no if there are warnings
  7443. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7444. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7445. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7446. lt_cv_prog_compiler_c_o=yes
  7447. fi
  7448. fi
  7449. chmod u+w . 2>&5
  7450. $RM conftest*
  7451. # SGI C++ compiler will create directory out/ii_files/ for
  7452. # template instantiation
  7453. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7454. $RM out/* && rmdir out
  7455. cd ..
  7456. $RM -r conftest
  7457. $RM conftest*
  7458. fi
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7460. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7462. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7463. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7464. $as_echo_n "(cached) " >&6
  7465. else
  7466. lt_cv_prog_compiler_c_o=no
  7467. $RM -r conftest 2>/dev/null
  7468. mkdir conftest
  7469. cd conftest
  7470. mkdir out
  7471. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7472. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7473. # Insert the option either (1) after the last *FLAGS variable, or
  7474. # (2) before a word containing "conftest.", or (3) at the end.
  7475. # Note that $ac_compile itself does not contain backslashes and begins
  7476. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7477. lt_compile=`echo "$ac_compile" | $SED \
  7478. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7479. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7480. -e 's:$: $lt_compiler_flag:'`
  7481. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7482. (eval "$lt_compile" 2>out/conftest.err)
  7483. ac_status=$?
  7484. cat out/conftest.err >&5
  7485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7486. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7487. then
  7488. # The compiler can only warn and ignore the option if not recognized
  7489. # So say no if there are warnings
  7490. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7491. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7492. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7493. lt_cv_prog_compiler_c_o=yes
  7494. fi
  7495. fi
  7496. chmod u+w . 2>&5
  7497. $RM conftest*
  7498. # SGI C++ compiler will create directory out/ii_files/ for
  7499. # template instantiation
  7500. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7501. $RM out/* && rmdir out
  7502. cd ..
  7503. $RM -r conftest
  7504. $RM conftest*
  7505. fi
  7506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7507. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7508. hard_links="nottested"
  7509. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7510. # do not overwrite the value of need_locks provided by the user
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7512. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7513. hard_links=yes
  7514. $RM conftest*
  7515. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7516. touch conftest.a
  7517. ln conftest.a conftest.b 2>&5 || hard_links=no
  7518. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7520. $as_echo "$hard_links" >&6; }
  7521. if test "$hard_links" = no; then
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7523. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7524. need_locks=warn
  7525. fi
  7526. else
  7527. need_locks=no
  7528. fi
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7530. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7531. runpath_var=
  7532. allow_undefined_flag=
  7533. always_export_symbols=no
  7534. archive_cmds=
  7535. archive_expsym_cmds=
  7536. compiler_needs_object=no
  7537. enable_shared_with_static_runtimes=no
  7538. export_dynamic_flag_spec=
  7539. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7540. hardcode_automatic=no
  7541. hardcode_direct=no
  7542. hardcode_direct_absolute=no
  7543. hardcode_libdir_flag_spec=
  7544. hardcode_libdir_separator=
  7545. hardcode_minus_L=no
  7546. hardcode_shlibpath_var=unsupported
  7547. inherit_rpath=no
  7548. link_all_deplibs=unknown
  7549. module_cmds=
  7550. module_expsym_cmds=
  7551. old_archive_from_new_cmds=
  7552. old_archive_from_expsyms_cmds=
  7553. thread_safe_flag_spec=
  7554. whole_archive_flag_spec=
  7555. # include_expsyms should be a list of space-separated symbols to be *always*
  7556. # included in the symbol list
  7557. include_expsyms=
  7558. # exclude_expsyms can be an extended regexp of symbols to exclude
  7559. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7560. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7561. # as well as any symbol that contains `d'.
  7562. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7563. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7564. # platforms (ab)use it in PIC code, but their linkers get confused if
  7565. # the symbol is explicitly referenced. Since portable code cannot
  7566. # rely on this symbol name, it's probably fine to never include it in
  7567. # preloaded symbol tables.
  7568. # Exclude shared library initialization/finalization symbols.
  7569. extract_expsyms_cmds=
  7570. case $host_os in
  7571. cygwin* | mingw* | pw32* | cegcc*)
  7572. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7573. # When not using gcc, we currently assume that we are using
  7574. # Microsoft Visual C++.
  7575. if test "$GCC" != yes; then
  7576. with_gnu_ld=no
  7577. fi
  7578. ;;
  7579. interix*)
  7580. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7581. with_gnu_ld=yes
  7582. ;;
  7583. openbsd*)
  7584. with_gnu_ld=no
  7585. ;;
  7586. esac
  7587. ld_shlibs=yes
  7588. # On some targets, GNU ld is compatible enough with the native linker
  7589. # that we're better off using the native interface for both.
  7590. lt_use_gnu_ld_interface=no
  7591. if test "$with_gnu_ld" = yes; then
  7592. case $host_os in
  7593. aix*)
  7594. # The AIX port of GNU ld has always aspired to compatibility
  7595. # with the native linker. However, as the warning in the GNU ld
  7596. # block says, versions before 2.19.5* couldn't really create working
  7597. # shared libraries, regardless of the interface used.
  7598. case `$LD -v 2>&1` in
  7599. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7600. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7601. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7602. *)
  7603. lt_use_gnu_ld_interface=yes
  7604. ;;
  7605. esac
  7606. ;;
  7607. *)
  7608. lt_use_gnu_ld_interface=yes
  7609. ;;
  7610. esac
  7611. fi
  7612. if test "$lt_use_gnu_ld_interface" = yes; then
  7613. # If archive_cmds runs LD, not CC, wlarc should be empty
  7614. wlarc='${wl}'
  7615. # Set some defaults for GNU ld with shared library support. These
  7616. # are reset later if shared libraries are not supported. Putting them
  7617. # here allows them to be overridden if necessary.
  7618. runpath_var=LD_RUN_PATH
  7619. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7620. export_dynamic_flag_spec='${wl}--export-dynamic'
  7621. # ancient GNU ld didn't support --whole-archive et. al.
  7622. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7623. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7624. else
  7625. whole_archive_flag_spec=
  7626. fi
  7627. supports_anon_versioning=no
  7628. case `$LD -v 2>&1` in
  7629. *GNU\ gold*) supports_anon_versioning=yes ;;
  7630. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7631. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7632. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7633. *\ 2.11.*) ;; # other 2.11 versions
  7634. *) supports_anon_versioning=yes ;;
  7635. esac
  7636. # See if GNU ld supports shared libraries.
  7637. case $host_os in
  7638. aix[3-9]*)
  7639. # On AIX/PPC, the GNU linker is very broken
  7640. if test "$host_cpu" != ia64; then
  7641. ld_shlibs=no
  7642. cat <<_LT_EOF 1>&2
  7643. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7644. *** to be unable to reliably create shared libraries on AIX.
  7645. *** Therefore, libtool is disabling shared libraries support. If you
  7646. *** really care for shared libraries, you may want to install binutils
  7647. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7648. *** You will then need to restart the configuration process.
  7649. _LT_EOF
  7650. fi
  7651. ;;
  7652. amigaos*)
  7653. case $host_cpu in
  7654. powerpc)
  7655. # see comment about AmigaOS4 .so support
  7656. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7657. archive_expsym_cmds=''
  7658. ;;
  7659. m68k)
  7660. 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)'
  7661. hardcode_libdir_flag_spec='-L$libdir'
  7662. hardcode_minus_L=yes
  7663. ;;
  7664. esac
  7665. ;;
  7666. beos*)
  7667. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7668. allow_undefined_flag=unsupported
  7669. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7670. # support --undefined. This deserves some investigation. FIXME
  7671. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7672. else
  7673. ld_shlibs=no
  7674. fi
  7675. ;;
  7676. cygwin* | mingw* | pw32* | cegcc*)
  7677. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7678. # as there is no search path for DLLs.
  7679. hardcode_libdir_flag_spec='-L$libdir'
  7680. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7681. allow_undefined_flag=unsupported
  7682. always_export_symbols=no
  7683. enable_shared_with_static_runtimes=yes
  7684. 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'
  7685. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7686. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7687. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7688. # If the export-symbols file already is a .def file (1st line
  7689. # is EXPORTS), use it as is; otherwise, prepend...
  7690. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7691. cp $export_symbols $output_objdir/$soname.def;
  7692. else
  7693. echo EXPORTS > $output_objdir/$soname.def;
  7694. cat $export_symbols >> $output_objdir/$soname.def;
  7695. fi~
  7696. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7697. else
  7698. ld_shlibs=no
  7699. fi
  7700. ;;
  7701. haiku*)
  7702. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7703. link_all_deplibs=yes
  7704. ;;
  7705. interix[3-9]*)
  7706. hardcode_direct=no
  7707. hardcode_shlibpath_var=no
  7708. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7709. export_dynamic_flag_spec='${wl}-E'
  7710. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7711. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7712. # default) and relocated if they conflict, which is a slow very memory
  7713. # consuming and fragmenting process. To avoid this, we pick a random,
  7714. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7715. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7716. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7717. 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'
  7718. ;;
  7719. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7720. tmp_diet=no
  7721. if test "$host_os" = linux-dietlibc; then
  7722. case $cc_basename in
  7723. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7724. esac
  7725. fi
  7726. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7727. && test "$tmp_diet" = no
  7728. then
  7729. tmp_addflag=' $pic_flag'
  7730. tmp_sharedflag='-shared'
  7731. case $cc_basename,$host_cpu in
  7732. pgcc*) # Portland Group C compiler
  7733. 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'
  7734. tmp_addflag=' $pic_flag'
  7735. ;;
  7736. pgf77* | pgf90* | pgf95* | pgfortran*)
  7737. # Portland Group f77 and f90 compilers
  7738. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7739. tmp_addflag=' $pic_flag -Mnomain' ;;
  7740. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7741. tmp_addflag=' -i_dynamic' ;;
  7742. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7743. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7744. ifc* | ifort*) # Intel Fortran compiler
  7745. tmp_addflag=' -nofor_main' ;;
  7746. lf95*) # Lahey Fortran 8.1
  7747. whole_archive_flag_spec=
  7748. tmp_sharedflag='--shared' ;;
  7749. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7750. tmp_sharedflag='-qmkshrobj'
  7751. tmp_addflag= ;;
  7752. nvcc*) # Cuda Compiler Driver 2.2
  7753. 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'
  7754. compiler_needs_object=yes
  7755. ;;
  7756. esac
  7757. case `$CC -V 2>&1 | sed 5q` in
  7758. *Sun\ C*) # Sun C 5.9
  7759. 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'
  7760. compiler_needs_object=yes
  7761. tmp_sharedflag='-G' ;;
  7762. *Sun\ F*) # Sun Fortran 8.3
  7763. tmp_sharedflag='-G' ;;
  7764. esac
  7765. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7766. if test "x$supports_anon_versioning" = xyes; then
  7767. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7768. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7769. echo "local: *; };" >> $output_objdir/$libname.ver~
  7770. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7771. fi
  7772. case $cc_basename in
  7773. xlf* | bgf* | bgxlf* | mpixlf*)
  7774. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7775. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7776. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7777. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7778. if test "x$supports_anon_versioning" = xyes; then
  7779. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7780. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7781. echo "local: *; };" >> $output_objdir/$libname.ver~
  7782. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7783. fi
  7784. ;;
  7785. esac
  7786. else
  7787. ld_shlibs=no
  7788. fi
  7789. ;;
  7790. netbsd*)
  7791. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7792. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7793. wlarc=
  7794. else
  7795. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7796. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7797. fi
  7798. ;;
  7799. solaris*)
  7800. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7801. ld_shlibs=no
  7802. cat <<_LT_EOF 1>&2
  7803. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7804. *** create shared libraries on Solaris systems. Therefore, libtool
  7805. *** is disabling shared libraries support. We urge you to upgrade GNU
  7806. *** binutils to release 2.9.1 or newer. Another option is to modify
  7807. *** your PATH or compiler configuration so that the native linker is
  7808. *** used, and then restart.
  7809. _LT_EOF
  7810. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7811. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7812. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7813. else
  7814. ld_shlibs=no
  7815. fi
  7816. ;;
  7817. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7818. case `$LD -v 2>&1` in
  7819. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7820. ld_shlibs=no
  7821. cat <<_LT_EOF 1>&2
  7822. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7823. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7824. *** is disabling shared libraries support. We urge you to upgrade GNU
  7825. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7826. *** your PATH or compiler configuration so that the native linker is
  7827. *** used, and then restart.
  7828. _LT_EOF
  7829. ;;
  7830. *)
  7831. # For security reasons, it is highly recommended that you always
  7832. # use absolute paths for naming shared libraries, and exclude the
  7833. # DT_RUNPATH tag from executables and libraries. But doing so
  7834. # requires that you compile everything twice, which is a pain.
  7835. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7836. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7837. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7838. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7839. else
  7840. ld_shlibs=no
  7841. fi
  7842. ;;
  7843. esac
  7844. ;;
  7845. sunos4*)
  7846. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7847. wlarc=
  7848. hardcode_direct=yes
  7849. hardcode_shlibpath_var=no
  7850. ;;
  7851. *)
  7852. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7853. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7854. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7855. else
  7856. ld_shlibs=no
  7857. fi
  7858. ;;
  7859. esac
  7860. if test "$ld_shlibs" = no; then
  7861. runpath_var=
  7862. hardcode_libdir_flag_spec=
  7863. export_dynamic_flag_spec=
  7864. whole_archive_flag_spec=
  7865. fi
  7866. else
  7867. # PORTME fill in a description of your system's linker (not GNU ld)
  7868. case $host_os in
  7869. aix3*)
  7870. allow_undefined_flag=unsupported
  7871. always_export_symbols=yes
  7872. 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'
  7873. # Note: this linker hardcodes the directories in LIBPATH if there
  7874. # are no directories specified by -L.
  7875. hardcode_minus_L=yes
  7876. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7877. # Neither direct hardcoding nor static linking is supported with a
  7878. # broken collect2.
  7879. hardcode_direct=unsupported
  7880. fi
  7881. ;;
  7882. aix[4-9]*)
  7883. if test "$host_cpu" = ia64; then
  7884. # On IA64, the linker does run time linking by default, so we don't
  7885. # have to do anything special.
  7886. aix_use_runtimelinking=no
  7887. exp_sym_flag='-Bexport'
  7888. no_entry_flag=""
  7889. else
  7890. # If we're using GNU nm, then we don't want the "-C" option.
  7891. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7892. # Also, AIX nm treats weak defined symbols like other global
  7893. # defined symbols, whereas GNU nm marks them as "W".
  7894. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7895. 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'
  7896. else
  7897. 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'
  7898. fi
  7899. aix_use_runtimelinking=no
  7900. # Test if we are trying to use run time linking or normal
  7901. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7902. # need to do runtime linking.
  7903. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7904. for ld_flag in $LDFLAGS; do
  7905. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7906. aix_use_runtimelinking=yes
  7907. break
  7908. fi
  7909. done
  7910. ;;
  7911. esac
  7912. exp_sym_flag='-bexport'
  7913. no_entry_flag='-bnoentry'
  7914. fi
  7915. # When large executables or shared objects are built, AIX ld can
  7916. # have problems creating the table of contents. If linking a library
  7917. # or program results in "error TOC overflow" add -mminimal-toc to
  7918. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7919. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7920. archive_cmds=''
  7921. hardcode_direct=yes
  7922. hardcode_direct_absolute=yes
  7923. hardcode_libdir_separator=':'
  7924. link_all_deplibs=yes
  7925. file_list_spec='${wl}-f,'
  7926. if test "$GCC" = yes; then
  7927. case $host_os in aix4.[012]|aix4.[012].*)
  7928. # We only want to do this on AIX 4.2 and lower, the check
  7929. # below for broken collect2 doesn't work under 4.3+
  7930. collect2name=`${CC} -print-prog-name=collect2`
  7931. if test -f "$collect2name" &&
  7932. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7933. then
  7934. # We have reworked collect2
  7935. :
  7936. else
  7937. # We have old collect2
  7938. hardcode_direct=unsupported
  7939. # It fails to find uninstalled libraries when the uninstalled
  7940. # path is not listed in the libpath. Setting hardcode_minus_L
  7941. # to unsupported forces relinking
  7942. hardcode_minus_L=yes
  7943. hardcode_libdir_flag_spec='-L$libdir'
  7944. hardcode_libdir_separator=
  7945. fi
  7946. ;;
  7947. esac
  7948. shared_flag='-shared'
  7949. if test "$aix_use_runtimelinking" = yes; then
  7950. shared_flag="$shared_flag "'${wl}-G'
  7951. fi
  7952. else
  7953. # not using gcc
  7954. if test "$host_cpu" = ia64; then
  7955. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7956. # chokes on -Wl,-G. The following line is correct:
  7957. shared_flag='-G'
  7958. else
  7959. if test "$aix_use_runtimelinking" = yes; then
  7960. shared_flag='${wl}-G'
  7961. else
  7962. shared_flag='${wl}-bM:SRE'
  7963. fi
  7964. fi
  7965. fi
  7966. export_dynamic_flag_spec='${wl}-bexpall'
  7967. # It seems that -bexpall does not export symbols beginning with
  7968. # underscore (_), so it is better to generate a list of symbols to export.
  7969. always_export_symbols=yes
  7970. if test "$aix_use_runtimelinking" = yes; then
  7971. # Warning - without using the other runtime loading flags (-brtl),
  7972. # -berok will link without error, but may produce a broken library.
  7973. allow_undefined_flag='-berok'
  7974. # Determine the default libpath from the value encoded in an
  7975. # empty executable.
  7976. if test "${lt_cv_aix_libpath+set}" = set; then
  7977. aix_libpath=$lt_cv_aix_libpath
  7978. else
  7979. if ${lt_cv_aix_libpath_+:} false; then :
  7980. $as_echo_n "(cached) " >&6
  7981. else
  7982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7983. /* end confdefs.h. */
  7984. int
  7985. main ()
  7986. {
  7987. ;
  7988. return 0;
  7989. }
  7990. _ACEOF
  7991. if ac_fn_c_try_link "$LINENO"; then :
  7992. lt_aix_libpath_sed='
  7993. /Import File Strings/,/^$/ {
  7994. /^0/ {
  7995. s/^0 *\([^ ]*\) *$/\1/
  7996. p
  7997. }
  7998. }'
  7999. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8000. # Check for a 64-bit object if we didn't find anything.
  8001. if test -z "$lt_cv_aix_libpath_"; then
  8002. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8003. fi
  8004. fi
  8005. rm -f core conftest.err conftest.$ac_objext \
  8006. conftest$ac_exeext conftest.$ac_ext
  8007. if test -z "$lt_cv_aix_libpath_"; then
  8008. lt_cv_aix_libpath_="/usr/lib:/lib"
  8009. fi
  8010. fi
  8011. aix_libpath=$lt_cv_aix_libpath_
  8012. fi
  8013. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8014. 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"
  8015. else
  8016. if test "$host_cpu" = ia64; then
  8017. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8018. allow_undefined_flag="-z nodefs"
  8019. 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"
  8020. else
  8021. # Determine the default libpath from the value encoded in an
  8022. # empty executable.
  8023. if test "${lt_cv_aix_libpath+set}" = set; then
  8024. aix_libpath=$lt_cv_aix_libpath
  8025. else
  8026. if ${lt_cv_aix_libpath_+:} false; then :
  8027. $as_echo_n "(cached) " >&6
  8028. else
  8029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8030. /* end confdefs.h. */
  8031. int
  8032. main ()
  8033. {
  8034. ;
  8035. return 0;
  8036. }
  8037. _ACEOF
  8038. if ac_fn_c_try_link "$LINENO"; then :
  8039. lt_aix_libpath_sed='
  8040. /Import File Strings/,/^$/ {
  8041. /^0/ {
  8042. s/^0 *\([^ ]*\) *$/\1/
  8043. p
  8044. }
  8045. }'
  8046. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8047. # Check for a 64-bit object if we didn't find anything.
  8048. if test -z "$lt_cv_aix_libpath_"; then
  8049. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8050. fi
  8051. fi
  8052. rm -f core conftest.err conftest.$ac_objext \
  8053. conftest$ac_exeext conftest.$ac_ext
  8054. if test -z "$lt_cv_aix_libpath_"; then
  8055. lt_cv_aix_libpath_="/usr/lib:/lib"
  8056. fi
  8057. fi
  8058. aix_libpath=$lt_cv_aix_libpath_
  8059. fi
  8060. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8061. # Warning - without using the other run time loading flags,
  8062. # -berok will link without error, but may produce a broken library.
  8063. no_undefined_flag=' ${wl}-bernotok'
  8064. allow_undefined_flag=' ${wl}-berok'
  8065. if test "$with_gnu_ld" = yes; then
  8066. # We only use this code for GNU lds that support --whole-archive.
  8067. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8068. else
  8069. # Exported symbols can be pulled into shared objects from archives
  8070. whole_archive_flag_spec='$convenience'
  8071. fi
  8072. archive_cmds_need_lc=yes
  8073. # This is similar to how AIX traditionally builds its shared libraries.
  8074. 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'
  8075. fi
  8076. fi
  8077. ;;
  8078. amigaos*)
  8079. case $host_cpu in
  8080. powerpc)
  8081. # see comment about AmigaOS4 .so support
  8082. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8083. archive_expsym_cmds=''
  8084. ;;
  8085. m68k)
  8086. 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)'
  8087. hardcode_libdir_flag_spec='-L$libdir'
  8088. hardcode_minus_L=yes
  8089. ;;
  8090. esac
  8091. ;;
  8092. bsdi[45]*)
  8093. export_dynamic_flag_spec=-rdynamic
  8094. ;;
  8095. cygwin* | mingw* | pw32* | cegcc*)
  8096. # When not using gcc, we currently assume that we are using
  8097. # Microsoft Visual C++.
  8098. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8099. # no search path for DLLs.
  8100. case $cc_basename in
  8101. cl*)
  8102. # Native MSVC
  8103. hardcode_libdir_flag_spec=' '
  8104. allow_undefined_flag=unsupported
  8105. always_export_symbols=yes
  8106. file_list_spec='@'
  8107. # Tell ltmain to make .lib files, not .a files.
  8108. libext=lib
  8109. # Tell ltmain to make .dll files, not .so files.
  8110. shrext_cmds=".dll"
  8111. # FIXME: Setting linknames here is a bad hack.
  8112. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8113. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8114. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8115. else
  8116. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8117. fi~
  8118. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8119. linknames='
  8120. # The linker will not automatically build a static lib if we build a DLL.
  8121. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8122. enable_shared_with_static_runtimes=yes
  8123. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8124. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8125. # Don't use ranlib
  8126. old_postinstall_cmds='chmod 644 $oldlib'
  8127. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8128. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8129. case $lt_outputfile in
  8130. *.exe|*.EXE) ;;
  8131. *)
  8132. lt_outputfile="$lt_outputfile.exe"
  8133. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8134. ;;
  8135. esac~
  8136. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8137. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8138. $RM "$lt_outputfile.manifest";
  8139. fi'
  8140. ;;
  8141. *)
  8142. # Assume MSVC wrapper
  8143. hardcode_libdir_flag_spec=' '
  8144. allow_undefined_flag=unsupported
  8145. # Tell ltmain to make .lib files, not .a files.
  8146. libext=lib
  8147. # Tell ltmain to make .dll files, not .so files.
  8148. shrext_cmds=".dll"
  8149. # FIXME: Setting linknames here is a bad hack.
  8150. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8151. # The linker will automatically build a .lib file if we build a DLL.
  8152. old_archive_from_new_cmds='true'
  8153. # FIXME: Should let the user specify the lib program.
  8154. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8155. enable_shared_with_static_runtimes=yes
  8156. ;;
  8157. esac
  8158. ;;
  8159. darwin* | rhapsody*)
  8160. archive_cmds_need_lc=no
  8161. hardcode_direct=no
  8162. hardcode_automatic=yes
  8163. hardcode_shlibpath_var=unsupported
  8164. if test "$lt_cv_ld_force_load" = "yes"; then
  8165. 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\"`'
  8166. else
  8167. whole_archive_flag_spec=''
  8168. fi
  8169. link_all_deplibs=yes
  8170. allow_undefined_flag="$_lt_dar_allow_undefined"
  8171. case $cc_basename in
  8172. ifort*) _lt_dar_can_shared=yes ;;
  8173. *) _lt_dar_can_shared=$GCC ;;
  8174. esac
  8175. if test "$_lt_dar_can_shared" = "yes"; then
  8176. output_verbose_link_cmd=func_echo_all
  8177. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8178. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8179. 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}"
  8180. 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}"
  8181. else
  8182. ld_shlibs=no
  8183. fi
  8184. ;;
  8185. dgux*)
  8186. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8187. hardcode_libdir_flag_spec='-L$libdir'
  8188. hardcode_shlibpath_var=no
  8189. ;;
  8190. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8191. # support. Future versions do this automatically, but an explicit c++rt0.o
  8192. # does not break anything, and helps significantly (at the cost of a little
  8193. # extra space).
  8194. freebsd2.2*)
  8195. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8196. hardcode_libdir_flag_spec='-R$libdir'
  8197. hardcode_direct=yes
  8198. hardcode_shlibpath_var=no
  8199. ;;
  8200. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8201. freebsd2.*)
  8202. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8203. hardcode_direct=yes
  8204. hardcode_minus_L=yes
  8205. hardcode_shlibpath_var=no
  8206. ;;
  8207. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8208. freebsd* | dragonfly*)
  8209. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8210. hardcode_libdir_flag_spec='-R$libdir'
  8211. hardcode_direct=yes
  8212. hardcode_shlibpath_var=no
  8213. ;;
  8214. hpux9*)
  8215. if test "$GCC" = yes; then
  8216. 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'
  8217. else
  8218. 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'
  8219. fi
  8220. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8221. hardcode_libdir_separator=:
  8222. hardcode_direct=yes
  8223. # hardcode_minus_L: Not really in the search PATH,
  8224. # but as the default location of the library.
  8225. hardcode_minus_L=yes
  8226. export_dynamic_flag_spec='${wl}-E'
  8227. ;;
  8228. hpux10*)
  8229. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8230. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8231. else
  8232. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8233. fi
  8234. if test "$with_gnu_ld" = no; then
  8235. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8236. hardcode_libdir_separator=:
  8237. hardcode_direct=yes
  8238. hardcode_direct_absolute=yes
  8239. export_dynamic_flag_spec='${wl}-E'
  8240. # hardcode_minus_L: Not really in the search PATH,
  8241. # but as the default location of the library.
  8242. hardcode_minus_L=yes
  8243. fi
  8244. ;;
  8245. hpux11*)
  8246. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8247. case $host_cpu in
  8248. hppa*64*)
  8249. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8250. ;;
  8251. ia64*)
  8252. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8253. ;;
  8254. *)
  8255. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8256. ;;
  8257. esac
  8258. else
  8259. case $host_cpu in
  8260. hppa*64*)
  8261. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8262. ;;
  8263. ia64*)
  8264. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8265. ;;
  8266. *)
  8267. # Older versions of the 11.00 compiler do not understand -b yet
  8268. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8270. $as_echo_n "checking if $CC understands -b... " >&6; }
  8271. if ${lt_cv_prog_compiler__b+:} false; then :
  8272. $as_echo_n "(cached) " >&6
  8273. else
  8274. lt_cv_prog_compiler__b=no
  8275. save_LDFLAGS="$LDFLAGS"
  8276. LDFLAGS="$LDFLAGS -b"
  8277. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8278. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8279. # The linker can only warn and ignore the option if not recognized
  8280. # So say no if there are warnings
  8281. if test -s conftest.err; then
  8282. # Append any errors to the config.log.
  8283. cat conftest.err 1>&5
  8284. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8285. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8286. if diff conftest.exp conftest.er2 >/dev/null; then
  8287. lt_cv_prog_compiler__b=yes
  8288. fi
  8289. else
  8290. lt_cv_prog_compiler__b=yes
  8291. fi
  8292. fi
  8293. $RM -r conftest*
  8294. LDFLAGS="$save_LDFLAGS"
  8295. fi
  8296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8297. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8298. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8299. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8300. else
  8301. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8302. fi
  8303. ;;
  8304. esac
  8305. fi
  8306. if test "$with_gnu_ld" = no; then
  8307. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8308. hardcode_libdir_separator=:
  8309. case $host_cpu in
  8310. hppa*64*|ia64*)
  8311. hardcode_direct=no
  8312. hardcode_shlibpath_var=no
  8313. ;;
  8314. *)
  8315. hardcode_direct=yes
  8316. hardcode_direct_absolute=yes
  8317. export_dynamic_flag_spec='${wl}-E'
  8318. # hardcode_minus_L: Not really in the search PATH,
  8319. # but as the default location of the library.
  8320. hardcode_minus_L=yes
  8321. ;;
  8322. esac
  8323. fi
  8324. ;;
  8325. irix5* | irix6* | nonstopux*)
  8326. if test "$GCC" = yes; then
  8327. 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'
  8328. # Try to use the -exported_symbol ld option, if it does not
  8329. # work, assume that -exports_file does not work either and
  8330. # implicitly export all symbols.
  8331. # This should be the same for all languages, so no per-tag cache variable.
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8333. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8334. if ${lt_cv_irix_exported_symbol+:} false; then :
  8335. $as_echo_n "(cached) " >&6
  8336. else
  8337. save_LDFLAGS="$LDFLAGS"
  8338. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8340. /* end confdefs.h. */
  8341. int foo (void) { return 0; }
  8342. _ACEOF
  8343. if ac_fn_c_try_link "$LINENO"; then :
  8344. lt_cv_irix_exported_symbol=yes
  8345. else
  8346. lt_cv_irix_exported_symbol=no
  8347. fi
  8348. rm -f core conftest.err conftest.$ac_objext \
  8349. conftest$ac_exeext conftest.$ac_ext
  8350. LDFLAGS="$save_LDFLAGS"
  8351. fi
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8353. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8354. if test "$lt_cv_irix_exported_symbol" = yes; then
  8355. 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'
  8356. fi
  8357. else
  8358. 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'
  8359. 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'
  8360. fi
  8361. archive_cmds_need_lc='no'
  8362. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8363. hardcode_libdir_separator=:
  8364. inherit_rpath=yes
  8365. link_all_deplibs=yes
  8366. ;;
  8367. netbsd*)
  8368. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8369. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8370. else
  8371. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8372. fi
  8373. hardcode_libdir_flag_spec='-R$libdir'
  8374. hardcode_direct=yes
  8375. hardcode_shlibpath_var=no
  8376. ;;
  8377. newsos6)
  8378. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8379. hardcode_direct=yes
  8380. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8381. hardcode_libdir_separator=:
  8382. hardcode_shlibpath_var=no
  8383. ;;
  8384. *nto* | *qnx*)
  8385. ;;
  8386. openbsd*)
  8387. if test -f /usr/libexec/ld.so; then
  8388. hardcode_direct=yes
  8389. hardcode_shlibpath_var=no
  8390. hardcode_direct_absolute=yes
  8391. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8392. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8393. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8394. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8395. export_dynamic_flag_spec='${wl}-E'
  8396. else
  8397. case $host_os in
  8398. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8399. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8400. hardcode_libdir_flag_spec='-R$libdir'
  8401. ;;
  8402. *)
  8403. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8404. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8405. ;;
  8406. esac
  8407. fi
  8408. else
  8409. ld_shlibs=no
  8410. fi
  8411. ;;
  8412. os2*)
  8413. hardcode_libdir_flag_spec='-L$libdir'
  8414. hardcode_minus_L=yes
  8415. allow_undefined_flag=unsupported
  8416. 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'
  8417. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8418. ;;
  8419. osf3*)
  8420. if test "$GCC" = yes; then
  8421. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8422. 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'
  8423. else
  8424. allow_undefined_flag=' -expect_unresolved \*'
  8425. 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'
  8426. fi
  8427. archive_cmds_need_lc='no'
  8428. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8429. hardcode_libdir_separator=:
  8430. ;;
  8431. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8432. if test "$GCC" = yes; then
  8433. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8434. 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'
  8435. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8436. else
  8437. allow_undefined_flag=' -expect_unresolved \*'
  8438. 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'
  8439. 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~
  8440. $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'
  8441. # Both c and cxx compiler support -rpath directly
  8442. hardcode_libdir_flag_spec='-rpath $libdir'
  8443. fi
  8444. archive_cmds_need_lc='no'
  8445. hardcode_libdir_separator=:
  8446. ;;
  8447. solaris*)
  8448. no_undefined_flag=' -z defs'
  8449. if test "$GCC" = yes; then
  8450. wlarc='${wl}'
  8451. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8452. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8453. $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'
  8454. else
  8455. case `$CC -V 2>&1` in
  8456. *"Compilers 5.0"*)
  8457. wlarc=''
  8458. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8459. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8460. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8461. ;;
  8462. *)
  8463. wlarc='${wl}'
  8464. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8466. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8467. ;;
  8468. esac
  8469. fi
  8470. hardcode_libdir_flag_spec='-R$libdir'
  8471. hardcode_shlibpath_var=no
  8472. case $host_os in
  8473. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8474. *)
  8475. # The compiler driver will combine and reorder linker options,
  8476. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8477. # but is careful enough not to reorder.
  8478. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8479. if test "$GCC" = yes; then
  8480. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8481. else
  8482. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8483. fi
  8484. ;;
  8485. esac
  8486. link_all_deplibs=yes
  8487. ;;
  8488. sunos4*)
  8489. if test "x$host_vendor" = xsequent; then
  8490. # Use $CC to link under sequent, because it throws in some extra .o
  8491. # files that make .init and .fini sections work.
  8492. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8493. else
  8494. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8495. fi
  8496. hardcode_libdir_flag_spec='-L$libdir'
  8497. hardcode_direct=yes
  8498. hardcode_minus_L=yes
  8499. hardcode_shlibpath_var=no
  8500. ;;
  8501. sysv4)
  8502. case $host_vendor in
  8503. sni)
  8504. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8505. hardcode_direct=yes # is this really true???
  8506. ;;
  8507. siemens)
  8508. ## LD is ld it makes a PLAMLIB
  8509. ## CC just makes a GrossModule.
  8510. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8511. reload_cmds='$CC -r -o $output$reload_objs'
  8512. hardcode_direct=no
  8513. ;;
  8514. motorola)
  8515. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8516. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8517. ;;
  8518. esac
  8519. runpath_var='LD_RUN_PATH'
  8520. hardcode_shlibpath_var=no
  8521. ;;
  8522. sysv4.3*)
  8523. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8524. hardcode_shlibpath_var=no
  8525. export_dynamic_flag_spec='-Bexport'
  8526. ;;
  8527. sysv4*MP*)
  8528. if test -d /usr/nec; then
  8529. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8530. hardcode_shlibpath_var=no
  8531. runpath_var=LD_RUN_PATH
  8532. hardcode_runpath_var=yes
  8533. ld_shlibs=yes
  8534. fi
  8535. ;;
  8536. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8537. no_undefined_flag='${wl}-z,text'
  8538. archive_cmds_need_lc=no
  8539. hardcode_shlibpath_var=no
  8540. runpath_var='LD_RUN_PATH'
  8541. if test "$GCC" = yes; then
  8542. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8543. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8544. else
  8545. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8546. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8547. fi
  8548. ;;
  8549. sysv5* | sco3.2v5* | sco5v6*)
  8550. # Note: We can NOT use -z defs as we might desire, because we do not
  8551. # link with -lc, and that would cause any symbols used from libc to
  8552. # always be unresolved, which means just about no library would
  8553. # ever link correctly. If we're not using GNU ld we use -z text
  8554. # though, which does catch some bad symbols but isn't as heavy-handed
  8555. # as -z defs.
  8556. no_undefined_flag='${wl}-z,text'
  8557. allow_undefined_flag='${wl}-z,nodefs'
  8558. archive_cmds_need_lc=no
  8559. hardcode_shlibpath_var=no
  8560. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8561. hardcode_libdir_separator=':'
  8562. link_all_deplibs=yes
  8563. export_dynamic_flag_spec='${wl}-Bexport'
  8564. runpath_var='LD_RUN_PATH'
  8565. if test "$GCC" = yes; then
  8566. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8567. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. else
  8569. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8570. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8571. fi
  8572. ;;
  8573. uts4*)
  8574. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8575. hardcode_libdir_flag_spec='-L$libdir'
  8576. hardcode_shlibpath_var=no
  8577. ;;
  8578. *)
  8579. ld_shlibs=no
  8580. ;;
  8581. esac
  8582. if test x$host_vendor = xsni; then
  8583. case $host in
  8584. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8585. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8586. ;;
  8587. esac
  8588. fi
  8589. fi
  8590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8591. $as_echo "$ld_shlibs" >&6; }
  8592. test "$ld_shlibs" = no && can_build_shared=no
  8593. with_gnu_ld=$with_gnu_ld
  8594. #
  8595. # Do we need to explicitly link libc?
  8596. #
  8597. case "x$archive_cmds_need_lc" in
  8598. x|xyes)
  8599. # Assume -lc should be added
  8600. archive_cmds_need_lc=yes
  8601. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8602. case $archive_cmds in
  8603. *'~'*)
  8604. # FIXME: we may have to deal with multi-command sequences.
  8605. ;;
  8606. '$CC '*)
  8607. # Test whether the compiler implicitly links with -lc since on some
  8608. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8609. # to ld, don't add -lc before -lgcc.
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8611. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8612. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8613. $as_echo_n "(cached) " >&6
  8614. else
  8615. $RM conftest*
  8616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8617. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8618. (eval $ac_compile) 2>&5
  8619. ac_status=$?
  8620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8621. test $ac_status = 0; } 2>conftest.err; then
  8622. soname=conftest
  8623. lib=conftest
  8624. libobjs=conftest.$ac_objext
  8625. deplibs=
  8626. wl=$lt_prog_compiler_wl
  8627. pic_flag=$lt_prog_compiler_pic
  8628. compiler_flags=-v
  8629. linker_flags=-v
  8630. verstring=
  8631. output_objdir=.
  8632. libname=conftest
  8633. lt_save_allow_undefined_flag=$allow_undefined_flag
  8634. allow_undefined_flag=
  8635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8636. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8637. ac_status=$?
  8638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8639. test $ac_status = 0; }
  8640. then
  8641. lt_cv_archive_cmds_need_lc=no
  8642. else
  8643. lt_cv_archive_cmds_need_lc=yes
  8644. fi
  8645. allow_undefined_flag=$lt_save_allow_undefined_flag
  8646. else
  8647. cat conftest.err 1>&5
  8648. fi
  8649. $RM conftest*
  8650. fi
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8652. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8653. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8654. ;;
  8655. esac
  8656. fi
  8657. ;;
  8658. esac
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8660. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8661. if test "$GCC" = yes; then
  8662. case $host_os in
  8663. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8664. *) lt_awk_arg="/^libraries:/" ;;
  8665. esac
  8666. case $host_os in
  8667. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8668. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8669. esac
  8670. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8671. case $lt_search_path_spec in
  8672. *\;*)
  8673. # if the path contains ";" then we assume it to be the separator
  8674. # otherwise default to the standard path separator (i.e. ":") - it is
  8675. # assumed that no part of a normal pathname contains ";" but that should
  8676. # okay in the real world where ";" in dirpaths is itself problematic.
  8677. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8678. ;;
  8679. *)
  8680. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8681. ;;
  8682. esac
  8683. # Ok, now we have the path, separated by spaces, we can step through it
  8684. # and add multilib dir if necessary...
  8685. lt_tmp_lt_search_path_spec=
  8686. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8687. # ...but if some path already ends with the multilib dir we assume
  8688. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8689. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8690. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8691. lt_multi_os_dir=
  8692. ;;
  8693. esac
  8694. for lt_sys_path in $lt_search_path_spec; do
  8695. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8696. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8697. elif test -n "$lt_multi_os_dir"; then
  8698. test -d "$lt_sys_path" && \
  8699. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8700. fi
  8701. done
  8702. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8703. BEGIN {RS=" "; FS="/|\n";} {
  8704. lt_foo="";
  8705. lt_count=0;
  8706. for (lt_i = NF; lt_i > 0; lt_i--) {
  8707. if ($lt_i != "" && $lt_i != ".") {
  8708. if ($lt_i == "..") {
  8709. lt_count++;
  8710. } else {
  8711. if (lt_count == 0) {
  8712. lt_foo="/" $lt_i lt_foo;
  8713. } else {
  8714. lt_count--;
  8715. }
  8716. }
  8717. }
  8718. }
  8719. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8720. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8721. }'`
  8722. # AWK program above erroneously prepends '/' to C:/dos/paths
  8723. # for these hosts.
  8724. case $host_os in
  8725. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8726. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8727. esac
  8728. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8729. else
  8730. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8731. fi
  8732. library_names_spec=
  8733. libname_spec='lib$name'
  8734. soname_spec=
  8735. shrext_cmds=".so"
  8736. postinstall_cmds=
  8737. postuninstall_cmds=
  8738. finish_cmds=
  8739. finish_eval=
  8740. shlibpath_var=
  8741. shlibpath_overrides_runpath=unknown
  8742. version_type=none
  8743. dynamic_linker="$host_os ld.so"
  8744. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8745. need_lib_prefix=unknown
  8746. hardcode_into_libs=no
  8747. # when you set need_version to no, make sure it does not cause -set_version
  8748. # flags to be left without arguments
  8749. need_version=unknown
  8750. case $host_os in
  8751. aix3*)
  8752. version_type=linux # correct to gnu/linux during the next big refactor
  8753. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8754. shlibpath_var=LIBPATH
  8755. # AIX 3 has no versioning support, so we append a major version to the name.
  8756. soname_spec='${libname}${release}${shared_ext}$major'
  8757. ;;
  8758. aix[4-9]*)
  8759. version_type=linux # correct to gnu/linux during the next big refactor
  8760. need_lib_prefix=no
  8761. need_version=no
  8762. hardcode_into_libs=yes
  8763. if test "$host_cpu" = ia64; then
  8764. # AIX 5 supports IA64
  8765. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8766. shlibpath_var=LD_LIBRARY_PATH
  8767. else
  8768. # With GCC up to 2.95.x, collect2 would create an import file
  8769. # for dependence libraries. The import file would start with
  8770. # the line `#! .'. This would cause the generated library to
  8771. # depend on `.', always an invalid library. This was fixed in
  8772. # development snapshots of GCC prior to 3.0.
  8773. case $host_os in
  8774. aix4 | aix4.[01] | aix4.[01].*)
  8775. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8776. echo ' yes '
  8777. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8778. :
  8779. else
  8780. can_build_shared=no
  8781. fi
  8782. ;;
  8783. esac
  8784. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8785. # soname into executable. Probably we can add versioning support to
  8786. # collect2, so additional links can be useful in future.
  8787. if test "$aix_use_runtimelinking" = yes; then
  8788. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8789. # instead of lib<name>.a to let people know that these are not
  8790. # typical AIX shared libraries.
  8791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8792. else
  8793. # We preserve .a as extension for shared libraries through AIX4.2
  8794. # and later when we are not doing run time linking.
  8795. library_names_spec='${libname}${release}.a $libname.a'
  8796. soname_spec='${libname}${release}${shared_ext}$major'
  8797. fi
  8798. shlibpath_var=LIBPATH
  8799. fi
  8800. ;;
  8801. amigaos*)
  8802. case $host_cpu in
  8803. powerpc)
  8804. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8805. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8807. ;;
  8808. m68k)
  8809. library_names_spec='$libname.ixlibrary $libname.a'
  8810. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8811. 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'
  8812. ;;
  8813. esac
  8814. ;;
  8815. beos*)
  8816. library_names_spec='${libname}${shared_ext}'
  8817. dynamic_linker="$host_os ld.so"
  8818. shlibpath_var=LIBRARY_PATH
  8819. ;;
  8820. bsdi[45]*)
  8821. version_type=linux # correct to gnu/linux during the next big refactor
  8822. need_version=no
  8823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8824. soname_spec='${libname}${release}${shared_ext}$major'
  8825. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8826. shlibpath_var=LD_LIBRARY_PATH
  8827. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8828. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8829. # the default ld.so.conf also contains /usr/contrib/lib and
  8830. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8831. # libtool to hard-code these into programs
  8832. ;;
  8833. cygwin* | mingw* | pw32* | cegcc*)
  8834. version_type=windows
  8835. shrext_cmds=".dll"
  8836. need_version=no
  8837. need_lib_prefix=no
  8838. case $GCC,$cc_basename in
  8839. yes,*)
  8840. # gcc
  8841. library_names_spec='$libname.dll.a'
  8842. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8843. postinstall_cmds='base_file=`basename \${file}`~
  8844. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8845. dldir=$destdir/`dirname \$dlpath`~
  8846. test -d \$dldir || mkdir -p \$dldir~
  8847. $install_prog $dir/$dlname \$dldir/$dlname~
  8848. chmod a+x \$dldir/$dlname~
  8849. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8850. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8851. fi'
  8852. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8853. dlpath=$dir/\$dldll~
  8854. $RM \$dlpath'
  8855. shlibpath_overrides_runpath=yes
  8856. case $host_os in
  8857. cygwin*)
  8858. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8859. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8860. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8861. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8862. ;;
  8863. mingw* | cegcc*)
  8864. # MinGW DLLs use traditional 'lib' prefix
  8865. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8866. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8867. ;;
  8868. pw32*)
  8869. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8870. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8871. ;;
  8872. esac
  8873. dynamic_linker='Win32 ld.exe'
  8874. ;;
  8875. *,cl*)
  8876. # Native MSVC
  8877. libname_spec='$name'
  8878. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8879. library_names_spec='${libname}.dll.lib'
  8880. case $build_os in
  8881. mingw*)
  8882. sys_lib_search_path_spec=
  8883. lt_save_ifs=$IFS
  8884. IFS=';'
  8885. for lt_path in $LIB
  8886. do
  8887. IFS=$lt_save_ifs
  8888. # Let DOS variable expansion print the short 8.3 style file name.
  8889. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8890. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8891. done
  8892. IFS=$lt_save_ifs
  8893. # Convert to MSYS style.
  8894. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8895. ;;
  8896. cygwin*)
  8897. # Convert to unix form, then to dos form, then back to unix form
  8898. # but this time dos style (no spaces!) so that the unix form looks
  8899. # like /cygdrive/c/PROGRA~1:/cygdr...
  8900. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8901. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8902. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8903. ;;
  8904. *)
  8905. sys_lib_search_path_spec="$LIB"
  8906. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8907. # It is most probably a Windows format PATH.
  8908. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8909. else
  8910. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8911. fi
  8912. # FIXME: find the short name or the path components, as spaces are
  8913. # common. (e.g. "Program Files" -> "PROGRA~1")
  8914. ;;
  8915. esac
  8916. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8917. postinstall_cmds='base_file=`basename \${file}`~
  8918. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8919. dldir=$destdir/`dirname \$dlpath`~
  8920. test -d \$dldir || mkdir -p \$dldir~
  8921. $install_prog $dir/$dlname \$dldir/$dlname'
  8922. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8923. dlpath=$dir/\$dldll~
  8924. $RM \$dlpath'
  8925. shlibpath_overrides_runpath=yes
  8926. dynamic_linker='Win32 link.exe'
  8927. ;;
  8928. *)
  8929. # Assume MSVC wrapper
  8930. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8931. dynamic_linker='Win32 ld.exe'
  8932. ;;
  8933. esac
  8934. # FIXME: first we should search . and the directory the executable is in
  8935. shlibpath_var=PATH
  8936. ;;
  8937. darwin* | rhapsody*)
  8938. dynamic_linker="$host_os dyld"
  8939. version_type=darwin
  8940. need_lib_prefix=no
  8941. need_version=no
  8942. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8943. soname_spec='${libname}${release}${major}$shared_ext'
  8944. shlibpath_overrides_runpath=yes
  8945. shlibpath_var=DYLD_LIBRARY_PATH
  8946. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8947. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8948. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8949. ;;
  8950. dgux*)
  8951. version_type=linux # correct to gnu/linux during the next big refactor
  8952. need_lib_prefix=no
  8953. need_version=no
  8954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8955. soname_spec='${libname}${release}${shared_ext}$major'
  8956. shlibpath_var=LD_LIBRARY_PATH
  8957. ;;
  8958. freebsd* | dragonfly*)
  8959. # DragonFly does not have aout. When/if they implement a new
  8960. # versioning mechanism, adjust this.
  8961. if test -x /usr/bin/objformat; then
  8962. objformat=`/usr/bin/objformat`
  8963. else
  8964. case $host_os in
  8965. freebsd[23].*) objformat=aout ;;
  8966. *) objformat=elf ;;
  8967. esac
  8968. fi
  8969. version_type=freebsd-$objformat
  8970. case $version_type in
  8971. freebsd-elf*)
  8972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8973. need_version=no
  8974. need_lib_prefix=no
  8975. ;;
  8976. freebsd-*)
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8978. need_version=yes
  8979. ;;
  8980. esac
  8981. shlibpath_var=LD_LIBRARY_PATH
  8982. case $host_os in
  8983. freebsd2.*)
  8984. shlibpath_overrides_runpath=yes
  8985. ;;
  8986. freebsd3.[01]* | freebsdelf3.[01]*)
  8987. shlibpath_overrides_runpath=yes
  8988. hardcode_into_libs=yes
  8989. ;;
  8990. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8991. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8992. shlibpath_overrides_runpath=no
  8993. hardcode_into_libs=yes
  8994. ;;
  8995. *) # from 4.6 on, and DragonFly
  8996. shlibpath_overrides_runpath=yes
  8997. hardcode_into_libs=yes
  8998. ;;
  8999. esac
  9000. ;;
  9001. gnu*)
  9002. version_type=linux # correct to gnu/linux during the next big refactor
  9003. need_lib_prefix=no
  9004. need_version=no
  9005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9006. soname_spec='${libname}${release}${shared_ext}$major'
  9007. shlibpath_var=LD_LIBRARY_PATH
  9008. shlibpath_overrides_runpath=no
  9009. hardcode_into_libs=yes
  9010. ;;
  9011. haiku*)
  9012. version_type=linux # correct to gnu/linux during the next big refactor
  9013. need_lib_prefix=no
  9014. need_version=no
  9015. dynamic_linker="$host_os runtime_loader"
  9016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9017. soname_spec='${libname}${release}${shared_ext}$major'
  9018. shlibpath_var=LIBRARY_PATH
  9019. shlibpath_overrides_runpath=yes
  9020. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9021. hardcode_into_libs=yes
  9022. ;;
  9023. hpux9* | hpux10* | hpux11*)
  9024. # Give a soname corresponding to the major version so that dld.sl refuses to
  9025. # link against other versions.
  9026. version_type=sunos
  9027. need_lib_prefix=no
  9028. need_version=no
  9029. case $host_cpu in
  9030. ia64*)
  9031. shrext_cmds='.so'
  9032. hardcode_into_libs=yes
  9033. dynamic_linker="$host_os dld.so"
  9034. shlibpath_var=LD_LIBRARY_PATH
  9035. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9037. soname_spec='${libname}${release}${shared_ext}$major'
  9038. if test "X$HPUX_IA64_MODE" = X32; then
  9039. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9040. else
  9041. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9042. fi
  9043. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9044. ;;
  9045. hppa*64*)
  9046. shrext_cmds='.sl'
  9047. hardcode_into_libs=yes
  9048. dynamic_linker="$host_os dld.sl"
  9049. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9050. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9052. soname_spec='${libname}${release}${shared_ext}$major'
  9053. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9054. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9055. ;;
  9056. *)
  9057. shrext_cmds='.sl'
  9058. dynamic_linker="$host_os dld.sl"
  9059. shlibpath_var=SHLIB_PATH
  9060. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9062. soname_spec='${libname}${release}${shared_ext}$major'
  9063. ;;
  9064. esac
  9065. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9066. postinstall_cmds='chmod 555 $lib'
  9067. # or fails outright, so override atomically:
  9068. install_override_mode=555
  9069. ;;
  9070. interix[3-9]*)
  9071. version_type=linux # correct to gnu/linux during the next big refactor
  9072. need_lib_prefix=no
  9073. need_version=no
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9077. shlibpath_var=LD_LIBRARY_PATH
  9078. shlibpath_overrides_runpath=no
  9079. hardcode_into_libs=yes
  9080. ;;
  9081. irix5* | irix6* | nonstopux*)
  9082. case $host_os in
  9083. nonstopux*) version_type=nonstopux ;;
  9084. *)
  9085. if test "$lt_cv_prog_gnu_ld" = yes; then
  9086. version_type=linux # correct to gnu/linux during the next big refactor
  9087. else
  9088. version_type=irix
  9089. fi ;;
  9090. esac
  9091. need_lib_prefix=no
  9092. need_version=no
  9093. soname_spec='${libname}${release}${shared_ext}$major'
  9094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9095. case $host_os in
  9096. irix5* | nonstopux*)
  9097. libsuff= shlibsuff=
  9098. ;;
  9099. *)
  9100. case $LD in # libtool.m4 will add one of these switches to LD
  9101. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9102. libsuff= shlibsuff= libmagic=32-bit;;
  9103. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9104. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9105. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9106. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9107. *) libsuff= shlibsuff= libmagic=never-match;;
  9108. esac
  9109. ;;
  9110. esac
  9111. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9112. shlibpath_overrides_runpath=no
  9113. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9114. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9115. hardcode_into_libs=yes
  9116. ;;
  9117. # No shared lib support for Linux oldld, aout, or coff.
  9118. linux*oldld* | linux*aout* | linux*coff*)
  9119. dynamic_linker=no
  9120. ;;
  9121. # This must be glibc/ELF.
  9122. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9123. version_type=linux # correct to gnu/linux during the next big refactor
  9124. need_lib_prefix=no
  9125. need_version=no
  9126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9127. soname_spec='${libname}${release}${shared_ext}$major'
  9128. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9129. shlibpath_var=LD_LIBRARY_PATH
  9130. shlibpath_overrides_runpath=no
  9131. # Some binutils ld are patched to set DT_RUNPATH
  9132. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9133. $as_echo_n "(cached) " >&6
  9134. else
  9135. lt_cv_shlibpath_overrides_runpath=no
  9136. save_LDFLAGS=$LDFLAGS
  9137. save_libdir=$libdir
  9138. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9139. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9141. /* end confdefs.h. */
  9142. int
  9143. main ()
  9144. {
  9145. ;
  9146. return 0;
  9147. }
  9148. _ACEOF
  9149. if ac_fn_c_try_link "$LINENO"; then :
  9150. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9151. lt_cv_shlibpath_overrides_runpath=yes
  9152. fi
  9153. fi
  9154. rm -f core conftest.err conftest.$ac_objext \
  9155. conftest$ac_exeext conftest.$ac_ext
  9156. LDFLAGS=$save_LDFLAGS
  9157. libdir=$save_libdir
  9158. fi
  9159. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9160. # This implies no fast_install, which is unacceptable.
  9161. # Some rework will be needed to allow for fast_install
  9162. # before this can be enabled.
  9163. hardcode_into_libs=yes
  9164. # Append ld.so.conf contents to the search path
  9165. if test -f /etc/ld.so.conf; then
  9166. 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' ' '`
  9167. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9168. fi
  9169. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9170. # powerpc, because MkLinux only supported shared libraries with the
  9171. # GNU dynamic linker. Since this was broken with cross compilers,
  9172. # most powerpc-linux boxes support dynamic linking these days and
  9173. # people can always --disable-shared, the test was removed, and we
  9174. # assume the GNU/Linux dynamic linker is in use.
  9175. dynamic_linker='GNU/Linux ld.so'
  9176. ;;
  9177. netbsd*)
  9178. version_type=sunos
  9179. need_lib_prefix=no
  9180. need_version=no
  9181. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9183. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9184. dynamic_linker='NetBSD (a.out) ld.so'
  9185. else
  9186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9187. soname_spec='${libname}${release}${shared_ext}$major'
  9188. dynamic_linker='NetBSD ld.elf_so'
  9189. fi
  9190. shlibpath_var=LD_LIBRARY_PATH
  9191. shlibpath_overrides_runpath=yes
  9192. hardcode_into_libs=yes
  9193. ;;
  9194. newsos6)
  9195. version_type=linux # correct to gnu/linux during the next big refactor
  9196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. shlibpath_overrides_runpath=yes
  9199. ;;
  9200. *nto* | *qnx*)
  9201. version_type=qnx
  9202. need_lib_prefix=no
  9203. need_version=no
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9205. soname_spec='${libname}${release}${shared_ext}$major'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. shlibpath_overrides_runpath=no
  9208. hardcode_into_libs=yes
  9209. dynamic_linker='ldqnx.so'
  9210. ;;
  9211. openbsd*)
  9212. version_type=sunos
  9213. sys_lib_dlsearch_path_spec="/usr/lib"
  9214. need_lib_prefix=no
  9215. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9216. case $host_os in
  9217. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9218. *) need_version=no ;;
  9219. esac
  9220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9221. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9222. shlibpath_var=LD_LIBRARY_PATH
  9223. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9224. case $host_os in
  9225. openbsd2.[89] | openbsd2.[89].*)
  9226. shlibpath_overrides_runpath=no
  9227. ;;
  9228. *)
  9229. shlibpath_overrides_runpath=yes
  9230. ;;
  9231. esac
  9232. else
  9233. shlibpath_overrides_runpath=yes
  9234. fi
  9235. ;;
  9236. os2*)
  9237. libname_spec='$name'
  9238. shrext_cmds=".dll"
  9239. need_lib_prefix=no
  9240. library_names_spec='$libname${shared_ext} $libname.a'
  9241. dynamic_linker='OS/2 ld.exe'
  9242. shlibpath_var=LIBPATH
  9243. ;;
  9244. osf3* | osf4* | osf5*)
  9245. version_type=osf
  9246. need_lib_prefix=no
  9247. need_version=no
  9248. soname_spec='${libname}${release}${shared_ext}$major'
  9249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9250. shlibpath_var=LD_LIBRARY_PATH
  9251. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9252. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9253. ;;
  9254. rdos*)
  9255. dynamic_linker=no
  9256. ;;
  9257. solaris*)
  9258. version_type=linux # correct to gnu/linux during the next big refactor
  9259. need_lib_prefix=no
  9260. need_version=no
  9261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9262. soname_spec='${libname}${release}${shared_ext}$major'
  9263. shlibpath_var=LD_LIBRARY_PATH
  9264. shlibpath_overrides_runpath=yes
  9265. hardcode_into_libs=yes
  9266. # ldd complains unless libraries are executable
  9267. postinstall_cmds='chmod +x $lib'
  9268. ;;
  9269. sunos4*)
  9270. version_type=sunos
  9271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9272. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9273. shlibpath_var=LD_LIBRARY_PATH
  9274. shlibpath_overrides_runpath=yes
  9275. if test "$with_gnu_ld" = yes; then
  9276. need_lib_prefix=no
  9277. fi
  9278. need_version=yes
  9279. ;;
  9280. sysv4 | sysv4.3*)
  9281. version_type=linux # correct to gnu/linux during the next big refactor
  9282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9283. soname_spec='${libname}${release}${shared_ext}$major'
  9284. shlibpath_var=LD_LIBRARY_PATH
  9285. case $host_vendor in
  9286. sni)
  9287. shlibpath_overrides_runpath=no
  9288. need_lib_prefix=no
  9289. runpath_var=LD_RUN_PATH
  9290. ;;
  9291. siemens)
  9292. need_lib_prefix=no
  9293. ;;
  9294. motorola)
  9295. need_lib_prefix=no
  9296. need_version=no
  9297. shlibpath_overrides_runpath=no
  9298. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9299. ;;
  9300. esac
  9301. ;;
  9302. sysv4*MP*)
  9303. if test -d /usr/nec ;then
  9304. version_type=linux # correct to gnu/linux during the next big refactor
  9305. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9306. soname_spec='$libname${shared_ext}.$major'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. fi
  9309. ;;
  9310. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9311. version_type=freebsd-elf
  9312. need_lib_prefix=no
  9313. need_version=no
  9314. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9315. soname_spec='${libname}${release}${shared_ext}$major'
  9316. shlibpath_var=LD_LIBRARY_PATH
  9317. shlibpath_overrides_runpath=yes
  9318. hardcode_into_libs=yes
  9319. if test "$with_gnu_ld" = yes; then
  9320. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9321. else
  9322. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9323. case $host_os in
  9324. sco3.2v5*)
  9325. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9326. ;;
  9327. esac
  9328. fi
  9329. sys_lib_dlsearch_path_spec='/usr/lib'
  9330. ;;
  9331. tpf*)
  9332. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9333. version_type=linux # correct to gnu/linux during the next big refactor
  9334. need_lib_prefix=no
  9335. need_version=no
  9336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9337. shlibpath_var=LD_LIBRARY_PATH
  9338. shlibpath_overrides_runpath=no
  9339. hardcode_into_libs=yes
  9340. ;;
  9341. uts4*)
  9342. version_type=linux # correct to gnu/linux during the next big refactor
  9343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9344. soname_spec='${libname}${release}${shared_ext}$major'
  9345. shlibpath_var=LD_LIBRARY_PATH
  9346. ;;
  9347. *)
  9348. dynamic_linker=no
  9349. ;;
  9350. esac
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9352. $as_echo "$dynamic_linker" >&6; }
  9353. test "$dynamic_linker" = no && can_build_shared=no
  9354. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9355. if test "$GCC" = yes; then
  9356. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9357. fi
  9358. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9359. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9360. fi
  9361. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9362. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9363. fi
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9365. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9366. hardcode_action=
  9367. if test -n "$hardcode_libdir_flag_spec" ||
  9368. test -n "$runpath_var" ||
  9369. test "X$hardcode_automatic" = "Xyes" ; then
  9370. # We can hardcode non-existent directories.
  9371. if test "$hardcode_direct" != no &&
  9372. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9373. # have to relink, otherwise we might link with an installed library
  9374. # when we should be linking with a yet-to-be-installed one
  9375. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9376. test "$hardcode_minus_L" != no; then
  9377. # Linking always hardcodes the temporary library directory.
  9378. hardcode_action=relink
  9379. else
  9380. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9381. hardcode_action=immediate
  9382. fi
  9383. else
  9384. # We cannot hardcode anything, or else we can only hardcode existing
  9385. # directories.
  9386. hardcode_action=unsupported
  9387. fi
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9389. $as_echo "$hardcode_action" >&6; }
  9390. if test "$hardcode_action" = relink ||
  9391. test "$inherit_rpath" = yes; then
  9392. # Fast installation is not supported
  9393. enable_fast_install=no
  9394. elif test "$shlibpath_overrides_runpath" = yes ||
  9395. test "$enable_shared" = no; then
  9396. # Fast installation is not necessary
  9397. enable_fast_install=needless
  9398. fi
  9399. if test "x$enable_dlopen" != xyes; then
  9400. enable_dlopen=unknown
  9401. enable_dlopen_self=unknown
  9402. enable_dlopen_self_static=unknown
  9403. else
  9404. lt_cv_dlopen=no
  9405. lt_cv_dlopen_libs=
  9406. case $host_os in
  9407. beos*)
  9408. lt_cv_dlopen="load_add_on"
  9409. lt_cv_dlopen_libs=
  9410. lt_cv_dlopen_self=yes
  9411. ;;
  9412. mingw* | pw32* | cegcc*)
  9413. lt_cv_dlopen="LoadLibrary"
  9414. lt_cv_dlopen_libs=
  9415. ;;
  9416. cygwin*)
  9417. lt_cv_dlopen="dlopen"
  9418. lt_cv_dlopen_libs=
  9419. ;;
  9420. darwin*)
  9421. # if libdl is installed we need to link against it
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9423. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9424. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9425. $as_echo_n "(cached) " >&6
  9426. else
  9427. ac_check_lib_save_LIBS=$LIBS
  9428. LIBS="-ldl $LIBS"
  9429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9430. /* end confdefs.h. */
  9431. /* Override any GCC internal prototype to avoid an error.
  9432. Use char because int might match the return type of a GCC
  9433. builtin and then its argument prototype would still apply. */
  9434. #ifdef __cplusplus
  9435. extern "C"
  9436. #endif
  9437. char dlopen ();
  9438. int
  9439. main ()
  9440. {
  9441. return dlopen ();
  9442. ;
  9443. return 0;
  9444. }
  9445. _ACEOF
  9446. if ac_fn_c_try_link "$LINENO"; then :
  9447. ac_cv_lib_dl_dlopen=yes
  9448. else
  9449. ac_cv_lib_dl_dlopen=no
  9450. fi
  9451. rm -f core conftest.err conftest.$ac_objext \
  9452. conftest$ac_exeext conftest.$ac_ext
  9453. LIBS=$ac_check_lib_save_LIBS
  9454. fi
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9456. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9457. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9458. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9459. else
  9460. lt_cv_dlopen="dyld"
  9461. lt_cv_dlopen_libs=
  9462. lt_cv_dlopen_self=yes
  9463. fi
  9464. ;;
  9465. *)
  9466. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9467. if test "x$ac_cv_func_shl_load" = xyes; then :
  9468. lt_cv_dlopen="shl_load"
  9469. else
  9470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9471. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9472. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9473. $as_echo_n "(cached) " >&6
  9474. else
  9475. ac_check_lib_save_LIBS=$LIBS
  9476. LIBS="-ldld $LIBS"
  9477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9478. /* end confdefs.h. */
  9479. /* Override any GCC internal prototype to avoid an error.
  9480. Use char because int might match the return type of a GCC
  9481. builtin and then its argument prototype would still apply. */
  9482. #ifdef __cplusplus
  9483. extern "C"
  9484. #endif
  9485. char shl_load ();
  9486. int
  9487. main ()
  9488. {
  9489. return shl_load ();
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. if ac_fn_c_try_link "$LINENO"; then :
  9495. ac_cv_lib_dld_shl_load=yes
  9496. else
  9497. ac_cv_lib_dld_shl_load=no
  9498. fi
  9499. rm -f core conftest.err conftest.$ac_objext \
  9500. conftest$ac_exeext conftest.$ac_ext
  9501. LIBS=$ac_check_lib_save_LIBS
  9502. fi
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9504. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9505. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9506. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9507. else
  9508. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9509. if test "x$ac_cv_func_dlopen" = xyes; then :
  9510. lt_cv_dlopen="dlopen"
  9511. else
  9512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9513. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9514. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9515. $as_echo_n "(cached) " >&6
  9516. else
  9517. ac_check_lib_save_LIBS=$LIBS
  9518. LIBS="-ldl $LIBS"
  9519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9520. /* end confdefs.h. */
  9521. /* Override any GCC internal prototype to avoid an error.
  9522. Use char because int might match the return type of a GCC
  9523. builtin and then its argument prototype would still apply. */
  9524. #ifdef __cplusplus
  9525. extern "C"
  9526. #endif
  9527. char dlopen ();
  9528. int
  9529. main ()
  9530. {
  9531. return dlopen ();
  9532. ;
  9533. return 0;
  9534. }
  9535. _ACEOF
  9536. if ac_fn_c_try_link "$LINENO"; then :
  9537. ac_cv_lib_dl_dlopen=yes
  9538. else
  9539. ac_cv_lib_dl_dlopen=no
  9540. fi
  9541. rm -f core conftest.err conftest.$ac_objext \
  9542. conftest$ac_exeext conftest.$ac_ext
  9543. LIBS=$ac_check_lib_save_LIBS
  9544. fi
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9546. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9547. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9548. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9549. else
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9551. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9552. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9553. $as_echo_n "(cached) " >&6
  9554. else
  9555. ac_check_lib_save_LIBS=$LIBS
  9556. LIBS="-lsvld $LIBS"
  9557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9558. /* end confdefs.h. */
  9559. /* Override any GCC internal prototype to avoid an error.
  9560. Use char because int might match the return type of a GCC
  9561. builtin and then its argument prototype would still apply. */
  9562. #ifdef __cplusplus
  9563. extern "C"
  9564. #endif
  9565. char dlopen ();
  9566. int
  9567. main ()
  9568. {
  9569. return dlopen ();
  9570. ;
  9571. return 0;
  9572. }
  9573. _ACEOF
  9574. if ac_fn_c_try_link "$LINENO"; then :
  9575. ac_cv_lib_svld_dlopen=yes
  9576. else
  9577. ac_cv_lib_svld_dlopen=no
  9578. fi
  9579. rm -f core conftest.err conftest.$ac_objext \
  9580. conftest$ac_exeext conftest.$ac_ext
  9581. LIBS=$ac_check_lib_save_LIBS
  9582. fi
  9583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9584. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9585. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9586. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9587. else
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9589. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9590. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9591. $as_echo_n "(cached) " >&6
  9592. else
  9593. ac_check_lib_save_LIBS=$LIBS
  9594. LIBS="-ldld $LIBS"
  9595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9596. /* end confdefs.h. */
  9597. /* Override any GCC internal prototype to avoid an error.
  9598. Use char because int might match the return type of a GCC
  9599. builtin and then its argument prototype would still apply. */
  9600. #ifdef __cplusplus
  9601. extern "C"
  9602. #endif
  9603. char dld_link ();
  9604. int
  9605. main ()
  9606. {
  9607. return dld_link ();
  9608. ;
  9609. return 0;
  9610. }
  9611. _ACEOF
  9612. if ac_fn_c_try_link "$LINENO"; then :
  9613. ac_cv_lib_dld_dld_link=yes
  9614. else
  9615. ac_cv_lib_dld_dld_link=no
  9616. fi
  9617. rm -f core conftest.err conftest.$ac_objext \
  9618. conftest$ac_exeext conftest.$ac_ext
  9619. LIBS=$ac_check_lib_save_LIBS
  9620. fi
  9621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9622. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9623. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9624. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9625. fi
  9626. fi
  9627. fi
  9628. fi
  9629. fi
  9630. fi
  9631. ;;
  9632. esac
  9633. if test "x$lt_cv_dlopen" != xno; then
  9634. enable_dlopen=yes
  9635. else
  9636. enable_dlopen=no
  9637. fi
  9638. case $lt_cv_dlopen in
  9639. dlopen)
  9640. save_CPPFLAGS="$CPPFLAGS"
  9641. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9642. save_LDFLAGS="$LDFLAGS"
  9643. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9644. save_LIBS="$LIBS"
  9645. LIBS="$lt_cv_dlopen_libs $LIBS"
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9647. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9648. if ${lt_cv_dlopen_self+:} false; then :
  9649. $as_echo_n "(cached) " >&6
  9650. else
  9651. if test "$cross_compiling" = yes; then :
  9652. lt_cv_dlopen_self=cross
  9653. else
  9654. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9655. lt_status=$lt_dlunknown
  9656. cat > conftest.$ac_ext <<_LT_EOF
  9657. #line $LINENO "configure"
  9658. #include "confdefs.h"
  9659. #if HAVE_DLFCN_H
  9660. #include <dlfcn.h>
  9661. #endif
  9662. #include <stdio.h>
  9663. #ifdef RTLD_GLOBAL
  9664. # define LT_DLGLOBAL RTLD_GLOBAL
  9665. #else
  9666. # ifdef DL_GLOBAL
  9667. # define LT_DLGLOBAL DL_GLOBAL
  9668. # else
  9669. # define LT_DLGLOBAL 0
  9670. # endif
  9671. #endif
  9672. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9673. find out it does not work in some platform. */
  9674. #ifndef LT_DLLAZY_OR_NOW
  9675. # ifdef RTLD_LAZY
  9676. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9677. # else
  9678. # ifdef DL_LAZY
  9679. # define LT_DLLAZY_OR_NOW DL_LAZY
  9680. # else
  9681. # ifdef RTLD_NOW
  9682. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9683. # else
  9684. # ifdef DL_NOW
  9685. # define LT_DLLAZY_OR_NOW DL_NOW
  9686. # else
  9687. # define LT_DLLAZY_OR_NOW 0
  9688. # endif
  9689. # endif
  9690. # endif
  9691. # endif
  9692. #endif
  9693. /* When -fvisbility=hidden is used, assume the code has been annotated
  9694. correspondingly for the symbols needed. */
  9695. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9696. int fnord () __attribute__((visibility("default")));
  9697. #endif
  9698. int fnord () { return 42; }
  9699. int main ()
  9700. {
  9701. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9702. int status = $lt_dlunknown;
  9703. if (self)
  9704. {
  9705. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9706. else
  9707. {
  9708. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9709. else puts (dlerror ());
  9710. }
  9711. /* dlclose (self); */
  9712. }
  9713. else
  9714. puts (dlerror ());
  9715. return status;
  9716. }
  9717. _LT_EOF
  9718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9719. (eval $ac_link) 2>&5
  9720. ac_status=$?
  9721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9722. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9723. (./conftest; exit; ) >&5 2>/dev/null
  9724. lt_status=$?
  9725. case x$lt_status in
  9726. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9727. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9728. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9729. esac
  9730. else :
  9731. # compilation failed
  9732. lt_cv_dlopen_self=no
  9733. fi
  9734. fi
  9735. rm -fr conftest*
  9736. fi
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9738. $as_echo "$lt_cv_dlopen_self" >&6; }
  9739. if test "x$lt_cv_dlopen_self" = xyes; then
  9740. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9742. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9743. if ${lt_cv_dlopen_self_static+:} false; then :
  9744. $as_echo_n "(cached) " >&6
  9745. else
  9746. if test "$cross_compiling" = yes; then :
  9747. lt_cv_dlopen_self_static=cross
  9748. else
  9749. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9750. lt_status=$lt_dlunknown
  9751. cat > conftest.$ac_ext <<_LT_EOF
  9752. #line $LINENO "configure"
  9753. #include "confdefs.h"
  9754. #if HAVE_DLFCN_H
  9755. #include <dlfcn.h>
  9756. #endif
  9757. #include <stdio.h>
  9758. #ifdef RTLD_GLOBAL
  9759. # define LT_DLGLOBAL RTLD_GLOBAL
  9760. #else
  9761. # ifdef DL_GLOBAL
  9762. # define LT_DLGLOBAL DL_GLOBAL
  9763. # else
  9764. # define LT_DLGLOBAL 0
  9765. # endif
  9766. #endif
  9767. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9768. find out it does not work in some platform. */
  9769. #ifndef LT_DLLAZY_OR_NOW
  9770. # ifdef RTLD_LAZY
  9771. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9772. # else
  9773. # ifdef DL_LAZY
  9774. # define LT_DLLAZY_OR_NOW DL_LAZY
  9775. # else
  9776. # ifdef RTLD_NOW
  9777. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9778. # else
  9779. # ifdef DL_NOW
  9780. # define LT_DLLAZY_OR_NOW DL_NOW
  9781. # else
  9782. # define LT_DLLAZY_OR_NOW 0
  9783. # endif
  9784. # endif
  9785. # endif
  9786. # endif
  9787. #endif
  9788. /* When -fvisbility=hidden is used, assume the code has been annotated
  9789. correspondingly for the symbols needed. */
  9790. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9791. int fnord () __attribute__((visibility("default")));
  9792. #endif
  9793. int fnord () { return 42; }
  9794. int main ()
  9795. {
  9796. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9797. int status = $lt_dlunknown;
  9798. if (self)
  9799. {
  9800. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9801. else
  9802. {
  9803. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9804. else puts (dlerror ());
  9805. }
  9806. /* dlclose (self); */
  9807. }
  9808. else
  9809. puts (dlerror ());
  9810. return status;
  9811. }
  9812. _LT_EOF
  9813. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9814. (eval $ac_link) 2>&5
  9815. ac_status=$?
  9816. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9817. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9818. (./conftest; exit; ) >&5 2>/dev/null
  9819. lt_status=$?
  9820. case x$lt_status in
  9821. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9822. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9823. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9824. esac
  9825. else :
  9826. # compilation failed
  9827. lt_cv_dlopen_self_static=no
  9828. fi
  9829. fi
  9830. rm -fr conftest*
  9831. fi
  9832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9833. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9834. fi
  9835. CPPFLAGS="$save_CPPFLAGS"
  9836. LDFLAGS="$save_LDFLAGS"
  9837. LIBS="$save_LIBS"
  9838. ;;
  9839. esac
  9840. case $lt_cv_dlopen_self in
  9841. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9842. *) enable_dlopen_self=unknown ;;
  9843. esac
  9844. case $lt_cv_dlopen_self_static in
  9845. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9846. *) enable_dlopen_self_static=unknown ;;
  9847. esac
  9848. fi
  9849. striplib=
  9850. old_striplib=
  9851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9852. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9853. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9854. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9855. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9857. $as_echo "yes" >&6; }
  9858. else
  9859. # FIXME - insert some real tests, host_os isn't really good enough
  9860. case $host_os in
  9861. darwin*)
  9862. if test -n "$STRIP" ; then
  9863. striplib="$STRIP -x"
  9864. old_striplib="$STRIP -S"
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9866. $as_echo "yes" >&6; }
  9867. else
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9869. $as_echo "no" >&6; }
  9870. fi
  9871. ;;
  9872. *)
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9874. $as_echo "no" >&6; }
  9875. ;;
  9876. esac
  9877. fi
  9878. # Report which library types will actually be built
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9880. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9882. $as_echo "$can_build_shared" >&6; }
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9884. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9885. test "$can_build_shared" = "no" && enable_shared=no
  9886. # On AIX, shared libraries and static libraries use the same namespace, and
  9887. # are all built from PIC.
  9888. case $host_os in
  9889. aix3*)
  9890. test "$enable_shared" = yes && enable_static=no
  9891. if test -n "$RANLIB"; then
  9892. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9893. postinstall_cmds='$RANLIB $lib'
  9894. fi
  9895. ;;
  9896. aix[4-9]*)
  9897. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9898. test "$enable_shared" = yes && enable_static=no
  9899. fi
  9900. ;;
  9901. esac
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9903. $as_echo "$enable_shared" >&6; }
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9905. $as_echo_n "checking whether to build static libraries... " >&6; }
  9906. # Make sure either enable_shared or enable_static is yes.
  9907. test "$enable_shared" = yes || enable_static=yes
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9909. $as_echo "$enable_static" >&6; }
  9910. fi
  9911. ac_ext=c
  9912. ac_cpp='$CPP $CPPFLAGS'
  9913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9916. CC="$lt_save_CC"
  9917. ac_config_commands="$ac_config_commands libtool"
  9918. # Only expand once:
  9919. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9920. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9921. LT_REVISION=$SDL_INTERFACE_AGE
  9922. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9923. ac_ext=c
  9924. ac_cpp='$CPP $CPPFLAGS'
  9925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9928. if test -n "$ac_tool_prefix"; then
  9929. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9930. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9932. $as_echo_n "checking for $ac_word... " >&6; }
  9933. if ${ac_cv_prog_CC+:} false; then :
  9934. $as_echo_n "(cached) " >&6
  9935. else
  9936. if test -n "$CC"; then
  9937. ac_cv_prog_CC="$CC" # Let the user override the test.
  9938. else
  9939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9940. for as_dir in $PATH
  9941. do
  9942. IFS=$as_save_IFS
  9943. test -z "$as_dir" && as_dir=.
  9944. for ac_exec_ext in '' $ac_executable_extensions; do
  9945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9946. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9948. break 2
  9949. fi
  9950. done
  9951. done
  9952. IFS=$as_save_IFS
  9953. fi
  9954. fi
  9955. CC=$ac_cv_prog_CC
  9956. if test -n "$CC"; then
  9957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9958. $as_echo "$CC" >&6; }
  9959. else
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9961. $as_echo "no" >&6; }
  9962. fi
  9963. fi
  9964. if test -z "$ac_cv_prog_CC"; then
  9965. ac_ct_CC=$CC
  9966. # Extract the first word of "gcc", so it can be a program name with args.
  9967. set dummy gcc; ac_word=$2
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9969. $as_echo_n "checking for $ac_word... " >&6; }
  9970. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9971. $as_echo_n "(cached) " >&6
  9972. else
  9973. if test -n "$ac_ct_CC"; then
  9974. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9975. else
  9976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9977. for as_dir in $PATH
  9978. do
  9979. IFS=$as_save_IFS
  9980. test -z "$as_dir" && as_dir=.
  9981. for ac_exec_ext in '' $ac_executable_extensions; do
  9982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9983. ac_cv_prog_ac_ct_CC="gcc"
  9984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9985. break 2
  9986. fi
  9987. done
  9988. done
  9989. IFS=$as_save_IFS
  9990. fi
  9991. fi
  9992. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9993. if test -n "$ac_ct_CC"; then
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9995. $as_echo "$ac_ct_CC" >&6; }
  9996. else
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9998. $as_echo "no" >&6; }
  9999. fi
  10000. if test "x$ac_ct_CC" = x; then
  10001. CC=""
  10002. else
  10003. case $cross_compiling:$ac_tool_warned in
  10004. yes:)
  10005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10007. ac_tool_warned=yes ;;
  10008. esac
  10009. CC=$ac_ct_CC
  10010. fi
  10011. else
  10012. CC="$ac_cv_prog_CC"
  10013. fi
  10014. if test -z "$CC"; then
  10015. if test -n "$ac_tool_prefix"; then
  10016. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10017. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10019. $as_echo_n "checking for $ac_word... " >&6; }
  10020. if ${ac_cv_prog_CC+:} false; then :
  10021. $as_echo_n "(cached) " >&6
  10022. else
  10023. if test -n "$CC"; then
  10024. ac_cv_prog_CC="$CC" # Let the user override the test.
  10025. else
  10026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10027. for as_dir in $PATH
  10028. do
  10029. IFS=$as_save_IFS
  10030. test -z "$as_dir" && as_dir=.
  10031. for ac_exec_ext in '' $ac_executable_extensions; do
  10032. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10033. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10035. break 2
  10036. fi
  10037. done
  10038. done
  10039. IFS=$as_save_IFS
  10040. fi
  10041. fi
  10042. CC=$ac_cv_prog_CC
  10043. if test -n "$CC"; then
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10045. $as_echo "$CC" >&6; }
  10046. else
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10048. $as_echo "no" >&6; }
  10049. fi
  10050. fi
  10051. fi
  10052. if test -z "$CC"; then
  10053. # Extract the first word of "cc", so it can be a program name with args.
  10054. set dummy cc; ac_word=$2
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10056. $as_echo_n "checking for $ac_word... " >&6; }
  10057. if ${ac_cv_prog_CC+:} false; then :
  10058. $as_echo_n "(cached) " >&6
  10059. else
  10060. if test -n "$CC"; then
  10061. ac_cv_prog_CC="$CC" # Let the user override the test.
  10062. else
  10063. ac_prog_rejected=no
  10064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10065. for as_dir in $PATH
  10066. do
  10067. IFS=$as_save_IFS
  10068. test -z "$as_dir" && as_dir=.
  10069. for ac_exec_ext in '' $ac_executable_extensions; do
  10070. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10071. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10072. ac_prog_rejected=yes
  10073. continue
  10074. fi
  10075. ac_cv_prog_CC="cc"
  10076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10077. break 2
  10078. fi
  10079. done
  10080. done
  10081. IFS=$as_save_IFS
  10082. if test $ac_prog_rejected = yes; then
  10083. # We found a bogon in the path, so make sure we never use it.
  10084. set dummy $ac_cv_prog_CC
  10085. shift
  10086. if test $# != 0; then
  10087. # We chose a different compiler from the bogus one.
  10088. # However, it has the same basename, so the bogon will be chosen
  10089. # first if we set CC to just the basename; use the full file name.
  10090. shift
  10091. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10092. fi
  10093. fi
  10094. fi
  10095. fi
  10096. CC=$ac_cv_prog_CC
  10097. if test -n "$CC"; then
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10099. $as_echo "$CC" >&6; }
  10100. else
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10102. $as_echo "no" >&6; }
  10103. fi
  10104. fi
  10105. if test -z "$CC"; then
  10106. if test -n "$ac_tool_prefix"; then
  10107. for ac_prog in cl.exe
  10108. do
  10109. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10110. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10112. $as_echo_n "checking for $ac_word... " >&6; }
  10113. if ${ac_cv_prog_CC+:} false; then :
  10114. $as_echo_n "(cached) " >&6
  10115. else
  10116. if test -n "$CC"; then
  10117. ac_cv_prog_CC="$CC" # Let the user override the test.
  10118. else
  10119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10120. for as_dir in $PATH
  10121. do
  10122. IFS=$as_save_IFS
  10123. test -z "$as_dir" && as_dir=.
  10124. for ac_exec_ext in '' $ac_executable_extensions; do
  10125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10126. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10128. break 2
  10129. fi
  10130. done
  10131. done
  10132. IFS=$as_save_IFS
  10133. fi
  10134. fi
  10135. CC=$ac_cv_prog_CC
  10136. if test -n "$CC"; then
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10138. $as_echo "$CC" >&6; }
  10139. else
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10141. $as_echo "no" >&6; }
  10142. fi
  10143. test -n "$CC" && break
  10144. done
  10145. fi
  10146. if test -z "$CC"; then
  10147. ac_ct_CC=$CC
  10148. for ac_prog in cl.exe
  10149. do
  10150. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10151. set dummy $ac_prog; ac_word=$2
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10153. $as_echo_n "checking for $ac_word... " >&6; }
  10154. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10155. $as_echo_n "(cached) " >&6
  10156. else
  10157. if test -n "$ac_ct_CC"; then
  10158. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10159. else
  10160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10161. for as_dir in $PATH
  10162. do
  10163. IFS=$as_save_IFS
  10164. test -z "$as_dir" && as_dir=.
  10165. for ac_exec_ext in '' $ac_executable_extensions; do
  10166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10167. ac_cv_prog_ac_ct_CC="$ac_prog"
  10168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10169. break 2
  10170. fi
  10171. done
  10172. done
  10173. IFS=$as_save_IFS
  10174. fi
  10175. fi
  10176. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10177. if test -n "$ac_ct_CC"; then
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10179. $as_echo "$ac_ct_CC" >&6; }
  10180. else
  10181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10182. $as_echo "no" >&6; }
  10183. fi
  10184. test -n "$ac_ct_CC" && break
  10185. done
  10186. if test "x$ac_ct_CC" = x; then
  10187. CC=""
  10188. else
  10189. case $cross_compiling:$ac_tool_warned in
  10190. yes:)
  10191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10193. ac_tool_warned=yes ;;
  10194. esac
  10195. CC=$ac_ct_CC
  10196. fi
  10197. fi
  10198. fi
  10199. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10201. as_fn_error $? "no acceptable C compiler found in \$PATH
  10202. See \`config.log' for more details" "$LINENO" 5; }
  10203. # Provide some information about the compiler.
  10204. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10205. set X $ac_compile
  10206. ac_compiler=$2
  10207. for ac_option in --version -v -V -qversion; do
  10208. { { ac_try="$ac_compiler $ac_option >&5"
  10209. case "(($ac_try" in
  10210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10211. *) ac_try_echo=$ac_try;;
  10212. esac
  10213. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10214. $as_echo "$ac_try_echo"; } >&5
  10215. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10216. ac_status=$?
  10217. if test -s conftest.err; then
  10218. sed '10a\
  10219. ... rest of stderr output deleted ...
  10220. 10q' conftest.err >conftest.er1
  10221. cat conftest.er1 >&5
  10222. fi
  10223. rm -f conftest.er1 conftest.err
  10224. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10225. test $ac_status = 0; }
  10226. done
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10228. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10229. if ${ac_cv_c_compiler_gnu+:} false; then :
  10230. $as_echo_n "(cached) " >&6
  10231. else
  10232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10233. /* end confdefs.h. */
  10234. int
  10235. main ()
  10236. {
  10237. #ifndef __GNUC__
  10238. choke me
  10239. #endif
  10240. ;
  10241. return 0;
  10242. }
  10243. _ACEOF
  10244. if ac_fn_c_try_compile "$LINENO"; then :
  10245. ac_compiler_gnu=yes
  10246. else
  10247. ac_compiler_gnu=no
  10248. fi
  10249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10250. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10251. fi
  10252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10253. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10254. if test $ac_compiler_gnu = yes; then
  10255. GCC=yes
  10256. else
  10257. GCC=
  10258. fi
  10259. ac_test_CFLAGS=${CFLAGS+set}
  10260. ac_save_CFLAGS=$CFLAGS
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10262. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10263. if ${ac_cv_prog_cc_g+:} false; then :
  10264. $as_echo_n "(cached) " >&6
  10265. else
  10266. ac_save_c_werror_flag=$ac_c_werror_flag
  10267. ac_c_werror_flag=yes
  10268. ac_cv_prog_cc_g=no
  10269. CFLAGS="-g"
  10270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10271. /* end confdefs.h. */
  10272. int
  10273. main ()
  10274. {
  10275. ;
  10276. return 0;
  10277. }
  10278. _ACEOF
  10279. if ac_fn_c_try_compile "$LINENO"; then :
  10280. ac_cv_prog_cc_g=yes
  10281. else
  10282. CFLAGS=""
  10283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10284. /* end confdefs.h. */
  10285. int
  10286. main ()
  10287. {
  10288. ;
  10289. return 0;
  10290. }
  10291. _ACEOF
  10292. if ac_fn_c_try_compile "$LINENO"; then :
  10293. else
  10294. ac_c_werror_flag=$ac_save_c_werror_flag
  10295. CFLAGS="-g"
  10296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10297. /* end confdefs.h. */
  10298. int
  10299. main ()
  10300. {
  10301. ;
  10302. return 0;
  10303. }
  10304. _ACEOF
  10305. if ac_fn_c_try_compile "$LINENO"; then :
  10306. ac_cv_prog_cc_g=yes
  10307. fi
  10308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10309. fi
  10310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10311. fi
  10312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10313. ac_c_werror_flag=$ac_save_c_werror_flag
  10314. fi
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10316. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10317. if test "$ac_test_CFLAGS" = set; then
  10318. CFLAGS=$ac_save_CFLAGS
  10319. elif test $ac_cv_prog_cc_g = yes; then
  10320. if test "$GCC" = yes; then
  10321. CFLAGS="-g -O2"
  10322. else
  10323. CFLAGS="-g"
  10324. fi
  10325. else
  10326. if test "$GCC" = yes; then
  10327. CFLAGS="-O2"
  10328. else
  10329. CFLAGS=
  10330. fi
  10331. fi
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10333. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10334. if ${ac_cv_prog_cc_c89+:} false; then :
  10335. $as_echo_n "(cached) " >&6
  10336. else
  10337. ac_cv_prog_cc_c89=no
  10338. ac_save_CC=$CC
  10339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10340. /* end confdefs.h. */
  10341. #include <stdarg.h>
  10342. #include <stdio.h>
  10343. struct stat;
  10344. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10345. struct buf { int x; };
  10346. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10347. static char *e (p, i)
  10348. char **p;
  10349. int i;
  10350. {
  10351. return p[i];
  10352. }
  10353. static char *f (char * (*g) (char **, int), char **p, ...)
  10354. {
  10355. char *s;
  10356. va_list v;
  10357. va_start (v,p);
  10358. s = g (p, va_arg (v,int));
  10359. va_end (v);
  10360. return s;
  10361. }
  10362. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10363. function prototypes and stuff, but not '\xHH' hex character constants.
  10364. These don't provoke an error unfortunately, instead are silently treated
  10365. as 'x'. The following induces an error, until -std is added to get
  10366. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10367. array size at least. It's necessary to write '\x00'==0 to get something
  10368. that's true only with -std. */
  10369. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10370. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10371. inside strings and character constants. */
  10372. #define FOO(x) 'x'
  10373. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10374. int test (int i, double x);
  10375. struct s1 {int (*f) (int a);};
  10376. struct s2 {int (*f) (double a);};
  10377. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10378. int argc;
  10379. char **argv;
  10380. int
  10381. main ()
  10382. {
  10383. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10384. ;
  10385. return 0;
  10386. }
  10387. _ACEOF
  10388. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10389. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10390. do
  10391. CC="$ac_save_CC $ac_arg"
  10392. if ac_fn_c_try_compile "$LINENO"; then :
  10393. ac_cv_prog_cc_c89=$ac_arg
  10394. fi
  10395. rm -f core conftest.err conftest.$ac_objext
  10396. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10397. done
  10398. rm -f conftest.$ac_ext
  10399. CC=$ac_save_CC
  10400. fi
  10401. # AC_CACHE_VAL
  10402. case "x$ac_cv_prog_cc_c89" in
  10403. x)
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10405. $as_echo "none needed" >&6; } ;;
  10406. xno)
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10408. $as_echo "unsupported" >&6; } ;;
  10409. *)
  10410. CC="$CC $ac_cv_prog_cc_c89"
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10412. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10413. esac
  10414. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10415. fi
  10416. ac_ext=c
  10417. ac_cpp='$CPP $CPPFLAGS'
  10418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10421. ac_ext=cpp
  10422. ac_cpp='$CXXCPP $CPPFLAGS'
  10423. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10424. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10425. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10426. if test -z "$CXX"; then
  10427. if test -n "$CCC"; then
  10428. CXX=$CCC
  10429. else
  10430. if test -n "$ac_tool_prefix"; then
  10431. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10432. do
  10433. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10434. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10436. $as_echo_n "checking for $ac_word... " >&6; }
  10437. if ${ac_cv_prog_CXX+:} false; then :
  10438. $as_echo_n "(cached) " >&6
  10439. else
  10440. if test -n "$CXX"; then
  10441. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10442. else
  10443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10444. for as_dir in $PATH
  10445. do
  10446. IFS=$as_save_IFS
  10447. test -z "$as_dir" && as_dir=.
  10448. for ac_exec_ext in '' $ac_executable_extensions; do
  10449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10450. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10452. break 2
  10453. fi
  10454. done
  10455. done
  10456. IFS=$as_save_IFS
  10457. fi
  10458. fi
  10459. CXX=$ac_cv_prog_CXX
  10460. if test -n "$CXX"; then
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10462. $as_echo "$CXX" >&6; }
  10463. else
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10465. $as_echo "no" >&6; }
  10466. fi
  10467. test -n "$CXX" && break
  10468. done
  10469. fi
  10470. if test -z "$CXX"; then
  10471. ac_ct_CXX=$CXX
  10472. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10473. do
  10474. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10475. set dummy $ac_prog; ac_word=$2
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10477. $as_echo_n "checking for $ac_word... " >&6; }
  10478. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10479. $as_echo_n "(cached) " >&6
  10480. else
  10481. if test -n "$ac_ct_CXX"; then
  10482. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10483. else
  10484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10485. for as_dir in $PATH
  10486. do
  10487. IFS=$as_save_IFS
  10488. test -z "$as_dir" && as_dir=.
  10489. for ac_exec_ext in '' $ac_executable_extensions; do
  10490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10491. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10493. break 2
  10494. fi
  10495. done
  10496. done
  10497. IFS=$as_save_IFS
  10498. fi
  10499. fi
  10500. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10501. if test -n "$ac_ct_CXX"; then
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10503. $as_echo "$ac_ct_CXX" >&6; }
  10504. else
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10506. $as_echo "no" >&6; }
  10507. fi
  10508. test -n "$ac_ct_CXX" && break
  10509. done
  10510. if test "x$ac_ct_CXX" = x; then
  10511. CXX="g++"
  10512. else
  10513. case $cross_compiling:$ac_tool_warned in
  10514. yes:)
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10516. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10517. ac_tool_warned=yes ;;
  10518. esac
  10519. CXX=$ac_ct_CXX
  10520. fi
  10521. fi
  10522. fi
  10523. fi
  10524. # Provide some information about the compiler.
  10525. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10526. set X $ac_compile
  10527. ac_compiler=$2
  10528. for ac_option in --version -v -V -qversion; do
  10529. { { ac_try="$ac_compiler $ac_option >&5"
  10530. case "(($ac_try" in
  10531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10532. *) ac_try_echo=$ac_try;;
  10533. esac
  10534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10535. $as_echo "$ac_try_echo"; } >&5
  10536. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10537. ac_status=$?
  10538. if test -s conftest.err; then
  10539. sed '10a\
  10540. ... rest of stderr output deleted ...
  10541. 10q' conftest.err >conftest.er1
  10542. cat conftest.er1 >&5
  10543. fi
  10544. rm -f conftest.er1 conftest.err
  10545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10546. test $ac_status = 0; }
  10547. done
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10549. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10550. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10551. $as_echo_n "(cached) " >&6
  10552. else
  10553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10554. /* end confdefs.h. */
  10555. int
  10556. main ()
  10557. {
  10558. #ifndef __GNUC__
  10559. choke me
  10560. #endif
  10561. ;
  10562. return 0;
  10563. }
  10564. _ACEOF
  10565. if ac_fn_cxx_try_compile "$LINENO"; then :
  10566. ac_compiler_gnu=yes
  10567. else
  10568. ac_compiler_gnu=no
  10569. fi
  10570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10571. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10572. fi
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10574. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10575. if test $ac_compiler_gnu = yes; then
  10576. GXX=yes
  10577. else
  10578. GXX=
  10579. fi
  10580. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10581. ac_save_CXXFLAGS=$CXXFLAGS
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10583. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10584. if ${ac_cv_prog_cxx_g+:} false; then :
  10585. $as_echo_n "(cached) " >&6
  10586. else
  10587. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10588. ac_cxx_werror_flag=yes
  10589. ac_cv_prog_cxx_g=no
  10590. CXXFLAGS="-g"
  10591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10592. /* end confdefs.h. */
  10593. int
  10594. main ()
  10595. {
  10596. ;
  10597. return 0;
  10598. }
  10599. _ACEOF
  10600. if ac_fn_cxx_try_compile "$LINENO"; then :
  10601. ac_cv_prog_cxx_g=yes
  10602. else
  10603. CXXFLAGS=""
  10604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10605. /* end confdefs.h. */
  10606. int
  10607. main ()
  10608. {
  10609. ;
  10610. return 0;
  10611. }
  10612. _ACEOF
  10613. if ac_fn_cxx_try_compile "$LINENO"; then :
  10614. else
  10615. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10616. CXXFLAGS="-g"
  10617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10618. /* end confdefs.h. */
  10619. int
  10620. main ()
  10621. {
  10622. ;
  10623. return 0;
  10624. }
  10625. _ACEOF
  10626. if ac_fn_cxx_try_compile "$LINENO"; then :
  10627. ac_cv_prog_cxx_g=yes
  10628. fi
  10629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10630. fi
  10631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10632. fi
  10633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10634. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10635. fi
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10637. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10638. if test "$ac_test_CXXFLAGS" = set; then
  10639. CXXFLAGS=$ac_save_CXXFLAGS
  10640. elif test $ac_cv_prog_cxx_g = yes; then
  10641. if test "$GXX" = yes; then
  10642. CXXFLAGS="-g -O2"
  10643. else
  10644. CXXFLAGS="-g"
  10645. fi
  10646. else
  10647. if test "$GXX" = yes; then
  10648. CXXFLAGS="-O2"
  10649. else
  10650. CXXFLAGS=
  10651. fi
  10652. fi
  10653. ac_ext=c
  10654. ac_cpp='$CPP $CPPFLAGS'
  10655. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10656. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10657. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10658. func_stripname_cnf ()
  10659. {
  10660. case ${2} in
  10661. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10662. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10663. esac
  10664. } # func_stripname_cnf
  10665. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10666. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10667. (test "X$CXX" != "Xg++"))) ; then
  10668. ac_ext=cpp
  10669. ac_cpp='$CXXCPP $CPPFLAGS'
  10670. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10671. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10672. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10674. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10675. if test -z "$CXXCPP"; then
  10676. if ${ac_cv_prog_CXXCPP+:} false; then :
  10677. $as_echo_n "(cached) " >&6
  10678. else
  10679. # Double quotes because CXXCPP needs to be expanded
  10680. for CXXCPP in "$CXX -E" "/lib/cpp"
  10681. do
  10682. ac_preproc_ok=false
  10683. for ac_cxx_preproc_warn_flag in '' yes
  10684. do
  10685. # Use a header file that comes with gcc, so configuring glibc
  10686. # with a fresh cross-compiler works.
  10687. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10688. # <limits.h> exists even on freestanding compilers.
  10689. # On the NeXT, cc -E runs the code through the compiler's parser,
  10690. # not just through cpp. "Syntax error" is here to catch this case.
  10691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10692. /* end confdefs.h. */
  10693. #ifdef __STDC__
  10694. # include <limits.h>
  10695. #else
  10696. # include <assert.h>
  10697. #endif
  10698. Syntax error
  10699. _ACEOF
  10700. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10701. else
  10702. # Broken: fails on valid input.
  10703. continue
  10704. fi
  10705. rm -f conftest.err conftest.i conftest.$ac_ext
  10706. # OK, works on sane cases. Now check whether nonexistent headers
  10707. # can be detected and how.
  10708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10709. /* end confdefs.h. */
  10710. #include <ac_nonexistent.h>
  10711. _ACEOF
  10712. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10713. # Broken: success on invalid input.
  10714. continue
  10715. else
  10716. # Passes both tests.
  10717. ac_preproc_ok=:
  10718. break
  10719. fi
  10720. rm -f conftest.err conftest.i conftest.$ac_ext
  10721. done
  10722. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10723. rm -f conftest.i conftest.err conftest.$ac_ext
  10724. if $ac_preproc_ok; then :
  10725. break
  10726. fi
  10727. done
  10728. ac_cv_prog_CXXCPP=$CXXCPP
  10729. fi
  10730. CXXCPP=$ac_cv_prog_CXXCPP
  10731. else
  10732. ac_cv_prog_CXXCPP=$CXXCPP
  10733. fi
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10735. $as_echo "$CXXCPP" >&6; }
  10736. ac_preproc_ok=false
  10737. for ac_cxx_preproc_warn_flag in '' yes
  10738. do
  10739. # Use a header file that comes with gcc, so configuring glibc
  10740. # with a fresh cross-compiler works.
  10741. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10742. # <limits.h> exists even on freestanding compilers.
  10743. # On the NeXT, cc -E runs the code through the compiler's parser,
  10744. # not just through cpp. "Syntax error" is here to catch this case.
  10745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10746. /* end confdefs.h. */
  10747. #ifdef __STDC__
  10748. # include <limits.h>
  10749. #else
  10750. # include <assert.h>
  10751. #endif
  10752. Syntax error
  10753. _ACEOF
  10754. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10755. else
  10756. # Broken: fails on valid input.
  10757. continue
  10758. fi
  10759. rm -f conftest.err conftest.i conftest.$ac_ext
  10760. # OK, works on sane cases. Now check whether nonexistent headers
  10761. # can be detected and how.
  10762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10763. /* end confdefs.h. */
  10764. #include <ac_nonexistent.h>
  10765. _ACEOF
  10766. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10767. # Broken: success on invalid input.
  10768. continue
  10769. else
  10770. # Passes both tests.
  10771. ac_preproc_ok=:
  10772. break
  10773. fi
  10774. rm -f conftest.err conftest.i conftest.$ac_ext
  10775. done
  10776. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10777. rm -f conftest.i conftest.err conftest.$ac_ext
  10778. if $ac_preproc_ok; then :
  10779. else
  10780. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10781. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10782. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10783. See \`config.log' for more details" "$LINENO" 5; }
  10784. fi
  10785. ac_ext=c
  10786. ac_cpp='$CPP $CPPFLAGS'
  10787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10790. else
  10791. _lt_caught_CXX_error=yes
  10792. fi
  10793. ac_ext=cpp
  10794. ac_cpp='$CXXCPP $CPPFLAGS'
  10795. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10796. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10797. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10798. archive_cmds_need_lc_CXX=no
  10799. allow_undefined_flag_CXX=
  10800. always_export_symbols_CXX=no
  10801. archive_expsym_cmds_CXX=
  10802. compiler_needs_object_CXX=no
  10803. export_dynamic_flag_spec_CXX=
  10804. hardcode_direct_CXX=no
  10805. hardcode_direct_absolute_CXX=no
  10806. hardcode_libdir_flag_spec_CXX=
  10807. hardcode_libdir_separator_CXX=
  10808. hardcode_minus_L_CXX=no
  10809. hardcode_shlibpath_var_CXX=unsupported
  10810. hardcode_automatic_CXX=no
  10811. inherit_rpath_CXX=no
  10812. module_cmds_CXX=
  10813. module_expsym_cmds_CXX=
  10814. link_all_deplibs_CXX=unknown
  10815. old_archive_cmds_CXX=$old_archive_cmds
  10816. reload_flag_CXX=$reload_flag
  10817. reload_cmds_CXX=$reload_cmds
  10818. no_undefined_flag_CXX=
  10819. whole_archive_flag_spec_CXX=
  10820. enable_shared_with_static_runtimes_CXX=no
  10821. # Source file extension for C++ test sources.
  10822. ac_ext=cpp
  10823. # Object file extension for compiled C++ test sources.
  10824. objext=o
  10825. objext_CXX=$objext
  10826. # No sense in running all these tests if we already determined that
  10827. # the CXX compiler isn't working. Some variables (like enable_shared)
  10828. # are currently assumed to apply to all compilers on this platform,
  10829. # and will be corrupted by setting them based on a non-working compiler.
  10830. if test "$_lt_caught_CXX_error" != yes; then
  10831. # Code to be used in simple compile tests
  10832. lt_simple_compile_test_code="int some_variable = 0;"
  10833. # Code to be used in simple link tests
  10834. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10835. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10836. # If no C compiler was specified, use CC.
  10837. LTCC=${LTCC-"$CC"}
  10838. # If no C compiler flags were specified, use CFLAGS.
  10839. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10840. # Allow CC to be a program name with arguments.
  10841. compiler=$CC
  10842. # save warnings/boilerplate of simple test code
  10843. ac_outfile=conftest.$ac_objext
  10844. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10845. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10846. _lt_compiler_boilerplate=`cat conftest.err`
  10847. $RM conftest*
  10848. ac_outfile=conftest.$ac_objext
  10849. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10850. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10851. _lt_linker_boilerplate=`cat conftest.err`
  10852. $RM -r conftest*
  10853. # Allow CC to be a program name with arguments.
  10854. lt_save_CC=$CC
  10855. lt_save_CFLAGS=$CFLAGS
  10856. lt_save_LD=$LD
  10857. lt_save_GCC=$GCC
  10858. GCC=$GXX
  10859. lt_save_with_gnu_ld=$with_gnu_ld
  10860. lt_save_path_LD=$lt_cv_path_LD
  10861. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10862. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10863. else
  10864. $as_unset lt_cv_prog_gnu_ld
  10865. fi
  10866. if test -n "${lt_cv_path_LDCXX+set}"; then
  10867. lt_cv_path_LD=$lt_cv_path_LDCXX
  10868. else
  10869. $as_unset lt_cv_path_LD
  10870. fi
  10871. test -z "${LDCXX+set}" || LD=$LDCXX
  10872. CC=${CXX-"c++"}
  10873. CFLAGS=$CXXFLAGS
  10874. compiler=$CC
  10875. compiler_CXX=$CC
  10876. for cc_temp in $compiler""; do
  10877. case $cc_temp in
  10878. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10879. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10880. \-*) ;;
  10881. *) break;;
  10882. esac
  10883. done
  10884. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10885. if test -n "$compiler"; then
  10886. # We don't want -fno-exception when compiling C++ code, so set the
  10887. # no_builtin_flag separately
  10888. if test "$GXX" = yes; then
  10889. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10890. else
  10891. lt_prog_compiler_no_builtin_flag_CXX=
  10892. fi
  10893. if test "$GXX" = yes; then
  10894. # Set up default GNU C++ configuration
  10895. # Check whether --with-gnu-ld was given.
  10896. if test "${with_gnu_ld+set}" = set; then :
  10897. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10898. else
  10899. with_gnu_ld=no
  10900. fi
  10901. ac_prog=ld
  10902. if test "$GCC" = yes; then
  10903. # Check if gcc -print-prog-name=ld gives a path.
  10904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10905. $as_echo_n "checking for ld used by $CC... " >&6; }
  10906. case $host in
  10907. *-*-mingw*)
  10908. # gcc leaves a trailing carriage return which upsets mingw
  10909. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10910. *)
  10911. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10912. esac
  10913. case $ac_prog in
  10914. # Accept absolute paths.
  10915. [\\/]* | ?:[\\/]*)
  10916. re_direlt='/[^/][^/]*/\.\./'
  10917. # Canonicalize the pathname of ld
  10918. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10919. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10920. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10921. done
  10922. test -z "$LD" && LD="$ac_prog"
  10923. ;;
  10924. "")
  10925. # If it fails, then pretend we aren't using GCC.
  10926. ac_prog=ld
  10927. ;;
  10928. *)
  10929. # If it is relative, then search for the first ld in PATH.
  10930. with_gnu_ld=unknown
  10931. ;;
  10932. esac
  10933. elif test "$with_gnu_ld" = yes; then
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10935. $as_echo_n "checking for GNU ld... " >&6; }
  10936. else
  10937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10938. $as_echo_n "checking for non-GNU ld... " >&6; }
  10939. fi
  10940. if ${lt_cv_path_LD+:} false; then :
  10941. $as_echo_n "(cached) " >&6
  10942. else
  10943. if test -z "$LD"; then
  10944. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10945. for ac_dir in $PATH; do
  10946. IFS="$lt_save_ifs"
  10947. test -z "$ac_dir" && ac_dir=.
  10948. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10949. lt_cv_path_LD="$ac_dir/$ac_prog"
  10950. # Check to see if the program is GNU ld. I'd rather use --version,
  10951. # but apparently some variants of GNU ld only accept -v.
  10952. # Break only if it was the GNU/non-GNU ld that we prefer.
  10953. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10954. *GNU* | *'with BFD'*)
  10955. test "$with_gnu_ld" != no && break
  10956. ;;
  10957. *)
  10958. test "$with_gnu_ld" != yes && break
  10959. ;;
  10960. esac
  10961. fi
  10962. done
  10963. IFS="$lt_save_ifs"
  10964. else
  10965. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10966. fi
  10967. fi
  10968. LD="$lt_cv_path_LD"
  10969. if test -n "$LD"; then
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10971. $as_echo "$LD" >&6; }
  10972. else
  10973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10974. $as_echo "no" >&6; }
  10975. fi
  10976. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10978. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10979. if ${lt_cv_prog_gnu_ld+:} false; then :
  10980. $as_echo_n "(cached) " >&6
  10981. else
  10982. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10983. case `$LD -v 2>&1 </dev/null` in
  10984. *GNU* | *'with BFD'*)
  10985. lt_cv_prog_gnu_ld=yes
  10986. ;;
  10987. *)
  10988. lt_cv_prog_gnu_ld=no
  10989. ;;
  10990. esac
  10991. fi
  10992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10993. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10994. with_gnu_ld=$lt_cv_prog_gnu_ld
  10995. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10996. # archiving commands below assume that GNU ld is being used.
  10997. if test "$with_gnu_ld" = yes; then
  10998. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10999. 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'
  11000. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11001. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11002. # If archive_cmds runs LD, not CC, wlarc should be empty
  11003. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11004. # investigate it a little bit more. (MM)
  11005. wlarc='${wl}'
  11006. # ancient GNU ld didn't support --whole-archive et. al.
  11007. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11008. $GREP 'no-whole-archive' > /dev/null; then
  11009. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11010. else
  11011. whole_archive_flag_spec_CXX=
  11012. fi
  11013. else
  11014. with_gnu_ld=no
  11015. wlarc=
  11016. # A generic and very simple default shared library creation
  11017. # command for GNU C++ for the case where it uses the native
  11018. # linker, instead of GNU ld. If possible, this setting should
  11019. # overridden to take advantage of the native linker features on
  11020. # the platform it is being used on.
  11021. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11022. fi
  11023. # Commands to make compiler produce verbose output that lists
  11024. # what "hidden" libraries, object files and flags are used when
  11025. # linking a shared library.
  11026. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11027. else
  11028. GXX=no
  11029. with_gnu_ld=no
  11030. wlarc=
  11031. fi
  11032. # PORTME: fill in a description of your system's C++ link characteristics
  11033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11034. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11035. ld_shlibs_CXX=yes
  11036. case $host_os in
  11037. aix3*)
  11038. # FIXME: insert proper C++ library support
  11039. ld_shlibs_CXX=no
  11040. ;;
  11041. aix[4-9]*)
  11042. if test "$host_cpu" = ia64; then
  11043. # On IA64, the linker does run time linking by default, so we don't
  11044. # have to do anything special.
  11045. aix_use_runtimelinking=no
  11046. exp_sym_flag='-Bexport'
  11047. no_entry_flag=""
  11048. else
  11049. aix_use_runtimelinking=no
  11050. # Test if we are trying to use run time linking or normal
  11051. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11052. # need to do runtime linking.
  11053. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11054. for ld_flag in $LDFLAGS; do
  11055. case $ld_flag in
  11056. *-brtl*)
  11057. aix_use_runtimelinking=yes
  11058. break
  11059. ;;
  11060. esac
  11061. done
  11062. ;;
  11063. esac
  11064. exp_sym_flag='-bexport'
  11065. no_entry_flag='-bnoentry'
  11066. fi
  11067. # When large executables or shared objects are built, AIX ld can
  11068. # have problems creating the table of contents. If linking a library
  11069. # or program results in "error TOC overflow" add -mminimal-toc to
  11070. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11071. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11072. archive_cmds_CXX=''
  11073. hardcode_direct_CXX=yes
  11074. hardcode_direct_absolute_CXX=yes
  11075. hardcode_libdir_separator_CXX=':'
  11076. link_all_deplibs_CXX=yes
  11077. file_list_spec_CXX='${wl}-f,'
  11078. if test "$GXX" = yes; then
  11079. case $host_os in aix4.[012]|aix4.[012].*)
  11080. # We only want to do this on AIX 4.2 and lower, the check
  11081. # below for broken collect2 doesn't work under 4.3+
  11082. collect2name=`${CC} -print-prog-name=collect2`
  11083. if test -f "$collect2name" &&
  11084. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11085. then
  11086. # We have reworked collect2
  11087. :
  11088. else
  11089. # We have old collect2
  11090. hardcode_direct_CXX=unsupported
  11091. # It fails to find uninstalled libraries when the uninstalled
  11092. # path is not listed in the libpath. Setting hardcode_minus_L
  11093. # to unsupported forces relinking
  11094. hardcode_minus_L_CXX=yes
  11095. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11096. hardcode_libdir_separator_CXX=
  11097. fi
  11098. esac
  11099. shared_flag='-shared'
  11100. if test "$aix_use_runtimelinking" = yes; then
  11101. shared_flag="$shared_flag "'${wl}-G'
  11102. fi
  11103. else
  11104. # not using gcc
  11105. if test "$host_cpu" = ia64; then
  11106. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11107. # chokes on -Wl,-G. The following line is correct:
  11108. shared_flag='-G'
  11109. else
  11110. if test "$aix_use_runtimelinking" = yes; then
  11111. shared_flag='${wl}-G'
  11112. else
  11113. shared_flag='${wl}-bM:SRE'
  11114. fi
  11115. fi
  11116. fi
  11117. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11118. # It seems that -bexpall does not export symbols beginning with
  11119. # underscore (_), so it is better to generate a list of symbols to
  11120. # export.
  11121. always_export_symbols_CXX=yes
  11122. if test "$aix_use_runtimelinking" = yes; then
  11123. # Warning - without using the other runtime loading flags (-brtl),
  11124. # -berok will link without error, but may produce a broken library.
  11125. allow_undefined_flag_CXX='-berok'
  11126. # Determine the default libpath from the value encoded in an empty
  11127. # executable.
  11128. if test "${lt_cv_aix_libpath+set}" = set; then
  11129. aix_libpath=$lt_cv_aix_libpath
  11130. else
  11131. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11132. $as_echo_n "(cached) " >&6
  11133. else
  11134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11135. /* end confdefs.h. */
  11136. int
  11137. main ()
  11138. {
  11139. ;
  11140. return 0;
  11141. }
  11142. _ACEOF
  11143. if ac_fn_cxx_try_link "$LINENO"; then :
  11144. lt_aix_libpath_sed='
  11145. /Import File Strings/,/^$/ {
  11146. /^0/ {
  11147. s/^0 *\([^ ]*\) *$/\1/
  11148. p
  11149. }
  11150. }'
  11151. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11152. # Check for a 64-bit object if we didn't find anything.
  11153. if test -z "$lt_cv_aix_libpath__CXX"; then
  11154. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11155. fi
  11156. fi
  11157. rm -f core conftest.err conftest.$ac_objext \
  11158. conftest$ac_exeext conftest.$ac_ext
  11159. if test -z "$lt_cv_aix_libpath__CXX"; then
  11160. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11161. fi
  11162. fi
  11163. aix_libpath=$lt_cv_aix_libpath__CXX
  11164. fi
  11165. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11166. 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"
  11167. else
  11168. if test "$host_cpu" = ia64; then
  11169. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11170. allow_undefined_flag_CXX="-z nodefs"
  11171. 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"
  11172. else
  11173. # Determine the default libpath from the value encoded in an
  11174. # empty executable.
  11175. if test "${lt_cv_aix_libpath+set}" = set; then
  11176. aix_libpath=$lt_cv_aix_libpath
  11177. else
  11178. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11179. $as_echo_n "(cached) " >&6
  11180. else
  11181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11182. /* end confdefs.h. */
  11183. int
  11184. main ()
  11185. {
  11186. ;
  11187. return 0;
  11188. }
  11189. _ACEOF
  11190. if ac_fn_cxx_try_link "$LINENO"; then :
  11191. lt_aix_libpath_sed='
  11192. /Import File Strings/,/^$/ {
  11193. /^0/ {
  11194. s/^0 *\([^ ]*\) *$/\1/
  11195. p
  11196. }
  11197. }'
  11198. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11199. # Check for a 64-bit object if we didn't find anything.
  11200. if test -z "$lt_cv_aix_libpath__CXX"; then
  11201. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11202. fi
  11203. fi
  11204. rm -f core conftest.err conftest.$ac_objext \
  11205. conftest$ac_exeext conftest.$ac_ext
  11206. if test -z "$lt_cv_aix_libpath__CXX"; then
  11207. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11208. fi
  11209. fi
  11210. aix_libpath=$lt_cv_aix_libpath__CXX
  11211. fi
  11212. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11213. # Warning - without using the other run time loading flags,
  11214. # -berok will link without error, but may produce a broken library.
  11215. no_undefined_flag_CXX=' ${wl}-bernotok'
  11216. allow_undefined_flag_CXX=' ${wl}-berok'
  11217. if test "$with_gnu_ld" = yes; then
  11218. # We only use this code for GNU lds that support --whole-archive.
  11219. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11220. else
  11221. # Exported symbols can be pulled into shared objects from archives
  11222. whole_archive_flag_spec_CXX='$convenience'
  11223. fi
  11224. archive_cmds_need_lc_CXX=yes
  11225. # This is similar to how AIX traditionally builds its shared
  11226. # libraries.
  11227. 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'
  11228. fi
  11229. fi
  11230. ;;
  11231. beos*)
  11232. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11233. allow_undefined_flag_CXX=unsupported
  11234. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11235. # support --undefined. This deserves some investigation. FIXME
  11236. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11237. else
  11238. ld_shlibs_CXX=no
  11239. fi
  11240. ;;
  11241. chorus*)
  11242. case $cc_basename in
  11243. *)
  11244. # FIXME: insert proper C++ library support
  11245. ld_shlibs_CXX=no
  11246. ;;
  11247. esac
  11248. ;;
  11249. cygwin* | mingw* | pw32* | cegcc*)
  11250. case $GXX,$cc_basename in
  11251. ,cl* | no,cl*)
  11252. # Native MSVC
  11253. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11254. # no search path for DLLs.
  11255. hardcode_libdir_flag_spec_CXX=' '
  11256. allow_undefined_flag_CXX=unsupported
  11257. always_export_symbols_CXX=yes
  11258. file_list_spec_CXX='@'
  11259. # Tell ltmain to make .lib files, not .a files.
  11260. libext=lib
  11261. # Tell ltmain to make .dll files, not .so files.
  11262. shrext_cmds=".dll"
  11263. # FIXME: Setting linknames here is a bad hack.
  11264. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11265. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11266. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11267. else
  11268. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11269. fi~
  11270. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11271. linknames='
  11272. # The linker will not automatically build a static lib if we build a DLL.
  11273. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11274. enable_shared_with_static_runtimes_CXX=yes
  11275. # Don't use ranlib
  11276. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11277. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11278. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11279. case $lt_outputfile in
  11280. *.exe|*.EXE) ;;
  11281. *)
  11282. lt_outputfile="$lt_outputfile.exe"
  11283. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11284. ;;
  11285. esac~
  11286. func_to_tool_file "$lt_outputfile"~
  11287. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11288. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11289. $RM "$lt_outputfile.manifest";
  11290. fi'
  11291. ;;
  11292. *)
  11293. # g++
  11294. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11295. # as there is no search path for DLLs.
  11296. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11297. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11298. allow_undefined_flag_CXX=unsupported
  11299. always_export_symbols_CXX=no
  11300. enable_shared_with_static_runtimes_CXX=yes
  11301. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11302. 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'
  11303. # If the export-symbols file already is a .def file (1st line
  11304. # is EXPORTS), use it as is; otherwise, prepend...
  11305. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11306. cp $export_symbols $output_objdir/$soname.def;
  11307. else
  11308. echo EXPORTS > $output_objdir/$soname.def;
  11309. cat $export_symbols >> $output_objdir/$soname.def;
  11310. fi~
  11311. $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'
  11312. else
  11313. ld_shlibs_CXX=no
  11314. fi
  11315. ;;
  11316. esac
  11317. ;;
  11318. darwin* | rhapsody*)
  11319. archive_cmds_need_lc_CXX=no
  11320. hardcode_direct_CXX=no
  11321. hardcode_automatic_CXX=yes
  11322. hardcode_shlibpath_var_CXX=unsupported
  11323. if test "$lt_cv_ld_force_load" = "yes"; then
  11324. 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\"`'
  11325. else
  11326. whole_archive_flag_spec_CXX=''
  11327. fi
  11328. link_all_deplibs_CXX=yes
  11329. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11330. case $cc_basename in
  11331. ifort*) _lt_dar_can_shared=yes ;;
  11332. *) _lt_dar_can_shared=$GCC ;;
  11333. esac
  11334. if test "$_lt_dar_can_shared" = "yes"; then
  11335. output_verbose_link_cmd=func_echo_all
  11336. 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}"
  11337. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11338. 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}"
  11339. 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}"
  11340. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11341. 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}"
  11342. 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}"
  11343. fi
  11344. else
  11345. ld_shlibs_CXX=no
  11346. fi
  11347. ;;
  11348. dgux*)
  11349. case $cc_basename in
  11350. ec++*)
  11351. # FIXME: insert proper C++ library support
  11352. ld_shlibs_CXX=no
  11353. ;;
  11354. ghcx*)
  11355. # Green Hills C++ Compiler
  11356. # FIXME: insert proper C++ library support
  11357. ld_shlibs_CXX=no
  11358. ;;
  11359. *)
  11360. # FIXME: insert proper C++ library support
  11361. ld_shlibs_CXX=no
  11362. ;;
  11363. esac
  11364. ;;
  11365. freebsd2.*)
  11366. # C++ shared libraries reported to be fairly broken before
  11367. # switch to ELF
  11368. ld_shlibs_CXX=no
  11369. ;;
  11370. freebsd-elf*)
  11371. archive_cmds_need_lc_CXX=no
  11372. ;;
  11373. freebsd* | dragonfly*)
  11374. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11375. # conventions
  11376. ld_shlibs_CXX=yes
  11377. ;;
  11378. gnu*)
  11379. ;;
  11380. haiku*)
  11381. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11382. link_all_deplibs_CXX=yes
  11383. ;;
  11384. hpux9*)
  11385. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11386. hardcode_libdir_separator_CXX=:
  11387. export_dynamic_flag_spec_CXX='${wl}-E'
  11388. hardcode_direct_CXX=yes
  11389. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11390. # but as the default
  11391. # location of the library.
  11392. case $cc_basename in
  11393. CC*)
  11394. # FIXME: insert proper C++ library support
  11395. ld_shlibs_CXX=no
  11396. ;;
  11397. aCC*)
  11398. 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'
  11399. # Commands to make compiler produce verbose output that lists
  11400. # what "hidden" libraries, object files and flags are used when
  11401. # linking a shared library.
  11402. #
  11403. # There doesn't appear to be a way to prevent this compiler from
  11404. # explicitly linking system object files so we need to strip them
  11405. # from the output so that they don't get included in the library
  11406. # dependencies.
  11407. 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"'
  11408. ;;
  11409. *)
  11410. if test "$GXX" = yes; then
  11411. 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'
  11412. else
  11413. # FIXME: insert proper C++ library support
  11414. ld_shlibs_CXX=no
  11415. fi
  11416. ;;
  11417. esac
  11418. ;;
  11419. hpux10*|hpux11*)
  11420. if test $with_gnu_ld = no; then
  11421. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11422. hardcode_libdir_separator_CXX=:
  11423. case $host_cpu in
  11424. hppa*64*|ia64*)
  11425. ;;
  11426. *)
  11427. export_dynamic_flag_spec_CXX='${wl}-E'
  11428. ;;
  11429. esac
  11430. fi
  11431. case $host_cpu in
  11432. hppa*64*|ia64*)
  11433. hardcode_direct_CXX=no
  11434. hardcode_shlibpath_var_CXX=no
  11435. ;;
  11436. *)
  11437. hardcode_direct_CXX=yes
  11438. hardcode_direct_absolute_CXX=yes
  11439. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11440. # but as the default
  11441. # location of the library.
  11442. ;;
  11443. esac
  11444. case $cc_basename in
  11445. CC*)
  11446. # FIXME: insert proper C++ library support
  11447. ld_shlibs_CXX=no
  11448. ;;
  11449. aCC*)
  11450. case $host_cpu in
  11451. hppa*64*)
  11452. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11453. ;;
  11454. ia64*)
  11455. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11456. ;;
  11457. *)
  11458. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11459. ;;
  11460. esac
  11461. # Commands to make compiler produce verbose output that lists
  11462. # what "hidden" libraries, object files and flags are used when
  11463. # linking a shared library.
  11464. #
  11465. # There doesn't appear to be a way to prevent this compiler from
  11466. # explicitly linking system object files so we need to strip them
  11467. # from the output so that they don't get included in the library
  11468. # dependencies.
  11469. 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"'
  11470. ;;
  11471. *)
  11472. if test "$GXX" = yes; then
  11473. if test $with_gnu_ld = no; then
  11474. case $host_cpu in
  11475. hppa*64*)
  11476. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11477. ;;
  11478. ia64*)
  11479. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11480. ;;
  11481. *)
  11482. 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'
  11483. ;;
  11484. esac
  11485. fi
  11486. else
  11487. # FIXME: insert proper C++ library support
  11488. ld_shlibs_CXX=no
  11489. fi
  11490. ;;
  11491. esac
  11492. ;;
  11493. interix[3-9]*)
  11494. hardcode_direct_CXX=no
  11495. hardcode_shlibpath_var_CXX=no
  11496. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11497. export_dynamic_flag_spec_CXX='${wl}-E'
  11498. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11499. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11500. # default) and relocated if they conflict, which is a slow very memory
  11501. # consuming and fragmenting process. To avoid this, we pick a random,
  11502. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11503. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11504. 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'
  11505. 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'
  11506. ;;
  11507. irix5* | irix6*)
  11508. case $cc_basename in
  11509. CC*)
  11510. # SGI C++
  11511. 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'
  11512. # Archives containing C++ object files must be created using
  11513. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11514. # necessary to make sure instantiated templates are included
  11515. # in the archive.
  11516. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11517. ;;
  11518. *)
  11519. if test "$GXX" = yes; then
  11520. if test "$with_gnu_ld" = no; then
  11521. 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'
  11522. else
  11523. 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'
  11524. fi
  11525. fi
  11526. link_all_deplibs_CXX=yes
  11527. ;;
  11528. esac
  11529. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11530. hardcode_libdir_separator_CXX=:
  11531. inherit_rpath_CXX=yes
  11532. ;;
  11533. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11534. case $cc_basename in
  11535. KCC*)
  11536. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11537. # KCC will only create a shared library if the output file
  11538. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11539. # to its proper name (with version) after linking.
  11540. 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'
  11541. 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'
  11542. # Commands to make compiler produce verbose output that lists
  11543. # what "hidden" libraries, object files and flags are used when
  11544. # linking a shared library.
  11545. #
  11546. # There doesn't appear to be a way to prevent this compiler from
  11547. # explicitly linking system object files so we need to strip them
  11548. # from the output so that they don't get included in the library
  11549. # dependencies.
  11550. 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"'
  11551. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11552. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11553. # Archives containing C++ object files must be created using
  11554. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11555. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11556. ;;
  11557. icpc* | ecpc* )
  11558. # Intel C++
  11559. with_gnu_ld=yes
  11560. # version 8.0 and above of icpc choke on multiply defined symbols
  11561. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11562. # earlier do not add the objects themselves.
  11563. case `$CC -V 2>&1` in
  11564. *"Version 7."*)
  11565. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11566. 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'
  11567. ;;
  11568. *) # Version 8.0 or newer
  11569. tmp_idyn=
  11570. case $host_cpu in
  11571. ia64*) tmp_idyn=' -i_dynamic';;
  11572. esac
  11573. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11574. 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'
  11575. ;;
  11576. esac
  11577. archive_cmds_need_lc_CXX=no
  11578. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11579. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11580. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11581. ;;
  11582. pgCC* | pgcpp*)
  11583. # Portland Group C++ compiler
  11584. case `$CC -V` in
  11585. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11586. prelink_cmds_CXX='tpldir=Template.dir~
  11587. rm -rf $tpldir~
  11588. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11589. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11590. old_archive_cmds_CXX='tpldir=Template.dir~
  11591. rm -rf $tpldir~
  11592. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11593. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11594. $RANLIB $oldlib'
  11595. archive_cmds_CXX='tpldir=Template.dir~
  11596. rm -rf $tpldir~
  11597. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11598. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11599. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11600. rm -rf $tpldir~
  11601. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11602. $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'
  11603. ;;
  11604. *) # Version 6 and above use weak symbols
  11605. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11606. 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'
  11607. ;;
  11608. esac
  11609. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11610. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11611. 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'
  11612. ;;
  11613. cxx*)
  11614. # Compaq C++
  11615. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11616. 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'
  11617. runpath_var=LD_RUN_PATH
  11618. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11619. hardcode_libdir_separator_CXX=:
  11620. # Commands to make compiler produce verbose output that lists
  11621. # what "hidden" libraries, object files and flags are used when
  11622. # linking a shared library.
  11623. #
  11624. # There doesn't appear to be a way to prevent this compiler from
  11625. # explicitly linking system object files so we need to strip them
  11626. # from the output so that they don't get included in the library
  11627. # dependencies.
  11628. 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'
  11629. ;;
  11630. xl* | mpixl* | bgxl*)
  11631. # IBM XL 8.0 on PPC, with GNU ld
  11632. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11633. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11634. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11635. if test "x$supports_anon_versioning" = xyes; then
  11636. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11637. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11638. echo "local: *; };" >> $output_objdir/$libname.ver~
  11639. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11640. fi
  11641. ;;
  11642. *)
  11643. case `$CC -V 2>&1 | sed 5q` in
  11644. *Sun\ C*)
  11645. # Sun C++ 5.9
  11646. no_undefined_flag_CXX=' -zdefs'
  11647. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11648. 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'
  11649. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11650. 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'
  11651. compiler_needs_object_CXX=yes
  11652. # Not sure whether something based on
  11653. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11654. # would be better.
  11655. output_verbose_link_cmd='func_echo_all'
  11656. # Archives containing C++ object files must be created using
  11657. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11658. # necessary to make sure instantiated templates are included
  11659. # in the archive.
  11660. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11661. ;;
  11662. esac
  11663. ;;
  11664. esac
  11665. ;;
  11666. lynxos*)
  11667. # FIXME: insert proper C++ library support
  11668. ld_shlibs_CXX=no
  11669. ;;
  11670. m88k*)
  11671. # FIXME: insert proper C++ library support
  11672. ld_shlibs_CXX=no
  11673. ;;
  11674. mvs*)
  11675. case $cc_basename in
  11676. cxx*)
  11677. # FIXME: insert proper C++ library support
  11678. ld_shlibs_CXX=no
  11679. ;;
  11680. *)
  11681. # FIXME: insert proper C++ library support
  11682. ld_shlibs_CXX=no
  11683. ;;
  11684. esac
  11685. ;;
  11686. netbsd*)
  11687. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11688. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11689. wlarc=
  11690. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11691. hardcode_direct_CXX=yes
  11692. hardcode_shlibpath_var_CXX=no
  11693. fi
  11694. # Workaround some broken pre-1.5 toolchains
  11695. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11696. ;;
  11697. *nto* | *qnx*)
  11698. ld_shlibs_CXX=yes
  11699. ;;
  11700. openbsd2*)
  11701. # C++ shared libraries are fairly broken
  11702. ld_shlibs_CXX=no
  11703. ;;
  11704. openbsd*)
  11705. if test -f /usr/libexec/ld.so; then
  11706. hardcode_direct_CXX=yes
  11707. hardcode_shlibpath_var_CXX=no
  11708. hardcode_direct_absolute_CXX=yes
  11709. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11710. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11711. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11712. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11713. export_dynamic_flag_spec_CXX='${wl}-E'
  11714. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11715. fi
  11716. output_verbose_link_cmd=func_echo_all
  11717. else
  11718. ld_shlibs_CXX=no
  11719. fi
  11720. ;;
  11721. osf3* | osf4* | osf5*)
  11722. case $cc_basename in
  11723. KCC*)
  11724. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11725. # KCC will only create a shared library if the output file
  11726. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11727. # to its proper name (with version) after linking.
  11728. 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'
  11729. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11730. hardcode_libdir_separator_CXX=:
  11731. # Archives containing C++ object files must be created using
  11732. # the KAI C++ compiler.
  11733. case $host in
  11734. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11735. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11736. esac
  11737. ;;
  11738. RCC*)
  11739. # Rational C++ 2.4.1
  11740. # FIXME: insert proper C++ library support
  11741. ld_shlibs_CXX=no
  11742. ;;
  11743. cxx*)
  11744. case $host in
  11745. osf3*)
  11746. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11747. 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'
  11748. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11749. ;;
  11750. *)
  11751. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11752. 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'
  11753. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11754. echo "-hidden">> $lib.exp~
  11755. $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~
  11756. $RM $lib.exp'
  11757. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11758. ;;
  11759. esac
  11760. hardcode_libdir_separator_CXX=:
  11761. # Commands to make compiler produce verbose output that lists
  11762. # what "hidden" libraries, object files and flags are used when
  11763. # linking a shared library.
  11764. #
  11765. # There doesn't appear to be a way to prevent this compiler from
  11766. # explicitly linking system object files so we need to strip them
  11767. # from the output so that they don't get included in the library
  11768. # dependencies.
  11769. 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"'
  11770. ;;
  11771. *)
  11772. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11773. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11774. case $host in
  11775. osf3*)
  11776. 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'
  11777. ;;
  11778. *)
  11779. 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'
  11780. ;;
  11781. esac
  11782. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11783. hardcode_libdir_separator_CXX=:
  11784. # Commands to make compiler produce verbose output that lists
  11785. # what "hidden" libraries, object files and flags are used when
  11786. # linking a shared library.
  11787. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11788. else
  11789. # FIXME: insert proper C++ library support
  11790. ld_shlibs_CXX=no
  11791. fi
  11792. ;;
  11793. esac
  11794. ;;
  11795. psos*)
  11796. # FIXME: insert proper C++ library support
  11797. ld_shlibs_CXX=no
  11798. ;;
  11799. sunos4*)
  11800. case $cc_basename in
  11801. CC*)
  11802. # Sun C++ 4.x
  11803. # FIXME: insert proper C++ library support
  11804. ld_shlibs_CXX=no
  11805. ;;
  11806. lcc*)
  11807. # Lucid
  11808. # FIXME: insert proper C++ library support
  11809. ld_shlibs_CXX=no
  11810. ;;
  11811. *)
  11812. # FIXME: insert proper C++ library support
  11813. ld_shlibs_CXX=no
  11814. ;;
  11815. esac
  11816. ;;
  11817. solaris*)
  11818. case $cc_basename in
  11819. CC* | sunCC*)
  11820. # Sun C++ 4.2, 5.x and Centerline C++
  11821. archive_cmds_need_lc_CXX=yes
  11822. no_undefined_flag_CXX=' -zdefs'
  11823. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11824. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11825. $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'
  11826. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11827. hardcode_shlibpath_var_CXX=no
  11828. case $host_os in
  11829. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11830. *)
  11831. # The compiler driver will combine and reorder linker options,
  11832. # but understands `-z linker_flag'.
  11833. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11834. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11835. ;;
  11836. esac
  11837. link_all_deplibs_CXX=yes
  11838. output_verbose_link_cmd='func_echo_all'
  11839. # Archives containing C++ object files must be created using
  11840. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11841. # necessary to make sure instantiated templates are included
  11842. # in the archive.
  11843. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11844. ;;
  11845. gcx*)
  11846. # Green Hills C++ Compiler
  11847. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11848. # The C++ compiler must be used to create the archive.
  11849. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11850. ;;
  11851. *)
  11852. # GNU C++ compiler with Solaris linker
  11853. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11854. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11855. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11856. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11857. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11858. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11859. # Commands to make compiler produce verbose output that lists
  11860. # what "hidden" libraries, object files and flags are used when
  11861. # linking a shared library.
  11862. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11863. else
  11864. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11865. # platform.
  11866. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11867. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11868. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11869. # Commands to make compiler produce verbose output that lists
  11870. # what "hidden" libraries, object files and flags are used when
  11871. # linking a shared library.
  11872. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11873. fi
  11874. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11875. case $host_os in
  11876. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11877. *)
  11878. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11879. ;;
  11880. esac
  11881. fi
  11882. ;;
  11883. esac
  11884. ;;
  11885. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11886. no_undefined_flag_CXX='${wl}-z,text'
  11887. archive_cmds_need_lc_CXX=no
  11888. hardcode_shlibpath_var_CXX=no
  11889. runpath_var='LD_RUN_PATH'
  11890. case $cc_basename in
  11891. CC*)
  11892. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11893. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11894. ;;
  11895. *)
  11896. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11897. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11898. ;;
  11899. esac
  11900. ;;
  11901. sysv5* | sco3.2v5* | sco5v6*)
  11902. # Note: We can NOT use -z defs as we might desire, because we do not
  11903. # link with -lc, and that would cause any symbols used from libc to
  11904. # always be unresolved, which means just about no library would
  11905. # ever link correctly. If we're not using GNU ld we use -z text
  11906. # though, which does catch some bad symbols but isn't as heavy-handed
  11907. # as -z defs.
  11908. no_undefined_flag_CXX='${wl}-z,text'
  11909. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11910. archive_cmds_need_lc_CXX=no
  11911. hardcode_shlibpath_var_CXX=no
  11912. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11913. hardcode_libdir_separator_CXX=':'
  11914. link_all_deplibs_CXX=yes
  11915. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11916. runpath_var='LD_RUN_PATH'
  11917. case $cc_basename in
  11918. CC*)
  11919. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11920. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11921. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11922. '"$old_archive_cmds_CXX"
  11923. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11924. '"$reload_cmds_CXX"
  11925. ;;
  11926. *)
  11927. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11928. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11929. ;;
  11930. esac
  11931. ;;
  11932. tandem*)
  11933. case $cc_basename in
  11934. NCC*)
  11935. # NonStop-UX NCC 3.20
  11936. # FIXME: insert proper C++ library support
  11937. ld_shlibs_CXX=no
  11938. ;;
  11939. *)
  11940. # FIXME: insert proper C++ library support
  11941. ld_shlibs_CXX=no
  11942. ;;
  11943. esac
  11944. ;;
  11945. vxworks*)
  11946. # FIXME: insert proper C++ library support
  11947. ld_shlibs_CXX=no
  11948. ;;
  11949. *)
  11950. # FIXME: insert proper C++ library support
  11951. ld_shlibs_CXX=no
  11952. ;;
  11953. esac
  11954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11955. $as_echo "$ld_shlibs_CXX" >&6; }
  11956. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11957. GCC_CXX="$GXX"
  11958. LD_CXX="$LD"
  11959. ## CAVEAT EMPTOR:
  11960. ## There is no encapsulation within the following macros, do not change
  11961. ## the running order or otherwise move them around unless you know exactly
  11962. ## what you are doing...
  11963. # Dependencies to place before and after the object being linked:
  11964. predep_objects_CXX=
  11965. postdep_objects_CXX=
  11966. predeps_CXX=
  11967. postdeps_CXX=
  11968. compiler_lib_search_path_CXX=
  11969. cat > conftest.$ac_ext <<_LT_EOF
  11970. class Foo
  11971. {
  11972. public:
  11973. Foo (void) { a = 0; }
  11974. private:
  11975. int a;
  11976. };
  11977. _LT_EOF
  11978. _lt_libdeps_save_CFLAGS=$CFLAGS
  11979. case "$CC $CFLAGS " in #(
  11980. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11981. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11982. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11983. esac
  11984. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11985. (eval $ac_compile) 2>&5
  11986. ac_status=$?
  11987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11988. test $ac_status = 0; }; then
  11989. # Parse the compiler output and extract the necessary
  11990. # objects, libraries and library flags.
  11991. # Sentinel used to keep track of whether or not we are before
  11992. # the conftest object file.
  11993. pre_test_object_deps_done=no
  11994. for p in `eval "$output_verbose_link_cmd"`; do
  11995. case ${prev}${p} in
  11996. -L* | -R* | -l*)
  11997. # Some compilers place space between "-{L,R}" and the path.
  11998. # Remove the space.
  11999. if test $p = "-L" ||
  12000. test $p = "-R"; then
  12001. prev=$p
  12002. continue
  12003. fi
  12004. # Expand the sysroot to ease extracting the directories later.
  12005. if test -z "$prev"; then
  12006. case $p in
  12007. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12008. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12009. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12010. esac
  12011. fi
  12012. case $p in
  12013. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12014. esac
  12015. if test "$pre_test_object_deps_done" = no; then
  12016. case ${prev} in
  12017. -L | -R)
  12018. # Internal compiler library paths should come after those
  12019. # provided the user. The postdeps already come after the
  12020. # user supplied libs so there is no need to process them.
  12021. if test -z "$compiler_lib_search_path_CXX"; then
  12022. compiler_lib_search_path_CXX="${prev}${p}"
  12023. else
  12024. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12025. fi
  12026. ;;
  12027. # The "-l" case would never come before the object being
  12028. # linked, so don't bother handling this case.
  12029. esac
  12030. else
  12031. if test -z "$postdeps_CXX"; then
  12032. postdeps_CXX="${prev}${p}"
  12033. else
  12034. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12035. fi
  12036. fi
  12037. prev=
  12038. ;;
  12039. *.lto.$objext) ;; # Ignore GCC LTO objects
  12040. *.$objext)
  12041. # This assumes that the test object file only shows up
  12042. # once in the compiler output.
  12043. if test "$p" = "conftest.$objext"; then
  12044. pre_test_object_deps_done=yes
  12045. continue
  12046. fi
  12047. if test "$pre_test_object_deps_done" = no; then
  12048. if test -z "$predep_objects_CXX"; then
  12049. predep_objects_CXX="$p"
  12050. else
  12051. predep_objects_CXX="$predep_objects_CXX $p"
  12052. fi
  12053. else
  12054. if test -z "$postdep_objects_CXX"; then
  12055. postdep_objects_CXX="$p"
  12056. else
  12057. postdep_objects_CXX="$postdep_objects_CXX $p"
  12058. fi
  12059. fi
  12060. ;;
  12061. *) ;; # Ignore the rest.
  12062. esac
  12063. done
  12064. # Clean up.
  12065. rm -f a.out a.exe
  12066. else
  12067. echo "libtool.m4: error: problem compiling CXX test program"
  12068. fi
  12069. $RM -f confest.$objext
  12070. CFLAGS=$_lt_libdeps_save_CFLAGS
  12071. # PORTME: override above test on systems where it is broken
  12072. case $host_os in
  12073. interix[3-9]*)
  12074. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12075. # hack all around it, let's just trust "g++" to DTRT.
  12076. predep_objects_CXX=
  12077. postdep_objects_CXX=
  12078. postdeps_CXX=
  12079. ;;
  12080. linux*)
  12081. case `$CC -V 2>&1 | sed 5q` in
  12082. *Sun\ C*)
  12083. # Sun C++ 5.9
  12084. # The more standards-conforming stlport4 library is
  12085. # incompatible with the Cstd library. Avoid specifying
  12086. # it if it's in CXXFLAGS. Ignore libCrun as
  12087. # -library=stlport4 depends on it.
  12088. case " $CXX $CXXFLAGS " in
  12089. *" -library=stlport4 "*)
  12090. solaris_use_stlport4=yes
  12091. ;;
  12092. esac
  12093. if test "$solaris_use_stlport4" != yes; then
  12094. postdeps_CXX='-library=Cstd -library=Crun'
  12095. fi
  12096. ;;
  12097. esac
  12098. ;;
  12099. solaris*)
  12100. case $cc_basename in
  12101. CC* | sunCC*)
  12102. # The more standards-conforming stlport4 library is
  12103. # incompatible with the Cstd library. Avoid specifying
  12104. # it if it's in CXXFLAGS. Ignore libCrun as
  12105. # -library=stlport4 depends on it.
  12106. case " $CXX $CXXFLAGS " in
  12107. *" -library=stlport4 "*)
  12108. solaris_use_stlport4=yes
  12109. ;;
  12110. esac
  12111. # Adding this requires a known-good setup of shared libraries for
  12112. # Sun compiler versions before 5.6, else PIC objects from an old
  12113. # archive will be linked into the output, leading to subtle bugs.
  12114. if test "$solaris_use_stlport4" != yes; then
  12115. postdeps_CXX='-library=Cstd -library=Crun'
  12116. fi
  12117. ;;
  12118. esac
  12119. ;;
  12120. esac
  12121. case " $postdeps_CXX " in
  12122. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12123. esac
  12124. compiler_lib_search_dirs_CXX=
  12125. if test -n "${compiler_lib_search_path_CXX}"; then
  12126. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12127. fi
  12128. lt_prog_compiler_wl_CXX=
  12129. lt_prog_compiler_pic_CXX=
  12130. lt_prog_compiler_static_CXX=
  12131. # C++ specific cases for pic, static, wl, etc.
  12132. if test "$GXX" = yes; then
  12133. lt_prog_compiler_wl_CXX='-Wl,'
  12134. lt_prog_compiler_static_CXX='-static'
  12135. case $host_os in
  12136. aix*)
  12137. # All AIX code is PIC.
  12138. if test "$host_cpu" = ia64; then
  12139. # AIX 5 now supports IA64 processor
  12140. lt_prog_compiler_static_CXX='-Bstatic'
  12141. fi
  12142. ;;
  12143. amigaos*)
  12144. case $host_cpu in
  12145. powerpc)
  12146. # see comment about AmigaOS4 .so support
  12147. lt_prog_compiler_pic_CXX='-fPIC'
  12148. ;;
  12149. m68k)
  12150. # FIXME: we need at least 68020 code to build shared libraries, but
  12151. # adding the `-m68020' flag to GCC prevents building anything better,
  12152. # like `-m68040'.
  12153. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12154. ;;
  12155. esac
  12156. ;;
  12157. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12158. # PIC is the default for these OSes.
  12159. ;;
  12160. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12161. # This hack is so that the source file can tell whether it is being
  12162. # built for inclusion in a dll (and should export symbols for example).
  12163. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12164. # (--disable-auto-import) libraries
  12165. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12166. ;;
  12167. darwin* | rhapsody*)
  12168. # PIC is the default on this platform
  12169. # Common symbols not allowed in MH_DYLIB files
  12170. lt_prog_compiler_pic_CXX='-fno-common'
  12171. ;;
  12172. *djgpp*)
  12173. # DJGPP does not support shared libraries at all
  12174. lt_prog_compiler_pic_CXX=
  12175. ;;
  12176. haiku*)
  12177. # PIC is the default for Haiku.
  12178. # The "-static" flag exists, but is broken.
  12179. lt_prog_compiler_static_CXX=
  12180. ;;
  12181. interix[3-9]*)
  12182. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12183. # Instead, we relocate shared libraries at runtime.
  12184. ;;
  12185. sysv4*MP*)
  12186. if test -d /usr/nec; then
  12187. lt_prog_compiler_pic_CXX=-Kconform_pic
  12188. fi
  12189. ;;
  12190. hpux*)
  12191. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12192. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12193. # sets the default TLS model and affects inlining.
  12194. case $host_cpu in
  12195. hppa*64*)
  12196. ;;
  12197. *)
  12198. lt_prog_compiler_pic_CXX='-fPIC'
  12199. ;;
  12200. esac
  12201. ;;
  12202. *qnx* | *nto*)
  12203. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12204. # it will coredump.
  12205. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12206. ;;
  12207. *)
  12208. lt_prog_compiler_pic_CXX='-fPIC'
  12209. ;;
  12210. esac
  12211. else
  12212. case $host_os in
  12213. aix[4-9]*)
  12214. # All AIX code is PIC.
  12215. if test "$host_cpu" = ia64; then
  12216. # AIX 5 now supports IA64 processor
  12217. lt_prog_compiler_static_CXX='-Bstatic'
  12218. else
  12219. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12220. fi
  12221. ;;
  12222. chorus*)
  12223. case $cc_basename in
  12224. cxch68*)
  12225. # Green Hills C++ Compiler
  12226. # _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"
  12227. ;;
  12228. esac
  12229. ;;
  12230. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12231. # This hack is so that the source file can tell whether it is being
  12232. # built for inclusion in a dll (and should export symbols for example).
  12233. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12234. ;;
  12235. dgux*)
  12236. case $cc_basename in
  12237. ec++*)
  12238. lt_prog_compiler_pic_CXX='-KPIC'
  12239. ;;
  12240. ghcx*)
  12241. # Green Hills C++ Compiler
  12242. lt_prog_compiler_pic_CXX='-pic'
  12243. ;;
  12244. *)
  12245. ;;
  12246. esac
  12247. ;;
  12248. freebsd* | dragonfly*)
  12249. # FreeBSD uses GNU C++
  12250. ;;
  12251. hpux9* | hpux10* | hpux11*)
  12252. case $cc_basename in
  12253. CC*)
  12254. lt_prog_compiler_wl_CXX='-Wl,'
  12255. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12256. if test "$host_cpu" != ia64; then
  12257. lt_prog_compiler_pic_CXX='+Z'
  12258. fi
  12259. ;;
  12260. aCC*)
  12261. lt_prog_compiler_wl_CXX='-Wl,'
  12262. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12263. case $host_cpu in
  12264. hppa*64*|ia64*)
  12265. # +Z the default
  12266. ;;
  12267. *)
  12268. lt_prog_compiler_pic_CXX='+Z'
  12269. ;;
  12270. esac
  12271. ;;
  12272. *)
  12273. ;;
  12274. esac
  12275. ;;
  12276. interix*)
  12277. # This is c89, which is MS Visual C++ (no shared libs)
  12278. # Anyone wants to do a port?
  12279. ;;
  12280. irix5* | irix6* | nonstopux*)
  12281. case $cc_basename in
  12282. CC*)
  12283. lt_prog_compiler_wl_CXX='-Wl,'
  12284. lt_prog_compiler_static_CXX='-non_shared'
  12285. # CC pic flag -KPIC is the default.
  12286. ;;
  12287. *)
  12288. ;;
  12289. esac
  12290. ;;
  12291. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12292. case $cc_basename in
  12293. KCC*)
  12294. # KAI C++ Compiler
  12295. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12296. lt_prog_compiler_pic_CXX='-fPIC'
  12297. ;;
  12298. ecpc* )
  12299. # old Intel C++ for x86_64 which still supported -KPIC.
  12300. lt_prog_compiler_wl_CXX='-Wl,'
  12301. lt_prog_compiler_pic_CXX='-KPIC'
  12302. lt_prog_compiler_static_CXX='-static'
  12303. ;;
  12304. icpc* )
  12305. # Intel C++, used to be incompatible with GCC.
  12306. # ICC 10 doesn't accept -KPIC any more.
  12307. lt_prog_compiler_wl_CXX='-Wl,'
  12308. lt_prog_compiler_pic_CXX='-fPIC'
  12309. lt_prog_compiler_static_CXX='-static'
  12310. ;;
  12311. pgCC* | pgcpp*)
  12312. # Portland Group C++ compiler
  12313. lt_prog_compiler_wl_CXX='-Wl,'
  12314. lt_prog_compiler_pic_CXX='-fpic'
  12315. lt_prog_compiler_static_CXX='-Bstatic'
  12316. ;;
  12317. cxx*)
  12318. # Compaq C++
  12319. # Make sure the PIC flag is empty. It appears that all Alpha
  12320. # Linux and Compaq Tru64 Unix objects are PIC.
  12321. lt_prog_compiler_pic_CXX=
  12322. lt_prog_compiler_static_CXX='-non_shared'
  12323. ;;
  12324. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12325. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12326. lt_prog_compiler_wl_CXX='-Wl,'
  12327. lt_prog_compiler_pic_CXX='-qpic'
  12328. lt_prog_compiler_static_CXX='-qstaticlink'
  12329. ;;
  12330. *)
  12331. case `$CC -V 2>&1 | sed 5q` in
  12332. *Sun\ C*)
  12333. # Sun C++ 5.9
  12334. lt_prog_compiler_pic_CXX='-KPIC'
  12335. lt_prog_compiler_static_CXX='-Bstatic'
  12336. lt_prog_compiler_wl_CXX='-Qoption ld '
  12337. ;;
  12338. esac
  12339. ;;
  12340. esac
  12341. ;;
  12342. lynxos*)
  12343. ;;
  12344. m88k*)
  12345. ;;
  12346. mvs*)
  12347. case $cc_basename in
  12348. cxx*)
  12349. lt_prog_compiler_pic_CXX='-W c,exportall'
  12350. ;;
  12351. *)
  12352. ;;
  12353. esac
  12354. ;;
  12355. netbsd*)
  12356. ;;
  12357. *qnx* | *nto*)
  12358. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12359. # it will coredump.
  12360. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12361. ;;
  12362. osf3* | osf4* | osf5*)
  12363. case $cc_basename in
  12364. KCC*)
  12365. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12366. ;;
  12367. RCC*)
  12368. # Rational C++ 2.4.1
  12369. lt_prog_compiler_pic_CXX='-pic'
  12370. ;;
  12371. cxx*)
  12372. # Digital/Compaq C++
  12373. lt_prog_compiler_wl_CXX='-Wl,'
  12374. # Make sure the PIC flag is empty. It appears that all Alpha
  12375. # Linux and Compaq Tru64 Unix objects are PIC.
  12376. lt_prog_compiler_pic_CXX=
  12377. lt_prog_compiler_static_CXX='-non_shared'
  12378. ;;
  12379. *)
  12380. ;;
  12381. esac
  12382. ;;
  12383. psos*)
  12384. ;;
  12385. solaris*)
  12386. case $cc_basename in
  12387. CC* | sunCC*)
  12388. # Sun C++ 4.2, 5.x and Centerline C++
  12389. lt_prog_compiler_pic_CXX='-KPIC'
  12390. lt_prog_compiler_static_CXX='-Bstatic'
  12391. lt_prog_compiler_wl_CXX='-Qoption ld '
  12392. ;;
  12393. gcx*)
  12394. # Green Hills C++ Compiler
  12395. lt_prog_compiler_pic_CXX='-PIC'
  12396. ;;
  12397. *)
  12398. ;;
  12399. esac
  12400. ;;
  12401. sunos4*)
  12402. case $cc_basename in
  12403. CC*)
  12404. # Sun C++ 4.x
  12405. lt_prog_compiler_pic_CXX='-pic'
  12406. lt_prog_compiler_static_CXX='-Bstatic'
  12407. ;;
  12408. lcc*)
  12409. # Lucid
  12410. lt_prog_compiler_pic_CXX='-pic'
  12411. ;;
  12412. *)
  12413. ;;
  12414. esac
  12415. ;;
  12416. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12417. case $cc_basename in
  12418. CC*)
  12419. lt_prog_compiler_wl_CXX='-Wl,'
  12420. lt_prog_compiler_pic_CXX='-KPIC'
  12421. lt_prog_compiler_static_CXX='-Bstatic'
  12422. ;;
  12423. esac
  12424. ;;
  12425. tandem*)
  12426. case $cc_basename in
  12427. NCC*)
  12428. # NonStop-UX NCC 3.20
  12429. lt_prog_compiler_pic_CXX='-KPIC'
  12430. ;;
  12431. *)
  12432. ;;
  12433. esac
  12434. ;;
  12435. vxworks*)
  12436. ;;
  12437. *)
  12438. lt_prog_compiler_can_build_shared_CXX=no
  12439. ;;
  12440. esac
  12441. fi
  12442. case $host_os in
  12443. # For platforms which do not support PIC, -DPIC is meaningless:
  12444. *djgpp*)
  12445. lt_prog_compiler_pic_CXX=
  12446. ;;
  12447. *)
  12448. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12449. ;;
  12450. esac
  12451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12452. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12453. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12454. $as_echo_n "(cached) " >&6
  12455. else
  12456. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12457. fi
  12458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12459. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12460. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12461. #
  12462. # Check to make sure the PIC flag actually works.
  12463. #
  12464. if test -n "$lt_prog_compiler_pic_CXX"; then
  12465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12466. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12467. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12468. $as_echo_n "(cached) " >&6
  12469. else
  12470. lt_cv_prog_compiler_pic_works_CXX=no
  12471. ac_outfile=conftest.$ac_objext
  12472. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12473. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12474. # Insert the option either (1) after the last *FLAGS variable, or
  12475. # (2) before a word containing "conftest.", or (3) at the end.
  12476. # Note that $ac_compile itself does not contain backslashes and begins
  12477. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12478. # The option is referenced via a variable to avoid confusing sed.
  12479. lt_compile=`echo "$ac_compile" | $SED \
  12480. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12481. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12482. -e 's:$: $lt_compiler_flag:'`
  12483. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12484. (eval "$lt_compile" 2>conftest.err)
  12485. ac_status=$?
  12486. cat conftest.err >&5
  12487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12488. if (exit $ac_status) && test -s "$ac_outfile"; then
  12489. # The compiler can only warn and ignore the option if not recognized
  12490. # So say no if there are warnings other than the usual output.
  12491. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12492. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12493. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12494. lt_cv_prog_compiler_pic_works_CXX=yes
  12495. fi
  12496. fi
  12497. $RM conftest*
  12498. fi
  12499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12500. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12501. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12502. case $lt_prog_compiler_pic_CXX in
  12503. "" | " "*) ;;
  12504. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12505. esac
  12506. else
  12507. lt_prog_compiler_pic_CXX=
  12508. lt_prog_compiler_can_build_shared_CXX=no
  12509. fi
  12510. fi
  12511. #
  12512. # Check to make sure the static flag actually works.
  12513. #
  12514. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12516. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12517. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12518. $as_echo_n "(cached) " >&6
  12519. else
  12520. lt_cv_prog_compiler_static_works_CXX=no
  12521. save_LDFLAGS="$LDFLAGS"
  12522. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12523. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12524. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12525. # The linker can only warn and ignore the option if not recognized
  12526. # So say no if there are warnings
  12527. if test -s conftest.err; then
  12528. # Append any errors to the config.log.
  12529. cat conftest.err 1>&5
  12530. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12531. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12532. if diff conftest.exp conftest.er2 >/dev/null; then
  12533. lt_cv_prog_compiler_static_works_CXX=yes
  12534. fi
  12535. else
  12536. lt_cv_prog_compiler_static_works_CXX=yes
  12537. fi
  12538. fi
  12539. $RM -r conftest*
  12540. LDFLAGS="$save_LDFLAGS"
  12541. fi
  12542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12543. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12544. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12545. :
  12546. else
  12547. lt_prog_compiler_static_CXX=
  12548. fi
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12550. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12551. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12552. $as_echo_n "(cached) " >&6
  12553. else
  12554. lt_cv_prog_compiler_c_o_CXX=no
  12555. $RM -r conftest 2>/dev/null
  12556. mkdir conftest
  12557. cd conftest
  12558. mkdir out
  12559. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12560. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12561. # Insert the option either (1) after the last *FLAGS variable, or
  12562. # (2) before a word containing "conftest.", or (3) at the end.
  12563. # Note that $ac_compile itself does not contain backslashes and begins
  12564. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12565. lt_compile=`echo "$ac_compile" | $SED \
  12566. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12567. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12568. -e 's:$: $lt_compiler_flag:'`
  12569. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12570. (eval "$lt_compile" 2>out/conftest.err)
  12571. ac_status=$?
  12572. cat out/conftest.err >&5
  12573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12574. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12575. then
  12576. # The compiler can only warn and ignore the option if not recognized
  12577. # So say no if there are warnings
  12578. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12579. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12580. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12581. lt_cv_prog_compiler_c_o_CXX=yes
  12582. fi
  12583. fi
  12584. chmod u+w . 2>&5
  12585. $RM conftest*
  12586. # SGI C++ compiler will create directory out/ii_files/ for
  12587. # template instantiation
  12588. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12589. $RM out/* && rmdir out
  12590. cd ..
  12591. $RM -r conftest
  12592. $RM conftest*
  12593. fi
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12595. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12597. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12598. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12599. $as_echo_n "(cached) " >&6
  12600. else
  12601. lt_cv_prog_compiler_c_o_CXX=no
  12602. $RM -r conftest 2>/dev/null
  12603. mkdir conftest
  12604. cd conftest
  12605. mkdir out
  12606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12607. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12608. # Insert the option either (1) after the last *FLAGS variable, or
  12609. # (2) before a word containing "conftest.", or (3) at the end.
  12610. # Note that $ac_compile itself does not contain backslashes and begins
  12611. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12612. lt_compile=`echo "$ac_compile" | $SED \
  12613. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12614. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12615. -e 's:$: $lt_compiler_flag:'`
  12616. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12617. (eval "$lt_compile" 2>out/conftest.err)
  12618. ac_status=$?
  12619. cat out/conftest.err >&5
  12620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12621. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12622. then
  12623. # The compiler can only warn and ignore the option if not recognized
  12624. # So say no if there are warnings
  12625. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12626. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12627. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12628. lt_cv_prog_compiler_c_o_CXX=yes
  12629. fi
  12630. fi
  12631. chmod u+w . 2>&5
  12632. $RM conftest*
  12633. # SGI C++ compiler will create directory out/ii_files/ for
  12634. # template instantiation
  12635. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12636. $RM out/* && rmdir out
  12637. cd ..
  12638. $RM -r conftest
  12639. $RM conftest*
  12640. fi
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12642. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12643. hard_links="nottested"
  12644. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12645. # do not overwrite the value of need_locks provided by the user
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12647. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12648. hard_links=yes
  12649. $RM conftest*
  12650. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12651. touch conftest.a
  12652. ln conftest.a conftest.b 2>&5 || hard_links=no
  12653. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12655. $as_echo "$hard_links" >&6; }
  12656. if test "$hard_links" = no; then
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12658. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12659. need_locks=warn
  12660. fi
  12661. else
  12662. need_locks=no
  12663. fi
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12665. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12666. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12667. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12668. case $host_os in
  12669. aix[4-9]*)
  12670. # If we're using GNU nm, then we don't want the "-C" option.
  12671. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12672. # Also, AIX nm treats weak defined symbols like other global defined
  12673. # symbols, whereas GNU nm marks them as "W".
  12674. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12675. 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'
  12676. else
  12677. 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'
  12678. fi
  12679. ;;
  12680. pw32*)
  12681. export_symbols_cmds_CXX="$ltdll_cmds"
  12682. ;;
  12683. cygwin* | mingw* | cegcc*)
  12684. case $cc_basename in
  12685. cl*)
  12686. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12687. ;;
  12688. *)
  12689. 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'
  12690. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12691. ;;
  12692. esac
  12693. ;;
  12694. *)
  12695. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12696. ;;
  12697. esac
  12698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12699. $as_echo "$ld_shlibs_CXX" >&6; }
  12700. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12701. with_gnu_ld_CXX=$with_gnu_ld
  12702. #
  12703. # Do we need to explicitly link libc?
  12704. #
  12705. case "x$archive_cmds_need_lc_CXX" in
  12706. x|xyes)
  12707. # Assume -lc should be added
  12708. archive_cmds_need_lc_CXX=yes
  12709. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12710. case $archive_cmds_CXX in
  12711. *'~'*)
  12712. # FIXME: we may have to deal with multi-command sequences.
  12713. ;;
  12714. '$CC '*)
  12715. # Test whether the compiler implicitly links with -lc since on some
  12716. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12717. # to ld, don't add -lc before -lgcc.
  12718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12719. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12720. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12721. $as_echo_n "(cached) " >&6
  12722. else
  12723. $RM conftest*
  12724. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12725. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12726. (eval $ac_compile) 2>&5
  12727. ac_status=$?
  12728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12729. test $ac_status = 0; } 2>conftest.err; then
  12730. soname=conftest
  12731. lib=conftest
  12732. libobjs=conftest.$ac_objext
  12733. deplibs=
  12734. wl=$lt_prog_compiler_wl_CXX
  12735. pic_flag=$lt_prog_compiler_pic_CXX
  12736. compiler_flags=-v
  12737. linker_flags=-v
  12738. verstring=
  12739. output_objdir=.
  12740. libname=conftest
  12741. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12742. allow_undefined_flag_CXX=
  12743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12744. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12745. ac_status=$?
  12746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12747. test $ac_status = 0; }
  12748. then
  12749. lt_cv_archive_cmds_need_lc_CXX=no
  12750. else
  12751. lt_cv_archive_cmds_need_lc_CXX=yes
  12752. fi
  12753. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12754. else
  12755. cat conftest.err 1>&5
  12756. fi
  12757. $RM conftest*
  12758. fi
  12759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12760. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12761. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12762. ;;
  12763. esac
  12764. fi
  12765. ;;
  12766. esac
  12767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12768. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12769. library_names_spec=
  12770. libname_spec='lib$name'
  12771. soname_spec=
  12772. shrext_cmds=".so"
  12773. postinstall_cmds=
  12774. postuninstall_cmds=
  12775. finish_cmds=
  12776. finish_eval=
  12777. shlibpath_var=
  12778. shlibpath_overrides_runpath=unknown
  12779. version_type=none
  12780. dynamic_linker="$host_os ld.so"
  12781. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12782. need_lib_prefix=unknown
  12783. hardcode_into_libs=no
  12784. # when you set need_version to no, make sure it does not cause -set_version
  12785. # flags to be left without arguments
  12786. need_version=unknown
  12787. case $host_os in
  12788. aix3*)
  12789. version_type=linux # correct to gnu/linux during the next big refactor
  12790. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12791. shlibpath_var=LIBPATH
  12792. # AIX 3 has no versioning support, so we append a major version to the name.
  12793. soname_spec='${libname}${release}${shared_ext}$major'
  12794. ;;
  12795. aix[4-9]*)
  12796. version_type=linux # correct to gnu/linux during the next big refactor
  12797. need_lib_prefix=no
  12798. need_version=no
  12799. hardcode_into_libs=yes
  12800. if test "$host_cpu" = ia64; then
  12801. # AIX 5 supports IA64
  12802. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12803. shlibpath_var=LD_LIBRARY_PATH
  12804. else
  12805. # With GCC up to 2.95.x, collect2 would create an import file
  12806. # for dependence libraries. The import file would start with
  12807. # the line `#! .'. This would cause the generated library to
  12808. # depend on `.', always an invalid library. This was fixed in
  12809. # development snapshots of GCC prior to 3.0.
  12810. case $host_os in
  12811. aix4 | aix4.[01] | aix4.[01].*)
  12812. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12813. echo ' yes '
  12814. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12815. :
  12816. else
  12817. can_build_shared=no
  12818. fi
  12819. ;;
  12820. esac
  12821. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12822. # soname into executable. Probably we can add versioning support to
  12823. # collect2, so additional links can be useful in future.
  12824. if test "$aix_use_runtimelinking" = yes; then
  12825. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12826. # instead of lib<name>.a to let people know that these are not
  12827. # typical AIX shared libraries.
  12828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12829. else
  12830. # We preserve .a as extension for shared libraries through AIX4.2
  12831. # and later when we are not doing run time linking.
  12832. library_names_spec='${libname}${release}.a $libname.a'
  12833. soname_spec='${libname}${release}${shared_ext}$major'
  12834. fi
  12835. shlibpath_var=LIBPATH
  12836. fi
  12837. ;;
  12838. amigaos*)
  12839. case $host_cpu in
  12840. powerpc)
  12841. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12842. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12844. ;;
  12845. m68k)
  12846. library_names_spec='$libname.ixlibrary $libname.a'
  12847. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12848. 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'
  12849. ;;
  12850. esac
  12851. ;;
  12852. beos*)
  12853. library_names_spec='${libname}${shared_ext}'
  12854. dynamic_linker="$host_os ld.so"
  12855. shlibpath_var=LIBRARY_PATH
  12856. ;;
  12857. bsdi[45]*)
  12858. version_type=linux # correct to gnu/linux during the next big refactor
  12859. need_version=no
  12860. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12861. soname_spec='${libname}${release}${shared_ext}$major'
  12862. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12863. shlibpath_var=LD_LIBRARY_PATH
  12864. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12865. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12866. # the default ld.so.conf also contains /usr/contrib/lib and
  12867. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12868. # libtool to hard-code these into programs
  12869. ;;
  12870. cygwin* | mingw* | pw32* | cegcc*)
  12871. version_type=windows
  12872. shrext_cmds=".dll"
  12873. need_version=no
  12874. need_lib_prefix=no
  12875. case $GCC,$cc_basename in
  12876. yes,*)
  12877. # gcc
  12878. library_names_spec='$libname.dll.a'
  12879. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12880. postinstall_cmds='base_file=`basename \${file}`~
  12881. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12882. dldir=$destdir/`dirname \$dlpath`~
  12883. test -d \$dldir || mkdir -p \$dldir~
  12884. $install_prog $dir/$dlname \$dldir/$dlname~
  12885. chmod a+x \$dldir/$dlname~
  12886. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12887. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12888. fi'
  12889. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12890. dlpath=$dir/\$dldll~
  12891. $RM \$dlpath'
  12892. shlibpath_overrides_runpath=yes
  12893. case $host_os in
  12894. cygwin*)
  12895. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12896. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12897. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12898. ;;
  12899. mingw* | cegcc*)
  12900. # MinGW DLLs use traditional 'lib' prefix
  12901. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12902. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12903. ;;
  12904. pw32*)
  12905. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12906. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12907. ;;
  12908. esac
  12909. dynamic_linker='Win32 ld.exe'
  12910. ;;
  12911. *,cl*)
  12912. # Native MSVC
  12913. libname_spec='$name'
  12914. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12915. library_names_spec='${libname}.dll.lib'
  12916. case $build_os in
  12917. mingw*)
  12918. sys_lib_search_path_spec=
  12919. lt_save_ifs=$IFS
  12920. IFS=';'
  12921. for lt_path in $LIB
  12922. do
  12923. IFS=$lt_save_ifs
  12924. # Let DOS variable expansion print the short 8.3 style file name.
  12925. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12926. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12927. done
  12928. IFS=$lt_save_ifs
  12929. # Convert to MSYS style.
  12930. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12931. ;;
  12932. cygwin*)
  12933. # Convert to unix form, then to dos form, then back to unix form
  12934. # but this time dos style (no spaces!) so that the unix form looks
  12935. # like /cygdrive/c/PROGRA~1:/cygdr...
  12936. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12937. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12938. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12939. ;;
  12940. *)
  12941. sys_lib_search_path_spec="$LIB"
  12942. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12943. # It is most probably a Windows format PATH.
  12944. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12945. else
  12946. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12947. fi
  12948. # FIXME: find the short name or the path components, as spaces are
  12949. # common. (e.g. "Program Files" -> "PROGRA~1")
  12950. ;;
  12951. esac
  12952. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12953. postinstall_cmds='base_file=`basename \${file}`~
  12954. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12955. dldir=$destdir/`dirname \$dlpath`~
  12956. test -d \$dldir || mkdir -p \$dldir~
  12957. $install_prog $dir/$dlname \$dldir/$dlname'
  12958. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12959. dlpath=$dir/\$dldll~
  12960. $RM \$dlpath'
  12961. shlibpath_overrides_runpath=yes
  12962. dynamic_linker='Win32 link.exe'
  12963. ;;
  12964. *)
  12965. # Assume MSVC wrapper
  12966. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12967. dynamic_linker='Win32 ld.exe'
  12968. ;;
  12969. esac
  12970. # FIXME: first we should search . and the directory the executable is in
  12971. shlibpath_var=PATH
  12972. ;;
  12973. darwin* | rhapsody*)
  12974. dynamic_linker="$host_os dyld"
  12975. version_type=darwin
  12976. need_lib_prefix=no
  12977. need_version=no
  12978. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12979. soname_spec='${libname}${release}${major}$shared_ext'
  12980. shlibpath_overrides_runpath=yes
  12981. shlibpath_var=DYLD_LIBRARY_PATH
  12982. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12983. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12984. ;;
  12985. dgux*)
  12986. version_type=linux # correct to gnu/linux during the next big refactor
  12987. need_lib_prefix=no
  12988. need_version=no
  12989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12990. soname_spec='${libname}${release}${shared_ext}$major'
  12991. shlibpath_var=LD_LIBRARY_PATH
  12992. ;;
  12993. freebsd* | dragonfly*)
  12994. # DragonFly does not have aout. When/if they implement a new
  12995. # versioning mechanism, adjust this.
  12996. if test -x /usr/bin/objformat; then
  12997. objformat=`/usr/bin/objformat`
  12998. else
  12999. case $host_os in
  13000. freebsd[23].*) objformat=aout ;;
  13001. *) objformat=elf ;;
  13002. esac
  13003. fi
  13004. version_type=freebsd-$objformat
  13005. case $version_type in
  13006. freebsd-elf*)
  13007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13008. need_version=no
  13009. need_lib_prefix=no
  13010. ;;
  13011. freebsd-*)
  13012. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13013. need_version=yes
  13014. ;;
  13015. esac
  13016. shlibpath_var=LD_LIBRARY_PATH
  13017. case $host_os in
  13018. freebsd2.*)
  13019. shlibpath_overrides_runpath=yes
  13020. ;;
  13021. freebsd3.[01]* | freebsdelf3.[01]*)
  13022. shlibpath_overrides_runpath=yes
  13023. hardcode_into_libs=yes
  13024. ;;
  13025. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13026. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13027. shlibpath_overrides_runpath=no
  13028. hardcode_into_libs=yes
  13029. ;;
  13030. *) # from 4.6 on, and DragonFly
  13031. shlibpath_overrides_runpath=yes
  13032. hardcode_into_libs=yes
  13033. ;;
  13034. esac
  13035. ;;
  13036. gnu*)
  13037. version_type=linux # correct to gnu/linux during the next big refactor
  13038. need_lib_prefix=no
  13039. need_version=no
  13040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13041. soname_spec='${libname}${release}${shared_ext}$major'
  13042. shlibpath_var=LD_LIBRARY_PATH
  13043. shlibpath_overrides_runpath=no
  13044. hardcode_into_libs=yes
  13045. ;;
  13046. haiku*)
  13047. version_type=linux # correct to gnu/linux during the next big refactor
  13048. need_lib_prefix=no
  13049. need_version=no
  13050. dynamic_linker="$host_os runtime_loader"
  13051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13052. soname_spec='${libname}${release}${shared_ext}$major'
  13053. shlibpath_var=LIBRARY_PATH
  13054. shlibpath_overrides_runpath=yes
  13055. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13056. hardcode_into_libs=yes
  13057. ;;
  13058. hpux9* | hpux10* | hpux11*)
  13059. # Give a soname corresponding to the major version so that dld.sl refuses to
  13060. # link against other versions.
  13061. version_type=sunos
  13062. need_lib_prefix=no
  13063. need_version=no
  13064. case $host_cpu in
  13065. ia64*)
  13066. shrext_cmds='.so'
  13067. hardcode_into_libs=yes
  13068. dynamic_linker="$host_os dld.so"
  13069. shlibpath_var=LD_LIBRARY_PATH
  13070. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13072. soname_spec='${libname}${release}${shared_ext}$major'
  13073. if test "X$HPUX_IA64_MODE" = X32; then
  13074. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13075. else
  13076. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13077. fi
  13078. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13079. ;;
  13080. hppa*64*)
  13081. shrext_cmds='.sl'
  13082. hardcode_into_libs=yes
  13083. dynamic_linker="$host_os dld.sl"
  13084. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13085. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13087. soname_spec='${libname}${release}${shared_ext}$major'
  13088. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13089. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13090. ;;
  13091. *)
  13092. shrext_cmds='.sl'
  13093. dynamic_linker="$host_os dld.sl"
  13094. shlibpath_var=SHLIB_PATH
  13095. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13097. soname_spec='${libname}${release}${shared_ext}$major'
  13098. ;;
  13099. esac
  13100. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13101. postinstall_cmds='chmod 555 $lib'
  13102. # or fails outright, so override atomically:
  13103. install_override_mode=555
  13104. ;;
  13105. interix[3-9]*)
  13106. version_type=linux # correct to gnu/linux during the next big refactor
  13107. need_lib_prefix=no
  13108. need_version=no
  13109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13110. soname_spec='${libname}${release}${shared_ext}$major'
  13111. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13112. shlibpath_var=LD_LIBRARY_PATH
  13113. shlibpath_overrides_runpath=no
  13114. hardcode_into_libs=yes
  13115. ;;
  13116. irix5* | irix6* | nonstopux*)
  13117. case $host_os in
  13118. nonstopux*) version_type=nonstopux ;;
  13119. *)
  13120. if test "$lt_cv_prog_gnu_ld" = yes; then
  13121. version_type=linux # correct to gnu/linux during the next big refactor
  13122. else
  13123. version_type=irix
  13124. fi ;;
  13125. esac
  13126. need_lib_prefix=no
  13127. need_version=no
  13128. soname_spec='${libname}${release}${shared_ext}$major'
  13129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13130. case $host_os in
  13131. irix5* | nonstopux*)
  13132. libsuff= shlibsuff=
  13133. ;;
  13134. *)
  13135. case $LD in # libtool.m4 will add one of these switches to LD
  13136. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13137. libsuff= shlibsuff= libmagic=32-bit;;
  13138. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13139. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13140. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13141. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13142. *) libsuff= shlibsuff= libmagic=never-match;;
  13143. esac
  13144. ;;
  13145. esac
  13146. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13147. shlibpath_overrides_runpath=no
  13148. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13149. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13150. hardcode_into_libs=yes
  13151. ;;
  13152. # No shared lib support for Linux oldld, aout, or coff.
  13153. linux*oldld* | linux*aout* | linux*coff*)
  13154. dynamic_linker=no
  13155. ;;
  13156. # This must be glibc/ELF.
  13157. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13158. version_type=linux # correct to gnu/linux during the next big refactor
  13159. need_lib_prefix=no
  13160. need_version=no
  13161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13162. soname_spec='${libname}${release}${shared_ext}$major'
  13163. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13164. shlibpath_var=LD_LIBRARY_PATH
  13165. shlibpath_overrides_runpath=no
  13166. # Some binutils ld are patched to set DT_RUNPATH
  13167. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13168. $as_echo_n "(cached) " >&6
  13169. else
  13170. lt_cv_shlibpath_overrides_runpath=no
  13171. save_LDFLAGS=$LDFLAGS
  13172. save_libdir=$libdir
  13173. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13174. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13176. /* end confdefs.h. */
  13177. int
  13178. main ()
  13179. {
  13180. ;
  13181. return 0;
  13182. }
  13183. _ACEOF
  13184. if ac_fn_cxx_try_link "$LINENO"; then :
  13185. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13186. lt_cv_shlibpath_overrides_runpath=yes
  13187. fi
  13188. fi
  13189. rm -f core conftest.err conftest.$ac_objext \
  13190. conftest$ac_exeext conftest.$ac_ext
  13191. LDFLAGS=$save_LDFLAGS
  13192. libdir=$save_libdir
  13193. fi
  13194. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13195. # This implies no fast_install, which is unacceptable.
  13196. # Some rework will be needed to allow for fast_install
  13197. # before this can be enabled.
  13198. hardcode_into_libs=yes
  13199. # Append ld.so.conf contents to the search path
  13200. if test -f /etc/ld.so.conf; then
  13201. 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' ' '`
  13202. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13203. fi
  13204. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13205. # powerpc, because MkLinux only supported shared libraries with the
  13206. # GNU dynamic linker. Since this was broken with cross compilers,
  13207. # most powerpc-linux boxes support dynamic linking these days and
  13208. # people can always --disable-shared, the test was removed, and we
  13209. # assume the GNU/Linux dynamic linker is in use.
  13210. dynamic_linker='GNU/Linux ld.so'
  13211. ;;
  13212. netbsd*)
  13213. version_type=sunos
  13214. need_lib_prefix=no
  13215. need_version=no
  13216. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13218. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13219. dynamic_linker='NetBSD (a.out) ld.so'
  13220. else
  13221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13222. soname_spec='${libname}${release}${shared_ext}$major'
  13223. dynamic_linker='NetBSD ld.elf_so'
  13224. fi
  13225. shlibpath_var=LD_LIBRARY_PATH
  13226. shlibpath_overrides_runpath=yes
  13227. hardcode_into_libs=yes
  13228. ;;
  13229. newsos6)
  13230. version_type=linux # correct to gnu/linux during the next big refactor
  13231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. shlibpath_overrides_runpath=yes
  13234. ;;
  13235. *nto* | *qnx*)
  13236. version_type=qnx
  13237. need_lib_prefix=no
  13238. need_version=no
  13239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13240. soname_spec='${libname}${release}${shared_ext}$major'
  13241. shlibpath_var=LD_LIBRARY_PATH
  13242. shlibpath_overrides_runpath=no
  13243. hardcode_into_libs=yes
  13244. dynamic_linker='ldqnx.so'
  13245. ;;
  13246. openbsd*)
  13247. version_type=sunos
  13248. sys_lib_dlsearch_path_spec="/usr/lib"
  13249. need_lib_prefix=no
  13250. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13251. case $host_os in
  13252. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13253. *) need_version=no ;;
  13254. esac
  13255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13256. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13257. shlibpath_var=LD_LIBRARY_PATH
  13258. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13259. case $host_os in
  13260. openbsd2.[89] | openbsd2.[89].*)
  13261. shlibpath_overrides_runpath=no
  13262. ;;
  13263. *)
  13264. shlibpath_overrides_runpath=yes
  13265. ;;
  13266. esac
  13267. else
  13268. shlibpath_overrides_runpath=yes
  13269. fi
  13270. ;;
  13271. os2*)
  13272. libname_spec='$name'
  13273. shrext_cmds=".dll"
  13274. need_lib_prefix=no
  13275. library_names_spec='$libname${shared_ext} $libname.a'
  13276. dynamic_linker='OS/2 ld.exe'
  13277. shlibpath_var=LIBPATH
  13278. ;;
  13279. osf3* | osf4* | osf5*)
  13280. version_type=osf
  13281. need_lib_prefix=no
  13282. need_version=no
  13283. soname_spec='${libname}${release}${shared_ext}$major'
  13284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13285. shlibpath_var=LD_LIBRARY_PATH
  13286. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13287. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13288. ;;
  13289. rdos*)
  13290. dynamic_linker=no
  13291. ;;
  13292. solaris*)
  13293. version_type=linux # correct to gnu/linux during the next big refactor
  13294. need_lib_prefix=no
  13295. need_version=no
  13296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13297. soname_spec='${libname}${release}${shared_ext}$major'
  13298. shlibpath_var=LD_LIBRARY_PATH
  13299. shlibpath_overrides_runpath=yes
  13300. hardcode_into_libs=yes
  13301. # ldd complains unless libraries are executable
  13302. postinstall_cmds='chmod +x $lib'
  13303. ;;
  13304. sunos4*)
  13305. version_type=sunos
  13306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13307. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13308. shlibpath_var=LD_LIBRARY_PATH
  13309. shlibpath_overrides_runpath=yes
  13310. if test "$with_gnu_ld" = yes; then
  13311. need_lib_prefix=no
  13312. fi
  13313. need_version=yes
  13314. ;;
  13315. sysv4 | sysv4.3*)
  13316. version_type=linux # correct to gnu/linux during the next big refactor
  13317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13318. soname_spec='${libname}${release}${shared_ext}$major'
  13319. shlibpath_var=LD_LIBRARY_PATH
  13320. case $host_vendor in
  13321. sni)
  13322. shlibpath_overrides_runpath=no
  13323. need_lib_prefix=no
  13324. runpath_var=LD_RUN_PATH
  13325. ;;
  13326. siemens)
  13327. need_lib_prefix=no
  13328. ;;
  13329. motorola)
  13330. need_lib_prefix=no
  13331. need_version=no
  13332. shlibpath_overrides_runpath=no
  13333. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13334. ;;
  13335. esac
  13336. ;;
  13337. sysv4*MP*)
  13338. if test -d /usr/nec ;then
  13339. version_type=linux # correct to gnu/linux during the next big refactor
  13340. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13341. soname_spec='$libname${shared_ext}.$major'
  13342. shlibpath_var=LD_LIBRARY_PATH
  13343. fi
  13344. ;;
  13345. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13346. version_type=freebsd-elf
  13347. need_lib_prefix=no
  13348. need_version=no
  13349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13350. soname_spec='${libname}${release}${shared_ext}$major'
  13351. shlibpath_var=LD_LIBRARY_PATH
  13352. shlibpath_overrides_runpath=yes
  13353. hardcode_into_libs=yes
  13354. if test "$with_gnu_ld" = yes; then
  13355. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13356. else
  13357. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13358. case $host_os in
  13359. sco3.2v5*)
  13360. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13361. ;;
  13362. esac
  13363. fi
  13364. sys_lib_dlsearch_path_spec='/usr/lib'
  13365. ;;
  13366. tpf*)
  13367. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13368. version_type=linux # correct to gnu/linux during the next big refactor
  13369. need_lib_prefix=no
  13370. need_version=no
  13371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13372. shlibpath_var=LD_LIBRARY_PATH
  13373. shlibpath_overrides_runpath=no
  13374. hardcode_into_libs=yes
  13375. ;;
  13376. uts4*)
  13377. version_type=linux # correct to gnu/linux during the next big refactor
  13378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13379. soname_spec='${libname}${release}${shared_ext}$major'
  13380. shlibpath_var=LD_LIBRARY_PATH
  13381. ;;
  13382. *)
  13383. dynamic_linker=no
  13384. ;;
  13385. esac
  13386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13387. $as_echo "$dynamic_linker" >&6; }
  13388. test "$dynamic_linker" = no && can_build_shared=no
  13389. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13390. if test "$GCC" = yes; then
  13391. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13392. fi
  13393. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13394. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13395. fi
  13396. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13397. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13398. fi
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13400. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13401. hardcode_action_CXX=
  13402. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13403. test -n "$runpath_var_CXX" ||
  13404. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13405. # We can hardcode non-existent directories.
  13406. if test "$hardcode_direct_CXX" != no &&
  13407. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13408. # have to relink, otherwise we might link with an installed library
  13409. # when we should be linking with a yet-to-be-installed one
  13410. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13411. test "$hardcode_minus_L_CXX" != no; then
  13412. # Linking always hardcodes the temporary library directory.
  13413. hardcode_action_CXX=relink
  13414. else
  13415. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13416. hardcode_action_CXX=immediate
  13417. fi
  13418. else
  13419. # We cannot hardcode anything, or else we can only hardcode existing
  13420. # directories.
  13421. hardcode_action_CXX=unsupported
  13422. fi
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13424. $as_echo "$hardcode_action_CXX" >&6; }
  13425. if test "$hardcode_action_CXX" = relink ||
  13426. test "$inherit_rpath_CXX" = yes; then
  13427. # Fast installation is not supported
  13428. enable_fast_install=no
  13429. elif test "$shlibpath_overrides_runpath" = yes ||
  13430. test "$enable_shared" = no; then
  13431. # Fast installation is not necessary
  13432. enable_fast_install=needless
  13433. fi
  13434. fi # test -n "$compiler"
  13435. CC=$lt_save_CC
  13436. CFLAGS=$lt_save_CFLAGS
  13437. LDCXX=$LD
  13438. LD=$lt_save_LD
  13439. GCC=$lt_save_GCC
  13440. with_gnu_ld=$lt_save_with_gnu_ld
  13441. lt_cv_path_LDCXX=$lt_cv_path_LD
  13442. lt_cv_path_LD=$lt_save_path_LD
  13443. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13444. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13445. fi # test "$_lt_caught_CXX_error" != yes
  13446. ac_ext=c
  13447. ac_cpp='$CPP $CPPFLAGS'
  13448. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13449. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13450. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13451. # Find a good install program. We prefer a C program (faster),
  13452. # so one script is as good as another. But avoid the broken or
  13453. # incompatible versions:
  13454. # SysV /etc/install, /usr/sbin/install
  13455. # SunOS /usr/etc/install
  13456. # IRIX /sbin/install
  13457. # AIX /bin/install
  13458. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13459. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13460. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13461. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13462. # OS/2's system install, which has a completely different semantic
  13463. # ./install, which can be erroneously created by make from ./install.sh.
  13464. # Reject install programs that cannot install multiple files.
  13465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13466. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13467. if test -z "$INSTALL"; then
  13468. if ${ac_cv_path_install+:} false; then :
  13469. $as_echo_n "(cached) " >&6
  13470. else
  13471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13472. for as_dir in $PATH
  13473. do
  13474. IFS=$as_save_IFS
  13475. test -z "$as_dir" && as_dir=.
  13476. # Account for people who put trailing slashes in PATH elements.
  13477. case $as_dir/ in #((
  13478. ./ | .// | /[cC]/* | \
  13479. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13480. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13481. /usr/ucb/* ) ;;
  13482. *)
  13483. # OSF1 and SCO ODT 3.0 have their own names for install.
  13484. # Don't use installbsd from OSF since it installs stuff as root
  13485. # by default.
  13486. for ac_prog in ginstall scoinst install; do
  13487. for ac_exec_ext in '' $ac_executable_extensions; do
  13488. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13489. if test $ac_prog = install &&
  13490. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13491. # AIX install. It has an incompatible calling convention.
  13492. :
  13493. elif test $ac_prog = install &&
  13494. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13495. # program-specific install script used by HP pwplus--don't use.
  13496. :
  13497. else
  13498. rm -rf conftest.one conftest.two conftest.dir
  13499. echo one > conftest.one
  13500. echo two > conftest.two
  13501. mkdir conftest.dir
  13502. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13503. test -s conftest.one && test -s conftest.two &&
  13504. test -s conftest.dir/conftest.one &&
  13505. test -s conftest.dir/conftest.two
  13506. then
  13507. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13508. break 3
  13509. fi
  13510. fi
  13511. fi
  13512. done
  13513. done
  13514. ;;
  13515. esac
  13516. done
  13517. IFS=$as_save_IFS
  13518. rm -rf conftest.one conftest.two conftest.dir
  13519. fi
  13520. if test "${ac_cv_path_install+set}" = set; then
  13521. INSTALL=$ac_cv_path_install
  13522. else
  13523. # As a last resort, use the slow shell script. Don't cache a
  13524. # value for INSTALL within a source directory, because that will
  13525. # break other packages using the cache if that directory is
  13526. # removed, or if the value is a relative name.
  13527. INSTALL=$ac_install_sh
  13528. fi
  13529. fi
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13531. $as_echo "$INSTALL" >&6; }
  13532. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13533. # It thinks the first close brace ends the variable substitution.
  13534. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13535. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13536. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13538. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13539. set x ${MAKE-make}
  13540. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13541. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13542. $as_echo_n "(cached) " >&6
  13543. else
  13544. cat >conftest.make <<\_ACEOF
  13545. SHELL = /bin/sh
  13546. all:
  13547. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13548. _ACEOF
  13549. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13550. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13551. *@@@%%%=?*=@@@%%%*)
  13552. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13553. *)
  13554. eval ac_cv_prog_make_${ac_make}_set=no;;
  13555. esac
  13556. rm -f conftest.make
  13557. fi
  13558. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13560. $as_echo "yes" >&6; }
  13561. SET_MAKE=
  13562. else
  13563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13564. $as_echo "no" >&6; }
  13565. SET_MAKE="MAKE=${MAKE-make}"
  13566. fi
  13567. if test -n "$ac_tool_prefix"; then
  13568. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13569. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13571. $as_echo_n "checking for $ac_word... " >&6; }
  13572. if ${ac_cv_prog_WINDRES+:} false; then :
  13573. $as_echo_n "(cached) " >&6
  13574. else
  13575. if test -n "$WINDRES"; then
  13576. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13577. else
  13578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13579. for as_dir in $PATH
  13580. do
  13581. IFS=$as_save_IFS
  13582. test -z "$as_dir" && as_dir=.
  13583. for ac_exec_ext in '' $ac_executable_extensions; do
  13584. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13585. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13587. break 2
  13588. fi
  13589. done
  13590. done
  13591. IFS=$as_save_IFS
  13592. fi
  13593. fi
  13594. WINDRES=$ac_cv_prog_WINDRES
  13595. if test -n "$WINDRES"; then
  13596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13597. $as_echo "$WINDRES" >&6; }
  13598. else
  13599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13600. $as_echo "no" >&6; }
  13601. fi
  13602. fi
  13603. if test -z "$ac_cv_prog_WINDRES"; then
  13604. ac_ct_WINDRES=$WINDRES
  13605. # Extract the first word of "windres", so it can be a program name with args.
  13606. set dummy windres; ac_word=$2
  13607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13608. $as_echo_n "checking for $ac_word... " >&6; }
  13609. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13610. $as_echo_n "(cached) " >&6
  13611. else
  13612. if test -n "$ac_ct_WINDRES"; then
  13613. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13614. else
  13615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13616. for as_dir in $PATH
  13617. do
  13618. IFS=$as_save_IFS
  13619. test -z "$as_dir" && as_dir=.
  13620. for ac_exec_ext in '' $ac_executable_extensions; do
  13621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13622. ac_cv_prog_ac_ct_WINDRES="windres"
  13623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13624. break 2
  13625. fi
  13626. done
  13627. done
  13628. IFS=$as_save_IFS
  13629. fi
  13630. fi
  13631. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13632. if test -n "$ac_ct_WINDRES"; then
  13633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13634. $as_echo "$ac_ct_WINDRES" >&6; }
  13635. else
  13636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13637. $as_echo "no" >&6; }
  13638. fi
  13639. if test "x$ac_ct_WINDRES" = x; then
  13640. WINDRES=":"
  13641. else
  13642. case $cross_compiling:$ac_tool_warned in
  13643. yes:)
  13644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13645. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13646. ac_tool_warned=yes ;;
  13647. esac
  13648. WINDRES=$ac_ct_WINDRES
  13649. fi
  13650. else
  13651. WINDRES="$ac_cv_prog_WINDRES"
  13652. fi
  13653. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13654. if test -n "$ac_tool_prefix"; then
  13655. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13656. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13658. $as_echo_n "checking for $ac_word... " >&6; }
  13659. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13660. $as_echo_n "(cached) " >&6
  13661. else
  13662. case $PKG_CONFIG in
  13663. [\\/]* | ?:[\\/]*)
  13664. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13665. ;;
  13666. *)
  13667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13668. for as_dir in $PATH
  13669. do
  13670. IFS=$as_save_IFS
  13671. test -z "$as_dir" && as_dir=.
  13672. for ac_exec_ext in '' $ac_executable_extensions; do
  13673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13674. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13676. break 2
  13677. fi
  13678. done
  13679. done
  13680. IFS=$as_save_IFS
  13681. ;;
  13682. esac
  13683. fi
  13684. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13685. if test -n "$PKG_CONFIG"; then
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13687. $as_echo "$PKG_CONFIG" >&6; }
  13688. else
  13689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13690. $as_echo "no" >&6; }
  13691. fi
  13692. fi
  13693. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13694. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13695. # Extract the first word of "pkg-config", so it can be a program name with args.
  13696. set dummy pkg-config; ac_word=$2
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13698. $as_echo_n "checking for $ac_word... " >&6; }
  13699. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13700. $as_echo_n "(cached) " >&6
  13701. else
  13702. case $ac_pt_PKG_CONFIG in
  13703. [\\/]* | ?:[\\/]*)
  13704. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13705. ;;
  13706. *)
  13707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13708. for as_dir in $PATH
  13709. do
  13710. IFS=$as_save_IFS
  13711. test -z "$as_dir" && as_dir=.
  13712. for ac_exec_ext in '' $ac_executable_extensions; do
  13713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13714. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13716. break 2
  13717. fi
  13718. done
  13719. done
  13720. IFS=$as_save_IFS
  13721. ;;
  13722. esac
  13723. fi
  13724. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13725. if test -n "$ac_pt_PKG_CONFIG"; then
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13727. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13728. else
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13730. $as_echo "no" >&6; }
  13731. fi
  13732. if test "x$ac_pt_PKG_CONFIG" = x; then
  13733. PKG_CONFIG=""
  13734. else
  13735. case $cross_compiling:$ac_tool_warned in
  13736. yes:)
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13739. ac_tool_warned=yes ;;
  13740. esac
  13741. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13742. fi
  13743. else
  13744. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13745. fi
  13746. fi
  13747. if test -n "$PKG_CONFIG"; then
  13748. _pkg_min_version=0.9.0
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13750. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13751. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13753. $as_echo "yes" >&6; }
  13754. else
  13755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13756. $as_echo "no" >&6; }
  13757. PKG_CONFIG=""
  13758. fi
  13759. fi
  13760. case "$host" in
  13761. *-*-mingw32*)
  13762. # Except on msys, where make can't handle full pathnames (bug 1972)
  13763. ;;
  13764. *)
  13765. srcdir=`cd $srcdir && pwd`
  13766. ;;
  13767. esac
  13768. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13769. if test x$srcdir != x.; then
  13770. INCLUDE="-Iinclude $INCLUDE"
  13771. elif test -d .hg; then
  13772. as_fn_error $? "
  13773. *** When building from Mercurial you should configure and build in a
  13774. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13775. " "$LINENO" 5
  13776. fi
  13777. BASE_CFLAGS=""
  13778. BASE_LDFLAGS=""
  13779. case "$host" in
  13780. *-*-cygwin*)
  13781. # We build SDL on cygwin without the UNIX emulation layer
  13782. save_CFLAGS="$CFLAGS"
  13783. have_no_cygwin=no
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13785. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13786. CFLAGS="$save_CFLAGS -mno-cygwin"
  13787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13788. /* end confdefs.h. */
  13789. int
  13790. main ()
  13791. {
  13792. ;
  13793. return 0;
  13794. }
  13795. _ACEOF
  13796. if ac_fn_c_try_compile "$LINENO"; then :
  13797. have_no_cygwin=yes
  13798. fi
  13799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13801. $as_echo "$have_no_cygwin" >&6; }
  13802. CFLAGS="$save_CFLAGS"
  13803. if test x$have_no_cygwin = xyes; then
  13804. BASE_CFLAGS="-mno-cygwin"
  13805. BASE_LDFLAGS="-mno-cygwin"
  13806. fi
  13807. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13808. ;;
  13809. esac
  13810. # Uncomment the following line if you want to force SDL and applications
  13811. # built with it to be compiled for a particular architecture.
  13812. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13813. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13814. # The default optimization for SDL is -O3 (Bug #31)
  13815. if test "x$orig_CFLAGS" = x; then
  13816. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13817. fi
  13818. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13819. BUILD_LDFLAGS="$LDFLAGS"
  13820. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13821. ## These are common directories to find software packages
  13822. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13823. # if test -d $path/include; then
  13824. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13825. # fi
  13826. # if test -d $path/lib; then
  13827. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13828. # fi
  13829. #done
  13830. SDL_CFLAGS="$BASE_CFLAGS"
  13831. SDL_LIBS="-lSDL2"
  13832. if test "x$BASE_LDFLAGS" != x; then
  13833. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13834. fi
  13835. if test "x$EXTRA_CFLAGS" != x; then
  13836. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13837. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13838. fi
  13839. if test "x$EXTRA_LDFLAGS" != x; then
  13840. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13841. fi
  13842. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13843. find_lib()
  13844. {
  13845. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13846. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13847. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13848. if test "$cross_compiling" = yes; then
  13849. host_lib_path=""
  13850. else
  13851. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13852. fi
  13853. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13854. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13855. if test x$lib != x; then
  13856. echo $lib
  13857. return
  13858. fi
  13859. done
  13860. # Try again, this time allowing more than one version digit after the .so
  13861. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13862. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13863. if test x$lib != x; then
  13864. echo $lib
  13865. return
  13866. fi
  13867. done
  13868. }
  13869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13870. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13871. if ${ac_cv_c_const+:} false; then :
  13872. $as_echo_n "(cached) " >&6
  13873. else
  13874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13875. /* end confdefs.h. */
  13876. int
  13877. main ()
  13878. {
  13879. #ifndef __cplusplus
  13880. /* Ultrix mips cc rejects this sort of thing. */
  13881. typedef int charset[2];
  13882. const charset cs = { 0, 0 };
  13883. /* SunOS 4.1.1 cc rejects this. */
  13884. char const *const *pcpcc;
  13885. char **ppc;
  13886. /* NEC SVR4.0.2 mips cc rejects this. */
  13887. struct point {int x, y;};
  13888. static struct point const zero = {0,0};
  13889. /* AIX XL C 1.02.0.0 rejects this.
  13890. It does not let you subtract one const X* pointer from another in
  13891. an arm of an if-expression whose if-part is not a constant
  13892. expression */
  13893. const char *g = "string";
  13894. pcpcc = &g + (g ? g-g : 0);
  13895. /* HPUX 7.0 cc rejects these. */
  13896. ++pcpcc;
  13897. ppc = (char**) pcpcc;
  13898. pcpcc = (char const *const *) ppc;
  13899. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13900. char tx;
  13901. char *t = &tx;
  13902. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13903. *t++ = 0;
  13904. if (s) return 0;
  13905. }
  13906. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13907. int x[] = {25, 17};
  13908. const int *foo = &x[0];
  13909. ++foo;
  13910. }
  13911. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13912. typedef const int *iptr;
  13913. iptr p = 0;
  13914. ++p;
  13915. }
  13916. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13917. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13918. struct s { int j; const int *ap[3]; } bx;
  13919. struct s *b = &bx; b->j = 5;
  13920. }
  13921. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13922. const int foo = 10;
  13923. if (!foo) return 0;
  13924. }
  13925. return !cs[0] && !zero.x;
  13926. #endif
  13927. ;
  13928. return 0;
  13929. }
  13930. _ACEOF
  13931. if ac_fn_c_try_compile "$LINENO"; then :
  13932. ac_cv_c_const=yes
  13933. else
  13934. ac_cv_c_const=no
  13935. fi
  13936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13937. fi
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13939. $as_echo "$ac_cv_c_const" >&6; }
  13940. if test $ac_cv_c_const = no; then
  13941. $as_echo "#define const /**/" >>confdefs.h
  13942. fi
  13943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13944. $as_echo_n "checking for inline... " >&6; }
  13945. if ${ac_cv_c_inline+:} false; then :
  13946. $as_echo_n "(cached) " >&6
  13947. else
  13948. ac_cv_c_inline=no
  13949. for ac_kw in inline __inline__ __inline; do
  13950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13951. /* end confdefs.h. */
  13952. #ifndef __cplusplus
  13953. typedef int foo_t;
  13954. static $ac_kw foo_t static_foo () {return 0; }
  13955. $ac_kw foo_t foo () {return 0; }
  13956. #endif
  13957. _ACEOF
  13958. if ac_fn_c_try_compile "$LINENO"; then :
  13959. ac_cv_c_inline=$ac_kw
  13960. fi
  13961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13962. test "$ac_cv_c_inline" != no && break
  13963. done
  13964. fi
  13965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13966. $as_echo "$ac_cv_c_inline" >&6; }
  13967. case $ac_cv_c_inline in
  13968. inline | yes) ;;
  13969. *)
  13970. case $ac_cv_c_inline in
  13971. no) ac_val=;;
  13972. *) ac_val=$ac_cv_c_inline;;
  13973. esac
  13974. cat >>confdefs.h <<_ACEOF
  13975. #ifndef __cplusplus
  13976. #define inline $ac_val
  13977. #endif
  13978. _ACEOF
  13979. ;;
  13980. esac
  13981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13982. $as_echo_n "checking for working volatile... " >&6; }
  13983. if ${ac_cv_c_volatile+:} false; then :
  13984. $as_echo_n "(cached) " >&6
  13985. else
  13986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13987. /* end confdefs.h. */
  13988. int
  13989. main ()
  13990. {
  13991. volatile int x;
  13992. int * volatile y = (int *) 0;
  13993. return !x && !y;
  13994. ;
  13995. return 0;
  13996. }
  13997. _ACEOF
  13998. if ac_fn_c_try_compile "$LINENO"; then :
  13999. ac_cv_c_volatile=yes
  14000. else
  14001. ac_cv_c_volatile=no
  14002. fi
  14003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14004. fi
  14005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14006. $as_echo "$ac_cv_c_volatile" >&6; }
  14007. if test $ac_cv_c_volatile = no; then
  14008. $as_echo "#define volatile /**/" >>confdefs.h
  14009. fi
  14010. # Check whether --enable-assertions was given.
  14011. if test "${enable_assertions+set}" = set; then :
  14012. enableval=$enable_assertions;
  14013. else
  14014. enable_assertions=auto
  14015. fi
  14016. case "$enable_assertions" in
  14017. auto) # Use optimization settings to determine assertion level
  14018. ;;
  14019. disabled)
  14020. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14021. ;;
  14022. release)
  14023. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14024. ;;
  14025. enabled)
  14026. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14027. ;;
  14028. paranoid)
  14029. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14030. ;;
  14031. *)
  14032. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14033. ;;
  14034. esac
  14035. # Check whether --enable-dependency-tracking was given.
  14036. if test "${enable_dependency_tracking+set}" = set; then :
  14037. enableval=$enable_dependency_tracking;
  14038. else
  14039. enable_dependency_tracking=yes
  14040. fi
  14041. if test x$enable_dependency_tracking = xyes; then
  14042. have_gcc_mmd_mt=no
  14043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14044. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14046. /* end confdefs.h. */
  14047. #if !defined(__GNUC__) || __GNUC__ < 3
  14048. #error Dependency tracking requires GCC 3.0 or newer
  14049. #endif
  14050. int
  14051. main ()
  14052. {
  14053. ;
  14054. return 0;
  14055. }
  14056. _ACEOF
  14057. if ac_fn_c_try_compile "$LINENO"; then :
  14058. have_gcc_mmd_mt=yes
  14059. fi
  14060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14062. $as_echo "$have_gcc_mmd_mt" >&6; }
  14063. if test x$have_gcc_mmd_mt = xyes; then
  14064. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14065. fi
  14066. fi
  14067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14068. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14069. have_no_undefined=no
  14070. case "$host" in
  14071. *-*-openbsd*)
  14072. ;;
  14073. *)
  14074. save_LDFLAGS="$LDFLAGS"
  14075. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14077. /* end confdefs.h. */
  14078. int
  14079. main ()
  14080. {
  14081. ;
  14082. return 0;
  14083. }
  14084. _ACEOF
  14085. if ac_fn_c_try_link "$LINENO"; then :
  14086. have_no_undefined=yes
  14087. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14088. fi
  14089. rm -f core conftest.err conftest.$ac_objext \
  14090. conftest$ac_exeext conftest.$ac_ext
  14091. LDFLAGS="$save_LDFLAGS"
  14092. ;;
  14093. esac
  14094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14095. $as_echo "$have_no_undefined" >&6; }
  14096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14097. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14098. have_dynamicbase=no
  14099. case "$host" in
  14100. *)
  14101. save_LDFLAGS="$LDFLAGS"
  14102. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14104. /* end confdefs.h. */
  14105. int
  14106. main ()
  14107. {
  14108. ;
  14109. return 0;
  14110. }
  14111. _ACEOF
  14112. if ac_fn_c_try_link "$LINENO"; then :
  14113. have_dynamicbase=yes
  14114. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14115. fi
  14116. rm -f core conftest.err conftest.$ac_objext \
  14117. conftest$ac_exeext conftest.$ac_ext
  14118. LDFLAGS="$save_LDFLAGS"
  14119. ;;
  14120. esac
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14122. $as_echo "$have_dynamicbase" >&6; }
  14123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14124. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14125. have_nxcompat=no
  14126. case "$host" in
  14127. *)
  14128. save_LDFLAGS="$LDFLAGS"
  14129. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14131. /* end confdefs.h. */
  14132. int
  14133. main ()
  14134. {
  14135. ;
  14136. return 0;
  14137. }
  14138. _ACEOF
  14139. if ac_fn_c_try_link "$LINENO"; then :
  14140. have_nxcompat=yes
  14141. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14142. fi
  14143. rm -f core conftest.err conftest.$ac_objext \
  14144. conftest$ac_exeext conftest.$ac_ext
  14145. LDFLAGS="$save_LDFLAGS"
  14146. ;;
  14147. esac
  14148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14149. $as_echo "$have_nxcompat" >&6; }
  14150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14151. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14152. have_high_entropy_va=no
  14153. case "$host" in
  14154. *)
  14155. save_LDFLAGS="$LDFLAGS"
  14156. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14158. /* end confdefs.h. */
  14159. int
  14160. main ()
  14161. {
  14162. ;
  14163. return 0;
  14164. }
  14165. _ACEOF
  14166. if ac_fn_c_try_link "$LINENO"; then :
  14167. have_high_entropy_va=yes
  14168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14169. fi
  14170. rm -f core conftest.err conftest.$ac_objext \
  14171. conftest$ac_exeext conftest.$ac_ext
  14172. LDFLAGS="$save_LDFLAGS"
  14173. ;;
  14174. esac
  14175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14176. $as_echo "$have_high_entropy_va" >&6; }
  14177. # Check whether --enable-libc was given.
  14178. if test "${enable_libc+set}" = set; then :
  14179. enableval=$enable_libc;
  14180. else
  14181. enable_libc=yes
  14182. fi
  14183. if test x$enable_libc = xyes; then
  14184. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14186. $as_echo_n "checking for ANSI C header files... " >&6; }
  14187. if ${ac_cv_header_stdc+:} false; then :
  14188. $as_echo_n "(cached) " >&6
  14189. else
  14190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14191. /* end confdefs.h. */
  14192. #include <stdlib.h>
  14193. #include <stdarg.h>
  14194. #include <string.h>
  14195. #include <float.h>
  14196. int
  14197. main ()
  14198. {
  14199. ;
  14200. return 0;
  14201. }
  14202. _ACEOF
  14203. if ac_fn_c_try_compile "$LINENO"; then :
  14204. ac_cv_header_stdc=yes
  14205. else
  14206. ac_cv_header_stdc=no
  14207. fi
  14208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14209. if test $ac_cv_header_stdc = yes; then
  14210. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14212. /* end confdefs.h. */
  14213. #include <string.h>
  14214. _ACEOF
  14215. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14216. $EGREP "memchr" >/dev/null 2>&1; then :
  14217. else
  14218. ac_cv_header_stdc=no
  14219. fi
  14220. rm -f conftest*
  14221. fi
  14222. if test $ac_cv_header_stdc = yes; then
  14223. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14225. /* end confdefs.h. */
  14226. #include <stdlib.h>
  14227. _ACEOF
  14228. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14229. $EGREP "free" >/dev/null 2>&1; then :
  14230. else
  14231. ac_cv_header_stdc=no
  14232. fi
  14233. rm -f conftest*
  14234. fi
  14235. if test $ac_cv_header_stdc = yes; then
  14236. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14237. if test "$cross_compiling" = yes; then :
  14238. :
  14239. else
  14240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14241. /* end confdefs.h. */
  14242. #include <ctype.h>
  14243. #include <stdlib.h>
  14244. #if ((' ' & 0x0FF) == 0x020)
  14245. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14246. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14247. #else
  14248. # define ISLOWER(c) \
  14249. (('a' <= (c) && (c) <= 'i') \
  14250. || ('j' <= (c) && (c) <= 'r') \
  14251. || ('s' <= (c) && (c) <= 'z'))
  14252. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14253. #endif
  14254. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14255. int
  14256. main ()
  14257. {
  14258. int i;
  14259. for (i = 0; i < 256; i++)
  14260. if (XOR (islower (i), ISLOWER (i))
  14261. || toupper (i) != TOUPPER (i))
  14262. return 2;
  14263. return 0;
  14264. }
  14265. _ACEOF
  14266. if ac_fn_c_try_run "$LINENO"; then :
  14267. else
  14268. ac_cv_header_stdc=no
  14269. fi
  14270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14271. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14272. fi
  14273. fi
  14274. fi
  14275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14276. $as_echo "$ac_cv_header_stdc" >&6; }
  14277. if test $ac_cv_header_stdc = yes; then
  14278. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14279. fi
  14280. 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
  14281. do :
  14282. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14283. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14284. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14285. cat >>confdefs.h <<_ACEOF
  14286. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14287. _ACEOF
  14288. fi
  14289. done
  14290. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14291. if test "x$ac_cv_type_size_t" = xyes; then :
  14292. else
  14293. cat >>confdefs.h <<_ACEOF
  14294. #define size_t unsigned int
  14295. _ACEOF
  14296. fi
  14297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14298. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14299. if ${ac_cv_define_M_PI+:} false; then :
  14300. $as_echo_n "(cached) " >&6
  14301. else
  14302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14303. /* end confdefs.h. */
  14304. #include <math.h>
  14305. #ifdef M_PI
  14306. YES_IS_DEFINED
  14307. #endif
  14308. _ACEOF
  14309. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14310. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14311. ac_cv_define_M_PI=yes
  14312. else
  14313. ac_cv_define_M_PI=no
  14314. fi
  14315. rm -f conftest*
  14316. fi
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14318. $as_echo "$ac_cv_define_M_PI" >&6; }
  14319. if test "$ac_cv_define_M_PI" = "yes" ; then
  14320. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14321. fi
  14322. case "$host" in
  14323. *-*-cygwin* | *-*-mingw32*)
  14324. ;;
  14325. *)
  14326. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14327. # for constant arguments. Useless!
  14328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14329. $as_echo_n "checking for working alloca.h... " >&6; }
  14330. if ${ac_cv_working_alloca_h+:} false; then :
  14331. $as_echo_n "(cached) " >&6
  14332. else
  14333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14334. /* end confdefs.h. */
  14335. #include <alloca.h>
  14336. int
  14337. main ()
  14338. {
  14339. char *p = (char *) alloca (2 * sizeof (int));
  14340. if (p) return 0;
  14341. ;
  14342. return 0;
  14343. }
  14344. _ACEOF
  14345. if ac_fn_c_try_link "$LINENO"; then :
  14346. ac_cv_working_alloca_h=yes
  14347. else
  14348. ac_cv_working_alloca_h=no
  14349. fi
  14350. rm -f core conftest.err conftest.$ac_objext \
  14351. conftest$ac_exeext conftest.$ac_ext
  14352. fi
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14354. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14355. if test $ac_cv_working_alloca_h = yes; then
  14356. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14357. fi
  14358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14359. $as_echo_n "checking for alloca... " >&6; }
  14360. if ${ac_cv_func_alloca_works+:} false; then :
  14361. $as_echo_n "(cached) " >&6
  14362. else
  14363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14364. /* end confdefs.h. */
  14365. #ifdef __GNUC__
  14366. # define alloca __builtin_alloca
  14367. #else
  14368. # ifdef _MSC_VER
  14369. # include <malloc.h>
  14370. # define alloca _alloca
  14371. # else
  14372. # ifdef HAVE_ALLOCA_H
  14373. # include <alloca.h>
  14374. # else
  14375. # ifdef _AIX
  14376. #pragma alloca
  14377. # else
  14378. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14379. void *alloca (size_t);
  14380. # endif
  14381. # endif
  14382. # endif
  14383. # endif
  14384. #endif
  14385. int
  14386. main ()
  14387. {
  14388. char *p = (char *) alloca (1);
  14389. if (p) return 0;
  14390. ;
  14391. return 0;
  14392. }
  14393. _ACEOF
  14394. if ac_fn_c_try_link "$LINENO"; then :
  14395. ac_cv_func_alloca_works=yes
  14396. else
  14397. ac_cv_func_alloca_works=no
  14398. fi
  14399. rm -f core conftest.err conftest.$ac_objext \
  14400. conftest$ac_exeext conftest.$ac_ext
  14401. fi
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14403. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14404. if test $ac_cv_func_alloca_works = yes; then
  14405. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14406. else
  14407. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14408. # that cause trouble. Some versions do not even contain alloca or
  14409. # contain a buggy version. If you still want to use their alloca,
  14410. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14411. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14412. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14414. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14415. if ${ac_cv_os_cray+:} false; then :
  14416. $as_echo_n "(cached) " >&6
  14417. else
  14418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14419. /* end confdefs.h. */
  14420. #if defined CRAY && ! defined CRAY2
  14421. webecray
  14422. #else
  14423. wenotbecray
  14424. #endif
  14425. _ACEOF
  14426. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14427. $EGREP "webecray" >/dev/null 2>&1; then :
  14428. ac_cv_os_cray=yes
  14429. else
  14430. ac_cv_os_cray=no
  14431. fi
  14432. rm -f conftest*
  14433. fi
  14434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14435. $as_echo "$ac_cv_os_cray" >&6; }
  14436. if test $ac_cv_os_cray = yes; then
  14437. for ac_func in _getb67 GETB67 getb67; do
  14438. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14439. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14440. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14441. cat >>confdefs.h <<_ACEOF
  14442. #define CRAY_STACKSEG_END $ac_func
  14443. _ACEOF
  14444. break
  14445. fi
  14446. done
  14447. fi
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14449. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14450. if ${ac_cv_c_stack_direction+:} false; then :
  14451. $as_echo_n "(cached) " >&6
  14452. else
  14453. if test "$cross_compiling" = yes; then :
  14454. ac_cv_c_stack_direction=0
  14455. else
  14456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14457. /* end confdefs.h. */
  14458. $ac_includes_default
  14459. int
  14460. find_stack_direction (int *addr, int depth)
  14461. {
  14462. int dir, dummy = 0;
  14463. if (! addr)
  14464. addr = &dummy;
  14465. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14466. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14467. return dir + dummy;
  14468. }
  14469. int
  14470. main (int argc, char **argv)
  14471. {
  14472. return find_stack_direction (0, argc + !argv + 20) < 0;
  14473. }
  14474. _ACEOF
  14475. if ac_fn_c_try_run "$LINENO"; then :
  14476. ac_cv_c_stack_direction=1
  14477. else
  14478. ac_cv_c_stack_direction=-1
  14479. fi
  14480. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14481. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14482. fi
  14483. fi
  14484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14485. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14486. cat >>confdefs.h <<_ACEOF
  14487. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14488. _ACEOF
  14489. fi
  14490. ;;
  14491. esac
  14492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14493. $as_echo_n "checking for working memcmp... " >&6; }
  14494. if ${ac_cv_func_memcmp_working+:} false; then :
  14495. $as_echo_n "(cached) " >&6
  14496. else
  14497. if test "$cross_compiling" = yes; then :
  14498. ac_cv_func_memcmp_working=no
  14499. else
  14500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14501. /* end confdefs.h. */
  14502. $ac_includes_default
  14503. int
  14504. main ()
  14505. {
  14506. /* Some versions of memcmp are not 8-bit clean. */
  14507. char c0 = '\100', c1 = '\200', c2 = '\201';
  14508. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14509. return 1;
  14510. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14511. or more and with at least one buffer not starting on a 4-byte boundary.
  14512. William Lewis provided this test program. */
  14513. {
  14514. char foo[21];
  14515. char bar[21];
  14516. int i;
  14517. for (i = 0; i < 4; i++)
  14518. {
  14519. char *a = foo + i;
  14520. char *b = bar + i;
  14521. strcpy (a, "--------01111111");
  14522. strcpy (b, "--------10000000");
  14523. if (memcmp (a, b, 16) >= 0)
  14524. return 1;
  14525. }
  14526. return 0;
  14527. }
  14528. ;
  14529. return 0;
  14530. }
  14531. _ACEOF
  14532. if ac_fn_c_try_run "$LINENO"; then :
  14533. ac_cv_func_memcmp_working=yes
  14534. else
  14535. ac_cv_func_memcmp_working=no
  14536. fi
  14537. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14538. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14539. fi
  14540. fi
  14541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14542. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14543. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14544. *" memcmp.$ac_objext "* ) ;;
  14545. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14546. ;;
  14547. esac
  14548. if test x$ac_cv_func_memcmp_working = xyes; then
  14549. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14550. fi
  14551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14552. $as_echo_n "checking for working strtod... " >&6; }
  14553. if ${ac_cv_func_strtod+:} false; then :
  14554. $as_echo_n "(cached) " >&6
  14555. else
  14556. if test "$cross_compiling" = yes; then :
  14557. ac_cv_func_strtod=no
  14558. else
  14559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14560. /* end confdefs.h. */
  14561. $ac_includes_default
  14562. #ifndef strtod
  14563. double strtod ();
  14564. #endif
  14565. int
  14566. main()
  14567. {
  14568. {
  14569. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14570. char *string = " +69";
  14571. char *term;
  14572. double value;
  14573. value = strtod (string, &term);
  14574. if (value != 69 || term != (string + 4))
  14575. return 1;
  14576. }
  14577. {
  14578. /* Under Solaris 2.4, strtod returns the wrong value for the
  14579. terminating character under some conditions. */
  14580. char *string = "NaN";
  14581. char *term;
  14582. strtod (string, &term);
  14583. if (term != string && *(term - 1) == 0)
  14584. return 1;
  14585. }
  14586. return 0;
  14587. }
  14588. _ACEOF
  14589. if ac_fn_c_try_run "$LINENO"; then :
  14590. ac_cv_func_strtod=yes
  14591. else
  14592. ac_cv_func_strtod=no
  14593. fi
  14594. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14595. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14596. fi
  14597. fi
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14599. $as_echo "$ac_cv_func_strtod" >&6; }
  14600. if test $ac_cv_func_strtod = no; then
  14601. case " $LIBOBJS " in
  14602. *" strtod.$ac_objext "* ) ;;
  14603. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14604. ;;
  14605. esac
  14606. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14607. if test "x$ac_cv_func_pow" = xyes; then :
  14608. fi
  14609. if test $ac_cv_func_pow = no; then
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14611. $as_echo_n "checking for pow in -lm... " >&6; }
  14612. if ${ac_cv_lib_m_pow+:} false; then :
  14613. $as_echo_n "(cached) " >&6
  14614. else
  14615. ac_check_lib_save_LIBS=$LIBS
  14616. LIBS="-lm $LIBS"
  14617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14618. /* end confdefs.h. */
  14619. /* Override any GCC internal prototype to avoid an error.
  14620. Use char because int might match the return type of a GCC
  14621. builtin and then its argument prototype would still apply. */
  14622. #ifdef __cplusplus
  14623. extern "C"
  14624. #endif
  14625. char pow ();
  14626. int
  14627. main ()
  14628. {
  14629. return pow ();
  14630. ;
  14631. return 0;
  14632. }
  14633. _ACEOF
  14634. if ac_fn_c_try_link "$LINENO"; then :
  14635. ac_cv_lib_m_pow=yes
  14636. else
  14637. ac_cv_lib_m_pow=no
  14638. fi
  14639. rm -f core conftest.err conftest.$ac_objext \
  14640. conftest$ac_exeext conftest.$ac_ext
  14641. LIBS=$ac_check_lib_save_LIBS
  14642. fi
  14643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14644. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14645. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14646. POW_LIB=-lm
  14647. else
  14648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14649. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14650. fi
  14651. fi
  14652. fi
  14653. if test x$ac_cv_func_strtod = xyes; then
  14654. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14655. fi
  14656. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14657. if test "x$ac_cv_func_mprotect" = xyes; then :
  14658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14659. /* end confdefs.h. */
  14660. #include <sys/types.h>
  14661. #include <sys/mman.h>
  14662. int
  14663. main ()
  14664. {
  14665. ;
  14666. return 0;
  14667. }
  14668. _ACEOF
  14669. if ac_fn_c_try_compile "$LINENO"; then :
  14670. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14671. fi
  14672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14673. fi
  14674. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll _Exit
  14675. do :
  14676. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14677. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14678. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14679. cat >>confdefs.h <<_ACEOF
  14680. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14681. _ACEOF
  14682. fi
  14683. done
  14684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14685. $as_echo_n "checking for pow in -lm... " >&6; }
  14686. if ${ac_cv_lib_m_pow+:} false; then :
  14687. $as_echo_n "(cached) " >&6
  14688. else
  14689. ac_check_lib_save_LIBS=$LIBS
  14690. LIBS="-lm $LIBS"
  14691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14692. /* end confdefs.h. */
  14693. /* Override any GCC internal prototype to avoid an error.
  14694. Use char because int might match the return type of a GCC
  14695. builtin and then its argument prototype would still apply. */
  14696. #ifdef __cplusplus
  14697. extern "C"
  14698. #endif
  14699. char pow ();
  14700. int
  14701. main ()
  14702. {
  14703. return pow ();
  14704. ;
  14705. return 0;
  14706. }
  14707. _ACEOF
  14708. if ac_fn_c_try_link "$LINENO"; then :
  14709. ac_cv_lib_m_pow=yes
  14710. else
  14711. ac_cv_lib_m_pow=no
  14712. fi
  14713. rm -f core conftest.err conftest.$ac_objext \
  14714. conftest$ac_exeext conftest.$ac_ext
  14715. LIBS=$ac_check_lib_save_LIBS
  14716. fi
  14717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14718. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14719. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14720. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14721. fi
  14722. 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
  14723. do :
  14724. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14725. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14726. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14727. cat >>confdefs.h <<_ACEOF
  14728. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14729. _ACEOF
  14730. fi
  14731. done
  14732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14733. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14734. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14735. $as_echo_n "(cached) " >&6
  14736. else
  14737. ac_check_lib_save_LIBS=$LIBS
  14738. LIBS="-liconv $LIBS"
  14739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14740. /* end confdefs.h. */
  14741. /* Override any GCC internal prototype to avoid an error.
  14742. Use char because int might match the return type of a GCC
  14743. builtin and then its argument prototype would still apply. */
  14744. #ifdef __cplusplus
  14745. extern "C"
  14746. #endif
  14747. char iconv_open ();
  14748. int
  14749. main ()
  14750. {
  14751. return iconv_open ();
  14752. ;
  14753. return 0;
  14754. }
  14755. _ACEOF
  14756. if ac_fn_c_try_link "$LINENO"; then :
  14757. ac_cv_lib_iconv_iconv_open=yes
  14758. else
  14759. ac_cv_lib_iconv_iconv_open=no
  14760. fi
  14761. rm -f core conftest.err conftest.$ac_objext \
  14762. conftest$ac_exeext conftest.$ac_ext
  14763. LIBS=$ac_check_lib_save_LIBS
  14764. fi
  14765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14766. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14767. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14768. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14769. fi
  14770. for ac_func in iconv
  14771. do :
  14772. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14773. if test "x$ac_cv_func_iconv" = xyes; then :
  14774. cat >>confdefs.h <<_ACEOF
  14775. #define HAVE_ICONV 1
  14776. _ACEOF
  14777. fi
  14778. done
  14779. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14780. "
  14781. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14782. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14783. fi
  14784. for ac_header in libunwind.h
  14785. do :
  14786. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14787. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14788. cat >>confdefs.h <<_ACEOF
  14789. #define HAVE_LIBUNWIND_H 1
  14790. _ACEOF
  14791. fi
  14792. done
  14793. fi
  14794. # Check whether --enable-gcc-atomics was given.
  14795. if test "${enable_gcc_atomics+set}" = set; then :
  14796. enableval=$enable_gcc_atomics;
  14797. else
  14798. enable_gcc_atomics=yes
  14799. fi
  14800. if test x$enable_gcc_atomics = xyes; then
  14801. have_gcc_atomics=no
  14802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14803. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14805. /* end confdefs.h. */
  14806. int
  14807. main ()
  14808. {
  14809. int a;
  14810. void *x, *y, *z;
  14811. __sync_lock_test_and_set(&a, 4);
  14812. __sync_lock_test_and_set(&x, y);
  14813. __sync_fetch_and_add(&a, 1);
  14814. __sync_bool_compare_and_swap(&a, 5, 10);
  14815. __sync_bool_compare_and_swap(&x, y, z);
  14816. ;
  14817. return 0;
  14818. }
  14819. _ACEOF
  14820. if ac_fn_c_try_link "$LINENO"; then :
  14821. have_gcc_atomics=yes
  14822. fi
  14823. rm -f core conftest.err conftest.$ac_objext \
  14824. conftest$ac_exeext conftest.$ac_ext
  14825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14826. $as_echo "$have_gcc_atomics" >&6; }
  14827. if test x$have_gcc_atomics = xyes; then
  14828. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14829. else
  14830. # See if we have the minimum operation needed for GCC atomics
  14831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14832. /* end confdefs.h. */
  14833. int
  14834. main ()
  14835. {
  14836. int a;
  14837. __sync_lock_test_and_set(&a, 1);
  14838. __sync_lock_release(&a);
  14839. ;
  14840. return 0;
  14841. }
  14842. _ACEOF
  14843. if ac_fn_c_try_link "$LINENO"; then :
  14844. have_gcc_sync_lock_test_and_set=yes
  14845. fi
  14846. rm -f core conftest.err conftest.$ac_objext \
  14847. conftest$ac_exeext conftest.$ac_ext
  14848. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14849. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14850. fi
  14851. fi
  14852. fi
  14853. # Standard C sources
  14854. SOURCES="$SOURCES $srcdir/src/*.c"
  14855. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14856. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14857. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14858. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14859. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14860. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14861. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14862. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14863. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14864. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14865. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14866. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14867. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14868. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14869. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14870. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14871. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14872. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14873. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14874. # Check whether --enable-atomic was given.
  14875. if test "${enable_atomic+set}" = set; then :
  14876. enableval=$enable_atomic;
  14877. else
  14878. enable_atomic=yes
  14879. fi
  14880. if test x$enable_atomic != xyes; then
  14881. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14882. else
  14883. SUMMARY_modules="${SUMMARY_modules} atomic"
  14884. fi
  14885. # Check whether --enable-audio was given.
  14886. if test "${enable_audio+set}" = set; then :
  14887. enableval=$enable_audio;
  14888. else
  14889. enable_audio=yes
  14890. fi
  14891. if test x$enable_audio != xyes; then
  14892. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14893. else
  14894. SUMMARY_modules="${SUMMARY_modules} audio"
  14895. fi
  14896. # Check whether --enable-video was given.
  14897. if test "${enable_video+set}" = set; then :
  14898. enableval=$enable_video;
  14899. else
  14900. enable_video=yes
  14901. fi
  14902. if test x$enable_video != xyes; then
  14903. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14904. else
  14905. SUMMARY_modules="${SUMMARY_modules} video"
  14906. fi
  14907. # Check whether --enable-render was given.
  14908. if test "${enable_render+set}" = set; then :
  14909. enableval=$enable_render;
  14910. else
  14911. enable_render=yes
  14912. fi
  14913. if test x$enable_render != xyes; then
  14914. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14915. else
  14916. SUMMARY_modules="${SUMMARY_modules} render"
  14917. fi
  14918. # Check whether --enable-events was given.
  14919. if test "${enable_events+set}" = set; then :
  14920. enableval=$enable_events;
  14921. else
  14922. enable_events=yes
  14923. fi
  14924. if test x$enable_events != xyes; then
  14925. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14926. else
  14927. SUMMARY_modules="${SUMMARY_modules} events"
  14928. fi
  14929. # Check whether --enable-joystick was given.
  14930. if test "${enable_joystick+set}" = set; then :
  14931. enableval=$enable_joystick;
  14932. else
  14933. enable_joystick=yes
  14934. fi
  14935. if test x$enable_joystick != xyes; then
  14936. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14937. else
  14938. SUMMARY_modules="${SUMMARY_modules} joystick"
  14939. fi
  14940. # Check whether --enable-haptic was given.
  14941. if test "${enable_haptic+set}" = set; then :
  14942. enableval=$enable_haptic;
  14943. else
  14944. enable_haptic=yes
  14945. fi
  14946. if test x$enable_haptic != xyes; then
  14947. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14948. else
  14949. SUMMARY_modules="${SUMMARY_modules} haptic"
  14950. fi
  14951. # Check whether --enable-sensor was given.
  14952. if test "${enable_sensor+set}" = set; then :
  14953. enableval=$enable_sensor;
  14954. else
  14955. enable_sensor=yes
  14956. fi
  14957. if test x$enable_sensor != xyes; then
  14958. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14959. else
  14960. SUMMARY_modules="${SUMMARY_modules} sensor"
  14961. fi
  14962. # Check whether --enable-power was given.
  14963. if test "${enable_power+set}" = set; then :
  14964. enableval=$enable_power;
  14965. else
  14966. enable_power=yes
  14967. fi
  14968. if test x$enable_power != xyes; then
  14969. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14970. else
  14971. SUMMARY_modules="${SUMMARY_modules} power"
  14972. fi
  14973. # Check whether --enable-filesystem was given.
  14974. if test "${enable_filesystem+set}" = set; then :
  14975. enableval=$enable_filesystem;
  14976. else
  14977. enable_filesystem=yes
  14978. fi
  14979. if test x$enable_filesystem != xyes; then
  14980. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14981. else
  14982. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14983. fi
  14984. # Check whether --enable-threads was given.
  14985. if test "${enable_threads+set}" = set; then :
  14986. enableval=$enable_threads;
  14987. else
  14988. enable_threads=yes
  14989. fi
  14990. if test x$enable_threads != xyes; then
  14991. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14992. else
  14993. SUMMARY_modules="${SUMMARY_modules} threads"
  14994. fi
  14995. # Check whether --enable-timers was given.
  14996. if test "${enable_timers+set}" = set; then :
  14997. enableval=$enable_timers;
  14998. else
  14999. enable_timers=yes
  15000. fi
  15001. if test x$enable_timers != xyes; then
  15002. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15003. else
  15004. SUMMARY_modules="${SUMMARY_modules} timers"
  15005. fi
  15006. # Check whether --enable-file was given.
  15007. if test "${enable_file+set}" = set; then :
  15008. enableval=$enable_file;
  15009. else
  15010. enable_file=yes
  15011. fi
  15012. if test x$enable_file != xyes; then
  15013. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15014. else
  15015. SUMMARY_modules="${SUMMARY_modules} file"
  15016. fi
  15017. # Check whether --enable-loadso was given.
  15018. if test "${enable_loadso+set}" = set; then :
  15019. enableval=$enable_loadso;
  15020. else
  15021. enable_loadso=yes
  15022. fi
  15023. if test x$enable_loadso != xyes; then
  15024. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15025. else
  15026. SUMMARY_modules="${SUMMARY_modules} loadso"
  15027. fi
  15028. # Check whether --enable-cpuinfo was given.
  15029. if test "${enable_cpuinfo+set}" = set; then :
  15030. enableval=$enable_cpuinfo;
  15031. else
  15032. enable_cpuinfo=yes
  15033. fi
  15034. if test x$enable_cpuinfo != xyes; then
  15035. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15036. else
  15037. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15038. fi
  15039. # Check whether --enable-assembly was given.
  15040. if test "${enable_assembly+set}" = set; then :
  15041. enableval=$enable_assembly;
  15042. else
  15043. enable_assembly=yes
  15044. fi
  15045. if test x$enable_assembly = xyes; then
  15046. SUMMARY_modules="${SUMMARY_modules} assembly"
  15047. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15048. # Make sure that we don't generate floating point code that would
  15049. # cause illegal instruction exceptions on older processors
  15050. case "$host" in
  15051. *-*-darwin*)
  15052. # Don't need to worry about Apple hardware, it's all SSE capable
  15053. default_ssemath=yes
  15054. ;;
  15055. *64-*-*)
  15056. # x86 64-bit architectures all have SSE instructions
  15057. default_ssemath=yes
  15058. ;;
  15059. *)
  15060. default_ssemath=no
  15061. ;;
  15062. esac
  15063. # Check whether --enable-ssemath was given.
  15064. if test "${enable_ssemath+set}" = set; then :
  15065. enableval=$enable_ssemath;
  15066. else
  15067. enable_ssemath=$default_ssemath
  15068. fi
  15069. if test x$enable_ssemath = xno; then
  15070. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15071. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15072. fi
  15073. fi
  15074. # Check whether --enable-mmx was given.
  15075. if test "${enable_mmx+set}" = set; then :
  15076. enableval=$enable_mmx;
  15077. else
  15078. enable_mmx=yes
  15079. fi
  15080. if test x$enable_mmx = xyes; then
  15081. save_CFLAGS="$CFLAGS"
  15082. have_gcc_mmx=no
  15083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15084. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15085. mmx_CFLAGS="-mmmx"
  15086. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15088. /* end confdefs.h. */
  15089. #ifdef __MINGW32__
  15090. #include <_mingw.h>
  15091. #ifdef __MINGW64_VERSION_MAJOR
  15092. #include <intrin.h>
  15093. #else
  15094. #include <mmintrin.h>
  15095. #endif
  15096. #else
  15097. #include <mmintrin.h>
  15098. #endif
  15099. #ifndef __MMX__
  15100. #error Assembler CPP flag not enabled
  15101. #endif
  15102. int
  15103. main ()
  15104. {
  15105. ;
  15106. return 0;
  15107. }
  15108. _ACEOF
  15109. if ac_fn_c_try_compile "$LINENO"; then :
  15110. have_gcc_mmx=yes
  15111. fi
  15112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15114. $as_echo "$have_gcc_mmx" >&6; }
  15115. CFLAGS="$save_CFLAGS"
  15116. if test x$have_gcc_mmx = xyes; then
  15117. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15118. SUMMARY_math="${SUMMARY_math} mmx"
  15119. fi
  15120. fi
  15121. # Check whether --enable-3dnow was given.
  15122. if test "${enable_3dnow+set}" = set; then :
  15123. enableval=$enable_3dnow;
  15124. else
  15125. enable_3dnow=yes
  15126. fi
  15127. if test x$enable_3dnow = xyes; then
  15128. save_CFLAGS="$CFLAGS"
  15129. have_gcc_3dnow=no
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15131. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15132. amd3dnow_CFLAGS="-m3dnow"
  15133. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15135. /* end confdefs.h. */
  15136. #include <mm3dnow.h>
  15137. #ifndef __3dNOW__
  15138. #error Assembler CPP flag not enabled
  15139. #endif
  15140. int
  15141. main ()
  15142. {
  15143. void *p = 0;
  15144. _m_prefetch(p);
  15145. ;
  15146. return 0;
  15147. }
  15148. _ACEOF
  15149. if ac_fn_c_try_link "$LINENO"; then :
  15150. have_gcc_3dnow=yes
  15151. fi
  15152. rm -f core conftest.err conftest.$ac_objext \
  15153. conftest$ac_exeext conftest.$ac_ext
  15154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15155. $as_echo "$have_gcc_3dnow" >&6; }
  15156. CFLAGS="$save_CFLAGS"
  15157. if test x$have_gcc_3dnow = xyes; then
  15158. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15159. SUMMARY_math="${SUMMARY_math} 3dnow"
  15160. fi
  15161. fi
  15162. # Check whether --enable-sse was given.
  15163. if test "${enable_sse+set}" = set; then :
  15164. enableval=$enable_sse;
  15165. else
  15166. enable_sse=yes
  15167. fi
  15168. if test x$enable_sse = xyes; then
  15169. save_CFLAGS="$CFLAGS"
  15170. have_gcc_sse=no
  15171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15172. $as_echo_n "checking for GCC -msse option... " >&6; }
  15173. sse_CFLAGS="-msse"
  15174. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15176. /* end confdefs.h. */
  15177. #ifdef __MINGW32__
  15178. #include <_mingw.h>
  15179. #ifdef __MINGW64_VERSION_MAJOR
  15180. #include <intrin.h>
  15181. #else
  15182. #include <xmmintrin.h>
  15183. #endif
  15184. #else
  15185. #include <xmmintrin.h>
  15186. #endif
  15187. #ifndef __SSE__
  15188. #error Assembler CPP flag not enabled
  15189. #endif
  15190. int
  15191. main ()
  15192. {
  15193. ;
  15194. return 0;
  15195. }
  15196. _ACEOF
  15197. if ac_fn_c_try_compile "$LINENO"; then :
  15198. have_gcc_sse=yes
  15199. fi
  15200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15202. $as_echo "$have_gcc_sse" >&6; }
  15203. CFLAGS="$save_CFLAGS"
  15204. if test x$have_gcc_sse = xyes; then
  15205. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15206. SUMMARY_math="${SUMMARY_math} sse"
  15207. fi
  15208. fi
  15209. # Check whether --enable-sse2 was given.
  15210. if test "${enable_sse2+set}" = set; then :
  15211. enableval=$enable_sse2;
  15212. else
  15213. enable_sse2=$default_ssemath
  15214. fi
  15215. if test x$enable_sse2 = xyes; then
  15216. save_CFLAGS="$CFLAGS"
  15217. have_gcc_sse2=no
  15218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15219. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15220. sse2_CFLAGS="-msse2"
  15221. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15223. /* end confdefs.h. */
  15224. #ifdef __MINGW32__
  15225. #include <_mingw.h>
  15226. #ifdef __MINGW64_VERSION_MAJOR
  15227. #include <intrin.h>
  15228. #else
  15229. #include <emmintrin.h>
  15230. #endif
  15231. #else
  15232. #include <emmintrin.h>
  15233. #endif
  15234. #ifndef __SSE2__
  15235. #error Assembler CPP flag not enabled
  15236. #endif
  15237. int
  15238. main ()
  15239. {
  15240. ;
  15241. return 0;
  15242. }
  15243. _ACEOF
  15244. if ac_fn_c_try_compile "$LINENO"; then :
  15245. have_gcc_sse2=yes
  15246. fi
  15247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15249. $as_echo "$have_gcc_sse2" >&6; }
  15250. CFLAGS="$save_CFLAGS"
  15251. if test x$have_gcc_sse2 = xyes; then
  15252. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15253. SUMMARY_math="${SUMMARY_math} sse2"
  15254. fi
  15255. fi
  15256. # Check whether --enable-sse3 was given.
  15257. if test "${enable_sse3+set}" = set; then :
  15258. enableval=$enable_sse3;
  15259. else
  15260. enable_sse3=$default_ssemath
  15261. fi
  15262. if test x$enable_sse3 = xyes; then
  15263. save_CFLAGS="$CFLAGS"
  15264. have_gcc_sse3=no
  15265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15266. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15267. sse3_CFLAGS="-msse3"
  15268. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15270. /* end confdefs.h. */
  15271. #ifdef __MINGW32__
  15272. #include <_mingw.h>
  15273. #ifdef __MINGW64_VERSION_MAJOR
  15274. #include <intrin.h>
  15275. #else
  15276. #include <pmmintrin.h>
  15277. #endif
  15278. #else
  15279. #include <pmmintrin.h>
  15280. #endif
  15281. #ifndef __SSE2__
  15282. #error Assembler CPP flag not enabled
  15283. #endif
  15284. int
  15285. main ()
  15286. {
  15287. ;
  15288. return 0;
  15289. }
  15290. _ACEOF
  15291. if ac_fn_c_try_compile "$LINENO"; then :
  15292. have_gcc_sse3=yes
  15293. fi
  15294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15296. $as_echo "$have_gcc_sse3" >&6; }
  15297. CFLAGS="$save_CFLAGS"
  15298. if test x$have_gcc_sse3 = xyes; then
  15299. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15300. SUMMARY_math="${SUMMARY_math} sse3"
  15301. fi
  15302. fi
  15303. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15304. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15305. have_immintrin_h_hdr=yes
  15306. else
  15307. have_immintrin_h_hdr=no
  15308. fi
  15309. if test x$have_immintrin_h_hdr = xyes; then
  15310. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15311. fi
  15312. # Check whether --enable-altivec was given.
  15313. if test "${enable_altivec+set}" = set; then :
  15314. enableval=$enable_altivec;
  15315. else
  15316. enable_altivec=yes
  15317. fi
  15318. if test x$enable_altivec = xyes; then
  15319. save_CFLAGS="$CFLAGS"
  15320. have_gcc_altivec=no
  15321. have_altivec_h_hdr=no
  15322. altivec_CFLAGS="-maltivec"
  15323. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15325. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15327. /* end confdefs.h. */
  15328. #include <altivec.h>
  15329. vector unsigned int vzero() {
  15330. return vec_splat_u32(0);
  15331. }
  15332. int
  15333. main ()
  15334. {
  15335. ;
  15336. return 0;
  15337. }
  15338. _ACEOF
  15339. if ac_fn_c_try_compile "$LINENO"; then :
  15340. have_gcc_altivec=yes
  15341. have_altivec_h_hdr=yes
  15342. fi
  15343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15345. $as_echo "$have_gcc_altivec" >&6; }
  15346. if test x$have_gcc_altivec = xno; then
  15347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15348. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15350. /* end confdefs.h. */
  15351. vector unsigned int vzero() {
  15352. return vec_splat_u32(0);
  15353. }
  15354. int
  15355. main ()
  15356. {
  15357. ;
  15358. return 0;
  15359. }
  15360. _ACEOF
  15361. if ac_fn_c_try_compile "$LINENO"; then :
  15362. have_gcc_altivec=yes
  15363. fi
  15364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15366. $as_echo "$have_gcc_altivec" >&6; }
  15367. fi
  15368. if test x$have_gcc_altivec = xno; then
  15369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15370. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15371. altivec_CFLAGS="-faltivec"
  15372. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15374. /* end confdefs.h. */
  15375. #include <altivec.h>
  15376. vector unsigned int vzero() {
  15377. return vec_splat_u32(0);
  15378. }
  15379. int
  15380. main ()
  15381. {
  15382. ;
  15383. return 0;
  15384. }
  15385. _ACEOF
  15386. if ac_fn_c_try_compile "$LINENO"; then :
  15387. have_gcc_altivec=yes
  15388. have_altivec_h_hdr=yes
  15389. fi
  15390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15392. $as_echo "$have_gcc_altivec" >&6; }
  15393. fi
  15394. if test x$have_gcc_altivec = xno; then
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15396. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15398. /* end confdefs.h. */
  15399. vector unsigned int vzero() {
  15400. return vec_splat_u32(0);
  15401. }
  15402. int
  15403. main ()
  15404. {
  15405. ;
  15406. return 0;
  15407. }
  15408. _ACEOF
  15409. if ac_fn_c_try_compile "$LINENO"; then :
  15410. have_gcc_altivec=yes
  15411. fi
  15412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15414. $as_echo "$have_gcc_altivec" >&6; }
  15415. fi
  15416. CFLAGS="$save_CFLAGS"
  15417. if test x$have_gcc_altivec = xyes; then
  15418. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15419. if test x$have_altivec_h_hdr = xyes; then
  15420. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15421. fi
  15422. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15423. SUMMARY_math="${SUMMARY_math} altivec"
  15424. fi
  15425. fi
  15426. fi
  15427. CheckOSS()
  15428. {
  15429. # Check whether --enable-oss was given.
  15430. if test "${enable_oss+set}" = set; then :
  15431. enableval=$enable_oss;
  15432. else
  15433. enable_oss=maybe
  15434. fi
  15435. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15436. # use sndio instead. So on there, we default to disabled. You can force
  15437. # it on if you really want, though.
  15438. if test x$enable_oss = xmaybe; then
  15439. enable_oss=yes
  15440. case "$host" in
  15441. *-*-openbsd*)
  15442. enable_oss=no;;
  15443. esac
  15444. fi
  15445. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15447. $as_echo_n "checking for OSS audio support... " >&6; }
  15448. have_oss=no
  15449. if test x$have_oss != xyes; then
  15450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15451. /* end confdefs.h. */
  15452. #include <sys/soundcard.h>
  15453. int
  15454. main ()
  15455. {
  15456. int arg = SNDCTL_DSP_SETFRAGMENT;
  15457. ;
  15458. return 0;
  15459. }
  15460. _ACEOF
  15461. if ac_fn_c_try_compile "$LINENO"; then :
  15462. have_oss=yes
  15463. fi
  15464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15465. fi
  15466. if test x$have_oss != xyes; then
  15467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15468. /* end confdefs.h. */
  15469. #include <soundcard.h>
  15470. int
  15471. main ()
  15472. {
  15473. int arg = SNDCTL_DSP_SETFRAGMENT;
  15474. ;
  15475. return 0;
  15476. }
  15477. _ACEOF
  15478. if ac_fn_c_try_compile "$LINENO"; then :
  15479. have_oss=yes
  15480. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15481. fi
  15482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15483. fi
  15484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15485. $as_echo "$have_oss" >&6; }
  15486. if test x$have_oss = xyes; then
  15487. SUMMARY_audio="${SUMMARY_audio} oss"
  15488. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15489. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15490. have_audio=yes
  15491. # We may need to link with ossaudio emulation library
  15492. case "$host" in
  15493. *-*-openbsd*|*-*-netbsd*)
  15494. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15495. esac
  15496. fi
  15497. fi
  15498. }
  15499. CheckALSA()
  15500. {
  15501. # Check whether --enable-alsa was given.
  15502. if test "${enable_alsa+set}" = set; then :
  15503. enableval=$enable_alsa;
  15504. else
  15505. enable_alsa=yes
  15506. fi
  15507. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15508. alsa_save_CFLAGS="$CFLAGS"
  15509. alsa_save_LDFLAGS="$LDFLAGS"
  15510. alsa_save_LIBS="$LIBS"
  15511. alsa_found=yes
  15512. # Check whether --with-alsa-prefix was given.
  15513. if test "${with_alsa_prefix+set}" = set; then :
  15514. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15515. else
  15516. alsa_prefix=""
  15517. fi
  15518. # Check whether --with-alsa-inc-prefix was given.
  15519. if test "${with_alsa_inc_prefix+set}" = set; then :
  15520. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15521. else
  15522. alsa_inc_prefix=""
  15523. fi
  15524. # Check whether --enable-alsatest was given.
  15525. if test "${enable_alsatest+set}" = set; then :
  15526. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15527. else
  15528. enable_alsatest=yes
  15529. fi
  15530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15531. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15532. if test "$alsa_inc_prefix" != "" ; then
  15533. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15534. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15535. fi
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15537. $as_echo "$ALSA_CFLAGS" >&6; }
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15539. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15540. if test "$alsa_prefix" != "" ; then
  15541. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15542. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15543. fi
  15544. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15545. LIBS=`echo $LIBS | sed 's/-lm//'`
  15546. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15547. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15548. LIBS=`echo $LIBS | sed 's/ //'`
  15549. LIBS="$ALSA_LIBS $LIBS"
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15551. $as_echo "$ALSA_LIBS" >&6; }
  15552. min_alsa_version=1.0.11
  15553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15554. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15555. no_alsa=""
  15556. alsa_min_major_version=`echo $min_alsa_version | \
  15557. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15558. alsa_min_minor_version=`echo $min_alsa_version | \
  15559. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15560. alsa_min_micro_version=`echo $min_alsa_version | \
  15561. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15562. ac_ext=c
  15563. ac_cpp='$CPP $CPPFLAGS'
  15564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15568. /* end confdefs.h. */
  15569. #include <alsa/asoundlib.h>
  15570. int
  15571. main ()
  15572. {
  15573. /* ensure backward compatibility */
  15574. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15575. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15576. #endif
  15577. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15578. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15579. #endif
  15580. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15581. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15582. #endif
  15583. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15584. exit(0);
  15585. # else
  15586. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15587. # error not present
  15588. # endif
  15589. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15590. exit(0);
  15591. # else
  15592. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15593. # error not present
  15594. # endif
  15595. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15596. # error not present
  15597. # endif
  15598. # endif
  15599. # endif
  15600. exit(0);
  15601. ;
  15602. return 0;
  15603. }
  15604. _ACEOF
  15605. if ac_fn_c_try_compile "$LINENO"; then :
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15607. $as_echo "found." >&6; }
  15608. else
  15609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15610. $as_echo "not present." >&6; }
  15611. alsa_found=no
  15612. fi
  15613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15614. ac_ext=c
  15615. ac_cpp='$CPP $CPPFLAGS'
  15616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15619. if test "x$enable_alsatest" = "xyes"; then
  15620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15621. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15622. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15623. $as_echo_n "(cached) " >&6
  15624. else
  15625. ac_check_lib_save_LIBS=$LIBS
  15626. LIBS="-lasound $LIBS"
  15627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15628. /* end confdefs.h. */
  15629. /* Override any GCC internal prototype to avoid an error.
  15630. Use char because int might match the return type of a GCC
  15631. builtin and then its argument prototype would still apply. */
  15632. #ifdef __cplusplus
  15633. extern "C"
  15634. #endif
  15635. char snd_ctl_open ();
  15636. int
  15637. main ()
  15638. {
  15639. return snd_ctl_open ();
  15640. ;
  15641. return 0;
  15642. }
  15643. _ACEOF
  15644. if ac_fn_c_try_link "$LINENO"; then :
  15645. ac_cv_lib_asound_snd_ctl_open=yes
  15646. else
  15647. ac_cv_lib_asound_snd_ctl_open=no
  15648. fi
  15649. rm -f core conftest.err conftest.$ac_objext \
  15650. conftest$ac_exeext conftest.$ac_ext
  15651. LIBS=$ac_check_lib_save_LIBS
  15652. fi
  15653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15654. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15655. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15656. cat >>confdefs.h <<_ACEOF
  15657. #define HAVE_LIBASOUND 1
  15658. _ACEOF
  15659. LIBS="-lasound $LIBS"
  15660. else
  15661. alsa_found=no
  15662. fi
  15663. fi
  15664. if test "x$alsa_found" = "xyes" ; then
  15665. have_alsa=yes
  15666. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15667. LIBS=`echo $LIBS | sed 's/ //'`
  15668. LIBS="-lasound $LIBS"
  15669. fi
  15670. if test "x$alsa_found" = "xno" ; then
  15671. have_alsa=no
  15672. CFLAGS="$alsa_save_CFLAGS"
  15673. LDFLAGS="$alsa_save_LDFLAGS"
  15674. LIBS="$alsa_save_LIBS"
  15675. ALSA_CFLAGS=""
  15676. ALSA_LIBS=""
  15677. fi
  15678. # Restore all flags from before the ALSA detection runs
  15679. CFLAGS="$alsa_save_CFLAGS"
  15680. LDFLAGS="$alsa_save_LDFLAGS"
  15681. LIBS="$alsa_save_LIBS"
  15682. if test x$have_alsa = xyes; then
  15683. # Check whether --enable-alsa-shared was given.
  15684. if test "${enable_alsa_shared+set}" = set; then :
  15685. enableval=$enable_alsa_shared;
  15686. else
  15687. enable_alsa_shared=yes
  15688. fi
  15689. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15690. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15691. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15692. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15693. if test x$have_loadso != xyes && \
  15694. test x$enable_alsa_shared = xyes; then
  15695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15696. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15697. fi
  15698. if test x$have_loadso = xyes && \
  15699. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15700. echo "-- dynamic libasound -> $alsa_lib"
  15701. cat >>confdefs.h <<_ACEOF
  15702. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15703. _ACEOF
  15704. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15705. else
  15706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15707. SUMMARY_audio="${SUMMARY_audio} alsa"
  15708. fi
  15709. have_audio=yes
  15710. fi
  15711. fi
  15712. }
  15713. CheckJACK()
  15714. {
  15715. # Check whether --enable-jack was given.
  15716. if test "${enable_jack+set}" = set; then :
  15717. enableval=$enable_jack;
  15718. else
  15719. enable_jack=yes
  15720. fi
  15721. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15722. pkg_failed=no
  15723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15724. $as_echo_n "checking for JACK... " >&6; }
  15725. if test -n "$JACK_CFLAGS"; then
  15726. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15727. elif test -n "$PKG_CONFIG"; then
  15728. if test -n "$PKG_CONFIG" && \
  15729. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15730. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15731. ac_status=$?
  15732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15733. test $ac_status = 0; }; then
  15734. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15735. else
  15736. pkg_failed=yes
  15737. fi
  15738. else
  15739. pkg_failed=untried
  15740. fi
  15741. if test -n "$JACK_LIBS"; then
  15742. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15743. elif test -n "$PKG_CONFIG"; then
  15744. if test -n "$PKG_CONFIG" && \
  15745. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15746. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15747. ac_status=$?
  15748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15749. test $ac_status = 0; }; then
  15750. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15751. else
  15752. pkg_failed=yes
  15753. fi
  15754. else
  15755. pkg_failed=untried
  15756. fi
  15757. if test $pkg_failed = yes; then
  15758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15759. $as_echo "no" >&6; }
  15760. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15761. _pkg_short_errors_supported=yes
  15762. else
  15763. _pkg_short_errors_supported=no
  15764. fi
  15765. if test $_pkg_short_errors_supported = yes; then
  15766. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15767. else
  15768. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15769. fi
  15770. # Put the nasty error message in config.log where it belongs
  15771. echo "$JACK_PKG_ERRORS" >&5
  15772. audio_jack=no
  15773. elif test $pkg_failed = untried; then
  15774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15775. $as_echo "no" >&6; }
  15776. audio_jack=no
  15777. else
  15778. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15779. JACK_LIBS=$pkg_cv_JACK_LIBS
  15780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15781. $as_echo "yes" >&6; }
  15782. audio_jack=yes
  15783. fi
  15784. if test x$audio_jack = xyes; then
  15785. # Check whether --enable-jack-shared was given.
  15786. if test "${enable_jack_shared+set}" = set; then :
  15787. enableval=$enable_jack_shared;
  15788. else
  15789. enable_jack_shared=yes
  15790. fi
  15791. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15792. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15793. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15794. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15795. if test x$have_loadso != xyes && \
  15796. test x$enable_jack_shared = xyes; then
  15797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15798. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15799. fi
  15800. if test x$have_loadso = xyes && \
  15801. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15802. echo "-- dynamic libjack -> $jack_lib"
  15803. cat >>confdefs.h <<_ACEOF
  15804. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15805. _ACEOF
  15806. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15807. case "$host" in
  15808. # On Solaris, jack must be linked deferred explicitly
  15809. # to prevent undefined symbol failures.
  15810. *-*-solaris*)
  15811. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15812. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15813. esac
  15814. else
  15815. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15816. SUMMARY_audio="${SUMMARY_audio} jack"
  15817. fi
  15818. have_audio=yes
  15819. fi
  15820. fi
  15821. }
  15822. CheckESD()
  15823. {
  15824. # Check whether --enable-esd was given.
  15825. if test "${enable_esd+set}" = set; then :
  15826. enableval=$enable_esd;
  15827. else
  15828. enable_esd=yes
  15829. fi
  15830. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15831. # Check whether --with-esd-prefix was given.
  15832. if test "${with_esd_prefix+set}" = set; then :
  15833. withval=$with_esd_prefix; esd_prefix="$withval"
  15834. else
  15835. esd_prefix=""
  15836. fi
  15837. # Check whether --with-esd-exec-prefix was given.
  15838. if test "${with_esd_exec_prefix+set}" = set; then :
  15839. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15840. else
  15841. esd_exec_prefix=""
  15842. fi
  15843. # Check whether --enable-esdtest was given.
  15844. if test "${enable_esdtest+set}" = set; then :
  15845. enableval=$enable_esdtest;
  15846. else
  15847. enable_esdtest=yes
  15848. fi
  15849. if test x$esd_exec_prefix != x ; then
  15850. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15851. if test x${ESD_CONFIG+set} != xset ; then
  15852. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15853. fi
  15854. fi
  15855. if test x$esd_prefix != x ; then
  15856. esd_args="$esd_args --prefix=$esd_prefix"
  15857. if test x${ESD_CONFIG+set} != xset ; then
  15858. ESD_CONFIG=$esd_prefix/bin/esd-config
  15859. fi
  15860. fi
  15861. # Extract the first word of "esd-config", so it can be a program name with args.
  15862. set dummy esd-config; ac_word=$2
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15864. $as_echo_n "checking for $ac_word... " >&6; }
  15865. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15866. $as_echo_n "(cached) " >&6
  15867. else
  15868. case $ESD_CONFIG in
  15869. [\\/]* | ?:[\\/]*)
  15870. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15871. ;;
  15872. *)
  15873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15874. for as_dir in $PATH
  15875. do
  15876. IFS=$as_save_IFS
  15877. test -z "$as_dir" && as_dir=.
  15878. for ac_exec_ext in '' $ac_executable_extensions; do
  15879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15880. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15882. break 2
  15883. fi
  15884. done
  15885. done
  15886. IFS=$as_save_IFS
  15887. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15888. ;;
  15889. esac
  15890. fi
  15891. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15892. if test -n "$ESD_CONFIG"; then
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15894. $as_echo "$ESD_CONFIG" >&6; }
  15895. else
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15897. $as_echo "no" >&6; }
  15898. fi
  15899. min_esd_version=0.2.8
  15900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15901. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15902. no_esd=""
  15903. if test "$ESD_CONFIG" = "no" ; then
  15904. no_esd=yes
  15905. else
  15906. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15907. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15908. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15909. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15910. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15911. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15912. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15913. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15914. if test "x$enable_esdtest" = "xyes" ; then
  15915. ac_save_CFLAGS="$CFLAGS"
  15916. ac_save_LIBS="$LIBS"
  15917. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15918. LIBS="$LIBS $ESD_LIBS"
  15919. rm -f conf.esdtest
  15920. if test "$cross_compiling" = yes; then :
  15921. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15922. else
  15923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15924. /* end confdefs.h. */
  15925. #include <stdio.h>
  15926. #include <stdlib.h>
  15927. #include <string.h>
  15928. #include <esd.h>
  15929. char*
  15930. my_strdup (char *str)
  15931. {
  15932. char *new_str;
  15933. if (str)
  15934. {
  15935. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15936. strcpy (new_str, str);
  15937. }
  15938. else
  15939. new_str = NULL;
  15940. return new_str;
  15941. }
  15942. int main ()
  15943. {
  15944. int major, minor, micro;
  15945. char *tmp_version;
  15946. system ("touch conf.esdtest");
  15947. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15948. tmp_version = my_strdup("$min_esd_version");
  15949. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15950. printf("%s, bad version string\n", "$min_esd_version");
  15951. exit(1);
  15952. }
  15953. if (($esd_major_version > major) ||
  15954. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15955. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15956. {
  15957. return 0;
  15958. }
  15959. else
  15960. {
  15961. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15962. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15963. printf("*** best to upgrade to the required version.\n");
  15964. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15965. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15966. printf("*** config.cache before re-running configure\n");
  15967. return 1;
  15968. }
  15969. }
  15970. _ACEOF
  15971. if ac_fn_c_try_run "$LINENO"; then :
  15972. else
  15973. no_esd=yes
  15974. fi
  15975. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15976. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15977. fi
  15978. CFLAGS="$ac_save_CFLAGS"
  15979. LIBS="$ac_save_LIBS"
  15980. fi
  15981. fi
  15982. if test "x$no_esd" = x ; then
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15984. $as_echo "yes" >&6; }
  15985. have_esd=yes
  15986. else
  15987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15988. $as_echo "no" >&6; }
  15989. if test "$ESD_CONFIG" = "no" ; then
  15990. echo "*** The esd-config script installed by ESD could not be found"
  15991. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15992. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15993. echo "*** full path to esd-config."
  15994. else
  15995. if test -f conf.esdtest ; then
  15996. :
  15997. else
  15998. echo "*** Could not run ESD test program, checking why..."
  15999. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16000. LIBS="$LIBS $ESD_LIBS"
  16001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16002. /* end confdefs.h. */
  16003. #include <stdio.h>
  16004. #include <esd.h>
  16005. int
  16006. main ()
  16007. {
  16008. return 0;
  16009. ;
  16010. return 0;
  16011. }
  16012. _ACEOF
  16013. if ac_fn_c_try_link "$LINENO"; then :
  16014. echo "*** The test program compiled, but did not run. This usually means"
  16015. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16016. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16017. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16018. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16019. echo "*** is required on your system"
  16020. echo "***"
  16021. echo "*** If you have an old version installed, it is best to remove it, although"
  16022. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16023. else
  16024. echo "*** The test program failed to compile or link. See the file config.log for the"
  16025. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16026. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16027. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16028. fi
  16029. rm -f core conftest.err conftest.$ac_objext \
  16030. conftest$ac_exeext conftest.$ac_ext
  16031. CFLAGS="$ac_save_CFLAGS"
  16032. LIBS="$ac_save_LIBS"
  16033. fi
  16034. fi
  16035. ESD_CFLAGS=""
  16036. ESD_LIBS=""
  16037. have_esd=no
  16038. fi
  16039. rm -f conf.esdtest
  16040. if test x$have_esd = xyes; then
  16041. # Check whether --enable-esd-shared was given.
  16042. if test "${enable_esd_shared+set}" = set; then :
  16043. enableval=$enable_esd_shared;
  16044. else
  16045. enable_esd_shared=yes
  16046. fi
  16047. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16048. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16049. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16050. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16051. if test x$have_loadso != xyes && \
  16052. test x$enable_esd_shared = xyes; then
  16053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16054. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16055. fi
  16056. if test x$have_loadso = xyes && \
  16057. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16058. echo "-- dynamic libesd -> $esd_lib"
  16059. cat >>confdefs.h <<_ACEOF
  16060. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16061. _ACEOF
  16062. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16063. else
  16064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16065. SUMMARY_audio="${SUMMARY_audio} esd"
  16066. fi
  16067. have_audio=yes
  16068. fi
  16069. fi
  16070. }
  16071. CheckPulseAudio()
  16072. {
  16073. # Check whether --enable-pulseaudio was given.
  16074. if test "${enable_pulseaudio+set}" = set; then :
  16075. enableval=$enable_pulseaudio;
  16076. else
  16077. enable_pulseaudio=yes
  16078. fi
  16079. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16080. pkg_failed=no
  16081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16082. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16083. if test -n "$PULSEAUDIO_CFLAGS"; then
  16084. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16085. elif test -n "$PKG_CONFIG"; then
  16086. if test -n "$PKG_CONFIG" && \
  16087. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16088. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16089. ac_status=$?
  16090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16091. test $ac_status = 0; }; then
  16092. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16093. else
  16094. pkg_failed=yes
  16095. fi
  16096. else
  16097. pkg_failed=untried
  16098. fi
  16099. if test -n "$PULSEAUDIO_LIBS"; then
  16100. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16101. elif test -n "$PKG_CONFIG"; then
  16102. if test -n "$PKG_CONFIG" && \
  16103. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16104. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16105. ac_status=$?
  16106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16107. test $ac_status = 0; }; then
  16108. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16109. else
  16110. pkg_failed=yes
  16111. fi
  16112. else
  16113. pkg_failed=untried
  16114. fi
  16115. if test $pkg_failed = yes; then
  16116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16117. $as_echo "no" >&6; }
  16118. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16119. _pkg_short_errors_supported=yes
  16120. else
  16121. _pkg_short_errors_supported=no
  16122. fi
  16123. if test $_pkg_short_errors_supported = yes; then
  16124. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16125. else
  16126. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16127. fi
  16128. # Put the nasty error message in config.log where it belongs
  16129. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16130. audio_pulseaudio=no
  16131. elif test $pkg_failed = untried; then
  16132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16133. $as_echo "no" >&6; }
  16134. audio_pulseaudio=no
  16135. else
  16136. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16137. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16139. $as_echo "yes" >&6; }
  16140. audio_pulseaudio=yes
  16141. fi
  16142. if test x$audio_pulseaudio = xyes; then
  16143. # Check whether --enable-pulseaudio-shared was given.
  16144. if test "${enable_pulseaudio_shared+set}" = set; then :
  16145. enableval=$enable_pulseaudio_shared;
  16146. else
  16147. enable_pulseaudio_shared=yes
  16148. fi
  16149. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16150. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16151. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16152. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16153. if test x$have_loadso != xyes && \
  16154. test x$enable_pulseaudio_shared = xyes; then
  16155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16156. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16157. fi
  16158. if test x$have_loadso = xyes && \
  16159. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16160. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16161. cat >>confdefs.h <<_ACEOF
  16162. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16163. _ACEOF
  16164. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16165. case "$host" in
  16166. # On Solaris, pulseaudio must be linked deferred explicitly
  16167. # to prevent undefined symbol failures.
  16168. *-*-solaris*)
  16169. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16170. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16171. esac
  16172. else
  16173. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16174. SUMMARY_audio="${SUMMARY_audio} pulse"
  16175. fi
  16176. have_audio=yes
  16177. fi
  16178. fi
  16179. }
  16180. CheckARTSC()
  16181. {
  16182. # Check whether --enable-arts was given.
  16183. if test "${enable_arts+set}" = set; then :
  16184. enableval=$enable_arts;
  16185. else
  16186. enable_arts=yes
  16187. fi
  16188. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16189. # Extract the first word of "artsc-config", so it can be a program name with args.
  16190. set dummy artsc-config; ac_word=$2
  16191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16192. $as_echo_n "checking for $ac_word... " >&6; }
  16193. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16194. $as_echo_n "(cached) " >&6
  16195. else
  16196. case $ARTSCONFIG in
  16197. [\\/]* | ?:[\\/]*)
  16198. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16199. ;;
  16200. *)
  16201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16202. for as_dir in $PATH
  16203. do
  16204. IFS=$as_save_IFS
  16205. test -z "$as_dir" && as_dir=.
  16206. for ac_exec_ext in '' $ac_executable_extensions; do
  16207. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16208. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16210. break 2
  16211. fi
  16212. done
  16213. done
  16214. IFS=$as_save_IFS
  16215. ;;
  16216. esac
  16217. fi
  16218. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16219. if test -n "$ARTSCONFIG"; then
  16220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16221. $as_echo "$ARTSCONFIG" >&6; }
  16222. else
  16223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16224. $as_echo "no" >&6; }
  16225. fi
  16226. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16227. : # arts isn't installed
  16228. else
  16229. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16230. ARTS_LIBS=`$ARTSCONFIG --libs`
  16231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16232. $as_echo_n "checking for aRts development environment... " >&6; }
  16233. audio_arts=no
  16234. save_CFLAGS="$CFLAGS"
  16235. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16237. /* end confdefs.h. */
  16238. #include <artsc.h>
  16239. int
  16240. main ()
  16241. {
  16242. arts_stream_t stream;
  16243. ;
  16244. return 0;
  16245. }
  16246. _ACEOF
  16247. if ac_fn_c_try_compile "$LINENO"; then :
  16248. audio_arts=yes
  16249. fi
  16250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16251. CFLAGS="$save_CFLAGS"
  16252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16253. $as_echo "$audio_arts" >&6; }
  16254. if test x$audio_arts = xyes; then
  16255. # Check whether --enable-arts-shared was given.
  16256. if test "${enable_arts_shared+set}" = set; then :
  16257. enableval=$enable_arts_shared;
  16258. else
  16259. enable_arts_shared=yes
  16260. fi
  16261. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16262. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16263. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16264. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16265. if test x$have_loadso != xyes && \
  16266. test x$enable_arts_shared = xyes; then
  16267. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16268. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16269. fi
  16270. if test x$have_loadso = xyes && \
  16271. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16272. echo "-- dynamic libartsc -> $arts_lib"
  16273. cat >>confdefs.h <<_ACEOF
  16274. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16275. _ACEOF
  16276. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16277. else
  16278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16279. SUMMARY_audio="${SUMMARY_audio} arts"
  16280. fi
  16281. have_audio=yes
  16282. fi
  16283. fi
  16284. fi
  16285. }
  16286. CheckNAS()
  16287. {
  16288. # Check whether --enable-nas was given.
  16289. if test "${enable_nas+set}" = set; then :
  16290. enableval=$enable_nas;
  16291. else
  16292. enable_nas=yes
  16293. fi
  16294. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16295. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16296. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16297. have_nas_hdr=yes
  16298. fi
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16300. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16301. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16302. $as_echo_n "(cached) " >&6
  16303. else
  16304. ac_check_lib_save_LIBS=$LIBS
  16305. LIBS="-laudio $LIBS"
  16306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16307. /* end confdefs.h. */
  16308. /* Override any GCC internal prototype to avoid an error.
  16309. Use char because int might match the return type of a GCC
  16310. builtin and then its argument prototype would still apply. */
  16311. #ifdef __cplusplus
  16312. extern "C"
  16313. #endif
  16314. char AuOpenServer ();
  16315. int
  16316. main ()
  16317. {
  16318. return AuOpenServer ();
  16319. ;
  16320. return 0;
  16321. }
  16322. _ACEOF
  16323. if ac_fn_c_try_link "$LINENO"; then :
  16324. ac_cv_lib_audio_AuOpenServer=yes
  16325. else
  16326. ac_cv_lib_audio_AuOpenServer=no
  16327. fi
  16328. rm -f core conftest.err conftest.$ac_objext \
  16329. conftest$ac_exeext conftest.$ac_ext
  16330. LIBS=$ac_check_lib_save_LIBS
  16331. fi
  16332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16333. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16334. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16335. have_nas_lib=yes
  16336. fi
  16337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16338. $as_echo_n "checking for NAS audio support... " >&6; }
  16339. have_nas=no
  16340. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16341. have_nas=yes
  16342. NAS_LIBS="-laudio"
  16343. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16344. have_nas=yes
  16345. NAS_CFLAGS="-I/usr/X11R6/include/"
  16346. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16347. fi
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16349. $as_echo "$have_nas" >&6; }
  16350. if test x$have_nas = xyes; then
  16351. # Check whether --enable-nas-shared was given.
  16352. if test "${enable_nas_shared+set}" = set; then :
  16353. enableval=$enable_nas_shared;
  16354. else
  16355. enable_nas_shared=yes
  16356. fi
  16357. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16358. if test x$have_loadso != xyes && \
  16359. test x$enable_nas_shared = xyes; then
  16360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16361. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16362. fi
  16363. if test x$have_loadso = xyes && \
  16364. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16365. echo "-- dynamic libaudio -> $nas_lib"
  16366. cat >>confdefs.h <<_ACEOF
  16367. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16368. _ACEOF
  16369. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16370. else
  16371. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16372. SUMMARY_audio="${SUMMARY_audio} nas"
  16373. fi
  16374. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16375. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16376. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16377. have_audio=yes
  16378. fi
  16379. fi
  16380. }
  16381. CheckSNDIO()
  16382. {
  16383. # Check whether --enable-sndio was given.
  16384. if test "${enable_sndio+set}" = set; then :
  16385. enableval=$enable_sndio;
  16386. else
  16387. enable_sndio=yes
  16388. fi
  16389. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16390. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16391. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16392. have_sndio_hdr=yes
  16393. fi
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16395. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16396. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16397. $as_echo_n "(cached) " >&6
  16398. else
  16399. ac_check_lib_save_LIBS=$LIBS
  16400. LIBS="-lsndio $LIBS"
  16401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16402. /* end confdefs.h. */
  16403. /* Override any GCC internal prototype to avoid an error.
  16404. Use char because int might match the return type of a GCC
  16405. builtin and then its argument prototype would still apply. */
  16406. #ifdef __cplusplus
  16407. extern "C"
  16408. #endif
  16409. char sio_open ();
  16410. int
  16411. main ()
  16412. {
  16413. return sio_open ();
  16414. ;
  16415. return 0;
  16416. }
  16417. _ACEOF
  16418. if ac_fn_c_try_link "$LINENO"; then :
  16419. ac_cv_lib_sndio_sio_open=yes
  16420. else
  16421. ac_cv_lib_sndio_sio_open=no
  16422. fi
  16423. rm -f core conftest.err conftest.$ac_objext \
  16424. conftest$ac_exeext conftest.$ac_ext
  16425. LIBS=$ac_check_lib_save_LIBS
  16426. fi
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16428. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16429. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16430. have_sndio_lib=yes
  16431. fi
  16432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16433. $as_echo_n "checking for sndio audio support... " >&6; }
  16434. have_sndio=no
  16435. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16436. have_sndio=yes
  16437. SNDIO_LIBS="-lsndio"
  16438. fi
  16439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16440. $as_echo "$have_sndio" >&6; }
  16441. if test x$have_sndio = xyes; then
  16442. # Check whether --enable-sndio-shared was given.
  16443. if test "${enable_sndio_shared+set}" = set; then :
  16444. enableval=$enable_sndio_shared;
  16445. else
  16446. enable_sndio_shared=yes
  16447. fi
  16448. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16449. if test x$have_loadso != xyes && \
  16450. test x$enable_sndio_shared = xyes; then
  16451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16452. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16453. fi
  16454. if test x$have_loadso = xyes && \
  16455. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16456. echo "-- dynamic libsndio -> $sndio_lib"
  16457. cat >>confdefs.h <<_ACEOF
  16458. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16459. _ACEOF
  16460. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16461. else
  16462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16463. SUMMARY_audio="${SUMMARY_audio} sndio"
  16464. fi
  16465. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16466. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16467. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16468. have_audio=yes
  16469. fi
  16470. fi
  16471. }
  16472. CheckFusionSound()
  16473. {
  16474. # Check whether --enable-fusionsound was given.
  16475. if test "${enable_fusionsound+set}" = set; then :
  16476. enableval=$enable_fusionsound;
  16477. else
  16478. enable_fusionsound=no
  16479. fi
  16480. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16481. pkg_failed=no
  16482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16483. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16484. if test -n "$FUSIONSOUND_CFLAGS"; then
  16485. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16486. elif test -n "$PKG_CONFIG"; then
  16487. if test -n "$PKG_CONFIG" && \
  16488. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16489. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16490. ac_status=$?
  16491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16492. test $ac_status = 0; }; then
  16493. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16494. else
  16495. pkg_failed=yes
  16496. fi
  16497. else
  16498. pkg_failed=untried
  16499. fi
  16500. if test -n "$FUSIONSOUND_LIBS"; then
  16501. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16502. elif test -n "$PKG_CONFIG"; then
  16503. if test -n "$PKG_CONFIG" && \
  16504. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16505. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16506. ac_status=$?
  16507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16508. test $ac_status = 0; }; then
  16509. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16510. else
  16511. pkg_failed=yes
  16512. fi
  16513. else
  16514. pkg_failed=untried
  16515. fi
  16516. if test $pkg_failed = yes; then
  16517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16518. $as_echo "no" >&6; }
  16519. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16520. _pkg_short_errors_supported=yes
  16521. else
  16522. _pkg_short_errors_supported=no
  16523. fi
  16524. if test $_pkg_short_errors_supported = yes; then
  16525. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16526. else
  16527. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16528. fi
  16529. # Put the nasty error message in config.log where it belongs
  16530. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16531. fusionsound=no
  16532. elif test $pkg_failed = untried; then
  16533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16534. $as_echo "no" >&6; }
  16535. fusionsound=no
  16536. else
  16537. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16538. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16540. $as_echo "yes" >&6; }
  16541. fusionsound=yes
  16542. fi
  16543. if test x$fusionsound = xyes; then
  16544. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16545. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16546. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16547. # Check whether --enable-fusionsound-shared was given.
  16548. if test "${enable_fusionsound_shared+set}" = set; then :
  16549. enableval=$enable_fusionsound_shared;
  16550. else
  16551. enable_fusionsound_shared=yes
  16552. fi
  16553. fusionsound_shared=no
  16554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16555. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16556. if test x$have_loadso != xyes && \
  16557. test x$enable_fusionsound_shared = xyes; then
  16558. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16559. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16560. fi
  16561. if test x$have_loadso = xyes && \
  16562. test x$enable_fusionsound_shared = xyes; then
  16563. cat >>confdefs.h <<_ACEOF
  16564. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16565. _ACEOF
  16566. fusionsound_shared=yes
  16567. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16568. else
  16569. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16570. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16571. fi
  16572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16573. $as_echo "$fusionsound_shared" >&6; }
  16574. have_audio=yes
  16575. fi
  16576. fi
  16577. }
  16578. CheckDiskAudio()
  16579. {
  16580. # Check whether --enable-diskaudio was given.
  16581. if test "${enable_diskaudio+set}" = set; then :
  16582. enableval=$enable_diskaudio;
  16583. else
  16584. enable_diskaudio=yes
  16585. fi
  16586. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16587. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16588. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16589. SUMMARY_audio="${SUMMARY_audio} disk"
  16590. fi
  16591. }
  16592. CheckDummyAudio()
  16593. {
  16594. # Check whether --enable-dummyaudio was given.
  16595. if test "${enable_dummyaudio+set}" = set; then :
  16596. enableval=$enable_dummyaudio;
  16597. else
  16598. enable_dummyaudio=yes
  16599. fi
  16600. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16601. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16602. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16603. SUMMARY_audio="${SUMMARY_audio} dummy"
  16604. fi
  16605. }
  16606. CheckLibSampleRate()
  16607. {
  16608. # Check whether --enable-libsamplerate was given.
  16609. if test "${enable_libsamplerate+set}" = set; then :
  16610. enableval=$enable_libsamplerate;
  16611. else
  16612. enable_libsamplerate=yes
  16613. fi
  16614. if test x$enable_libsamplerate = xyes; then
  16615. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16616. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16617. have_samplerate_h_hdr=yes
  16618. else
  16619. have_samplerate_h_hdr=no
  16620. fi
  16621. if test x$have_samplerate_h_hdr = xyes; then
  16622. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16623. # Check whether --enable-libsamplerate-shared was given.
  16624. if test "${enable_libsamplerate_shared+set}" = set; then :
  16625. enableval=$enable_libsamplerate_shared;
  16626. else
  16627. enable_libsamplerate_shared=yes
  16628. fi
  16629. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16630. if test x$have_loadso != xyes && \
  16631. test x$enable_libsamplerate_shared = xyes; then
  16632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16633. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16634. fi
  16635. if test x$have_loadso = xyes && \
  16636. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16637. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16638. cat >>confdefs.h <<_ACEOF
  16639. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16640. _ACEOF
  16641. else
  16642. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16643. fi
  16644. fi
  16645. fi
  16646. }
  16647. CheckARM()
  16648. {
  16649. # Check whether --enable-arm-simd was given.
  16650. if test "${enable_arm_simd+set}" = set; then :
  16651. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16652. else
  16653. enable_arm_simd=yes
  16654. fi
  16655. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16656. save_CFLAGS="$CFLAGS"
  16657. have_arm_simd=no
  16658. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16660. $as_echo_n "checking for ARM SIMD... " >&6; }
  16661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16662. /* end confdefs.h. */
  16663. .text
  16664. .arch armv6
  16665. .object_arch armv4
  16666. .arm
  16667. .altmacro
  16668. #ifndef __ARM_EABI__
  16669. #error EABI is required (to be sure that calling conventions are compatible)
  16670. #endif
  16671. pld [r0]
  16672. uqadd8 r0, r0, r0
  16673. _ACEOF
  16674. if ac_fn_c_try_compile "$LINENO"; then :
  16675. have_arm_simd=yes
  16676. fi
  16677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16679. $as_echo "$have_arm_simd" >&6; }
  16680. CFLAGS="$save_CFLAGS"
  16681. if test x$have_arm_simd = xyes; then
  16682. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16683. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16684. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16685. fi
  16686. fi
  16687. }
  16688. CheckNEON()
  16689. {
  16690. # Check whether --enable-arm-neon was given.
  16691. if test "${enable_arm_neon+set}" = set; then :
  16692. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16693. else
  16694. enable_arm_neon=no
  16695. fi
  16696. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16697. save_CFLAGS="$CFLAGS"
  16698. have_arm_neon=no
  16699. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16701. $as_echo_n "checking for ARM NEON... " >&6; }
  16702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16703. /* end confdefs.h. */
  16704. .text
  16705. .fpu neon
  16706. .arch armv7a
  16707. .object_arch armv4
  16708. .eabi_attribute 10, 0
  16709. .arm
  16710. .altmacro
  16711. #ifndef __ARM_EABI__
  16712. #error EABI is required (to be sure that calling conventions are compatible)
  16713. #endif
  16714. pld [r0]
  16715. vmovn.u16 d0, q0
  16716. _ACEOF
  16717. if ac_fn_c_try_compile "$LINENO"; then :
  16718. have_arm_neon=yes
  16719. fi
  16720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16722. $as_echo "$have_arm_neon" >&6; }
  16723. CFLAGS="$save_CFLAGS"
  16724. if test x$have_arm_neon = xyes; then
  16725. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16726. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16727. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16728. fi
  16729. fi
  16730. }
  16731. CheckVisibilityHidden()
  16732. {
  16733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16734. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16735. have_gcc_fvisibility=no
  16736. visibility_CFLAGS="-fvisibility=hidden"
  16737. save_CFLAGS="$CFLAGS"
  16738. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16740. /* end confdefs.h. */
  16741. #if !defined(__GNUC__) || __GNUC__ < 4
  16742. #error SDL only uses visibility attributes in GCC 4 or newer
  16743. #endif
  16744. int
  16745. main ()
  16746. {
  16747. ;
  16748. return 0;
  16749. }
  16750. _ACEOF
  16751. if ac_fn_c_try_compile "$LINENO"; then :
  16752. have_gcc_fvisibility=yes
  16753. fi
  16754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16756. $as_echo "$have_gcc_fvisibility" >&6; }
  16757. CFLAGS="$save_CFLAGS"
  16758. if test x$have_gcc_fvisibility = xyes; then
  16759. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16760. fi
  16761. }
  16762. CheckNoStrictAliasing()
  16763. {
  16764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16765. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16766. have_gcc_no_strict_aliasing=no
  16767. save_CFLAGS="$CFLAGS"
  16768. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16770. /* end confdefs.h. */
  16771. int x = 0;
  16772. int
  16773. main ()
  16774. {
  16775. ;
  16776. return 0;
  16777. }
  16778. _ACEOF
  16779. if ac_fn_c_try_compile "$LINENO"; then :
  16780. have_gcc_no_strict_aliasing=yes
  16781. fi
  16782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16784. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16785. CFLAGS="$save_CFLAGS"
  16786. if test x$have_gcc_no_strict_aliasing = xyes; then
  16787. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16788. fi
  16789. }
  16790. CheckStackBoundary()
  16791. {
  16792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16793. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16794. have_gcc_preferred_stack_boundary=no
  16795. save_CFLAGS="$CFLAGS"
  16796. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16798. /* end confdefs.h. */
  16799. int x = 0;
  16800. int
  16801. main ()
  16802. {
  16803. ;
  16804. return 0;
  16805. }
  16806. _ACEOF
  16807. if ac_fn_c_try_compile "$LINENO"; then :
  16808. have_gcc_preferred_stack_boundary=yes
  16809. fi
  16810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16812. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16813. CFLAGS="$save_CFLAGS"
  16814. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16815. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16816. fi
  16817. }
  16818. CheckDeclarationAfterStatement()
  16819. {
  16820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16821. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16822. have_gcc_declaration_after_statement=no
  16823. save_CFLAGS="$CFLAGS"
  16824. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16826. /* end confdefs.h. */
  16827. int x = 0;
  16828. int
  16829. main ()
  16830. {
  16831. ;
  16832. return 0;
  16833. }
  16834. _ACEOF
  16835. if ac_fn_c_try_compile "$LINENO"; then :
  16836. have_gcc_declaration_after_statement=yes
  16837. fi
  16838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16840. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16841. CFLAGS="$save_CFLAGS"
  16842. if test x$have_gcc_declaration_after_statement = xyes; then
  16843. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16844. fi
  16845. }
  16846. CheckWarnAll()
  16847. {
  16848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16849. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16850. have_gcc_Wall=no
  16851. save_CFLAGS="$CFLAGS"
  16852. CFLAGS="$save_CFLAGS -Wall"
  16853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16854. /* end confdefs.h. */
  16855. int x = 0;
  16856. int
  16857. main ()
  16858. {
  16859. ;
  16860. return 0;
  16861. }
  16862. _ACEOF
  16863. if ac_fn_c_try_compile "$LINENO"; then :
  16864. have_gcc_Wall=yes
  16865. fi
  16866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16868. $as_echo "$have_gcc_Wall" >&6; }
  16869. CFLAGS="$save_CFLAGS"
  16870. if test x$have_gcc_Wall = xyes; then
  16871. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16873. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16874. need_gcc_Wno_multichar=no
  16875. case "$host" in
  16876. *-*-haiku*)
  16877. need_gcc_Wno_multichar=yes
  16878. ;;
  16879. esac
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16881. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16882. if test x$need_gcc_Wno_multichar = xyes; then
  16883. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16884. fi
  16885. fi
  16886. }
  16887. CheckWayland()
  16888. {
  16889. # Check whether --enable-video-wayland was given.
  16890. if test "${enable_video_wayland+set}" = set; then :
  16891. enableval=$enable_video_wayland;
  16892. else
  16893. enable_video_wayland=yes
  16894. fi
  16895. # Check whether --enable-video-wayland-qt-touch was given.
  16896. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16897. enableval=$enable_video_wayland_qt_touch;
  16898. else
  16899. enable_video_wayland_qt_touch=yes
  16900. fi
  16901. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16903. $as_echo_n "checking for Wayland support... " >&6; }
  16904. video_wayland=no
  16905. if test x$video_opengl_egl = xyes && \
  16906. test x$video_opengles_v2 = xyes; then
  16907. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16908. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16909. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16910. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16911. video_wayland=yes
  16912. fi
  16913. fi
  16914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16915. $as_echo "$video_wayland" >&6; }
  16916. if test x$video_wayland = xyes; then
  16917. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16918. if test x$enable_video_wayland_qt_touch = xyes; then
  16919. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16920. fi
  16921. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16922. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16923. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16924. # Check whether --enable-wayland-shared was given.
  16925. if test "${enable_wayland_shared+set}" = set; then :
  16926. enableval=$enable_wayland_shared;
  16927. else
  16928. enable_wayland_shared=maybe
  16929. fi
  16930. case "$host" in
  16931. *)
  16932. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16933. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16934. if test x$wayland_egl_lib = x; then
  16935. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16936. fi
  16937. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16938. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16939. ;;
  16940. esac
  16941. if test x$enable_wayland_shared = xmaybe; then
  16942. enable_wayland_shared=yes
  16943. fi
  16944. if test x$have_loadso != xyes && \
  16945. test x$enable_wayland_shared = xyes; then
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16947. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16948. enable_wayland_shared=no
  16949. fi
  16950. if test x$have_loadso = xyes && \
  16951. test x$enable_wayland_shared = xyes && \
  16952. test x$wayland_client_lib != x && \
  16953. test x$wayland_egl_lib != x && \
  16954. test x$wayland_cursor_lib != x && \
  16955. test x$xkbcommon_lib != x; then
  16956. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16957. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16958. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16959. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16960. cat >>confdefs.h <<_ACEOF
  16961. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16962. _ACEOF
  16963. cat >>confdefs.h <<_ACEOF
  16964. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16965. _ACEOF
  16966. cat >>confdefs.h <<_ACEOF
  16967. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16968. _ACEOF
  16969. cat >>confdefs.h <<_ACEOF
  16970. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16971. _ACEOF
  16972. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16973. else
  16974. enable_wayland_shared=no
  16975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16976. SUMMARY_video="${SUMMARY_video} wayland"
  16977. fi
  16978. have_video=yes
  16979. fi
  16980. fi
  16981. }
  16982. CheckNativeClient()
  16983. {
  16984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16985. /* end confdefs.h. */
  16986. #if !defined(__native_client__)
  16987. #error "NO NACL"
  16988. #endif
  16989. int
  16990. main ()
  16991. {
  16992. ;
  16993. return 0;
  16994. }
  16995. _ACEOF
  16996. if ac_fn_c_try_compile "$LINENO"; then :
  16997. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16998. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16999. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17000. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17001. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17002. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17003. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17004. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17005. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17006. SUMMARY_audio="${SUMMARY_audio} nacl"
  17007. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17008. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17009. fi
  17010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17011. }
  17012. CheckRPI()
  17013. {
  17014. # Check whether --enable-video-rpi was given.
  17015. if test "${enable_video_rpi+set}" = set; then :
  17016. enableval=$enable_video_rpi;
  17017. else
  17018. enable_video_rpi=yes
  17019. fi
  17020. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17021. pkg_failed=no
  17022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17023. $as_echo_n "checking for RPI... " >&6; }
  17024. if test -n "$RPI_CFLAGS"; then
  17025. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17026. elif test -n "$PKG_CONFIG"; then
  17027. if test -n "$PKG_CONFIG" && \
  17028. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17029. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17030. ac_status=$?
  17031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17032. test $ac_status = 0; }; then
  17033. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17034. else
  17035. pkg_failed=yes
  17036. fi
  17037. else
  17038. pkg_failed=untried
  17039. fi
  17040. if test -n "$RPI_LIBS"; then
  17041. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17042. elif test -n "$PKG_CONFIG"; then
  17043. if test -n "$PKG_CONFIG" && \
  17044. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17045. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17046. ac_status=$?
  17047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17048. test $ac_status = 0; }; then
  17049. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17050. else
  17051. pkg_failed=yes
  17052. fi
  17053. else
  17054. pkg_failed=untried
  17055. fi
  17056. if test $pkg_failed = yes; then
  17057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17058. $as_echo "no" >&6; }
  17059. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17060. _pkg_short_errors_supported=yes
  17061. else
  17062. _pkg_short_errors_supported=no
  17063. fi
  17064. if test $_pkg_short_errors_supported = yes; then
  17065. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17066. else
  17067. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17068. fi
  17069. # Put the nasty error message in config.log where it belongs
  17070. echo "$RPI_PKG_ERRORS" >&5
  17071. video_rpi=no
  17072. elif test $pkg_failed = untried; then
  17073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17074. $as_echo "no" >&6; }
  17075. video_rpi=no
  17076. else
  17077. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17078. RPI_LIBS=$pkg_cv_RPI_LIBS
  17079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17080. $as_echo "yes" >&6; }
  17081. video_rpi=yes
  17082. fi
  17083. if test x$video_rpi = xno; then
  17084. if test x$ARCH = xnetbsd; then
  17085. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17086. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17087. else
  17088. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17089. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17090. fi
  17091. fi
  17092. # Save the original compiler flags and libraries
  17093. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17094. # Add the Raspberry Pi compiler flags and libraries
  17095. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17097. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17098. have_video_rpi=no
  17099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17100. /* end confdefs.h. */
  17101. #include <bcm_host.h>
  17102. int
  17103. main ()
  17104. {
  17105. bcm_host_init();
  17106. ;
  17107. return 0;
  17108. }
  17109. _ACEOF
  17110. if ac_fn_c_try_link "$LINENO"; then :
  17111. have_video_rpi=yes
  17112. fi
  17113. rm -f core conftest.err conftest.$ac_objext \
  17114. conftest$ac_exeext conftest.$ac_ext
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17116. $as_echo "$have_video_rpi" >&6; }
  17117. # Restore the compiler flags and libraries
  17118. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17119. if test x$have_video_rpi = xyes; then
  17120. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17121. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17122. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17123. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17124. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17125. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17126. SUMMARY_video="${SUMMARY_video} rpi"
  17127. fi
  17128. fi
  17129. }
  17130. CheckX11()
  17131. {
  17132. # Check whether --enable-video-x11 was given.
  17133. if test "${enable_video_x11+set}" = set; then :
  17134. enableval=$enable_video_x11;
  17135. else
  17136. enable_video_x11=yes
  17137. fi
  17138. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17139. case "$host" in
  17140. *-*-darwin*)
  17141. # This isn't necessary for X11, but fixes GLX detection
  17142. if test "x$x_includes" = xNONE && \
  17143. test "x$x_libraries" = xNONE && \
  17144. test -d /opt/X11/include && \
  17145. test -d /opt/X11/lib; then
  17146. x_includes="/opt/X11/include"
  17147. x_libraries="/opt/X11/lib"
  17148. fi
  17149. ;;
  17150. esac
  17151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17152. $as_echo_n "checking for X... " >&6; }
  17153. # Check whether --with-x was given.
  17154. if test "${with_x+set}" = set; then :
  17155. withval=$with_x;
  17156. fi
  17157. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17158. if test "x$with_x" = xno; then
  17159. # The user explicitly disabled X.
  17160. have_x=disabled
  17161. else
  17162. case $x_includes,$x_libraries in #(
  17163. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17164. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17165. $as_echo_n "(cached) " >&6
  17166. else
  17167. # One or both of the vars are not set, and there is no cached value.
  17168. ac_x_includes=no ac_x_libraries=no
  17169. rm -f -r conftest.dir
  17170. if mkdir conftest.dir; then
  17171. cd conftest.dir
  17172. cat >Imakefile <<'_ACEOF'
  17173. incroot:
  17174. @echo incroot='${INCROOT}'
  17175. usrlibdir:
  17176. @echo usrlibdir='${USRLIBDIR}'
  17177. libdir:
  17178. @echo libdir='${LIBDIR}'
  17179. _ACEOF
  17180. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17181. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17182. for ac_var in incroot usrlibdir libdir; do
  17183. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17184. done
  17185. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17186. for ac_extension in a so sl dylib la dll; do
  17187. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17188. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17189. ac_im_usrlibdir=$ac_im_libdir; break
  17190. fi
  17191. done
  17192. # Screen out bogus values from the imake configuration. They are
  17193. # bogus both because they are the default anyway, and because
  17194. # using them would break gcc on systems where it needs fixed includes.
  17195. case $ac_im_incroot in
  17196. /usr/include) ac_x_includes= ;;
  17197. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17198. esac
  17199. case $ac_im_usrlibdir in
  17200. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17201. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17202. esac
  17203. fi
  17204. cd ..
  17205. rm -f -r conftest.dir
  17206. fi
  17207. # Standard set of common directories for X headers.
  17208. # Check X11 before X11Rn because it is often a symlink to the current release.
  17209. ac_x_header_dirs='
  17210. /usr/X11/include
  17211. /usr/X11R7/include
  17212. /usr/X11R6/include
  17213. /usr/X11R5/include
  17214. /usr/X11R4/include
  17215. /usr/include/X11
  17216. /usr/include/X11R7
  17217. /usr/include/X11R6
  17218. /usr/include/X11R5
  17219. /usr/include/X11R4
  17220. /usr/local/X11/include
  17221. /usr/local/X11R7/include
  17222. /usr/local/X11R6/include
  17223. /usr/local/X11R5/include
  17224. /usr/local/X11R4/include
  17225. /usr/local/include/X11
  17226. /usr/local/include/X11R7
  17227. /usr/local/include/X11R6
  17228. /usr/local/include/X11R5
  17229. /usr/local/include/X11R4
  17230. /usr/X386/include
  17231. /usr/x386/include
  17232. /usr/XFree86/include/X11
  17233. /usr/include
  17234. /usr/local/include
  17235. /usr/unsupported/include
  17236. /usr/athena/include
  17237. /usr/local/x11r5/include
  17238. /usr/lpp/Xamples/include
  17239. /usr/openwin/include
  17240. /usr/openwin/share/include'
  17241. if test "$ac_x_includes" = no; then
  17242. # Guess where to find include files, by looking for Xlib.h.
  17243. # First, try using that file with no special directory specified.
  17244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17245. /* end confdefs.h. */
  17246. #include <X11/Xlib.h>
  17247. _ACEOF
  17248. if ac_fn_c_try_cpp "$LINENO"; then :
  17249. # We can compile using X headers with no special include directory.
  17250. ac_x_includes=
  17251. else
  17252. for ac_dir in $ac_x_header_dirs; do
  17253. if test -r "$ac_dir/X11/Xlib.h"; then
  17254. ac_x_includes=$ac_dir
  17255. break
  17256. fi
  17257. done
  17258. fi
  17259. rm -f conftest.err conftest.i conftest.$ac_ext
  17260. fi # $ac_x_includes = no
  17261. if test "$ac_x_libraries" = no; then
  17262. # Check for the libraries.
  17263. # See if we find them without any special options.
  17264. # Don't add to $LIBS permanently.
  17265. ac_save_LIBS=$LIBS
  17266. LIBS="-lX11 $LIBS"
  17267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17268. /* end confdefs.h. */
  17269. #include <X11/Xlib.h>
  17270. int
  17271. main ()
  17272. {
  17273. XrmInitialize ()
  17274. ;
  17275. return 0;
  17276. }
  17277. _ACEOF
  17278. if ac_fn_c_try_link "$LINENO"; then :
  17279. LIBS=$ac_save_LIBS
  17280. # We can link X programs with no special library path.
  17281. ac_x_libraries=
  17282. else
  17283. LIBS=$ac_save_LIBS
  17284. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17285. do
  17286. # Don't even attempt the hair of trying to link an X program!
  17287. for ac_extension in a so sl dylib la dll; do
  17288. if test -r "$ac_dir/libX11.$ac_extension"; then
  17289. ac_x_libraries=$ac_dir
  17290. break 2
  17291. fi
  17292. done
  17293. done
  17294. fi
  17295. rm -f core conftest.err conftest.$ac_objext \
  17296. conftest$ac_exeext conftest.$ac_ext
  17297. fi # $ac_x_libraries = no
  17298. case $ac_x_includes,$ac_x_libraries in #(
  17299. no,* | *,no | *\'*)
  17300. # Didn't find X, or a directory has "'" in its name.
  17301. ac_cv_have_x="have_x=no";; #(
  17302. *)
  17303. # Record where we found X for the cache.
  17304. ac_cv_have_x="have_x=yes\
  17305. ac_x_includes='$ac_x_includes'\
  17306. ac_x_libraries='$ac_x_libraries'"
  17307. esac
  17308. fi
  17309. ;; #(
  17310. *) have_x=yes;;
  17311. esac
  17312. eval "$ac_cv_have_x"
  17313. fi # $with_x != no
  17314. if test "$have_x" != yes; then
  17315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17316. $as_echo "$have_x" >&6; }
  17317. no_x=yes
  17318. else
  17319. # If each of the values was on the command line, it overrides each guess.
  17320. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17321. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17322. # Update the cache value to reflect the command line values.
  17323. ac_cv_have_x="have_x=yes\
  17324. ac_x_includes='$x_includes'\
  17325. ac_x_libraries='$x_libraries'"
  17326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17327. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17328. fi
  17329. if test "$no_x" = yes; then
  17330. # Not all programs may use this symbol, but it does not hurt to define it.
  17331. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17332. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17333. else
  17334. if test -n "$x_includes"; then
  17335. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17336. fi
  17337. # It would also be nice to do this for all -L options, not just this one.
  17338. if test -n "$x_libraries"; then
  17339. X_LIBS="$X_LIBS -L$x_libraries"
  17340. # For Solaris; some versions of Sun CC require a space after -R and
  17341. # others require no space. Words are not sufficient . . . .
  17342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17343. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17344. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17345. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17346. ac_c_werror_flag=yes
  17347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17348. /* end confdefs.h. */
  17349. int
  17350. main ()
  17351. {
  17352. ;
  17353. return 0;
  17354. }
  17355. _ACEOF
  17356. if ac_fn_c_try_link "$LINENO"; then :
  17357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17358. $as_echo "no" >&6; }
  17359. X_LIBS="$X_LIBS -R$x_libraries"
  17360. else
  17361. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17363. /* end confdefs.h. */
  17364. int
  17365. main ()
  17366. {
  17367. ;
  17368. return 0;
  17369. }
  17370. _ACEOF
  17371. if ac_fn_c_try_link "$LINENO"; then :
  17372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17373. $as_echo "yes" >&6; }
  17374. X_LIBS="$X_LIBS -R $x_libraries"
  17375. else
  17376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17377. $as_echo "neither works" >&6; }
  17378. fi
  17379. rm -f core conftest.err conftest.$ac_objext \
  17380. conftest$ac_exeext conftest.$ac_ext
  17381. fi
  17382. rm -f core conftest.err conftest.$ac_objext \
  17383. conftest$ac_exeext conftest.$ac_ext
  17384. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17385. LIBS=$ac_xsave_LIBS
  17386. fi
  17387. # Check for system-dependent libraries X programs must link with.
  17388. # Do this before checking for the system-independent R6 libraries
  17389. # (-lICE), since we may need -lsocket or whatever for X linking.
  17390. if test "$ISC" = yes; then
  17391. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17392. else
  17393. # Martyn Johnson says this is needed for Ultrix, if the X
  17394. # libraries were built with DECnet support. And Karl Berry says
  17395. # the Alpha needs dnet_stub (dnet does not exist).
  17396. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17398. /* end confdefs.h. */
  17399. /* Override any GCC internal prototype to avoid an error.
  17400. Use char because int might match the return type of a GCC
  17401. builtin and then its argument prototype would still apply. */
  17402. #ifdef __cplusplus
  17403. extern "C"
  17404. #endif
  17405. char XOpenDisplay ();
  17406. int
  17407. main ()
  17408. {
  17409. return XOpenDisplay ();
  17410. ;
  17411. return 0;
  17412. }
  17413. _ACEOF
  17414. if ac_fn_c_try_link "$LINENO"; then :
  17415. else
  17416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17417. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17418. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17419. $as_echo_n "(cached) " >&6
  17420. else
  17421. ac_check_lib_save_LIBS=$LIBS
  17422. LIBS="-ldnet $LIBS"
  17423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17424. /* end confdefs.h. */
  17425. /* Override any GCC internal prototype to avoid an error.
  17426. Use char because int might match the return type of a GCC
  17427. builtin and then its argument prototype would still apply. */
  17428. #ifdef __cplusplus
  17429. extern "C"
  17430. #endif
  17431. char dnet_ntoa ();
  17432. int
  17433. main ()
  17434. {
  17435. return dnet_ntoa ();
  17436. ;
  17437. return 0;
  17438. }
  17439. _ACEOF
  17440. if ac_fn_c_try_link "$LINENO"; then :
  17441. ac_cv_lib_dnet_dnet_ntoa=yes
  17442. else
  17443. ac_cv_lib_dnet_dnet_ntoa=no
  17444. fi
  17445. rm -f core conftest.err conftest.$ac_objext \
  17446. conftest$ac_exeext conftest.$ac_ext
  17447. LIBS=$ac_check_lib_save_LIBS
  17448. fi
  17449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17450. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17451. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17452. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17453. fi
  17454. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17456. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17457. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17458. $as_echo_n "(cached) " >&6
  17459. else
  17460. ac_check_lib_save_LIBS=$LIBS
  17461. LIBS="-ldnet_stub $LIBS"
  17462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17463. /* end confdefs.h. */
  17464. /* Override any GCC internal prototype to avoid an error.
  17465. Use char because int might match the return type of a GCC
  17466. builtin and then its argument prototype would still apply. */
  17467. #ifdef __cplusplus
  17468. extern "C"
  17469. #endif
  17470. char dnet_ntoa ();
  17471. int
  17472. main ()
  17473. {
  17474. return dnet_ntoa ();
  17475. ;
  17476. return 0;
  17477. }
  17478. _ACEOF
  17479. if ac_fn_c_try_link "$LINENO"; then :
  17480. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17481. else
  17482. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17483. fi
  17484. rm -f core conftest.err conftest.$ac_objext \
  17485. conftest$ac_exeext conftest.$ac_ext
  17486. LIBS=$ac_check_lib_save_LIBS
  17487. fi
  17488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17489. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17490. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17491. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17492. fi
  17493. fi
  17494. fi
  17495. rm -f core conftest.err conftest.$ac_objext \
  17496. conftest$ac_exeext conftest.$ac_ext
  17497. LIBS="$ac_xsave_LIBS"
  17498. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17499. # to get the SysV transport functions.
  17500. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17501. # needs -lnsl.
  17502. # The nsl library prevents programs from opening the X display
  17503. # on Irix 5.2, according to T.E. Dickey.
  17504. # The functions gethostbyname, getservbyname, and inet_addr are
  17505. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17506. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17507. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17508. fi
  17509. if test $ac_cv_func_gethostbyname = no; then
  17510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17511. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17512. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17513. $as_echo_n "(cached) " >&6
  17514. else
  17515. ac_check_lib_save_LIBS=$LIBS
  17516. LIBS="-lnsl $LIBS"
  17517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17518. /* end confdefs.h. */
  17519. /* Override any GCC internal prototype to avoid an error.
  17520. Use char because int might match the return type of a GCC
  17521. builtin and then its argument prototype would still apply. */
  17522. #ifdef __cplusplus
  17523. extern "C"
  17524. #endif
  17525. char gethostbyname ();
  17526. int
  17527. main ()
  17528. {
  17529. return gethostbyname ();
  17530. ;
  17531. return 0;
  17532. }
  17533. _ACEOF
  17534. if ac_fn_c_try_link "$LINENO"; then :
  17535. ac_cv_lib_nsl_gethostbyname=yes
  17536. else
  17537. ac_cv_lib_nsl_gethostbyname=no
  17538. fi
  17539. rm -f core conftest.err conftest.$ac_objext \
  17540. conftest$ac_exeext conftest.$ac_ext
  17541. LIBS=$ac_check_lib_save_LIBS
  17542. fi
  17543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17544. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17545. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17546. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17547. fi
  17548. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17550. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17551. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17552. $as_echo_n "(cached) " >&6
  17553. else
  17554. ac_check_lib_save_LIBS=$LIBS
  17555. LIBS="-lbsd $LIBS"
  17556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17557. /* end confdefs.h. */
  17558. /* Override any GCC internal prototype to avoid an error.
  17559. Use char because int might match the return type of a GCC
  17560. builtin and then its argument prototype would still apply. */
  17561. #ifdef __cplusplus
  17562. extern "C"
  17563. #endif
  17564. char gethostbyname ();
  17565. int
  17566. main ()
  17567. {
  17568. return gethostbyname ();
  17569. ;
  17570. return 0;
  17571. }
  17572. _ACEOF
  17573. if ac_fn_c_try_link "$LINENO"; then :
  17574. ac_cv_lib_bsd_gethostbyname=yes
  17575. else
  17576. ac_cv_lib_bsd_gethostbyname=no
  17577. fi
  17578. rm -f core conftest.err conftest.$ac_objext \
  17579. conftest$ac_exeext conftest.$ac_ext
  17580. LIBS=$ac_check_lib_save_LIBS
  17581. fi
  17582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17583. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17584. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17585. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17586. fi
  17587. fi
  17588. fi
  17589. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17590. # socket/setsockopt and other routines are undefined under SCO ODT
  17591. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17592. # on later versions), says Simon Leinen: it contains gethostby*
  17593. # variants that don't use the name server (or something). -lsocket
  17594. # must be given before -lnsl if both are needed. We assume that
  17595. # if connect needs -lnsl, so does gethostbyname.
  17596. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17597. if test "x$ac_cv_func_connect" = xyes; then :
  17598. fi
  17599. if test $ac_cv_func_connect = no; then
  17600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17601. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17602. if ${ac_cv_lib_socket_connect+:} false; then :
  17603. $as_echo_n "(cached) " >&6
  17604. else
  17605. ac_check_lib_save_LIBS=$LIBS
  17606. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17608. /* end confdefs.h. */
  17609. /* Override any GCC internal prototype to avoid an error.
  17610. Use char because int might match the return type of a GCC
  17611. builtin and then its argument prototype would still apply. */
  17612. #ifdef __cplusplus
  17613. extern "C"
  17614. #endif
  17615. char connect ();
  17616. int
  17617. main ()
  17618. {
  17619. return connect ();
  17620. ;
  17621. return 0;
  17622. }
  17623. _ACEOF
  17624. if ac_fn_c_try_link "$LINENO"; then :
  17625. ac_cv_lib_socket_connect=yes
  17626. else
  17627. ac_cv_lib_socket_connect=no
  17628. fi
  17629. rm -f core conftest.err conftest.$ac_objext \
  17630. conftest$ac_exeext conftest.$ac_ext
  17631. LIBS=$ac_check_lib_save_LIBS
  17632. fi
  17633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17634. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17635. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17636. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17637. fi
  17638. fi
  17639. # Guillermo Gomez says -lposix is necessary on A/UX.
  17640. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17641. if test "x$ac_cv_func_remove" = xyes; then :
  17642. fi
  17643. if test $ac_cv_func_remove = no; then
  17644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17645. $as_echo_n "checking for remove in -lposix... " >&6; }
  17646. if ${ac_cv_lib_posix_remove+:} false; then :
  17647. $as_echo_n "(cached) " >&6
  17648. else
  17649. ac_check_lib_save_LIBS=$LIBS
  17650. LIBS="-lposix $LIBS"
  17651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17652. /* end confdefs.h. */
  17653. /* Override any GCC internal prototype to avoid an error.
  17654. Use char because int might match the return type of a GCC
  17655. builtin and then its argument prototype would still apply. */
  17656. #ifdef __cplusplus
  17657. extern "C"
  17658. #endif
  17659. char remove ();
  17660. int
  17661. main ()
  17662. {
  17663. return remove ();
  17664. ;
  17665. return 0;
  17666. }
  17667. _ACEOF
  17668. if ac_fn_c_try_link "$LINENO"; then :
  17669. ac_cv_lib_posix_remove=yes
  17670. else
  17671. ac_cv_lib_posix_remove=no
  17672. fi
  17673. rm -f core conftest.err conftest.$ac_objext \
  17674. conftest$ac_exeext conftest.$ac_ext
  17675. LIBS=$ac_check_lib_save_LIBS
  17676. fi
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17678. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17679. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17680. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17681. fi
  17682. fi
  17683. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17684. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17685. if test "x$ac_cv_func_shmat" = xyes; then :
  17686. fi
  17687. if test $ac_cv_func_shmat = no; then
  17688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17689. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17690. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17691. $as_echo_n "(cached) " >&6
  17692. else
  17693. ac_check_lib_save_LIBS=$LIBS
  17694. LIBS="-lipc $LIBS"
  17695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17696. /* end confdefs.h. */
  17697. /* Override any GCC internal prototype to avoid an error.
  17698. Use char because int might match the return type of a GCC
  17699. builtin and then its argument prototype would still apply. */
  17700. #ifdef __cplusplus
  17701. extern "C"
  17702. #endif
  17703. char shmat ();
  17704. int
  17705. main ()
  17706. {
  17707. return shmat ();
  17708. ;
  17709. return 0;
  17710. }
  17711. _ACEOF
  17712. if ac_fn_c_try_link "$LINENO"; then :
  17713. ac_cv_lib_ipc_shmat=yes
  17714. else
  17715. ac_cv_lib_ipc_shmat=no
  17716. fi
  17717. rm -f core conftest.err conftest.$ac_objext \
  17718. conftest$ac_exeext conftest.$ac_ext
  17719. LIBS=$ac_check_lib_save_LIBS
  17720. fi
  17721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17722. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17723. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17724. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17725. fi
  17726. fi
  17727. fi
  17728. # Check for libraries that X11R6 Xt/Xaw programs need.
  17729. ac_save_LDFLAGS=$LDFLAGS
  17730. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17731. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17732. # check for ICE first), but we must link in the order -lSM -lICE or
  17733. # we get undefined symbols. So assume we have SM if we have ICE.
  17734. # These have to be linked with before -lX11, unlike the other
  17735. # libraries we check for below, so use a different variable.
  17736. # John Interrante, Karl Berry
  17737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17738. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17739. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17740. $as_echo_n "(cached) " >&6
  17741. else
  17742. ac_check_lib_save_LIBS=$LIBS
  17743. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17745. /* end confdefs.h. */
  17746. /* Override any GCC internal prototype to avoid an error.
  17747. Use char because int might match the return type of a GCC
  17748. builtin and then its argument prototype would still apply. */
  17749. #ifdef __cplusplus
  17750. extern "C"
  17751. #endif
  17752. char IceConnectionNumber ();
  17753. int
  17754. main ()
  17755. {
  17756. return IceConnectionNumber ();
  17757. ;
  17758. return 0;
  17759. }
  17760. _ACEOF
  17761. if ac_fn_c_try_link "$LINENO"; then :
  17762. ac_cv_lib_ICE_IceConnectionNumber=yes
  17763. else
  17764. ac_cv_lib_ICE_IceConnectionNumber=no
  17765. fi
  17766. rm -f core conftest.err conftest.$ac_objext \
  17767. conftest$ac_exeext conftest.$ac_ext
  17768. LIBS=$ac_check_lib_save_LIBS
  17769. fi
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17771. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17772. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17773. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17774. fi
  17775. LDFLAGS=$ac_save_LDFLAGS
  17776. fi
  17777. if test x$have_x = xyes; then
  17778. # Check whether --enable-x11-shared was given.
  17779. if test "${enable_x11_shared+set}" = set; then :
  17780. enableval=$enable_x11_shared;
  17781. else
  17782. enable_x11_shared=maybe
  17783. fi
  17784. case "$host" in
  17785. *-*-darwin*)
  17786. # Apple now puts this in /opt/X11
  17787. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17788. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17789. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17790. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17791. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17792. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17793. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17794. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17795. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17796. ;;
  17797. *-*-openbsd*)
  17798. x11_lib='libX11.so'
  17799. x11ext_lib='libXext.so'
  17800. xcursor_lib='libXcursor.so'
  17801. xinerama_lib='libXinerama.so'
  17802. xinput_lib='libXi.so'
  17803. xrandr_lib='libXrandr.so'
  17804. xrender_lib='libXrender.so'
  17805. xss_lib='libXss.so'
  17806. xvidmode_lib='libXxf86vm.so'
  17807. ;;
  17808. *)
  17809. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17810. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17811. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17812. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17813. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17814. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17815. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17816. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17817. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17818. ;;
  17819. esac
  17820. if test x$ac_cv_func_shmat != xyes; then
  17821. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17822. fi
  17823. CFLAGS="$CFLAGS $X_CFLAGS"
  17824. LDFLAGS="$LDFLAGS $X_LIBS"
  17825. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17826. #include <X11/Xproto.h>
  17827. "
  17828. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17829. have_xext_h_hdr=yes
  17830. else
  17831. have_xext_h_hdr=no
  17832. fi
  17833. if test x$have_xext_h_hdr != xyes; then
  17834. as_fn_error $? "
  17835. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17836. " "$LINENO" 5
  17837. fi
  17838. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17839. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17840. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17841. # Needed so SDL applications can include SDL_syswm.h
  17842. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17843. if test x$enable_x11_shared = xmaybe; then
  17844. enable_x11_shared=yes
  17845. fi
  17846. if test x$have_loadso != xyes && \
  17847. test x$enable_x11_shared = xyes; then
  17848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17849. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17850. enable_x11_shared=no
  17851. fi
  17852. if test x$have_loadso = xyes && \
  17853. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17854. echo "-- dynamic libX11 -> $x11_lib"
  17855. echo "-- dynamic libX11ext -> $x11ext_lib"
  17856. cat >>confdefs.h <<_ACEOF
  17857. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17858. _ACEOF
  17859. cat >>confdefs.h <<_ACEOF
  17860. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17861. _ACEOF
  17862. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17863. else
  17864. enable_x11_shared=no
  17865. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17866. SUMMARY_video="${SUMMARY_video} x11"
  17867. fi
  17868. have_video=yes
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17870. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17871. have_const_param_XextAddDisplay=no
  17872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17873. /* end confdefs.h. */
  17874. #include <X11/Xlib.h>
  17875. #include <X11/Xproto.h>
  17876. #include <X11/extensions/Xext.h>
  17877. #include <X11/extensions/extutil.h>
  17878. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17879. int
  17880. main ()
  17881. {
  17882. ;
  17883. return 0;
  17884. }
  17885. _ACEOF
  17886. if ac_fn_c_try_compile "$LINENO"; then :
  17887. have_const_param_XextAddDisplay=yes
  17888. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17889. fi
  17890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17892. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17894. $as_echo_n "checking for XGenericEvent... " >&6; }
  17895. have_XGenericEvent=no
  17896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17897. /* end confdefs.h. */
  17898. #include <X11/Xlib.h>
  17899. int
  17900. main ()
  17901. {
  17902. Display *display;
  17903. XEvent event;
  17904. XGenericEventCookie *cookie = &event.xcookie;
  17905. XNextEvent(display, &event);
  17906. XGetEventData(display, cookie);
  17907. XFreeEventData(display, cookie);
  17908. ;
  17909. return 0;
  17910. }
  17911. _ACEOF
  17912. if ac_fn_c_try_compile "$LINENO"; then :
  17913. have_XGenericEvent=yes
  17914. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17915. fi
  17916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17918. $as_echo "$have_XGenericEvent" >&6; }
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17920. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17921. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17922. $as_echo_n "(cached) " >&6
  17923. else
  17924. ac_check_lib_save_LIBS=$LIBS
  17925. LIBS="-lX11 $LIBS"
  17926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17927. /* end confdefs.h. */
  17928. /* Override any GCC internal prototype to avoid an error.
  17929. Use char because int might match the return type of a GCC
  17930. builtin and then its argument prototype would still apply. */
  17931. #ifdef __cplusplus
  17932. extern "C"
  17933. #endif
  17934. char XkbKeycodeToKeysym ();
  17935. int
  17936. main ()
  17937. {
  17938. return XkbKeycodeToKeysym ();
  17939. ;
  17940. return 0;
  17941. }
  17942. _ACEOF
  17943. if ac_fn_c_try_link "$LINENO"; then :
  17944. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17945. else
  17946. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17947. fi
  17948. rm -f core conftest.err conftest.$ac_objext \
  17949. conftest$ac_exeext conftest.$ac_ext
  17950. LIBS=$ac_check_lib_save_LIBS
  17951. fi
  17952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17953. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17954. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17955. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17956. fi
  17957. # Check whether --enable-video-x11-xcursor was given.
  17958. if test "${enable_video_x11_xcursor+set}" = set; then :
  17959. enableval=$enable_video_x11_xcursor;
  17960. else
  17961. enable_video_x11_xcursor=yes
  17962. fi
  17963. if test x$enable_video_x11_xcursor = xyes; then
  17964. definitely_enable_video_x11_xcursor=no
  17965. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17966. "
  17967. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17968. have_xcursor_h_hdr=yes
  17969. else
  17970. have_xcursor_h_hdr=no
  17971. fi
  17972. if test x$have_xcursor_h_hdr = xyes; then
  17973. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17974. echo "-- dynamic libXcursor -> $xcursor_lib"
  17975. cat >>confdefs.h <<_ACEOF
  17976. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17977. _ACEOF
  17978. definitely_enable_video_x11_xcursor=yes
  17979. else
  17980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17981. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17982. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17983. $as_echo_n "(cached) " >&6
  17984. else
  17985. ac_check_lib_save_LIBS=$LIBS
  17986. LIBS="-lXcursor $LIBS"
  17987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17988. /* end confdefs.h. */
  17989. /* Override any GCC internal prototype to avoid an error.
  17990. Use char because int might match the return type of a GCC
  17991. builtin and then its argument prototype would still apply. */
  17992. #ifdef __cplusplus
  17993. extern "C"
  17994. #endif
  17995. char XcursorImageCreate ();
  17996. int
  17997. main ()
  17998. {
  17999. return XcursorImageCreate ();
  18000. ;
  18001. return 0;
  18002. }
  18003. _ACEOF
  18004. if ac_fn_c_try_link "$LINENO"; then :
  18005. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18006. else
  18007. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18008. fi
  18009. rm -f core conftest.err conftest.$ac_objext \
  18010. conftest$ac_exeext conftest.$ac_ext
  18011. LIBS=$ac_check_lib_save_LIBS
  18012. fi
  18013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18014. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18015. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18016. have_xcursor_lib=yes
  18017. fi
  18018. if test x$have_xcursor_lib = xyes ; then
  18019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18020. definitely_enable_video_x11_xcursor=yes
  18021. fi
  18022. fi
  18023. fi
  18024. fi
  18025. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18026. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18027. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18028. fi
  18029. # Check whether --enable-video-x11-xdbe was given.
  18030. if test "${enable_video_x11_xdbe+set}" = set; then :
  18031. enableval=$enable_video_x11_xdbe;
  18032. else
  18033. enable_video_x11_xdbe=yes
  18034. fi
  18035. if test x$enable_video_x11_xdbe = xyes; then
  18036. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18037. "
  18038. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18039. have_dbe_h_hdr=yes
  18040. else
  18041. have_dbe_h_hdr=no
  18042. fi
  18043. if test x$have_dbe_h_hdr = xyes; then
  18044. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18045. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18046. fi
  18047. fi
  18048. # Check whether --enable-video-x11-xinerama was given.
  18049. if test "${enable_video_x11_xinerama+set}" = set; then :
  18050. enableval=$enable_video_x11_xinerama;
  18051. else
  18052. enable_video_x11_xinerama=yes
  18053. fi
  18054. if test x$enable_video_x11_xinerama = xyes; then
  18055. definitely_enable_video_x11_xinerama=no
  18056. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18057. "
  18058. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18059. have_xinerama_h_hdr=yes
  18060. else
  18061. have_xinerama_h_hdr=no
  18062. fi
  18063. if test x$have_xinerama_h_hdr = xyes; then
  18064. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18065. echo "-- dynamic libXinerama -> $xinerama_lib"
  18066. cat >>confdefs.h <<_ACEOF
  18067. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18068. _ACEOF
  18069. definitely_enable_video_x11_xinerama=yes
  18070. else
  18071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18072. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18073. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18074. $as_echo_n "(cached) " >&6
  18075. else
  18076. ac_check_lib_save_LIBS=$LIBS
  18077. LIBS="-lXinerama $LIBS"
  18078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18079. /* end confdefs.h. */
  18080. /* Override any GCC internal prototype to avoid an error.
  18081. Use char because int might match the return type of a GCC
  18082. builtin and then its argument prototype would still apply. */
  18083. #ifdef __cplusplus
  18084. extern "C"
  18085. #endif
  18086. char XineramaQueryExtension ();
  18087. int
  18088. main ()
  18089. {
  18090. return XineramaQueryExtension ();
  18091. ;
  18092. return 0;
  18093. }
  18094. _ACEOF
  18095. if ac_fn_c_try_link "$LINENO"; then :
  18096. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18097. else
  18098. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18099. fi
  18100. rm -f core conftest.err conftest.$ac_objext \
  18101. conftest$ac_exeext conftest.$ac_ext
  18102. LIBS=$ac_check_lib_save_LIBS
  18103. fi
  18104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18105. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18106. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18107. have_xinerama_lib=yes
  18108. fi
  18109. if test x$have_xinerama_lib = xyes ; then
  18110. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18111. definitely_enable_video_x11_xinerama=yes
  18112. fi
  18113. fi
  18114. fi
  18115. fi
  18116. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18117. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18118. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18119. fi
  18120. # Check whether --enable-video-x11-xinput was given.
  18121. if test "${enable_video_x11_xinput+set}" = set; then :
  18122. enableval=$enable_video_x11_xinput;
  18123. else
  18124. enable_video_x11_xinput=yes
  18125. fi
  18126. if test x$enable_video_x11_xinput = xyes; then
  18127. definitely_enable_video_x11_xinput=no
  18128. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18129. "
  18130. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18131. have_xinput_h_hdr=yes
  18132. else
  18133. have_xinput_h_hdr=no
  18134. fi
  18135. if test x$have_xinput_h_hdr = xyes; then
  18136. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18137. echo "-- dynamic libXi -> $xinput_lib"
  18138. cat >>confdefs.h <<_ACEOF
  18139. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18140. _ACEOF
  18141. definitely_enable_video_x11_xinput=yes
  18142. else
  18143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18144. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18145. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18146. $as_echo_n "(cached) " >&6
  18147. else
  18148. ac_check_lib_save_LIBS=$LIBS
  18149. LIBS="-lXi $LIBS"
  18150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18151. /* end confdefs.h. */
  18152. /* Override any GCC internal prototype to avoid an error.
  18153. Use char because int might match the return type of a GCC
  18154. builtin and then its argument prototype would still apply. */
  18155. #ifdef __cplusplus
  18156. extern "C"
  18157. #endif
  18158. char XOpenDevice ();
  18159. int
  18160. main ()
  18161. {
  18162. return XOpenDevice ();
  18163. ;
  18164. return 0;
  18165. }
  18166. _ACEOF
  18167. if ac_fn_c_try_link "$LINENO"; then :
  18168. ac_cv_lib_Xi_XOpenDevice=yes
  18169. else
  18170. ac_cv_lib_Xi_XOpenDevice=no
  18171. fi
  18172. rm -f core conftest.err conftest.$ac_objext \
  18173. conftest$ac_exeext conftest.$ac_ext
  18174. LIBS=$ac_check_lib_save_LIBS
  18175. fi
  18176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18177. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18178. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18179. have_xinput_lib=yes
  18180. fi
  18181. if test x$have_xinput_lib = xyes ; then
  18182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18183. definitely_enable_video_x11_xinput=yes
  18184. fi
  18185. fi
  18186. fi
  18187. fi
  18188. if test x$definitely_enable_video_x11_xinput = xyes; then
  18189. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18190. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18192. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18193. have_xinput2_multitouch=no
  18194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18195. /* end confdefs.h. */
  18196. #include <X11/Xlib.h>
  18197. #include <X11/Xproto.h>
  18198. #include <X11/extensions/XInput2.h>
  18199. int
  18200. main ()
  18201. {
  18202. int event_type = XI_TouchBegin;
  18203. XITouchClassInfo *t;
  18204. ;
  18205. return 0;
  18206. }
  18207. _ACEOF
  18208. if ac_fn_c_try_compile "$LINENO"; then :
  18209. have_xinput2_multitouch=yes
  18210. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18211. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18212. fi
  18213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18215. $as_echo "$have_xinput2_multitouch" >&6; }
  18216. fi
  18217. # Check whether --enable-video-x11-xrandr was given.
  18218. if test "${enable_video_x11_xrandr+set}" = set; then :
  18219. enableval=$enable_video_x11_xrandr;
  18220. else
  18221. enable_video_x11_xrandr=yes
  18222. fi
  18223. if test x$enable_video_x11_xrandr = xyes; then
  18224. definitely_enable_video_x11_xrandr=no
  18225. have_xrandr_h_hdr=no
  18226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18227. /* end confdefs.h. */
  18228. #include <X11/Xlib.h>
  18229. #include <X11/extensions/Xrandr.h>
  18230. int
  18231. main ()
  18232. {
  18233. XRRScreenResources *res = NULL;
  18234. ;
  18235. return 0;
  18236. }
  18237. _ACEOF
  18238. if ac_fn_c_try_compile "$LINENO"; then :
  18239. have_xrandr_h_hdr=yes
  18240. fi
  18241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18242. if test x$have_xrandr_h_hdr = xyes; then
  18243. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18244. echo "-- dynamic libXrandr -> $xrandr_lib"
  18245. cat >>confdefs.h <<_ACEOF
  18246. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18247. _ACEOF
  18248. definitely_enable_video_x11_xrandr=yes
  18249. else
  18250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18251. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18252. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18253. $as_echo_n "(cached) " >&6
  18254. else
  18255. ac_check_lib_save_LIBS=$LIBS
  18256. LIBS="-lXrandr $LIBS"
  18257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18258. /* end confdefs.h. */
  18259. /* Override any GCC internal prototype to avoid an error.
  18260. Use char because int might match the return type of a GCC
  18261. builtin and then its argument prototype would still apply. */
  18262. #ifdef __cplusplus
  18263. extern "C"
  18264. #endif
  18265. char XRRQueryExtension ();
  18266. int
  18267. main ()
  18268. {
  18269. return XRRQueryExtension ();
  18270. ;
  18271. return 0;
  18272. }
  18273. _ACEOF
  18274. if ac_fn_c_try_link "$LINENO"; then :
  18275. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18276. else
  18277. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18278. fi
  18279. rm -f core conftest.err conftest.$ac_objext \
  18280. conftest$ac_exeext conftest.$ac_ext
  18281. LIBS=$ac_check_lib_save_LIBS
  18282. fi
  18283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18284. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18285. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18286. have_xrandr_lib=yes
  18287. fi
  18288. if test x$have_xrandr_lib = xyes ; then
  18289. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18290. definitely_enable_video_x11_xrandr=yes
  18291. fi
  18292. fi
  18293. fi
  18294. fi
  18295. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18296. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18297. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18298. fi
  18299. # Check whether --enable-video-x11-scrnsaver was given.
  18300. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18301. enableval=$enable_video_x11_scrnsaver;
  18302. else
  18303. enable_video_x11_scrnsaver=yes
  18304. fi
  18305. if test x$enable_video_x11_scrnsaver = xyes; then
  18306. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18307. "
  18308. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18309. have_scrnsaver_h_hdr=yes
  18310. else
  18311. have_scrnsaver_h_hdr=no
  18312. fi
  18313. if test x$have_scrnsaver_h_hdr = xyes; then
  18314. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18315. echo "-- dynamic libXss -> $xss_lib"
  18316. cat >>confdefs.h <<_ACEOF
  18317. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18318. _ACEOF
  18319. definitely_enable_video_x11_scrnsaver=yes
  18320. else
  18321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18322. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18323. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18324. $as_echo_n "(cached) " >&6
  18325. else
  18326. ac_check_lib_save_LIBS=$LIBS
  18327. LIBS="-lXss $LIBS"
  18328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18329. /* end confdefs.h. */
  18330. /* Override any GCC internal prototype to avoid an error.
  18331. Use char because int might match the return type of a GCC
  18332. builtin and then its argument prototype would still apply. */
  18333. #ifdef __cplusplus
  18334. extern "C"
  18335. #endif
  18336. char XScreenSaverSuspend ();
  18337. int
  18338. main ()
  18339. {
  18340. return XScreenSaverSuspend ();
  18341. ;
  18342. return 0;
  18343. }
  18344. _ACEOF
  18345. if ac_fn_c_try_link "$LINENO"; then :
  18346. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18347. else
  18348. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18349. fi
  18350. rm -f core conftest.err conftest.$ac_objext \
  18351. conftest$ac_exeext conftest.$ac_ext
  18352. LIBS=$ac_check_lib_save_LIBS
  18353. fi
  18354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18355. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18356. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18357. have_xss_lib=yes
  18358. fi
  18359. if test x$have_xss_lib = xyes ; then
  18360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18361. definitely_enable_video_x11_scrnsaver=yes
  18362. fi
  18363. fi
  18364. fi
  18365. fi
  18366. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18367. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18368. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18369. fi
  18370. # Check whether --enable-video-x11-xshape was given.
  18371. if test "${enable_video_x11_xshape+set}" = set; then :
  18372. enableval=$enable_video_x11_xshape;
  18373. else
  18374. enable_video_x11_xshape=yes
  18375. fi
  18376. if test x$enable_video_x11_xshape = xyes; then
  18377. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18378. "
  18379. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18380. have_shape_h_hdr=yes
  18381. else
  18382. have_shape_h_hdr=no
  18383. fi
  18384. if test x$have_shape_h_hdr = xyes; then
  18385. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18386. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18387. fi
  18388. fi
  18389. # Check whether --enable-video-x11-vm was given.
  18390. if test "${enable_video_x11_vm+set}" = set; then :
  18391. enableval=$enable_video_x11_vm;
  18392. else
  18393. enable_video_x11_vm=yes
  18394. fi
  18395. if test x$enable_video_x11_vm = xyes; then
  18396. definitely_enable_video_x11_vm=no
  18397. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18398. "
  18399. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18400. have_vm_h_hdr=yes
  18401. else
  18402. have_vm_h_hdr=no
  18403. fi
  18404. if test x$have_vm_h_hdr = xyes; then
  18405. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18406. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18407. cat >>confdefs.h <<_ACEOF
  18408. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18409. _ACEOF
  18410. definitely_enable_video_x11_vm=yes
  18411. else
  18412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18413. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18414. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18415. $as_echo_n "(cached) " >&6
  18416. else
  18417. ac_check_lib_save_LIBS=$LIBS
  18418. LIBS="-lXxf86vm $LIBS"
  18419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18420. /* end confdefs.h. */
  18421. /* Override any GCC internal prototype to avoid an error.
  18422. Use char because int might match the return type of a GCC
  18423. builtin and then its argument prototype would still apply. */
  18424. #ifdef __cplusplus
  18425. extern "C"
  18426. #endif
  18427. char XF86VidModeQueryVersion ();
  18428. int
  18429. main ()
  18430. {
  18431. return XF86VidModeQueryVersion ();
  18432. ;
  18433. return 0;
  18434. }
  18435. _ACEOF
  18436. if ac_fn_c_try_link "$LINENO"; then :
  18437. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18438. else
  18439. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18440. fi
  18441. rm -f core conftest.err conftest.$ac_objext \
  18442. conftest$ac_exeext conftest.$ac_ext
  18443. LIBS=$ac_check_lib_save_LIBS
  18444. fi
  18445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18446. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18447. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18448. have_vm_lib=yes
  18449. fi
  18450. if test x$have_vm_lib = xyes ; then
  18451. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18452. definitely_enable_video_x11_vm=yes
  18453. fi
  18454. fi
  18455. fi
  18456. fi
  18457. if test x$definitely_enable_video_x11_vm = xyes; then
  18458. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18459. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18460. fi
  18461. fi
  18462. else
  18463. # Prevent Mesa from including X11 headers
  18464. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18465. fi
  18466. }
  18467. CheckVivanteVideo()
  18468. {
  18469. # Check whether --enable-video-vivante was given.
  18470. if test "${enable_video_vivante+set}" = set; then :
  18471. enableval=$enable_video_vivante;
  18472. else
  18473. enable_video_vivante=yes
  18474. fi
  18475. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18477. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18478. have_vivante_vdk=no
  18479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18480. /* end confdefs.h. */
  18481. #define LINUX
  18482. #define EGL_API_FB
  18483. #include <gc_vdk.h>
  18484. int
  18485. main ()
  18486. {
  18487. ;
  18488. return 0;
  18489. }
  18490. _ACEOF
  18491. if ac_fn_c_try_compile "$LINENO"; then :
  18492. have_vivante_vdk=yes
  18493. fi
  18494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18496. $as_echo "$have_vivante_vdk" >&6; }
  18497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18498. $as_echo_n "checking for Vivante FB API... " >&6; }
  18499. have_vivante_egl=no
  18500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18501. /* end confdefs.h. */
  18502. #define LINUX
  18503. #define EGL_API_FB
  18504. #include <EGL/eglvivante.h>
  18505. int
  18506. main ()
  18507. {
  18508. ;
  18509. return 0;
  18510. }
  18511. _ACEOF
  18512. if ac_fn_c_try_compile "$LINENO"; then :
  18513. have_vivante_egl=yes
  18514. fi
  18515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18517. $as_echo "$have_vivante_egl" >&6; }
  18518. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18519. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18520. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18521. if test x$have_vivante_vdk = xyes; then
  18522. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18524. fi
  18525. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18526. SUMMARY_video="${SUMMARY_video} vivante"
  18527. have_video=yes
  18528. fi
  18529. fi
  18530. }
  18531. CheckHaikuVideo()
  18532. {
  18533. if test x$enable_video = xyes; then
  18534. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18535. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18536. have_video=yes
  18537. SUMMARY_video="${SUMMARY_video} haiku"
  18538. fi
  18539. }
  18540. CheckCOCOA()
  18541. {
  18542. # Check whether --enable-video-cocoa was given.
  18543. if test "${enable_video_cocoa+set}" = set; then :
  18544. enableval=$enable_video_cocoa;
  18545. else
  18546. enable_video_cocoa=yes
  18547. fi
  18548. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18549. save_CFLAGS="$CFLAGS"
  18550. CFLAGS="$CFLAGS -x objective-c"
  18551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18552. $as_echo_n "checking for Cocoa framework... " >&6; }
  18553. have_cocoa=no
  18554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18555. /* end confdefs.h. */
  18556. #import <Cocoa/Cocoa.h>
  18557. int
  18558. main ()
  18559. {
  18560. ;
  18561. return 0;
  18562. }
  18563. _ACEOF
  18564. if ac_fn_c_try_compile "$LINENO"; then :
  18565. have_cocoa=yes
  18566. fi
  18567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18569. $as_echo "$have_cocoa" >&6; }
  18570. CFLAGS="$save_CFLAGS"
  18571. if test x$have_cocoa = xyes; then
  18572. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18573. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18574. SUMMARY_video="${SUMMARY_video} cocoa"
  18575. have_video=yes
  18576. fi
  18577. fi
  18578. }
  18579. CheckMETAL()
  18580. {
  18581. # Check whether --enable-video-metal was given.
  18582. if test "${enable_video_metal+set}" = set; then :
  18583. enableval=$enable_video_metal;
  18584. else
  18585. enable_video_metal=yes
  18586. fi
  18587. # Check whether --enable-render-metal was given.
  18588. if test "${enable_render_metal+set}" = set; then :
  18589. enableval=$enable_render_metal;
  18590. else
  18591. enable_render_metal=yes
  18592. fi
  18593. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18594. save_CFLAGS="$CFLAGS"
  18595. CFLAGS="$CFLAGS -x objective-c"
  18596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18597. $as_echo_n "checking for Metal framework... " >&6; }
  18598. have_metal=no
  18599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18600. /* end confdefs.h. */
  18601. #import <Cocoa/Cocoa.h>
  18602. #import <Metal/Metal.h>
  18603. #import <QuartzCore/CAMetalLayer.h>
  18604. #if !TARGET_CPU_X86_64
  18605. #error Metal doesn't work on this configuration
  18606. #endif
  18607. int
  18608. main ()
  18609. {
  18610. ;
  18611. return 0;
  18612. }
  18613. _ACEOF
  18614. if ac_fn_c_try_compile "$LINENO"; then :
  18615. have_metal=yes
  18616. fi
  18617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18618. CFLAGS="$save_CFLAGS"
  18619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18620. $as_echo "$have_metal" >&6; }
  18621. if test x$have_metal = xyes; then
  18622. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18623. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18624. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18625. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18626. fi
  18627. SUMMARY_video="${SUMMARY_video} metal"
  18628. else
  18629. enable_video_metal=no
  18630. enable_render_metal=no
  18631. fi
  18632. fi
  18633. }
  18634. CheckDirectFB()
  18635. {
  18636. # Check whether --enable-video-directfb was given.
  18637. if test "${enable_video_directfb+set}" = set; then :
  18638. enableval=$enable_video_directfb;
  18639. else
  18640. enable_video_directfb=no
  18641. fi
  18642. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18643. pkg_failed=no
  18644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18645. $as_echo_n "checking for DIRECTFB... " >&6; }
  18646. if test -n "$DIRECTFB_CFLAGS"; then
  18647. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18648. elif test -n "$PKG_CONFIG"; then
  18649. if test -n "$PKG_CONFIG" && \
  18650. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18651. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18652. ac_status=$?
  18653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18654. test $ac_status = 0; }; then
  18655. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18656. else
  18657. pkg_failed=yes
  18658. fi
  18659. else
  18660. pkg_failed=untried
  18661. fi
  18662. if test -n "$DIRECTFB_LIBS"; then
  18663. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18664. elif test -n "$PKG_CONFIG"; then
  18665. if test -n "$PKG_CONFIG" && \
  18666. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18667. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18668. ac_status=$?
  18669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18670. test $ac_status = 0; }; then
  18671. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18672. else
  18673. pkg_failed=yes
  18674. fi
  18675. else
  18676. pkg_failed=untried
  18677. fi
  18678. if test $pkg_failed = yes; then
  18679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18680. $as_echo "no" >&6; }
  18681. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18682. _pkg_short_errors_supported=yes
  18683. else
  18684. _pkg_short_errors_supported=no
  18685. fi
  18686. if test $_pkg_short_errors_supported = yes; then
  18687. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18688. else
  18689. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18690. fi
  18691. # Put the nasty error message in config.log where it belongs
  18692. echo "$DIRECTFB_PKG_ERRORS" >&5
  18693. video_directfb=no
  18694. elif test $pkg_failed = untried; then
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18696. $as_echo "no" >&6; }
  18697. video_directfb=no
  18698. else
  18699. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18700. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18702. $as_echo "yes" >&6; }
  18703. video_directfb=yes
  18704. fi
  18705. if test x$video_directfb = xyes; then
  18706. # SuSE 11.1 installs directfb-config without directfb-devel
  18707. save_CPPFLAGS="$CPPFLAGS"
  18708. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18709. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18710. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18711. have_directfb_hdr=yes
  18712. else
  18713. have_directfb_hdr=no
  18714. fi
  18715. CPPFLAGS="$save_CPPFLAGS"
  18716. video_directfb=$have_directfb_hdr
  18717. fi
  18718. if test x$video_directfb = xyes; then
  18719. # Check whether --enable-directfb-shared was given.
  18720. if test "${enable_directfb_shared+set}" = set; then :
  18721. enableval=$enable_directfb_shared;
  18722. else
  18723. enable_directfb_shared=yes
  18724. fi
  18725. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18726. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18727. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18728. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18730. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18731. directfb_shared=no
  18732. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18733. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18735. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18736. if test x$have_loadso != xyes && \
  18737. test x$enable_directfb_shared = xyes; then
  18738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18739. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18740. fi
  18741. if test x$have_loadso = xyes && \
  18742. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18743. directfb_shared=yes
  18744. echo "-- $directfb_lib_spec -> $directfb_lib"
  18745. cat >>confdefs.h <<_ACEOF
  18746. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18747. _ACEOF
  18748. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18749. else
  18750. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18751. SUMMARY_video="${SUMMARY_video} directfb"
  18752. fi
  18753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18754. $as_echo "$directfb_shared" >&6; }
  18755. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18756. have_video=yes
  18757. fi
  18758. fi
  18759. }
  18760. CheckKMSDRM()
  18761. {
  18762. # Check whether --enable-video-kmsdrm was given.
  18763. if test "${enable_video_kmsdrm+set}" = set; then :
  18764. enableval=$enable_video_kmsdrm;
  18765. else
  18766. enable_video_kmsdrm=no
  18767. fi
  18768. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18769. video_kmsdrm=no
  18770. pkg_failed=no
  18771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18772. $as_echo_n "checking for LIBDRM... " >&6; }
  18773. if test -n "$LIBDRM_CFLAGS"; then
  18774. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18775. elif test -n "$PKG_CONFIG"; then
  18776. if test -n "$PKG_CONFIG" && \
  18777. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18778. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18779. ac_status=$?
  18780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18781. test $ac_status = 0; }; then
  18782. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18783. else
  18784. pkg_failed=yes
  18785. fi
  18786. else
  18787. pkg_failed=untried
  18788. fi
  18789. if test -n "$LIBDRM_LIBS"; then
  18790. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18791. elif test -n "$PKG_CONFIG"; then
  18792. if test -n "$PKG_CONFIG" && \
  18793. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18794. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18795. ac_status=$?
  18796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18797. test $ac_status = 0; }; then
  18798. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18799. else
  18800. pkg_failed=yes
  18801. fi
  18802. else
  18803. pkg_failed=untried
  18804. fi
  18805. if test $pkg_failed = yes; then
  18806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18807. $as_echo "no" >&6; }
  18808. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18809. _pkg_short_errors_supported=yes
  18810. else
  18811. _pkg_short_errors_supported=no
  18812. fi
  18813. if test $_pkg_short_errors_supported = yes; then
  18814. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18815. else
  18816. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18817. fi
  18818. # Put the nasty error message in config.log where it belongs
  18819. echo "$LIBDRM_PKG_ERRORS" >&5
  18820. libdrm_avail=no
  18821. elif test $pkg_failed = untried; then
  18822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18823. $as_echo "no" >&6; }
  18824. libdrm_avail=no
  18825. else
  18826. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18827. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18829. $as_echo "yes" >&6; }
  18830. libdrm_avail=yes
  18831. fi
  18832. pkg_failed=no
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18834. $as_echo_n "checking for LIBGBM... " >&6; }
  18835. if test -n "$LIBGBM_CFLAGS"; then
  18836. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18837. elif test -n "$PKG_CONFIG"; then
  18838. if test -n "$PKG_CONFIG" && \
  18839. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18840. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18841. ac_status=$?
  18842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18843. test $ac_status = 0; }; then
  18844. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18845. else
  18846. pkg_failed=yes
  18847. fi
  18848. else
  18849. pkg_failed=untried
  18850. fi
  18851. if test -n "$LIBGBM_LIBS"; then
  18852. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18853. elif test -n "$PKG_CONFIG"; then
  18854. if test -n "$PKG_CONFIG" && \
  18855. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18856. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18857. ac_status=$?
  18858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18859. test $ac_status = 0; }; then
  18860. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18861. else
  18862. pkg_failed=yes
  18863. fi
  18864. else
  18865. pkg_failed=untried
  18866. fi
  18867. if test $pkg_failed = yes; then
  18868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18869. $as_echo "no" >&6; }
  18870. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18871. _pkg_short_errors_supported=yes
  18872. else
  18873. _pkg_short_errors_supported=no
  18874. fi
  18875. if test $_pkg_short_errors_supported = yes; then
  18876. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18877. else
  18878. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18879. fi
  18880. # Put the nasty error message in config.log where it belongs
  18881. echo "$LIBGBM_PKG_ERRORS" >&5
  18882. libgbm_avail=no
  18883. elif test $pkg_failed = untried; then
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18885. $as_echo "no" >&6; }
  18886. libgbm_avail=no
  18887. else
  18888. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18889. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18891. $as_echo "yes" >&6; }
  18892. libgbm_avail=yes
  18893. fi
  18894. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18895. video_kmsdrm=yes
  18896. fi
  18897. if test x$video_kmsdrm = xyes; then
  18898. # Check whether --enable-kmsdrm-shared was given.
  18899. if test "${enable_kmsdrm_shared+set}" = set; then :
  18900. enableval=$enable_kmsdrm_shared;
  18901. else
  18902. enable_kmsdrm_shared=yes
  18903. fi
  18904. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18905. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18906. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18908. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18909. kmsdrm_shared=no
  18910. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18911. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18912. if test x$have_loadso != xyes && \
  18913. test x$enable_kmsdrm_shared = xyes; then
  18914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18915. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18916. fi
  18917. if test x$have_loadso = xyes && \
  18918. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18919. kmsdrm_shared=yes
  18920. cat >>confdefs.h <<_ACEOF
  18921. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18922. _ACEOF
  18923. cat >>confdefs.h <<_ACEOF
  18924. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18925. _ACEOF
  18926. cat >>confdefs.h <<_ACEOF
  18927. #define HAVE_KMSDRM_SHARED "TRUE"
  18928. _ACEOF
  18929. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18930. else
  18931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18932. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18933. fi
  18934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18935. $as_echo "$kmsdrm_shared" >&6; }
  18936. have_video=yes
  18937. fi
  18938. fi
  18939. }
  18940. CheckDummyVideo()
  18941. {
  18942. # Check whether --enable-video-dummy was given.
  18943. if test "${enable_video_dummy+set}" = set; then :
  18944. enableval=$enable_video_dummy;
  18945. else
  18946. enable_video_dummy=yes
  18947. fi
  18948. if test x$enable_video_dummy = xyes; then
  18949. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18950. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18951. have_video=yes
  18952. SUMMARY_video="${SUMMARY_video} dummy"
  18953. fi
  18954. }
  18955. CheckQNXVideo()
  18956. {
  18957. if test x$enable_video = xyes; then
  18958. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18959. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18960. have_video=yes
  18961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18962. SUMMARY_video="${SUMMARY_video} qnx"
  18963. fi
  18964. }
  18965. CheckQNXAudio()
  18966. {
  18967. if test x$enable_audio = xyes; then
  18968. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18969. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18970. have_audio=yes
  18971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18972. SUMMARY_audio="${SUMMARY_audio} qsa"
  18973. fi
  18974. }
  18975. # Check whether --enable-video-opengl was given.
  18976. if test "${enable_video_opengl+set}" = set; then :
  18977. enableval=$enable_video_opengl;
  18978. else
  18979. enable_video_opengl=yes
  18980. fi
  18981. CheckOpenGLX11()
  18982. {
  18983. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18985. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18986. video_opengl=no
  18987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18988. /* end confdefs.h. */
  18989. #include <GL/gl.h>
  18990. #include <GL/glx.h>
  18991. int
  18992. main ()
  18993. {
  18994. ;
  18995. return 0;
  18996. }
  18997. _ACEOF
  18998. if ac_fn_c_try_compile "$LINENO"; then :
  18999. video_opengl=yes
  19000. fi
  19001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19003. $as_echo "$video_opengl" >&6; }
  19004. if test x$video_opengl = xyes; then
  19005. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19006. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19007. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19008. SUMMARY_video="${SUMMARY_video} opengl"
  19009. fi
  19010. fi
  19011. }
  19012. # Check whether --enable-video-opengles was given.
  19013. if test "${enable_video_opengles+set}" = set; then :
  19014. enableval=$enable_video_opengles;
  19015. else
  19016. enable_video_opengles=yes
  19017. fi
  19018. # Check whether --enable-video-opengles1 was given.
  19019. if test "${enable_video_opengles1+set}" = set; then :
  19020. enableval=$enable_video_opengles1;
  19021. else
  19022. enable_video_opengles1=yes
  19023. fi
  19024. # Check whether --enable-video-opengles2 was given.
  19025. if test "${enable_video_opengles2+set}" = set; then :
  19026. enableval=$enable_video_opengles2;
  19027. else
  19028. enable_video_opengles2=yes
  19029. fi
  19030. CheckOpenGLESX11()
  19031. {
  19032. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19034. $as_echo_n "checking for EGL support... " >&6; }
  19035. video_opengl_egl=no
  19036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19037. /* end confdefs.h. */
  19038. #define LINUX
  19039. #define EGL_API_FB
  19040. #define MESA_EGL_NO_X11_HEADERS
  19041. #include <EGL/egl.h>
  19042. #include <EGL/eglext.h>
  19043. int
  19044. main ()
  19045. {
  19046. ;
  19047. return 0;
  19048. }
  19049. _ACEOF
  19050. if ac_fn_c_try_compile "$LINENO"; then :
  19051. video_opengl_egl=yes
  19052. fi
  19053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19055. $as_echo "$video_opengl_egl" >&6; }
  19056. if test x$video_opengl_egl = xyes; then
  19057. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19058. fi
  19059. if test x$enable_video_opengles1 = xyes; then
  19060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19061. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19062. video_opengles_v1=no
  19063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19064. /* end confdefs.h. */
  19065. #include <GLES/gl.h>
  19066. #include <GLES/glext.h>
  19067. int
  19068. main ()
  19069. {
  19070. ;
  19071. return 0;
  19072. }
  19073. _ACEOF
  19074. if ac_fn_c_try_compile "$LINENO"; then :
  19075. video_opengles_v1=yes
  19076. fi
  19077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19079. $as_echo "$video_opengles_v1" >&6; }
  19080. if test x$video_opengles_v1 = xyes; then
  19081. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19082. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19083. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19084. fi
  19085. fi
  19086. if test x$enable_video_opengles2 = xyes; then
  19087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19088. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19089. video_opengles_v2=no
  19090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19091. /* end confdefs.h. */
  19092. #include <GLES2/gl2.h>
  19093. #include <GLES2/gl2ext.h>
  19094. int
  19095. main ()
  19096. {
  19097. ;
  19098. return 0;
  19099. }
  19100. _ACEOF
  19101. if ac_fn_c_try_compile "$LINENO"; then :
  19102. video_opengles_v2=yes
  19103. fi
  19104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19106. $as_echo "$video_opengles_v2" >&6; }
  19107. if test x$video_opengles_v2 = xyes; then
  19108. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19109. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19110. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19111. fi
  19112. fi
  19113. fi
  19114. }
  19115. CheckWINDOWSGL()
  19116. {
  19117. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19118. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19119. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19120. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19121. SUMMARY_video="${SUMMARY_video} opengl"
  19122. fi
  19123. }
  19124. CheckWINDOWSGLES()
  19125. {
  19126. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19128. $as_echo_n "checking for EGL support... " >&6; }
  19129. video_opengl_egl=no
  19130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19131. /* end confdefs.h. */
  19132. #include <EGL/egl.h>
  19133. int
  19134. main ()
  19135. {
  19136. ;
  19137. return 0;
  19138. }
  19139. _ACEOF
  19140. if ac_fn_c_try_compile "$LINENO"; then :
  19141. video_opengl_egl=yes
  19142. fi
  19143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19145. $as_echo "$video_opengl_egl" >&6; }
  19146. if test x$video_opengl_egl = xyes; then
  19147. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19148. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19149. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19150. fi
  19151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19152. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19153. video_opengles_v2=no
  19154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19155. /* end confdefs.h. */
  19156. #include <GLES2/gl2.h>
  19157. #include <GLES2/gl2ext.h>
  19158. int
  19159. main ()
  19160. {
  19161. ;
  19162. return 0;
  19163. }
  19164. _ACEOF
  19165. if ac_fn_c_try_compile "$LINENO"; then :
  19166. video_opengles_v2=yes
  19167. fi
  19168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19170. $as_echo "$video_opengles_v2" >&6; }
  19171. if test x$video_opengles_v2 = xyes; then
  19172. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19173. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19174. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19175. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19176. fi
  19177. fi
  19178. }
  19179. CheckHaikuGL()
  19180. {
  19181. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19182. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19183. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19184. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19186. SUMMARY_video="${SUMMARY_video} opengl"
  19187. fi
  19188. }
  19189. CheckMacGL()
  19190. {
  19191. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19192. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19193. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19194. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19195. SUMMARY_video="${SUMMARY_video} opengl"
  19196. fi
  19197. }
  19198. CheckMacGLES()
  19199. {
  19200. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19201. video_opengl_egl=yes
  19202. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19203. video_opengles_v2=yes
  19204. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19205. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19206. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19207. fi
  19208. }
  19209. CheckEmscriptenGLES()
  19210. {
  19211. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19213. $as_echo_n "checking for EGL support... " >&6; }
  19214. video_opengl_egl=no
  19215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19216. /* end confdefs.h. */
  19217. #include <EGL/egl.h>
  19218. int
  19219. main ()
  19220. {
  19221. ;
  19222. return 0;
  19223. }
  19224. _ACEOF
  19225. if ac_fn_c_try_compile "$LINENO"; then :
  19226. video_opengl_egl=yes
  19227. fi
  19228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19230. $as_echo "$video_opengl_egl" >&6; }
  19231. if test x$video_opengl_egl = xyes; then
  19232. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19233. fi
  19234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19235. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19236. video_opengles_v2=no
  19237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19238. /* end confdefs.h. */
  19239. #include <GLES2/gl2.h>
  19240. #include <GLES2/gl2ext.h>
  19241. int
  19242. main ()
  19243. {
  19244. ;
  19245. return 0;
  19246. }
  19247. _ACEOF
  19248. if ac_fn_c_try_compile "$LINENO"; then :
  19249. video_opengles_v2=yes
  19250. fi
  19251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19253. $as_echo "$video_opengles_v2" >&6; }
  19254. if test x$video_opengles_v2 = xyes; then
  19255. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19256. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19257. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19258. fi
  19259. fi
  19260. }
  19261. # Check whether --enable-video-vulkan was given.
  19262. if test "${enable_video_vulkan+set}" = set; then :
  19263. enableval=$enable_video_vulkan;
  19264. else
  19265. enable_video_vulkan=yes
  19266. fi
  19267. CheckVulkan()
  19268. {
  19269. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19270. case "$host" in
  19271. *-*-android*)
  19272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19273. /* end confdefs.h. */
  19274. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19275. #error Vulkan doesn't work on this configuration
  19276. #endif
  19277. int
  19278. main ()
  19279. {
  19280. ;
  19281. return 0;
  19282. }
  19283. _ACEOF
  19284. if ac_fn_c_try_compile "$LINENO"; then :
  19285. else
  19286. enable_video_vulkan=no
  19287. fi
  19288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19289. ;;
  19290. *-*-darwin*)
  19291. save_CFLAGS="$CFLAGS"
  19292. CFLAGS="$CFLAGS -x objective-c"
  19293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19294. /* end confdefs.h. */
  19295. #include <Cocoa/Cocoa.h>
  19296. #include <Metal/Metal.h>
  19297. #include <QuartzCore/CAMetalLayer.h>
  19298. #if !TARGET_CPU_X86_64
  19299. #error Vulkan doesn't work on this configuration
  19300. #endif
  19301. int
  19302. main ()
  19303. {
  19304. ;
  19305. return 0;
  19306. }
  19307. _ACEOF
  19308. if ac_fn_c_try_compile "$LINENO"; then :
  19309. else
  19310. enable_video_vulkan=no
  19311. fi
  19312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19313. CFLAGS="$save_CFLAGS"
  19314. ;;
  19315. *)
  19316. ;;
  19317. esac
  19318. if test x$enable_video_vulkan = xno; then
  19319. # For reasons I am totally unable to see, I get an undefined macro error if
  19320. # I put this in the AC_TRY_COMPILE.
  19321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19322. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19323. fi
  19324. fi
  19325. if test x$enable_video_vulkan = xyes; then
  19326. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19327. SUMMARY_video="${SUMMARY_video} vulkan"
  19328. fi
  19329. }
  19330. CheckInputEvents()
  19331. {
  19332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19333. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19334. use_input_events=no
  19335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19336. /* end confdefs.h. */
  19337. #include <linux/input.h>
  19338. int
  19339. main ()
  19340. {
  19341. #ifndef EVIOCGNAME
  19342. #error EVIOCGNAME() ioctl not available
  19343. #endif
  19344. ;
  19345. return 0;
  19346. }
  19347. _ACEOF
  19348. if ac_fn_c_try_compile "$LINENO"; then :
  19349. use_input_events=yes
  19350. fi
  19351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19353. $as_echo "$use_input_events" >&6; }
  19354. if test x$use_input_events = xyes; then
  19355. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19356. SUMMARY_input="${SUMMARY_input} linuxev"
  19357. fi
  19358. }
  19359. CheckInputKD()
  19360. {
  19361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19362. $as_echo_n "checking for Linux kd.h... " >&6; }
  19363. use_input_kd=no
  19364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19365. /* end confdefs.h. */
  19366. #include <linux/kd.h>
  19367. #include <linux/keyboard.h>
  19368. int
  19369. main ()
  19370. {
  19371. struct kbentry kbe;
  19372. kbe.kb_table = KG_CTRL;
  19373. ioctl(0, KDGKBENT, &kbe);
  19374. ;
  19375. return 0;
  19376. }
  19377. _ACEOF
  19378. if ac_fn_c_try_compile "$LINENO"; then :
  19379. use_input_kd=yes
  19380. fi
  19381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19383. $as_echo "$use_input_kd" >&6; }
  19384. if test x$use_input_kd = xyes; then
  19385. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19386. SUMMARY_input="${SUMMARY_input} linuxkd"
  19387. fi
  19388. }
  19389. CheckLibUDev()
  19390. {
  19391. # Check whether --enable-libudev was given.
  19392. if test "${enable_libudev+set}" = set; then :
  19393. enableval=$enable_libudev;
  19394. else
  19395. enable_libudev=yes
  19396. fi
  19397. if test x$enable_libudev = xyes; then
  19398. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19399. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19400. have_libudev_h_hdr=yes
  19401. else
  19402. have_libudev_h_hdr=no
  19403. fi
  19404. if test x$have_libudev_h_hdr = xyes; then
  19405. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19406. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19407. if test x$udev_lib != x; then
  19408. echo "-- dynamic udev -> $udev_lib"
  19409. cat >>confdefs.h <<_ACEOF
  19410. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19411. _ACEOF
  19412. fi
  19413. fi
  19414. fi
  19415. }
  19416. CheckDBus()
  19417. {
  19418. # Check whether --enable-dbus was given.
  19419. if test "${enable_dbus+set}" = set; then :
  19420. enableval=$enable_dbus;
  19421. else
  19422. enable_dbus=yes
  19423. fi
  19424. if test x$enable_dbus = xyes; then
  19425. pkg_failed=no
  19426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19427. $as_echo_n "checking for DBUS... " >&6; }
  19428. if test -n "$DBUS_CFLAGS"; then
  19429. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19430. elif test -n "$PKG_CONFIG"; then
  19431. if test -n "$PKG_CONFIG" && \
  19432. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19433. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19434. ac_status=$?
  19435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19436. test $ac_status = 0; }; then
  19437. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19438. else
  19439. pkg_failed=yes
  19440. fi
  19441. else
  19442. pkg_failed=untried
  19443. fi
  19444. if test -n "$DBUS_LIBS"; then
  19445. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19446. elif test -n "$PKG_CONFIG"; then
  19447. if test -n "$PKG_CONFIG" && \
  19448. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19449. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19450. ac_status=$?
  19451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19452. test $ac_status = 0; }; then
  19453. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19454. else
  19455. pkg_failed=yes
  19456. fi
  19457. else
  19458. pkg_failed=untried
  19459. fi
  19460. if test $pkg_failed = yes; then
  19461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19462. $as_echo "no" >&6; }
  19463. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19464. _pkg_short_errors_supported=yes
  19465. else
  19466. _pkg_short_errors_supported=no
  19467. fi
  19468. if test $_pkg_short_errors_supported = yes; then
  19469. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19470. else
  19471. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19472. fi
  19473. # Put the nasty error message in config.log where it belongs
  19474. echo "$DBUS_PKG_ERRORS" >&5
  19475. have_dbus=no
  19476. elif test $pkg_failed = untried; then
  19477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19478. $as_echo "no" >&6; }
  19479. have_dbus=no
  19480. else
  19481. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19482. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19484. $as_echo "yes" >&6; }
  19485. have_dbus=yes
  19486. fi
  19487. save_CFLAGS="$CFLAGS"
  19488. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19489. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19490. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19491. have_dbus_dbus_h_hdr=yes
  19492. else
  19493. have_dbus_dbus_h_hdr=no
  19494. fi
  19495. CFLAGS="$save_CFLAGS"
  19496. if test x$have_dbus_dbus_h_hdr = xyes; then
  19497. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19498. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19499. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19500. fi
  19501. fi
  19502. }
  19503. CheckIME()
  19504. {
  19505. # Check whether --enable-ime was given.
  19506. if test "${enable_ime+set}" = set; then :
  19507. enableval=$enable_ime;
  19508. else
  19509. enable_ime=yes
  19510. fi
  19511. if test x$enable_ime = xyes; then
  19512. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19513. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19514. fi
  19515. }
  19516. CheckIBus()
  19517. {
  19518. # Check whether --enable-ibus was given.
  19519. if test "${enable_ibus+set}" = set; then :
  19520. enableval=$enable_ibus;
  19521. else
  19522. enable_ibus=yes
  19523. fi
  19524. if test x$enable_ibus = xyes; then
  19525. pkg_failed=no
  19526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19527. $as_echo_n "checking for IBUS... " >&6; }
  19528. if test -n "$IBUS_CFLAGS"; then
  19529. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19530. elif test -n "$PKG_CONFIG"; then
  19531. if test -n "$PKG_CONFIG" && \
  19532. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19533. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19534. ac_status=$?
  19535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19536. test $ac_status = 0; }; then
  19537. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19538. else
  19539. pkg_failed=yes
  19540. fi
  19541. else
  19542. pkg_failed=untried
  19543. fi
  19544. if test -n "$IBUS_LIBS"; then
  19545. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19546. elif test -n "$PKG_CONFIG"; then
  19547. if test -n "$PKG_CONFIG" && \
  19548. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19549. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19550. ac_status=$?
  19551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19552. test $ac_status = 0; }; then
  19553. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19554. else
  19555. pkg_failed=yes
  19556. fi
  19557. else
  19558. pkg_failed=untried
  19559. fi
  19560. if test $pkg_failed = yes; then
  19561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19562. $as_echo "no" >&6; }
  19563. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19564. _pkg_short_errors_supported=yes
  19565. else
  19566. _pkg_short_errors_supported=no
  19567. fi
  19568. if test $_pkg_short_errors_supported = yes; then
  19569. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19570. else
  19571. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19572. fi
  19573. # Put the nasty error message in config.log where it belongs
  19574. echo "$IBUS_PKG_ERRORS" >&5
  19575. have_ibus=no
  19576. elif test $pkg_failed = untried; then
  19577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19578. $as_echo "no" >&6; }
  19579. have_ibus=no
  19580. else
  19581. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19582. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19584. $as_echo "yes" >&6; }
  19585. have_ibus=yes
  19586. fi
  19587. save_CFLAGS="$CFLAGS"
  19588. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19589. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19590. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19591. have_ibus_ibus_h_hdr=yes
  19592. else
  19593. have_ibus_ibus_h_hdr=no
  19594. fi
  19595. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19596. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19597. have_inotify_inotify_h_hdr=yes
  19598. else
  19599. have_inotify_inotify_h_hdr=no
  19600. fi
  19601. CFLAGS="$save_CFLAGS"
  19602. if test x$have_ibus_ibus_h_hdr = xyes; then
  19603. if test x$enable_ime != xyes; then
  19604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19605. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19606. have_ibus_ibus_h_hdr=no
  19607. elif test x$enable_dbus != xyes; then
  19608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19609. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19610. have_ibus_ibus_h_hdr=no
  19611. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19613. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19614. have_ibus_ibus_h_hdr=no
  19615. else
  19616. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19617. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19618. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19619. fi
  19620. fi
  19621. fi
  19622. }
  19623. CheckFcitx()
  19624. {
  19625. # Check whether --enable-fcitx was given.
  19626. if test "${enable_fcitx+set}" = set; then :
  19627. enableval=$enable_fcitx;
  19628. else
  19629. enable_fcitx=yes
  19630. fi
  19631. if test x$enable_fcitx = xyes; then
  19632. pkg_failed=no
  19633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
  19634. $as_echo_n "checking for FCITX... " >&6; }
  19635. if test -n "$FCITX_CFLAGS"; then
  19636. pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
  19637. elif test -n "$PKG_CONFIG"; then
  19638. if test -n "$PKG_CONFIG" && \
  19639. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19640. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19641. ac_status=$?
  19642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19643. test $ac_status = 0; }; then
  19644. pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
  19645. else
  19646. pkg_failed=yes
  19647. fi
  19648. else
  19649. pkg_failed=untried
  19650. fi
  19651. if test -n "$FCITX_LIBS"; then
  19652. pkg_cv_FCITX_LIBS="$FCITX_LIBS"
  19653. elif test -n "$PKG_CONFIG"; then
  19654. if test -n "$PKG_CONFIG" && \
  19655. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19656. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19657. ac_status=$?
  19658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19659. test $ac_status = 0; }; then
  19660. pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
  19661. else
  19662. pkg_failed=yes
  19663. fi
  19664. else
  19665. pkg_failed=untried
  19666. fi
  19667. if test $pkg_failed = yes; then
  19668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19669. $as_echo "no" >&6; }
  19670. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19671. _pkg_short_errors_supported=yes
  19672. else
  19673. _pkg_short_errors_supported=no
  19674. fi
  19675. if test $_pkg_short_errors_supported = yes; then
  19676. FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
  19677. else
  19678. FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
  19679. fi
  19680. # Put the nasty error message in config.log where it belongs
  19681. echo "$FCITX_PKG_ERRORS" >&5
  19682. have_fcitx=no
  19683. elif test $pkg_failed = untried; then
  19684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19685. $as_echo "no" >&6; }
  19686. have_fcitx=no
  19687. else
  19688. FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
  19689. FCITX_LIBS=$pkg_cv_FCITX_LIBS
  19690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19691. $as_echo "yes" >&6; }
  19692. have_fcitx=yes
  19693. fi
  19694. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19695. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19696. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19697. have_fcitx_frontend_h_hdr=yes
  19698. else
  19699. have_fcitx_frontend_h_hdr=no
  19700. fi
  19701. CFLAGS="$save_CFLAGS"
  19702. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19703. if test x$enable_ime != xyes; then
  19704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19705. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19706. have_fcitx_frontend_h_hdr=no
  19707. elif test x$enable_dbus != xyes; then
  19708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19709. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19710. have_fcitx_frontend_h_hdr=no
  19711. else
  19712. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19713. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19714. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19715. fi
  19716. fi
  19717. fi
  19718. }
  19719. CheckTslib()
  19720. {
  19721. # Check whether --enable-input-tslib was given.
  19722. if test "${enable_input_tslib+set}" = set; then :
  19723. enableval=$enable_input_tslib;
  19724. else
  19725. enable_input_tslib=yes
  19726. fi
  19727. if test x$enable_input_tslib = xyes; then
  19728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19729. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19730. enable_input_tslib=no
  19731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19732. /* end confdefs.h. */
  19733. #include "tslib.h"
  19734. int
  19735. main ()
  19736. {
  19737. ;
  19738. return 0;
  19739. }
  19740. _ACEOF
  19741. if ac_fn_c_try_compile "$LINENO"; then :
  19742. enable_input_tslib=yes
  19743. fi
  19744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19746. $as_echo "$enable_input_tslib" >&6; }
  19747. if test x$enable_input_tslib = xyes; then
  19748. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19749. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19750. SUMMARY_input="${SUMMARY_input} ts"
  19751. fi
  19752. fi
  19753. }
  19754. CheckPTHREAD()
  19755. {
  19756. # Check whether --enable-pthreads was given.
  19757. if test "${enable_pthreads+set}" = set; then :
  19758. enableval=$enable_pthreads;
  19759. else
  19760. enable_pthreads=yes
  19761. fi
  19762. # Check whether --enable-pthread-sem was given.
  19763. if test "${enable_pthread_sem+set}" = set; then :
  19764. enableval=$enable_pthread_sem;
  19765. else
  19766. enable_pthread_sem=yes
  19767. fi
  19768. case "$host" in
  19769. *-*-android*)
  19770. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19771. pthread_lib=""
  19772. ;;
  19773. *-*-linux*|*-*-uclinux*)
  19774. pthread_cflags="-D_REENTRANT"
  19775. pthread_lib="-lpthread"
  19776. ;;
  19777. *-*-bsdi*)
  19778. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19779. pthread_lib=""
  19780. ;;
  19781. *-*-darwin*)
  19782. pthread_cflags="-D_THREAD_SAFE"
  19783. # causes Carbon.p complaints?
  19784. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19785. ;;
  19786. *-*-freebsd*|*-*-dragonfly*)
  19787. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19788. pthread_lib="-pthread"
  19789. ;;
  19790. *-*-netbsd*)
  19791. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19792. pthread_lib="-lpthread"
  19793. ;;
  19794. *-*-openbsd*)
  19795. pthread_cflags="-D_REENTRANT"
  19796. pthread_lib="-pthread"
  19797. ;;
  19798. *-*-solaris2.9)
  19799. # From Solaris 9+, posix4's preferred name is rt.
  19800. pthread_cflags="-D_REENTRANT"
  19801. pthread_lib="-lpthread -lrt"
  19802. ;;
  19803. *-*-solaris2.10)
  19804. # Solaris 10+ merged pthread into libc.
  19805. pthread_cflags="-D_REENTRANT"
  19806. pthread_lib="-lrt"
  19807. ;;
  19808. *-*-solaris*)
  19809. # Solaris 11+ merged rt into libc.
  19810. pthread_cflags="-D_REENTRANT"
  19811. pthread_lib=""
  19812. ;;
  19813. *-*-sysv5*)
  19814. pthread_cflags="-D_REENTRANT -Kthread"
  19815. pthread_lib=""
  19816. ;;
  19817. *-*-aix*)
  19818. pthread_cflags="-D_REENTRANT -mthreads"
  19819. pthread_lib="-lpthread"
  19820. ;;
  19821. *-*-hpux11*)
  19822. pthread_cflags="-D_REENTRANT"
  19823. pthread_lib="-L/usr/lib -lpthread"
  19824. ;;
  19825. *-*-haiku*)
  19826. pthread_cflags="-D_REENTRANT"
  19827. pthread_lib=""
  19828. ;;
  19829. *-*-nto*)
  19830. pthread_cflags="-D_REENTRANT"
  19831. pthread_lib=""
  19832. ;;
  19833. *)
  19834. pthread_cflags="-D_REENTRANT"
  19835. pthread_lib="-lpthread"
  19836. ;;
  19837. esac
  19838. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19839. # Save the original compiler flags and libraries
  19840. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19841. # Add the pthread compiler flags and libraries
  19842. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19843. # Check to see if we have pthread support on this system
  19844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19845. $as_echo_n "checking for pthreads... " >&6; }
  19846. use_pthreads=no
  19847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19848. /* end confdefs.h. */
  19849. #include <pthread.h>
  19850. int
  19851. main ()
  19852. {
  19853. pthread_attr_t type;
  19854. pthread_attr_init(&type);
  19855. ;
  19856. return 0;
  19857. }
  19858. _ACEOF
  19859. if ac_fn_c_try_link "$LINENO"; then :
  19860. use_pthreads=yes
  19861. fi
  19862. rm -f core conftest.err conftest.$ac_objext \
  19863. conftest$ac_exeext conftest.$ac_ext
  19864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19865. $as_echo "$use_pthreads" >&6; }
  19866. # Restore the compiler flags and libraries
  19867. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19868. # Do futher testing if we have pthread support...
  19869. if test x$use_pthreads = xyes; then
  19870. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19871. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19873. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19874. # Save the original compiler flags and libraries
  19875. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19876. # Add the pthread compiler flags and libraries
  19877. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19878. # Check to see if recursive mutexes are available
  19879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19880. $as_echo_n "checking for recursive mutexes... " >&6; }
  19881. has_recursive_mutexes=no
  19882. if test x$has_recursive_mutexes = xno; then
  19883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19884. /* end confdefs.h. */
  19885. #define _GNU_SOURCE 1
  19886. #include <pthread.h>
  19887. int
  19888. main ()
  19889. {
  19890. pthread_mutexattr_t attr;
  19891. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19892. ;
  19893. return 0;
  19894. }
  19895. _ACEOF
  19896. if ac_fn_c_try_link "$LINENO"; then :
  19897. has_recursive_mutexes=yes
  19898. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19899. fi
  19900. rm -f core conftest.err conftest.$ac_objext \
  19901. conftest$ac_exeext conftest.$ac_ext
  19902. fi
  19903. if test x$has_recursive_mutexes = xno; then
  19904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19905. /* end confdefs.h. */
  19906. #define _GNU_SOURCE 1
  19907. #include <pthread.h>
  19908. int
  19909. main ()
  19910. {
  19911. pthread_mutexattr_t attr;
  19912. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19913. ;
  19914. return 0;
  19915. }
  19916. _ACEOF
  19917. if ac_fn_c_try_link "$LINENO"; then :
  19918. has_recursive_mutexes=yes
  19919. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19920. fi
  19921. rm -f core conftest.err conftest.$ac_objext \
  19922. conftest$ac_exeext conftest.$ac_ext
  19923. fi
  19924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19925. $as_echo "$has_recursive_mutexes" >&6; }
  19926. # Check to see if pthread semaphore support is missing
  19927. if test x$enable_pthread_sem = xyes; then
  19928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19929. $as_echo_n "checking for pthread semaphores... " >&6; }
  19930. have_pthread_sem=no
  19931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19932. /* end confdefs.h. */
  19933. #include <pthread.h>
  19934. #include <semaphore.h>
  19935. int
  19936. main ()
  19937. {
  19938. ;
  19939. return 0;
  19940. }
  19941. _ACEOF
  19942. if ac_fn_c_try_compile "$LINENO"; then :
  19943. have_pthread_sem=yes
  19944. fi
  19945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19947. $as_echo "$have_pthread_sem" >&6; }
  19948. fi
  19949. if test x$have_pthread_sem = xyes; then
  19950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19951. $as_echo_n "checking for sem_timedwait... " >&6; }
  19952. have_sem_timedwait=no
  19953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19954. /* end confdefs.h. */
  19955. #include <pthread.h>
  19956. #include <semaphore.h>
  19957. int
  19958. main ()
  19959. {
  19960. sem_timedwait(NULL, NULL);
  19961. ;
  19962. return 0;
  19963. }
  19964. _ACEOF
  19965. if ac_fn_c_try_link "$LINENO"; then :
  19966. have_sem_timedwait=yes
  19967. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19968. fi
  19969. rm -f core conftest.err conftest.$ac_objext \
  19970. conftest$ac_exeext conftest.$ac_ext
  19971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19972. $as_echo "$have_sem_timedwait" >&6; }
  19973. fi
  19974. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19975. "
  19976. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19977. have_pthread_np_h=yes
  19978. else
  19979. have_pthread_np_h=no
  19980. fi
  19981. if test x$have_pthread_np_h = xyes; then
  19982. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19983. fi
  19984. # Check to see if pthread naming is available
  19985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19986. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19988. /* end confdefs.h. */
  19989. /* Override any GCC internal prototype to avoid an error.
  19990. Use char because int might match the return type of a GCC
  19991. builtin and then its argument prototype would still apply. */
  19992. #ifdef __cplusplus
  19993. extern "C"
  19994. #endif
  19995. char pthread_setname_np ();
  19996. int
  19997. main ()
  19998. {
  19999. return pthread_setname_np ();
  20000. ;
  20001. return 0;
  20002. }
  20003. _ACEOF
  20004. if ac_fn_c_try_link "$LINENO"; then :
  20005. has_pthread_setname_np=yes
  20006. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20007. else
  20008. has_pthread_setname_np=no
  20009. fi
  20010. rm -f core conftest.err conftest.$ac_objext \
  20011. conftest$ac_exeext conftest.$ac_ext
  20012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20013. $as_echo "$has_pthread_setname_np" >&6; }
  20014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20015. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20017. /* end confdefs.h. */
  20018. /* Override any GCC internal prototype to avoid an error.
  20019. Use char because int might match the return type of a GCC
  20020. builtin and then its argument prototype would still apply. */
  20021. #ifdef __cplusplus
  20022. extern "C"
  20023. #endif
  20024. char pthread_set_name_np ();
  20025. int
  20026. main ()
  20027. {
  20028. return pthread_set_name_np ();
  20029. ;
  20030. return 0;
  20031. }
  20032. _ACEOF
  20033. if ac_fn_c_try_link "$LINENO"; then :
  20034. has_pthread_set_name_np=yes
  20035. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20036. else
  20037. has_pthread_set_name_np=no
  20038. fi
  20039. rm -f core conftest.err conftest.$ac_objext \
  20040. conftest$ac_exeext conftest.$ac_ext
  20041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20042. $as_echo "$has_pthread_set_name_np" >&6; }
  20043. # Restore the compiler flags and libraries
  20044. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20045. # Basic thread creation functions
  20046. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20047. # Semaphores
  20048. # We can fake these with mutexes and condition variables if necessary
  20049. if test x$have_pthread_sem = xyes; then
  20050. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20051. else
  20052. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20053. fi
  20054. # Mutexes
  20055. # We can fake these with semaphores if necessary
  20056. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20057. # Condition variables
  20058. # We can fake these with semaphores and mutexes if necessary
  20059. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20060. # Thread local storage
  20061. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20062. have_threads=yes
  20063. fi
  20064. fi
  20065. }
  20066. CheckWINDOWS()
  20067. {
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20069. $as_echo_n "checking Windows compiler... " >&6; }
  20070. have_win32_gcc=no
  20071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20072. /* end confdefs.h. */
  20073. #include <windows.h>
  20074. int
  20075. main ()
  20076. {
  20077. ;
  20078. return 0;
  20079. }
  20080. _ACEOF
  20081. if ac_fn_c_try_compile "$LINENO"; then :
  20082. have_win32_gcc=yes
  20083. fi
  20084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20086. $as_echo "$have_win32_gcc" >&6; }
  20087. if test x$have_win32_gcc != xyes; then
  20088. as_fn_error $? "
  20089. *** Your compiler ($CC) does not produce Windows executables!
  20090. " "$LINENO" 5
  20091. fi
  20092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20093. $as_echo_n "checking Windows CE... " >&6; }
  20094. have_wince=no
  20095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20096. /* end confdefs.h. */
  20097. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20098. #error This is not Windows CE
  20099. #endif
  20100. int
  20101. main ()
  20102. {
  20103. ;
  20104. return 0;
  20105. }
  20106. _ACEOF
  20107. if ac_fn_c_try_compile "$LINENO"; then :
  20108. have_wince=yes
  20109. as_fn_error $? "
  20110. *** Sorry, Windows CE is no longer supported.
  20111. " "$LINENO" 5
  20112. fi
  20113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20115. $as_echo "$have_wince" >&6; }
  20116. # This fixes Windows stack alignment with newer GCC
  20117. CheckStackBoundary
  20118. }
  20119. CheckDIRECTX()
  20120. {
  20121. # Check whether --enable-directx was given.
  20122. if test "${enable_directx+set}" = set; then :
  20123. enableval=$enable_directx;
  20124. else
  20125. enable_directx=yes
  20126. fi
  20127. if test x$enable_directx = xyes; then
  20128. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20129. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20130. have_d3d=yes
  20131. fi
  20132. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20133. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20134. have_d3d11=yes
  20135. fi
  20136. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20137. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20138. have_ddraw=yes
  20139. fi
  20140. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20141. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20142. have_dsound=yes
  20143. fi
  20144. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20145. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20146. have_dinput=yes
  20147. fi
  20148. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20149. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20150. have_dxgi=yes
  20151. fi
  20152. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20153. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20154. have_xinput=yes
  20155. fi
  20156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20157. /* end confdefs.h. */
  20158. #include <windows.h>
  20159. #include <xinput.h>
  20160. XINPUT_GAMEPAD_EX x1;
  20161. int
  20162. main ()
  20163. {
  20164. ;
  20165. return 0;
  20166. }
  20167. _ACEOF
  20168. if ac_fn_c_try_compile "$LINENO"; then :
  20169. have_xinput_gamepadex=yes
  20170. fi
  20171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20173. /* end confdefs.h. */
  20174. #include <windows.h>
  20175. #include <xinput.h>
  20176. XINPUT_STATE_EX s1;
  20177. int
  20178. main ()
  20179. {
  20180. ;
  20181. return 0;
  20182. }
  20183. _ACEOF
  20184. if ac_fn_c_try_compile "$LINENO"; then :
  20185. have_xinput_stateex=yes
  20186. fi
  20187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20188. if test x$have_ddraw = xyes; then
  20189. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20190. fi
  20191. if test x$have_dinput = xyes; then
  20192. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20193. fi
  20194. if test x$have_dsound = xyes; then
  20195. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20196. fi
  20197. if test x$have_dxgi = xyes; then
  20198. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20199. fi
  20200. if test x$have_xinput = xyes; then
  20201. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20202. fi
  20203. if test x$have_xinput_gamepadex = xyes; then
  20204. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20205. fi
  20206. if test x$have_xinput_stateex = xyes; then
  20207. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20208. fi
  20209. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20210. # FIXME: ...so force it off for now.
  20211. case "$host" in
  20212. *-*-cygwin*)
  20213. have_dinput=false
  20214. ;;
  20215. esac
  20216. fi
  20217. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20218. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20219. have_wasapi=yes
  20220. fi
  20221. if test x$have_wasapi = xyes; then
  20222. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20223. fi
  20224. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20225. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20226. else
  20227. have_wasapi=no
  20228. fi
  20229. if test x$have_wasapi = xyes; then
  20230. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20231. fi
  20232. # Check whether --enable-wasapi was given.
  20233. if test "${enable_wasapi+set}" = set; then :
  20234. enableval=$enable_wasapi;
  20235. else
  20236. enable_wasapi=yes
  20237. fi
  20238. }
  20239. CheckDLOPEN()
  20240. {
  20241. # Check whether --enable-sdl-dlopen was given.
  20242. if test "${enable_sdl_dlopen+set}" = set; then :
  20243. enableval=$enable_sdl_dlopen;
  20244. else
  20245. enable_sdl_dlopen=yes
  20246. fi
  20247. if test x$enable_sdl_dlopen = xyes; then
  20248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20249. $as_echo_n "checking for dlopen... " >&6; }
  20250. have_dlopen=no
  20251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20252. /* end confdefs.h. */
  20253. #include <dlfcn.h>
  20254. int
  20255. main ()
  20256. {
  20257. void *handle = dlopen("", RTLD_NOW);
  20258. const char *loaderror = (char *) dlerror();
  20259. ;
  20260. return 0;
  20261. }
  20262. _ACEOF
  20263. if ac_fn_c_try_compile "$LINENO"; then :
  20264. have_dlopen=yes
  20265. fi
  20266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20268. $as_echo "$have_dlopen" >&6; }
  20269. if test x$have_dlopen = xyes; then
  20270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20271. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20272. if ${ac_cv_lib_c_dlopen+:} false; then :
  20273. $as_echo_n "(cached) " >&6
  20274. else
  20275. ac_check_lib_save_LIBS=$LIBS
  20276. LIBS="-lc $LIBS"
  20277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20278. /* end confdefs.h. */
  20279. /* Override any GCC internal prototype to avoid an error.
  20280. Use char because int might match the return type of a GCC
  20281. builtin and then its argument prototype would still apply. */
  20282. #ifdef __cplusplus
  20283. extern "C"
  20284. #endif
  20285. char dlopen ();
  20286. int
  20287. main ()
  20288. {
  20289. return dlopen ();
  20290. ;
  20291. return 0;
  20292. }
  20293. _ACEOF
  20294. if ac_fn_c_try_link "$LINENO"; then :
  20295. ac_cv_lib_c_dlopen=yes
  20296. else
  20297. ac_cv_lib_c_dlopen=no
  20298. fi
  20299. rm -f core conftest.err conftest.$ac_objext \
  20300. conftest$ac_exeext conftest.$ac_ext
  20301. LIBS=$ac_check_lib_save_LIBS
  20302. fi
  20303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20304. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20305. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20306. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20307. else
  20308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20309. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20310. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20311. $as_echo_n "(cached) " >&6
  20312. else
  20313. ac_check_lib_save_LIBS=$LIBS
  20314. LIBS="-ldl $LIBS"
  20315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20316. /* end confdefs.h. */
  20317. /* Override any GCC internal prototype to avoid an error.
  20318. Use char because int might match the return type of a GCC
  20319. builtin and then its argument prototype would still apply. */
  20320. #ifdef __cplusplus
  20321. extern "C"
  20322. #endif
  20323. char dlopen ();
  20324. int
  20325. main ()
  20326. {
  20327. return dlopen ();
  20328. ;
  20329. return 0;
  20330. }
  20331. _ACEOF
  20332. if ac_fn_c_try_link "$LINENO"; then :
  20333. ac_cv_lib_dl_dlopen=yes
  20334. else
  20335. ac_cv_lib_dl_dlopen=no
  20336. fi
  20337. rm -f core conftest.err conftest.$ac_objext \
  20338. conftest$ac_exeext conftest.$ac_ext
  20339. LIBS=$ac_check_lib_save_LIBS
  20340. fi
  20341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20342. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20343. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20345. else
  20346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20347. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20348. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20349. $as_echo_n "(cached) " >&6
  20350. else
  20351. ac_check_lib_save_LIBS=$LIBS
  20352. LIBS="-lltdl $LIBS"
  20353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20354. /* end confdefs.h. */
  20355. /* Override any GCC internal prototype to avoid an error.
  20356. Use char because int might match the return type of a GCC
  20357. builtin and then its argument prototype would still apply. */
  20358. #ifdef __cplusplus
  20359. extern "C"
  20360. #endif
  20361. char dlopen ();
  20362. int
  20363. main ()
  20364. {
  20365. return dlopen ();
  20366. ;
  20367. return 0;
  20368. }
  20369. _ACEOF
  20370. if ac_fn_c_try_link "$LINENO"; then :
  20371. ac_cv_lib_ltdl_dlopen=yes
  20372. else
  20373. ac_cv_lib_ltdl_dlopen=no
  20374. fi
  20375. rm -f core conftest.err conftest.$ac_objext \
  20376. conftest$ac_exeext conftest.$ac_ext
  20377. LIBS=$ac_check_lib_save_LIBS
  20378. fi
  20379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20380. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20381. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20382. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20383. fi
  20384. fi
  20385. fi
  20386. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20387. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20388. have_loadso=yes
  20389. fi
  20390. fi
  20391. }
  20392. CheckUSBHID()
  20393. {
  20394. case "$host" in
  20395. *-*-*bsd*)
  20396. if test x$enable_joystick = xyes; then
  20397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20398. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20399. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20400. $as_echo_n "(cached) " >&6
  20401. else
  20402. ac_check_lib_save_LIBS=$LIBS
  20403. LIBS="-lusbhid $LIBS"
  20404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20405. /* end confdefs.h. */
  20406. /* Override any GCC internal prototype to avoid an error.
  20407. Use char because int might match the return type of a GCC
  20408. builtin and then its argument prototype would still apply. */
  20409. #ifdef __cplusplus
  20410. extern "C"
  20411. #endif
  20412. char hid_init ();
  20413. int
  20414. main ()
  20415. {
  20416. return hid_init ();
  20417. ;
  20418. return 0;
  20419. }
  20420. _ACEOF
  20421. if ac_fn_c_try_link "$LINENO"; then :
  20422. ac_cv_lib_usbhid_hid_init=yes
  20423. else
  20424. ac_cv_lib_usbhid_hid_init=no
  20425. fi
  20426. rm -f core conftest.err conftest.$ac_objext \
  20427. conftest$ac_exeext conftest.$ac_ext
  20428. LIBS=$ac_check_lib_save_LIBS
  20429. fi
  20430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20431. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20432. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20433. have_libusbhid=yes
  20434. fi
  20435. if test x$have_libusbhid = xyes; then
  20436. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20437. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20438. USB_CFLAGS="-DHAVE_USBHID_H"
  20439. fi
  20440. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20441. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20442. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20443. fi
  20444. USB_LIBS="$USB_LIBS -lusbhid"
  20445. else
  20446. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20447. if test "x$ac_cv_header_usb_h" = xyes; then :
  20448. USB_CFLAGS="-DHAVE_USB_H"
  20449. fi
  20450. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20451. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20452. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20453. fi
  20454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20455. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20456. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20457. $as_echo_n "(cached) " >&6
  20458. else
  20459. ac_check_lib_save_LIBS=$LIBS
  20460. LIBS="-lusb $LIBS"
  20461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20462. /* end confdefs.h. */
  20463. /* Override any GCC internal prototype to avoid an error.
  20464. Use char because int might match the return type of a GCC
  20465. builtin and then its argument prototype would still apply. */
  20466. #ifdef __cplusplus
  20467. extern "C"
  20468. #endif
  20469. char hid_init ();
  20470. int
  20471. main ()
  20472. {
  20473. return hid_init ();
  20474. ;
  20475. return 0;
  20476. }
  20477. _ACEOF
  20478. if ac_fn_c_try_link "$LINENO"; then :
  20479. ac_cv_lib_usb_hid_init=yes
  20480. else
  20481. ac_cv_lib_usb_hid_init=no
  20482. fi
  20483. rm -f core conftest.err conftest.$ac_objext \
  20484. conftest$ac_exeext conftest.$ac_ext
  20485. LIBS=$ac_check_lib_save_LIBS
  20486. fi
  20487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20488. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20489. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20490. USB_LIBS="$USB_LIBS -lusb"
  20491. fi
  20492. fi
  20493. save_CFLAGS="$CFLAGS"
  20494. CFLAGS="$CFLAGS $USB_CFLAGS"
  20495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20496. $as_echo_n "checking for usbhid... " >&6; }
  20497. have_usbhid=no
  20498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20499. /* end confdefs.h. */
  20500. #include <sys/types.h>
  20501. #if defined(HAVE_USB_H)
  20502. #include <usb.h>
  20503. #endif
  20504. #ifdef __DragonFly__
  20505. # include <bus/usb/usb.h>
  20506. # include <bus/usb/usbhid.h>
  20507. #else
  20508. # include <dev/usb/usb.h>
  20509. # include <dev/usb/usbhid.h>
  20510. #endif
  20511. #if defined(HAVE_USBHID_H)
  20512. #include <usbhid.h>
  20513. #elif defined(HAVE_LIBUSB_H)
  20514. #include <libusb.h>
  20515. #elif defined(HAVE_LIBUSBHID_H)
  20516. #include <libusbhid.h>
  20517. #endif
  20518. int
  20519. main ()
  20520. {
  20521. struct report_desc *repdesc;
  20522. struct usb_ctl_report *repbuf;
  20523. hid_kind_t hidkind;
  20524. ;
  20525. return 0;
  20526. }
  20527. _ACEOF
  20528. if ac_fn_c_try_compile "$LINENO"; then :
  20529. have_usbhid=yes
  20530. fi
  20531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20533. $as_echo "$have_usbhid" >&6; }
  20534. if test x$have_usbhid = xyes; then
  20535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20536. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20537. have_usbhid_ucr_data=no
  20538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20539. /* end confdefs.h. */
  20540. #include <sys/types.h>
  20541. #if defined(HAVE_USB_H)
  20542. #include <usb.h>
  20543. #endif
  20544. #ifdef __DragonFly__
  20545. # include <bus/usb/usb.h>
  20546. # include <bus/usb/usbhid.h>
  20547. #else
  20548. # include <dev/usb/usb.h>
  20549. # include <dev/usb/usbhid.h>
  20550. #endif
  20551. #if defined(HAVE_USBHID_H)
  20552. #include <usbhid.h>
  20553. #elif defined(HAVE_LIBUSB_H)
  20554. #include <libusb.h>
  20555. #elif defined(HAVE_LIBUSBHID_H)
  20556. #include <libusbhid.h>
  20557. #endif
  20558. int
  20559. main ()
  20560. {
  20561. struct usb_ctl_report buf;
  20562. if (buf.ucr_data) { }
  20563. ;
  20564. return 0;
  20565. }
  20566. _ACEOF
  20567. if ac_fn_c_try_compile "$LINENO"; then :
  20568. have_usbhid_ucr_data=yes
  20569. fi
  20570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20571. if test x$have_usbhid_ucr_data = xyes; then
  20572. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20573. fi
  20574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20575. $as_echo "$have_usbhid_ucr_data" >&6; }
  20576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20577. $as_echo_n "checking for new usbhid API... " >&6; }
  20578. have_usbhid_new=no
  20579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20580. /* end confdefs.h. */
  20581. #include <sys/types.h>
  20582. #if defined(HAVE_USB_H)
  20583. #include <usb.h>
  20584. #endif
  20585. #ifdef __DragonFly__
  20586. #include <bus/usb/usb.h>
  20587. #include <bus/usb/usbhid.h>
  20588. #else
  20589. #include <dev/usb/usb.h>
  20590. #include <dev/usb/usbhid.h>
  20591. #endif
  20592. #if defined(HAVE_USBHID_H)
  20593. #include <usbhid.h>
  20594. #elif defined(HAVE_LIBUSB_H)
  20595. #include <libusb.h>
  20596. #elif defined(HAVE_LIBUSBHID_H)
  20597. #include <libusbhid.h>
  20598. #endif
  20599. int
  20600. main ()
  20601. {
  20602. report_desc_t d;
  20603. hid_start_parse(d, 1, 1);
  20604. ;
  20605. return 0;
  20606. }
  20607. _ACEOF
  20608. if ac_fn_c_try_compile "$LINENO"; then :
  20609. have_usbhid_new=yes
  20610. fi
  20611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20612. if test x$have_usbhid_new = xyes; then
  20613. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20614. fi
  20615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20616. $as_echo "$have_usbhid_new" >&6; }
  20617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20618. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20619. have_machine_joystick=no
  20620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20621. /* end confdefs.h. */
  20622. #include <machine/joystick.h>
  20623. int
  20624. main ()
  20625. {
  20626. struct joystick t;
  20627. ;
  20628. return 0;
  20629. }
  20630. _ACEOF
  20631. if ac_fn_c_try_compile "$LINENO"; then :
  20632. have_machine_joystick=yes
  20633. fi
  20634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20635. if test x$have_machine_joystick = xyes; then
  20636. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20637. fi
  20638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20639. $as_echo "$have_machine_joystick" >&6; }
  20640. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20641. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20642. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20643. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20644. have_joystick=yes
  20645. fi
  20646. CFLAGS="$save_CFLAGS"
  20647. fi
  20648. ;;
  20649. esac
  20650. }
  20651. CheckHIDAPI()
  20652. {
  20653. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20654. # so we'll just use libusb when it's available.
  20655. case "$host" in
  20656. # libusb does not support iOS
  20657. arm*-apple-darwin* | *-ios-* )
  20658. skiplibusb=yes
  20659. ;;
  20660. # On the other hand, *BSD specifically uses libusb only
  20661. *-*-*bsd* )
  20662. onlylibusb=yes
  20663. ;;
  20664. esac
  20665. # Check whether --enable-hidapi was given.
  20666. if test "${enable_hidapi+set}" = set; then :
  20667. enableval=$enable_hidapi;
  20668. else
  20669. enable_hidapi=no
  20670. fi
  20671. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20672. if test x$skiplibusb = xyes; then
  20673. hidapi_support=yes
  20674. else
  20675. pkg_failed=no
  20676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20677. $as_echo_n "checking for LIBUSB... " >&6; }
  20678. if test -n "$LIBUSB_CFLAGS"; then
  20679. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20680. elif test -n "$PKG_CONFIG"; then
  20681. if test -n "$PKG_CONFIG" && \
  20682. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20683. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20684. ac_status=$?
  20685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20686. test $ac_status = 0; }; then
  20687. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20688. else
  20689. pkg_failed=yes
  20690. fi
  20691. else
  20692. pkg_failed=untried
  20693. fi
  20694. if test -n "$LIBUSB_LIBS"; then
  20695. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20696. elif test -n "$PKG_CONFIG"; then
  20697. if test -n "$PKG_CONFIG" && \
  20698. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20699. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20700. ac_status=$?
  20701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20702. test $ac_status = 0; }; then
  20703. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20704. else
  20705. pkg_failed=yes
  20706. fi
  20707. else
  20708. pkg_failed=untried
  20709. fi
  20710. if test $pkg_failed = yes; then
  20711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20712. $as_echo "no" >&6; }
  20713. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20714. _pkg_short_errors_supported=yes
  20715. else
  20716. _pkg_short_errors_supported=no
  20717. fi
  20718. if test $_pkg_short_errors_supported = yes; then
  20719. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20720. else
  20721. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20722. fi
  20723. # Put the nasty error message in config.log where it belongs
  20724. echo "$LIBUSB_PKG_ERRORS" >&5
  20725. have_libusb=no
  20726. elif test $pkg_failed = untried; then
  20727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20728. $as_echo "no" >&6; }
  20729. have_libusb=no
  20730. else
  20731. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20732. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20734. $as_echo "yes" >&6; }
  20735. have_libusb=yes
  20736. fi
  20737. save_CFLAGS="$CFLAGS"
  20738. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20739. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20740. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20741. have_libusb_h=yes
  20742. fi
  20743. CFLAGS="$save_CFLAGS"
  20744. if test x$have_libusb_h = xyes; then
  20745. hidapi_support=yes
  20746. elif test x$onlylibusb = xyes; then
  20747. hidapi_support=no
  20748. else
  20749. hidapi_support=yes
  20750. fi
  20751. fi
  20752. if test x$hidapi_support = xyes; then
  20753. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20754. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20755. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20756. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20757. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20758. if test x$have_libusb_h = xyes; then
  20759. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20760. if test x$onlylibusb = xyes; then
  20761. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20762. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20763. else
  20764. if test x$have_loadso != xyes; then
  20765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20766. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20767. fi
  20768. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20769. libusb_lib=""
  20770. case "$host" in
  20771. *-*-darwin* )
  20772. libusb_lib="libusb-1.0.0.dylib"
  20773. ;;
  20774. *-*-cygwin* | *-*-mingw32* )
  20775. libusb_lib="libusb-1.0.dll"
  20776. ;;
  20777. esac
  20778. if test x$libusb_lib = x; then
  20779. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20780. fi
  20781. cat >>confdefs.h <<_ACEOF
  20782. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20783. _ACEOF
  20784. fi
  20785. fi
  20786. fi
  20787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20788. $as_echo_n "checking for hidapi support... " >&6; }
  20789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20790. $as_echo "$hidapi_support" >&6; }
  20791. fi
  20792. }
  20793. CheckClockGettime()
  20794. {
  20795. # Check whether --enable-clock_gettime was given.
  20796. if test "${enable_clock_gettime+set}" = set; then :
  20797. enableval=$enable_clock_gettime;
  20798. else
  20799. enable_clock_gettime=yes
  20800. fi
  20801. if test x$enable_clock_gettime = xyes; then
  20802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20803. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20804. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20805. $as_echo_n "(cached) " >&6
  20806. else
  20807. ac_check_lib_save_LIBS=$LIBS
  20808. LIBS="-lrt $LIBS"
  20809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20810. /* end confdefs.h. */
  20811. /* Override any GCC internal prototype to avoid an error.
  20812. Use char because int might match the return type of a GCC
  20813. builtin and then its argument prototype would still apply. */
  20814. #ifdef __cplusplus
  20815. extern "C"
  20816. #endif
  20817. char clock_gettime ();
  20818. int
  20819. main ()
  20820. {
  20821. return clock_gettime ();
  20822. ;
  20823. return 0;
  20824. }
  20825. _ACEOF
  20826. if ac_fn_c_try_link "$LINENO"; then :
  20827. ac_cv_lib_rt_clock_gettime=yes
  20828. else
  20829. ac_cv_lib_rt_clock_gettime=no
  20830. fi
  20831. rm -f core conftest.err conftest.$ac_objext \
  20832. conftest$ac_exeext conftest.$ac_ext
  20833. LIBS=$ac_check_lib_save_LIBS
  20834. fi
  20835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20836. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20837. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20838. have_clock_gettime=yes
  20839. fi
  20840. if test x$have_clock_gettime = xyes; then
  20841. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20842. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20843. else
  20844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20845. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20846. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20847. $as_echo_n "(cached) " >&6
  20848. else
  20849. ac_check_lib_save_LIBS=$LIBS
  20850. LIBS="-lc $LIBS"
  20851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20852. /* end confdefs.h. */
  20853. /* Override any GCC internal prototype to avoid an error.
  20854. Use char because int might match the return type of a GCC
  20855. builtin and then its argument prototype would still apply. */
  20856. #ifdef __cplusplus
  20857. extern "C"
  20858. #endif
  20859. char clock_gettime ();
  20860. int
  20861. main ()
  20862. {
  20863. return clock_gettime ();
  20864. ;
  20865. return 0;
  20866. }
  20867. _ACEOF
  20868. if ac_fn_c_try_link "$LINENO"; then :
  20869. ac_cv_lib_c_clock_gettime=yes
  20870. else
  20871. ac_cv_lib_c_clock_gettime=no
  20872. fi
  20873. rm -f core conftest.err conftest.$ac_objext \
  20874. conftest$ac_exeext conftest.$ac_ext
  20875. LIBS=$ac_check_lib_save_LIBS
  20876. fi
  20877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20878. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20879. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20880. have_clock_gettime=yes
  20881. fi
  20882. if test x$have_clock_gettime = xyes; then
  20883. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20884. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20885. fi
  20886. fi
  20887. fi
  20888. }
  20889. CheckLinuxVersion()
  20890. {
  20891. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20892. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20893. have_linux_version_h=yes
  20894. fi
  20895. if test x$have_linux_version_h = xyes; then
  20896. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20897. fi
  20898. }
  20899. CheckRPATH()
  20900. {
  20901. # Check whether --enable-rpath was given.
  20902. if test "${enable_rpath+set}" = set; then :
  20903. enableval=$enable_rpath;
  20904. else
  20905. enable_rpath=yes
  20906. fi
  20907. }
  20908. CheckEventSignals()
  20909. {
  20910. # Check whether --enable-backgrounding-signal was given.
  20911. if test "${enable_backgrounding_signal+set}" = set; then :
  20912. enableval=$enable_backgrounding_signal;
  20913. else
  20914. enable_backgrounding_signal=no
  20915. fi
  20916. if test x$enable_backgrounding_signal != xno; then
  20917. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20918. fi
  20919. # Check whether --enable-foregrounding-signal was given.
  20920. if test "${enable_foregrounding_signal+set}" = set; then :
  20921. enableval=$enable_foregrounding_signal;
  20922. else
  20923. enable_foregrounding_signal=no
  20924. fi
  20925. if test x$enable_foregrounding_signal != xno; then
  20926. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20927. fi
  20928. }
  20929. CheckVirtualJoystick()
  20930. {
  20931. # Check whether --enable-joystick-virtual was given.
  20932. if test "${enable_joystick_virtual+set}" = set; then :
  20933. enableval=$enable_joystick_virtual;
  20934. else
  20935. enable_joystick_virtual=no
  20936. fi
  20937. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  20938. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  20939. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  20940. have_joystick_virtual=yes
  20941. fi
  20942. }
  20943. CheckWarnAll
  20944. CheckNoStrictAliasing
  20945. CheckEventSignals
  20946. case "$host" in
  20947. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20948. case "$host" in
  20949. *-*-android*)
  20950. # Android
  20951. ARCH=android
  20952. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20953. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20954. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20955. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20956. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20957. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20958. if test x$enable_video = xyes; then
  20959. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20960. # FIXME: confdefs? Not AC_DEFINE?
  20961. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20962. SUMMARY_video="${SUMMARY_video} android"
  20963. fi
  20964. ;;
  20965. *-*-linux*) ARCH=linux ;;
  20966. *-*-uclinux*) ARCH=linux ;;
  20967. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20968. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20969. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20970. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20971. *-*-bsdi*) ARCH=bsdi ;;
  20972. *-*-freebsd*) ARCH=freebsd ;;
  20973. *-*-dragonfly*) ARCH=freebsd ;;
  20974. *-*-netbsd*) ARCH=netbsd ;;
  20975. *-*-openbsd*) ARCH=openbsd ;;
  20976. *-*-sysv5*) ARCH=sysv5 ;;
  20977. *-*-solaris*) ARCH=solaris ;;
  20978. *-*-hpux*) ARCH=hpux ;;
  20979. *-*-aix*) ARCH=aix ;;
  20980. *-*-minix*) ARCH=minix ;;
  20981. *-*-nto*) ARCH=nto
  20982. CheckQNXVideo
  20983. ;;
  20984. esac
  20985. CheckVisibilityHidden
  20986. CheckDeclarationAfterStatement
  20987. CheckDummyVideo
  20988. CheckDiskAudio
  20989. CheckDummyAudio
  20990. CheckDLOPEN
  20991. CheckARM
  20992. CheckNEON
  20993. CheckOSS
  20994. CheckALSA
  20995. CheckPulseAudio
  20996. CheckJACK
  20997. CheckARTSC
  20998. CheckESD
  20999. CheckNAS
  21000. CheckSNDIO
  21001. CheckFusionSound
  21002. CheckLibSampleRate
  21003. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21004. CheckRPI
  21005. CheckX11
  21006. CheckDirectFB
  21007. CheckKMSDRM
  21008. CheckOpenGLX11
  21009. CheckOpenGLESX11
  21010. CheckVulkan
  21011. CheckWayland
  21012. CheckInputEvents
  21013. CheckLibUDev
  21014. CheckDBus
  21015. CheckIME
  21016. CheckIBus
  21017. CheckFcitx
  21018. case $ARCH in
  21019. linux)
  21020. CheckInputKD
  21021. ;;
  21022. esac
  21023. CheckTslib
  21024. CheckUSBHID
  21025. CheckHIDAPI
  21026. CheckPTHREAD
  21027. CheckClockGettime
  21028. CheckLinuxVersion
  21029. CheckRPATH
  21030. CheckVivanteVideo
  21031. # Set up files for the audio library
  21032. if test x$enable_audio = xyes; then
  21033. case $ARCH in
  21034. sysv5|solaris|hpux)
  21035. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21036. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21037. SUMMARY_audio="${SUMMARY_audio} sun"
  21038. have_audio=yes
  21039. ;;
  21040. netbsd) # Don't use this on OpenBSD, it's busted.
  21041. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21042. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21043. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21044. have_audio=yes
  21045. ;;
  21046. aix)
  21047. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21048. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21049. SUMMARY_audio="${SUMMARY_audio} paudio"
  21050. have_audio=yes
  21051. ;;
  21052. android)
  21053. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21054. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21055. SUMMARY_audio="${SUMMARY_audio} android"
  21056. have_audio=yes
  21057. ;;
  21058. nto)
  21059. CheckQNXAudio
  21060. ;;
  21061. esac
  21062. fi
  21063. # Set up files for the joystick library
  21064. if test x$enable_joystick = xyes; then
  21065. case $ARCH in
  21066. linux)
  21067. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21068. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21069. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21070. have_joystick=yes
  21071. ;;
  21072. android)
  21073. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21074. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21075. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21076. have_joystick=yes
  21077. ;;
  21078. esac
  21079. fi
  21080. # Set up files for the haptic library
  21081. if test x$enable_haptic = xyes; then
  21082. case $ARCH in
  21083. linux)
  21084. if test x$use_input_events = xyes; then
  21085. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21086. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21087. have_haptic=yes
  21088. fi
  21089. ;;
  21090. android)
  21091. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21092. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21093. have_haptic=yes
  21094. ;;
  21095. esac
  21096. fi
  21097. # Set up files for the sensor library
  21098. if test x$enable_sensor = xyes; then
  21099. case $ARCH in
  21100. android)
  21101. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21102. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21103. have_sensor=yes
  21104. ;;
  21105. esac
  21106. fi
  21107. # Set up files for the power library
  21108. if test x$enable_power = xyes; then
  21109. case $ARCH in
  21110. linux)
  21111. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21112. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21113. have_power=yes
  21114. ;;
  21115. android)
  21116. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21117. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21118. have_power=yes
  21119. ;;
  21120. esac
  21121. fi
  21122. # Set up files for the filesystem library
  21123. if test x$enable_filesystem = xyes; then
  21124. case $ARCH in
  21125. android)
  21126. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21127. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21128. have_filesystem=yes
  21129. ;;
  21130. *)
  21131. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21132. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21133. have_filesystem=yes
  21134. ;;
  21135. esac
  21136. fi
  21137. # Set up files for the timer library
  21138. if test x$enable_timers = xyes; then
  21139. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21140. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21141. have_timers=yes
  21142. fi
  21143. # Set up files for udev hotplugging support
  21144. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21145. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21146. fi
  21147. # Set up files for evdev input
  21148. if test x$use_input_events = xyes; then
  21149. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21150. fi
  21151. # Set up other core UNIX files
  21152. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21153. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21154. ;;
  21155. *-*-cygwin* | *-*-mingw32*)
  21156. ARCH=win32
  21157. if test "$build" != "$host"; then # cross-compiling
  21158. # Default cross-compile location
  21159. ac_default_prefix=/usr/local/cross-tools/$host
  21160. else
  21161. # Look for the location of the tools and install there
  21162. if test "$BUILD_PREFIX" != ""; then
  21163. ac_default_prefix=$BUILD_PREFIX
  21164. fi
  21165. fi
  21166. CheckDeclarationAfterStatement
  21167. CheckDummyVideo
  21168. CheckDiskAudio
  21169. CheckDummyAudio
  21170. CheckWINDOWS
  21171. CheckWINDOWSGL
  21172. CheckWINDOWSGLES
  21173. CheckVulkan
  21174. CheckDIRECTX
  21175. CheckHIDAPI
  21176. # Set up the core platform files
  21177. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21178. # Set up files for the video library
  21179. if test x$enable_video = xyes; then
  21180. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21181. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21182. have_video=yes
  21183. # Check whether --enable-render-d3d was given.
  21184. if test "${enable_render_d3d+set}" = set; then :
  21185. enableval=$enable_render_d3d;
  21186. else
  21187. enable_render_d3d=yes
  21188. fi
  21189. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21190. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21191. SUMMARY_video="${SUMMARY_video} d3d9"
  21192. fi
  21193. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21194. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21195. SUMMARY_video="${SUMMARY_video} d3d11"
  21196. fi
  21197. fi
  21198. # Set up files for the audio library
  21199. if test x$enable_audio = xyes; then
  21200. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21201. SUMMARY_audio="${SUMMARY_audio} winmm"
  21202. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21203. if test x$have_dsound = xyes; then
  21204. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21205. SUMMARY_audio="${SUMMARY_audio} directsound"
  21206. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21207. fi
  21208. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21209. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21210. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21211. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21212. fi
  21213. have_audio=yes
  21214. fi
  21215. # Set up files for the joystick library
  21216. if test x$enable_joystick = xyes; then
  21217. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21218. if test x$have_xinput = xyes; then
  21219. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21220. fi
  21221. if test x$have_dinput = xyes; then
  21222. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21223. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21224. fi
  21225. else
  21226. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21227. fi
  21228. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21229. have_joystick=yes
  21230. fi
  21231. if test x$enable_haptic = xyes; then
  21232. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21233. if test x$have_xinput = xyes; then
  21234. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21235. fi
  21236. if test x$have_dinput = xyes; then
  21237. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21238. fi
  21239. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21240. have_haptic=yes
  21241. fi
  21242. fi
  21243. if test x$enable_power = xyes; then
  21244. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21245. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21246. have_power=yes
  21247. fi
  21248. if test x$enable_filesystem = xyes; then
  21249. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21250. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21251. have_filesystem=yes
  21252. fi
  21253. # Set up files for the thread library
  21254. if test x$enable_threads = xyes; then
  21255. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21256. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21257. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21258. have_threads=yes
  21259. fi
  21260. # Set up files for the timer library
  21261. if test x$enable_timers = xyes; then
  21262. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21263. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21264. have_timers=yes
  21265. fi
  21266. # Set up files for the shared object loading library
  21267. if test x$enable_loadso = xyes; then
  21268. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21269. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21270. have_loadso=yes
  21271. fi
  21272. # Set up the system libraries we need
  21273. if test -f /lib/w32api/libuuid.a; then
  21274. LIBUUID=/lib/w32api/libuuid.a
  21275. else
  21276. LIBUUID=-luuid
  21277. fi
  21278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21279. # The Windows platform requires special setup
  21280. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21281. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21282. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21283. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21284. # Check to see if this is a mingw or cygwin build
  21285. have_mingw32=
  21286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21287. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21288. if ${ac_cv_lib_mingw32_main+:} false; then :
  21289. $as_echo_n "(cached) " >&6
  21290. else
  21291. ac_check_lib_save_LIBS=$LIBS
  21292. LIBS="-lmingw32 $LIBS"
  21293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21294. /* end confdefs.h. */
  21295. int
  21296. main ()
  21297. {
  21298. return main ();
  21299. ;
  21300. return 0;
  21301. }
  21302. _ACEOF
  21303. if ac_fn_c_try_link "$LINENO"; then :
  21304. ac_cv_lib_mingw32_main=yes
  21305. else
  21306. ac_cv_lib_mingw32_main=no
  21307. fi
  21308. rm -f core conftest.err conftest.$ac_objext \
  21309. conftest$ac_exeext conftest.$ac_ext
  21310. LIBS=$ac_check_lib_save_LIBS
  21311. fi
  21312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21313. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21314. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21315. have_mingw32=yes
  21316. fi
  21317. if test x$have_mingw32 = xyes; then
  21318. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21319. else
  21320. SDL_LIBS="-lcygwin $SDL_LIBS"
  21321. fi
  21322. ;;
  21323. *-*-beos*)
  21324. as_fn_error $? "
  21325. *** BeOS support has been removed as of SDL 2.0.2.
  21326. " "$LINENO" 5
  21327. ;;
  21328. *-*-haiku*)
  21329. ARCH=haiku
  21330. ac_default_prefix=/boot/system
  21331. CheckDummyVideo
  21332. CheckDiskAudio
  21333. CheckDummyAudio
  21334. CheckDLOPEN
  21335. CheckHaikuVideo
  21336. CheckHaikuGL
  21337. CheckPTHREAD
  21338. # Set up files for the audio library
  21339. if test x$enable_audio = xyes; then
  21340. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21341. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21342. SUMMARY_audio="${SUMMARY_audio} haiku"
  21343. have_audio=yes
  21344. fi
  21345. # Set up files for the joystick library
  21346. if test x$enable_joystick = xyes; then
  21347. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21348. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21349. have_joystick=yes
  21350. fi
  21351. # Set up files for the timer library
  21352. if test x$enable_timers = xyes; then
  21353. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21354. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21355. have_timers=yes
  21356. fi
  21357. # Set up files for the system power library
  21358. if test x$enable_power = xyes; then
  21359. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21360. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21361. have_power=yes
  21362. fi
  21363. # Set up files for the system filesystem library
  21364. if test x$enable_filesystem = xyes; then
  21365. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21366. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21367. have_filesystem=yes
  21368. fi
  21369. # The Haiku platform requires special setup.
  21370. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21371. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21372. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21373. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21374. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21376. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21377. if eval \${$as_ac_File+:} false; then :
  21378. $as_echo_n "(cached) " >&6
  21379. else
  21380. test "$cross_compiling" = yes &&
  21381. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21382. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21383. eval "$as_ac_File=yes"
  21384. else
  21385. eval "$as_ac_File=no"
  21386. fi
  21387. fi
  21388. eval ac_res=\$$as_ac_File
  21389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21390. $as_echo "$ac_res" >&6; }
  21391. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21392. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21393. else
  21394. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21395. fi
  21396. ;;
  21397. arm*-apple-darwin*|*-ios-*)
  21398. ARCH=ios
  21399. CheckVisibilityHidden
  21400. CheckDeclarationAfterStatement
  21401. CheckDummyVideo
  21402. CheckDiskAudio
  21403. CheckDummyAudio
  21404. CheckDLOPEN
  21405. CheckMETAL
  21406. CheckVulkan
  21407. CheckPTHREAD
  21408. # Set up files for the audio library
  21409. if test x$enable_audio = xyes; then
  21410. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21411. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21412. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21413. have_audio=yes
  21414. fi
  21415. # Set up files for the joystick library
  21416. if test x$enable_joystick = xyes; then
  21417. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21418. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21419. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21420. have_joystick=yes
  21421. fi
  21422. # Set up files for the haptic library
  21423. #if test x$enable_haptic = xyes; then
  21424. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21425. # have_haptic=yes
  21426. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21427. #fi
  21428. # Set up files for the sensor library
  21429. if test x$enable_sensor = xyes; then
  21430. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21431. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21432. have_sensor=yes
  21433. fi
  21434. # Set up files for the power library
  21435. if test x$enable_power = xyes; then
  21436. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21437. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21438. have_power=yes
  21439. fi
  21440. # Set up files for the filesystem library
  21441. if test x$enable_filesystem = xyes; then
  21442. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21443. have_filesystem=yes
  21444. fi
  21445. # Set up additional files for the file library
  21446. if test x$enable_file = xyes; then
  21447. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21448. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21449. fi
  21450. # Set up files for the timer library
  21451. if test x$enable_timers = xyes; then
  21452. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21453. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21454. have_timers=yes
  21455. fi
  21456. # Set up other core UNIX files
  21457. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21458. # The iOS platform requires special setup.
  21459. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21460. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21461. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21462. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21463. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21464. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21465. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21466. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21467. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21468. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21469. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21470. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21471. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21473. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21474. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21475. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21476. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21477. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21478. fi
  21479. ;;
  21480. *-*-darwin* )
  21481. # This could be either full "Mac OS X", or plain "Darwin" which is
  21482. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21483. # Next line is broken, and a few files below require Mac OS X (full)
  21484. ARCH=macosx
  21485. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21486. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21487. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21488. CheckVisibilityHidden
  21489. CheckDeclarationAfterStatement
  21490. CheckDummyVideo
  21491. CheckDiskAudio
  21492. CheckDummyAudio
  21493. CheckDLOPEN
  21494. CheckCOCOA
  21495. CheckMETAL
  21496. CheckX11
  21497. CheckMacGL
  21498. CheckMacGLES
  21499. CheckOpenGLX11
  21500. CheckVulkan
  21501. CheckPTHREAD
  21502. CheckHIDAPI
  21503. # Set up files for the audio library
  21504. if test x$enable_audio = xyes; then
  21505. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21506. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21507. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21508. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21509. have_audio=yes
  21510. fi
  21511. # Set up files for the joystick library
  21512. if test x$enable_joystick = xyes; then
  21513. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21514. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21515. have_joystick=yes
  21516. fi
  21517. # Set up files for the haptic library
  21518. if test x$enable_haptic = xyes; then
  21519. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21520. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21522. have_haptic=yes
  21523. fi
  21524. # Set up files for the power library
  21525. if test x$enable_power = xyes; then
  21526. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21527. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21528. have_power=yes
  21529. fi
  21530. # Set up files for the filesystem library
  21531. if test x$enable_filesystem = xyes; then
  21532. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21533. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21534. have_filesystem=yes
  21535. fi
  21536. # Set up files for the timer library
  21537. if test x$enable_timers = xyes; then
  21538. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21539. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21540. have_timers=yes
  21541. fi
  21542. # Set up additional files for the file library
  21543. if test x$enable_file = xyes; then
  21544. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21545. fi
  21546. # Set up other core UNIX files
  21547. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21548. # The Mac OS X platform requires special setup.
  21549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21550. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21551. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21552. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21553. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21554. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21555. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21556. fi
  21557. ;;
  21558. *-nacl|*-pnacl)
  21559. ARCH=nacl
  21560. CheckNativeClient
  21561. CheckDummyAudio
  21562. CheckDummyVideo
  21563. CheckInputEvents
  21564. CheckPTHREAD
  21565. # Set up files for the timer library
  21566. if test x$enable_timers = xyes; then
  21567. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21568. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21569. have_timers=yes
  21570. fi
  21571. if test x$enable_filesystem = xyes; then
  21572. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21573. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21574. have_filesystem=yes
  21575. fi
  21576. ;;
  21577. *-*-emscripten* )
  21578. if test x$enable_video = xyes; then
  21579. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21580. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21581. have_video=yes
  21582. SUMMARY_video="${SUMMARY_video} emscripten"
  21583. fi
  21584. if test x$enable_audio = xyes; then
  21585. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21586. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21587. have_audio=yes
  21588. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21589. fi
  21590. CheckVisibilityHidden
  21591. CheckDeclarationAfterStatement
  21592. CheckDummyVideo
  21593. CheckDiskAudio
  21594. CheckDummyAudio
  21595. CheckDLOPEN
  21596. CheckClockGettime
  21597. CheckEmscriptenGLES
  21598. # Set up files for the power library
  21599. if test x$enable_power = xyes; then
  21600. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21601. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21602. have_power=yes
  21603. fi
  21604. # Set up files for the power library
  21605. if test x$enable_joystick = xyes; then
  21606. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21607. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21608. have_joystick=yes
  21609. fi
  21610. # Set up files for the filesystem library
  21611. if test x$enable_filesystem = xyes; then
  21612. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21613. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21614. have_filesystem=yes
  21615. fi
  21616. # Set up files for the timer library
  21617. if test x$enable_timers = xyes; then
  21618. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21619. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21620. have_timers=yes
  21621. fi
  21622. ;;
  21623. *-*-riscos*)
  21624. ARCH=riscos
  21625. CheckVisibilityHidden
  21626. CheckDeclarationAfterStatement
  21627. CheckDummyVideo
  21628. CheckDiskAudio
  21629. CheckDummyAudio
  21630. CheckDLOPEN
  21631. CheckOSS
  21632. CheckPTHREAD
  21633. CheckClockGettime
  21634. # Set up files for the timer library
  21635. if test x$enable_timers = xyes; then
  21636. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21637. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21638. have_timers=yes
  21639. fi
  21640. ;;
  21641. *)
  21642. as_fn_error $? "
  21643. *** Unsupported host: Please add to configure.ac
  21644. " "$LINENO" 5
  21645. ;;
  21646. esac
  21647. CheckVirtualJoystick
  21648. # Check whether to install sdl2-config
  21649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21650. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21651. # Check whether --enable-sdl2-config was given.
  21652. if test "${enable_sdl2_config+set}" = set; then :
  21653. enableval=$enable_sdl2_config; case "${enableval}" in
  21654. yes) enable_sdl2_config="TRUE" ;;
  21655. no) enable_sdl2_config="FALSE" ;;
  21656. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21657. esac
  21658. else
  21659. enable_sdl2_config="TRUE"
  21660. fi
  21661. if test "$enable_sdl2_config" = "TRUE"; then
  21662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21663. $as_echo "yes" >&6; }
  21664. else
  21665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21666. $as_echo "no" >&6; }
  21667. fi
  21668. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21669. # Verify that we have all the platform specific files we need
  21670. if test x$have_joystick != xyes; then
  21671. if test x$enable_joystick = xyes; then
  21672. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21673. fi
  21674. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21675. fi
  21676. if test x$have_haptic != xyes; then
  21677. if test x$enable_haptic = xyes; then
  21678. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21679. fi
  21680. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21681. fi
  21682. if test x$have_sensor != xyes; then
  21683. if test x$enable_sensor = xyes; then
  21684. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21685. fi
  21686. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21687. fi
  21688. if test x$have_threads != xyes; then
  21689. if test x$enable_threads = xyes; then
  21690. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21691. fi
  21692. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21693. fi
  21694. if test x$have_timers != xyes; then
  21695. if test x$enable_timers = xyes; then
  21696. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21697. fi
  21698. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21699. fi
  21700. if test x$have_filesystem != xyes; then
  21701. if test x$enable_filesystem = xyes; then
  21702. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21703. fi
  21704. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21705. fi
  21706. if test x$have_loadso != xyes; then
  21707. if test x$enable_loadso = xyes; then
  21708. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21709. fi
  21710. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21711. fi
  21712. if test x$SDLMAIN_SOURCES = x; then
  21713. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21714. fi
  21715. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21716. if test x$video_wayland = xyes; then
  21717. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21718. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21719. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21720. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21721. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21722. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21723. echo ;\
  21724. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21725. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21726. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21727. echo ;\
  21728. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21729. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21730. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21731. echo ;\
  21732. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21733. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21734. done ;\
  21735. echo ;\
  21736. 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`
  21737. fi
  21738. OBJECTS=`echo $SOURCES`
  21739. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21740. for EXT in asm cc m c S; do
  21741. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21742. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21743. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21744. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21745. done
  21746. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21747. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21748. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21749. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21750. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21751. \\$(objects)/\\2.o: \\1/\\2.rc \\$(objects)/.created\\\\
  21752. \\$(WINDRES) \\$< \\$@,g"`
  21753. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21754. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21755. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21756. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21757. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21758. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21759. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21760. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21761. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21762. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21763. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21764. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21765. # Set runtime shared library paths as needed
  21766. if test "x$enable_rpath" = "xyes"; then
  21767. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21768. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21770. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21771. have_enable_new_dtags=no
  21772. save_LDFLAGS="$LDFLAGS"
  21773. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21775. /* end confdefs.h. */
  21776. int
  21777. main ()
  21778. {
  21779. ;
  21780. return 0;
  21781. }
  21782. _ACEOF
  21783. if ac_fn_c_try_link "$LINENO"; then :
  21784. have_enable_new_dtags=yes
  21785. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21786. fi
  21787. rm -f core conftest.err conftest.$ac_objext \
  21788. conftest$ac_exeext conftest.$ac_ext
  21789. LDFLAGS="$save_LDFLAGS"
  21790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21791. $as_echo "$have_enable_new_dtags" >&6; }
  21792. fi
  21793. if test $ARCH = solaris; then
  21794. SDL_RLD_FLAGS="-R\${libdir}"
  21795. fi
  21796. else
  21797. SDL_RLD_FLAGS=""
  21798. fi
  21799. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21800. if test x$enable_shared = xyes; then
  21801. ENABLE_SHARED_TRUE=
  21802. ENABLE_SHARED_FALSE="#"
  21803. else
  21804. ENABLE_SHARED_TRUE="#"
  21805. ENABLE_SHARED_FALSE=
  21806. fi
  21807. if test x$enable_static = xyes; then
  21808. ENABLE_STATIC_TRUE=
  21809. ENABLE_STATIC_FALSE="#"
  21810. else
  21811. ENABLE_STATIC_TRUE="#"
  21812. ENABLE_STATIC_FALSE=
  21813. fi
  21814. cat >Makefile.rules <<__EOF__
  21815. # Build rules for objects
  21816. -include \$(OBJECTS:.lo=.d)
  21817. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21818. $srcdir/src/SDL.c: update-revision
  21819. $DEPENDS
  21820. $VERSION_DEPENDS
  21821. $SDLMAIN_DEPENDS
  21822. $SDLTEST_DEPENDS
  21823. $WAYLAND_PROTOCOLS_DEPENDS
  21824. __EOF__
  21825. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21826. ac_config_commands="$ac_config_commands sdl2_config"
  21827. SUMMARY="SDL2 Configure Summary:\n"
  21828. if test x$enable_shared = xyes; then
  21829. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21830. fi
  21831. if test x$enable_static = xyes; then
  21832. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21833. fi
  21834. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21835. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21836. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21837. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21838. if test x$have_x = xyes; then
  21839. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21840. fi
  21841. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21842. if test x$have_joystick_virtual = xyes; then
  21843. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  21844. else
  21845. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  21846. fi
  21847. if test x$have_samplerate_h_hdr = xyes; then
  21848. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21849. else
  21850. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21851. fi
  21852. if test x$have_libudev_h_hdr = xyes; then
  21853. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21854. else
  21855. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21856. fi
  21857. if test x$have_dbus_dbus_h_hdr = xyes; then
  21858. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21859. else
  21860. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21861. fi
  21862. if test x$enable_ime = xyes; then
  21863. SUMMARY="${SUMMARY}Using ime : YES\n"
  21864. else
  21865. SUMMARY="${SUMMARY}Using ime : NO\n"
  21866. fi
  21867. if test x$have_ibus_ibus_h_hdr = xyes; then
  21868. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21869. else
  21870. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21871. fi
  21872. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21873. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21874. else
  21875. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21876. fi
  21877. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21878. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21879. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21880. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21881. SUMMARY="${SUMMARY}configure script with:\n"
  21882. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21883. fi
  21884. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21885. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21886. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21887. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21888. SUMMARY="${SUMMARY}configure script with:\n"
  21889. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21890. fi
  21891. ac_config_commands="$ac_config_commands summary"
  21892. cat >confcache <<\_ACEOF
  21893. # This file is a shell script that caches the results of configure
  21894. # tests run on this system so they can be shared between configure
  21895. # scripts and configure runs, see configure's option --config-cache.
  21896. # It is not useful on other systems. If it contains results you don't
  21897. # want to keep, you may remove or edit it.
  21898. #
  21899. # config.status only pays attention to the cache file if you give it
  21900. # the --recheck option to rerun configure.
  21901. #
  21902. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21903. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21904. # following values.
  21905. _ACEOF
  21906. # The following way of writing the cache mishandles newlines in values,
  21907. # but we know of no workaround that is simple, portable, and efficient.
  21908. # So, we kill variables containing newlines.
  21909. # Ultrix sh set writes to stderr and can't be redirected directly,
  21910. # and sets the high bit in the cache file unless we assign to the vars.
  21911. (
  21912. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21913. eval ac_val=\$$ac_var
  21914. case $ac_val in #(
  21915. *${as_nl}*)
  21916. case $ac_var in #(
  21917. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21918. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21919. esac
  21920. case $ac_var in #(
  21921. _ | IFS | as_nl) ;; #(
  21922. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21923. *) { eval $ac_var=; unset $ac_var;} ;;
  21924. esac ;;
  21925. esac
  21926. done
  21927. (set) 2>&1 |
  21928. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21929. *${as_nl}ac_space=\ *)
  21930. # `set' does not quote correctly, so add quotes: double-quote
  21931. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21932. sed -n \
  21933. "s/'/'\\\\''/g;
  21934. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21935. ;; #(
  21936. *)
  21937. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21938. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21939. ;;
  21940. esac |
  21941. sort
  21942. ) |
  21943. sed '
  21944. /^ac_cv_env_/b end
  21945. t clear
  21946. :clear
  21947. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21948. t end
  21949. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21950. :end' >>confcache
  21951. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21952. if test -w "$cache_file"; then
  21953. if test "x$cache_file" != "x/dev/null"; then
  21954. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21955. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21956. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21957. cat confcache >"$cache_file"
  21958. else
  21959. case $cache_file in #(
  21960. */* | ?:*)
  21961. mv -f confcache "$cache_file"$$ &&
  21962. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21963. *)
  21964. mv -f confcache "$cache_file" ;;
  21965. esac
  21966. fi
  21967. fi
  21968. else
  21969. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21970. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21971. fi
  21972. fi
  21973. rm -f confcache
  21974. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21975. # Let make expand exec_prefix.
  21976. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21977. DEFS=-DHAVE_CONFIG_H
  21978. ac_libobjs=
  21979. ac_ltlibobjs=
  21980. U=
  21981. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21982. # 1. Remove the extension, and $U if already installed.
  21983. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21984. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21985. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21986. # will be set to the directory where LIBOBJS objects are built.
  21987. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21988. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21989. done
  21990. LIBOBJS=$ac_libobjs
  21991. LTLIBOBJS=$ac_ltlibobjs
  21992. : "${CONFIG_STATUS=./config.status}"
  21993. ac_write_fail=0
  21994. ac_clean_files_save=$ac_clean_files
  21995. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21996. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21997. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21998. as_write_fail=0
  21999. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22000. #! $SHELL
  22001. # Generated by $as_me.
  22002. # Run this file to recreate the current configuration.
  22003. # Compiler output produced by configure, useful for debugging
  22004. # configure, is in config.log if it exists.
  22005. debug=false
  22006. ac_cs_recheck=false
  22007. ac_cs_silent=false
  22008. SHELL=\${CONFIG_SHELL-$SHELL}
  22009. export SHELL
  22010. _ASEOF
  22011. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22012. ## -------------------- ##
  22013. ## M4sh Initialization. ##
  22014. ## -------------------- ##
  22015. # Be more Bourne compatible
  22016. DUALCASE=1; export DUALCASE # for MKS sh
  22017. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22018. emulate sh
  22019. NULLCMD=:
  22020. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22021. # is contrary to our usage. Disable this feature.
  22022. alias -g '${1+"$@"}'='"$@"'
  22023. setopt NO_GLOB_SUBST
  22024. else
  22025. case `(set -o) 2>/dev/null` in #(
  22026. *posix*) :
  22027. set -o posix ;; #(
  22028. *) :
  22029. ;;
  22030. esac
  22031. fi
  22032. as_nl='
  22033. '
  22034. export as_nl
  22035. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22036. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22037. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22038. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22039. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22040. # but without wasting forks for bash or zsh.
  22041. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22042. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22043. as_echo='print -r --'
  22044. as_echo_n='print -rn --'
  22045. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22046. as_echo='printf %s\n'
  22047. as_echo_n='printf %s'
  22048. else
  22049. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22050. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22051. as_echo_n='/usr/ucb/echo -n'
  22052. else
  22053. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22054. as_echo_n_body='eval
  22055. arg=$1;
  22056. case $arg in #(
  22057. *"$as_nl"*)
  22058. expr "X$arg" : "X\\(.*\\)$as_nl";
  22059. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22060. esac;
  22061. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22062. '
  22063. export as_echo_n_body
  22064. as_echo_n='sh -c $as_echo_n_body as_echo'
  22065. fi
  22066. export as_echo_body
  22067. as_echo='sh -c $as_echo_body as_echo'
  22068. fi
  22069. # The user is always right.
  22070. if test "${PATH_SEPARATOR+set}" != set; then
  22071. PATH_SEPARATOR=:
  22072. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22073. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22074. PATH_SEPARATOR=';'
  22075. }
  22076. fi
  22077. # IFS
  22078. # We need space, tab and new line, in precisely that order. Quoting is
  22079. # there to prevent editors from complaining about space-tab.
  22080. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22081. # splitting by setting IFS to empty value.)
  22082. IFS=" "" $as_nl"
  22083. # Find who we are. Look in the path if we contain no directory separator.
  22084. as_myself=
  22085. case $0 in #((
  22086. *[\\/]* ) as_myself=$0 ;;
  22087. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22088. for as_dir in $PATH
  22089. do
  22090. IFS=$as_save_IFS
  22091. test -z "$as_dir" && as_dir=.
  22092. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22093. done
  22094. IFS=$as_save_IFS
  22095. ;;
  22096. esac
  22097. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22098. # in which case we are not to be found in the path.
  22099. if test "x$as_myself" = x; then
  22100. as_myself=$0
  22101. fi
  22102. if test ! -f "$as_myself"; then
  22103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22104. exit 1
  22105. fi
  22106. # Unset variables that we do not need and which cause bugs (e.g. in
  22107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22108. # suppresses any "Segmentation fault" message there. '((' could
  22109. # trigger a bug in pdksh 5.2.14.
  22110. for as_var in BASH_ENV ENV MAIL MAILPATH
  22111. do eval test x\${$as_var+set} = xset \
  22112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22113. done
  22114. PS1='$ '
  22115. PS2='> '
  22116. PS4='+ '
  22117. # NLS nuisances.
  22118. LC_ALL=C
  22119. export LC_ALL
  22120. LANGUAGE=C
  22121. export LANGUAGE
  22122. # CDPATH.
  22123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22124. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22125. # ----------------------------------------
  22126. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22127. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22128. # script with STATUS, using 1 if that was 0.
  22129. as_fn_error ()
  22130. {
  22131. as_status=$1; test $as_status -eq 0 && as_status=1
  22132. if test "$4"; then
  22133. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22134. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22135. fi
  22136. $as_echo "$as_me: error: $2" >&2
  22137. as_fn_exit $as_status
  22138. } # as_fn_error
  22139. # as_fn_set_status STATUS
  22140. # -----------------------
  22141. # Set $? to STATUS, without forking.
  22142. as_fn_set_status ()
  22143. {
  22144. return $1
  22145. } # as_fn_set_status
  22146. # as_fn_exit STATUS
  22147. # -----------------
  22148. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22149. as_fn_exit ()
  22150. {
  22151. set +e
  22152. as_fn_set_status $1
  22153. exit $1
  22154. } # as_fn_exit
  22155. # as_fn_unset VAR
  22156. # ---------------
  22157. # Portably unset VAR.
  22158. as_fn_unset ()
  22159. {
  22160. { eval $1=; unset $1;}
  22161. }
  22162. as_unset=as_fn_unset
  22163. # as_fn_append VAR VALUE
  22164. # ----------------------
  22165. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22166. # advantage of any shell optimizations that allow amortized linear growth over
  22167. # repeated appends, instead of the typical quadratic growth present in naive
  22168. # implementations.
  22169. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22170. eval 'as_fn_append ()
  22171. {
  22172. eval $1+=\$2
  22173. }'
  22174. else
  22175. as_fn_append ()
  22176. {
  22177. eval $1=\$$1\$2
  22178. }
  22179. fi # as_fn_append
  22180. # as_fn_arith ARG...
  22181. # ------------------
  22182. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22183. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22184. # must be portable across $(()) and expr.
  22185. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22186. eval 'as_fn_arith ()
  22187. {
  22188. as_val=$(( $* ))
  22189. }'
  22190. else
  22191. as_fn_arith ()
  22192. {
  22193. as_val=`expr "$@" || test $? -eq 1`
  22194. }
  22195. fi # as_fn_arith
  22196. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22197. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22198. as_expr=expr
  22199. else
  22200. as_expr=false
  22201. fi
  22202. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22203. as_basename=basename
  22204. else
  22205. as_basename=false
  22206. fi
  22207. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22208. as_dirname=dirname
  22209. else
  22210. as_dirname=false
  22211. fi
  22212. as_me=`$as_basename -- "$0" ||
  22213. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22214. X"$0" : 'X\(//\)$' \| \
  22215. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22216. $as_echo X/"$0" |
  22217. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22218. s//\1/
  22219. q
  22220. }
  22221. /^X\/\(\/\/\)$/{
  22222. s//\1/
  22223. q
  22224. }
  22225. /^X\/\(\/\).*/{
  22226. s//\1/
  22227. q
  22228. }
  22229. s/.*/./; q'`
  22230. # Avoid depending upon Character Ranges.
  22231. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22232. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22233. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22234. as_cr_digits='0123456789'
  22235. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22236. ECHO_C= ECHO_N= ECHO_T=
  22237. case `echo -n x` in #(((((
  22238. -n*)
  22239. case `echo 'xy\c'` in
  22240. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22241. xy) ECHO_C='\c';;
  22242. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22243. ECHO_T=' ';;
  22244. esac;;
  22245. *)
  22246. ECHO_N='-n';;
  22247. esac
  22248. rm -f conf$$ conf$$.exe conf$$.file
  22249. if test -d conf$$.dir; then
  22250. rm -f conf$$.dir/conf$$.file
  22251. else
  22252. rm -f conf$$.dir
  22253. mkdir conf$$.dir 2>/dev/null
  22254. fi
  22255. if (echo >conf$$.file) 2>/dev/null; then
  22256. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22257. as_ln_s='ln -s'
  22258. # ... but there are two gotchas:
  22259. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22260. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22261. # In both cases, we have to default to `cp -pR'.
  22262. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22263. as_ln_s='cp -pR'
  22264. elif ln conf$$.file conf$$ 2>/dev/null; then
  22265. as_ln_s=ln
  22266. else
  22267. as_ln_s='cp -pR'
  22268. fi
  22269. else
  22270. as_ln_s='cp -pR'
  22271. fi
  22272. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22273. rmdir conf$$.dir 2>/dev/null
  22274. # as_fn_mkdir_p
  22275. # -------------
  22276. # Create "$as_dir" as a directory, including parents if necessary.
  22277. as_fn_mkdir_p ()
  22278. {
  22279. case $as_dir in #(
  22280. -*) as_dir=./$as_dir;;
  22281. esac
  22282. test -d "$as_dir" || eval $as_mkdir_p || {
  22283. as_dirs=
  22284. while :; do
  22285. case $as_dir in #(
  22286. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22287. *) as_qdir=$as_dir;;
  22288. esac
  22289. as_dirs="'$as_qdir' $as_dirs"
  22290. as_dir=`$as_dirname -- "$as_dir" ||
  22291. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22292. X"$as_dir" : 'X\(//\)[^/]' \| \
  22293. X"$as_dir" : 'X\(//\)$' \| \
  22294. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22295. $as_echo X"$as_dir" |
  22296. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22297. s//\1/
  22298. q
  22299. }
  22300. /^X\(\/\/\)[^/].*/{
  22301. s//\1/
  22302. q
  22303. }
  22304. /^X\(\/\/\)$/{
  22305. s//\1/
  22306. q
  22307. }
  22308. /^X\(\/\).*/{
  22309. s//\1/
  22310. q
  22311. }
  22312. s/.*/./; q'`
  22313. test -d "$as_dir" && break
  22314. done
  22315. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22316. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22317. } # as_fn_mkdir_p
  22318. if mkdir -p . 2>/dev/null; then
  22319. as_mkdir_p='mkdir -p "$as_dir"'
  22320. else
  22321. test -d ./-p && rmdir ./-p
  22322. as_mkdir_p=false
  22323. fi
  22324. # as_fn_executable_p FILE
  22325. # -----------------------
  22326. # Test if FILE is an executable regular file.
  22327. as_fn_executable_p ()
  22328. {
  22329. test -f "$1" && test -x "$1"
  22330. } # as_fn_executable_p
  22331. as_test_x='test -x'
  22332. as_executable_p=as_fn_executable_p
  22333. # Sed expression to map a string onto a valid CPP name.
  22334. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22335. # Sed expression to map a string onto a valid variable name.
  22336. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22337. exec 6>&1
  22338. ## ----------------------------------- ##
  22339. ## Main body of $CONFIG_STATUS script. ##
  22340. ## ----------------------------------- ##
  22341. _ASEOF
  22342. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22343. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22344. # Save the log message, to keep $0 and so on meaningful, and to
  22345. # report actual input values of CONFIG_FILES etc. instead of their
  22346. # values after options handling.
  22347. ac_log="
  22348. This file was extended by $as_me, which was
  22349. generated by GNU Autoconf 2.69. Invocation command line was
  22350. CONFIG_FILES = $CONFIG_FILES
  22351. CONFIG_HEADERS = $CONFIG_HEADERS
  22352. CONFIG_LINKS = $CONFIG_LINKS
  22353. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22354. $ $0 $@
  22355. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22356. "
  22357. _ACEOF
  22358. case $ac_config_files in *"
  22359. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22360. esac
  22361. case $ac_config_headers in *"
  22362. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22363. esac
  22364. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22365. # Files that config.status was made for.
  22366. config_files="$ac_config_files"
  22367. config_headers="$ac_config_headers"
  22368. config_commands="$ac_config_commands"
  22369. _ACEOF
  22370. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22371. ac_cs_usage="\
  22372. \`$as_me' instantiates files and other configuration actions
  22373. from templates according to the current configuration. Unless the files
  22374. and actions are specified as TAGs, all are instantiated by default.
  22375. Usage: $0 [OPTION]... [TAG]...
  22376. -h, --help print this help, then exit
  22377. -V, --version print version number and configuration settings, then exit
  22378. --config print configuration, then exit
  22379. -q, --quiet, --silent
  22380. do not print progress messages
  22381. -d, --debug don't remove temporary files
  22382. --recheck update $as_me by reconfiguring in the same conditions
  22383. --file=FILE[:TEMPLATE]
  22384. instantiate the configuration file FILE
  22385. --header=FILE[:TEMPLATE]
  22386. instantiate the configuration header FILE
  22387. Configuration files:
  22388. $config_files
  22389. Configuration headers:
  22390. $config_headers
  22391. Configuration commands:
  22392. $config_commands
  22393. Report bugs to the package provider."
  22394. _ACEOF
  22395. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22396. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22397. ac_cs_version="\\
  22398. config.status
  22399. configured by $0, generated by GNU Autoconf 2.69,
  22400. with options \\"\$ac_cs_config\\"
  22401. Copyright (C) 2012 Free Software Foundation, Inc.
  22402. This config.status script is free software; the Free Software Foundation
  22403. gives unlimited permission to copy, distribute and modify it."
  22404. ac_pwd='$ac_pwd'
  22405. srcdir='$srcdir'
  22406. INSTALL='$INSTALL'
  22407. AWK='$AWK'
  22408. test -n "\$AWK" || AWK=awk
  22409. _ACEOF
  22410. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22411. # The default lists apply if the user does not specify any file.
  22412. ac_need_defaults=:
  22413. while test $# != 0
  22414. do
  22415. case $1 in
  22416. --*=?*)
  22417. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22418. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22419. ac_shift=:
  22420. ;;
  22421. --*=)
  22422. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22423. ac_optarg=
  22424. ac_shift=:
  22425. ;;
  22426. *)
  22427. ac_option=$1
  22428. ac_optarg=$2
  22429. ac_shift=shift
  22430. ;;
  22431. esac
  22432. case $ac_option in
  22433. # Handling of the options.
  22434. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22435. ac_cs_recheck=: ;;
  22436. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22437. $as_echo "$ac_cs_version"; exit ;;
  22438. --config | --confi | --conf | --con | --co | --c )
  22439. $as_echo "$ac_cs_config"; exit ;;
  22440. --debug | --debu | --deb | --de | --d | -d )
  22441. debug=: ;;
  22442. --file | --fil | --fi | --f )
  22443. $ac_shift
  22444. case $ac_optarg in
  22445. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22446. '') as_fn_error $? "missing file argument" ;;
  22447. esac
  22448. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22449. ac_need_defaults=false;;
  22450. --header | --heade | --head | --hea )
  22451. $ac_shift
  22452. case $ac_optarg in
  22453. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22454. esac
  22455. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22456. ac_need_defaults=false;;
  22457. --he | --h)
  22458. # Conflict between --help and --header
  22459. as_fn_error $? "ambiguous option: \`$1'
  22460. Try \`$0 --help' for more information.";;
  22461. --help | --hel | -h )
  22462. $as_echo "$ac_cs_usage"; exit ;;
  22463. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22464. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22465. ac_cs_silent=: ;;
  22466. # This is an error.
  22467. -*) as_fn_error $? "unrecognized option: \`$1'
  22468. Try \`$0 --help' for more information." ;;
  22469. *) as_fn_append ac_config_targets " $1"
  22470. ac_need_defaults=false ;;
  22471. esac
  22472. shift
  22473. done
  22474. ac_configure_extra_args=
  22475. if $ac_cs_silent; then
  22476. exec 6>/dev/null
  22477. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22478. fi
  22479. _ACEOF
  22480. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22481. if \$ac_cs_recheck; then
  22482. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22483. shift
  22484. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22485. CONFIG_SHELL='$SHELL'
  22486. export CONFIG_SHELL
  22487. exec "\$@"
  22488. fi
  22489. _ACEOF
  22490. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22491. exec 5>>config.log
  22492. {
  22493. echo
  22494. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22495. ## Running $as_me. ##
  22496. _ASBOX
  22497. $as_echo "$ac_log"
  22498. } >&5
  22499. _ACEOF
  22500. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22501. #
  22502. # INIT-COMMANDS
  22503. #
  22504. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22505. # if CDPATH is set.
  22506. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22507. sed_quote_subst='$sed_quote_subst'
  22508. double_quote_subst='$double_quote_subst'
  22509. delay_variable_subst='$delay_variable_subst'
  22510. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22511. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22512. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22513. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22514. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22515. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22516. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22517. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22518. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22519. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22520. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22521. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22522. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22523. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22524. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22525. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22526. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22527. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22528. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22529. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22530. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22531. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22532. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22533. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22534. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22535. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22536. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22537. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22538. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22539. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22540. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22541. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22542. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22543. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22544. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22545. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22546. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22547. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22548. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22549. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22550. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22551. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22552. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22553. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22554. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22555. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22556. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22557. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22558. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22559. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22560. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22561. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22562. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22563. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22564. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22565. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22566. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22567. 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"`'
  22568. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22569. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22570. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22571. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22572. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22573. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22574. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22575. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22576. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22577. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22578. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22579. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22580. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22581. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22582. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22583. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22584. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22585. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22586. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22587. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22588. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22589. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22590. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22591. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22592. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22593. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22594. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22595. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22596. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22597. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22598. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22599. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22600. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22601. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22602. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22603. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22604. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22605. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22606. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22607. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22608. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22609. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22610. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22611. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22612. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22613. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22614. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22615. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22616. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22617. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22618. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22619. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22620. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22621. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22622. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22623. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22624. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22625. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22626. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22627. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22628. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22629. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22630. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22631. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22632. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22633. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22634. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22635. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22636. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22637. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22638. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22639. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22640. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22641. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22642. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22643. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22644. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22645. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22646. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22647. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22648. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22649. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22650. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22651. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22652. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22653. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22654. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22655. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22656. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22657. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22658. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22659. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22660. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22661. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22662. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22663. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22664. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22665. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22666. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22667. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22668. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22669. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22670. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22671. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22672. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22673. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22674. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22675. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22676. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22677. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22678. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22679. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22680. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22681. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22682. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22683. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22684. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22685. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22686. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22687. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22688. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22689. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22690. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22691. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22692. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22693. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22694. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22695. LTCC='$LTCC'
  22696. LTCFLAGS='$LTCFLAGS'
  22697. compiler='$compiler_DEFAULT'
  22698. # A function that is used when there is no print builtin or printf.
  22699. func_fallback_echo ()
  22700. {
  22701. eval 'cat <<_LTECHO_EOF
  22702. \$1
  22703. _LTECHO_EOF'
  22704. }
  22705. # Quote evaled strings.
  22706. for var in AS \
  22707. DLLTOOL \
  22708. OBJDUMP \
  22709. SHELL \
  22710. ECHO \
  22711. PATH_SEPARATOR \
  22712. SED \
  22713. GREP \
  22714. EGREP \
  22715. FGREP \
  22716. LD \
  22717. NM \
  22718. LN_S \
  22719. lt_SP2NL \
  22720. lt_NL2SP \
  22721. reload_flag \
  22722. deplibs_check_method \
  22723. file_magic_cmd \
  22724. file_magic_glob \
  22725. want_nocaseglob \
  22726. sharedlib_from_linklib_cmd \
  22727. AR \
  22728. AR_FLAGS \
  22729. archiver_list_spec \
  22730. STRIP \
  22731. RANLIB \
  22732. CC \
  22733. CFLAGS \
  22734. compiler \
  22735. lt_cv_sys_global_symbol_pipe \
  22736. lt_cv_sys_global_symbol_to_cdecl \
  22737. lt_cv_sys_global_symbol_to_c_name_address \
  22738. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22739. nm_file_list_spec \
  22740. lt_prog_compiler_no_builtin_flag \
  22741. lt_prog_compiler_pic \
  22742. lt_prog_compiler_wl \
  22743. lt_prog_compiler_static \
  22744. lt_cv_prog_compiler_c_o \
  22745. need_locks \
  22746. MANIFEST_TOOL \
  22747. DSYMUTIL \
  22748. NMEDIT \
  22749. LIPO \
  22750. OTOOL \
  22751. OTOOL64 \
  22752. shrext_cmds \
  22753. export_dynamic_flag_spec \
  22754. whole_archive_flag_spec \
  22755. compiler_needs_object \
  22756. with_gnu_ld \
  22757. allow_undefined_flag \
  22758. no_undefined_flag \
  22759. hardcode_libdir_flag_spec \
  22760. hardcode_libdir_separator \
  22761. exclude_expsyms \
  22762. include_expsyms \
  22763. file_list_spec \
  22764. variables_saved_for_relink \
  22765. libname_spec \
  22766. library_names_spec \
  22767. soname_spec \
  22768. install_override_mode \
  22769. finish_eval \
  22770. old_striplib \
  22771. striplib \
  22772. compiler_lib_search_dirs \
  22773. predep_objects \
  22774. postdep_objects \
  22775. predeps \
  22776. postdeps \
  22777. compiler_lib_search_path \
  22778. LD_CXX \
  22779. reload_flag_CXX \
  22780. compiler_CXX \
  22781. lt_prog_compiler_no_builtin_flag_CXX \
  22782. lt_prog_compiler_pic_CXX \
  22783. lt_prog_compiler_wl_CXX \
  22784. lt_prog_compiler_static_CXX \
  22785. lt_cv_prog_compiler_c_o_CXX \
  22786. export_dynamic_flag_spec_CXX \
  22787. whole_archive_flag_spec_CXX \
  22788. compiler_needs_object_CXX \
  22789. with_gnu_ld_CXX \
  22790. allow_undefined_flag_CXX \
  22791. no_undefined_flag_CXX \
  22792. hardcode_libdir_flag_spec_CXX \
  22793. hardcode_libdir_separator_CXX \
  22794. exclude_expsyms_CXX \
  22795. include_expsyms_CXX \
  22796. file_list_spec_CXX \
  22797. compiler_lib_search_dirs_CXX \
  22798. predep_objects_CXX \
  22799. postdep_objects_CXX \
  22800. predeps_CXX \
  22801. postdeps_CXX \
  22802. compiler_lib_search_path_CXX; do
  22803. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22804. *[\\\\\\\`\\"\\\$]*)
  22805. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22806. ;;
  22807. *)
  22808. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22809. ;;
  22810. esac
  22811. done
  22812. # Double-quote double-evaled strings.
  22813. for var in reload_cmds \
  22814. old_postinstall_cmds \
  22815. old_postuninstall_cmds \
  22816. old_archive_cmds \
  22817. extract_expsyms_cmds \
  22818. old_archive_from_new_cmds \
  22819. old_archive_from_expsyms_cmds \
  22820. archive_cmds \
  22821. archive_expsym_cmds \
  22822. module_cmds \
  22823. module_expsym_cmds \
  22824. export_symbols_cmds \
  22825. prelink_cmds \
  22826. postlink_cmds \
  22827. postinstall_cmds \
  22828. postuninstall_cmds \
  22829. finish_cmds \
  22830. sys_lib_search_path_spec \
  22831. sys_lib_dlsearch_path_spec \
  22832. reload_cmds_CXX \
  22833. old_archive_cmds_CXX \
  22834. old_archive_from_new_cmds_CXX \
  22835. old_archive_from_expsyms_cmds_CXX \
  22836. archive_cmds_CXX \
  22837. archive_expsym_cmds_CXX \
  22838. module_cmds_CXX \
  22839. module_expsym_cmds_CXX \
  22840. export_symbols_cmds_CXX \
  22841. prelink_cmds_CXX \
  22842. postlink_cmds_CXX; do
  22843. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22844. *[\\\\\\\`\\"\\\$]*)
  22845. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22846. ;;
  22847. *)
  22848. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22849. ;;
  22850. esac
  22851. done
  22852. ac_aux_dir='$ac_aux_dir'
  22853. xsi_shell='$xsi_shell'
  22854. lt_shell_append='$lt_shell_append'
  22855. # See if we are running on zsh, and set the options which allow our
  22856. # commands through without removal of \ escapes INIT.
  22857. if test -n "\${ZSH_VERSION+set}" ; then
  22858. setopt NO_GLOB_SUBST
  22859. fi
  22860. PACKAGE='$PACKAGE'
  22861. VERSION='$VERSION'
  22862. TIMESTAMP='$TIMESTAMP'
  22863. RM='$RM'
  22864. ofile='$ofile'
  22865. SUMMARY="$SUMMARY"
  22866. _ACEOF
  22867. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22868. # Handling of arguments.
  22869. for ac_config_target in $ac_config_targets
  22870. do
  22871. case $ac_config_target in
  22872. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22873. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22874. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22875. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22876. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22877. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  22878. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22879. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22880. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22881. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22882. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22883. esac
  22884. done
  22885. # If the user did not use the arguments to specify the items to instantiate,
  22886. # then the envvar interface is used. Set only those that are not.
  22887. # We use the long form for the default assignment because of an extremely
  22888. # bizarre bug on SunOS 4.1.3.
  22889. if $ac_need_defaults; then
  22890. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22891. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22892. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22893. fi
  22894. # Have a temporary directory for convenience. Make it in the build tree
  22895. # simply because there is no reason against having it here, and in addition,
  22896. # creating and moving files from /tmp can sometimes cause problems.
  22897. # Hook for its removal unless debugging.
  22898. # Note that there is a small window in which the directory will not be cleaned:
  22899. # after its creation but before its name has been assigned to `$tmp'.
  22900. $debug ||
  22901. {
  22902. tmp= ac_tmp=
  22903. trap 'exit_status=$?
  22904. : "${ac_tmp:=$tmp}"
  22905. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22906. ' 0
  22907. trap 'as_fn_exit 1' 1 2 13 15
  22908. }
  22909. # Create a (secure) tmp directory for tmp files.
  22910. {
  22911. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22912. test -d "$tmp"
  22913. } ||
  22914. {
  22915. tmp=./conf$$-$RANDOM
  22916. (umask 077 && mkdir "$tmp")
  22917. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22918. ac_tmp=$tmp
  22919. # Set up the scripts for CONFIG_FILES section.
  22920. # No need to generate them if there are no CONFIG_FILES.
  22921. # This happens for instance with `./config.status config.h'.
  22922. if test -n "$CONFIG_FILES"; then
  22923. ac_cr=`echo X | tr X '\015'`
  22924. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22925. # But we know of no other shell where ac_cr would be empty at this
  22926. # point, so we can use a bashism as a fallback.
  22927. if test "x$ac_cr" = x; then
  22928. eval ac_cr=\$\'\\r\'
  22929. fi
  22930. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22931. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22932. ac_cs_awk_cr='\\r'
  22933. else
  22934. ac_cs_awk_cr=$ac_cr
  22935. fi
  22936. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22937. _ACEOF
  22938. {
  22939. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22940. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22941. echo "_ACEOF"
  22942. } >conf$$subs.sh ||
  22943. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22944. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22945. ac_delim='%!_!# '
  22946. for ac_last_try in false false false false false :; do
  22947. . ./conf$$subs.sh ||
  22948. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22949. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22950. if test $ac_delim_n = $ac_delim_num; then
  22951. break
  22952. elif $ac_last_try; then
  22953. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22954. else
  22955. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22956. fi
  22957. done
  22958. rm -f conf$$subs.sh
  22959. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22960. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22961. _ACEOF
  22962. sed -n '
  22963. h
  22964. s/^/S["/; s/!.*/"]=/
  22965. p
  22966. g
  22967. s/^[^!]*!//
  22968. :repl
  22969. t repl
  22970. s/'"$ac_delim"'$//
  22971. t delim
  22972. :nl
  22973. h
  22974. s/\(.\{148\}\)..*/\1/
  22975. t more1
  22976. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22977. p
  22978. n
  22979. b repl
  22980. :more1
  22981. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22982. p
  22983. g
  22984. s/.\{148\}//
  22985. t nl
  22986. :delim
  22987. h
  22988. s/\(.\{148\}\)..*/\1/
  22989. t more2
  22990. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22991. p
  22992. b
  22993. :more2
  22994. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22995. p
  22996. g
  22997. s/.\{148\}//
  22998. t delim
  22999. ' <conf$$subs.awk | sed '
  23000. /^[^""]/{
  23001. N
  23002. s/\n//
  23003. }
  23004. ' >>$CONFIG_STATUS || ac_write_fail=1
  23005. rm -f conf$$subs.awk
  23006. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23007. _ACAWK
  23008. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23009. for (key in S) S_is_set[key] = 1
  23010. FS = ""
  23011. }
  23012. {
  23013. line = $ 0
  23014. nfields = split(line, field, "@")
  23015. substed = 0
  23016. len = length(field[1])
  23017. for (i = 2; i < nfields; i++) {
  23018. key = field[i]
  23019. keylen = length(key)
  23020. if (S_is_set[key]) {
  23021. value = S[key]
  23022. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23023. len += length(value) + length(field[++i])
  23024. substed = 1
  23025. } else
  23026. len += 1 + keylen
  23027. }
  23028. print line
  23029. }
  23030. _ACAWK
  23031. _ACEOF
  23032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23033. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23034. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23035. else
  23036. cat
  23037. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23038. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23039. _ACEOF
  23040. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23041. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23042. # trailing colons and then remove the whole line if VPATH becomes empty
  23043. # (actually we leave an empty line to preserve line numbers).
  23044. if test "x$srcdir" = x.; then
  23045. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23046. h
  23047. s///
  23048. s/^/:/
  23049. s/[ ]*$/:/
  23050. s/:\$(srcdir):/:/g
  23051. s/:\${srcdir}:/:/g
  23052. s/:@srcdir@:/:/g
  23053. s/^:*//
  23054. s/:*$//
  23055. x
  23056. s/\(=[ ]*\).*/\1/
  23057. G
  23058. s/\n//
  23059. s/^[^=]*=[ ]*$//
  23060. }'
  23061. fi
  23062. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23063. fi # test -n "$CONFIG_FILES"
  23064. # Set up the scripts for CONFIG_HEADERS section.
  23065. # No need to generate them if there are no CONFIG_HEADERS.
  23066. # This happens for instance with `./config.status Makefile'.
  23067. if test -n "$CONFIG_HEADERS"; then
  23068. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23069. BEGIN {
  23070. _ACEOF
  23071. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23072. # here-document in config.status, that substitutes the proper values into
  23073. # config.h.in to produce config.h.
  23074. # Create a delimiter string that does not exist in confdefs.h, to ease
  23075. # handling of long lines.
  23076. ac_delim='%!_!# '
  23077. for ac_last_try in false false :; do
  23078. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23079. if test -z "$ac_tt"; then
  23080. break
  23081. elif $ac_last_try; then
  23082. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23083. else
  23084. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23085. fi
  23086. done
  23087. # For the awk script, D is an array of macro values keyed by name,
  23088. # likewise P contains macro parameters if any. Preserve backslash
  23089. # newline sequences.
  23090. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23091. sed -n '
  23092. s/.\{148\}/&'"$ac_delim"'/g
  23093. t rset
  23094. :rset
  23095. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23096. t def
  23097. d
  23098. :def
  23099. s/\\$//
  23100. t bsnl
  23101. s/["\\]/\\&/g
  23102. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23103. D["\1"]=" \3"/p
  23104. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23105. d
  23106. :bsnl
  23107. s/["\\]/\\&/g
  23108. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23109. D["\1"]=" \3\\\\\\n"\\/p
  23110. t cont
  23111. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23112. t cont
  23113. d
  23114. :cont
  23115. n
  23116. s/.\{148\}/&'"$ac_delim"'/g
  23117. t clear
  23118. :clear
  23119. s/\\$//
  23120. t bsnlc
  23121. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23122. d
  23123. :bsnlc
  23124. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23125. b cont
  23126. ' <confdefs.h | sed '
  23127. s/'"$ac_delim"'/"\\\
  23128. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23129. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23130. for (key in D) D_is_set[key] = 1
  23131. FS = ""
  23132. }
  23133. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23134. line = \$ 0
  23135. split(line, arg, " ")
  23136. if (arg[1] == "#") {
  23137. defundef = arg[2]
  23138. mac1 = arg[3]
  23139. } else {
  23140. defundef = substr(arg[1], 2)
  23141. mac1 = arg[2]
  23142. }
  23143. split(mac1, mac2, "(") #)
  23144. macro = mac2[1]
  23145. prefix = substr(line, 1, index(line, defundef) - 1)
  23146. if (D_is_set[macro]) {
  23147. # Preserve the white space surrounding the "#".
  23148. print prefix "define", macro P[macro] D[macro]
  23149. next
  23150. } else {
  23151. # Replace #undef with comments. This is necessary, for example,
  23152. # in the case of _POSIX_SOURCE, which is predefined and required
  23153. # on some systems where configure will not decide to define it.
  23154. if (defundef == "undef") {
  23155. print "/*", prefix defundef, macro, "*/"
  23156. next
  23157. }
  23158. }
  23159. }
  23160. { print }
  23161. _ACAWK
  23162. _ACEOF
  23163. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23164. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23165. fi # test -n "$CONFIG_HEADERS"
  23166. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23167. shift
  23168. for ac_tag
  23169. do
  23170. case $ac_tag in
  23171. :[FHLC]) ac_mode=$ac_tag; continue;;
  23172. esac
  23173. case $ac_mode$ac_tag in
  23174. :[FHL]*:*);;
  23175. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23176. :[FH]-) ac_tag=-:-;;
  23177. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23178. esac
  23179. ac_save_IFS=$IFS
  23180. IFS=:
  23181. set x $ac_tag
  23182. IFS=$ac_save_IFS
  23183. shift
  23184. ac_file=$1
  23185. shift
  23186. case $ac_mode in
  23187. :L) ac_source=$1;;
  23188. :[FH])
  23189. ac_file_inputs=
  23190. for ac_f
  23191. do
  23192. case $ac_f in
  23193. -) ac_f="$ac_tmp/stdin";;
  23194. *) # Look for the file first in the build tree, then in the source tree
  23195. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23196. # because $ac_f cannot contain `:'.
  23197. test -f "$ac_f" ||
  23198. case $ac_f in
  23199. [\\/$]*) false;;
  23200. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23201. esac ||
  23202. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23203. esac
  23204. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23205. as_fn_append ac_file_inputs " '$ac_f'"
  23206. done
  23207. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23208. # use $as_me), people would be surprised to read:
  23209. # /* config.h. Generated by config.status. */
  23210. configure_input='Generated from '`
  23211. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23212. `' by configure.'
  23213. if test x"$ac_file" != x-; then
  23214. configure_input="$ac_file. $configure_input"
  23215. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23216. $as_echo "$as_me: creating $ac_file" >&6;}
  23217. fi
  23218. # Neutralize special characters interpreted by sed in replacement strings.
  23219. case $configure_input in #(
  23220. *\&* | *\|* | *\\* )
  23221. ac_sed_conf_input=`$as_echo "$configure_input" |
  23222. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23223. *) ac_sed_conf_input=$configure_input;;
  23224. esac
  23225. case $ac_tag in
  23226. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23227. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23228. esac
  23229. ;;
  23230. esac
  23231. ac_dir=`$as_dirname -- "$ac_file" ||
  23232. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23233. X"$ac_file" : 'X\(//\)[^/]' \| \
  23234. X"$ac_file" : 'X\(//\)$' \| \
  23235. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23236. $as_echo X"$ac_file" |
  23237. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23238. s//\1/
  23239. q
  23240. }
  23241. /^X\(\/\/\)[^/].*/{
  23242. s//\1/
  23243. q
  23244. }
  23245. /^X\(\/\/\)$/{
  23246. s//\1/
  23247. q
  23248. }
  23249. /^X\(\/\).*/{
  23250. s//\1/
  23251. q
  23252. }
  23253. s/.*/./; q'`
  23254. as_dir="$ac_dir"; as_fn_mkdir_p
  23255. ac_builddir=.
  23256. case "$ac_dir" in
  23257. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23258. *)
  23259. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23260. # A ".." for each directory in $ac_dir_suffix.
  23261. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23262. case $ac_top_builddir_sub in
  23263. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23264. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23265. esac ;;
  23266. esac
  23267. ac_abs_top_builddir=$ac_pwd
  23268. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23269. # for backward compatibility:
  23270. ac_top_builddir=$ac_top_build_prefix
  23271. case $srcdir in
  23272. .) # We are building in place.
  23273. ac_srcdir=.
  23274. ac_top_srcdir=$ac_top_builddir_sub
  23275. ac_abs_top_srcdir=$ac_pwd ;;
  23276. [\\/]* | ?:[\\/]* ) # Absolute name.
  23277. ac_srcdir=$srcdir$ac_dir_suffix;
  23278. ac_top_srcdir=$srcdir
  23279. ac_abs_top_srcdir=$srcdir ;;
  23280. *) # Relative name.
  23281. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23282. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23283. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23284. esac
  23285. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23286. case $ac_mode in
  23287. :F)
  23288. #
  23289. # CONFIG_FILE
  23290. #
  23291. case $INSTALL in
  23292. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23293. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23294. esac
  23295. _ACEOF
  23296. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23297. # If the template does not know about datarootdir, expand it.
  23298. # FIXME: This hack should be removed a few years after 2.60.
  23299. ac_datarootdir_hack=; ac_datarootdir_seen=
  23300. ac_sed_dataroot='
  23301. /datarootdir/ {
  23302. p
  23303. q
  23304. }
  23305. /@datadir@/p
  23306. /@docdir@/p
  23307. /@infodir@/p
  23308. /@localedir@/p
  23309. /@mandir@/p'
  23310. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23311. *datarootdir*) ac_datarootdir_seen=yes;;
  23312. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23314. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23315. _ACEOF
  23316. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23317. ac_datarootdir_hack='
  23318. s&@datadir@&$datadir&g
  23319. s&@docdir@&$docdir&g
  23320. s&@infodir@&$infodir&g
  23321. s&@localedir@&$localedir&g
  23322. s&@mandir@&$mandir&g
  23323. s&\\\${datarootdir}&$datarootdir&g' ;;
  23324. esac
  23325. _ACEOF
  23326. # Neutralize VPATH when `$srcdir' = `.'.
  23327. # Shell code in configure.ac might set extrasub.
  23328. # FIXME: do we really want to maintain this feature?
  23329. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23330. ac_sed_extra="$ac_vpsub
  23331. $extrasub
  23332. _ACEOF
  23333. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23334. :t
  23335. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23336. s|@configure_input@|$ac_sed_conf_input|;t t
  23337. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23338. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23339. s&@srcdir@&$ac_srcdir&;t t
  23340. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23341. s&@top_srcdir@&$ac_top_srcdir&;t t
  23342. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23343. s&@builddir@&$ac_builddir&;t t
  23344. s&@abs_builddir@&$ac_abs_builddir&;t t
  23345. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23346. s&@INSTALL@&$ac_INSTALL&;t t
  23347. $ac_datarootdir_hack
  23348. "
  23349. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23350. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23351. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23352. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23353. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23354. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23356. which seems to be undefined. Please make sure it is defined" >&5
  23357. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23358. which seems to be undefined. Please make sure it is defined" >&2;}
  23359. rm -f "$ac_tmp/stdin"
  23360. case $ac_file in
  23361. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23362. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23363. esac \
  23364. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23365. ;;
  23366. :H)
  23367. #
  23368. # CONFIG_HEADER
  23369. #
  23370. if test x"$ac_file" != x-; then
  23371. {
  23372. $as_echo "/* $configure_input */" \
  23373. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23374. } >"$ac_tmp/config.h" \
  23375. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23376. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23377. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23378. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23379. else
  23380. rm -f "$ac_file"
  23381. mv "$ac_tmp/config.h" "$ac_file" \
  23382. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23383. fi
  23384. else
  23385. $as_echo "/* $configure_input */" \
  23386. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23387. || as_fn_error $? "could not create -" "$LINENO" 5
  23388. fi
  23389. ;;
  23390. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23391. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23392. ;;
  23393. esac
  23394. case $ac_file$ac_mode in
  23395. "libtool":C)
  23396. # See if we are running on zsh, and set the options which allow our
  23397. # commands through without removal of \ escapes.
  23398. if test -n "${ZSH_VERSION+set}" ; then
  23399. setopt NO_GLOB_SUBST
  23400. fi
  23401. cfgfile="${ofile}T"
  23402. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23403. $RM "$cfgfile"
  23404. cat <<_LT_EOF >> "$cfgfile"
  23405. #! $SHELL
  23406. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23407. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23408. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23409. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23410. #
  23411. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23412. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23413. # Foundation, Inc.
  23414. # Written by Gordon Matzigkeit, 1996
  23415. #
  23416. # This file is part of GNU Libtool.
  23417. #
  23418. # GNU Libtool is free software; you can redistribute it and/or
  23419. # modify it under the terms of the GNU General Public License as
  23420. # published by the Free Software Foundation; either version 2 of
  23421. # the License, or (at your option) any later version.
  23422. #
  23423. # As a special exception to the GNU General Public License,
  23424. # if you distribute this file as part of a program or library that
  23425. # is built using GNU Libtool, you may include this file under the
  23426. # same distribution terms that you use for the rest of that program.
  23427. #
  23428. # GNU Libtool is distributed in the hope that it will be useful,
  23429. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23430. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23431. # GNU General Public License for more details.
  23432. #
  23433. # You should have received a copy of the GNU General Public License
  23434. # along with GNU Libtool; see the file COPYING. If not, a copy
  23435. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23436. # obtained by writing to the Free Software Foundation, Inc.,
  23437. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23438. # The names of the tagged configurations supported by this script.
  23439. available_tags="CXX "
  23440. # ### BEGIN LIBTOOL CONFIG
  23441. # Which release of libtool.m4 was used?
  23442. macro_version=$macro_version
  23443. macro_revision=$macro_revision
  23444. # Assembler program.
  23445. AS=$lt_AS
  23446. # DLL creation program.
  23447. DLLTOOL=$lt_DLLTOOL
  23448. # Object dumper program.
  23449. OBJDUMP=$lt_OBJDUMP
  23450. # Whether or not to build shared libraries.
  23451. build_libtool_libs=$enable_shared
  23452. # Whether or not to build static libraries.
  23453. build_old_libs=$enable_static
  23454. # What type of objects to build.
  23455. pic_mode=$pic_mode
  23456. # Whether or not to optimize for fast installation.
  23457. fast_install=$enable_fast_install
  23458. # Shell to use when invoking shell scripts.
  23459. SHELL=$lt_SHELL
  23460. # An echo program that protects backslashes.
  23461. ECHO=$lt_ECHO
  23462. # The PATH separator for the build system.
  23463. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23464. # The host system.
  23465. host_alias=$host_alias
  23466. host=$host
  23467. host_os=$host_os
  23468. # The build system.
  23469. build_alias=$build_alias
  23470. build=$build
  23471. build_os=$build_os
  23472. # A sed program that does not truncate output.
  23473. SED=$lt_SED
  23474. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23475. Xsed="\$SED -e 1s/^X//"
  23476. # A grep program that handles long lines.
  23477. GREP=$lt_GREP
  23478. # An ERE matcher.
  23479. EGREP=$lt_EGREP
  23480. # A literal string matcher.
  23481. FGREP=$lt_FGREP
  23482. # A BSD- or MS-compatible name lister.
  23483. NM=$lt_NM
  23484. # Whether we need soft or hard links.
  23485. LN_S=$lt_LN_S
  23486. # What is the maximum length of a command?
  23487. max_cmd_len=$max_cmd_len
  23488. # Object file suffix (normally "o").
  23489. objext=$ac_objext
  23490. # Executable file suffix (normally "").
  23491. exeext=$exeext
  23492. # whether the shell understands "unset".
  23493. lt_unset=$lt_unset
  23494. # turn spaces into newlines.
  23495. SP2NL=$lt_lt_SP2NL
  23496. # turn newlines into spaces.
  23497. NL2SP=$lt_lt_NL2SP
  23498. # convert \$build file names to \$host format.
  23499. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23500. # convert \$build files to toolchain format.
  23501. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23502. # Method to check whether dependent libraries are shared objects.
  23503. deplibs_check_method=$lt_deplibs_check_method
  23504. # Command to use when deplibs_check_method = "file_magic".
  23505. file_magic_cmd=$lt_file_magic_cmd
  23506. # How to find potential files when deplibs_check_method = "file_magic".
  23507. file_magic_glob=$lt_file_magic_glob
  23508. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23509. want_nocaseglob=$lt_want_nocaseglob
  23510. # Command to associate shared and link libraries.
  23511. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23512. # The archiver.
  23513. AR=$lt_AR
  23514. # Flags to create an archive.
  23515. AR_FLAGS=$lt_AR_FLAGS
  23516. # How to feed a file listing to the archiver.
  23517. archiver_list_spec=$lt_archiver_list_spec
  23518. # A symbol stripping program.
  23519. STRIP=$lt_STRIP
  23520. # Commands used to install an old-style archive.
  23521. RANLIB=$lt_RANLIB
  23522. old_postinstall_cmds=$lt_old_postinstall_cmds
  23523. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23524. # Whether to use a lock for old archive extraction.
  23525. lock_old_archive_extraction=$lock_old_archive_extraction
  23526. # A C compiler.
  23527. LTCC=$lt_CC
  23528. # LTCC compiler flags.
  23529. LTCFLAGS=$lt_CFLAGS
  23530. # Take the output of nm and produce a listing of raw symbols and C names.
  23531. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23532. # Transform the output of nm in a proper C declaration.
  23533. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23534. # Transform the output of nm in a C name address pair.
  23535. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23536. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23537. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23538. # Specify filename containing input files for \$NM.
  23539. nm_file_list_spec=$lt_nm_file_list_spec
  23540. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23541. lt_sysroot=$lt_sysroot
  23542. # The name of the directory that contains temporary libtool files.
  23543. objdir=$objdir
  23544. # Used to examine libraries when file_magic_cmd begins with "file".
  23545. MAGIC_CMD=$MAGIC_CMD
  23546. # Must we lock files when doing compilation?
  23547. need_locks=$lt_need_locks
  23548. # Manifest tool.
  23549. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23550. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23551. DSYMUTIL=$lt_DSYMUTIL
  23552. # Tool to change global to local symbols on Mac OS X.
  23553. NMEDIT=$lt_NMEDIT
  23554. # Tool to manipulate fat objects and archives on Mac OS X.
  23555. LIPO=$lt_LIPO
  23556. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23557. OTOOL=$lt_OTOOL
  23558. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23559. OTOOL64=$lt_OTOOL64
  23560. # Old archive suffix (normally "a").
  23561. libext=$libext
  23562. # Shared library suffix (normally ".so").
  23563. shrext_cmds=$lt_shrext_cmds
  23564. # The commands to extract the exported symbol list from a shared archive.
  23565. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23566. # Variables whose values should be saved in libtool wrapper scripts and
  23567. # restored at link time.
  23568. variables_saved_for_relink=$lt_variables_saved_for_relink
  23569. # Do we need the "lib" prefix for modules?
  23570. need_lib_prefix=$need_lib_prefix
  23571. # Do we need a version for libraries?
  23572. need_version=$need_version
  23573. # Library versioning type.
  23574. version_type=$version_type
  23575. # Shared library runtime path variable.
  23576. runpath_var=$runpath_var
  23577. # Shared library path variable.
  23578. shlibpath_var=$shlibpath_var
  23579. # Is shlibpath searched before the hard-coded library search path?
  23580. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23581. # Format of library name prefix.
  23582. libname_spec=$lt_libname_spec
  23583. # List of archive names. First name is the real one, the rest are links.
  23584. # The last name is the one that the linker finds with -lNAME
  23585. library_names_spec=$lt_library_names_spec
  23586. # The coded name of the library, if different from the real name.
  23587. soname_spec=$lt_soname_spec
  23588. # Permission mode override for installation of shared libraries.
  23589. install_override_mode=$lt_install_override_mode
  23590. # Command to use after installation of a shared archive.
  23591. postinstall_cmds=$lt_postinstall_cmds
  23592. # Command to use after uninstallation of a shared archive.
  23593. postuninstall_cmds=$lt_postuninstall_cmds
  23594. # Commands used to finish a libtool library installation in a directory.
  23595. finish_cmds=$lt_finish_cmds
  23596. # As "finish_cmds", except a single script fragment to be evaled but
  23597. # not shown.
  23598. finish_eval=$lt_finish_eval
  23599. # Whether we should hardcode library paths into libraries.
  23600. hardcode_into_libs=$hardcode_into_libs
  23601. # Compile-time system search path for libraries.
  23602. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23603. # Run-time system search path for libraries.
  23604. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23605. # Whether dlopen is supported.
  23606. dlopen_support=$enable_dlopen
  23607. # Whether dlopen of programs is supported.
  23608. dlopen_self=$enable_dlopen_self
  23609. # Whether dlopen of statically linked programs is supported.
  23610. dlopen_self_static=$enable_dlopen_self_static
  23611. # Commands to strip libraries.
  23612. old_striplib=$lt_old_striplib
  23613. striplib=$lt_striplib
  23614. # The linker used to build libraries.
  23615. LD=$lt_LD
  23616. # How to create reloadable object files.
  23617. reload_flag=$lt_reload_flag
  23618. reload_cmds=$lt_reload_cmds
  23619. # Commands used to build an old-style archive.
  23620. old_archive_cmds=$lt_old_archive_cmds
  23621. # A language specific compiler.
  23622. CC=$lt_compiler
  23623. # Is the compiler the GNU compiler?
  23624. with_gcc=$GCC
  23625. # Compiler flag to turn off builtin functions.
  23626. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23627. # Additional compiler flags for building library objects.
  23628. pic_flag=$lt_lt_prog_compiler_pic
  23629. # How to pass a linker flag through the compiler.
  23630. wl=$lt_lt_prog_compiler_wl
  23631. # Compiler flag to prevent dynamic linking.
  23632. link_static_flag=$lt_lt_prog_compiler_static
  23633. # Does compiler simultaneously support -c and -o options?
  23634. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23635. # Whether or not to add -lc for building shared libraries.
  23636. build_libtool_need_lc=$archive_cmds_need_lc
  23637. # Whether or not to disallow shared libs when runtime libs are static.
  23638. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23639. # Compiler flag to allow reflexive dlopens.
  23640. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23641. # Compiler flag to generate shared objects directly from archives.
  23642. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23643. # Whether the compiler copes with passing no objects directly.
  23644. compiler_needs_object=$lt_compiler_needs_object
  23645. # Create an old-style archive from a shared archive.
  23646. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23647. # Create a temporary old-style archive to link instead of a shared archive.
  23648. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23649. # Commands used to build a shared archive.
  23650. archive_cmds=$lt_archive_cmds
  23651. archive_expsym_cmds=$lt_archive_expsym_cmds
  23652. # Commands used to build a loadable module if different from building
  23653. # a shared archive.
  23654. module_cmds=$lt_module_cmds
  23655. module_expsym_cmds=$lt_module_expsym_cmds
  23656. # Whether we are building with GNU ld or not.
  23657. with_gnu_ld=$lt_with_gnu_ld
  23658. # Flag that allows shared libraries with undefined symbols to be built.
  23659. allow_undefined_flag=$lt_allow_undefined_flag
  23660. # Flag that enforces no undefined symbols.
  23661. no_undefined_flag=$lt_no_undefined_flag
  23662. # Flag to hardcode \$libdir into a binary during linking.
  23663. # This must work even if \$libdir does not exist
  23664. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23665. # Whether we need a single "-rpath" flag with a separated argument.
  23666. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23667. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23668. # DIR into the resulting binary.
  23669. hardcode_direct=$hardcode_direct
  23670. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23671. # DIR into the resulting binary and the resulting library dependency is
  23672. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23673. # library is relocated.
  23674. hardcode_direct_absolute=$hardcode_direct_absolute
  23675. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23676. # into the resulting binary.
  23677. hardcode_minus_L=$hardcode_minus_L
  23678. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23679. # into the resulting binary.
  23680. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23681. # Set to "yes" if building a shared library automatically hardcodes DIR
  23682. # into the library and all subsequent libraries and executables linked
  23683. # against it.
  23684. hardcode_automatic=$hardcode_automatic
  23685. # Set to yes if linker adds runtime paths of dependent libraries
  23686. # to runtime path list.
  23687. inherit_rpath=$inherit_rpath
  23688. # Whether libtool must link a program against all its dependency libraries.
  23689. link_all_deplibs=$link_all_deplibs
  23690. # Set to "yes" if exported symbols are required.
  23691. always_export_symbols=$always_export_symbols
  23692. # The commands to list exported symbols.
  23693. export_symbols_cmds=$lt_export_symbols_cmds
  23694. # Symbols that should not be listed in the preloaded symbols.
  23695. exclude_expsyms=$lt_exclude_expsyms
  23696. # Symbols that must always be exported.
  23697. include_expsyms=$lt_include_expsyms
  23698. # Commands necessary for linking programs (against libraries) with templates.
  23699. prelink_cmds=$lt_prelink_cmds
  23700. # Commands necessary for finishing linking programs.
  23701. postlink_cmds=$lt_postlink_cmds
  23702. # Specify filename containing input files.
  23703. file_list_spec=$lt_file_list_spec
  23704. # How to hardcode a shared library path into an executable.
  23705. hardcode_action=$hardcode_action
  23706. # The directories searched by this compiler when creating a shared library.
  23707. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23708. # Dependencies to place before and after the objects being linked to
  23709. # create a shared library.
  23710. predep_objects=$lt_predep_objects
  23711. postdep_objects=$lt_postdep_objects
  23712. predeps=$lt_predeps
  23713. postdeps=$lt_postdeps
  23714. # The library search path used internally by the compiler when linking
  23715. # a shared library.
  23716. compiler_lib_search_path=$lt_compiler_lib_search_path
  23717. # ### END LIBTOOL CONFIG
  23718. _LT_EOF
  23719. case $host_os in
  23720. aix3*)
  23721. cat <<\_LT_EOF >> "$cfgfile"
  23722. # AIX sometimes has problems with the GCC collect2 program. For some
  23723. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23724. # vanish in a puff of smoke.
  23725. if test "X${COLLECT_NAMES+set}" != Xset; then
  23726. COLLECT_NAMES=
  23727. export COLLECT_NAMES
  23728. fi
  23729. _LT_EOF
  23730. ;;
  23731. esac
  23732. ltmain="$ac_aux_dir/ltmain.sh"
  23733. # We use sed instead of cat because bash on DJGPP gets confused if
  23734. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23735. # text mode, it properly converts lines to CR/LF. This bash problem
  23736. # is reportedly fixed, but why not run on old versions too?
  23737. sed '$q' "$ltmain" >> "$cfgfile" \
  23738. || (rm -f "$cfgfile"; exit 1)
  23739. if test x"$xsi_shell" = xyes; then
  23740. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23741. func_dirname ()\
  23742. {\
  23743. \ case ${1} in\
  23744. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23745. \ * ) func_dirname_result="${3}" ;;\
  23746. \ esac\
  23747. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23748. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23749. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23750. test 0 -eq $? || _lt_function_replace_fail=:
  23751. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23752. func_basename ()\
  23753. {\
  23754. \ func_basename_result="${1##*/}"\
  23755. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23756. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23757. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23758. test 0 -eq $? || _lt_function_replace_fail=:
  23759. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23760. func_dirname_and_basename ()\
  23761. {\
  23762. \ case ${1} in\
  23763. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23764. \ * ) func_dirname_result="${3}" ;;\
  23765. \ esac\
  23766. \ func_basename_result="${1##*/}"\
  23767. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23768. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23769. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23770. test 0 -eq $? || _lt_function_replace_fail=:
  23771. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23772. func_stripname ()\
  23773. {\
  23774. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23775. \ # positional parameters, so assign one to ordinary parameter first.\
  23776. \ func_stripname_result=${3}\
  23777. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23778. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23779. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23780. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23781. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23782. test 0 -eq $? || _lt_function_replace_fail=:
  23783. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23784. func_split_long_opt ()\
  23785. {\
  23786. \ func_split_long_opt_name=${1%%=*}\
  23787. \ func_split_long_opt_arg=${1#*=}\
  23788. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23789. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23790. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23791. test 0 -eq $? || _lt_function_replace_fail=:
  23792. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23793. func_split_short_opt ()\
  23794. {\
  23795. \ func_split_short_opt_arg=${1#??}\
  23796. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23797. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23798. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23799. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23800. test 0 -eq $? || _lt_function_replace_fail=:
  23801. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23802. func_lo2o ()\
  23803. {\
  23804. \ case ${1} in\
  23805. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23806. \ *) func_lo2o_result=${1} ;;\
  23807. \ esac\
  23808. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23809. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23810. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23811. test 0 -eq $? || _lt_function_replace_fail=:
  23812. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23813. func_xform ()\
  23814. {\
  23815. func_xform_result=${1%.*}.lo\
  23816. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23817. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23818. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23819. test 0 -eq $? || _lt_function_replace_fail=:
  23820. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23821. func_arith ()\
  23822. {\
  23823. func_arith_result=$(( $* ))\
  23824. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23825. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23826. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23827. test 0 -eq $? || _lt_function_replace_fail=:
  23828. sed -e '/^func_len ()$/,/^} # func_len /c\
  23829. func_len ()\
  23830. {\
  23831. func_len_result=${#1}\
  23832. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23833. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23834. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23835. test 0 -eq $? || _lt_function_replace_fail=:
  23836. fi
  23837. if test x"$lt_shell_append" = xyes; then
  23838. sed -e '/^func_append ()$/,/^} # func_append /c\
  23839. func_append ()\
  23840. {\
  23841. eval "${1}+=\\${2}"\
  23842. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23843. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23844. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23845. test 0 -eq $? || _lt_function_replace_fail=:
  23846. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23847. func_append_quoted ()\
  23848. {\
  23849. \ func_quote_for_eval "${2}"\
  23850. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23851. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23852. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23853. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23854. test 0 -eq $? || _lt_function_replace_fail=:
  23855. # Save a `func_append' function call where possible by direct use of '+='
  23856. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23857. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23858. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23859. test 0 -eq $? || _lt_function_replace_fail=:
  23860. else
  23861. # Save a `func_append' function call even when '+=' is not available
  23862. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23863. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23864. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23865. test 0 -eq $? || _lt_function_replace_fail=:
  23866. fi
  23867. if test x"$_lt_function_replace_fail" = x":"; then
  23868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23869. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23870. fi
  23871. mv -f "$cfgfile" "$ofile" ||
  23872. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23873. chmod +x "$ofile"
  23874. cat <<_LT_EOF >> "$ofile"
  23875. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23876. # The linker used to build libraries.
  23877. LD=$lt_LD_CXX
  23878. # How to create reloadable object files.
  23879. reload_flag=$lt_reload_flag_CXX
  23880. reload_cmds=$lt_reload_cmds_CXX
  23881. # Commands used to build an old-style archive.
  23882. old_archive_cmds=$lt_old_archive_cmds_CXX
  23883. # A language specific compiler.
  23884. CC=$lt_compiler_CXX
  23885. # Is the compiler the GNU compiler?
  23886. with_gcc=$GCC_CXX
  23887. # Compiler flag to turn off builtin functions.
  23888. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23889. # Additional compiler flags for building library objects.
  23890. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23891. # How to pass a linker flag through the compiler.
  23892. wl=$lt_lt_prog_compiler_wl_CXX
  23893. # Compiler flag to prevent dynamic linking.
  23894. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23895. # Does compiler simultaneously support -c and -o options?
  23896. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23897. # Whether or not to add -lc for building shared libraries.
  23898. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23899. # Whether or not to disallow shared libs when runtime libs are static.
  23900. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23901. # Compiler flag to allow reflexive dlopens.
  23902. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23903. # Compiler flag to generate shared objects directly from archives.
  23904. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23905. # Whether the compiler copes with passing no objects directly.
  23906. compiler_needs_object=$lt_compiler_needs_object_CXX
  23907. # Create an old-style archive from a shared archive.
  23908. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23909. # Create a temporary old-style archive to link instead of a shared archive.
  23910. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23911. # Commands used to build a shared archive.
  23912. archive_cmds=$lt_archive_cmds_CXX
  23913. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23914. # Commands used to build a loadable module if different from building
  23915. # a shared archive.
  23916. module_cmds=$lt_module_cmds_CXX
  23917. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23918. # Whether we are building with GNU ld or not.
  23919. with_gnu_ld=$lt_with_gnu_ld_CXX
  23920. # Flag that allows shared libraries with undefined symbols to be built.
  23921. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23922. # Flag that enforces no undefined symbols.
  23923. no_undefined_flag=$lt_no_undefined_flag_CXX
  23924. # Flag to hardcode \$libdir into a binary during linking.
  23925. # This must work even if \$libdir does not exist
  23926. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23927. # Whether we need a single "-rpath" flag with a separated argument.
  23928. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23929. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23930. # DIR into the resulting binary.
  23931. hardcode_direct=$hardcode_direct_CXX
  23932. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23933. # DIR into the resulting binary and the resulting library dependency is
  23934. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23935. # library is relocated.
  23936. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23937. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23938. # into the resulting binary.
  23939. hardcode_minus_L=$hardcode_minus_L_CXX
  23940. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23941. # into the resulting binary.
  23942. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23943. # Set to "yes" if building a shared library automatically hardcodes DIR
  23944. # into the library and all subsequent libraries and executables linked
  23945. # against it.
  23946. hardcode_automatic=$hardcode_automatic_CXX
  23947. # Set to yes if linker adds runtime paths of dependent libraries
  23948. # to runtime path list.
  23949. inherit_rpath=$inherit_rpath_CXX
  23950. # Whether libtool must link a program against all its dependency libraries.
  23951. link_all_deplibs=$link_all_deplibs_CXX
  23952. # Set to "yes" if exported symbols are required.
  23953. always_export_symbols=$always_export_symbols_CXX
  23954. # The commands to list exported symbols.
  23955. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23956. # Symbols that should not be listed in the preloaded symbols.
  23957. exclude_expsyms=$lt_exclude_expsyms_CXX
  23958. # Symbols that must always be exported.
  23959. include_expsyms=$lt_include_expsyms_CXX
  23960. # Commands necessary for linking programs (against libraries) with templates.
  23961. prelink_cmds=$lt_prelink_cmds_CXX
  23962. # Commands necessary for finishing linking programs.
  23963. postlink_cmds=$lt_postlink_cmds_CXX
  23964. # Specify filename containing input files.
  23965. file_list_spec=$lt_file_list_spec_CXX
  23966. # How to hardcode a shared library path into an executable.
  23967. hardcode_action=$hardcode_action_CXX
  23968. # The directories searched by this compiler when creating a shared library.
  23969. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23970. # Dependencies to place before and after the objects being linked to
  23971. # create a shared library.
  23972. predep_objects=$lt_predep_objects_CXX
  23973. postdep_objects=$lt_postdep_objects_CXX
  23974. predeps=$lt_predeps_CXX
  23975. postdeps=$lt_postdeps_CXX
  23976. # The library search path used internally by the compiler when linking
  23977. # a shared library.
  23978. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23979. # ### END LIBTOOL TAG CONFIG: CXX
  23980. _LT_EOF
  23981. ;;
  23982. "sdl2_config":C) chmod a+x sdl2-config ;;
  23983. "summary":C) echo -en "$SUMMARY" ;;
  23984. esac
  23985. done # for ac_tag
  23986. as_fn_exit 0
  23987. _ACEOF
  23988. ac_clean_files=$ac_clean_files_save
  23989. test $ac_write_fail = 0 ||
  23990. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23991. # configure is writing to config.log, and then calls config.status.
  23992. # config.status does its own redirection, appending to config.log.
  23993. # Unfortunately, on DOS this fails, as config.log is still kept open
  23994. # by configure, so config.status won't be able to write to it; its
  23995. # output is simply discarded. So we exec the FD to /dev/null,
  23996. # effectively closing config.log, so it can be properly (re)opened and
  23997. # appended to by config.status. When coming back to configure, we
  23998. # need to make the FD available again.
  23999. if test "$no_create" != yes; then
  24000. ac_cs_success=:
  24001. ac_config_status_args=
  24002. test "$silent" = yes &&
  24003. ac_config_status_args="$ac_config_status_args --quiet"
  24004. exec 5>/dev/null
  24005. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24006. exec 5>>config.log
  24007. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24008. # would make configure fail if this is the last instruction.
  24009. $ac_cs_success || as_fn_exit 1
  24010. fi
  24011. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24013. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24014. fi