AS_IF和AC_MSG_ERROR:错误:可能是未定义的宏 [英] AS_IF and AC_MSG_ERROR: error: possibly undefined macro

查看:434
本文介绍了AS_IF和AC_MSG_ERROR:错误:可能是未定义的宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试构建libnice-0.1.10时遇到此类错误.对于解决方案,我正在跟踪可能未定义的宏:AC_MSG_ERROR ,但仍然无法获取在那里.

I encounter such errors when trying to build libnice-0.1.10. For solution, I am following possibly undefined macro: AC_MSG_ERROR, but still not getting there.

某些程序版本

uname: 3.5.0-23-generic
m4: 1.4.16
automake: 1.14.1
autoconf: 2.69
libtoolize: 2.4.2

我还在bashrc中添加了ACLOCAL_FLAGS =-I/.../share/aclocal".

I also add ACLOCAL_FLAGS="-I /.../share/aclocal" in bashrc.

这是autogen的报告.

Here is what is reported from autogen.

$ ./autogen.sh 
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from...
configure.ac:331: the top level
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from...
configure.ac:331: the top level
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from...
configure.ac:331: the top level
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./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'
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from...
configure.ac:331: the top level
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from...
configure.ac:331: the top level
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from...
configure.ac:331: the top level
configure.ac:105: error: possibly undefined macro: AS_IF
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:218: error: possibly undefined macro: AC_MSG_ERROR
autoreconf: /opt/oblong/deps-64-10/bin/autoconf failed with exit status: 1

非常感谢您的帮助!

推荐答案

这仅表示您缺少pkg-config(或者您有旧版本).只需下载并安装.

This just means you're missing pkg-config (or perhaps you have an old version). Just download and install.

这篇关于AS_IF和AC_MSG_ERROR:错误:可能是未定义的宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆