vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 99e5fce5e6f3d801e6cbbfa7a3881926c9e61e0f parent 28c6027591deada9256958b64573d0ff6f337031 Author: Richard Burke <rich.g.burke@gmail.com> Date: Mon, 21 Mar 2016 23:45:58 +0000 Remove bashisms from configure script. Diffstat:
| M | configure | | | 11 | +++++++---- |
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git 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