-
Notifications
You must be signed in to change notification settings - Fork 21
/
configure.ac
executable file
·64 lines (46 loc) · 1.76 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([libpaxos-cpp], [0.6.0], http://wwww.leonmergen.com/libpaxos-cpp/)
AC_CONFIG_SRCDIR([paxos++/server.hpp])
AC_CONFIG_HEADER([config.h])
LT_INIT([shared static])
# Makefile initialization.
AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
# Checks for programs.
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug], [Enable debugging output]))
AC_ARG_ENABLE([sqlite],
AS_HELP_STRING([--enable-sqlite], [Enable sqlite durable backend]))
AC_ARG_WITH([includes],
[AS_HELP_STRING([--with-includes], [look for additional header files in DIRS])],
[],
[])
AC_ARG_WITH([libraries],
[AS_HELP_STRING([--with-libraries], [look for additional libraries in DIRS])],
[],
[])
for dir in $with_libraries
do
LIBDIRS="$LIBDIRS -L$dir"
done
for dir in $with_includes
do
INCLUDEDIRS="$INCLUDEDIRS -I$dir"
done
AM_CONDITIONAL(HAVE_SQLITE, test "x$enable_sqlite" = "xyes")
AM_CONDITIONAL(HAVE_DEBUG, test "x$enable_debug" = "xyes")
DEBUG=""
AS_IF([test "x$enable_debug" == "xyes"], [
DEBUG="-Wall -Werror -g -ggdb -DDEBUG"
])
CXXFLAGS="$CXXFLAGS -std=gnu++0x $INCLUDEDIRS $DEBUG $BOOST_LOG"
LDFLAGS="$LDFLAGS $LIBDIRS"
AC_PROG_CC
AC_PROG_CXX
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile paxos++/Makefile examples/Makefile examples/introduction_1/Makefile examples/lock_service_1/Makefile examples/lock_service_2/Makefile test/Makefile])
AC_OUTPUT