mc-vfs-samba.m4 1.1 KB

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