[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/5] Add configure checks for libdaemon
From: |
Justus Winter |
Subject: |
[PATCH 1/5] Add configure checks for libdaemon |
Date: |
Fri, 26 Jul 2013 18:52:42 +0200 |
* configure.ac: Add check for libdaemon.
* config.make.in: Make the libdaemon specific variables available.
---
config.make.in | 5 +++++
configure.ac | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/config.make.in b/config.make.in
index b8002a1..73b54de 100644
--- a/config.make.in
+++ b/config.make.in
@@ -77,6 +77,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 31e48ef..d47e76f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -296,6 +296,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
--
1.7.10.4
- [PATCH 2/3] Add (build) dependency on libdaemon, (continued)
- [PATCH 2/3] Add (build) dependency on libdaemon, Justus Winter, 2013/07/17
- [PATCH 1/3] console-client: add daemonizing support, Justus Winter, 2013/07/17
- [PATCH 3/3] Add an initscript for the hurd console, Justus Winter, 2013/07/17
- Re: [PATCH 3/3] Add an initscript for the hurd console, Justus Winter, 2013/07/17
- [PATCH 3/4] Add an initscript for the hurd console, Justus Winter, 2013/07/17
- Re: [PATCH 1/4] console-client: add daemonizing support, Samuel Thibault, 2013/07/26
- [PATCH 1/5] Add configure checks for libdaemon,
Justus Winter <=
- [PATCH 2/5] console-client: add daemonizing support, Justus Winter, 2013/07/26
- [PATCH 3/5] debian/control: Add build dependency on libdaemon, Justus Winter, 2013/07/26
- [PATCH 4/5] Add an initscript for the hurd console, Justus Winter, 2013/07/26
- [PATCH 5/5] Drop hurd_console_startup.patch, Justus Winter, 2013/07/26