-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
55 lines (46 loc) · 1.37 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
AC_PREREQ([2.71])
AC_CONFIG_MACRO_DIR([m4])
AC_INIT([TameParse],[1.0.0],[andrew@logicalshift.co.uk])
AC_CONFIG_SRCDIR([parsetool/main.cpp])
AC_CONFIG_HEADERS([config.h])
# Use -Os by default for C++ programs (-O2 is really astoundingly bad for some reason)
# (It's generally bad to change the default options, but if you're using gcc or clang,
# you probably don't want to use -O2)
if test -z $CXXFLAGS; then
CXXFLAGS='-Os -g'
fi
# Checks for programs.
AM_INIT_AUTOMAKE([subdir-objects])
AC_PROG_CXX
AC_PROG_CC
LT_INIT
AC_PROG_LN_S
AC_CHECK_PROG(HAVE_XXD, xxd, yes)
if test -z $HAVE_XXD; then
AC_MSG_ERROR([The xxd utility is required to compile the bootstrap language])
fi
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([getcwd])
# Check for boost
AX_BOOST_BASE([1.45])
AC_CONFIG_FILES([Makefile
Test/Makefile
TameParse/Makefile
bootstrap/Makefile
parsetool/Makefile
Examples/Makefile
Examples/Test/Makefile
Examples/JsonPrettyPrinter/Makefile
TextEditors/Makefile
doxy/Makefile])
AC_OUTPUT