summaryrefslogtreecommitdiffstats
path: root/m4/aclocal_fc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/aclocal_fc.m4')
-rw-r--r--m4/aclocal_fc.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/aclocal_fc.m4 b/m4/aclocal_fc.m4
index 5e47626..49e5732 100644
--- a/m4/aclocal_fc.m4
+++ b/m4/aclocal_fc.m4
@@ -106,6 +106,18 @@ AC_DEFUN([PAC_PROG_FC_STORAGE_SIZE],[
])
+dnl See if the fortran compiler supports allocatable character
+
+AC_DEFUN([PAC_HAVE_CHAR_ALLOC],[
+ HAVE_CHAR_ALLOC_FORTRAN="no"
+ AC_MSG_CHECKING([if Fortran compiler supports allocatable character])
+ TEST_SRC="`sed -ne '/PROGRAM PROG_CHAR_ALLOC/,/END PROGRAM PROG_CHAR_ALLOC/p' $srcdir/m4/aclocal_fc.f90`"
+ AC_LINK_IFELSE([$TEST_SRC], [AC_MSG_RESULT([yes])
+ HAVE_CHAR_ALLOC_FORTRAN="yes"],
+ [AC_MSG_RESULT([no])])
+
+])
+
dnl Check to see C_LONG_DOUBLE is available
AC_DEFUN([PAC_PROG_FC_HAVE_C_LONG_DOUBLE],[