Skip to content

Commit

Permalink
pkg-config change fix: set LIBS before checking for UpnpSetLogLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
medoc92 committed Oct 3, 2016
1 parent 3c12a1c commit 0b03fcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ dnl AC_MSG_ERROR([libthreadutil (part of libupnp) not found]))
PKG_CHECK_MODULES([upnp], [libupnp], [], AC_MSG_ERROR([libupnp not found]))
PKG_CHECK_MODULES([curl], [libcurl], [], AC_MSG_ERROR([libcurl not found]))
PKG_CHECK_MODULES([expat], [expat], [],AC_MSG_ERROR([expat not found]))
AC_CHECK_FUNCS([getifaddrs] [UpnpSetLogLevel])

LIBUPNPP_LIBS="$LIBS $upnp_LIBS $curl_LIBS $expat_LIBS"
echo "LIBUPNPP_LIBS $LIBUPNPP_LIBS"

LIBS="$upnp_LIBS"
AC_CHECK_FUNCS([getifaddrs] [UpnpSetLogLevel])

LIBS=""

AC_SUBST(LIBUPNPP_LIBS)
Expand Down

0 comments on commit 0b03fcf

Please sign in to comment.