QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2474|回复: 2

***郁闷:autoconf报告宏未定义错误!

[复制链接]
发表于 2004-10-9 15:29:23 | 显示全部楼层 |阅读模式
想在Solaris上编译lib4cxx,结果在执行autogen.sh时就遇到n多麻烦,报告AM_INIT_AUTOMAKE等未定义。
执行结果如下,十分不解。
不懂autoconf,不知什么原因造成这些问题,请各位大侠指点.

david@billdavid>sh ./autogen.sh
/usr/local/share/aclocal/cppunit.m4:4: warning: underquoted definition of AM_PAT
H_CPPUNIT
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in:32: /usr/local/bin/m4: ERROR: Reading inserted file: No such file o
r directory
autom4te: /usr/local/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
configure.in:21: error: possibly undefined macro: AM_CONFIG_HEADER
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:27: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.in:32: error: possibly undefined macro: AM_PROG_LIBTOOL
configure.in:86: error: possibly undefined macro: AM_CONDITIONAL
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
docs/Makefile.am:6: DOC does not appear in AM_CONDITIONAL
docs/Makefile.am:22: LATEX_DOC does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
src/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:1:
src/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/Makefile.am:1: to `configure.in' and run `aclocal' and `autoconf' again.
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
tests/Makefile.am:4: TESTS does not appear in AM_CONDITIONAL
tests/src/Makefile.am:6: TESTS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
tests/src/customlogger/Makefile.am:4: TESTS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
tests/src/defaultinit/Makefile.am:3: TESTS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
tests/src/helpers/Makefile.am:3: TESTS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
tests/src/net/Makefile.am:4: TESTS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
tests/src/pattern/Makefile.am:4: TESTS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
tests/src/util/Makefile.am:4: TESTS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
tests/src/varia/Makefile.am:3: TESTS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
tests/src/xml/Makefile.am:4: TESTS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
 楼主| 发表于 2004-10-10 10:03:37 | 显示全部楼层
up,Help!
回复

使用道具 举报

发表于 2004-10-10 11:25:27 | 显示全部楼层
你的autoconf和automake怎么都在/usr/local下,自己装的?版本太新?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-7 10:52 , Processed in 0.049982 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表