mc/m4.include/vfs/mc-vfs-samba.m4
Slava Zanko 59f0b4ca49 Fixed test conditions in m4 files for more compability
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-27 13:49:49 +03:00

50 lines
1.1 KiB
Plaintext

AC_DEFUN([AC_MC_VFS_SAMBA],
[
dnl
dnl Samba support
dnl
use_smbfs=
AC_ARG_WITH(samba,
[ --with-samba Support smb virtual file system [[no]]],
[if test x"$withval" != x"no"; then
AC_DEFINE(WITH_SMBFS, 1, [Define to enable VFS over SMB])
vfs_flags="$vfs_flags, smbfs"
use_smbfs=yes
fi
])
if test -n "$use_smbfs"; then
#################################################
# set Samba configuration directory location
configdir="/etc"
AC_ARG_WITH(configdir,
[ --with-configdir=DIR Where the Samba configuration files are [[/etc]]],
[ case "$withval" in
yes|no)
#
# Just in case anybody does it
#
AC_MSG_WARN([--with-configdir called without argument - will use default])
;;
* )
configdir="$withval"
;;
esac]
)
AC_SUBST(configdir)
AC_ARG_WITH(codepagedir,
[ --with-codepagedir=DIR Where the Samba codepage files are],
[ case "$withval" in
yes|no)
#
# Just in case anybody does it
#
AC_MSG_WARN([--with-codepagedir called without argument - will use default])
;;
esac]
)
fi
])