~drizzle-trunk/drizzle/development

1273.23.18 by Monty Taylor
pandora-build v0.113 - Added thrift/cassandra support.
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"],[
1273.23.22 by mordred
Fixed thrift/cassandra checking.
20
    AC_LANG_PUSH(C++)
1273.23.18 by Monty Taylor
pandora-build v0.113 - Added thrift/cassandra support.
21
    AC_LIB_HAVE_LINKFLAGS(thrift,,[
1273.23.22 by mordred
Fixed thrift/cassandra checking.
22
      #include <thrift/Thrift.h>
1273.23.18 by Monty Taylor
pandora-build v0.113 - Added thrift/cassandra support.
23
    ],[
1273.23.22 by mordred
Fixed thrift/cassandra checking.
24
      apache::thrift::TOutput test_output;
1273.23.18 by Monty Taylor
pandora-build v0.113 - Added thrift/cassandra support.
25
    ])
1273.23.22 by mordred
Fixed thrift/cassandra checking.
26
    AC_LANG_POP()
1273.23.18 by Monty Taylor
pandora-build v0.113 - Added thrift/cassandra support.
27
  ],[
28
    ac_cv_thrift="no"
29
  ])
30
  
31
  AM_CONDITIONAL(HAVE_THRIFT, [test "x${ac_cv_thrift}" = "xyes"])
32
  
33
])
34
35
AC_DEFUN([PANDORA_HAVE_THRIFT],[
36
  AC_REQUIRE([_PANDORA_SEARCH_THRIFT])
37
])
38
39
AC_DEFUN([PANDORA_REQUIRE_THRIFT],[
40
  AC_REQUIRE([PANDORA_HAVE_THRIFT])
1273.23.22 by mordred
Fixed thrift/cassandra checking.
41
  AS_IF([test x$ac_cv_thrift= xno],[
2221.1.8 by Monty Taylor
Adds ability to just build libdrizzle without needing all of the rest of the
42
      PANDORA_MSG_ERROR([thrift required for ${PACKAGE}])
1273.23.22 by mordred
Fixed thrift/cassandra checking.
43
  ])
1273.23.18 by Monty Taylor
pandora-build v0.113 - Added thrift/cassandra support.
44
])
45