abort if fatal error is received from peer
[strongswan.git] / autogen.sh
index 6c42d7d..5aae436 100755 (executable)
@@ -1,6 +1,20 @@
 #!/bin/sh
-libtoolize &&
-aclocal-1.9 &&
-automake-1.9 -a &&
+
+LIBTOOLIZE=`which glibtoolize 2>/dev/null`
+case "$LIBTOOLIZE" in
+       /* )    ;;
+       *  )    LIBTOOLIZE=`which libtoolize 2>/dev/null`
+               case "$LIBTOOLIZE" in
+                       /* )    ;;
+                       *  )    LIBTOOLIZE=libtoolize
+                               ;;
+               esac
+               ;;
+esac
+
+$LIBTOOLIZE --force &&
+aclocal &&
+autoheader &&
+automake -a &&
 autoconf