configure.ac 1.35 KB
Newer Older
1
2
3
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

Jelte Jansen's avatar
Jelte Jansen committed
4
AC_PREREQ([2.61])
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
AC_INIT(bind, 10.0.0, bind10-bugs@isc.org)
AC_CONFIG_SRCDIR(README)
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_RANLIB

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T

23
#
24
# Check availablity of gtest, which might be used for unit tests.
25
#
26
27
28
29
AC_ARG_WITH(gtest,
[  --with-gtest=PATH       specify a path to Gtest header files (PATH/include) and library (PATH/lib)],
    gtest_path="$withval", gtest_path="no")
if test "$gtest_path" != "no"
30
then
31
32
33
	GTEST_INCLUDES="-I${gtest_path}/include"
	GTEST_LDFLAGS="-L${gtest_path}/lib"
	GTEST_LDADD="-lgtest"
34
else
35
36
37
	GTEST_INCLUDES=
	GTEST_LDFLAGS=
	GTEST_LDADD=
38
fi
39
40
41
42
AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
AC_SUBST(GTEST_INCLUDES)
AC_SUBST(GTEST_LDFLAGS)
AC_SUBST(GTEST_LDADD)
43

44
45
46
47
# Checks for library functions.

AC_CONFIG_FILES([Makefile
                 src/Makefile
48
                 src/bin/Makefile
49
                 src/bin/host/Makefile
50
                 src/bin/parkinglot/Makefile
51
                 src/lib/Makefile
Jelte Jansen's avatar
Jelte Jansen committed
52
53
                 src/lib/dns/Makefile
               ])
54
AC_OUTPUT([src/bin/bind-cfgd/bind-cfgd])
55
AC_OUTPUT