X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=autogen.sh;h=09e5a70431092dd7cd78e764884a352b2977c883;hp=55a27a957af6ab4f86e6c46323316040a4076a91;hb=refs%2Fheads%2FPOKEY;hpb=94921d6e57e01b378ab8b1d8ea9cf3da9511fbef diff --git a/autogen.sh b/autogen.sh index 55a27a95..09e5a704 100644 --- a/autogen.sh +++ b/autogen.sh @@ -4,7 +4,12 @@ DIE=0 -srcdir="`pwd`" +if ${MAKE:-gmake} -q -C . autogen.sh 2> /dev/null +then + alias make=${MAKE:-gmake} +fi + +srcdir="`/bin/pwd`" (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo @@ -102,6 +107,7 @@ do ## echo "**Warning**: No such directory \`$k'. Ignored." fi done + touch ChangeLog if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then if grep "sed.*POTFILES" configure.in >/dev/null; then : do nothing -- we still have an old unmodified configure.in @@ -144,6 +150,7 @@ conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c if test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... + rm -f config.status config.cache $srcdir/configure $conf_flags "$@" \ && echo Now type \`make\' to compile $PKG_NAME || exit 1 else