diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2013-01-15 19:35:10 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2013-01-15 19:35:10 +0000 |
commit | 22f6814985f3c559a437541e701b14a22e1ed0dc (patch) | |
tree | 83b241f8224a4de9d1d0197de45a9b3c36795c5b /lib/make/aclocal.m4 | |
parent | fda08b3a2eeb39f24757d2549f790f105f1dd3b8 (diff) |
Make CCTK_REAL16 more flexible
Instead of assuming that CCTK_REAL16 is real*16 in Fortran, allow any
real*N for user-specified values of N. This enables using CCTK_REAL16
e.g. with gcc versions that call it real*10.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4935 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/aclocal.m4')
-rw-r--r-- | lib/make/aclocal.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/make/aclocal.m4 b/lib/make/aclocal.m4 index f1da34da..4fc8db54 100644 --- a/lib/make/aclocal.m4 +++ b/lib/make/aclocal.m4 @@ -710,7 +710,7 @@ AC_DEFUN(CCTK_FORTRAN_REAL16, [cctk_cv_have_fortran_real16=no AC_LANG_SAVE AC_LANG_FORTRAN77 -CCTK_TRY_COMPILE(,[ REAL*16 a], cctk_cv_have_fortran_real16=yes, cctk_cv_have_fortran_real16=no) +CCTK_TRY_COMPILE(,[ REAL*$REAL16_KIND a], cctk_cv_have_fortran_real16=yes, cctk_cv_have_fortran_real16=no) AC_LANG_RESTORE ]) if test "$cctk_cv_have_fortran_real16" = "yes" ; then @@ -749,7 +749,7 @@ AC_DEFUN(CCTK_FORTRAN_COMPLEX32, [cctk_cv_have_fortran_complex32=no AC_LANG_SAVE AC_LANG_FORTRAN77 -CCTK_TRY_COMPILE(,[ COMPLEX*32 a], cctk_cv_have_fortran_complex32=yes, cctk_cv_have_fortran_complex32=no) +CCTK_TRY_COMPILE(,[ COMPLEX*$COMPLEX32_KIND a], cctk_cv_have_fortran_complex32=yes, cctk_cv_have_fortran_complex32=no) AC_LANG_RESTORE ]) if test "$cctk_cv_have_fortran_complex32" = "yes" ; then |