~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2009-07-14 22:35:09 UTC
  • mto: (1093.1.16 captain)
  • mto: This revision was merged to the branch mainline in revision 1097.
  • Revision ID: mordred@inaugust.com-20090714223509-og937ckubmxomn89
pandora-buildĀ v0.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
AC_CXX_CSTDINT
101
101
AC_CXX_CINTTYPES
102
102
 
103
 
AC_LIB_PREFIX
104
 
 
105
103
#--------------------------------------------------------------------
106
104
# Check for libpthread
107
105
#--------------------------------------------------------------------
173
171
# Check for tcmalloc/mtmalloc
174
172
#--------------------------------------------------------------------
175
173
 
176
 
AC_ARG_ENABLE([umem],
177
 
  [AS_HELP_STRING([--enable-umem],
178
 
     [Enable linking with libumem @<:@default=off@:>@])],
179
 
  [ac_enable_umem="$enableval"],
180
 
  [ac_enable_umem="no"])
181
 
 
182
 
AC_ARG_ENABLE([tcmalloc],
183
 
  [AS_HELP_STRING([--enable-tcmalloc],
184
 
     [Enable linking with tcmalloc @<:@default=off@:>@])],
185
 
  [ac_enable_tcmalloc="$enableval"],
186
 
  [ac_enable_tcmalloc="no"])
187
 
 
188
 
AC_ARG_ENABLE([mtmalloc],
189
 
  [AS_HELP_STRING([--disable-mtmalloc],
190
 
     [Enable linking with mtmalloc @<:@default=on@:>@])],
191
 
  [ac_enable_mtmalloc="$enableval"],
192
 
  [ac_enable_mtmalloc="yes"])
193
 
 
194
 
AS_IF([test "x$ac_enable_umem" = "xyes"],[
195
 
  AC_CHECK_LIB(umem,malloc,[],[])
196
 
],[
197
 
  case "$target_os" in
198
 
    *linux*)
199
 
      AS_IF([test "x$ac_enable_tcmalloc" != "xno"],[
200
 
        AC_CHECK_LIB(tcmalloc-minimal,malloc,[],[])
201
 
        AS_IF([test "x$ac_cv_lib_tcmalloc_minimal_malloc" != "xyes"],[
202
 
          AC_CHECK_LIB(tcmalloc,malloc,[],[])
203
 
        ])
204
 
      ])
205
 
      ;;
206
 
    *solaris*)
207
 
      AS_IF([test "x$ac_enable_mtmalloc" != "xno"],[
208
 
        AC_CHECK_LIB(mtmalloc,malloc,[],[])
209
 
      ])
210
 
      ;;
211
 
  esac
212
 
])
 
174
PANDORA_HAVE_BETTER_MALLOC
 
175
LIBS="${LIBS} ${BETTER_MALLOC_LIBS}"
213
176
 
214
177
#--------------------------------------------------------------------
215
178
# Check for libdrizzle
216
179
#--------------------------------------------------------------------
217
180
 
218
181
AC_LANG_PUSH(C++)
219
 
AC_LIB_HAVE_LINKFLAGS(drizzle,,
220
 
[#include <libdrizzle/drizzle.h>],
221
 
[
222
 
  const char *version= drizzle_version()
223
 
])
224
 
AS_IF([test x$ac_cv_libdrizzle = xno],
225
 
      AC_MSG_ERROR([libdrizzle is required for Drizzle]))
226
 
 
227
 
AC_CACHE_CHECK([if libdrizzle has virtual columns], [drizzle_cv_libdrizzle_vcol],
228
 
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
229
 
#include <libdrizzle/drizzle.h>
230
 
int foo= DRIZZLE_COLUMN_TYPE_DRIZZLE_VIRTUAL;
231
 
    ]])],
232
 
    [drizzle_cv_libdrizzle_vcol=yes],
233
 
    [drizzle_cv_libdrizzle_vcol=no])])
234
 
if test "$drizzle_cv_libdrizzle_vcol" = "yes"
235
 
then
236
 
  AC_MSG_ERROR([Your version of libdrizzle is too old. Drizzle requires at least version 0.4])
237
 
fi
 
182
PANDORA_REQUIRE_LIBDRIZZLE
238
183
AC_LANG_POP
239
184
 
240
185