configure.ac: when checking for gl2ext.h include gl2.h

This makes sure we include gl2.h when looking for gl2ext.h since
gl2ext.h can't always be used standalone.
This commit is contained in:
Robert Bragg 2010-07-23 21:37:22 +01:00
parent c23b283968
commit 8b914dfa30

View File

@ -433,7 +433,9 @@ AS_IF([test "x$COGL_DRIVER" = "xgles"],
[ [
AC_CHECK_HEADERS([$cogl_gl_headers], AC_CHECK_HEADERS([$cogl_gl_headers],
[], [],
[AC_MSG_ERROR([Unable to locate required GLES headers])]) [AC_MSG_ERROR([Unable to locate required GLES headers])],
[[#include <GLES2/gl2.h>
]])
FLAVOUR_LIBS="$FLAVOUR_LIBS -lGLESv2" FLAVOUR_LIBS="$FLAVOUR_LIBS -lGLESv2"
]) ])