~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libgearman.m4

  • Committer: Brian Aker
  • Date: 2009-07-16 19:30:03 UTC
  • mfrom: (1093.1.17 captain)
  • Revision ID: brian@gaz-20090716193003-gwt4i1le2g02ay0j
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl  Copyright (C) 2009 Sun Microsystems
 
2
dnl This file is free software; Sun Microsystems
 
3
dnl gives unlimited permission to copy and/or distribute it,
 
4
dnl with or without modifications, as long as this notice is preserved.
 
5
 
 
6
AC_DEFUN([_PANDORA_SEARCH_LIBGEARMAN],[
 
7
  AC_REQUIRE([AC_LIB_PREFIX])
 
8
 
 
9
  dnl --------------------------------------------------------------------
 
10
  dnl  Check for libgearman
 
11
  dnl --------------------------------------------------------------------
 
12
 
 
13
  AC_LIB_HAVE_LINKFLAGS(gearman,, 
 
14
    [#include <libgearman/gearman.h>],[ 
 
15
      gearman_client_st gearman_client; 
 
16
      gearman_version(); 
 
17
    ]) 
 
18
 
 
19
  AM_CONDITIONAL(HAVE_LIBGEARMAN, [test "x${ac_cv_libgearman}" = "xyes"])
 
20
  
 
21
])
 
22
 
 
23
AC_DEFUN([PANDORA_HAVE_LIBGEARMAN],[
 
24
  AC_REQUIRE([_PANDORA_SEARCH_LIBGEARMAN])
 
25
])
 
26
 
 
27
AC_DEFUN([PANDORA_REQUIRE_LIBGEARMAN],[
 
28
  AC_REQUIRE([PANDORA_HAVE_LIBGEARMAN])
 
29
  AS_IF([test x$ac_cv_libgearman = xno],
 
30
      AC_MSG_ERROR([libgearman is required for ${PACKAGE}]))
 
31
])