mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
autogen.sh: don't update helpers unless there is a newer version
Updating the autoconf helpers unconditionally is very noisy and probably the wrong thing to do anyway. Check the version numbers and only update if the current machine has a newer version installed. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
f7dbdb2e13
commit
01a67a1ba4
@ -18,7 +18,14 @@ mkdir -p autoconf autoconf/helpers config
|
|||||||
autolib="`"$AUTOMAKE" --print-libdir`"
|
autolib="`"$AUTOMAKE" --print-libdir`"
|
||||||
if test ! x"$autolib" = x; then
|
if test ! x"$autolib" = x; then
|
||||||
for prg in install-sh compile config.guess config.sub; do
|
for prg in install-sh compile config.guess config.sub; do
|
||||||
if test -f "$autolib"/"$prg"; then
|
# Update autoconf helpers if and only if newer ones are available
|
||||||
|
if test -f "$autolib"/"$prg" && \
|
||||||
|
( test -f "$autolib"/"$prg" && \
|
||||||
|
sed -n -r -e \
|
||||||
|
's/^(scriptver(|sion)|timestamp)=['\''"]?([^'\''"]+).*$/\3/p' \
|
||||||
|
"$autolib"/"$prg" autoconf/helpers/"$prg" | \
|
||||||
|
sort --check=quiet; test $? -ne 0 )
|
||||||
|
then
|
||||||
cp -f "$autolib"/"$prg" autoconf/helpers
|
cp -f "$autolib"/"$prg" autoconf/helpers
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user