]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
configure.ac: detect whether libcurl supports curl_multi_wait()
authorYehuda Sadeh <yehuda@inktank.com>
Tue, 9 Jul 2013 01:54:23 +0000 (18:54 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 9 Jul 2013 06:43:00 +0000 (23:43 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
configure.ac

index 779ecef276cd085c235cdc29302d28b7947d4274..12991f2854e53d6ad319a003eadf966458102037 100644 (file)
@@ -232,6 +232,11 @@ AM_CONDITIONAL(WITH_RADOSGW, test "$RADOSGW" = "1")
 
 AS_IF([test "$RADOSGW" = "1"], [AC_DEFINE([WITH_RADOSGW], [1], [define if radosgw enabled])])
 
+AS_IF([test "$RADOSGW" = "1"], 
+              [AC_CHECK_LIB([curl], [curl_multi_wait],
+                            AC_DEFINE([HAVE_CURL_MULTI_WAIT], [1], [Define if have curl_multi_wait()]))
+              ])
+
 # fuse?
 AC_ARG_WITH([fuse],
             [AS_HELP_STRING([--without-fuse], [disable FUSE userspace client])],