~ubuntu-branches/ubuntu/precise/mdds/precise

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2011-10-30 21:50:26 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: package-import@ubuntu.com-20111030215026-sg7nxg386h4qjuzd
Tags: upstream-0.5.4
ImportĀ upstreamĀ versionĀ 0.5.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_INIT(mdds, 0.5.4, kohei.yoshida@gmail.com)
 
2
 
 
3
VERSION=AC_PACKAGE_VERSION
 
4
AC_SUBST(VERSION)
 
5
 
 
6
PACKAGE_TARNAME=AC_PACKAGE_TARNAME
 
7
AC_SUBST(PACKAGE_TARNAME)
 
8
 
 
9
AC_ARG_WITH(hash-container,
 
10
[
 
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.
 
14
 
 
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.
 
21
 
 
22
                          Example:  --with-hash-container=boost],
 
23
,with_hash_container=c++0x)
 
24
 
 
25
AC_MSG_CHECKING([hash container type])
 
26
AC_MSG_RESULT([$with_hash_container])
 
27
 
 
28
OBJDIR=./obj
 
29
SRCDIR=./src
 
30
INCDIR=./include
 
31
QUICKCHECKDIR=./quickcheck
 
32
AC_SUBST(OBJDIR)
 
33
AC_SUBST(SRCDIR)
 
34
AC_SUBST(INCDIR)
 
35
AC_SUBST(QUICKCHECKDIR)
 
36
 
 
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"
 
42
else
 
43
  CPPFLAGS="$CPPFLAGS -std=c++0x"
 
44
fi
 
45
 
 
46
 
 
47
AC_SUBST(CPPFLAGS)
 
48
 
 
49
AC_OUTPUT(Makefile)
 
50
AC_OUTPUT(example/Makefile)
 
51
AC_OUTPUT(misc/mdds.spec)
 
52
AC_OUTPUT(VERSION)