comparison configure @ 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 052c823850f0
comparison
equal deleted inserted replaced
30221:47f48219b81f 30222:4588d468fa98
4943 glFinish(); 4943 glFinish();
4944 return 0; 4944 return 0;
4945 } 4945 }
4946 EOF 4946 EOF
4947 _gl=no 4947 _gl=no
4948 if cc_check -lGL $_ld_lm ; then 4948 for _ld_tmp in -lGL "-lGL -lXdamage" "-lGL $_ld_pthread" ; do
4949 _gl=yes 4949 if cc_check $_ld_tmp $_ld_lm ; then
4950 _gl_x11=yes 4950 _gl=yes
4951 libs_mplayer="$libs_mplayer -lGL $_ld_dl" 4951 _gl_x11=yes
4952 elif cc_check -lGL $_ld_lm $_ld_pthread ; then 4952 libs_mplayer="$libs_mplayer $_ld_tmp $_ld_dl"
4953 _gl=yes 4953 break
4954 _gl_x11=yes 4954 fi
4955 libs_mplayer="$libs_mplayer -lGL $_ld_pthread $_ld_dl" 4955 done
4956 fi
4957 if cc_check -DGL_WIN32 -lopengl32 ; then 4956 if cc_check -DGL_WIN32 -lopengl32 ; then
4958 _gl=yes 4957 _gl=yes
4959 _gl_win32=yes 4958 _gl_win32=yes
4960 libs_mplayer="$libs_mplayer -lopengl32 -lgdi32" 4959 libs_mplayer="$libs_mplayer -lopengl32 -lgdi32"
4961 fi 4960 fi