summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-10-10 09:13:58 +0200
committerJim Meyering <meyering@redhat.com>2008-10-10 09:13:58 +0200
commit0f5695bd59a5d4786700630fc94a06ef074c1c30 (patch)
treed532ff4d9516cec645dcafca8ee7cf434bac8ad5
parent42df6d7de2820e67422ca97b4a8708b3aa38f28f (diff)
downloadcoreutils-0f5695bd59a5d4786700630fc94a06ef074c1c30.tar.xz
bootstrap: merge from gnulib
-rwxr-xr-xbootstrap15
1 files changed, 12 insertions, 3 deletions
diff --git a/bootstrap b/bootstrap
index 438a1452f..0895eb730 100755
--- a/bootstrap
+++ b/bootstrap
@@ -262,7 +262,8 @@ case ${GNULIB_SRCDIR--} in
trap cleanup_gnulib 1 2 13 15
- git clone --depth 2 git://git.sv.gnu.org/gnulib ||
+ git clone --help|grep depth > /dev/null && depth='--depth 2' || depth=
+ git clone $depth git://git.sv.gnu.org/gnulib ||
cleanup_gnulib
trap - 1 2 13 15
@@ -598,8 +599,16 @@ for command in \
'automake --add-missing --copy --force-missing';
do
if test "$command" = libtool; then
- grep '^[ ]*AM_PROG_LIBTOOL\>' configure.ac >/dev/null ||
- continue
+ use_libtool=0
+ # We'd like to use grep -E, to see if any of LT_INIT,
+ # AC_PROG_LIBTOOL, AM_PROG_LIBTOOL is used in configure.ac,
+ # but that's not portable enough (e.g., for Solaris).
+ grep '^[ ]*A[CM]_PROG_LIBTOOL' configure.ac >/dev/null \
+ && use_libtool=1
+ grep '^[ ]*LT_INIT' configure.ac >/dev/null \
+ && use_libtool=1
+ test $use_libtool = 0 \
+ && continue
command='libtoolize -c -f'
fi
echo "$0: $command ..."