summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-02-17 15:46:42 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:04 +0100
commit67fd3c37e6908795bd86220435a37637c9e16d63 (patch)
tree7237219ed66a726f951d0e7b5ddf0bf20c6b38b7 /configure.ac
parent063d3cc3f65f8f5b8dd636b7b8bd07e132e5aa28 (diff)
first stab at getting execve.c only compiled when needed
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 4 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 566bf40..bcb9e92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,7 +35,7 @@ AC_CACHE_CHECK(for signal names, rc_cv_signal_h,
fi
done
)
-case "x$rc_cv_signal_h" in
+case "$rc_cv_signal_h" in
'') AC_MSG_ERROR(Can't find signal names in $rc_cv_full_signal_h) ;;
*) SIGNAL_H=$rc_cv_signal_h ;;
esac
@@ -170,12 +170,9 @@ esac
dnl Does the kernel handle `#! /interpreter'?
AC_SYS_INTERPRETER
case "$ac_cv_sys_interpreter" in
-yes) AC_DEFINE(HASH_BANG)
- EXECVE=''
- ;;
-no) EXECVE=execve.o ;;
+yes) AC_DEFINE(HASH_BANG) ;;
esac
-AC_SUBST(EXECVE)
+AM_CONDITIONAL(N_H_B, test "$ac_cv_sys_interpreter" = no)
dnl What do we do for command arguments? We want /dev/fd, Linux's
@@ -271,7 +268,7 @@ AC_ARG_ENABLE(history,
*) rc_history=no ;;
esac
], rc_history=no)
-AM_CONDITIONAL(HISTORY, test x$rc_history = xyes)
+AM_CONDITIONAL(HISTORY, test "$rc_history" = yes)
AC_ARG_WITH(addon, [ --with-addon Extra builtins, from addon.c ],[
case "$withval" in