1 AC_INIT(clients/memcat.c)
2 AC_CONFIG_AUX_DIR(config)
3 AM_CONFIG_HEADER(libmemcached/libmemcached_config.h)
6 MEMCACHED_LIBRARY_NAME=libmemcached
9 MEMCACHED_MAJOR_VERSION=0
10 MEMCACHED_MINOR_VERSION=25
11 MEMCACHED_MICRO_VERSION=0
14 MEMCACHED_API_VERSION=1.0
15 AC_SUBST(MEMCACHED_API_VERSION)
17 #shared library versioning
18 MEMCACHED_LIBRARY_VERSION=2:0:0
22 # current:revision:age
24 # | | +- increment if interfaces have been added
25 # | | set to zero if interfaces have been removed or changed
26 # | +- increment if source code has changed
27 # | set to zero if current is incremented
28 # +- increment if interfaces have been added, removed or changed
30 AC_SUBST(MEMCACHED_LIBRARY_VERSION)
32 PACKAGE=$MEMCACHED_LIBRARY_NAME
33 AC_SUBST(MEMCACHED_LIBRARY_NAME)
35 MEMCACHED_VERSION=$MEMCACHED_MAJOR_VERSION.$MEMCACHED_MINOR_VERSION.$MEMCACHED_MICRO_VERSION
36 MEMCACHED_RELEASE=$MEMCACHED_MAJOR_VERSION.$MEMCACHED_MINOR_VERSION
37 AC_SUBST(MEMCACHED_RELEASE)
38 AC_SUBST(MEMCACHED_VERSION)
40 VERSION=$MEMCACHED_RELEASE
42 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
49 LIBTOOL="$LIBTOOL --preserve-dup-deps"
53 sinclude(config/pod2man.m4)
54 sinclude(config/debug.m4)
55 sinclude(config/dtrace.m4)
56 sinclude(config/byteorder.m4)
57 sinclude(config/64bit.m4)
58 sinclude(config/protocol_binary.m4)
59 sinclude(config/memcached.m4)
61 # We only support GCC and Sun's forte at the moment
62 CFLAGS="-DMEMCACHED_INTERNAL $CFLAGS"
63 if test "$GCC" = "yes"
65 #CFLAGS="-W -std=iso9899:1999 -Wall -Wextra -Wstrict-aliasing -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -O3 $CFLAGS"
66 CFLAGS="-Wall -O3 $CFLAGS"
68 if test "$ENABLE_DEBUG" = "yes"
70 CFLAGS="$CFLAGS -ggdb -DHAVE_DEBUG"
73 CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ $CFLAGS"
74 if test "$ENABLE_DEBUG" = "yes"
76 CFLAGS="$CFLAGS -DHAVE_DEBUG"
78 DTRACEFLAGS="$DTRACEFLAGS"
85 AC_SEARCH_LIBS(getopt_long, gnugetopt)
86 AC_SEARCH_LIBS(socket, socket)
87 AC_SEARCH_LIBS(gethostbyname, nsl)
89 sinclude(config/setsockopt.m4)
91 AC_OUTPUT(Makefile clients/Makefile tests/Makefile docs/Makefile libmemcached/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec)