Whamcloud - gitweb
configure: fix test where cron is not installed on a non-systemd system
authorTheodore Ts'o <tytso@mit.edu>
Wed, 22 May 2019 17:03:38 +0000 (13:03 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 27 May 2019 19:10:31 +0000 (15:10 -0400)
Reported-by: thomas@linuxfromscratch.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
configure
configure.ac

index 205b2d6..065bff7 100755 (executable)
--- a/configure
+++ b/configure
@@ -13150,7 +13150,8 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
-  $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
+
+$as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
 
 fi
 
@@ -13191,7 +13192,8 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
-  $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
+
+$as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
 
 fi
 
@@ -14511,6 +14513,8 @@ if test "x${with_crond_dir}" != "xno"; then :
 
                if test -d "/etc/cron.d"; then :
   with_crond_dir="/etc/cron.d"
+else
+  have_crond="no"; with_crond_dir=""
 fi
 
 fi
index 3b86c1a..cf03444 100644 (file)
@@ -1674,7 +1674,8 @@ AS_IF([test "x${with_crond_dir}" != "xno"],
        AS_IF([test "x${with_crond_dir}" = "xyes"],
          [
                AS_IF([test -d "/etc/cron.d"],
-                 [with_crond_dir="/etc/cron.d"])
+                 [with_crond_dir="/etc/cron.d"],
+                 [have_crond="no"; with_crond_dir=""])
          ])
        AC_MSG_CHECKING([for system crontab dir])
        crond_dir="${with_crond_dir}"