From e70dcd0a9f89efbdaa011c20737ad550635ea580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 20 Oct 2020 19:51:22 -0400 Subject: rawudp-upnp test: Also build against new GUPnP 1.2 library if present Update the configure test to match --- configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 03afc96b..1efed132 100644 --- a/configure.ac +++ b/configure.ac @@ -370,8 +370,25 @@ fi if test "x$HAVE_GUPNP" = "xyes"; then AC_DEFINE(HAVE_GUPNP,,[Have the GUPnP IGD library]) + + PKG_CHECK_MODULES(GUPNP_CORE, [ gupnp-1.2 ], + [ HAVE_GUPNP_CORE_12=yes ], + [ HAVE_GUPNP_CORE_12=no + PKG_CHECK_MODULES(GUPNP_CORE, [ gupnp-1.0 ], + [ HAVE_GUPNP_CORE_10=yes ], + [ HAVE_GUPNP_CORE_10=no ]) + ]) + + if test "x$HAVE_GUPNP_CORE_10" = "xyes"; then + AC_DEFINE(HAVE_GUPNP_CORE_10,,[Have the GUPnP 1.0 library]) + fi + + if test "x$HAVE_GUPNP_CORE_12" = "xyes"; then + AC_DEFINE(HAVE_GUPNP_CORE_12,,[Have the GUPnP 1.2 library]) + fi fi + dnl build static plugins or not AC_MSG_CHECKING([whether to build static plugins or not]) AC_ARG_ENABLE( -- cgit v1.2.1