error if --with-libxml2 does not find libxml2

This commit is contained in:
Olof Hagsand 2019-05-24 08:31:47 +00:00
parent 5b39b63698
commit 9c7a4e14f1
2 changed files with 3 additions and 1 deletions

2
configure vendored
View file

@ -4473,6 +4473,8 @@ _ACEOF
LIBS="-lxml2 $LIBS" LIBS="-lxml2 $LIBS"
else
as_fn_error $? "libxml2 not found" "$LINENO" 5
fi fi
fi fi

View file

@ -226,7 +226,7 @@ AC_CHECK_LIB(dl, dlopen)
AC_ARG_WITH(libxml2, [ --with-libxml2 use gnome/libxml2 regex engine ] ) AC_ARG_WITH(libxml2, [ --with-libxml2 use gnome/libxml2 regex engine ] )
if test "${with_libxml2}"; then if test "${with_libxml2}"; then
# Find libxml2 lib # Find libxml2 lib
AC_CHECK_LIB(xml2, xmlRegexpCompile) AC_CHECK_LIB(xml2, xmlRegexpCompile,[], AC_MSG_ERROR([libxml2 not found]))
fi fi
# #