diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-01 00:35:06 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-01 01:06:19 +0200 |
commit | da933e0ff8a63943a1f738c7172a9c7ede972849 (patch) | |
tree | 3b97fa58a6edd3549a498796ad54dd1ce8c3816f | |
parent | fd9e16ce97603d2dbc692ebc6e6f27b966ceca25 (diff) |
build: be robust against install-sh files above the root dir
Explicitly set AC_CONFIG_AUX_DIR.
To reproduce the error avoided by this patch:
rm install-sh # in case it was already generated.
touch ../install-sh # yes, outside this source tree
autoreconf -fi
This will produce an error like
...
configure.ac:16: error: required file '../ltmain.sh' not found
configure.ac:5: installing '../missing'
src/Makefile.am: installing '../depcomp'
autoreconf: automake failed with exit status: 1
See also automake (vim `which automake`) and look for 'sub locate_aux_dir'.
Change-Id: Ie9a10f14c5e8c5e9b6ea4910b4b9abb7e70f5e04
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d8fe7190..e1a23c02 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,9 @@ AC_INIT([osmo-pcu], m4_esyscmd([./git-version-gen .tarball-version]), [osmocom-net-gprs@lists.osmocom.org]) +dnl *This* is the root dir, even if an install-sh exists in ../ or ../../ +AC_CONFIG_AUX_DIR([.]) + AM_INIT_AUTOMAKE([dist-bzip2]) AC_CONFIG_TESTDIR(tests) |