X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=configure.ac;h=01d43a2fdf1ee7b447fa13b637a8c938ab197454;hb=1e913adfc6849e88dabde944475a6b888cfc23b7;hp=db73e65c8e22f99b37e0b712da2a0c495dac725d;hpb=0104faa2803775d4f1b2c1115f4b6a8025252041;p=awesomized%2Flibmemcached diff --git a/configure.ac b/configure.ac index db73e65c..01d43a2f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,12 +1,13 @@ -AC_INIT(src/memcat.c) +AC_INIT(clients/memcat.c) AC_CONFIG_AUX_DIR(config) -AM_CONFIG_HEADER(include/libmemcached_config.h) +AM_CONFIG_HEADER(libmemcached/libmemcached_config.h) +AC_CANONICAL_SYSTEM MEMCACHED_LIBRARY_NAME=libmemcached #release versioning MEMCACHED_MAJOR_VERSION=0 -MEMCACHED_MINOR_VERSION=10 +MEMCACHED_MINOR_VERSION=19 MEMCACHED_MICRO_VERSION=0 #API version @@ -14,7 +15,7 @@ MEMCACHED_API_VERSION=1.0 AC_SUBST(MEMCACHED_API_VERSION) #shared library versioning -MEMCACHED_LIBRARY_VERSION=1:1:0 +MEMCACHED_LIBRARY_VERSION=2:0:0 # | | | # +------+ | +---+ # | | | @@ -56,9 +57,9 @@ if test "$GCC" = "yes" then if test "$ENABLE_DEBUG" = "yes" then - CFLAGS="-Wall -ggdb -DHAVE_DEBUG" + CFLAGS="-Wall -ggdb -DMEMCACHED_INTERNAL -DHAVE_DEBUG" else - CFLAGS="-Wall -O3" + CFLAGS="-Wall -O3 -DMEMCACHED_INTERNAL " fi else CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -fast -m64" @@ -67,6 +68,7 @@ else fi AC_C_CONST +AC_HEADER_TIME AC_TYPE_SIZE_T -AC_CHECK_FUNC(gethostbyname_r, AC_DEFINE([HAVE_GETHOSTBYNAME_R], [], [Looking for gethostbyname_r])) -AC_OUTPUT(Makefile src/Makefile tests/Makefile docs/Makefile lib/Makefile include/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec) +AC_SEARCH_LIBS(getopt_long, gnugetopt) +AC_OUTPUT(Makefile clients/Makefile tests/Makefile docs/Makefile libmemcached/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec)