Unexpanded AX_ macro found. Please install GNU autoconf-archive
./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, '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: running: /usr/bin/autoconf --force
configure.ac:65: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:66: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
autoreconf: /usr/bin/autoconf failed with exit status: 1
configure: error: cannot find sources (config.h.in) in . or ..
问题描述:
使用autoconf命令或者autoreconf命令生成configure配置脚本文件时,复制解压后的项目中会出现宏未定义的问题。执行autoreconf命令,autoreconf会去调用configure.in和aclocal.m4文件生成configure。读取configure.in的宏函数,有些会未定义。
解决方法:
autoreconf -vi
-i参数:
在重新生成configure文件时,会复制丢失的辅助文件。当autoreconf读取configure.in文件时,未定义的宏函数会去自动寻找辅助文件。
./configure: line 12174: syntax error near unexpected token `git-directory'
./configure: line 12174: `AX_IS_RELEASE(git-directory)'
Quick installation of autoconf-archive:
Step 1: Update system:
sudo apt-get update
Step 2: Install: autoconf-archive
Ater updaing the OS run following command to install the packae:
sudo apt-get install autoconf-archive
How to uninstall/remove autoconf-archive from Ubuntu 12.04 LTS?
Now we will see the commands for uninstalling the autoconf-archive from Ubuntu 12.04 LTS. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.
To remove the autoconf-archive following command is used:
sudo apt-get remove autoconf-archive
Following command is used to remove the autoconf-archive package along with its dependencies:
sudo apt-get remove --auto-remove autoconf-archive
This will remove autoconf-archive and all its dependent packages which is no longer needed in the system.
Completely removing autoconf-archive with all configuration files:
Following command should be used with care as it deletes all the configuration files and data:
sudo apt-get purge autoconf-archive
or you can use following command also:
sudo apt-get purge --auto-remove autoconf-archive
Above command will remove all the configuration files and data associated with autoconf-archive package. You can can't recover the delete data, so, use this command with care.
build libmbim
342 ./autogen.sh
343 sudo apt-get install libexpat1-dev
344 sudo apt-get install libpciaccess-dev
345 sudo apt-get install bison
346 ls
347 ./autogen.sh
348 autoreconf -vi
349 ./autogen.sh
350 ls
351 ./configure
352 sudo apt-get install autoconf-archive
353 ./configure
354 automake --version
355 gettext --version
356 libtoolize --version
357 autoconf
358 ls
359 ./autogen.sh
360 autoreconf -fvi
361 ls
362 ./configure
363 history
364 make
365 sudo make install