-
Notifications
You must be signed in to change notification settings - Fork 13
/
configure.ac
87 lines (66 loc) · 2.43 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
AC_PREREQ(2.5)
AC_INIT([gdbwire], [1.0])
AC_CONFIG_AUX_DIR(build/build-aux)
AC_CONFIG_MACRO_DIR(build/m4)
AM_CONFIG_HEADER(build/config.h)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([subdir-objects])
dnl Checks for programs.
AC_LANG_CPLUSPLUS
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LEX
AC_PROG_YACC
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
dnl Checks for header files.
AC_HEADER_STDC
dnl Add support for automated testing.
dnl
dnl This uses the google test framework for automation.
dnl
dnl It enables the use of the C++ compiler and will create
dnl the extra test_suite program which executes all the
dnl automated tests.
GDBWIRE_ARG_ENABLE_DEFAULT_OFF([tests], [automated testing])
dnl Build the test suite if enable tests is true
AM_CONDITIONAL([WANT_TESTS], [test x$enable_tests = xyes])
dnl Add support for building example programs
dnl
dnl This allows example programs to be built which are useful
dnl for demonstrating how the library operates.
GDBWIRE_ARG_ENABLE_DEFAULT_OFF([examples], [example programs])
dnl Build the examples if enable examples is true
AM_CONDITIONAL([WANT_EXAMPLES], [test x$enable_examples = xyes])
dnl Add support for building the amalgamation
dnl
dnl The amalgamation is useful for projects using gdbwire that
dnl would like to include only a single file into their source tree.
dnl This option requires tcl to build the amalgamation.
GDBWIRE_ARG_ENABLE_DEFAULT_OFF([amalgamation], [amalgamation creation])
dnl Build the amalgamation if enable amalgamation is true
AM_CONDITIONAL([WANT_AMALGAMATION], [test x$enable_amalgamation = xyes])
dnl Find the absolute srcdir and builddir directories.
dnl Put those in the Makefile and config.h.
GDBWIRE_DIRECTORIES()
AC_OUTPUT(Makefile)
# Display configuration options.
cat <<EOF
$PACKAGE_NAME configuration summary:
Install prefix ........... : ${prefix}
bison .................... : ${YFLAGS}
C preprocessor ........... : ${CPP}
C compiler ............... : ${CC}
C++ preprocessor ......... : ${CXXCPP}
C++ compiler ............. : ${CXX}
Linker ................... : ${LD}
C preprocessor flags ..... : ${CPPFLAGS}
C compiler flags ......... : ${CFLAGS}
C++ compiler flags ....... : ${CXXFLAGS}
Linker flags ............. : ${LDFLAGS}
Extra libraries .......... : ${LIBS}
Enabled options:
--enable-tests ........... : ${enable_tests}
--enable-examples ........ : ${enable_examples}
--enable-amalgamation .... : ${enable_amalgamation}
EOF