Test for the existence of ECHO in the FTGL configure script, courtesy of Bzflag's developer blast007.
diff --git a/configure.ac b/configure.ac
index fa7f0f8..c1f015a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,14 @@ AC_SUBST(LT_MICRO)
LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO"
AC_SUBST(LT_VERSION)
+# make sure ECHO and ECHO_N got defined and substituted
+if test "x$ECHO" = "x" ; then
+ ECHO=echo
+ AC_MSG_NOTICE([ECHO was not defined by configure so defining manually])
+fi
+AC_SUBST(ECHO)
+AC_SUBST(ECHO_N)
+
AC_PROG_LIBTOOL
AC_PROG_INSTALL