are built with warnings.
Also add compiler-specific flags (in this case, just the flags to enable
ANSI C compilation) to CFLAGS_FOR_BUILD.
svn path=/trunk/; revision=47479
# the saved value plus just the new option.
#
CFLAGS="$CFLAGS_saved $GCC_OPTION"
+ #
+ # Add it to the flags we use when building
+ # build tools.
+ #
+ CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"
if test "$2" != C ; then
#
# Add it to the C++ flags as well.
# the saved value plus just the new option.
#
CFLAGS="$CFLAGS_saved $GCC_OPTION"
+ #
+ # Add it to the flags we use when building
+ # build tools.
+ #
+ CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"
if test "$2" != C ; then
#
# Add it to the C++ flags as well.
CC_FOR_BUILD=$CC
fi
AC_SUBST(CC_FOR_BUILD)
+AC_SUBST(CFLAGS_FOR_BUILD)
# Check for doxygen
AC_PATH_PROG(DOXYGEN, doxygen)
# documentation I can find online.
#
CFLAGS="-Ae +O2 $CFLAGS"
+ CFLAGS_FOR_BUILD="-Ae +O2 $CFLAGS"
CXXFLAGS="+O2 $CFLAGS"
AC_MSG_RESULT(HP ANSI C compiler - added -Ae +O2)
;;