From 063e93c767cd1159b8377b9532e13ae67d542262 Mon Sep 17 00:00:00 2001 From: eschnett Date: Mon, 4 Mar 2013 01:31:14 +0000 Subject: Correct syntax error when checking for attribute(format) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4972 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/aclocal.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/make/aclocal.m4 b/lib/make/aclocal.m4 index d6e07503..551b206d 100644 --- a/lib/make/aclocal.m4 +++ b/lib/make/aclocal.m4 @@ -1012,9 +1012,9 @@ fi AC_DEFUN(CCTK_C_ATTRIBUTE_FORMAT, -[AC_CACHE_CHECK([for C __attribute__((__format__(printf(1, 2))))], cctk_cv_have_c_attribute_format, +[AC_CACHE_CHECK([for C __attribute__((__format__(printf, 1, 2)))], cctk_cv_have_c_attribute_format, [cctk_cv_have_c_attribute_format=no -AC_TRY_COMPILE(void xyzzy(const char*, ...) __attribute__((__format__(printf(1, 2))));, xyzzy("%d",42);, cctk_cv_have_c_attribute_format=yes, cctk_cv_have_c_attribute_format=no) +AC_TRY_COMPILE(void xyzzy(const char*, ...) __attribute__((__format__(printf, 1, 2)));, xyzzy("%d",42);, cctk_cv_have_c_attribute_format=yes, cctk_cv_have_c_attribute_format=no) ]) if test "$cctk_cv_have_c_attribute_format" = "yes" ; then AC_DEFINE(HAVE_CCTK_C_ATTRIBUTE_FORMAT) @@ -1022,11 +1022,11 @@ fi ]) AC_DEFUN(CCTK_CXX_ATTRIBUTE_FORMAT, -[AC_CACHE_CHECK([for CXX __attribute__((__format__))], cctk_cv_have_cxx_attribute_format, +[AC_CACHE_CHECK([for CXX __attribute__((__format__(printf, 1, 2)))], cctk_cv_have_cxx_attribute_format, [cctk_cv_have_cxx_attribute_format=no AC_LANG_SAVE AC_LANG_CPLUSPLUS -AC_TRY_COMPILE(void xyzzy(const char*, ...) __attribute__((__format__(printf(1, 2))));, xyzzy("%d",42);, cctk_cv_have_cxx_attribute_format=yes, cctk_cv_have_cxx_attribute_format=no) +AC_TRY_COMPILE(void xyzzy(const char*, ...) __attribute__((__format__(printf, 1, 2)));, xyzzy("%d",42);, cctk_cv_have_cxx_attribute_format=yes, cctk_cv_have_cxx_attribute_format=no) AC_LANG_RESTORE ]) if test "$cctk_cv_have_cxx_attribute_format" = "yes" ; then -- cgit v1.2.3