[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
possible autoconf bug
From: |
Matěj Týč |
Subject: |
possible autoconf bug |
Date: |
Tue, 24 Mar 2009 00:25:04 +0100 |
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...
- possible autoconf bug,
Matěj Týč <=