* Basile STARYNKEVITCH wrote on Wed, Mar 12, 2008 at 07:57:33AM CET: > So I tried to add to gcc/configure.ac the following lines (which exist > in libmudflap/configure.ac) > > AC_LIBTOOL_DLOPEN > AM_PROG_LIBTOOL > AC_SUBST(enable_shared) > AC_SUBST(enable_static) > > and it does not work: > > (cd /usr/src/Lang/basile-melt-gcc/gcc && autoconf) > configure.ac:434: error: possibly undefined macro: AC_LIBTOOL_DLOPEN > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > configure.ac:435: error: possibly undefined macro: AM_PROG_LIBTOOL > (cd /usr/src/Lang/basile-melt-gcc/gcc && autoheader)
You would need to run aclocal -I .. -I ../config first. But really it'd be better if you put libtool-using code outside of gcc/, I think. Cheers, Ralf