Hello, Alexandre!
> > This statement seems to contradict to the code. We are still trying to
> > capture the output in a variable and filter out pluses. But the comment
> > says that we "used to".
>
> We used to capture the output in a variable, but we wouldn't filter
> out pluses, which we do now (incorrectly).
The only shell I found that outputs pluses to conftest.out (not only to
config.log) is zsh (but not bash and ash, others untested):
CC="gcc -warn-me" zsh -x ./configure
will result in the following conftest.out:
+ gcc -warn-me -E conftest.c
gcc: unrecognized option `-warn-me'
However, grep-2.4.2 filters out the pluses, so
CC="gcc" zsh -x ./configure
decides to use "gcc -E", not "/lib/cpp", which is good.
If you still feel badly about that regular expression (P.S. I've seen
your last message, you have reasons for that), this patch should
pacify you:
==============
Index: ChangeLog
--- ChangeLog Wed Aug 23 17:49:07 2000
+++ ChangeLog Tue Aug 29 11:21:00 2000
@@ -0,0 +1,5 @@
+2000-08-29 Pavel Roskin <[EMAIL PROTECTED]>
+
+ * acgeneral.m4 (AC_TRY_CPP): Quote literal plus by square
+ brackets.
+
Index: acgeneral.m4
--- acgeneral.m4 Mon Aug 7 09:13:48 2000
+++ acgeneral.m4 Tue Aug 29 10:59:45 2000
@@ -3249,7 +3249,9 @@
AC_LANG_CONFTEST([AC_LANG_SOURCE([[$1]])])
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
AC_TRY_EVAL(ac_try)
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.$ac_ext\$"`
+changequote(, )dnl
+ac_err=`grep -v '^ *[+]' conftest.out | grep -v "^conftest.$ac_ext\$"`
+changequote([, ])dnl
if test -z "$ac_err"; then
m4_default([$2], :)
else
==============
Regards,
Pavel Roskin