AX_CXX_COMPILE_STDCXX_11 不起作用:意外标记“,"附近的语法错误 [英] AX_CXX_COMPILE_STDCXX_11 doesn't work: syntax error near unexpected token `,'
本文介绍了AX_CXX_COMPILE_STDCXX_11 不起作用:意外标记“,"附近的语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试在我的 configure.ac 文件中使用 AX_CXX_COMPILE_STDCXX_11,如下所示:
Trying to use AX_CXX_COMPILE_STDCXX_11 in my configure.ac file like this:
...
AX_CXX_COMPILE_STDCXX_11(, optional)
...
然而,导致错误:
./configure: line 16126: syntax error near unexpected token `,'
./configure: line 16126: `AX_CXX_COMPILE_STDCXX_11(, optional)'
我还放置了 这个文件到configure.ac文件旁边的m4目录中,并且在configure.ac的一开始就调用了AC_CONFIG_MACRO_DIR([m4])
.以前有人遇到过这样的事情吗?
I've also placed this file into m4 directory next to configure.ac file and have AC_CONFIG_MACRO_DIR([m4])
called in configure.ac in the very beginning.
Did anyone faced anything like that before?
推荐答案
通过运行 autoreconf -f
instread of autoconf
解决了我的问题.
My problem solved with running autoreconf -f
instread of autoconf
.
https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/autoreconf-Invocation.html
这篇关于AX_CXX_COMPILE_STDCXX_11 不起作用:意外标记“,"附近的语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文