mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 10:26:09 +00:00
Fix OpenGL detection for OpenSolaris where -lXdamage is necessary.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30264 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fff96519ee
commit
4e50b6df73
17
configure
vendored
17
configure
vendored
@ -4945,15 +4945,14 @@ int main(void) {
|
||||
}
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user