mc-vfs-extfs.m4 1011 B

1234567891011121314151617181920212223242526272829303132333435
  1. dnl AC_MC_EXTFS_CHECKS
  2. dnl Check for tools used in extfs scripts.
  3. dnl FIXME: make this configurable
  4. AC_DEFUN([AC_MC_EXTFS_CHECKS], [
  5. AC_PATH_PROG([ZIP], [zip], [/usr/bin/zip])
  6. AC_PATH_PROG([UNZIP], [unzip], [/usr/bin/unzip])
  7. AC_CACHE_CHECK([for zipinfo code in unzip], [mc_cv_have_zipinfo],
  8. [mc_cv_have_zipinfo=no
  9. if $UNZIP -Z </dev/null >/dev/null 2>&1; then
  10. mc_cv_have_zipinfo=yes
  11. fi])
  12. if test x"$mc_cv_have_zipinfo" = xyes; then
  13. HAVE_ZIPINFO=1
  14. else
  15. HAVE_ZIPINFO=0
  16. fi
  17. AC_SUBST([HAVE_ZIPINFO])
  18. AC_PATH_PROG([PERL], [perl], [/usr/bin/perl])
  19. ])
  20. dnl Enable Extfs (classic)
  21. AC_DEFUN([AC_MC_VFS_EXTFS],
  22. [
  23. AC_ARG_ENABLE([vfs-extfs],
  24. [ --enable-vfs-extfs Support for extfs [[yes]]])
  25. if test x"$enable_vfs_extfs" != x"no"; then
  26. AC_MC_EXTFS_CHECKS
  27. enable_vfs_extfs="yes"
  28. AC_MC_VFS_ADDNAME([extfs])
  29. AC_DEFINE([ENABLE_VFS_EXTFS], [1], [Support for extfs])
  30. fi
  31. AM_CONDITIONAL(ENABLE_VFS_EXTFS, [test x"$enable_vfs_extfs" = x"yes"])
  32. ])