1 AC_DEFUN([mc_VFS_ADDNAME],
3 if test x"$vfs_flags" = "x" ; then
6 vfs_flags="$vfs_flags, $1"
10 m4_include([m4.include/vfs/socket.m4])
11 m4_include([m4.include/vfs/mc-vfs-extfs.m4])
12 m4_include([m4.include/vfs/mc-vfs-sfs.m4])
13 m4_include([m4.include/vfs/mc-vfs-ftp.m4])
14 m4_include([m4.include/vfs/mc-vfs-sftp.m4])
15 m4_include([m4.include/vfs/mc-vfs-shell.m4])
16 m4_include([m4.include/vfs/mc-vfs-undelfs.m4])
17 m4_include([m4.include/vfs/mc-vfs-tarfs.m4])
18 m4_include([m4.include/vfs/mc-vfs-cpiofs.m4])
21 dnl Check for various functions needed by libvfs.
22 dnl This has various effects:
23 dnl Sets MC_VFS_LIBS to libraries required
24 dnl Sets vfs_flags to "pretty" list of vfs implementations we include.
25 dnl Sets shell variable enable_vfs to yes (default, --with-vfs) or
26 dnl "no" (--without-vfs).
29 AC_DEFUN([mc_ENABLE_VFS_NET],
31 dnl FIXME: network checks should probably be in their own macro.
33 if test x"$have_socket" = xyes; then
34 AC_CHECK_TYPE([nlink_t], ,
35 [AC_DEFINE_UNQUOTED([nlink_t], [unsigned int],
36 [Define to 'unsigned int' if <sys/types.h> does not define.])])
37 AC_CHECK_TYPES([socklen_t],,,
39 #include <sys/types.h>
40 #include <sys/socket.h>
44 AC_DEFINE(ENABLE_VFS_NET, [1], [Define to enable network VFSes support])
48 AC_DEFUN([mc_VFS_CHECKS],
53 AS_HELP_STRING([--disable-vfs], [Disable VFS]),
55 if test "x$enableval" = "xno"; then
63 if test x"$enable_vfs" = x"yes" ; then
64 vfs_type="Midnight Commander Virtual Filesystem"
65 AC_MSG_NOTICE([Enabling VFS code])
66 AC_DEFINE(ENABLE_VFS, [1], [Define to enable VFS support])
78 AM_CONDITIONAL(ENABLE_VFS, [test x"$enable_vfs" = x"yes"])
80 if test x"$enable_vfs_ftp" = x"yes" -o x"$enable_vfs_shell" = x"yes" -o x"$enable_vfs_sftp" = x"yes"; then
84 AM_CONDITIONAL([ENABLE_VFS_NET], [test x"$enable_vfs_net" = x"yes"])