Commit
596fc3e3897e introduced the ability to detect xenstore
using pkg-config for systems with Xen 4.9, but accidentally broke
detection for all other systems. Fix the logic so that it works
in all cases.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
if test "$xen_path_provided" = "no" ; then
PKG_CHECK_MODULES([XEN], [xenstore], [
- fail=0
with_xen=yes
], [
fail=1
if test "$xen_path_provided" = "yes" || test "$fail" = 1 ; then
CFLAGS="$CFLAGS $XEN_CFLAGS"
LIBS="$LIBS $XEN_LIBS"
+ fail=0
AC_CHECK_LIB([xenstore], [xs_read], [
- fail=0
with_xen=yes
XEN_LIBS="$XEN_LIBS -lxenstore"
],[