1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Fix oniguruma detection logic

At the moment, a failed oniguruma header check would leave
HAVE_ONIGURUMA set to 1 still, resulting in a compiler error
in builtin.c.
This commit is contained in:
Sebastian Freundt
2015-02-16 09:00:58 +00:00
parent ebc090ad15
commit 10e8d34fd3

View File

@ -61,7 +61,7 @@ if test $ONIGURUMAPATHSET == 1; then
fi
# check for ONIGURUMA library
HAVE_ONIGURUMA=1
HAVE_ONIGURUMA=0
AC_CHECK_HEADER("oniguruma.h",
AC_CHECK_LIB([onig],[onig_version],[LIBS="$LIBS -lonig"; HAVE_ONIGURUMA=1;]))