-
Notifications
You must be signed in to change notification settings - Fork 19
/
configure.ac
47 lines (41 loc) · 1.14 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
AC_INIT([easyrpg-tools],[1.1],
[https://github.com/EasyRPG/Tools/issues],[easyrpg-tools],[https://easyrpg.org/])
AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
AM_SILENT_RULES([yes])
# helper func
AC_DEFUN([EASYRPG_TOOL_ENABLE],[
AC_ARG_ENABLE([$1],
AS_HELP_STRING([--disable-$1],
[disable $1 tool @<:@default=enabled@:>@]))
AS_IF([test "x$enable_$1" != xno],[
enable_$1=yes
AC_CONFIG_SUBDIRS([$1])
],[])
AM_CONDITIONAL(ENABLE_[]translit([[$1]], [a-z], [A-Z]), [test "x$enable_$1" = xyes])
])
EASYRPG_TOOL_ENABLE([lmu2png])
EASYRPG_TOOL_ENABLE([png2xyz])
EASYRPG_TOOL_ENABLE([xyz2png])
EASYRPG_TOOL_ENABLE([xyzcrush])
EASYRPG_TOOL_ENABLE([gencache])
EASYRPG_TOOL_ENABLE([lcftrans])
EASYRPG_TOOL_ENABLE([lcfviz])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
echo ""
echo "Summary:"
echo "========"
echo ""
echo " prefix: $prefix"
echo ""
echo "Converters:"
echo " lmu2png: $enable_lmu2png"
echo " png2xyz: $enable_png2xyz"
echo " xyz2png: $enable_xyz2png"
echo ""
echo "Other:"
echo " xyzcrush: $enable_xyzcrush"
echo " gencache: $enable_gencache"
echo " lcftrans: $enable_lcftrans"
echo " lcfviz: $enable_lcfviz"