3
# The standard check for whether we are cross compiling is not sufficient.
4
# We know certain platforms are only cross compiled. Make the fix here.
5
# This could be expanded later to avoid using GA_TARGET and instead perform
6
# a more rigorous cross compiling test case.
7
AC_DEFUN([GA_CROSS_COMPILING], [
8
AC_REQUIRE([GA_TARGET])
9
AC_CACHE_CHECK([whether we are cross compiling],
10
[ga_cv_cross_compiling],
11
[AS_IF([test "x$ga_cv_target_base" = xBGP], [cross_compiling=yes])
12
ga_cv_cross_compiling=$cross_compiling])
13
AM_CONDITIONAL([CROSS_COMPILING], [test "x$cross_compiling" = xyes])