Skip to content

Commit

Permalink
Merge branch 'HDFGroup:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Jun 27, 2023
2 parents 3e27445 + 474c584 commit 0bb4a86
Showing 1 changed file with 2 additions and 149 deletions.
151 changes: 2 additions & 149 deletions config/powerpc64-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -4,153 +4,6 @@
# after configure starts and defines, among other things, flags for
# the various compilation modes.

# Choosing C and Fortran Compilers
# --------------------------------------
#
# The user should be able to specify the compiler by setting the CC
# and F77 environment variables to the name of the compiler and any
# switches it requires for proper operation. If CC is unset then this
# script may set it. If CC is unset by time this script completes then
# configure will try `gcc' and `cc' in that order (perhaps some others
# too).
#
# Note: Code later in this file may depend on the value of $CC_BASENAME
# in order to distinguish between different compilers when
# deciding which compiler command-line switches to use. This
# variable is set based on the incoming value of $CC and is only
# used within this file.

if test "X-$CC" = "X-"; then
CC=gcc
CC_BASENAME=gcc
fi

if test "X-$F77" = "X-"; then
F77=gfortran
F77_BASENAME=gfortran
fi


# compiler version strings
case $CC in

*gcc*)
cc_version_info=`$CC $CFLAGS $H4_CFLAGS --version 2>&1 | grep -v 'PathScale' |\
grep 'GCC' | sed 's/\(.*(GCC) [-a-z0-9\. ]*\).*/\1/'`
;;

*)
echo "No match to get cc_version_info for $CC"
;;
esac

# get fortran version info
case $F77 in
*gfortran*)
fc_version_info=`$F77 $FFLAGS --version 2>&1 |\
grep 'GCC' | sed 's/\(.*(GCC) [-a-z0-9\. ]*\).*/\1/'`
;;

*)
echo "No match to get fc_version_info for $F77"
;;
esac


# C and Fortran Compiler and Preprocessor Flags
# ---------------------------------------------------
#
# - Flags that end with `_CFLAGS' are always passed to the C compiler.
# - Flags that end with `_FFLAGS' are always passed to the Fortran
# compiler.
# - Flags that end with `_CPPFLAGS' are passed to the C compiler
# when compiling but not when linking.
#
# DEBUG_CFLAGS
# DEBUG_FFLAGS
# DEBUG_CPPFLAGS - Flags to pass to the compiler to create a
# library suitable for use with debugging
# tools. Usually this list will exclude
# optimization switches (like `-O') and include
# switches that turn on symbolic debugging support
# (like `-g').
#
# PROD_CFLAGS
# PROD_FFLAGS
# PROD_CPPFLAGS - Flags to pass to the compiler to create a
# production version of the library. These
# usually exclude symbolic debugging switches (like
# `-g') and include optimization switches (like
# `-O').
#
# PROFILE_CFLAGS
# PROFILE_FFLAGS
# PROFILE_CPPFLAGS- Flags to pass to the compiler to create a
# library suitable for performance testing (like
# `-pg'). This may or may not include debugging or
# production flags.
#
# FFLAGS
# CFLAGS - Flags can be added to these variable which
# might already be partially initialized. These
# flags will always be passed to the compiler and
# should include switches to turn on full warnings.
#
# WARNING: flags do not have to be added to the CFLAGS
# or FFLAGS variable if the compiler is the GNU gcc
# and gfortran compiler.
#
# FFLAGS and CFLAGS should contain *something* or else
# configure will probably add `-g'. For most systems
# this isn't a problem but some systems will disable
# optimizations in favor of the `-g'. The configure
# script will remove the `-g' flag in production mode
# only.
#
# These flags should be set according to the compiler being used.
# There are two ways to check the compiler. You can try using `-v' or
# `--version' to see if the compiler will print a version string. You
# can use the value of $FOO_BASENAME which is the base name of the
# first word in $FOO, where FOO is either CC or F77 (note that the
# value of CC may have changed above).

case $CC_BASENAME in
gcc)
if test $cc_vers_major -ge 10; then
CFLAGS="$CFLAGS -Wno-error=implicit-function-declaration"
else
CFLAGS="$CFLAGS"
fi
DEBUG_CFLAGS="-g -fverbose-asm"
DEBUG_CPPFLAGS=
PROD_CFLAGS="-O2 -fomit-frame-pointer"
PROD_CPPFLAGS=
PROFILE_CFLAGS="-pg"
PROFILE_CPPFLAGS=
;;

*)
CFLAGS="$CFLAGS"
DEBUG_CFLAGS="-g"
DEBUG_CPPFLAGS=
PROD_CFLAGS="-O"
PROD_CPPFLAGS=
PROFILE_CFLAGS="-pg"
PROFILE_CPPFLAGS=
;;
esac

case $F77_BASENAME in
gfortran)
if test $fc_vers_major -ge 10; then
FFLAGS="$FFLAGS -fallow-argument-mismatch"
else
FFLAGS="$FFLAGS"
fi
DEBUG_FFLAGS="-g"
PROD_FFLAGS="-O"
PROFILE_FFLAGS="-pg"
;;

esac
# This is the same as linux-gnu

. $srcdir/config/linux-gnu

0 comments on commit 0bb4a86

Please sign in to comment.