1
Description: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=1e604ecfb2d49e6073c445623d894e9709e91b35
2
introduced a check wheter AC_LANG_SOURCE/AC_LANG_PROGRAM have been called
3
correctly, this ensures that the generated conftest has all necessary
4
definitions for it's programming language.
5
Author: Andreas Moog <amoog@ubuntu.com>
6
Forwarded: https://sourceforge.net/tracker.php?aid=3368041
7
Last-Update: 2011-07-15
9
--- nzbget-0.7.0.orig/configure.ac
10
+++ nzbget-0.7.0/configure.ac
11
@@ -502,14 +502,14 @@ dnl
14
AC_MSG_CHECKING(for variadic macros)
16
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([
17
#define macro(...) macrofunc(__VA_ARGS__)
18
int macrofunc(int a, int b) { return a + b; }
19
int test() { return macro(1, 2); }
22
AC_DEFINE([HAVE_VARIADIC_MACROS], 1, Define to 1 if variadic macros are supported),
23
- AC_MSG_RESULT([no]))
24
+ AC_MSG_RESULT([no]))])