From: John Darrington Date: Sun, 20 Dec 2020 21:49:20 +0000 (+0100) Subject: configure.ac: Abort attempts to cross build in source X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a56c5aaddfb59d4f50fb0688e9b00b9fd8ba59eb;p=pspp configure.ac: Abort attempts to cross build in source --- 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