From f991e9b9d16c236c93894aecc34bbd471fb03757 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 1 Jun 2001 11:53:48 +0000 Subject: 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) --- source3/configure.in | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'source3/configure.in') 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) ################################################# -- cgit