~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_thrift.m4

  • Committer: Monty Taylor
  • Date: 2010-03-16 19:44:26 UTC
  • mfrom: (1273.23.21 pandora-build)
  • mto: This revision was merged to the branch mainline in revision 1381.
  • Revision ID: mordred@inaugust.com-20100316194426-38p1s6e3zkk63397
Merged in latest pandora-build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl  Copyright (C) 2010 Padraig O'Sullivan
 
2
dnl This file is free software; Padraig O'Sullivan
 
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_THRIFT],[
 
7
  AC_REQUIRE([AC_LIB_PREFIX])
 
8
 
 
9
  dnl --------------------------------------------------------------------
 
10
  dnl  Check for thrift
 
11
  dnl --------------------------------------------------------------------
 
12
 
 
13
  AC_ARG_ENABLE([thrift],
 
14
    [AS_HELP_STRING([--disable-thrift],
 
15
      [Build with thrift support @<:@default=on@:>@])],
 
16
    [ac_enable_thrift="$enableval"],
 
17
    [ac_enable_thrift="yes"])
 
18
 
 
19
  AS_IF([test "x$ac_enable_thrift" = "xyes"],[
 
20
    AC_LIB_HAVE_LINKFLAGS(thrift,,[
 
21
      #include <thrift/config.h>
 
22
    ],[
 
23
      PACKAGE_STRING
 
24
    ])
 
25
  ],[
 
26
    ac_cv_thrift="no"
 
27
  ])
 
28
  
 
29
  AM_CONDITIONAL(HAVE_THRIFT, [test "x${ac_cv_thrift}" = "xyes"])
 
30
  
 
31
])
 
32
 
 
33
AC_DEFUN([PANDORA_HAVE_THRIFT],[
 
34
  AC_REQUIRE([_PANDORA_SEARCH_THRIFT])
 
35
])
 
36
 
 
37
AC_DEFUN([PANDORA_REQUIRE_THRIFT],[
 
38
  AC_REQUIRE([PANDORA_HAVE_THRIFT])
 
39
  AS_IF([test x$ac_cv_thrift= xno],
 
40
      AC_MSG_ERROR([thrift required for ${PACKAGE}]))
 
41
])
 
42