configure: use AC_GNU_SOURCE

This adds the AC_GNU_SOURCE macro to configure.ac to ensure _GNU_SOURCE
is defined while compiling Cogl. This is required to use memmem for
example.

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit 1ed717dc12fc4d2cb49010232de93ff46684aa6a)
This commit is contained in:
Robert Bragg 2012-08-15 13:19:22 +01:00
parent 57f420e21e
commit 470273db7e

View File

@ -77,6 +77,7 @@ AC_CONFIG_SRCDIR(cogl/cogl.h)
AC_CONFIG_AUX_DIR([build]) AC_CONFIG_AUX_DIR([build])
AC_CONFIG_MACRO_DIR([build/autotools]) AC_CONFIG_MACRO_DIR([build/autotools])
AC_CONFIG_HEADERS(config.h) AC_CONFIG_HEADERS(config.h)
AC_GNU_SOURCE
dnl ================================================================ dnl ================================================================
dnl Required versions for dependencies dnl Required versions for dependencies