]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Check for pkg-config at $PKG_CONFIG in configure
authorTravis Cross <tc@traviscross.com>
Fri, 9 May 2014 22:09:55 +0000 (22:09 +0000)
committerTravis Cross <tc@traviscross.com>
Fri, 9 May 2014 22:12:11 +0000 (22:12 +0000)
This allows someone without pkg-config in their PATH to set where
pkg-config is located.

configure.ac

index 71fd5bc6026fd903636655bec22445b1a2dceeca..2e8d6e1162a2288ee9a18ff23e6e801e51b850c3 100644 (file)
@@ -1126,7 +1126,7 @@ case $host in
        ;;
 esac
 
-if ! test -x "$(which pkg-config)"; then
+if ! test -x "$PKG_CONFIG" || ! test -x "$(which pkg-config)"; then
   AC_MSG_ERROR([You need to install pkg-config to configure FreeSWITCH.])
 fi