1 dnl The libcurl.so library
3 dnl Copyright (C) 2012-2013 Red Hat, Inc.
5 dnl This library is free software; you can redistribute it and/or
6 dnl modify it under the terms of the GNU Lesser General Public
7 dnl License as published by the Free Software Foundation; either
8 dnl version 2.1 of the License, or (at your option) any later version.
10 dnl This library is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 dnl Lesser General Public License for more details.
15 dnl You should have received a copy of the GNU Lesser General Public
16 dnl License along with this library. If not, see
17 dnl <http://www.gnu.org/licenses/>.
20 AC_DEFUN([LIBVIRT_ARG_CURL],[
21 LIBVIRT_ARG_WITH_FEATURE([CURL], [libcurl], [check], [7.18.0])
24 AC_DEFUN([LIBVIRT_CHECK_CURL],[
25 LIBVIRT_CHECK_PKG([CURL], [libcurl], [7.18.0])
27 # XXX as of libcurl-devel-7.20.1-3.fc13.x86_64, curl ships a version
28 # of <curl/curl.h> that #defines several wrapper macros around underlying
29 # functions to add type safety for gcc only. However, these macros
30 # spuriously trip gcc's -Wlogical-op warning. Avoid the warning by
31 # disabling the wrappers; even if it removes some type-check safety.
32 CURL_CFLAGS="-DCURL_DISABLE_TYPECHECK $CURL_CFLAGS"
36 AC_DEFUN([LIBVIRT_RESULT_CURL],[
37 LIBVIRT_RESULT_LIB([CURL])