8 |
|
dnl Options. |
9 |
|
AC_ARG_ENABLE(xf86-dga, [ --enable-xf86-dga use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes]) |
10 |
|
AC_ARG_ENABLE(fbdev-dga, [ --enable-fbdev-dga use direct frame buffer access via /dev/fb [default=yes]], [WANT_FBDEV_DGA=$enableval], [WANT_FBDEV_DGA=yes]) |
11 |
< |
AC_ARG_ENABLE(esd, [ --enable-esd Enlightened Sound Daemon support [default=yes]], [WANT_ESD=$enableval], [WANT_ESD=yes]) |
12 |
< |
AC_ARG_ENABLE(ui, [ --enable-ui use GTK user interface [default=yes]], [WANT_UI=$enableval], [WANT_UI=yes]) |
11 |
> |
AC_ARG_WITH(esd, [ --with-esd support ESD for sound under Linux/FreeBSD [default=yes]], [WANT_ESD=$withval], [WANT_ESD=yes]) |
12 |
> |
AC_ARG_WITH(gtk, [ --with-gtk use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes]) |
13 |
> |
AC_ARG_WITH(mon, [ --with-mon use mon as debugger [default=yes]], [WANT_MON=$withval], [WANT_MON=yes]) |
14 |
|
|
15 |
|
dnl Checks for programs. |
16 |
|
AC_PROG_CC |
28 |
|
DEFINES="$DEFINES -DENABLE_MON=1" |
29 |
|
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" |
30 |
|
CXXFLAGS="$CXXFLAGS -I../../../mon/src" |
31 |
+ |
AC_CHECK_LIB(readline, readline) |
32 |
+ |
AC_CHECK_HEADERS(readline/readline.h readline/history.h) |
33 |
|
else |
34 |
|
AC_MSG_RESULT(no) |
35 |
|
WANT_MON=no |
88 |
|
|
89 |
|
dnl We use GTK+ if possible. |
90 |
|
UISRCS=../dummy/prefs_editor_dummy.cpp |
91 |
< |
if [[ "x$WANT_UI" = "xyes" ]]; then |
91 |
> |
if [[ "x$WANT_GTK" = "xyes" ]]; then |
92 |
|
AM_PATH_GTK(1.2.0, [ |
93 |
|
DEFINES="$DEFINES -DENABLE_GTK=1" |
94 |
|
CFLAGS="$CFLAGS $GTK_CFLAGS" |
97 |
|
UISRCS=prefs_editor_gtk.cpp |
98 |
|
], [ |
99 |
|
AC_MSG_WARN([Could not find GTK+, disabling user interface.]) |
100 |
< |
WANT_UI=no |
100 |
> |
WANT_GTK=no |
101 |
|
]) |
102 |
|
fi |
103 |
|
|
294 |
|
echo XFree86 DGA support .............. : $WANT_XF86_DGA |
295 |
|
echo fbdev DGA support ................ : $WANT_FBDEV_DGA |
296 |
|
echo ESD sound support ................ : $WANT_ESD |
297 |
< |
echo GTK user interface ............... : $WANT_UI |
297 |
> |
echo GTK user interface ............... : $WANT_GTK |
298 |
|
echo mon debugger support ............. : $WANT_MON |
299 |
|
echo i386 assembly optimizations ...... : $WANT_X86_ASSEMBLY |
300 |
|
echo SPARC V8 assembly optimizations .. : $WANT_SPARC_V8_ASSEMBLY |