]> granicus.if.org Git - postgis/commitdiff
Specify C standard in CFLAGS
authorDaniel Baston <dbaston@gmail.com>
Thu, 27 Sep 2018 13:26:52 +0000 (13:26 +0000)
committerDaniel Baston <dbaston@gmail.com>
Thu, 27 Sep 2018 13:26:52 +0000 (13:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16845 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 0305b9dadf36894b8195620156fce0c3824f9963..913271d410271752ce78260640ae5d542c91550f 100644 (file)
@@ -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)