From 13cce8ec45fd59bd8a1f1101a92576796cba97d2 Mon Sep 17 00:00:00 2001 From: LluĂ­s Batlle i Rossell Date: Thu, 11 Mar 2010 20:56:25 +0000 Subject: Making 'bin2c' to be built with the compiler for the local system. I copied the configure.ac code about CC_FOR_BUILD from libX11. --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 708e61968424..4c92bcb5c3ad 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,15 @@ fi AC_PROG_CC AC_PROG_CXX +# To build programs to be run in the build machine +if test "$CC_FOR_BUILD" = ""; then + if test "$cross_compiling" = "yes"; then + AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc) + else + CC_FOR_BUILD="$CC" + fi +fi +AC_SUBST([CC_FOR_BUILD]) # We are going to use libtool. AC_DISABLE_STATIC -- cgit 1.4.1