-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathconfigure.ac
More file actions
36 lines (28 loc) · 863 Bytes
/
configure.ac
File metadata and controls
36 lines (28 loc) · 863 Bytes
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
AC_PREREQ(2.59)
AC_INIT([cruceGame], [0.2.0])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([subdir-objects])
AC_PROG_LIBTOOL
AC_CHECK_HEADERS([curses.h])
AC_CHECK_CUTTER
AM_CONDITIONAL(CUTTER, test x"$cutter_use_cutter" = x"yes")
AC_ARG_ENABLE(debug,
[--enable-debug Enable debug flags],
[case "$enableval" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR(Bad value ${enableval} for --enable-debug);;
esac],
[debug=false])
if test "$debug" = "true"; then
echo "DEBUG MODE ENABLED"
else
echo "DEBUG MODE DISABLED"
fi
AM_CONDITIONAL(DEBUG, test x"$debug" = x"true")
AC_CONFIG_FILES([Makefile
src/Makefile
test/Makefile])
AC_OUTPUT