-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.ac
36 lines (26 loc) · 856 Bytes
/
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
AC_INIT([openrabbit], [0.2.3])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE
#AC_ARG_ENABLE(coldboot, AS_HELP_STRING([--disable-coldboot], [Do not build coldboot loader firmware]))
#AM_CONDITIONAL([OPT_DISABLE_COLDBOOT], [test x$debug = xtrue])
AC_ARG_ENABLE(coldboot,
AS_HELP_STRING([--disable-coldboot], [Do not build coldboot loader firmware]),
[], [enable_coldboot=yes])
AM_CONDITIONAL(ENABLE_COLDBOOT, test x"$enable_coldboot" = xyes)
AC_LANG_C
AC_PROG_CC
AC_PROG_CXX
AM_PROG_LIBTOOL
AC_CHECK_PROG(SDCC,sdcc,sdcc, :)
AC_CHECK_PROG(ASRAB,sdasrab,sdasrab, :)
AC_DEFUN([REQUIRE_PROG],
[if test "$1" = ":"; then
AC_MSG_ERROR([Cannot find required program $2.])
fi
])
if test x"$enable_coldboot" = xyes; then
REQUIRE_PROG($SDCC, sdcc)
REQUIRE_PROG($ASRAB, sdasrab)
fi
AC_CONFIG_FILES([Makefile src/Makefile coldboot/Makefile])
AC_OUTPUT