~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_protobuf.m4

Changed status message for protobuf check.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
  p_recent_ver_patch=`echo $p_recent_ver | cut -f3 -d.`
46
46
  p_recent_ver_hex=`printf "%d%03d%03d" $p_recent_ver_major $p_recent_ver_minor $p_recent_ver_patch` 
47
47
  AC_LANG_PUSH([C++])
48
 
  AC_CACHE_CHECK([if protobuf is recent enough], [drizzle_cv_protobuf_recent],
 
48
  AC_CACHE_CHECK([for protobuf >= $p_recent_ver],
 
49
    [drizzle_cv_protobuf_recent],
49
50
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
50
51
#include <google/protobuf/descriptor.h>
51
52
#if GOOGLE_PROTOBUF_VERSION < $p_recent_ver_hex
52
53
# error Your version of Protobuf is too old
53
54
#endif
54
55
      ]])],
55
 
      [drizzle_cv_protobuf_recent=yes],
56
 
      [drizzle_cv_protobuf_recent=no])])
 
56
    [drizzle_cv_protobuf_recent=yes],
 
57
    [drizzle_cv_protobuf_recent=no])])
57
58
  AS_IF([test "$drizzle_cv_protobuf_recent" = "no"],[
58
59
    AC_MSG_ERROR([Your version of Google Protocol Buffers is too old. ${PACKAGE} requires at least version $p_recent_ver])
59
60
  ])