Added --with-pkgconfigdir

This commit is contained in:
Fabian Freyer
2014-09-26 05:03:42 +02:00
parent 55efc601cb
commit 3231214344
2 changed files with 8 additions and 1 deletions

View File

@@ -36,7 +36,6 @@ endif
include_HEADERS = strophe.h
noinst_HEADERS = strophepp.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libstrophe.pc
EXTRA_DIST = docs

View File

@@ -86,6 +86,14 @@ fi
AC_CHECK_HEADERS([arpa/nameser_compat.h])
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR],
[AC_ARG_WITH([pkgconfigdir],
[AS_HELP_STRING([--with-pkgconfigdir],
[install directory for libstrophe.pc pkg-config file])],
[],[with_pkgconfigdir='$(libdir)/pkgconfig'])
AC_SUBST([pkgconfigdir], [${with_pkgconfigdir}])])
AM_CONDITIONAL([PARSER_EXPAT], [test x$with_parser != xlibxml2])
AC_SUBST([PC_REQUIRES], [${PC_REQUIRES[[@]]}])