22 |
|
AC_PROG_MAKE_SET |
23 |
|
AC_PROG_INSTALL |
24 |
|
|
25 |
+ |
dnl We use mon if possible. |
26 |
+ |
MONSRCS= |
27 |
+ |
AC_MSG_CHECKING(for mon) |
28 |
+ |
if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then |
29 |
+ |
AC_MSG_RESULT(yes) |
30 |
+ |
DEFINES="$DEFINES -DENABLE_MON=1" |
31 |
+ |
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" |
32 |
+ |
CXXFLAGS="$CXXFLAGS -I../../../mon/src" |
33 |
+ |
else |
34 |
+ |
AC_MSG_RESULT(no) |
35 |
+ |
DEFINES="$DEFINES -DENABLE_MON=0" |
36 |
+ |
fi |
37 |
+ |
|
38 |
|
dnl Checks for libraries. |
39 |
|
AC_CHECK_LIB(posix4, sem_init) |
40 |
|
|
189 |
|
;; |
190 |
|
esac |
191 |
|
fi |
192 |
< |
SYSSRCS="$SYSSRCS $SEMSRCS $UISRCS" |
192 |
> |
SYSSRCS="$SYSSRCS $SEMSRCS $UISRCS $MONSRCS" |
193 |
|
|
194 |
|
dnl Check for i386 CPU. |
195 |
|
HAVE_I386=no |