~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2008-07-15 20:15:20 UTC
  • mto: (77.3.22 glibclient)
  • mto: This revision was merged to the branch mainline in revision 170.
  • Revision ID: monty@inaugust.com-20080715201520-dzychv497wkfrmqt
Added --enable-tcmalloc which will enable searching for and linking with tcmalloc if you have it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
fi
283
283
AC_SUBST(LD_VERSION_SCRIPT)
284
284
 
 
285
 
285
286
#--------------------------------------------------------------------
286
287
# Check for libevent
287
288
#--------------------------------------------------------------------
305
306
AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR(could not find libpthread)])
306
307
 
307
308
#--------------------------------------------------------------------
 
309
# Check for tcmalloc
 
310
#--------------------------------------------------------------------
 
311
 
 
312
AC_ARG_ENABLE([tcmalloc],
 
313
    [AS_HELP_STRING([--enable-tcmalloc],
 
314
       [Enable linking with tcmalloc @<:@default=off@:>@])],
 
315
    [ac_warn_strict_aliasing="$enableval"],
 
316
    [ac_warn_strict_aliasing="no"])
 
317
 
 
318
if test "x$ac_warn_strict_aliasing" = "xyes"
 
319
then
 
320
  AC_CHECK_LIB(tcmalloc,malloc,[],[])
 
321
fi
 
322
 
 
323
#--------------------------------------------------------------------
308
324
# Check for libz
309
325
#--------------------------------------------------------------------
310
326