confdefs.h not being included by AC_LANG_SOURCE()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux