From: Florian Forster Date: Sun, 13 Jun 2010 13:51:15 +0000 (+0200) Subject: configure.in: Update to POSIX 2008 standard. X-Git-Tag: collectd-5.0.0-beta0~107 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c1f003b743598619e7a32083fa7bc41e06d82cf4;p=collectd.git configure.in: Update to POSIX 2008 standard. When using --enable-standards, request the newest edition of POSIX and X/Open. --- diff --git a/configure.in b/configure.in index 9cc96de8..1af4eff9 100644 --- a/configure.in +++ b/configure.in @@ -104,9 +104,13 @@ AC_ARG_ENABLE(standards, if test "x$enable_standards" = "xyes" then AC_DEFINE(_ISOC99_SOURCE, 1, [Define to enforce ISO C99 compliance.]) - AC_DEFINE(_POSIX_C_SOURCE, 200112L, [Define to enforce POSIX.1-2001 compliance.]) - AC_DEFINE(_XOPEN_SOURCE, 600, [Define to enforce X/Open 6 (XSI) compliance.]) + AC_DEFINE(_POSIX_C_SOURCE, 200809L, [Define to enforce POSIX.1-2008 compliance.]) + AC_DEFINE(_XOPEN_SOURCE, 700, [Define to enforce X/Open 7 (XSI) compliance.]) AC_DEFINE(_REENTRANT, 1, [Define to enable reentrancy interfaces.]) + if test "x$GCC" = "xyes" + then + CFLAGS="$CFLAGS -std=c99" + fi fi AM_CONDITIONAL(BUILD_FEATURE_STANDARDS, test "x$enable_standards" = "xyes")