From c187d9abe735d867f1dc47db5646495250394bc9 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Fri, 27 May 2016 13:06:58 -0700 Subject: Factor out generic 'HAVE_ONDEMAND' macro flag HAVE_SYSTEMD and HAVE_LAUNCHD use very similar code for on-demand launching of cupsd, and if we want to add one more (e.g., upstart) it's easier to just use a single common flag: HAVE_ONDEMAND. --- config.h.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index e242d5611..526f91a5e 100644 --- a/config.h.in +++ b/config.h.in @@ -717,4 +717,10 @@ static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); } # endif /* __GNUC__ || __STDC_VERSION__ */ #endif /* !HAVE_ABS && !abs */ +#if defined(HAVE_LAUNCHD) || defined(HAVE_SYSTEMD) +# define HAVE_ONDEMAND +#else +# undef HAVE_ONDEMAND +#endif + #endif /* !_CUPS_CONFIG_H_ */ -- cgit v1.2.1