when --enable-gl was used, linker flags (_ld_gl) were not set (found by Nick K)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3019 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2001-11-20 09:26:44 +00:00
parent 16fd954717
commit a9cd780dd1
1 changed files with 3 additions and 2 deletions

5
configure vendored
View File

@ -1438,7 +1438,8 @@ echores "$_dga2"
echocheck "OpenGL"
if test "$_x11" = yes && test "$_gl" = auto ; then
#Note: this test is run even with --enable-gl since we autodetect $_ld_gl
if test "$_x11" = yes && test "$_gl" != no ; then
cat > $TMPC << EOF
#include <GL/gl.h>
int main(void) { return 0; }
@ -1458,7 +1459,6 @@ else
_gl=no
fi
if test "$_gl" = yes ; then
#FIXME ?? : bsd && test -r /usr/X11R6/bin/XFree86 && _ld_gl="-lGL $_ld_pthread"
_def_gl='#define HAVE_GL 1'
_vosrc="$_vosrc vo_gl.c vo_gl2.c"
else
@ -1887,6 +1887,7 @@ else
_def_rtc='#undef HAVE_RTC'
fi
echocheck "mad support"
if test "$_mad" = auto ; then
_mad=no