if  [[  "$SAMBA_AD"  ==  "y"  ]];  then
  depends  openldap  "--with-ldap"              &&
  depends  krb5      "--with-krb5  --with-ads"
else
  optional_depends  openldap            \
                    "--with-ldap"       \
                    "--without-ldap"    \
                    "for LDAP support" 
fi  &&

depends  popt  "--without-included-popt"  &&

optional_depends  readline                \
                  "--with-readline"       \
                  "--without-readline"    \
                  "for readline support"  &&

optional_depends  linux-pam                        \
                  "--with-pam --with-pam_smbpass"  \
                  "--without-pam"                  \
                  "To enable PAM authentication"   &&

#optional_depends  openssl                        \
#                  "--with-ssl"                   \
#                  "--without-ssl"                \
#                  "for encrypted communication"  &&

optional_depends  CUPS                         \
                  "--enable-cups"              \
                  "--disable-cups"             \
                  "for Samba support in CUPS"  &&

optional_depends  python                                 \
                  "--with-python"                        \
                  "--without-python"                     \
                  "library for Samba support in Python"  &&

optional_depends  SYSTEM-LOGGER                             \
                  "--with-syslog"                           \
                  "--without-syslog"                        \
                  "enables logging though a syslog daemon"
