- 论坛徽章:
- 0
|
今天试着使用automake来产生MAKEFILE文件,但是出现了一下问题,还望各位能指点一二,谢谢!
本人系统是FC4.
问题一:autoscan出现错误警告,不知为何,但是看网上很多相关教程都没有解释,但是照样能产生configure.scan,警告如下:
[yufei@localhost automake_test]$ autoscan
autom4te: configure.ac: no such file or directory
autoscan: /usr/bin/autom4te failed with exit status: 1
问题二:整个过程如下:
[yufei@localhost automake_test]$ ls -l
总用量 8
-rw-rw-r-- 1 yufei yufei 0 7月 17 21:40 autoscan.log
-rw-rw-r-- 1 yufei yufei 462 7月 17 21:40 configure.scan
-rw-rw-r-- 1 yufei yufei 100 7月 17 21:39 helloworld.c
[yufei@localhost automake_test]$ mv configure.scan configure.in //改名
[yufei@localhost automake_test]$ ls -l
总用量 8
-rw-rw-r-- 1 yufei yufei 0 7月 18 00:13 autoscan.log
-rw-rw-r-- 1 yufei yufei 462 7月 18 00:13 configure.in
-rwxrwxrwx 1 yufei yufei 100 7月 17 21:39 helloworld.c
[yufei@localhost automake_test]$ cat configure.in //查看文件内容
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
AC_CONFIG_SRCDIR([helloworld.c])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_OUTPUT
[yufei@localhost automake_test]$vi configure.in //更改文件内容
[yufei@localhost automake_test]$ cat configure.in //查看更改后的文件内容
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(helloworld,1.0,wwww@163.com)
AC_CONFIG_SRCDIR([helloworld.c])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_OUTPUT(Makefile)
[yufei@localhost automake_test]$ aclocal //希望生成aclocal.m4和configure.in
/usr/share/aclocal/g-wrap.m4:7: warning: underquoted definition of AC_GWRAP_CHECK_GUILE
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automa ... l#Extending-aclocal
/usr/share/aclocal/g-wrap.m4:23: warning: underquoted definition of AM_PATH_GWRAP
/usr/share/aclocal/aqhbci.m4:5: warning: underquoted definition of AC_AQHBCI
/usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
[yufei@localhost automake_test]$ ls -l
总用量 12
drwxr-xr-x 2 yufei yufei 4096 7月 18 00:17 autom4te.cache
-rw-rw-r-- 1 yufei yufei 0 7月 18 00:13 autoscan.log
-rw-rw-r-- 1 yufei yufei 453 7月 18 00:16 configure.in
-rwxrwxrwx 1 yufei yufei 100 7月 17 21:39 helloworld.c
[yufei@localhost automake_test]$ //问题就出现在这里,没有出现aclocal.m4,并且在
aclocal的时候出来了很多警告,还望高手指点一下,再次感谢!
[ 本帖最后由 neobob 于 2006-7-19 00:44 编辑 ] |
|