[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: acinclude.m4 leaves unexpanded macro
From: |
Ben Pfaff |
Subject: |
Re: acinclude.m4 leaves unexpanded macro |
Date: |
Wed, 16 Jul 2008 10:19:23 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Jason Stover <address@hidden> writes:
> Ben, your commit of acinclude.m4 left AS_ECHO unexpanded in configure
> on my machine:
John Darrington <address@hidden> writes:
> I get the same symptoms.
Apologies. Would you two mind trying out the following patch? I
believe that it should fix the problem.
commit b9bcafa33dd29ddf22de47e42c5e8cac4a75d0e9
Author: Ben Pfaff <address@hidden>
Date: Wed Jul 16 10:18:35 2008 -0700
Make PSPP_LINK2_IFELSE macro work with Autoconf earlier than 2.62.
diff --git a/acinclude.m4 b/acinclude.m4
index 10ea269..11154ee 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -223,7 +223,7 @@ mv conftest.$ac_ext conftest1.$ac_ext
m4_ifvaln([$2], [AC_LANG_CONFTEST([$2])])dnl
mv conftest.$ac_ext conftest2.$ac_ext
rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
-pspp_link2='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS
conftest1.$ac_ext conftest2.$ac_ext $LIBS >&AS_MESSAGE_LOG_FD'
+pspp_link2='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS
conftest1.$ac_ext conftest2.$ac_ext $LIBS >&5'
AS_IF([_AC_DO_STDERR($pspp_link2) && {
test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" ||
test ! -s conftest.err
@@ -232,10 +232,10 @@ AS_IF([_AC_DO_STDERR($pspp_link2) && {
AS_TEST_X([conftest$ac_exeext])
}],
[$3],
- [AS_ECHO(["$as_me: failed source file 1 of 2 was:"]) >&AS_MESSAGE_LOG_FD
-sed 's/^/| /' conftest1.$ac_ext >&AS_MESSAGE_LOG_FD
-AS_ECHO(["$as_me: failed source file 2 of 2 was:"]) >&AS_MESSAGE_LOG_FD
-sed 's/^/| /' conftest2.$ac_ext >&AS_MESSAGE_LOG_FD
+ [echo "$as_me: failed source file 1 of 2 was:" >&5
+sed 's/^/| /' conftest1.$ac_ext >&5
+echo "$as_me: failed source file 2 of 2 was:" >&5
+sed 's/^/| /' conftest2.$ac_ext >&5
$4])
dnl Delete also the IPA/IPO (Inter Procedural Analysis/Optimization)
dnl information created by the PGI compiler (conftest_ipa8_conftest.oo),
--
"Unix... is not so much a product
as it is a painstakingly compiled oral history
of the hacker subculture."
--Neal Stephenson