diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a986200..2441c63 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl $Id$ AC_INIT(dash, 0.5.2) -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE([foreign]) AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_HEADERS(config.h) @@ -10,6 +10,15 @@ AC_PROG_CC AC_GNU_SOURCE AC_PROG_YACC +AC_MSG_CHECKING([for build system compiler]) +if test "$cross_compiling" = yes; then + CC_FOR_BUILD=${CC_FOR_BUILD-cc} +else + CC_FOR_BUILD=${CC} +fi +AC_MSG_RESULT(${CC_FOR_BUILD}) +AC_SUBST(CC_FOR_BUILD) + dnl Checks for libraries. dnl Checks for header files. |