AC_DEFUN([PKG_PROVIDE],[
if test "x$BUILD_$1" = "x" ; then
- if test "x$2" = "xno" -o "x$PKG_$1" = "xno"; then
- PKG_DISABLED([$1])
- elif test "x$PKG_$1" = "xyes"; then
+ if test "x$PKG_$1" = "xyes"; then
PKG_FORCED([$1])
+ elif test "x$2" = "xno" -o "x$PKG_$1" = "xno"; then
+ PKG_DISABLED([$1])
elif test "x$WANT_STATIC_BUILD" = "xyes"; then
PKG_STATIC([$1],[static])
elif test "x$HAVE_$1" = "xyes"; then