summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:46 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:46 +0100
commitecaaf250cb33ff61f37a7b441f2337584a655350 (patch)
tree4303648095deff998ae20c2393b56db527742ac9 /autogen.sh
parent5793a221e112fa49073de0137d6bfa750a61b0a1 (diff)
parent351b7328520c16730ceb46e5acae16038c42185e (diff)
Update upstream source from tag 'upstream/1.0.32'
Update to upstream version '1.0.32' with Debian dir 2c1111c59d9d68bcbf479a4a4de7697fe2de127f
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh26
1 files changed, 24 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 86bc40a..14febbb 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,9 +2,31 @@
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
+patchdir="$srcdir/patches"
+
+# Suppress warnings about obsolete macros if still needed (#122)
+ac_dir=$(aclocal --print-ac-dir)
+if test -r "$ac_dir/ax_create_stdint_h.m4"; then
+ serial=$(awk '/#serial/{ print $2 }' "$ac_dir/ax_create_stdint_h.m4")
+ if test "$serial" -lt 21; then
+ m4_dir=$(cd $srcdir; autoconf -t 'AC_CONFIG_MACRO_DIR:$%')
+ target="$srcdir/$m4_dir/ax_create_stdint_h.m4"
+ echo "Copying file to $target"
+ cp "$ac_dir/ax_create_stdint_h.m4" "$srcdir/$m4_dir"
+ if test "$serial" -lt 20; then
+ echo "patching file $target to #serial 20"
+ patch --quiet $target \
+ "$patchdir/ax_create_stdint_h.19-20.m4.patch"
+ fi
+ echo "patching file $target to #serial 21"
+ patch --quiet "$target" \
+ "$patchdir/ax_create_stdint_h.20-21.m4.patch"
+ fi
+fi
+
autoreconf --force --install --verbose --warnings=all "$srcdir"
-patch "$srcdir/ltmain.sh" "$srcdir/ltmain.sh.patch"
-patch "$srcdir/po/Rules-quot" "$srcdir/Rules-quot.patch"
+patch "$srcdir/ltmain.sh" "$patchdir/ltmain.sh.patch"
+patch "$srcdir/po/Rules-quot" "$patchdir/Rules-quot.patch"
autoreconf "$srcdir"
# Taken from https://gitlab.com/utsushi/utsushi/blob/master/bootstrap