# HG changeset patch # User Matt Johnston # Date 1498224709 -28800 # Node ID 4f17d75d027b56cc7196372208b938fa9f449af2 # Parent 2d937dc448511d38c4e1e00d3d485f1a90236bc6# Parent 33d90d219e0327ad20e6466fe5f8d46d80f1bcb8 merge diff -r 2d937dc44851 -r 4f17d75d027b configure.ac --- a/configure.ac Tue Jun 20 20:07:25 2017 +0800 +++ b/configure.ac Fri Jun 23 21:31:49 2017 +0800 @@ -9,7 +9,7 @@ AC_INIT AC_CONFIG_SRCDIR(buffer.c) -OLDCFLAGS=$CFLAGS +OLDCFLAGS="$CFLAGS" # Checks for programs. AC_PROG_CC AC_PROG_MAKE_SET @@ -24,6 +24,17 @@ CFLAGS="-Os -W -Wall -Wno-pointer-sign" fi +AC_MSG_CHECKING([if compiler '$CC' supports -fno-strict-overflow]) +OLDCFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -fno-strict-overflow" +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], + [AC_MSG_RESULT(yes)], + [ + AC_MSG_RESULT(no) + CFLAGS=$OLDCFLAGS + ] + ) + # large file support is useful for scp AC_SYS_LARGEFILE diff -r 2d937dc44851 -r 4f17d75d027b dss.c