Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 30 lines (23 sloc) 0.821 kb
5df8876 Tidied up build system a bit.
Matthew Hancher authored
1 #!/bin/sh
2
90068f7 @novas0x2a should have tested that better. stupid sort order.
novas0x2a authored
3 # Make an ASCII-comparible copy of a version number by zero-padding it
4 # 1.20.3.4 becomes 01200304
5 # It removes letters
6 ugly_version() {
7 echo $1 | tr . ' ' | tr -d -c '[0-9 ]' | xargs -n1 printf "%03i"
8 }
9
5247be3 @novas0x2a work around m4_include problems with ancient automake
novas0x2a authored
10 am_version=$(automake --version | head -n1 | cut -d ' ' -f 4)
90068f7 @novas0x2a should have tested that better. stupid sort order.
novas0x2a authored
11
6565265 @novas0x2a add autogen to dist, and improve the workaround.
novas0x2a authored
12 # It's actually fixed in 1.9.5b, but my version comparison strips the b
13 am_working=$(ugly_version "1.9.6")
90068f7 @novas0x2a should have tested that better. stupid sort order.
novas0x2a authored
14 am_v2=$(ugly_version "$am_version")
15
6565265 @novas0x2a add autogen to dist, and improve the workaround.
novas0x2a authored
16 if test "$am_v2" \< "$am_working" ; then
5247be3 @novas0x2a work around m4_include problems with ancient automake
novas0x2a authored
17 topdir="$(cd `dirname $0` && pwd)"
18
19 echo "WARNING: automake < 1.9.5b doesn't know how to handle relative"
20 echo "m4_include paths. Working around it."
21 echo
22 set -x
23 mkdir -p "$topdir/m4/m4"
24 ln -sf $topdir/m4/fixups.m4 $topdir/m4/m4/fixups.m4
25 set +x
26 echo
6632602 @novas0x2a some fixes to make this work on old autotools
novas0x2a authored
27 fi
28
5247be3 @novas0x2a work around m4_include problems with ancient automake
novas0x2a authored
29 autoreconf --force --verbose --install -I m4 -I thirdparty/m4
Something went wrong with that request. Please try again.