From d382fece032ebb4710d96242f83ef3464595d76b Mon Sep 17 00:00:00 2001 From: David Shaw Date: Fri, 8 Dec 2006 04:39:56 +0000 Subject: [PATCH] * configure.ac: AM_CONDITIONAL must not be used inside an if/then. --- ChangeLog | 4 ++++ configure.ac | 25 ++++++++++++------------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index c4f13d230..a2bd775d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-12-07 David Shaw + + * configure.ac: AM_CONDITIONAL must not be used inside an if/then. + 2006-12-07 Werner Koch * configure.ac: Remove GNUPG_DATADIR for non-W32 systems. diff --git a/configure.ac b/configure.ac index ceb5dccc5..89e745064 100644 --- a/configure.ac +++ b/configure.ac @@ -354,18 +354,18 @@ dnl LDAP is defined only after we confirm the library is available later [enable email keyserver interface only]), try_mailto=$enableval, try_mailto=no) AC_MSG_RESULT($try_mailto) - fi - - AC_MSG_CHECKING([whether keyserver exec-path is enabled]) - AC_ARG_ENABLE(keyserver-path, - AC_HELP_STRING([--disable-keyserver-path], - [disable the exec-path option for keyserver helpers]), - [if test "$enableval" = no ; then - disable_keyserver_path=yes - fi],enableval=yes) - AC_MSG_RESULT($enableval) fi + AC_MSG_CHECKING([whether keyserver exec-path is enabled]) + AC_ARG_ENABLE(keyserver-path, + AC_HELP_STRING([--disable-keyserver-path], + [disable the exec-path option for keyserver helpers]), + [if test "$enableval" = no ; then + disable_keyserver_path=yes + fi],enableval=yes) + AC_MSG_RESULT($enableval) +fi + AC_MSG_CHECKING([whether the included zlib is requested]) AC_ARG_WITH(included-zlib, [ --with-included-zlib use the zlib code included here], @@ -1197,13 +1197,12 @@ else fi if test "$use_local_zlib" = yes ; then - AM_CONDITIONAL(ENABLE_LOCAL_ZLIB, true) AC_CONFIG_LINKS(zlib.h:zlib/zlib.h zconf.h:zlib/zconf.h ) ZLIBS="../zlib/libzlib.a" -else - AM_CONDITIONAL(ENABLE_LOCAL_ZLIB, false) fi +AM_CONDITIONAL(ENABLE_LOCAL_ZLIB, test "$use_local_zlib" = yes) + if test "$use_bzip2" = yes ; then _cppflags="${CPPFLAGS}" _ldflags="${LDFLAGS}"