Merge pull request #5781 from orbea/pkgconf

qb: Clean up empty defines in config.mk
This commit is contained in:
Twinaphex 2017-11-25 21:58:00 +01:00 committed by GitHub
commit 93451012ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,12 +93,13 @@ check_pkgconf() #$1 = HAVE_$1 $2 = package $3 = version $4 = critical error mess
eval HAVE_$1="$answer";
echo "$ECHOBUF ... $version"
PKG_CONF_USED="$PKG_CONF_USED $1"
[ "$answer" = 'no' ] && {
if [ "$answer" = 'no' ]; then
[ "$4" ] && die 1 "$4"
[ "$tmpval" = 'yes' ] && \
die 1 "Forced to build with package $2, but cannot locate. Exiting ..."
}
else
PKG_CONF_USED="$PKG_CONF_USED $1"
fi
}
check_header() #$1 = HAVE_$1 $2..$5 = header files