瀏覽代碼

configure.ac: fails if yacc is not available

Nathalie Furmento 13 年之前
父節點
當前提交
c54d799773
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      configure.ac

+ 5 - 1
configure.ac

@@ -1121,7 +1121,11 @@ fi
 
 # Bison is used to generate the C expression parser.  The generated
 # parser is part of the distribution, though.
-AC_PROG_YACC
+AC_PATH_PROG([YACC], [yacc])
+AC_MSG_CHECKING(yacc $YACC)
+if test "x$YACC" = "x"; then
+    AC_MSG_ERROR([Compiler yacc not available])
+fi
 
 AM_CONDITIONAL([BUILD_GCC_PLUGIN], [test "x$build_gcc_plugin" = "xyes"])
 AM_CONDITIONAL([HAVE_GUILE], [test "x$GUILE" != "x"])