diff options
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) ################################################# |