2010-07-18 11:32:24 +04:00
|
|
|
dnl Samba support
|
|
|
|
AC_DEFUN([AC_MC_VFS_SMB],
|
2009-05-07 16:38:06 +04:00
|
|
|
[
|
2010-07-18 11:32:24 +04:00
|
|
|
AC_ARG_ENABLE([vfs-smb],
|
2010-07-23 10:35:48 +04:00
|
|
|
AC_HELP_STRING([--enable-vfs-smb], [Support for SMB filesystem [[no]]]),
|
|
|
|
[
|
|
|
|
if test "x$enableval" = "xno"; then
|
|
|
|
enable_vfs_smb=no
|
|
|
|
else
|
|
|
|
enable_vfs_smb=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[enable_vfs_smb=no])
|
|
|
|
|
2010-07-18 11:32:24 +04:00
|
|
|
if test "$enable_vfs" != "no" -a x"$enable_vfs_smb" != x"no"; then
|
|
|
|
enable_vfs_smb="yes"
|
|
|
|
AC_MC_VFS_ADDNAME([smb])
|
|
|
|
AC_DEFINE([ENABLE_VFS_SMB], [1], [Define to enable VFS over SMB])
|
2009-05-07 16:38:06 +04:00
|
|
|
|
2010-07-18 11:32:24 +04:00
|
|
|
# set Samba configuration directory location
|
|
|
|
configdir="/etc"
|
|
|
|
AC_ARG_WITH([smb-configdir],
|
|
|
|
AC_HELP_STRING([--with-smb-configdir=DIR], [Where the Samba configuration files are [[/etc]]]),
|
|
|
|
[ case "$withval" in
|
|
|
|
yes|no)
|
|
|
|
# Just in case anybody does it
|
|
|
|
AC_MSG_WARN([--with-smb-configdir called without argument - will use default])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
configdir="$withval"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
])
|
2009-05-07 16:38:06 +04:00
|
|
|
|
2010-07-18 11:32:24 +04:00
|
|
|
AC_ARG_WITH([smb-codepagedir],
|
|
|
|
AC_HELP_STRING([--with-smb-codepagedir=DIR], [Where the Samba codepage files are]),
|
|
|
|
[ case "$withval" in
|
|
|
|
yes|no)
|
|
|
|
# Just in case anybody does it
|
|
|
|
AC_MSG_WARN([--with-smb-codepagedir called without argument - will use default])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
codepagedir="$withval"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
])
|
2009-05-07 16:38:06 +04:00
|
|
|
|
2010-07-18 11:32:24 +04:00
|
|
|
AC_SUBST(configdir)
|
|
|
|
AC_SUBST(codepagedir)
|
|
|
|
fi
|
2010-07-23 10:35:48 +04:00
|
|
|
|
2010-07-20 16:54:55 +04:00
|
|
|
AC_CONFIG_SUBDIRS([lib/vfs/mc-vfs/samba])
|
2010-07-18 11:32:24 +04:00
|
|
|
|
|
|
|
AM_CONDITIONAL([ENABLE_VFS_SMB], [test x"$enable_vfs_smb" = x"yes"])
|
2009-05-07 16:38:06 +04:00
|
|
|
])
|