mirror of https://github.com/snes9xgit/snes9x.git
GTK+: OpenGL: Don't link libGL directly.
This commit is contained in:
parent
a573dee5fe
commit
bbebb2255a
|
@ -167,18 +167,13 @@ PKG_CHECK_MODULES([GLIB], [glib-2.0 > 2.28 gthread-2.0 >= 2.6 gobject-2.0 >= 2.6
|
||||||
PKG_CHECK_MODULES([XRANDR], [xrandr])
|
PKG_CHECK_MODULES([XRANDR], [xrandr])
|
||||||
|
|
||||||
if test yes = "$with_opengl" ; then
|
if test yes = "$with_opengl" ; then
|
||||||
|
PKG_CHECK_MODULES([EPOXY], [epoxy], [
|
||||||
AC_CHECK_LIB(GL,glGetString,[
|
CFLAGS="$CFLAGS $EPOXY_CFLAGS -DUSE_OPENGL"
|
||||||
OPENGL=yes
|
LIBS="$LIBS $EPOXY_LIBS"
|
||||||
CFLAGS="$CFLAGS -DUSE_OPENGL"
|
], [
|
||||||
LIBS="$LIBS -lGL"
|
echo "Couldn't find libepoxy. Disabling OpenGL."
|
||||||
],[
|
OPENGL=no
|
||||||
OPENGL=0
|
|
||||||
])
|
])
|
||||||
|
|
||||||
PKG_CHECK_MODULES([EPOXY], [epoxy]);
|
|
||||||
CFLAGS="$CFLAGS $EPOXY_CFLAGS"
|
|
||||||
LIBS="$LIBS $EPOXY_LIBS"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WAYLAND=no
|
WAYLAND=no
|
||||||
|
|
Loading…
Reference in New Issue