From: Richard Kettlewell Date: Sun, 8 Jun 2008 19:51:50 +0000 (+0100) Subject: Force -std=gnu99. If we're going to require GCC anyway we might as X-Git-Tag: 4.1~15^2~74 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/439c12ca8967200d8762a83c02434ea0c319c5ed Force -std=gnu99. If we're going to require GCC anyway we might as well get the full benefit. --- diff --git a/configure.ac b/configure.ac index f7956fd..44ca4b2 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,13 @@ AC_PROG_CC AC_SET_MAKE if test "x$GCC" = xyes; then gcc_werror=-Werror + case "$CC" in + *-std=* ) + ;; + * ) + CC="${CC} -std=gnu99" + ;; + esac else AC_MSG_ERROR([GNU C is required to build this program]) gcc_werror=""