summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-05-17 19:38:50 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-05-17 19:38:50 (GMT)
commitcf40356535007234c9395134ade1f5fb7ebee0c6 (patch)
tree76520e9cba8c54025f6658eafe4580290cda8a8a /fortran
parent3edbf40ed20587c9ad742e51657047836967e4b5 (diff)
downloadhdf5-cf40356535007234c9395134ade1f5fb7ebee0c6.zip
hdf5-cf40356535007234c9395134ade1f5fb7ebee0c6.tar.gz
hdf5-cf40356535007234c9395134ade1f5fb7ebee0c6.tar.bz2
[svn-r6886] Purpose:
Update Description: GPFS should only be checked for if the --enable-gpfs flag is used. Otherwise, it shouldn't. Platforms tested: Linux (Configure only fix so only needed to test it to make sure the configure does the right thing and that the build won't break. I need to test it on a machine that has GPFS to make sure it works there...)
Diffstat (limited to 'fortran')
-rwxr-xr-xfortran/configure41
-rw-r--r--fortran/configure.in49
2 files changed, 61 insertions, 29 deletions
diff --git a/fortran/configure b/fortran/configure
index 12d8247..50ad400 100755
--- a/fortran/configure
+++ b/fortran/configure
@@ -1003,6 +1003,8 @@ Optional Features:
specify a comma-separated list of filters or the
word no. The default is all internal I/O filters.
--enable-parallel Search for MPI-IO and MPI support files
+ --enable-gpfs Enable GPFS hints for the MPI/POSIX file driver.
+ [default=no]
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -3892,7 +3894,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
case $host in
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 3895 "configure"' > conftest.$ac_ext
+ echo '#line 3897 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -4433,7 +4435,7 @@ chmod -w .
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
-if { (eval echo configure:4436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:4438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
if test -s out/conftest.err; then
@@ -6244,7 +6246,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 6247 "configure"
+#line 6249 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -6342,7 +6344,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 6345 "configure"
+#line 6347 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -9637,8 +9639,17 @@ echo "${ECHO_T}you have a deficient make command" >&6
rm makeinc maketest
fi
+# Check whether --enable-gpfs or --disable-gpfs was given.
+if test "${enable_gpfs+set}" = set; then
+ enableval="$enable_gpfs"
-ac_ext=c
+else
+ enableval=no
+fi;
+
+case "X-$enableval" in
+ X-yes)
+ ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
@@ -9756,7 +9767,7 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
_ACEOF
echo "$as_me:$LINENO: checking for GPFS support" >&5
echo $ECHO_N "checking for GPFS support... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
+ cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <gpfs.h>
@@ -9791,16 +9802,16 @@ cat >>confdefs.h <<\_ACEOF
#define HAVE_GPFS 1
_ACEOF
- echo "$as_me:$LINENO: result: yes" >&5
+ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
- LIBS="$LIBS -lgpfs"
- GPFS="yes"
+ LIBS="$LIBS -lgpfs"
+ GPFS="yes"
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
- GPFS="no"
+ GPFS="no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
@@ -9808,11 +9819,19 @@ fi
done
-ac_ext=f90
+ ac_ext=f90
ac_compile='${F9X-f90} -c $FFLAGS conftest.$ac_ext 1>&5'
ac_link='${F9X-f90} -o conftest${ac_exeext} $FFLAGS conftest.$ac_ext $LDFLAGS $LIBS 1>&5'
cross_compiling=$ac_cv_prog_f9x_cross
+ ;;
+ X-no|*)
+ echo "$as_me:$LINENO: checking for gpfs" >&5
+echo $ECHO_N "checking for gpfs... $ECHO_C" >&6
+ echo "$as_me:$LINENO: result: suppressed" >&5
+echo "${ECHO_T}suppressed" >&6
+ ;;
+esac
rm -f conftest core core.* *.core conftest.o conftest.c dummy.o $ac_clean_files
diff --git a/fortran/configure.in b/fortran/configure.in
index 25a01b8..306d9b3 100644
--- a/fortran/configure.in
+++ b/fortran/configure.in
@@ -960,25 +960,38 @@ fi
dnl ----------------------------------------------------------------------
dnl Checking to see if GPFS is available on this filesystem
dnl
+AC_ARG_ENABLE([gpfs],
+ [AC_HELP_STRING([--enable-gpfs],
+ [Enable GPFS hints for the MPI/POSIX file
+ driver. [default=no]])],,
+ [enableval=no])
-dnl Change to the C language
-AC_LANG_C
-
-AC_CHECK_HEADERS([gpfs.h],
- AC_MSG_CHECKING([for GPFS support])
- AC_TRY_COMPILE([#include <gpfs.h>],
- [int fd = 0; gpfs_fcntl(fd, (void *)0);],
- AC_DEFINE(HAVE_GPFS, 1,
- [Define if we have GPFS support])
- AC_MSG_RESULT(yes)
- LIBS="$LIBS -lgpfs"
- GPFS="yes",
- AC_MSG_RESULT(no)
- GPFS="no"))
-
-dnl Change back to the Fortran 90 language
-AC_LANG_FORTRAN9X
-
+case "X-$enableval" in
+ X-yes)
+ dnl Change to the C language
+ AC_LANG_C
+
+ AC_CHECK_HEADERS([gpfs.h],
+ AC_MSG_CHECKING([for GPFS support])
+ AC_TRY_COMPILE([#include <gpfs.h>],
+ [int fd = 0; gpfs_fcntl(fd, (void *)0);],
+ AC_DEFINE(HAVE_GPFS, 1,
+ [Define if we have GPFS support])
+ AC_MSG_RESULT(yes)
+ LIBS="$LIBS -lgpfs"
+ GPFS="yes",
+ AC_MSG_RESULT(no)
+ GPFS="no"))
+
+ dnl Change back to the Fortran 90 language
+ AC_LANG_FORTRAN9X
+ ;;
+ X-no|*)
+ AC_MSG_CHECKING([for gpfs])
+ AC_MSG_RESULT([suppressed])
+ ;;
+esac
+
dnl Some cleanup stuff
rm -f conftest core core.* *.core conftest.o conftest.c dummy.o $ac_clean_files