AC_INIT(src/memcat.c)
AC_CONFIG_AUX_DIR(config)
-AM_CONFIG_HEADER(libmemcached_config.h)
-AM_INIT_AUTOMAKE("libmemcached", 0.2 )
+AM_CONFIG_HEADER(include/libmemcached_config.h)
+AM_INIT_AUTOMAKE("libmemcached", 0.7)
AC_PROG_CC
AC_PROG_LIBTOOL
LIBTOOL="$LIBTOOL --preserve-dup-deps"
AC_SUBST(LIBTOOL)dnl
+sinclude(config/debug.m4)
sinclude(config/dtrace.m4)
# We only support GCC and Sun's forte at the moment
if test "$GCC" = "yes"
then
- CFLAGS="-Wall -ggdb"
+ if test "$ENABLE_DEBUG" = "yes"
+ then
+ CFLAGS="-Wall -ggdb"
+ else
+ CFLAGS="-Wall -O3"
+ fi
else
CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -fast -m64"
LDFLAGS="-lsocket -lnsl"