Merge pull request #911 from heuripedes/master

(qb) Always call the correct pkg-config
This commit is contained in:
Twinaphex 2014-08-29 20:48:51 +02:00
commit dab2dbe8bf

View File

@ -114,8 +114,8 @@ check_pkgconf() #$1 = HAVE_$1 $2 = package $3 = version $4 = critical error mess
answer='no' answer='no'
$PKG_CONF_PATH --atleast-version="${3:-0.0}" "$2" && { $PKG_CONF_PATH --atleast-version="${3:-0.0}" "$2" && {
answer='yes' answer='yes'
eval $1_CFLAGS=\"$(pkg-config $2 --cflags)\" eval $1_CFLAGS=\"$($PKG_CONF_PATH $2 --cflags)\"
eval $1_LIBS=\"$(pkg-config $2 --libs)\" eval $1_LIBS=\"$($PKG_CONF_PATH $2 --libs)\"
} }
eval HAVE_$1="$answer"; echo "$ECHOBUF ... $answer" eval HAVE_$1="$answer"; echo "$ECHOBUF ... $answer"