-dnl Required e2fsprogs, libs.
-AC_PATH_PROG([MKE2FS],[mke2fs],[no])
+dnl Include workaround for broken apt-cache depends --recurse (Ubuntu 10.04)?
+if test "x$APT_CACHE" != "xno"; then
+ AC_MSG_CHECKING([if apt-cache depends --recurse is broken])
+ if ! $APT_CACHE depends --recurse -i bash | grep -q '^libc6$'; then
+ AC_MSG_RESULT([yes])
+ APT_CACHE_DEPENDS_RECURSE_BROKEN=true
+ else
+ AC_MSG_RESULT([no])
+ APT_CACHE_DEPENDS_RECURSE_BROKEN=false
+ fi
+else
+ APT_CACHE_DEPENDS_RECURSE_BROKEN=false
+fi
+AC_SUBST([APT_CACHE_DEPENDS_RECURSE_BROKEN])
+
+dnl For ArchLinux handler.
+AC_CHECK_PROG(PACMAN,[pacman],[pacman],[no])
+
+dnl Support for gzipped kernel modules.
+AC_CHECK_LIB([z],[gzopen])
+
+dnl Required programs, libraries.
+AC_PATH_PROG([MKE2FS],[mke2fs],[no],
+ [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR])