summaryrefslogtreecommitdiffstats
path: root/config/apple
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-11-16 20:45:05 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-11-16 20:45:05 (GMT)
commitd2b87ec47ebdb096c331c7b62a195b9cea2f33ae (patch)
treea066f01361afaf5df457cef612bb0bb9fd80fe18 /config/apple
parentee5a1e07350f0dcf3ef07d9443aa2f4c073392f4 (diff)
downloadhdf5-d2b87ec47ebdb096c331c7b62a195b9cea2f33ae.zip
hdf5-d2b87ec47ebdb096c331c7b62a195b9cea2f33ae.tar.gz
hdf5-d2b87ec47ebdb096c331c7b62a195b9cea2f33ae.tar.bz2
[svn-r17896] Description:
Bring r17546:17895 from trunk to revise_chunks branch. Changes to fixed and extensible array dataset chunk indexing code to accommodate changes to private APIs in those interfaces. Also, other adjustments to source code and expected output in response to changes on the trunk. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers, w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.6.2 (amazon) in debug mode Mac OS X/32 10.6.2 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
Diffstat (limited to 'config/apple')
-rw-r--r--config/apple70
1 files changed, 23 insertions, 47 deletions
diff --git a/config/apple b/config/apple
index 14504bb..8c4cc8e 100644
--- a/config/apple
+++ b/config/apple
@@ -28,54 +28,30 @@ fi
# Figure out compiler flags
. $srcdir/config/gnu-flags
-
-# The default Fortran 90 compiler
+
+. $srcdir/config/intel-flags
if test "X-" = "X-$FC"; then
- # Assume Absoft compiler
- FC=xlf
- FC_BASENAME=xlf
- else
-
- # Neither xlf nor f95 have a working "version" command.
- # If FC is set, try to guess which one is being used by examining
- # the last element in the path to the compiler.
-
- TEMP_BASENAME=`basename $FC`
- if test "xlf" = "${TEMP_BASENAME}"; then
- FC_BASENAME=xlf
- else
- FC_BASENAME=f95
- fi
+ case $CC_BASENAME in
+ gcc*)
+ FC=gfortran
+ FC_BASENAME=gfortran
+ ;;
+ icc*)
+ FC=ifort
+ FC_BASENAME=ifort
+ ;;
+ esac
fi
-
-case $FC_BASENAME in
- xlf)
- F9XSUFFIXFLAG="-qsuffix=f=f90 -qfree=f90"
- FCFLAGS="$FCFLAGS ${F9XSUFFIXFLAG}"
- H5_FCFLAGS="$H5_FCFLAGS -qmoddir=./ "
- FSEARCH_DIRS="-I./ -I../src"
- DEBUG_FCFLAGS="-g"
- PROD_FCFLAGS="-O"
- PROFILE_FCFLAGS="-g"
- f9x_flags_set=yes
- ;;
-
- f95)
-
- F9XSUFFIXFLAG=""
-# We force compiler to use upper case for external names
-# (just in case since this should be a default EIP)
- H5_FCFLAGS="$H5_FCFLAGS"
- FSEARCH_DIRS=""
- DEBUG_FCFLAGS="-g"
- PROD_FCFLAGS="-O"
- PROFILE_FCFLAGS="-g -pg"
- f9x_flags_set=yes
-
-# f95 doesn't support shared libraries
- echo ' warning: shared libraries are not supported for f95!'
- echo ' disabling shared libraries'
+# Figure out compiler flags
+. $srcdir/config/gnu-fflags
+
+. $srcdir/config/intel-fflags
+
+# Fortran doesn't work with shared libraries
+#
+if test "X-" != "X-$enable_fortran"; then
+ echo ' Warning: shared libraries are not supported with Fortran'
+ echo ' Disabling shared libraries'
enable_shared="no"
- ;;
+fi
-esac