summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-03-04 01:31:14 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-03-04 01:31:14 +0000
commit063e93c767cd1159b8377b9532e13ae67d542262 (patch)
tree497f3a8fb34123a038cb6a2f8a7f1013efadad3f /lib
parent7947f9db37814803ebbaaab0825cea6149d1946f (diff)
Correct syntax error when checking for attribute(format)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4972 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rw-r--r--lib/make/aclocal.m48
1 files 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