gl: check for X unconditionally

Without this the HAVE_X macro is empty, not "no" or "yes", which is not
what the later code is counting on.

https://bugzilla.gnome.org/show_bug.cgi?id=726591
This commit is contained in:
Руслан Ижбулатов 2014-03-18 00:07:43 +00:00 committed by julien isorce
parent 2a0f0399ae
commit 26049ca402

View file

@ -697,6 +697,7 @@ AC_ARG_ENABLE([dispmanx],
*) AC_MSG_ERROR([bad value ${enableval} for --enable-dispmanx]) ;;
esac],[NEED_DISPMANX=auto])
AG_GST_CHECK_X
save_CPPFLAGS="$CPPFLAGS"
save_LIBS="$LIBS"
@ -720,7 +721,6 @@ case $host in
HAVE_GLU=yes
;;
*)
AG_GST_CHECK_X
AG_GST_CHECK_LIBHEADER(GL, GL, glTexImage2D,, GL/gl.h)
AG_GST_CHECK_LIBHEADER(GLU, GLU, gluSphere,, GL/glu.h)
AG_GST_CHECK_LIBHEADER(GLES2, GLESv2, glTexImage2D,, GLES2/gl2.h)