From: Darren Tucker Date: Fri, 6 Nov 2020 06:11:16 +0000 (+1100) Subject: Fix function body for variadic macro test. X-Git-Tag: V_8_5_P1~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d2564b94e51184eb0b73b97d13a36ad50b4f810;p=thirdparty%2Fopenssh-portable.git Fix function body for variadic macro test. AC_LANG_PROGRAM puts its second argument inside main() so we don't need to do it ourselves. --- diff --git a/configure.ac b/configure.ac index 07b080fdb..92f45a82a 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ AC_MSG_CHECKING([if $CC supports C99-style variadic macros]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ int f(int a, int b, int c) { return a + b + c; } #define F(a, ...) f(a, __VA_ARGS__) -]], [[int main(void) { return F(1, 2, -3); }]])], +]], [[return F(1, 2, -3);]])], [ AC_MSG_RESULT([yes]) ], [ AC_MSG_ERROR([*** OpenSSH requires support for C99-style variadic macros]) ] )