Use AC_GNU_SOURCE
Use AC_GNU_SOURCE macro instead of setting -D_GNU_SOURCE manually. The macro will add the _GNU_SOURCE define to config.h for systems that have the GNU extensions.
This commit is contained in:

committed by
Dan Williams

parent
fb386ceee4
commit
f744c39409
@@ -8,6 +8,9 @@ AC_CONFIG_MACRO_DIR([m4])
|
|||||||
|
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
|
dnl Define _GNU_SOURCE for various things like strcasestr()
|
||||||
|
AC_GNU_SOURCE
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Require programs
|
dnl Require programs
|
||||||
dnl
|
dnl
|
||||||
@@ -436,9 +439,6 @@ else
|
|||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Define _GNU_SOURCE for various things like strcasestr()
|
|
||||||
CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
|
||||||
|
|
||||||
GTK_DOC_CHECK(1.0)
|
GTK_DOC_CHECK(1.0)
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
Reference in New Issue
Block a user