From: Todd C. Miller Date: Fri, 10 Apr 2009 20:59:42 +0000 (+0000) Subject: Fix a warning when --without-ldap is specified. X-Git-Tag: SUDO_1_7_1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8eae33753e3df30185b6f40774f7999cd75b1c49;p=sudo Fix a warning when --without-ldap is specified. --- diff --git a/configure b/configure index acba594b2..421a4e206 100755 --- a/configure +++ b/configure @@ -3606,7 +3606,7 @@ fi # Check whether --with-ldap was given. if test "${with_ldap+set}" = set; then withval=$with_ldap; case $with_ldap in - no) with_ldap="";; + no) ;; *) cat >>confdefs.h <<\_ACEOF #define HAVE_LDAP 1 _ACEOF diff --git a/configure.in b/configure.in index e565d9ceb..07cca6b2d 100644 --- a/configure.in +++ b/configure.in @@ -949,7 +949,7 @@ esac]) AC_ARG_WITH(ldap, [ --with-ldap[[=DIR]] enable LDAP support], [case $with_ldap in - no) with_ldap="";; + no) ;; *) AC_DEFINE(HAVE_LDAP) AC_MSG_CHECKING(whether to use sudoers from LDAP) AC_MSG_RESULT(yes)