diff options
author | John Tapsell <johnflux@gmail.com> | 2008-09-23 19:00:42 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2008-09-23 19:00:42 +0300 |
commit | 36e9f0d351afbf7fd2595990b2d39e7c551f6420 (patch) | |
tree | b66048ceb2bc62d7308d62b95b5663b9fbf64ed7 /configure.ac | |
parent | ace1676b0630dfe739c3bd712ed2b6e46bdb52f1 (diff) |
configure.ac: Use native compiler for build tools
makestrs is used during the build, so use the native compiler (either
gcc or cc in $PATH, can be overridden as $CC_FOR_BUILD) instead of the
(possibly cross-) compiler.
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 426e178..c576e98 100755 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,15 @@ AC_PROG_CC AC_PROG_LIBTOOL AM_PROG_CC_C_O +if test x"$CC_FOR_BUILD" = x; then + test x"$cross_compiling" = xyes; then + AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc) + else + CC_FOR_BUILD="$CC" + fi +fi +AC_SUBST([CC_FOR_BUILD]) + PKG_CHECK_MODULES(XT, sm x11 xproto kbproto) # Needed for including Xalloca.h |