-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
81 lines (60 loc) · 1.67 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
PACKAGE=caprice32
CAP32_MAJOR_VERSION=5
CAP32_MINOR_VERSION=0
VERSION=$CAP32_MAJOR_VERSION.$CAP32_MINOR_VERSION
AC_INIT([Caprice32], [5.0],
[<[email protected]>],
[caprice32])
LT_INIT
LT_LANG([C++])
AC_CONFIG_SRCDIR([src/crtc.cpp])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AM_INIT_AUTOMAKE([-Wno-all -Wno-cast-align -Wno-unused-result -Wno-write-strings])
AC_DEFINE_UNQUOTED([PREFIX], ["/opt/caprice32/"], [Define to the root directory.])
AC_DEFINE_UNQUOTED([BINDIR], ["${prefix}/bin/"], [Define Executable Directory.])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LEX
AC_PROG_YACC
AC_CHECK_PROGS([DOXYGEN], [doxygen])
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "${DOXYGEN}"])
AC_PROG_LIBTOOL
AC_PROG_AWK
AC_LANG([C++])
AC_LANG_PUSH([C++])
AC_SUBST(LIBTOOL_DEPS)
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
# Checks for libraries.
AC_CHECK_LIB([z], [main])
AC_CHECK_LIB([SDL], [main])
# Checks for header files.
AC_CHECK_HEADERS([SDL/SDL.h stdint.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UID_T
AC_TYPE_INT64_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_STRUCT_TIMEZONE
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([atexit getcwd memset pow rint strcasecmp strcspn strncasecmp strrchr strtol strtoul])
AC_CONFIG_FILES([Makefile src/Makefile Doxyfile])
LT_OUTPUT
AC_OUTPUT