~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libinnodb.m4

  • Committer: Monty Taylor
  • Date: 2010-03-10 18:23:59 UTC
  • mfrom: (1273.23.17 pandora-build)
  • mto: This revision was merged to the branch mainline in revision 1381.
  • Revision ID: mordred@inaugust.com-20100310182359-f5yzmmd1a1sr02rs
Merged latest pandora-build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    ac_cv_libinnodb="no"
28
28
  ])
29
29
 
 
30
 
 
31
  AC_CACHE_CHECK([if libinnodb is recent enough],
 
32
    [ac_cv_recent_innodb_h],[
 
33
      save_LIBS=${LIBS}
 
34
      LIBS="${LIBS} ${LTLIBINNODB}"
 
35
      AC_LINK_IFELSE(
 
36
          [AC_LANG_PROGRAM([[
 
37
      #include <embedded_innodb-1.0/innodb.h>
 
38
        ]],[[
 
39
      /* Make sure we have the two-arg version */
 
40
      ib_table_drop(NULL, "nothing");
 
41
        ]])],[
 
42
        ac_cv_recent_innodb_h=yes
 
43
      ],[
 
44
        ac_cv_recent_innodb_h=no
 
45
      ])
 
46
      LIBS="${save_LIBS}"
 
47
    ])
 
48
  AS_IF([test "x${ac_cv_recent_innodb_h}" = "xno"],[
 
49
    AC_MSG_WARN([${PACKAGE} requires at least version 1.0.6 of Embedded InnoDB])
 
50
    ac_cv_libinnodb=no
 
51
  ])
 
52
        
30
53
  AM_CONDITIONAL(HAVE_LIBINNODB, [test "x${ac_cv_libinnodb}" = "xyes"])
31
54
])
32
55