[build] Use ${CC} as the default value for CC_FOR_BUILD

This commit is contained in:
Chris Wilson 2009-07-20 19:37:27 +01:00
parent 809f77a5cb
commit ed7853d499

View file

@ -8,6 +8,13 @@ AC_PROG_CXX dnl required for BeOS (and cannot be a conditional dependency)
AM_PROG_CC_C_O
AC_C_INLINE
# Set reasonable defaults for the tools in case we are cross-compiling
if test "${build}" != "${host}" ; then
CC_FOR_BUILD=${CC_FOR_BUILD-cc}
else
CC_FOR_BUILD=${CC}
fi
dnl ===========================================================================
PKG_PROG_PKG_CONFIG()