2019-10-04 01:52:01 +08:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
|
|
|
# Copyright by The HDF Group.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
|
|
# the COPYING file, which can be found at the root of the source code
|
2021-02-17 22:52:36 +08:00
|
|
|
# distribution tree, or in https://www.hdfgroup.org/licenses.
|
2019-10-04 01:52:01 +08:00
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
|
|
|
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# See BlankForm in this directory for details.
|
|
|
|
|
|
|
|
# The default compiler is `gcc'
|
|
|
|
if test "X-" = "X-$CC"; then
|
|
|
|
CC=gcc
|
|
|
|
CC_BASENAME=gcc
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Figure out C compiler flags
|
|
|
|
. $srcdir/config/gnu-flags
|
|
|
|
|
2023-10-24 03:50:15 +08:00
|
|
|
# Figure out Intel oneAPI C compiler flags
|
|
|
|
. $srcdir/config/oneapi-flags
|
|
|
|
|
|
|
|
# Figure out Intel classic C compiler flags
|
2019-10-04 01:52:01 +08:00
|
|
|
. $srcdir/config/intel-flags
|
|
|
|
|
|
|
|
# The default Fortran 90 compiler
|
|
|
|
if test "X-" = "X-$FC"; then
|
|
|
|
case $CC_BASENAME in
|
|
|
|
gcc*|pgcc*)
|
|
|
|
FC=gfortran
|
|
|
|
FC_BASENAME=gfortran
|
|
|
|
;;
|
2023-10-24 03:50:15 +08:00
|
|
|
icx*)
|
|
|
|
FC=ifx
|
|
|
|
FC_BASENAME=ifx
|
|
|
|
;;
|
2019-10-04 01:52:01 +08:00
|
|
|
icc*)
|
|
|
|
FC=ifort
|
|
|
|
FC_BASENAME=ifort
|
|
|
|
;;
|
|
|
|
mpicc*)
|
|
|
|
FC=mpif90
|
|
|
|
FC_BASENAME=mpif90
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Figure out FORTRAN compiler flags
|
|
|
|
. $srcdir/config/gnu-fflags
|
|
|
|
|
2023-10-24 03:50:15 +08:00
|
|
|
# Figure out Intel oneAPI FC compiler flags
|
2019-10-04 01:52:01 +08:00
|
|
|
. $srcdir/config/intel-fflags
|
|
|
|
|
2023-10-24 03:50:15 +08:00
|
|
|
# Figure out Intel classic FC compiler flags
|
|
|
|
. $srcdir/config/oneapi-fflags
|