aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRichard Burke <rich.g.burke@gmail.com>2016-03-21 23:45:58 +0000
committerRichard Burke <rich.g.burke@gmail.com>2016-03-21 23:45:58 +0000
commit94fd93a0c45d6e991a9e6686b43b58272c17dcbf (patch)
tree8014dce2b004d85b496050ba4711623a77d1b347 /configure
parent9b3cd2462a48ca942309e24f511db2ea1fddc95b (diff)
downloadvis-94fd93a0c45d6e991a9e6686b43b58272c17dcbf.tar.gz
vis-94fd93a0c45d6e991a9e6686b43b58272c17dcbf.tar.xz
Remove bashisms from configure script.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure b/configure
index 22e0446..91b5f7c 100755
--- a/configure
+++ b/configure
@@ -204,9 +204,9 @@ LDFLAGS_STD="-lc"
OS=$(uname)
case "$OS" in
-*BSD) CFLAGS_STD+=-D_DARWIN_C_SOURCE ;;
-Darwin) CFLAGS_STD+=-D_BSD_SOURCE ;;
-AIX) CFLAGS_STD+=-D_ALL_SOURCE ;;
+*BSD) CFLAGS_STD="$CFLAGS_STD -D_DARWIN_C_SOURCE" ;;
+Darwin) CFLAGS_STD="$CFLAGS_STD -D_BSD_SOURCE" ;;
+AIX) CFLAGS_STD="$CFLAGS_STD -D_ALL_SOURCE" ;;
esac
tryflag CFLAGS_AUTO -pipe
@@ -349,7 +349,10 @@ EOF
done
test "$lua" = "yes" -a $CONFIG_LUA -ne 1 && fail "$0: cannot find liblua"
- test $CONFIG_LUA -eq 1 && CFLAGS_LUA+=" -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_ALL"
+
+ if test $CONFIG_LUA -eq 1; then
+ CFLAGS_LUA="$CFLAGS_LUA -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_ALL"
+ fi
fi
CONFIG_ACL=0