newer autoreconf (autoconf) versions don't have the -M option and no replacement...
authorJens Thiele <jens.thiele@intra2net.com>
Wed, 14 Feb 2007 10:58:32 +0000 (10:58 +0000)
committerJens Thiele <jens.thiele@intra2net.com>
Wed, 14 Feb 2007 10:58:32 +0000 (10:58 +0000)
test-build-install-use

index db3e5d6..3c54205 100755 (executable)
@@ -28,7 +28,10 @@ function prepend() {
 }
 
 function build() {
-    autoreconf -f -i $@
+    # newer autoreconf (autoconf) versions don't have the -M option and no replacement :-(
+    # todo: this IMHO should be filed as bug against autoconf
+    # ugly workaround
+    autoreconf -f -i $@ || (autoreconf -f -i && aclocal $(echo "$@"|sed 's,-M,-I,'))
     ./configure --prefix="$INSTPREFIX"
     if $DOCLEAN; then
        $MAKE distclean