diff options
author | Jeremy Allison <jra@samba.org> | 1998-11-14 01:04:13 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-11-14 01:04:13 +0000 |
commit | 24ca89bfb03fb82e975eff94070275ee403cd0f9 (patch) | |
tree | 3a6816c1c78780a2dae2f50a84c141be1f236b91 /source3/configure.in | |
parent | 744c34be2a053501a0fabd1c31a77e95f711f3e3 (diff) | |
download | samba-24ca89bfb03fb82e975eff94070275ee403cd0f9.tar.gz samba-24ca89bfb03fb82e975eff94070275ee403cd0f9.tar.bz2 samba-24ca89bfb03fb82e975eff94070275ee403cd0f9.zip |
Removed acconfig.h configure configure.in include/config.h.in: Made smbwrapper not made
by default.
nmbd*: Changed all calls to namestr() to nmbd_namestr() to fix broken FreeBSD include
file problem...sigh.
Jeremy.
(This used to be commit 9ee8f39aed8772a05c203161b4ae6b7d90d67481)
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 51 |
1 files changed, 38 insertions, 13 deletions
diff --git a/source3/configure.in b/source3/configure.in index 5b6bfcdbea..65c31d434f 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -206,7 +206,7 @@ case "$host_os" in *bsd*) LDSHFLAGS="-shared -Bshareable" ;; *irix*) AC_DEFINE(IRIX) - WRAP32=bin/smbwrapper.32.so + ATTEMPT_WRAP32_BUILD=yes ;; *aix*) AC_DEFINE(AIX);; *hpux*) AC_DEFINE(HPUX);; @@ -237,18 +237,6 @@ if test x$PICFLAG = x; then fi fi -WRAP="bin/smbsh bin/smbwrapper.so" - -# Conditions under which smbwrapper should not be built. - -if test x$PICFLAG = x; then - echo No support for PIC code - disabling smbwrapper and smbsh - WRAP="" -elif test x$ac_cv_func_syscall = xno; then - AC_MSG_RESULT([No syscall() -- disabling smbwrapper and smbsh]) - WRAP="" -fi - ################ AC_CACHE_CHECK([for long long],samba_cv_have_longlong,[ @@ -553,6 +541,43 @@ if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then fi ################################################# +# check for smbwrapper support +AC_MSG_CHECKING(whether to use smbwrapper) +AC_ARG_WITH(smbwrapper, +[ --with-smbwrapper Include SMB wrapper support + --without-smbwrapper Don't include SMB wrapper support (default)], +[ case "$withval" in + yes) + AC_MSG_RESULT(yes) + AC_DEFINE(WITH_SMBWRAPPER) + WRAP="bin/smbsh bin/smbwrapper.so" + + if test x$ATTEMPT_WRAP32_BUILD = x; then + WRAP32="" + else + WRAP32=bin/smbwrapper.32.so + fi + +# Conditions under which smbwrapper should not be built. + + if test x$PICFLAG = x; then + echo No support for PIC code - disabling smbwrapper and smbsh + WRAP="" + WRAP32="" + elif test x$ac_cv_func_syscall = xno; then + AC_MSG_RESULT([No syscall() -- disabling smbwrapper and smbsh]) + WRAP="" + WRAP32="" + fi + ;; + *) + AC_MSG_RESULT(no) + ;; + esac ], + AC_MSG_RESULT(no) +) + +################################################# # check for the AFS filesystem AC_MSG_CHECKING(whether to use AFS) AC_ARG_WITH(afs, |