~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_http/plugin.ac

  • Committer: Monty Taylor
  • Date: 2010-07-06 00:44:32 UTC
  • mfrom: (1643.1.13 build)
  • Revision ID: mordred@inaugust.com-20100706004432-843uftc92rc2497l
Merged in PBMS, translation updates, a few build fixes and a few bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_LIB_HAVE_LINKFLAGS(curl,,
2
 
  [#include <curl/curl.h>],
3
 
  [
4
 
    CURL *handle;
5
 
    handle=curl_easy_init();
6
 
  ])
 
1
PANDORA_HAVE_LIBCURL
7
2
AS_IF([test "x$ac_cv_libcurl" = "xno"],
8
 
  AC_MSG_WARN([libcurl development lib not found: not building auth_http plugin. On Debian this is found in libcurl4-gnutls-dev. On RHEL5/Fedora11 it's in curl-devel. On RHEL6/Fedora12 it's in libcurl-devel.]),[
9
 
  AC_CACHE_CHECK([if libcurl has CURLOPT_USERNAME],
10
 
                 [drizzle_cv_curl_have_username],[
11
 
     AC_COMPILE_IFELSE([
12
 
       AC_LANG_PROGRAM(
13
 
         [[
14
 
           CURL *handle;
15
 
           handle=curl_easy_init();
16
 
           rv= curl_easy_setopt(curl_handle, CURLOPT_USERNAME, "foo");
17
 
         ]])],
18
 
       [drizzle_cv_curl_have_username=yes],
19
 
       [drizzle_cv_curl_have_username=no])])
20
 
  AS_IF([test "x$drizzle_cv_curl_have_username" = "xyes"],
21
 
        AC_DEFINE([HAVE_CURLOPT_USERNAME],[1],
22
 
                  [Does libcurl provide the CURLOPT_USERNAME constant]))
23
 
 
24
 
  ])
 
3
  AC_MSG_WARN([libcurl not found: not building auth_http]))
 
4
PANDORA_ADD_PLUGIN_DEP_LIB([${LIBCURL}])