From ed7853d4991f17a5e6df694808d33603eecf9186 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 20 Jul 2009 19:37:27 +0100 Subject: [build] Use ${CC} as the default value for CC_FOR_BUILD --- build/configure.ac.tools | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build') diff --git a/build/configure.ac.tools b/build/configure.ac.tools index a24dbcec..fb085efd 100644 --- a/build/configure.ac.tools +++ b/build/configure.ac.tools @@ -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() -- cgit v1.2.3