autogen.sh revision 6b15695578f07a3f72c4c9475c1a261a3021472a
# friends that are needed to configure a cvs checkout. As described in
# the file HACKING you need a couple of extra tools to run this script
# successfully.
#
# If you are compiling from a released tarball you don't need these
# tools and you shouldn't use this script. Just call ./configure
# directly.
PROJECT="Inkscape"
TEST_TYPE=-f
ORIGDIR=`pwd`
cd $srcdir
{
echo "yes (version $1)"
else
echo "Too old (found version $1)!"
DIE=1
fi
}
IGNORE=$1
shift
echo "Running $@ ..."
errcode=$?
else
fi
fi
echo "Please fix the error conditions and try again."
exit 1
fi
}
echo
echo "I am testing that you have the required versions of libtool, autoconf,"
echo "automake, glib-gettextize and intltoolize. This test is not foolproof and"
echo "if anything goes wrong, there may be guidance in the file HACKING.txt"
echo
DIE=0
echo -n "checking for autoconf >= $AUTOCONF_REQUIRED_VERSION ... "
else
echo
echo " You must have autoconf installed to compile $PROJECT."
echo " Download the appropriate package for your distribution,"
echo " or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1;
fi
echo -n "checking for automake >= $AUTOMAKE_REQUIRED_VERSION ... "
# Prefer earlier versions just so that the earliest supported version gets test coverage by developers.
# Leave unversioned automake for a last resort: it may be a version earlier
# than what we require.
# (In particular, it might mean automake 1.4: that version didn't default to
# installing a versioned name.)
else
echo
echo " You must have automake 1.7 or newer installed to compile $PROJECT."
echo " (or a newer version of 1.8 if it is available; note that 1.9 is buggy)"
DIE=1
fi
if test x$AUTOMAKE != x; then
# Exclude automake 1.9.[0-6]
echo
echo " You must have automake less than 1.9.0 or newer than 1.9.6"
echo " (or a newer version of 1.8 if it is available)"
DIE=1
fi
fi
echo -n "checking for glib-gettextize >= $GLIB_REQUIRED_VERSION ... "
VER=`glib-gettextize --version \
else
echo
echo " You must have glib-gettextize installed to compile $PROJECT."
echo " glib-gettextize is part of glib-2.0, so you should already"
echo " have it. Make sure it is in your PATH."
DIE=1
fi
echo -n "checking for intltool >= $INTLTOOL_REQUIRED_VERSION ... "
VER=`intltoolize --version \
else
echo
echo " You must have intltool installed to compile $PROJECT."
echo " Get the latest version from"
DIE=1
fi
echo
echo
exit 1
fi
echo
echo "You must run this script in the top-level $PROJECT directory."
echo
exit 1
}
if test -z "$ACLOCAL_FLAGS"; then
do
echo
echo "WARNING: aclocal's directory is $acdir, but..."
echo " You may see fatal macro warnings below."
echo
fi
done
fi
echo ""
attempt_command 'underquoted definition of|[\)\#]Extending' \
# optionally feature autoheader
}
attempt_command '^(Please add the files| codeset| progtest|from the|or directly|You will also|ftp://ftp.gnu.org|$)' \
echo ""
echo "Done! Please run './configure' now."
cd $ORIGDIR