-
Notifications
You must be signed in to change notification settings - Fork 144
/
configure.ac
67 lines (54 loc) · 1.55 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
65
66
67
dnl Indicate the package name and the version to automake
AC_INIT([libserial], [1.0.0])
dnl Indicate the configuration revision number
AC_REVISION($Revision: 1.15 $)
dnl Input and Output configuration information
AC_CONFIG_SRCDIR([src/SerialStream.cpp])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MAKE_SET
dnl LibSerial now requires at least C++14 features in the compiler.
AX_CXX_COMPILE_STDCXX(14, noext, mandatory)
AC_CHECK_PROG(DOCBOOK2PDF, docbook2pdf, docbook2pdf, no)
if test "x$DOCBOOK2PDF" == "xno"; then
AC_MSG_WARN([Could not find docbook2pdf. Disabling creation of user manual.])
HAVE_DOCBOOK2PDF="no"
else
HAVE_DOCBOOK2PDF="yes"
fi
AC_SUBST(DOCBOOK2PDF)
AM_CONDITIONAL(HAVE_DOCBOOK2PDF, test x$HAVE_DOCBOOK2PDF = xyes)
dnl Checks for header files.
AC_CHECK_HEADERS(fcntl.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_ARG_WITH([python3],
AS_HELP_STRING([--without-python3], [Disable Python bindings]),
[], [with_python3=yes])
AM_CONDITIONAL([PYTHON], [test "${with_python3}" != "no"])
AC_ARG_ENABLE([tests],
AS_HELP_STRING([--disable-tests], [Disable tests]),
[], [enable_tests=yes])
AM_CONDITIONAL([TESTS], [test "${enable_tests}" != "no"])
AC_OUTPUT([Makefile
doxygen.conf
libserial.spec
docs/UML/Makefile
docs/Makefile
examples/Makefile
sip/configure.py
sip/Makefile
src/Makefile
src/libserial/Makefile
test/Makefile
libserial.pc])