Make Oniguruma/regexp optional

Tests won't pass if built without Oniguruma.  We don't have a way to
make a test optional yet.  That will come later.  For now the ability to
reduce build-time dependencies could really help some users.
This commit is contained in:
Nicolas Williams committed 2015-02-15 18:32:01 -06:00
1 parent a83a9e0bc2
commit 8afdeee785
2 files changed
+11 -3

No files matched your search

+2 -1
View File
@@ -76,7 +76,8 @@ AC_CHECK_HEADER("oniguruma.h",
if test $HAVE_ONIGURUMA != 1; then
AC_MSG_NOTICE([Oniguruma was not found.])
AC_MSG_NOTICE([ Try setting the location using '--with-oniguruma=PREFIX' ])
AC_MSG_ERROR([ oniguruma is required to build jq.])
else
AC_DEFINE([HAVE_ONIGURUMA],1,[Define to 1 if Oniguruma is installed])
fi