summaryrefslogtreecommitdiffstats
path: root/fortran/configure
diff options
context:
space:
mode:
Diffstat (limited to 'fortran/configure')
-rwxr-xr-xfortran/configure41
1 files changed, 30 insertions, 11 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