From 7facc3b546ea4d2e9c21e995a7248b527f4c335b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 6 Oct 2016 09:10:26 +0200 Subject: ax_enable_builddir: require AC_CANONICAL_TARGET MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without AC_CANONICAL_TARGET, I get the following error when running ./configure: checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu mkdir: cannot create directory '': No such file or directory mkdir: cannot create directory '': No such file or directory ./configure: line 2470: /conftest.tmp: Permission denied configure: error: could not change to default builddir "./" With AC_CANONICAL_TARGET (either called explicitly in configure.ac, or required in AX_ENABLE_BUILDDIR), ./configure works as expected: checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu continue configure in default builddir "./x86_64-unknown-linux-gnu" ....exec /nix/store/nyj6xd7s1n1w8c0xdwk5ddhi7bjcyi9x-bash-4.3-p46/bin/bash .././configure "--srcdir=.." "--enable-builddir=x86_64-unknown-linux-gnu" "linux gnu" checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for gsed... sed […] --- m4/ax_enable_builddir.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/ax_enable_builddir.m4 b/m4/ax_enable_builddir.m4 index 17a74dd..5f4ba32 100644 --- a/m4/ax_enable_builddir.m4 +++ b/m4/ax_enable_builddir.m4 @@ -79,10 +79,11 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 24 +#serial 25 AC_DEFUN([AX_ENABLE_BUILDDIR],[ AC_REQUIRE([AC_CANONICAL_HOST])[]dnl +AC_REQUIRE([AC_CANONICAL_TARGET])[]dnl AC_REQUIRE([AX_CONFIGURE_ARGS])[]dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])[]dnl AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl -- cgit v1.2.1