22 |
|
|
23 |
|
dnl We use mon if possible. |
24 |
|
MONSRCS= |
25 |
< |
AC_MSG_CHECKING(for mon) |
26 |
< |
if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then |
27 |
< |
AC_MSG_RESULT(yes) |
28 |
< |
WANT_MON=yes |
29 |
< |
DEFINES="$DEFINES -DENABLE_MON=1" |
30 |
< |
MONSRCS="../../../mon/src/mon.cpp ../../../mon/src/mon_6502.cpp ../../../mon/src/mon_68k.cpp ../../../mon/src/mon_8080.cpp ../../../mon/src/mon_cmd.cpp ../../../mon/src/mon_ppc.cpp ../../../mon/src/mon_x86.cpp" |
31 |
< |
CXXFLAGS="$CXXFLAGS -I../../../mon/src" |
32 |
< |
AC_CHECK_LIB(readline, readline) |
33 |
< |
AC_CHECK_HEADERS(readline/readline.h readline/history.h) |
34 |
< |
else |
35 |
< |
AC_MSG_RESULT(no) |
36 |
< |
WANT_MON=no |
37 |
< |
DEFINES="$DEFINES -DENABLE_MON=0" |
25 |
> |
if [[ "x$WANT_MON" = "xyes" ]]; then |
26 |
> |
AC_MSG_CHECKING(for mon) |
27 |
> |
if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then |
28 |
> |
AC_MSG_RESULT(yes) |
29 |
> |
DEFINES="$DEFINES -DENABLE_MON=1" |
30 |
> |
MONSRCS="../../../mon/src/mon.cpp ../../../mon/src/mon_6502.cpp ../../../mon/src/mon_68k.cpp ../../../mon/src/mon_8080.cpp ../../../mon/src/mon_cmd.cpp ../../../mon/src/mon_ppc.cpp ../../../mon/src/mon_x86.cpp" |
31 |
> |
CXXFLAGS="$CXXFLAGS -I../../../mon/src" |
32 |
> |
AC_CHECK_LIB(readline, readline) |
33 |
> |
AC_CHECK_HEADERS(readline/readline.h readline/history.h) |
34 |
> |
else |
35 |
> |
AC_MSG_RESULT(no) |
36 |
> |
AC_MSG_WARN([Could not find mon, ignoring --with-mon.]) |
37 |
> |
WANT_MON=no |
38 |
> |
DEFINES="$DEFINES -DENABLE_MON=0" |
39 |
> |
fi |
40 |
|
fi |
41 |
|
|
42 |
|
dnl Checks for libraries. |