summaryrefslogtreecommitdiffstats
path: root/fortran/acsite.m4
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-12-14 17:25:31 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-12-14 17:25:31 (GMT)
commitc18e4341138228879077f3cc0f049622ef6d77c4 (patch)
tree03c80dcbb8948cc2691c6352c162b6330aa8ac89 /fortran/acsite.m4
parentab65e40b464221fdeff22bef3e128d986f0ec16b (diff)
downloadhdf5-c18e4341138228879077f3cc0f049622ef6d77c4.zip
hdf5-c18e4341138228879077f3cc0f049622ef6d77c4.tar.gz
hdf5-c18e4341138228879077f3cc0f049622ef6d77c4.tar.bz2
[svn-r3144] Purpose:
Install Fix Description: Fortran modules need to be installed. Solution: I check for the extension modules are created with and use that during the install... Platforms tested: Linux
Diffstat (limited to 'fortran/acsite.m4')
-rw-r--r--fortran/acsite.m418
1 files changed, 14 insertions, 4 deletions
diff --git a/fortran/acsite.m4 b/fortran/acsite.m4
index f953c01..23e8409 100644
--- a/fortran/acsite.m4
+++ b/fortran/acsite.m4
@@ -197,9 +197,18 @@ EOF
eval $ac_compile
modfiles=""
+F9XMODEXT=""
-for f in conftest.o module.mod MODULE.mod; do
- test -f $f && modfiles="$f"
+for f in conftest.o module.mod MODULE.mod module.M MODULE.M; do
+ if test -f "$f" ; then
+ modfiles="$f"
+
+ case "$f" in
+ *.o) F9XMODEXT="o" ;;
+ *.mod) F9XMODEXT="mod" ;;
+ *.M) F9XMODEXT="M" ;;
+ esac
+ fi
done
echo $modfiles 6>&1
@@ -209,10 +218,10 @@ if test "$modfiles" = file.o; then
FFLAGS="$FFLAGS -em"
eval $ac_compile
modfiles=""
- for f in file.o module.mod MODULE.mod; do
+ for f in file.o module.mod MODULE.mod module.M MODULE.M; do
test -f $f && modfiles="$f"
done
- if test "$modfiles" = file.o;then
+ if test "$modfiles" = "file.o"; then
FFLAGS=$OLD_FFLAGS
echo no 6>&1
else
@@ -244,6 +253,7 @@ else
echo unknown 1>&6
fi
AC_SUBST(F9XMODFLAG)
+AC_SUBST(F9XMODEXT)
rm -rf conftest*])
dnl -------------------------------------------------------------------------