From 9981969d7dc14d6eb67389b56c37194938841c61 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 30 Jun 2014 17:28:09 +0100 Subject: [PATCH] nice: Expose UPnP support in nice.pc.in MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- configure.ac | 2 ++ nice/nice.pc.in | 1 + 2 files changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index b915249..124c9ea 100644 --- a/configure.ac +++ b/configure.ac @@ -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], diff --git a/nice/nice.pc.in b/nice/nice.pc.in index edc01f5..9461daa 100644 --- a/nice/nice.pc.in +++ b/nice/nice.pc.in @@ -2,6 +2,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ +upnp_enabled=@UPNP_ENABLED@ Name: libnice Description: ICE library -- 2.7.4