aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 9e6c77f..b70b65b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,11 +6,14 @@ AC_CONFIG_FILES([Makefile src/Makefile])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
+dnl Set build alias to `gcc -dumpmachine` if not set by user
if test x"$cross_compiling" != x"no"; then
HOST_PREFIX="${host_alias}-"
HOST_SUFFIX="-$host_alias"
if test x"${build_alias}" = x; then
- AC_MSG_ERROR([Cross compile enabled but no --build *explicitly* specified. For example: --build=$(gcc -dumpmachine)])
+ AC_MSG_WARN([Cross compile enabled but no --build *explicitly* specified. Using default --build=$(gcc -dumpmachine)])
+ build="$(gcc -dumpmachine)"
+ build_alias="$(gcc -dumpmachine)"
fi
else
HOST_PREFIX=
@@ -91,8 +94,8 @@ fi
AC_ARG_VAR(WINDRES, [Windows resource compiler command])
-ut_cflags=""
-ut_libs=""
+ut_cflags="${CFLAGS}"
+ut_libs="${LIBS}"
PROGRAM_EXT=
windres=
case "${host}" in