Hi all, I am finding that the use of AC_LANG_SOURCE() is having different results on autoconf 2.64 vs. 2.59. On 2.59 it seems to have been including confdefs.h into generate programs but in 2.64 this seems to no longer be the case.
To illustrate more clearly, on 2.59:
[AC_LANG_SOURCE([LB_LANG_PROGRAM([[$1]], [[$2]])])],
produces:
cat >conftest.c <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
[my program]
and on 2.64 it produces:
cat >conftest.c <<_ACEOF
[my program]
FWIW, LB_LANG_PROGRAM() is simply:
# LB_LANG_PROGRAM(C)([PROLOGUE], [BODY])
# --------------------------------------
m4_define([LB_LANG_PROGRAM],
[$1
int
main (void)
{
dnl Do *not* indent the following line: there may be CPP directives.
dnl Don't move the `;' right after for the same reason.
$2
;
return 0;
}])
Is this a known regression/change between these two versions?
Cheers,
b.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Autoconf mailing list [email protected] http://lists.gnu.org/mailman/listinfo/autoconf
