~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_thrift.m4

  • Committer: mordred
  • Date: 2010-03-18 18:14:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1359.
  • Revision ID: mordred@orisndriz09-20100318181424-qwzjrjww3q7vnrx2
Fixed thrift/cassandra checking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    [ac_enable_thrift="yes"])
18
18
 
19
19
  AS_IF([test "x$ac_enable_thrift" = "xyes"],[
 
20
    AC_LANG_PUSH(C++)
20
21
    AC_LIB_HAVE_LINKFLAGS(thrift,,[
21
 
      #include <thrift/config.h>
 
22
      #include <thrift/Thrift.h>
22
23
    ],[
23
 
      PACKAGE_STRING
 
24
      apache::thrift::TOutput test_output;
24
25
    ])
 
26
    AC_LANG_POP()
25
27
  ],[
26
28
    ac_cv_thrift="no"
27
29
  ])
36
38
 
37
39
AC_DEFUN([PANDORA_REQUIRE_THRIFT],[
38
40
  AC_REQUIRE([PANDORA_HAVE_THRIFT])
39
 
  AS_IF([test x$ac_cv_thrift= xno],
40
 
      AC_MSG_ERROR([thrift required for ${PACKAGE}]))
 
41
  AS_IF([test x$ac_cv_thrift= xno],[
 
42
      AC_MSG_ERROR([thrift required for ${PACKAGE}])
 
43
  ])
41
44
])
42
45