[Libosinfo] [PATCH] configure: fix HAVE_CURL conditional on Win32
Daniel P. Berrangé
berrange at redhat.com
Tue May 8 13:38:44 UTC 2018
AM_CONDITIONAL lines must always be executed, but HAVE_CURL was inside
an "if ...", which caused configure to fail when run on Win32.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index d834c89..f7f1c72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,8 +60,8 @@ if test "x$enable_tests" != "xno" ; then
PKG_CHECK_MODULES([CURL], [libcurl], [have_curl=yes], [:])
AC_SUBST(CURL_CFLAGS)
AC_SUBST(CURL_LIBS)
- AM_CONDITIONAL([HAVE_CURL],[test "x$have_curl" = "xyes"])
fi
+AM_CONDITIONAL([HAVE_CURL],[test "x$have_curl" = "xyes"])
AM_CONDITIONAL([ENABLE_TESTS],[test "x$enable_tests" = "xyes"])
--
2.17.0
More information about the Libosinfo
mailing list