Mercurial > hg > octave-lyh
diff configure.ac @ 16080:c53f8f706c55
Reverse logic of libcurl feature test result
* configure.ac (CURLOPT_DIRLISTONLY): Reverse logic of feature test to
clarify reported result.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Thu, 21 Feb 2013 00:08:26 -0500 |
parents | 3a90c3f4046d |
children | 63163e8eaef3 |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -861,16 +861,16 @@ if test -z "$warn_curl"; then ## Additional check on cURL library that was found AC_CACHE_CHECK([for CURLOPT_DIRLISTONLY in curl/curl.h], - [octave_cv_header_define_curlopt_dirlistonly], + [octave_cv_curl_has_curlopt_dirlistonly], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <curl/curl.h> ]], [[ curl_easy_setopt ((CURL*)NULL, CURLOPT_DIRLISTONLY, 0); ]])], - [octave_cv_header_define_curlopt_dirlistonly=no], - [octave_cv_header_define_curlopt_dirlistonly=yes]) + [octave_cv_curl_has_curlopt_dirlistonly=yes], + [octave_cv_curl_has_curlopt_dirlistonly=no]) ]) - if test $octave_cv_header_define_curlopt_dirlistonly = yes; then + if test $octave_cv_curl_has_curlopt_dirlistonly = no; then AC_DEFINE(CURLOPT_DIRLISTONLY, CURLOPT_FTPLISTONLY, [Define to the legacy option name if using an older version of cURL.]) fi