1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

Fix FTCBFS due to AC_RUN_IFELSE (patch by Helmut Grohne)

Fixes: #475
This commit is contained in:
Mike Gelfand 2018-01-26 08:31:16 +03:00 committed by Rosen Penev
parent 357cccb9cf
commit b21a6140e9

View file

@ -390,14 +390,12 @@ dnl Let's hope it's 1.7 or higher, since it provides
dnl MINIUPNPC_API_VERSION and we won't have to figure
dnl it out on our own
if test "x$upnp_version" = "xunknown" ; then
AC_RUN_IFELSE(
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[#include <stdlib.h>
#include <miniupnpc/miniupnpc.h>],
[#ifdef MINIUPNPC_API_VERSION
return EXIT_SUCCESS;
#else
return EXIT_FAILURE;
[#ifndef MINIUPNPC_API_VERSION
#error MINIUPNPC_API_VERSION undefined
#endif]
)],
[upnp_version=">= 1.7"]