simple example:
$ cat configure.ac
AC_INIT
AS_IF([:], [
: some random user stuff
],[
AC_PROG_LEX
AC_DECL_YYTEXT
])
AC_OUTPUT
$ autoconf --version
autoconf (GNU Autoconf) 2.64
$ autoconf&& ./configure -q
./configure: line 2676: syntax error near unexpected token `fi'
./configure: line 2676: `fi'
-mike
This is a different issue. AS_IF strips leading and trailing blanks,
but works on its unexpanded argument. It's probably something Eric
could fix with his m4-fu in m4_if{,n}blank.
Minimized testcase:
echo 'm4_init[]m4_divert(0)[]m4_define([a], [])m4_ifblank([ a ],
[blank])' | m4 m4sugar/m4sugar.m4 -
Paolo
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf