From 04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:20:19 +0000 Subject: zsh-3.1.5-pws-12 --- configure.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 5cfaec326..11aab932d 100644 --- a/configure.in +++ b/configure.in @@ -185,6 +185,16 @@ AC_ARG_ENABLE(ansi2knr, [ --enable-ansi2knr translate source to K&R C before compiling], [ansi2knr="$enableval"], [ansi2knr=default]) +dnl Do you want to disable restricted on r* commands +undefine([resticted-r])dnl +AC_ARG_ENABLE(resticted-r, +[ --disable-resticted-r turn off restricted shell if the invoked command is r*], +[if test x$enableval = xyes; then + AC_DEFINE(RESTRICTED_R) +fi], +AC_DEFINE(RESTRICTED_R) +) + dnl ------------------ dnl CHECK THE COMPILER dnl ------------------ @@ -766,7 +776,7 @@ if test $zsh_cv_rlim_t_is_longer = yes; then #include main() { struct rlimit r; - char buf[[20]]; + char buf[20]; r.rlim_cur = 0; sprintf(buf, "%qd", r.rlim_cur); exit(strcmp(buf, "0")); @@ -774,7 +784,7 @@ main() { zsh_cv_rlim_t_is_quad_t=yes, zsh_cv_rlim_t_is_quad_t=no, zsh_cv_rlim_t_is_quad_t=no)]) - if test $zsh_cv_tlim_t_is_quad_t = yes; then + if test $zsh_cv_rlim_t_is_quad_t = yes; then AC_DEFINE(RLIM_T_IS_QUAD_T) DEFAULT_RLIM_T=quad_t else -- cgit 1.4.1