about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-07-30 11:09:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-07-30 11:09:16 +0000
commitab899b76c790d1cb13b76716d4d99b6bd7ac983c (patch)
tree9685f177c31645e5394be3236bd4deecb3f0b8af /configure.ac
parentb550cfe7e382c7704965a166af81933f1ac50d4b (diff)
downloadzsh-ab899b76c790d1cb13b76716d4d99b6bd7ac983c.tar.gz
zsh-ab899b76c790d1cb13b76716d4d99b6bd7ac983c.tar.xz
zsh-ab899b76c790d1cb13b76716d4d99b6bd7ac983c.zip
20222: turn on max function depth
plus unposted reference to this in README
plus unposted neatening of 20219 history-pattern-search
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 5003018bd..3fdac2104 100644
--- a/configure.ac
+++ b/configure.ac
@@ -301,12 +301,14 @@ ifdef([max_function_depth],[undefine([max_function_depth])])dnl
 AH_TEMPLATE([MAX_FUNCTION_DEPTH],
 [Define for function depth limits])
 AC_ARG_ENABLE(max-function-depth,
-[  --enable-max-function-depth=MAX   limit function depth to MAX],
+[  --enable-max-function-depth=MAX   limit function depth to MAX, default 4096],
 [if test x$enableval = xyes; then
   AC_DEFINE(MAX_FUNCTION_DEPTH, 4096)
-else
+elif test x$enableval != xno; then
   AC_DEFINE_UNQUOTED(MAX_FUNCTION_DEPTH, $enableval)
-fi])
+fi],
+[AC_DEFINE(MAX_FUNCTION_DEPTH, 4096)]
+)
 
 dnl Do you want to look for pcre support?
 AC_ARG_ENABLE(pcre,