summaryrefslogtreecommitdiff
path: root/autoconf/m4
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-24 22:41:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-24 22:41:20 +0000
commit4869d7fa8e7daeaafc8b86c6f54efd41517f0f14 (patch)
tree38c44c1b2be8bb1b6faa6c17cce81e1c6428e2d7 /autoconf/m4
parent7b7a1be8561c0cfda11b5ff287aa115cb1e68df5 (diff)
downloadllvm-4869d7fa8e7daeaafc8b86c6f54efd41517f0f14.tar.gz
llvm-4869d7fa8e7daeaafc8b86c6f54efd41517f0f14.tar.bz2
llvm-4869d7fa8e7daeaafc8b86c6f54efd41517f0f14.tar.xz
For PR738:
Demote check for bison from error to warning and make sure that the makefile can handle an empty definition for BISON variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/m4')
-rw-r--r--autoconf/m4/bison.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/autoconf/m4/bison.m4 b/autoconf/m4/bison.m4
index e186af0101..48b83cc4a6 100644
--- a/autoconf/m4/bison.m4
+++ b/autoconf/m4/bison.m4
@@ -8,7 +8,8 @@
AC_DEFUN([AC_PROG_BISON],
[AC_CACHE_CHECK([],[llvm_cv_has_bison],[AC_PROG_YACC()])
if test "$YACC" != "bison -y"; then
- AC_MSG_ERROR([bison not found but required])
+ AC_SUBST(BISON,[])
+ AC_MSG_WARN([bison not found, can't rebuild grammars])
else
- AC_SUBST(BISON,[bison],[location of bison])
+ AC_SUBST(BISON,[bison])
fi])