[pkg-opensc-commit] [pkcs11-helper] 204/253: Fix autoconf warnings of latest

Eric Dorland eric at moszumanska.debian.org
Fri Jan 6 23:39:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository pkcs11-helper.

commit 6b7954752fa22cac95df8169908143d868ee1606
Author: Alon Bar-Lev <alon.barlev at gmail.com>
Date:   Fri Oct 21 09:18:11 2011 +0000

    Fix autoconf warnings of latest
---
 m4/vararg.m4 | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/m4/vararg.m4 b/m4/vararg.m4
index fb8b4a7..2361ed6 100644
--- a/m4/vararg.m4
+++ b/m4/vararg.m4
@@ -8,11 +8,12 @@ dnl @author James Yonan <jim at yonan.net>, Matthias Andree <matthias.andree at web.de
 AC_DEFUN([AX_CPP_VARARG_MACRO_GCC], [dnl
     AS_VAR_PUSHDEF([VAR],[ax_cv_cpp_vararg_macro_gcc])dnl
     AC_CACHE_CHECK([for GNU GCC vararg macro support], VAR, [dnl
-      AC_COMPILE_IFELSE([
-	#define macro(a, b...) func(a, b)
+      AC_COMPILE_IFELSE([AC_LANG_SOURCE(
+        ,
+	[[#define macro(a, b...) func(a, b)
 	int func(int a, int b, int c);
 	int test() { return macro(1, 2, 3); }
-	], [ VAR=yes ], [VAR=no])])
+	]])], [ VAR=yes ], [VAR=no])])
     if test $VAR = yes ; then
     AC_DEFINE([HAVE_CPP_VARARG_MACRO_GCC], 1, 
       [Define to 1 if your compiler supports GNU GCC-style variadic macros])
@@ -30,11 +31,13 @@ dnl @author James Yonan <jim at yonan.net>, Matthias Andree <matthias.andree at web.de
 AC_DEFUN([AX_CPP_VARARG_MACRO_ISO], [dnl
     AS_VAR_PUSHDEF([VAR],[ax_cv_cpp_vararg_macro_iso])dnl
     AC_CACHE_CHECK([for ISO C 1999 vararg macro support], VAR, [dnl
-      AC_COMPILE_IFELSE([
+      AC_COMPILE_IFELSE([AC_LANG_SOURCE(
+      	,
+	[[
 #define macro(a, ...) func(a, __VA_ARGS__)
 	int func(int a, int b, int c);
 	int test() { return macro(1, 2, 3); }
-	], [ VAR=yes ], [VAR=no])])
+	]])], [ VAR=yes ], [VAR=no])])
     if test $VAR = yes ; then
     AC_DEFINE([HAVE_CPP_VARARG_MACRO_ISO], 1, 
       [Define to 1 if your compiler supports ISO C99 variadic macros])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pkcs11-helper.git



More information about the pkg-opensc-commit mailing list