1
AC_INIT(mdds, 0.5.4, kohei.yoshida@gmail.com)
3
VERSION=AC_PACKAGE_VERSION
6
PACKAGE_TARNAME=AC_PACKAGE_TARNAME
7
AC_SUBST(PACKAGE_TARNAME)
9
AC_ARG_WITH(hash-container,
11
--with-hash-container specify the type of hash containers to use in test
12
programs. Supported types are: boost, c++0x, or
13
stlport. c++0x is used if unspecified.
15
With c++0x, we assume that unordered_map and
16
unordered_set are available under the std namespace,
17
whereas with boost they are assumed to be defined in
18
the boost namespace. When stlport is specified, we
19
assume that hash_map and hash_set are available
20
under the std namespace.
22
Example: --with-hash-container=boost],
23
,with_hash_container=c++0x)
25
AC_MSG_CHECKING([hash container type])
26
AC_MSG_RESULT([$with_hash_container])
31
QUICKCHECKDIR=./quickcheck
35
AC_SUBST(QUICKCHECKDIR)
37
CPPFLAGS="-DDEBUG_NODE_BASE -DUNIT_TEST -Wall -Os -g -pedantic-errors"
38
if test $with_hash_container = stlport; then
39
CPPFLAGS="$CPPFLAGS -DMDDS_HASH_CONTAINER_STLPORT"
40
elif test $with_hash_container = boost; then
41
CPPFLAGS="$CPPFLAGS -DMDDS_HASH_CONTAINER_BOOST"
43
CPPFLAGS="$CPPFLAGS -std=c++0x"
50
AC_OUTPUT(example/Makefile)
51
AC_OUTPUT(misc/mdds.spec)