diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-04-20T09·20+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-04-20T09·20+0000 |
commit | d66ea83a763a36e7e7b9558b90abcfe09bec1b85 (patch) | |
tree | 6eaa7fc607da31c6ed3e221826cb1d6be43a6c9b /configure.ac | |
parent | f71ea9c911294ec72f52137175ad088a2f50ab97 (diff) | |
parent | aac5fcfbb54ff64c593d8919f7f52025415ea996 (diff) |
* Sync with the trunk.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index bc024c69c342..c10c562766c0 100644 --- a/configure.ac +++ b/configure.ac @@ -71,6 +71,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 |