~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libdrizzle.m4

  • Committer: Brian Aker
  • Date: 2009-11-18 06:24:48 UTC
  • mfrom: (1220.1.15 staging)
  • Revision ID: brian@gaz-20091118062448-o36lo3yv81sc6u9z
Merge Brian + Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
 
dnl This file is free software; Sun Microsystems, Inc.
 
1
dnl  Copyright (C) 2009 Sun Microsystems
 
2
dnl This file is free software; Sun Microsystems
3
3
dnl gives unlimited permission to copy and/or distribute it,
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
36
36
 
37
37
AC_DEFUN([PANDORA_REQUIRE_LIBDRIZZLE],[
38
38
  AC_REQUIRE([PANDORA_HAVE_LIBDRIZZLE])
39
 
  AS_IF([test "x${ac_cv_libdrizzle}" = "xno"],[
40
 
    AC_MSG_ERROR([libdrizzle is required for ${PACKAGE}])
41
 
  ],[
42
 
    dnl We need at least 0.8 on Solaris non-sparc
43
 
    AS_IF([test "$target_cpu" != "sparc" -a "x${TARGET_SOLARIS}" = "xtrue"],[
44
 
      PANDORA_LIBDRIZZLE_RECENT
45
 
    ])
46
 
  ])
 
39
  AS_IF([test "x${ac_cv_libdrizzle}" = "xno"],
 
40
      AC_MSG_ERROR([libdrizzle is required for ${PACKAGE}]))
47
41
])
48
42
 
49
 
AC_DEFUN([PANDORA_LIBDRIZZLE_RECENT],[
50
 
  AC_CACHE_CHECK([if libdrizzle is recent enough],
51
 
    [pandora_cv_libdrizzle_recent],
 
43
AC_DEFUN([PANDORA_LIBDRIZZLE_NOVCOL],[
 
44
  AC_CACHE_CHECK([if libdrizzle still has virtual columns],
 
45
    [pandora_cv_libdrizzle_vcol],
52
46
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
53
47
#include <libdrizzle/drizzle.h>
54
 
drizzle_con_options_t foo= DRIZZLE_CON_EXPERIMENTAL;
 
48
int foo= DRIZZLE_COLUMN_TYPE_DRIZZLE_VIRTUAL;
55
49
    ]])],
56
 
    [pandora_cv_libdrizzle_recent=yes],
57
 
    [pandora_cv_libdrizzle_recent=no])])
58
 
  AS_IF([test "$pandora_cv_libdrizzle_recent" = "no"],[
59
 
    AC_MSG_ERROR([Your version of libdrizzle is too old. ${PACKAGE} requires at least version 0.8])
 
50
    [pandora_cv_libdrizzle_vcol=yes],
 
51
    [pandora_cv_libdrizzle_vcol=no])])
 
52
  AS_IF([test "$pandora_cv_libdrizzle_vcol" = "yes"],[
 
53
    AC_MSG_ERROR([Your version of libdrizzle is too old. ${PACKAGE} requires at least version 0.4])
60
54
  ])
61
55
])