按照官方文档直接运行 ./bootstrap 出现错误:
AC_INIT
configure.ac:1: error: possibly undefined macro: dnl
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.
configure.ac:27: error: possibly undefined macro: AS_IF
configure.ac:41: error: possibly undefined macro: AC_DEFINE
configure.ac:78: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:81: error: possibly undefined macro: AC_MSG_WARN
configure.ac:181: error: possibly undefined macro: AC_ARG_ENABLE
configure.ac:379: error: possibly undefined macro: AC_CHECK_LIB
configure.ac:449: error: possibly undefined macro: AC_CHECK_HEADERS
configure.ac:2089: error: possibly undefined macro: AC_PATH_PROG
configure.ac:5094: error: possibly undefined macro: AC_PATH_PROGS
修改:
cd vlc
cp -v /usr/share/aclocal/* m4/
bootstrap
运行提示:
.................
+ autoreconf --install --force --verbose -I m4
autoreconf-2.68: Entering directory `.'
autoreconf-2.68: running: true --force
autoreconf-2.68: running: aclocal -I m4 --force -I m4
autoreconf-2.68: configure.ac: tracing
autoreconf-2.68: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autotools'.
libtoolize: copying file `autotools/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf-2.68: running: /mingw/bin/autoconf-2.68 --include=m4 --force
autoreconf-2.68: running: /mingw/bin/autoheader-2.68 --include=m4 --force
autoreconf-2.68: running: automake --add-missing --copy --force-missing
autoreconf-2.68: Leaving directory `.'
+ rm -f po/Makevars.template
+ rm -f 'stamp-h*'
+ set +x
Successfully bootstrapped
参考文章:
http://blog.csdn.net/yzyak47958/article/details/42002483