Added new command: memcached_flush_buffers
[m6w6/libmemcached] / config / 64bit.m4
1 dnl ---------------------------------------------------------------------------
2 dnl Macro: 64BIT
3 dnl ---------------------------------------------------------------------------
4 AC_ARG_ENABLE(64bit,
5 [ --enable-64bit Build 64bit library.],
6 [
7 org_cflags=$CFLAGS
8 CFLAGS=-m64
9 AC_LANG(C)
10 AC_RUN_IFELSE([
11 AC_LANG_PROGRAM([], [ if (sizeof(void*) != 8) return 1;])
12 ],[
13 CFLAGS="$CFLAGS $org_cflags"
14 ],[
15 AC_MSG_ERROR([Don't know how to build a 64-bit object.])
16 ])
17 org_cxxflags=$CXXFLAGS
18 CXXFLAGS=-m64
19 AC_LANG(C++)
20 AC_RUN_IFELSE([
21 AC_LANG_PROGRAM([], [ if (sizeof(void*) != 8) return 1;])
22 ],[
23 CXXFLAGS="$CXXFLAGS $org_cxxflags"
24 ],[
25 AC_MSG_ERROR([Don't know how to build a 64-bit object.])
26 ])
27
28 ])
29 dnl ---------------------------------------------------------------------------
30 dnl End Macro: 64BIT
31 dnl ---------------------------------------------------------------------------