Makes YAJL dependency to be optional

This commit is contained in:
Felipe Zimmerle
2015-11-24 16:03:33 -03:00
parent cf4377df70
commit fbf8ea74f3
5 changed files with 180 additions and 127 deletions

View File

@@ -190,6 +190,7 @@ AC_SUBST([MSC_GIT_VERSION])
# Files to be generated via autotools.
AM_CONDITIONAL([WITH_YAJL], [test "$want_test" = yes])
AC_CONFIG_FILES([\
Makefile \
doc/Makefile \
@@ -268,4 +269,22 @@ if test "x$CURL_FOUND" = "x2"; then
echo " + LibCURL ....disabled"
fi
## YAJL
if test "x$YAJL_FOUND" = "x0"; then
echo " + YAJL ....not found"
fi
if test "x$YAJL_FOUND" = "x1"; then
echo -n " + YAJL ....found "
if ! test "x$YAJL_VERSION" = "x"; then
echo "v${YAJL_VERSION}"
else
echo ""
fi
echo " ${YAJL_DISPLAY}"
fi
if test "x$YAJL_FOUND" = "x2"; then
echo " + YAJL ....disabled"
fi
echo " "