Commit 9981969d authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

nice: Expose UPnP support in nice.pc.in

It might be useful for dependent packages to check whether libnice was
compiled with UPnP support, so expose that as a variable in the
pkg-config file, set to ‘true’ if supported, and the empty string
otherwise.
parent 46fd481b
......@@ -274,6 +274,7 @@ fi
if test "x$HAVE_GUPNP" = "xyes"; then
AC_DEFINE(HAVE_GUPNP,,[Have the GUPnP IGD library])
UPNP_ENABLED="true"
else
GUPNP_PACKAGES_PUBLIC=""
GUPNP_PACKAGES_PRIVATE=""
......@@ -285,6 +286,7 @@ AC_SUBST([GUPNP_PACKAGES_PRIVATE])
AC_SUBST([GUPNP_PACKAGES])
AC_SUBST(HAVE_GUPNP)
AC_SUBST([UPNP_ENABLED])
dnl Test coverage
AC_ARG_ENABLE([coverage],
......
......@@ -2,6 +2,7 @@ prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
upnp_enabled=@UPNP_ENABLED@
Name: libnice
Description: ICE library
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment