> * Davide Bolcioni wrote on Tue, Mar 07, 2006 at 09:16:06PM CET: > > > > this is my first post here and I was wonder what the proper use of > > AC_DEFAULT_INCLUDES is supposed to be Sheesh, there's a bug with AC_LANG_CONFTEST: this configure.ac AC_INIT AC_PROG_CC AC_LANG_CONFTEST([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [whatever])]) gcc -E -dD -o - conftest.c (similar to something given in the manual) will provoke failure: [...] | checking for gcc option to accept ISO C89... none needed | ./configure: line 2779: syntax error near unexpected token `done' | ./configure: line 2779: `done' OK to apply this fix? Cheers, Ralf * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are expanded outside. Index: lib/autoconf/lang.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/lang.m4,v retrieving revision 1.172 diff -u -r1.172 lang.m4 --- lib/autoconf/lang.m4 11 Jan 2006 08:10:50 -0000 1.172 +++ lib/autoconf/lang.m4 9 Mar 2006 10:33:27 -0000 @@ -210,7 +210,7 @@ # AC_LANG_CONFTEST(BODY) # ---------------------- # Save the BODY in `conftest.$ac_ext'. Add a trailing new line. -m4_define([AC_LANG_CONFTEST], +AC_DEFUN([AC_LANG_CONFTEST], [cat >conftest.$ac_ext <<_ACEOF $1 _ACEOF]) _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf