-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
38 lines (30 loc) · 859 Bytes
/
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT([plc], [0.4], [[email protected]])
AM_CONFIG_HEADER([config.h])
AC_CONFIG_SRCDIR([src/plc.cc])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([dist-bzip2])
dnl enable all warnings and treat warnings as errors (pendantic -- I know)
CXXFLAGS='-Wall -Werror'
dnl option to enable debug/trace output from our code
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on debugging],
[case "${enableval}" in
yes|true) debug=true ;;
no|false) debug=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
esac],[debug=false])
AM_CONDITIONAL(NDEBUG, test x$debug = xfalse)
AC_PROG_CXX
AC_LANG_CPLUSPLUS
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_CONFIG_FILES([
Makefile
doc/Makefile
m4/Makefile
src/Makefile
tests/Makefile
])
AC_OUTPUT