我正在使用Autotools来构建我的C++应用程序。在我的configure.ac文件中,我有以下这行代码:
AX_CHECK_COMPILE_FLAG([-Wall], [CPPFLAGS="$CPPFLAGS -Wall"])
在运行 autoreconf -i 之后,在执行 ./configure 的时候会导致以下错误:
./configure: line 3825: syntax error near unexpected token `-Wall,'
./configure: line 3825: `AX_CHECK_COMPILE_FLAG(-Wall, CPPFLAGS="$CPPFLAGS -Wall")'
我的系统:Linux web 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux
在我的 Ubuntu 机器上它运行良好,为什么我会收到这个错误?