2010-07-18 11:32:24 +04:00
|
|
|
dnl Samba support
|
2016-01-04 21:43:19 +03:00
|
|
|
AC_DEFUN([mc_VFS_SMB],
|
2009-05-07 16:38:06 +04:00
|
|
|
[
|
2010-07-18 11:32:24 +04:00
|
|
|
AC_ARG_ENABLE([vfs-smb],
|
2011-05-25 17:51:18 +04:00
|
|
|
AS_HELP_STRING([--enable-vfs-smb], [Support for SMB filesystem @<:@no@:>@]),
|
2010-07-23 10:35:48 +04:00
|
|
|
[
|
|
|
|
if test "x$enableval" = "xno"; then
|
|
|
|
enable_vfs_smb=no
|
|
|
|
else
|
|
|
|
enable_vfs_smb=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[enable_vfs_smb=no])
|
|
|
|
|
2010-07-24 11:24:07 +04:00
|
|
|
if test "$enable_vfs" = "yes" -a x"$enable_vfs_smb" != x"no"; then
|
2010-07-18 11:32:24 +04:00
|
|
|
enable_vfs_smb="yes"
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_VFS_ADDNAME([smb])
|
2010-07-18 11:32:24 +04:00
|
|
|
AC_DEFINE([ENABLE_VFS_SMB], [1], [Define to enable VFS over SMB])
|
|
|
|
fi
|
2010-07-23 10:35:48 +04:00
|
|
|
|
2010-07-23 11:49:47 +04:00
|
|
|
if test "$enable_vfs_smb" = "yes"; then
|
2011-02-15 16:44:17 +03:00
|
|
|
AC_CONFIG_SUBDIRS([src/vfs/smbfs/helpers])
|
2010-07-18 11:32:24 +04:00
|
|
|
|
2010-11-26 12:55:05 +03:00
|
|
|
AM_CONDITIONAL([ENABLE_VFS_SMB], [test "1" = "1"])
|
|
|
|
|
|
|
|
# set configuration directory location
|
|
|
|
smbconfigdir="/etc"
|
|
|
|
AC_ARG_WITH(smb-configdir,
|
|
|
|
[ --with-smb-configdir=DIR Where to put configuration files],
|
|
|
|
[ case "$withval" in
|
|
|
|
yes|no)
|
|
|
|
# Just in case anybody does it
|
|
|
|
AC_MSG_WARN([--with-smb-configdir called without argument - will use default])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
smbconfigdir="$withval"
|
|
|
|
;;
|
|
|
|
esac])
|
|
|
|
|
|
|
|
AC_SUBST(smbconfigdir)
|
|
|
|
|
|
|
|
# set codepage directory location
|
|
|
|
AC_ARG_WITH(smb-codepagedir,
|
|
|
|
[ --with-smb-codepagedir=DIR Where to put codepage files],
|
|
|
|
[ case "$withval" in
|
|
|
|
yes|no)
|
|
|
|
# Just in case anybody does it
|
|
|
|
AC_MSG_WARN([--with-smb-codepagedir called without argument - will use default])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
smbcodepagedir="$withval"
|
|
|
|
;;
|
|
|
|
esac])
|
|
|
|
|
|
|
|
# export variable for child process (configure of samba)
|
|
|
|
export SMBCONFIGDIR="$smbconfigdir"
|
|
|
|
export SMBCODEPAGEDIR="$smbcodepagedir"
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL([ENABLE_VFS_SMB], [test "1" = "2"])
|
|
|
|
fi
|
2009-05-07 16:38:06 +04:00
|
|
|
])
|