Skip to content

Commit

Permalink
(qb) Fix for PKG_CONF_PATH=none
Browse files Browse the repository at this point in the history
  • Loading branch information
heuripedes committed Apr 19, 2015
1 parent 1970e80 commit d3abc80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions qb/qb.comp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ if [ "$OS" = "Win32" ]; then
echo "$ECHOBUF ... $WINDRES"
fi

[ "$PKG_CONF_PATH" ] && [ "$PKG_CONF_PATH" != "none" ] || {
ECHOBUF="Checking for pkg-config"
ECHOBUF="Checking for pkg-config"

[ -n "$PKG_CONF_PATH" ] || {
PKG_CONF_PATH="none"

for path in $(which "${CROSS_COMPILE}pkg-config" 2>/dev/null) ''; do
Expand All @@ -90,8 +91,10 @@ fi
}
done

echo "$ECHOBUF ... $PKG_CONF_PATH"
if [ "$PKG_CONF_PATH" = "none" ]; then
echo "Warning: pkg-config not found, package checks will fail."
fi
}

echo "$ECHOBUF ... $PKG_CONF_PATH"

if [ "$PKG_CONF_PATH" = "none" ]; then
echo "Warning: pkg-config not found, package checks will fail."
fi
1 change: 1 addition & 0 deletions qb/qb.libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ check_pkgconf() #$1 = HAVE_$1 $2 = package $3 = version $4 = critical error mess
[ "$3" ] && ECHOBUF="$ECHOBUF >= $3"

[ "$PKG_CONF_PATH" = "none" ] && {
eval HAVE_$1="no"
echo "$ECHOBUF ... no"
return 0
}
Expand Down

0 comments on commit d3abc80

Please sign in to comment.