depends  e2fsprogs                             &&
depends  libcap                                &&
depends  popt       "--without-included-popt"  &&
depends  python                                &&
depends  tevent                                &&

if [[  "$SAMBA4_SCM"  ==  "y"  ]];  then
  depends  git
fi  &&

#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  &&

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  gnutls                         \
                  "--enable-gnutls"              \
                  "--disable-gnutls"             \
                  "for encrypted communication"  &&

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

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

optional_depends  sqlite                               \
                  '--with-sqlite3'                     \
                  '--without-sqlite3'                  \
                  'for SQLite 3.x DB backend support'  &&

optional_depends  tdb                            \
                  ''                             \
                  ''                             \
                  'for Trival Database support'  &&

optional_depends  talloc                                                             \
                  ''                                                                 \
                  ''                                                                 \
                  'for a hierarchical pool based memory allocator with destructors'
