1998-04-03 11:29:38 +08:00
|
|
|
# -*- shell-script -*-
|
2005-10-21 22:54:41 +08:00
|
|
|
#
|
2007-02-15 06:29:52 +08:00
|
|
|
# Copyright by The HDF Group.
|
2005-10-21 22:54:41 +08:00
|
|
|
# Copyright by the Board of Trustees of the University of Illinois.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
2017-04-18 03:32:16 +08:00
|
|
|
# the COPYING file, which can be found at the root of the source code
|
|
|
|
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
|
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
2005-10-21 22:54:41 +08:00
|
|
|
|
|
|
|
|
1998-04-03 11:29:38 +08:00
|
|
|
# This file is part of the HDF5 build script. It is processed shortly
|
|
|
|
# after configure starts and defines, among other things, flags for
|
|
|
|
# the various compile modes.
|
1998-11-13 23:06:06 +08:00
|
|
|
#
|
|
|
|
# See BlankForm in this directory for details.
|
1997-08-16 00:40:24 +08:00
|
|
|
|
1999-03-05 04:22:42 +08:00
|
|
|
# The default compiler is `gcc'
|
|
|
|
if test "X-" = "X-$CC"; then
|
2003-07-29 05:38:04 +08:00
|
|
|
CC=gcc
|
|
|
|
CC_BASENAME=gcc
|
1999-03-05 04:22:42 +08:00
|
|
|
fi
|
|
|
|
|
2005-02-10 21:30:36 +08:00
|
|
|
# Figure out C compiler flags
|
|
|
|
. $srcdir/config/gnu-flags
|
|
|
|
|
|
|
|
# Figure out Intel C compiler flags
|
|
|
|
. $srcdir/config/intel-flags
|
|
|
|
|
|
|
|
# The default Fortran 90 compiler
|
[svn-r10158] Purpose:
Automake version upgrade
Description:
Upgraded automake version from 1.6.2 to 1.9.5.
Changed bin/reconfigure script to use automake 1.9.5.
Changed configure.in and Makefiles to use new FCFLAGS and FC variables
instead of FFLAGS and F9X.
Automake and configure should now do the lion's share of the work
supporting Fortran 9X; macros in acsite.m4 are now mostly unused (will
be cleaned later).
Altered how configure handles pmake; now root-level Makefile.in is
processed by bin/reconfigure to have a .MAKEFLAGS target, since
automake no longer allows us to define unused variables.
Configure now always checks for C++ compiler even if it is not
used, since automake thinks this is the Right Thing To Do and
will break otherwise.
Platforms tested:
Sol, copper, heping, mir, sleipnir, eirene, pommier, kelgia, modi4.
2005-03-08 01:57:27 +08:00
|
|
|
if test "X-" = "X-$FC"; then
|
2005-02-10 21:30:36 +08:00
|
|
|
case $CC_BASENAME in
|
|
|
|
gcc*|pgcc*)
|
2017-05-27 02:56:23 +08:00
|
|
|
FC=gfortran
|
|
|
|
FC_BASENAME=gfortran
|
2005-02-10 21:30:36 +08:00
|
|
|
;;
|
|
|
|
icc*)
|
[svn-r10158] Purpose:
Automake version upgrade
Description:
Upgraded automake version from 1.6.2 to 1.9.5.
Changed bin/reconfigure script to use automake 1.9.5.
Changed configure.in and Makefiles to use new FCFLAGS and FC variables
instead of FFLAGS and F9X.
Automake and configure should now do the lion's share of the work
supporting Fortran 9X; macros in acsite.m4 are now mostly unused (will
be cleaned later).
Altered how configure handles pmake; now root-level Makefile.in is
processed by bin/reconfigure to have a .MAKEFLAGS target, since
automake no longer allows us to define unused variables.
Configure now always checks for C++ compiler even if it is not
used, since automake thinks this is the Right Thing To Do and
will break otherwise.
Platforms tested:
Sol, copper, heping, mir, sleipnir, eirene, pommier, kelgia, modi4.
2005-03-08 01:57:27 +08:00
|
|
|
FC=ifort
|
|
|
|
FC_BASENAME=ifort
|
2005-02-10 21:30:36 +08:00
|
|
|
;;
|
|
|
|
mpicc*)
|
[svn-r10158] Purpose:
Automake version upgrade
Description:
Upgraded automake version from 1.6.2 to 1.9.5.
Changed bin/reconfigure script to use automake 1.9.5.
Changed configure.in and Makefiles to use new FCFLAGS and FC variables
instead of FFLAGS and F9X.
Automake and configure should now do the lion's share of the work
supporting Fortran 9X; macros in acsite.m4 are now mostly unused (will
be cleaned later).
Altered how configure handles pmake; now root-level Makefile.in is
processed by bin/reconfigure to have a .MAKEFLAGS target, since
automake no longer allows us to define unused variables.
Configure now always checks for C++ compiler even if it is not
used, since automake thinks this is the Right Thing To Do and
will break otherwise.
Platforms tested:
Sol, copper, heping, mir, sleipnir, eirene, pommier, kelgia, modi4.
2005-03-08 01:57:27 +08:00
|
|
|
FC=mpif90
|
|
|
|
FC_BASENAME=mpif90
|
2005-02-10 21:30:36 +08:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2004-12-17 10:27:41 +08:00
|
|
|
# Figure out FORTRAN compiler flags
|
|
|
|
. $srcdir/config/gnu-fflags
|
|
|
|
|
2005-02-10 21:30:36 +08:00
|
|
|
# Figure out Intel F90 compiler flags
|
|
|
|
. $srcdir/config/intel-fflags
|
|
|
|
|