diff options
author | Werner Koch <[email protected]> | 1998-02-27 17:51:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-02-27 17:51:28 +0000 |
commit | b13e238a195893b55e09f2c5d73c70b27a040a50 (patch) | |
tree | 78f97a94022956ff0b12cb9e1bfcf407077688f7 /configure.in | |
parent | release 0.2.9 (diff) | |
download | gnupg-0-2-10.tar.gz gnupg-0-2-10.zip |
bug fixesV0-2-10
Diffstat (limited to '')
-rw-r--r-- | configure.in | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/configure.in b/configure.in index b40fc41c3..660f54144 100644 --- a/configure.in +++ b/configure.in @@ -27,18 +27,34 @@ AC_SUBST(PACKAGE) AC_DEFINE_UNQUOTED(VERSION, "$VERSION") AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") +AC_MSG_CHECKING([whether memory debugging is requested]) AC_ARG_ENABLE(m-debug, -[ --enable-m-debug Enable debugging of memory allocation]) -if test "$enableval" = y || test "$enableval" = yes; then +[ --enable-m-debug enable debugging of memory allocation], +use_m_debug=$enableval, use_m_debug=no) +AC_MSG_RESULT($use_m_debug) +if test "$use_m_debug" = yes; then AC_DEFINE(M_DEBUG) + use_m_guard=yes +else + AC_MSG_CHECKING([whether memory guard is requested]) + AC_ARG_ENABLE(m-guard, + [ --disable-m-guard disable memory guard facility], + use_m_guard=$enableval, use_m_guard=yes) + AC_MSG_RESULT($use_m_guard) +fi +if test "$use_m_guard" = yes ; then + AC_DEFINE(M_GUARD) + CFLAGS="-g -Wall" +else + CFLAGS="-O2 -Wall" fi -AC_ARG_WITH(zlib, -[ --with-zlib link against static zlib], -[g10_force_zlib=yes], [g10_force_zlib=no] ) - -CFLAGS="-g -Wall" +AC_MSG_CHECKING([whether included zlib is requested]) +AC_ARG_WITH(included-zlib, + [ --with-included-zlib use the zlib code included here], +[g10_force_zlib=yes], [g10_force_zlib=no] ) +AC_MSG_RESULT($g10_force_zlib) AC_CANONICAL_SYSTEM |