--- parser3/configure 2003/03/26 13:46:49 1.66.2.5.2.1 +++ parser3/configure 2003/04/02 10:50:53 1.66.2.5.2.3 @@ -859,6 +859,7 @@ Optional Features: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking Speeds up one-time builds --enable-dependency-tracking Do not reject slow dependency extractors + --enable-assertions to enable assertions --disable-safe-mode to enable reading and executing files belonging to group+user other then effective --disable-execs to disable any execs @@ -3557,6 +3558,25 @@ esac +# Check whether --enable-assertions or --disable-assertions was given. +if test "${enable_assertions+set}" = set; then + enableval="$enable_assertions" + + ASSERTIONS_MODE=$enableval + + +fi; +if test "$ASSERTIONS_MODE" = "yes"; then + { echo "$as_me:$LINENO: WARNING: enabling assertions" >&5 +echo "$as_me: WARNING: enabling assertions" >&2;} +else + +cat >>confdefs.h <<\_ACEOF +#define NDEBUG +_ACEOF + +fi + # Check whether --enable-safe-mode or --disable-safe-mode was given. if test "${enable_safe_mode+set}" = set; then enableval="$enable_safe_mode" @@ -5311,7 +5331,9 @@ fi -for ac_header in signal.h \ + +for ac_header in assert.h \ +signal.h \ unistd.h \ process.h \ stddef.h \