comparison configure.ac @ 15323:c42bf5cadb60

Add check for CURLOPT_DIRLISTONLY in libcurl * configure.ac: Add check for CURLOPT_DIRLISTONLY in libcurl
author Mike Miller <mtmiller@ieee.org>
date Thu, 06 Sep 2012 23:02:05 -0400
parents d7514add71e2
children 719ffb2f35a6
comparison
equal deleted inserted replaced
15322:9f9a7ae2d263 15323:c42bf5cadb60
837 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS" 837 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS"
838 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS" 838 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS"
839 OCTAVE_CHECK_LIB(curl, cURL, 839 OCTAVE_CHECK_LIB(curl, cURL,
840 [cURL library not found. The ftp objects, urlread and urlwrite functions will be disabled.], 840 [cURL library not found. The ftp objects, urlread and urlwrite functions will be disabled.],
841 [curl/curl.h], [curl_easy_escape]) 841 [curl/curl.h], [curl_easy_escape])
842 if test -z "$warn_curl"; then
843 AC_MSG_CHECKING([for CURLOPT_DIRLISTONLY in curl/curl.h])
844 AC_COMPILE_IFELSE(
845 [AC_LANG_PROGRAM([[
846 #include <curl/curl.h>
847 ]], [[
848 curl_easy_setopt ((CURL*)NULL, CURLOPT_DIRLISTONLY, 0);
849 ]])],
850 [AC_MSG_RESULT(yes)],
851 [AC_MSG_RESULT(no)
852 AC_DEFINE(CURLOPT_DIRLISTONLY, CURLOPT_FTPLISTONLY,
853 [Define to the legacy option name if using an older version of cURL.])]
854 )
855 fi
842 LIBS="$save_LIBS" 856 LIBS="$save_LIBS"
843 CPPFLAGS="$save_CPPFLAGS" 857 CPPFLAGS="$save_CPPFLAGS"
844 858
845 ### Check for either of Graphics/ImageMagick++ libraries 859 ### Check for either of Graphics/ImageMagick++ libraries
846 860