Code

Sync with gnulib - lots of extraneous code removed in preference to GNU code
[nagiosplug.git] / tools / setup
index 084399b03fba07ce0083995f560331e83c690eb0..7fdb980da6ba05d10c8680c275f89bd9d8fec4d7 100755 (executable)
@@ -18,18 +18,16 @@ else
        echo Found GNU Make at $MAKE ... good.
 fi
 
-# Refresh GNU autotools toolchain.
-for i in config.guess config.sub missing install-sh mkinstalldirs ; do
-       test -r /usr/share/automake/${i} && {
-               rm -f ${i}
-               cp /usr/share/automake/${i} .
-       }
-       chmod 755 ${i}
-done
+# This bit is to fix SF's compile server as libtool not installed by default
+extra=""
+if test -d $HOME/share/aclocal ; then
+       extra="-I $HOME/share/aclocal"
+fi
 
-aclocal -I lib
+aclocal -I gl/m4 -I m4 $extra
+#libtoolize --force --copy
 autoheader
-automake --add-missing --copy
+automake --add-missing --force-missing --copy
 autoconf
 
 if [ -f debian/rules ] ; then
@@ -43,7 +41,7 @@ if [ `uname -s` = "SunOS" ] ; then
                docbook=1
        fi
 else
-       if which docbook2html ; then
+       if which docbook2html >/dev/null 2>&1; then
                docbook=1
        fi
 fi