diff options
author | Tim Potter <tpot@samba.org> | 2001-06-01 11:53:48 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-06-01 11:53:48 +0000 |
commit | f991e9b9d16c236c93894aecc34bbd471fb03757 (patch) | |
tree | 5ebe3960a471dae1e9363e1093d13d3078169589 /source3/configure.in | |
parent | 05b2b2cdd4895b6d2a4d345192bfd4fed1e0ec25 (diff) | |
download | samba-f991e9b9d16c236c93894aecc34bbd471fb03757.tar.gz samba-f991e9b9d16c236c93894aecc34bbd471fb03757.tar.bz2 samba-f991e9b9d16c236c93894aecc34bbd471fb03757.zip |
Added a --with/without winbind option to configure. The default is to
compile winbind on supported systems but this may be disabled using
--without-winbind. Using --with-winbind on unsupported systems has
no effect.
(This used to be commit de46428d054285f568727589537cd8520ee0f687)
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/source3/configure.in b/source3/configure.in index f7751dc0f5..45533f72ec 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -2196,16 +2196,34 @@ samba_cv_HAVE_XFS_ACLS=yes,samba_cv_XFS_POSIX_ACLS=no)]) # check whether winbind is supported on this platform AC_MSG_CHECKING(whether to compile winbind) -case "$host_os" in - *linux*|*solaris*) - AC_MSG_RESULT(yes) - WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PROGS)" - ;; - *) - AC_MSG_RESULT(unsupported for $host_os) - ;; + +case "$host_os" in + *linux*|*solaris*) + WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PROGS)" + ;; + *) + winbind_no_reason=", unsupported on $host_os" + ;; esac +AC_ARG_WITH(winbind, +[ --with-winbind Build winbind library (default, if supported by OS) + --without-winbind Don't build winbind library], +[ + case "$withval" in + no) + WINBIND_TARGETS="" + winbind_reason="" + ;; + esac ], +) + +if test x"$WINBIND_TARGETS" = x; then + AC_MSG_RESULT(no$winbind_no_reason) +else + AC_MSG_RESULT(yes) +fi + AC_SUBST(WINBIND_TARGETS) ################################################# |