From a56c5aaddfb59d4f50fb0688e9b00b9fd8ba59eb Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 20 Dec 2020 22:49:20 +0100 Subject: [PATCH] configure.ac: Abort attempts to cross build in source --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index d98631fcfc..d68d1bf5f8 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,12 @@ dnl Checks for programs. AC_GNU_SOURCE AC_PROG_CC gl_EARLY +if test x"$cross_compiling" = x"yes"; then + if test x"$srcdir" = x"."; then + AC_ERROR([Cross compiling must be done out of source.]) + fi +fi + AM_PROG_CC_C_O AC_LIBTOOL_WIN32_DLL AC_LIBTOOL_DLOPEN -- 2.30.2