summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Krell <jay.krell@cornell.edu>2018-05-01 08:46:02 -0700
committerIvan Maidanski <ivmai@mail.ru>2018-08-15 22:06:19 +0300
commit8082d31d8b8d7b918d0931258461c9a7be3fa19a (patch)
treed37a7560df23e12bd1a7d01654d3a9020278124b
parent327d40623e20a527585ff7bc1639f28ca629c811 (diff)
downloadbdwgc-8082d31d8b8d7b918d0931258461c9a7be3fa19a.tar.gz
Have automake copy instead of symlink, for more git checkout sharability (#8534)
* Make autogen.sh output accurate -- print actual commands run. * Have automake copy instead of symlink. - This sounds analogous to libtool --copy that we do. - It enables sharing a source tree more broadly. For real example, Cygwin symlinks are not portable to Windows Subsystem For Linux, and probably vice versa. For real example, Homebrew symlinks are not portable to Linux in Docker. Downside I notice is that ls -l is less informative as to what is from git vs. a symlink to outside. git clean -xxddff works just as well either way. Hypothetical downside is that updating automake/autoconf doesn't upgrade the copies. This has never mattered to me, but it might matter. It might be viewed as an advantage.
-rwxr-xr-xautogen.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 65e1f25f..3bc6e781 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -74,12 +74,13 @@ if test x$NOCONFIGURE = x && test -z "$*"; then
echo
fi
+am_opt="--add-missing --copy --gnu -Wno-obsolete"
+
case $CC in
xlc )
- am_opt=--include-deps;;
+ am_opt="$am_opt --include-deps";;
esac
-
if grep "^AC_PROG_LIBTOOL" configure.ac >/dev/null; then
if test -z "$NO_LIBTOOLIZE" ; then
echo "Running libtoolize..."
@@ -104,8 +105,8 @@ if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi
-echo "Running automake --gnu $am_opt ..."
-automake --add-missing --gnu -Wno-obsolete $am_opt ||
+echo "Running automake $am_opt ..."
+automake $am_opt ||
{ echo "**Error**: automake failed."; exit 1; }
echo "Running autoconf ..."
autoconf || { echo "**Error**: autoconf failed."; exit 1; }