Mercurial > mplayer.hg
changeset 30222:4588d468fa98
Fix OpenGL detection for OpenSolaris where -lXdamage is necessary.
author | reimar |
---|---|
date | Sun, 10 Jan 2010 18:22:01 +0000 |
parents | 47f48219b81f |
children | 271a7b3bc116 |
files | configure |
diffstat | 1 files changed, 8 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sun Jan 10 16:00:07 2010 +0000 +++ b/configure Sun Jan 10 18:22:01 2010 +0000 @@ -4945,15 +4945,14 @@ } EOF _gl=no - if cc_check -lGL $_ld_lm ; then - _gl=yes - _gl_x11=yes - libs_mplayer="$libs_mplayer -lGL $_ld_dl" - elif cc_check -lGL $_ld_lm $_ld_pthread ; then - _gl=yes - _gl_x11=yes - libs_mplayer="$libs_mplayer -lGL $_ld_pthread $_ld_dl" - fi + for _ld_tmp in -lGL "-lGL -lXdamage" "-lGL $_ld_pthread" ; do + if cc_check $_ld_tmp $_ld_lm ; then + _gl=yes + _gl_x11=yes + libs_mplayer="$libs_mplayer $_ld_tmp $_ld_dl" + break + fi + done if cc_check -DGL_WIN32 -lopengl32 ; then _gl=yes _gl_win32=yes