-GCC_VERSION=none
-if test "$GCC" = yes ; then
- AC_MSG_CHECKING(version of gcc)
- GCC_VERSION="`${CC} --version|head -1`"
- AC_MSG_RESULT($GCC_VERSION)
-fi
-
-# If we're cross-compiling, allow the user to override the tools and their
-# options. The configure script is oriented toward identifying the target
-# compiler, etc., but we need a host compiler to generate parts of the source.
-BUILD_CC='$(CC)'
-BUILD_CFLAGS='$(CFLAGS)'
-BUILD_CPPFLAGS='$(CPPFLAGS)'
-BUILD_LDFLAGS='$(LDFLAGS)'
-BUILD_LIBS='$(LIBS)'
-if test "$host_alias" != "$target_alias" ; then
- AC_ARG_WITH(build-cc,
- [ --with-build-cc=XXX if cross-compiling, the host C compiler (\$BUILD_CC)],
- [BUILD_CC="$withval"],
- [AC_CHECK_PROGS(BUILD_CC, $CC gcc cc)])
- AC_ARG_WITH(build-cflags,
- [ --with-build-cflags=XXX if cross-compiling, the host C compiler-flags],
- [BUILD_CFLAGS="$withval"])
- AC_ARG_WITH(build-cppflags,
- [ --with-build-cppflags=XXX if cross-compiling, the host C preprocessor-flags],
- [BUILD_CPPFLAGS="$withval"])
- AC_ARG_WITH(build-ldflags,
- [ --with-build-ldflags=XXX if cross-compiling, the host linker-flags],
- [BUILD_LDFLAGS="$withval"])
- AC_ARG_WITH(build-libs,
- [ --with-build-libs=XXX if cross-compiling, the host libraries],
- [BUILD_LIBS="$withval"])
-fi
-AC_SUBST(BUILD_CC)
-AC_SUBST(BUILD_CFLAGS)
-AC_SUBST(BUILD_CPPFLAGS)
-AC_SUBST(BUILD_LDFLAGS)
-AC_SUBST(BUILD_LIBS)