possible autoconf bug

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

 



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@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