summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-10-01 21:21:05 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-10-01 21:52:47 +0200
commitb739ed0e09a640d0fd1c386f24ea2df580a410ed (patch)
treef2a27082b42f0e365fc611aec97ec1654f10d538
parent94c9da418edbe13963dcc5b604532e3718da233c (diff)
Create an -uninstalled variant of the pkg-config file.
With this variant, it's possible to build against a live tree of libdaemon to test in-development features.
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac2
-rw-r--r--pkgconfig/libdaemon-uninstalled.pc.in8
-rw-r--r--pkgconfig/libdaemon.pc.in (renamed from libdaemon.pc.in)0
4 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 2dd8472..30ebcd9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,7 +26,7 @@ SUBDIRS += examples
endif
pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libdaemon.pc
+pkgconfig_DATA = pkgconfig/libdaemon.pc
dist_noinst_DATA =
MAINTAINERCLEANFILES=
diff --git a/configure.ac b/configure.ac
index 0bd7ffb..0eb0114 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,5 +81,5 @@ AC_ARG_ENABLE(examples,
enable_examples="yes")
AM_CONDITIONAL(EXAMPLES, [test "$enable_examples" = "yes"])
-AC_CONFIG_FILES([libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile libdaemon.pc])
+AC_CONFIG_FILES([libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile pkgconfig/libdaemon.pc pkgconfig/libdaemon-uninstalled.pc])
AC_OUTPUT
diff --git a/pkgconfig/libdaemon-uninstalled.pc.in b/pkgconfig/libdaemon-uninstalled.pc.in
new file mode 100644
index 0000000..3ceb71b
--- /dev/null
+++ b/pkgconfig/libdaemon-uninstalled.pc.in
@@ -0,0 +1,8 @@
+libdir=@abs_top_builddir@/libdaemon/.libs
+includedir=@abs_top_srcdir@
+
+Name: libdaemon
+Description: a lightweight C library that eases the writing of UNIX daemons
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -R${libdir} -ldaemon
+Cflags: -D_REENTRANT -I${includedir}
diff --git a/libdaemon.pc.in b/pkgconfig/libdaemon.pc.in
index 835dcf1..835dcf1 100644
--- a/libdaemon.pc.in
+++ b/pkgconfig/libdaemon.pc.in