Project "FreeSWITCH Source" received a push.

branch: master updated

       via: f20ba4d1f6f145118362d3c5246f27d647fbb6d2 (commit)
      from: a3b18e5b7cf33bf9de36cb12c953a5b527549a9f (commit)


= COMMIT LOG ===========================================================
committer: Stefan Knoblich
comments: 
Add --with-pkglibdir option to set the installation directory of freeswitch.pc.
Default behaviour is unchanged.

Packagers should use this option to install freeswitch.pc into
the system's main pkg-config directory (e.g. /usr/lib/pkgconfig).

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
Tested-by: Stefan Knoblich <s.knoblich@axsentis.de>

diff --git a/Makefile.am b/Makefile.am
index 37a01d2..5b6b989 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -356,7 +356,7 @@ scripts/fsxs: scripts/fsxs.in
 ## misc
 ##
 
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir   = @pkgconfigdir@
 pkgconfig_DATA = build/freeswitch.pc
 
 $(switch_builddir)/modules.conf:
diff --git a/configure.in b/configure.in
index a0c9418..0e45e06 100644
--- a/configure.in
+++ b/configure.in
@@ -93,6 +93,17 @@ AC_SUBST(libdir)
 AC_SUBST(bindir)
 AC_SUBST(includedir)
 
+AC_ARG_WITH([pkgconfigdir],
+	[AS_HELP_STRING([--with-pkgconfigdir=DIR], [Installation directory for pkgconfig file (default: \${libdir}/pkgconfig)])],
+	[case "${withval}" in
+	 yes|no) AC_MSG_ERROR([Invalid value ${withval} for option --with-pkgconfigdir]) ;;
+	 *) pkgconfigdir="${withval}" ;;
+	 esac
+	],
+	[pkgconfigdir="${libdir}/pkgconfig"]
+)
+AC_SUBST([pkgconfigdir])
+
 #Set default language
 AC_LANG_C
 # Checks for programs.
========================================================================

Summary of changes:
 Makefile.am  |    2 +-
 configure.in |   11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletions(-)

this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630 --
FreeSWITCH Source