configure: use $ERROR_CFLAGS instead of hard-coding -Werror

https://bugzilla.gnome.org//show_bug.cgi?id=731692
This commit is contained in:
Tim-Philipp Müller 2014-06-22 22:04:31 +01:00
parent a84406c09b
commit 5f00de4601

View file

@ -852,7 +852,7 @@ if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLES2" = "xyes"; then
"
AC_MSG_CHECKING([whether it is possible to include both GL and GLES2 headers])
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -Werror"
CPPFLAGS="$CPPFLAGS $ERROR_CFLAGS"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$GL_INCLUDES]], [[
#if !defined(GL_FALSE)
#error Failed to include GL headers