~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Jay Pipes
  • Date: 2009-08-03 14:23:22 UTC
  • mfrom: (1039.2.68 staging)
  • mto: This revision was merged to the branch mainline in revision 1078.
  • Revision ID: jpipes@serialcoder-20090803142322-1g67h7su9mocg9ig
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
ac_build_drizzle="yes"
40
40
 
41
41
 
42
 
# Canonicalize the configuration name.
43
 
 
44
 
AC_DEFINE_UNQUOTED([HOST_VENDOR], ["$host_vendor"],[Vendor of Build System])
45
 
AC_DEFINE_UNQUOTED([HOST_OS], ["$host_os"], [OS of Build System])
46
 
AC_DEFINE_UNQUOTED([HOST_CPU], ["$host_cpu"], [CPU of Build System])
47
 
 
48
 
AC_DEFINE_UNQUOTED([TARGET_VENDOR], ["$target_vendor"],[Vendor of Target System])
49
 
AC_DEFINE_UNQUOTED([TARGET_OS], ["$target_os"], [OS of Target System])
50
 
AC_DEFINE_UNQUOTED([TARGET_CPU], ["$target_cpu"], [CPU of Target System])
51
 
 
52
 
 
53
 
case "$target_os" in
54
 
  *linux*)
55
 
  TARGET_LINUX="true"
56
 
  AC_SUBST(TARGET_LINUX)
57
 
  AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
58
 
    ;;
59
 
  *darwin*)
60
 
    TARGET_OSX="true"
61
 
    AC_SUBST(TARGET_OSX)
62
 
    AC_DEFINE([TARGET_OS_OSX], [1], [Whether we build for OSX])
63
 
    ;;
64
 
  *solaris*)
65
 
    TARGET_SOLARIS="true"
66
 
    AC_SUBST(TARGET_SOLARIS)
67
 
    AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
68
 
    ;;
69
 
  *)
70
 
    ;;
71
 
esac
72
 
 
73
42
AC_PATH_PROG(GPERF, gperf)
74
43
AS_IF([test "x$GPERF" = "x"],
75
44
      AC_MSG_ERROR("Drizzle requires gperf to build."))
100
69
AC_CXX_CSTDINT
101
70
AC_CXX_CINTTYPES
102
71
 
103
 
#--------------------------------------------------------------------
104
 
# Check for libpthread
105
 
#--------------------------------------------------------------------
106
 
 
107
 
ACX_PTHREAD(,AC_MSG_ERROR(could not find libpthread))
108
 
LIBS="${PTHREAD_LIBS} ${LIBS}"
109
 
AM_CFLAGS="${PTHREAD_CFLAGS} ${AM_CFLAGS}"
110
 
CC="$PTHREAD_CC"
111
 
 
112
 
#--------------------------------------------------------------------
113
 
# Check for Google Proto Buffers
114
 
#--------------------------------------------------------------------
115
 
 
116
 
AC_LANG_PUSH([C++])
117
 
AC_LIB_HAVE_LINKFLAGS(protobuf,pthread,
118
 
[#include <google/protobuf/descriptor.h>
119
 
],
120
 
[google::protobuf::FileDescriptor* file;],system)
121
 
AS_IF([test x$ac_cv_libprotobuf = xno],
122
 
      AC_MSG_ERROR([protobuf is required for Drizzle. On Debian this can be found in libprotobuf-dev. On RedHat this can be found in protobuf-devel.]))
123
 
 
124
 
AC_CACHE_CHECK([if protobuf is recent enough], [drizzle_cv_protobuf_recent],
125
 
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
126
 
#include <google/protobuf/descriptor.h>
127
 
#if GOOGLE_PROTOBUF_VERSION < 2000002
128
 
# error Your version of Protobuf is too old
129
 
#endif
130
 
    ]])],
131
 
    [drizzle_cv_protobuf_recent=yes],
132
 
    [drizzle_cv_protobuf_recent=no])])
133
 
if test "$drizzle_cv_protobuf_recent" = "no"
134
 
then
135
 
  AC_MSG_ERROR([Your version of Google Protocol Buffers is too old. Drizzle requires at least version 2.0.2])
136
 
fi
137
 
 
138
 
AC_PATH_PROG([PROTOC],[protoc],[no],[$LIBPROTOBUF_PREFIX/bin:$PATH])
139
 
if test "x$PROTOC" = "xno"
140
 
then
141
 
  AC_MSG_ERROR([Couldn't find the protoc compiler. On Debian this can be found in protobuf-compiler. On RedHat this can be found in protobuf-compiler.])
142
 
fi
143
 
 
144
 
AC_LANG_POP()
 
72
PANDORA_REQUIRE_PTHREAD
 
73
 
 
74
PANDORA_REQUIRE_LIBPROTOBUF
 
75
PANDORA_PROTOBUF_RECENT
 
76
PANDORA_REQUIRE_PROTOC
145
77
 
146
78
#--------------------------------------------------------------------
147
79
# Check for libuuid
546
478
  fdatasync fpresetsticky fpsetmask fsync \
547
479
  getpassphrase getpwnam \
548
480
  getpwuid getrlimit getrusage index initgroups isnan \
549
 
  localtime_r gethrtime gmtime_r \
 
481
  localtime_r log log2 gethrtime gmtime_r \
550
482
  madvise \
551
483
  mkstemp mlockall poll pread pthread_attr_create mmap mmap64 \
552
484
  pthread_attr_getstacksize pthread_attr_setprio pthread_attr_setschedparam \
757
689
drizzled_builtin_list=`echo $drizzled_builtin_list | sed 's/, *$//'`
758
690
AC_DEFINE_UNQUOTED([DRIZZLED_BUILTIN_LIST],[$drizzled_builtin_list],
759
691
                   [List of plugins to be loaded in sql_builtin.cc])
 
692
AC_SUBST(drizzled_plugin_test_list)
760
693
AC_SUBST(drizzled_plugin_libs)
761
694
 
762
695
AC_SUBST(mysql_plugin_dirs)