mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 09:51:50 -05:00
Only check for function if we are using libfetch
We did this check unconditionally, rather than only doing it if we were actually going to build and run with libfetch. This is safe because we would have already bailed if libfetch was explicitly requested but not found. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
1e0e5b2a02
commit
73442a7e03
@ -158,9 +158,11 @@ AS_IF([test "x$with_fetch" != "xno"],
|
||||
fi],
|
||||
[-lcrypto -ldl])
|
||||
# Check if libfetch supports connnection caching which we use
|
||||
AC_CHECK_DECL(fetchConnectionCacheInit, ,
|
||||
AS_IF([test "x$ac_cv_lib_fetch_fetchParseURL" = "xyes"],
|
||||
[AC_CHECK_DECL(fetchConnectionCacheInit, ,
|
||||
AC_MSG_ERROR([libfetch must be version 2.28 or greater]),
|
||||
[#include <fetch.h>])
|
||||
])
|
||||
],
|
||||
AC_MSG_RESULT(no))
|
||||
AM_CONDITIONAL([HAVE_LIBFETCH], [test "x$ac_cv_lib_fetch_fetchParseURL" = "xyes"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user