summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Fuhrmannek2016-04-11 13:33:34 +0200
committerBen Fuhrmannek2016-04-11 13:33:34 +0200
commit0d778ef1bac0719b8aa554722f0372b4008f4f9a (patch)
tree0b58663c41de2e4075b2d7a916f3753bcd5d36e2
parent661c99d15563ed80f52e9acb89e7987cf3f3621c (diff)
/bin/sh compatibility (fixes #10)
-rw-r--r--config.m44
1 files 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
29 29
30AC_MSG_CHECKING([for C11 support with -std=c11]) 30AC_MSG_CHECKING([for C11 support with -std=c11])
31old_CFLAGS="$CFLAGS" 31old_CFLAGS="$CFLAGS"
32CFLAGS+=" -std=c11" 32CFLAGS="${CFLAGS} -std=c11"
33AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[AC_MSG_RESULT([yes])],[ 33AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[AC_MSG_RESULT([yes])],[
34 AC_MSG_RESULT([no]) 34 AC_MSG_RESULT([no])
35 CFLAGS="$old_CFLAGS" 35 CFLAGS="$old_CFLAGS"
@@ -38,7 +38,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[AC_MSG_RESULT([yes])],[
38 echo " support. Trying C99 instead, but compiling may fail." 38 echo " support. Trying C99 instead, but compiling may fail."
39 echo "==========================================================" 39 echo "=========================================================="
40 AC_MSG_CHECKING([for C99 support with -std=c99]) 40 AC_MSG_CHECKING([for C99 support with -std=c99])
41 CFLAGS+=" -std=c99" 41 CFLAGS="${CFLAGS} -std=c99"
42 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[AC_MSG_RESULT([yes])],[ 42 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[AC_MSG_RESULT([yes])],[
43 AC_MSG_RESULT([no]) 43 AC_MSG_RESULT([no])
44 CFLAGS="$old_CFLAGS" 44 CFLAGS="$old_CFLAGS"