diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2013-08-21 18:09:59 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2013-08-21 18:09:59 +0000 |
commit | cac4f916ce1f5131c9a682b4ec5bb93b2251cee3 (patch) | |
tree | c8a12dafc6e620725f420542546200ddcbee2400 /lib/make/aclocal.m4 | |
parent | 93f4e9c4c5367f09305accf12f70511af1e1a0ad (diff) |
Add more checks when checking for C99 features
git-svn-id: http://svn.cactuscode.org/flesh/trunk@5043 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/aclocal.m4')
-rw-r--r-- | lib/make/aclocal.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/make/aclocal.m4 b/lib/make/aclocal.m4 index e96e7a46..db22e015 100644 --- a/lib/make/aclocal.m4 +++ b/lib/make/aclocal.m4 @@ -1210,7 +1210,8 @@ AC_TRY_COMPILE(, // Test C99 comments // Test variable declarations in the middle of blocks 0; -int x; +int x = 1; +for (int i=0; i<10; ++i) x+=i; , cctk_cv_have_c99=yes, cctk_cv_have_c99=no) ]) if test "$cctk_cv_have_c99" = "yes" ; then |