Commit afa089b58cf93223f42a443e882df33a3c92daef

sammy 2009-07-19T15:08:31

Test for the existence of ECHO in the FTGL configure script, courtesy of Bzflag's developer blast007.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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