[syslog-ng] [PATCH 2/2] syslog-ng.pc: Include moduledir in the pkg-config file.

Gergely Nagy algernon at balabit.hu
Mon Aug 29 21:18:00 CEST 2011


To ease external module development, include the expanded moduledir in
the pkg-config file.

It can be retrieved with pkg-config --variable moduledir.

Signed-off-by: Gergely Nagy <algernon at balabit.hu>
---
 configure.in    |    2 ++
 syslog-ng.pc.in |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.in b/configure.in
index 3445a55..13ff6bf 100644
--- a/configure.in
+++ b/configure.in
@@ -1057,11 +1057,13 @@ AM_CONDITIONAL(ENABLE_JSON, [test "$enable_json" = "yes"])
 
 # substitution into manual pages
 expanded_sysconfdir=[`patheval $sysconfdir | sed -e 's/-/\\\\-/g'`]
+expanded_moduledir=[`patheval $moduledir`]
 
 AC_SUBST(timezonedir)
 AC_SUBST(pidfiledir)
 AC_SUBST(moduledir)
 AC_SUBST(expanded_sysconfdir)
+AC_SUBST(expanded_moduledir)
 AC_SUBST(systemdsystemunitdir)
 AC_SUBST(SYSLOGNG_LINK)
 AC_SUBST(SYSLOGNG_DEPS_LIBS)
diff --git a/syslog-ng.pc.in b/syslog-ng.pc.in
index 0df6e64..5b2c1c6 100644
--- a/syslog-ng.pc.in
+++ b/syslog-ng.pc.in
@@ -4,6 +4,7 @@ exec_prefix=@exec_prefix@
 libdir=@libdir@
 includedir=@includedir@
 toolsdir=@datadir@/tools
+moduledir=@expanded_moduledir@
 
 Name: syslog-ng-dev
 Description: Dev package for syslog-ng module
-- 
1.7.5.4




More information about the syslog-ng mailing list