From 38651d932241e8ed90ce2a93c3d57c4501326966 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Fri, 3 Aug 2018 08:46:04 +0200 Subject: [PATCH] Add --with-klogd-delay=SEC configure option This enables the same functionality as the old build system, only slightly more flexible since you don't need to edit the Makefile. Signed-off-by: Joachim Nilsson --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index e0a2dd3..c561dc6 100644 --- a/configure.ac +++ b/configure.ac @@ -28,4 +28,14 @@ AC_PROG_CC AC_PROG_INSTALL AC_HEADER_STDC +AC_ARG_WITH(klogd-delay, + AS_HELP_STRING([--with-klogd-delay=SEC], [when started at the same time as syslogd, default: 0]), + [klogd_delay=$withval], [klogd_delay='no']) + +AS_IF([test "x$klogd_delay" != "xno"],[ + AS_IF([test "x$klogd_delay" = "xyes"],[ + AC_MSG_ERROR([Must supply argument])]) + ] + AC_DEFINE_UNQUOTED(KLOGD_DELAY, $klogd_delay, [Delay klogd startup N seconds, default: 0])) + AC_OUTPUT