Hello, Akim!

> The problem is a missing space before the ; IMHO.  Could you try if it
> fixes the problem and adjust Autoconf?

It doesn't help. Both bash 1.14.7 and bash 2.03 don't like stray
semicolons, either preceded by spaces or not. Ash 0.2 and zsh 3.0.7 don't
notice them.

A colon would help, but it doesn't belong here.

The best solution would be not to add a newline at the end of
AC_MSG_ERROR. Autoconf-2.13 did not add it:

if true; then
 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
fi

so it should be reasonably safe.

In fact, the final "dnl" in AS_ERROR disappeared very recently (two days
ago!), in the revision 1.19 of m4sh.m4:

 # AS_ERROR(ERROR, [EXIT-STATUS = 1])
 # ----------------------------------
 m4_define([AS_ERROR],
-[{m4_ifset([AC_LOG_FD],
-           [_AS_ECHO([$as_me:__oline__: error: $1], [AS_MESSAGE_LOG_FD])
-])[]dnl
-  _AS_ECHO([$as_me: error: $1], 2)
-  AS_EXIT([$2]); }[]dnl
+[{ AS_MESSAGE([error: $1], [2])
+   AS_EXIT([$2]); }
 ])# AS_ERROR

with the log message:

revision 1.19
date: 2000/12/12 10:53:41;  author: akim;  state: Exp;  lines: +8 -15
AS_ERROR was not properly saving data in the log file.
* sh.m4 (AS_WARN, AS_ERROR): Use AS_MESSAGE.
(_AS_ECHO): Fix quotation.
(AS_MESSAGE): Use `as_me'.
* acgeneral.m4: More banners in the log.
(_AC_INIT_DEFAULTS): Compute as_me before using it.

I assume that the removal of dnl was unintentional, so I'm reverting it.
The patch goes to [EMAIL PROTECTED]

Regards,
Pavel Roskin


Reply via email to