aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-19 15:58:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-19 15:58:58 +0000
commitde37308722873ce8bbabd20017848484089696f3 (patch)
tree58fb9661f2d4e8a626a070ffefc9c41770608daf
parent7729c63be04d6612126a991dd25507716babae0e (diff)
if not yacc or bison is found, check if we *really* need it, and if we do
we bail out!
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index faca05c8e..c1ffe3de7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1144,6 +1144,20 @@ fi
AC_PROG_YACC
+if test -z "$YACC"
+then
+ AC_MSG_CHECKING([if OK to build without bison/yacc])
+ dnl no yacc is a big deal if we have no pre-fixed getdate.y
+ if test -r "$srcdir/lib/getdate.c"
+ then
+ dnl all is well, we don't have to generate it!
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ AC_MSG_ERROR([no yacc or bison found, can't build libcurl!])
+ fi
+fi
+
dnl *************************************************************************
dnl If the manual variable still is set, then we go with providing a built-in
dnl manual