newer automake versions define a seperate additional variable DEFAULT_INCLUDES =...
[libt2n] / test-build-install-use
index 2d281a4..2ab016c 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 --force $(echo "$@"|sed 's,-M,-I,'))
     ./configure --prefix="$INSTPREFIX"
     if $DOCLEAN; then
        $MAKE distclean
@@ -41,8 +44,6 @@ function build() {
        $MAKE
        $MAKE clean
        $MAKE distcheck
-    else
-       $MAKE dist
     fi
 
     $MAKE install