(AM_LC_MESSAGES): Quote first arg of AC_DEFUN.
[gnulib.git] / m4 / ls-mntd-fs.m4
index 1920622..6b84817 100644 (file)
@@ -1,4 +1,4 @@
-#serial 8
+#serial 10
 
 dnl From Jim Meyering.
 dnl
@@ -9,7 +9,7 @@ dnl
 # jm_LIST_MOUNTED_FILESYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
 AC_DEFUN(jm_LIST_MOUNTED_FILESYSTEMS,
   [
-AC_CHECK_FUNCS(listmntent getmntent getmntinfo)
+AC_CHECK_FUNCS(listmntent getmntinfo)
 AC_CHECK_HEADERS(mntent.h)
 
 # Determine how to get the list of mounted filesystems.
@@ -237,11 +237,6 @@ if test -z "$ac_list_mounted_fs"; then
   # Can't build mountlist.c or anything that needs its functions
 fi
 
-dnl FIXME: this should use AS_IF.
-if test $ac_list_mounted_fs = found; then
-$1
-else
-$2
-fi
+AS_IF([test $ac_list_mounted_fs = found], [$1], [$2])
 
   ])