#                                                       -*- shell-script -*-
#
# 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.

if test -z "$CXX"; then
    CXX=aCC
    CXX_BASENAME=aCC
fi

case "$CXX" in
  aCC)
    # +Z for PIC, +A for using archived libraries
    CXXFLAGS="$CXXFLAGS +Z +A"
    CFLAGS="$CFLAGS -g +O2"
    DEBUG_CXXFLAGS=-g
    DEBUG_CPPFLAGS=
    PROD_CXXFLAGS="-O -s"
    PROD_CPPFLAGS=
    PROFILE_CPPFLAGS=
    ;;
  *)
    CXXFLAGS="$CXXFLAGS"
    CFLAGS="$CFLAGS"
    DEBUG_CXXFLAGS=-g
    DEBUG_CPPFLAGS=
    PROD_CXXFLAGS=
    PROD_CPPFLAGS=
    PROFILE_CPPFLAGS=
    ;;
esac
