mkvtoolnix/ac/curl.m4
Moritz Bunkus e13f02d8b6 Build system: define HAVE_CURL_EASY_H it curl is found via pkg-config
Fix regression introduced in eb846ed8 when curl detection was changed
from AC_CHECK_HEADER() to pkg-config.
2011-10-23 20:23:10 +02:00

15 lines
399 B
Plaintext

dnl
dnl Check for libcurl
dnl
PKG_CHECK_MODULES([CURL], [libcurl], [curl_found=yes])
if test "$curl_found" = "yes"; then
opt_features_yes="$opt_features_yes\n * online update checks (via libcurl)"
AC_DEFINE(HAVE_CURL_EASY_H, 1, [define if libcurl is found via pkg-config])
else
opt_features_no="$opt_features_no\n * online update checks (via libcurl)"
CURL_CFLAGS=""
CURL_LIBS=""
fi