From 188bf39acf5da14d291e4dde481baf02abe84c62 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 22 May 2019 13:03:38 -0400 Subject: [PATCH] configure: fix test where cron is not installed on a non-systemd system Reported-by: thomas@linuxfromscratch.org Signed-off-by: Theodore Ts'o --- configure | 8 ++++++-- configure.ac | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 205b2d6..065bff7 100755 --- 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 diff --git a/configure.ac b/configure.ac index 3b86c1a..cf03444 100644 --- a/configure.ac +++ b/configure.ac @@ -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}" -- 1.8.3.1