Replaced WITH_SMBFS by ENABLE_VFS_SMB
[midnight-commander.git] / m4.include / vfs / mc-vfs-samba.m4
blob4405dc85c60294cdc6b97431f678ee244a03f783
1 AC_DEFUN([AC_MC_VFS_SAMBA],
4   dnl
5   dnl Samba support
6   dnl
7   use_smbfs=
8   AC_ARG_WITH(samba,
9           [  --with-samba             Support smb virtual file system [[no]]],
10           [if test x"$withval" != x"no"; then
11                   AC_DEFINE(ENABLE_VFS_SMB, 1, [Define to enable VFS over SMB])
12                   vfs_flags="$vfs_flags, smbfs"
13                   use_smbfs=yes
14           fi
15   ])
17   if test -n "$use_smbfs"; then
18   #################################################
19   # set Samba configuration directory location
20   configdir="/etc"
21   AC_ARG_WITH(configdir,
22   [  --with-configdir=DIR     Where the Samba configuration files are [[/etc]]],
23   [ case "$withval" in
24     yes|no)
25     #
26     # Just in case anybody does it
27     #
28         AC_MSG_WARN([--with-configdir called without argument - will use default])
29     ;;
30     * )
31         configdir="$withval"
32     ;;
33   esac]
34   )
35   AC_SUBST(configdir)
37   AC_ARG_WITH(codepagedir,
38     [  --with-codepagedir=DIR   Where the Samba codepage files are],
39     [ case "$withval" in
40       yes|no)
41       #
42       # Just in case anybody does it
43       #
44         AC_MSG_WARN([--with-codepagedir called without argument - will use default])
45       ;;
46     esac]
47   )
48   fi