some workarounds for newer automake
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@70 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index 1c77f23..68e5311 100644
--- a/configure.in
+++ b/configure.in
@@ -18,12 +18,15 @@
AC_MSG_ERROR([Valgrind relies on GCC to be compiled])
fi
+# some older automake's don't have it so try something on our own
+ifdef([AM_PROG_AS],[AM_PROG_AS],
+[
AS="${CC}"
AC_SUBST(AS)
ASFLAGS=""
AC_SUBST(ASFLAGS)
-
+])
# This variable will collect the individual suppression files
# depending on the results of autoconf