From 0d778ef1bac0719b8aa554722f0372b4008f4f9a Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Mon, 11 Apr 2016 13:33:34 +0200 Subject: /bin/sh compatibility (fixes #10) --- config.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.m4 b/config.m4 index a6dade9..dddea2a 100644 --- a/config.m4 +++ b/config.m4 @@ -29,7 +29,7 @@ fi AC_MSG_CHECKING([for C11 support with -std=c11]) old_CFLAGS="$CFLAGS" -CFLAGS+=" -std=c11" +CFLAGS="${CFLAGS} -std=c11" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[AC_MSG_RESULT([yes])],[ AC_MSG_RESULT([no]) CFLAGS="$old_CFLAGS" @@ -38,7 +38,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[AC_MSG_RESULT([yes])],[ echo " support. Trying C99 instead, but compiling may fail." echo "==========================================================" AC_MSG_CHECKING([for C99 support with -std=c99]) - CFLAGS+=" -std=c99" + CFLAGS="${CFLAGS} -std=c99" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[AC_MSG_RESULT([yes])],[ AC_MSG_RESULT([no]) CFLAGS="$old_CFLAGS" -- cgit v1.3