From 72dc4caa46f7f63b58b911dbdcd7144435f42951 Mon Sep 17 00:00:00 2001 From: Daniel Baston Date: Thu, 27 Sep 2018 13:26:52 +0000 Subject: [PATCH] Specify C standard in CFLAGS git-svn-id: http://svn.osgeo.org/postgis/trunk@16845 b70326c6-7e19-0410-871a-916f4a2858ee --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 0305b9dad..913271d41 100644 --- a/configure.ac +++ b/configure.ac @@ -60,6 +60,7 @@ AC_SUBST([PICFLAGS]) AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-math-errno], [_cv_nomatherrno], [-fno-math-errno], [], [CFLAGS="$CFLAGS -fno-math-errno"], []) AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-signed-zeros], [_cv_nosignedzeros], [-fno-signed-zeros], [], [CFLAGS="$CFLAGS -fno-signed-zeros"], []) +AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -std=gnu99], [_cv_std], -std=gnu99, [], [CFLAGS="-std=gnu99 $CFLAGS"], []) dnl dnl For GCC enable additional warning flags -Wall and -Wmissing-prototypes (using macro included with libtool) -- 2.40.0