comparison 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
comparison
equal deleted inserted replaced
16079:3a90c3f4046d 16080:c53f8f706c55
859 [cURL library not found. The ftp objects, urlread and urlwrite functions will be disabled.], 859 [cURL library not found. The ftp objects, urlread and urlwrite functions will be disabled.],
860 [curl/curl.h], [curl_easy_escape]) 860 [curl/curl.h], [curl_easy_escape])
861 if test -z "$warn_curl"; then 861 if test -z "$warn_curl"; then
862 ## Additional check on cURL library that was found 862 ## Additional check on cURL library that was found
863 AC_CACHE_CHECK([for CURLOPT_DIRLISTONLY in curl/curl.h], 863 AC_CACHE_CHECK([for CURLOPT_DIRLISTONLY in curl/curl.h],
864 [octave_cv_header_define_curlopt_dirlistonly], 864 [octave_cv_curl_has_curlopt_dirlistonly],
865 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 865 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
866 #include <curl/curl.h> 866 #include <curl/curl.h>
867 ]], [[ 867 ]], [[
868 curl_easy_setopt ((CURL*)NULL, CURLOPT_DIRLISTONLY, 0); 868 curl_easy_setopt ((CURL*)NULL, CURLOPT_DIRLISTONLY, 0);
869 ]])], 869 ]])],
870 [octave_cv_header_define_curlopt_dirlistonly=no], 870 [octave_cv_curl_has_curlopt_dirlistonly=yes],
871 [octave_cv_header_define_curlopt_dirlistonly=yes]) 871 [octave_cv_curl_has_curlopt_dirlistonly=no])
872 ]) 872 ])
873 if test $octave_cv_header_define_curlopt_dirlistonly = yes; then 873 if test $octave_cv_curl_has_curlopt_dirlistonly = no; then
874 AC_DEFINE(CURLOPT_DIRLISTONLY, CURLOPT_FTPLISTONLY, 874 AC_DEFINE(CURLOPT_DIRLISTONLY, CURLOPT_FTPLISTONLY,
875 [Define to the legacy option name if using an older version of cURL.]) 875 [Define to the legacy option name if using an older version of cURL.])
876 fi 876 fi
877 fi 877 fi
878 LIBS="$save_LIBS" 878 LIBS="$save_LIBS"