diff options
-rw-r--r-- | config.make.in | 5 | ||||
-rw-r--r-- | configure.ac | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/config.make.in b/config.make.in index dbcf8a38..edb74c07 100644 --- a/config.make.in +++ b/config.make.in @@ -80,6 +80,11 @@ X11_LIBS = @X11_LIBS@ XKB_BASE = @XKB_BASE@ X11_KEYSYMDEF_H = @X11_KEYSYMDEF_H@ +# How to compile and link against libdaemon. +HAVE_DAEMON = @HAVE_DAEMON@ +libdaemon_CFLAGS = @libdaemon_CFLAGS@ +libdaemon_LIBS = @libdaemon_LIBS@ + # Whether Sun RPC support is available. HAVE_SUN_RPC = @HAVE_SUN_RPC@ diff --git a/configure.ac b/configure.ac index b8275360..d40c01fb 100644 --- a/configure.ac +++ b/configure.ac @@ -297,6 +297,12 @@ else echo ${file}:build.mk.in; done`" fi +PKG_CHECK_MODULES([libdaemon], [libdaemon], + [AC_DEFINE([HAVE_DAEMON], [1], [Use libdaemon])], + [true]) +AC_SUBST([libdaemon_LIBS]) +AC_SUBST([libdaemon_CFLAGS]) + AC_CONFIG_FILES([config.make ${makefiles}]) AC_OUTPUT |