Hello, I have found out that having this in configure.ac is a problem:

AC_DEFUN([foo],
         [echo "#" ])

autoreconf ends with an error. The error always looks like this:
configure.ac:5: error: m4_init: unbalanced m4_divert_push:
configure.ac:5: m4_divert_push: BODY
<context dependent and confusing error message>
../../lib/autoconf/c.m4:1561: AC_C_INLINE is expanded from...
</context dependent and confusing error message>
configure.ac:5: the top level
autom4te: /usr/bin/m4 failed with exit status: 1

(There is nice AC_INIT on line 5)

However, this is OK:

AC_DEFUN([foo],
         [echo "#" dnl
          ])

This is not nice since for instance
AC_DEFUN([foo],
         [echo "#define foo" > $somwhere ]) 
fails as well...





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

Reply via email to