-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.in
executable file
·119 lines (97 loc) · 2.94 KB
/
configure.in
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
AC_INIT([clr], [1.000])
AC_CONFIG_SRCDIR([])
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config.h)
AC_LANG_C
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_HEADER_STDC
AC_CHECK_HEADERS([sys/types.h sys/stat.h stdio.h stdlib.h string.h stdlib.h errno.h])
AC_CHECK_LIB([pthread], [pthread_mutex_init], [], [
echo "pthread library is missing. pthread is required for this program"
exit -1])
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_ARG_ENABLE(debug,
[ --enable-debug Compile with debugging flags],
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
esac],[debug=false])
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
AC_ARG_ENABLE(unicode,
[ --enable-unicode Compile with UNICODE support],
[case "${enableval}" in
yes) unicode=true ;;
:no) unicode=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-unicode) ;;
esac],[unicode=false])
AM_CONDITIONAL(UNICODE, test x$unicode = xtrue)
AC_ARG_ENABLE(tests,
[ --enable-tests Compile TDump tool],
[case "${enableval}" in
yes) tests=true ;;
:no) tests=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
esac],[tests=false])
AM_CONDITIONAL(TESTS, test x$tests = xtrue)
AC_ARG_WITH(xstl,
[ --with-xstl=<dir> Select xStl path ],
AC_MSG_NOTICE(Using xStl path from:$with_xstl), with_xstl="none")
XSTL_PATH=
if test "x$with_xstl" != xnone; then
XSTL_PATH=$with_xstl
fi
AC_SUBST(XSTL_PATH)
AC_ARG_WITH(pelib,
[ --with-pelib=<dir> Select lib PE path ],
AC_MSG_NOTICE(Using lib PE path from:$with_pelib), with_pelib="none")
PELIB_PATH=
if test "x$with_pelib" != xnone; then
PELIB_PATH=$with_pelib
fi
AC_SUBST(PELIB_PATH)
AC_ARG_WITH(elflib,
[ --with-elflib=<dir> Select ELF lib path ],
AC_MSG_NOTICE(Using ELF lib path from:$with_elflib), with_elflib="none")
ELFLIB_PATH=
if test "x$with_elflib" != xnone; then
ELFLIB_PATH=$with_elflib
fi
AC_SUBST(ELFLIB_PATH)
AC_ARG_WITH(dismount,
[ --with-dismount=<dir> Select lib PE path ],
AC_MSG_NOTICE(Using lib dismount path from:$with_dismount), with_dismount="none")
DISMOUNT_PATH=
if test "x$with_dismount" != xnone; then
DISMOUNT_PATH=$with_dismount
fi
AC_SUBST(DISMOUNT_PATH)
CFLAGS_CLR_COMMON="-Wall -fPIC -DLINUX -Wno-write-strings"
AC_SUBST(CFLAGS_CLR_COMMON)
AC_OUTPUT([Makefile
data/Makefile
compiler/Makefile
compiler/opcodes/Makefile
compiler/processors/arm/Makefile
compiler/processors/ia32/Makefile
compiler/processors/c/Makefile
format/Makefile
format/pe/Makefile
format/signatures/Makefile
format/tables/Makefile
executer/compiler/Makefile
executer/linker/Makefile
executer/runtime/Makefile
executer/runtime/RuntimeClasses/Makefile
runnable/Makefile
console/Makefile
tools/tdump/Makefile
])