You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1019 B

  1. From 94fa0bba88740b9ab58c5805ddb24b05b2635f34 Mon Sep 17 00:00:00 2001
  2. From: Mike Gelfand <mikedld@mikedld.com>
  3. Date: Fri, 26 Jan 2018 08:31:16 +0300
  4. Subject: [PATCH] Fix FTCBFS due to AC_RUN_IFELSE (patch by Helmut Grohne)
  5. Fixes: #475
  6. ---
  7. configure.ac | 8 +++-----
  8. 1 file changed, 3 insertions(+), 5 deletions(-)
  9. diff --git a/configure.ac b/configure.ac
  10. index cb026df..335f4a7 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -390,14 +390,12 @@ dnl Let's hope it's 1.7 or higher, since it provides
  14. dnl MINIUPNPC_API_VERSION and we won't have to figure
  15. dnl it out on our own
  16. if test "x$upnp_version" = "xunknown" ; then
  17. - AC_RUN_IFELSE(
  18. + AC_COMPILE_IFELSE(
  19. [AC_LANG_PROGRAM(
  20. [#include <stdlib.h>
  21. #include <miniupnpc/miniupnpc.h>],
  22. - [#ifdef MINIUPNPC_API_VERSION
  23. - return EXIT_SUCCESS;
  24. - #else
  25. - return EXIT_FAILURE;
  26. + [#ifndef MINIUPNPC_API_VERSION
  27. + #error MINIUPNPC_API_VERSION undefined
  28. #endif]
  29. )],
  30. [upnp_version=">= 1.7"]
  31. --
  32. 2.7.4