Test for pkg-config in configure

We depend on pkg-config, but we weren't explicitly testing for it, so
the absence of pkg-config would cause the sqlite test to fail, which
was confusing.
This commit is contained in:
Travis Cross 2014-05-09 20:19:00 +00:00
parent 717bcf617e
commit c96c733e9f
1 changed files with 4 additions and 0 deletions

View File

@ -1126,6 +1126,10 @@ case $host in
;;
esac
if ! test -x "$(which pkg-config)"; then
AC_MSG_ERROR([You need to install pkg-config to configure FreeSWITCH.])
fi
# temporary workaround for Debian libldns-dev package bug
if test "$cross_compiling" != "yes" && test -f /usr/lib/pkg-config/libldns.pc; then
path_push_unique PKG_CONFIG_PATH /usr/lib/pkg-config