This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Fix makeinfo check in libiberty
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Oct 2003 09:41:11 -0700
- Subject: PATCH: Fix makeinfo check in libiberty
The toplevel Makefile sets MAKEINFO to missing if makeinfo is older
than 4.2. But libiberty does "$MAKEINFO --version | grep 'GNU texinfo",
which doesn't work as intended. This patch handles it.
H.J.
----
2003-10-01 H.J. Lu <hongjiu.lu@intel.com>
* configure.in: Check if $MAKEINFO is missing.
* configure: Regenerated.
--- libiberty/configure.in.makeinfo 2003-10-01 01:07:55.000000000 -0700
+++ libiberty/configure.in 2003-10-01 09:32:51.000000000 -0700
@@ -69,12 +69,21 @@ if test "x$MAKEINFO" = "x"; then
BUILD_INFO=
else
BUILD_INFO=info
- case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
- x*\ [[1-3]].* )
- MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
+ case "$MAKEINFO" in
+ */missing\ makeinfo*)
BUILD_INFO=
AC_MSG_WARN([
+*** Makeinfo is missing. Info documentation will not be built.])
+ ;;
+ *)
+ case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
+ x*\ [[1-3]].* )
+ MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
+ BUILD_INFO=
+ AC_MSG_WARN([
*** Makeinfo is too old. Info documentation will not be built.])
+ ;;
+ esac
;;
esac
fi