~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libcassandra.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:
16
16
    [ac_enable_libcassandra="$enableval"],
17
17
    [ac_enable_libcassandra="yes"])
18
18
 
19
 
  AS_IF([test "x$ac_enable_libcassandra " = "xyes"],[
 
19
  AS_IF([test "x$ac_enable_libcassandra" = "xyes"],[
20
20
    AC_LANG_PUSH([C++])
21
 
    AC_LIB_HAVE_LINKFLAGS(cassandra,,[
22
 
      #include <libcassandra/cassandra.h>
 
21
    AC_LIB_HAVE_LINKFLAGS(cassandra,[thrift],[
 
22
      #include <libcassandra/cassandra_factory.h>
23
23
    ],[
24
24
       libcassandra::CassandraFactory fact("localhost", 9306);
25
25
    ])
38
38
 
39
39
AC_DEFUN([PANDORA_REQUIRE_LIBCASSANDRA],[
40
40
  AC_REQUIRE([PANDORA_HAVE_LIBCASSANDRA])
41
 
  AS_IF([test x$ac_cv_libcassandra = xno],
42
 
      AC_MSG_ERROR([libcassandra is required for ${PACKAGE}]))
 
41
  AS_IF([test "x$ac_cv_libcassandra" = "xno"],[
 
42
      AC_MSG_ERROR([libcassandra is required for ${PACKAGE}])
 
43
  ])
43
44
])