cofigure: fix --disable-clear-memory check

This commit is contained in:
Daniel Stenberg 2015-03-24 08:39:04 +01:00
parent 3d3347c062
commit 22bd8d81d8

View File

@ -202,7 +202,7 @@ fi
AC_ARG_ENABLE(clear-memory, AC_ARG_ENABLE(clear-memory,
AC_HELP_STRING([--disable-clear-memory],[Disable clearing of memory before being freed]), AC_HELP_STRING([--disable-clear-memory],[Disable clearing of memory before being freed]),
[CLEAR_MEMORY=$enableval]) [CLEAR_MEMORY=$enableval])
if test "$CLEAR_MEMORY" != "no"; then if test "$CLEAR_MEMORY" = "yes"; then
if test "$support_clear_memory" = "yes"; then if test "$support_clear_memory" = "yes"; then
AC_DEFINE(LIBSSH2_CLEAR_MEMORY, 1, [Enable clearing of memory before being freed]) AC_DEFINE(LIBSSH2_CLEAR_MEMORY, 1, [Enable clearing of memory before being freed])
enable_clear_memory=yes enable_clear_memory=yes