./configure生成的aclocal-1.11的Makefile请求?

时间:2012-01-20 13:10:34

标签: autotools configure

我是使用autotools的新手,并且有一个我不明白的非常严重的问题。 我想在旧机器上测试我的新构建系统,这是一个Linux内核2.4.18-64GB-SMP。我在具有内核3.1.9-2-ARCH的系统上构建了configure-script和其他与autotool相关的文件。

这就是“./configure”输出的内容:

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... colorgcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether colorgcc accepts -g... yes
checking for colorgcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of colorgcc... gcc
checking for ranlib... ranlib
checking whether make sets $(MAKE)... (cached) yes
checking for main in -lrt... yes
checking how to run the C preprocessor... colorgcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for memmove... yes
checking for memset... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/project/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands

好吧,那么,当我想运行make时,我得到了这个:

$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/bp/project.test/mi
ssing --run aclocal-1.11 
/home/bp/project.test/missing: aclocal-1.11: command not found
WARNING: `aclocal-1.11' is missing on your system.  You should only need it if
         you modified `acinclude.m4' or `configure.ac'.  You might want
         to install the `Automake' and `Perl' packages.  Grab them from
         any GNU archive site.
 cd . && /bin/sh /home/bp/project.test/missing --run automake-1.11 --f
oreign
/home/bp/project.test/missing: automake-1.11: command not found
WARNING: `automake-1.11' is missing on your system.  You should only need it if
         you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
         You might want to install the `Automake' and `Perl' packages.
         Grab them from any GNU archive site.
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/bp/project.test/mi
ssing --run autoconf
configure.ac:1: error: Autoconf version 2.68 or higher is required for this scri
pt
configure.ac:1: the top level
make: *** [configure] Error 1

之后,再次运行“make”构建源代码。但是“configure”脚本以及“aclocal.m4”脚本变成了零字节文件。

-rwxrwxr-x    1 bp    users       33918 Jan 20 13:48 config.status
-rwxrwxr-x    1 bp    users           0 Jan 20 13:48 configure
-rw-rw-r--    1 bp    users           0 Jan 20 13:48 aclocal.m4
-rw-rw-r--    1 bp    users       22165 Jan 20 13:48 Makefile.in

我该怎么办?我认为GNU autotools生成的configure脚本是独立于平台的,不需要运行autotools吗?

有什么想法吗?

1 个答案:

答案 0 :(得分:2)

如果你的tarball试图运行aclocal和其他autotools,这意味着tarball有问题。确保您的tarball来自make distcheck