10 |
|
AC_ARG_ENABLE(xf86-vidmode, [ --enable-xf86-vidmode use the XFree86 VidMode extension [default=yes]], [WANT_XF86_VIDMODE=$enableval], [WANT_XF86_VIDMODE=yes]) |
11 |
|
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]) |
12 |
|
AC_ARG_ENABLE(vosf, [ --enable-vosf enable video on SEGV signals [default=no]], [WANT_VOSF=$enableval], [WANT_VOSF=no]) |
13 |
< |
AC_ARG_ENABLE(16bit-vidmode, [ --enable-16bit-vidmode enable 16-bit video if possible [default=yes]], [WANT_16BIT_VIDMODE=$enableval], [WANT_16BIT_VIDMODE=yes]) |
13 |
> |
|
14 |
> |
dnl Addressing modes. |
15 |
|
AC_ARG_ENABLE(addressing, |
16 |
< |
[ --enable-addressing=mode specify the addressing mode to use [default=fastest]], |
16 |
> |
[ --enable-addressing=AM specify the addressing mode to use [default=fastest]], |
17 |
|
[ case "$enableval" in |
18 |
|
real) ADDRESSING_TEST_ORDER="real";; |
19 |
|
direct) ADDRESSING_TEST_ORDER="direct";; |
20 |
|
banks) ADDRESSING_TEST_ORDER="banks";; |
21 |
< |
dnl fastest) ADDRESSING_TEST_ORDER="real direct banks";; gb-- will enable later... |
22 |
< |
fastest) ADDRESSING_TEST_ORDER="direct banks";; |
22 |
< |
*) AC_MSG_ERROR([--enable-mem-addressing takes only one of the following values: fastest, real, direct, banks]);; |
21 |
> |
fastest)ADDRESSING_TEST_ORDER="direct banks";; |
22 |
> |
*) AC_MSG_ERROR([--enable-addressing takes only one of the following values: fastest, real, direct, banks]);; |
23 |
|
esac |
24 |
|
], |
25 |
– |
dnl [ ADDRESSING_TEST_ORDER="real direct banks" gb-- will probably reactivate later |
25 |
|
[ ADDRESSING_TEST_ORDER="direct banks" |
26 |
|
]) |
27 |
+ |
|
28 |
+ |
dnl External packages. |
29 |
|
AC_ARG_WITH(esd, [ --with-esd support ESD for sound under Linux/FreeBSD [default=yes]], [WANT_ESD=$withval], [WANT_ESD=yes]) |
30 |
|
AC_ARG_WITH(gtk, [ --with-gtk use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes]) |
31 |
|
AC_ARG_WITH(mon, [ --with-mon use mon as debugger [default=yes]], [WANT_MON=$withval], [WANT_MON=yes]) |
452 |
|
for am in $ADDRESSING_TEST_ORDER; do |
453 |
|
case $am in |
454 |
|
real) |
455 |
< |
dnl Requires ability to mmap Low Memory globals. |
455 |
> |
dnl Requires ability to mmap() Low Memory globals |
456 |
|
if [[ "x$ac_cv_can_map_lm" = "xno" ]]; then |
457 |
|
continue |
458 |
|
fi |
459 |
< |
if [[ "x$ac_cv_c_bigendian" = "xyes" ]]; then |
460 |
< |
dnl Requires only VOSF if 16-bit vidmode enable |
461 |
< |
if [[ "x$WANT_16BIT_VIDMODE" = "xyes" ]]; then |
461 |
< |
if [[ "x$CAN_VOSF" = "xno" ]]; then |
462 |
< |
continue |
463 |
< |
fi |
464 |
< |
else |
465 |
< |
DEFINES="$DEFINES -DDISABLE_16BIT_VIDMODE" |
466 |
< |
fi |
467 |
< |
else |
468 |
< |
dnl Requires VOSF |
469 |
< |
if [[ "x$CAN_VOSF" = "xno" ]]; then |
470 |
< |
continue |
471 |
< |
fi |
459 |
> |
dnl Requires VOSF screen updates |
460 |
> |
if [[ "x$CAN_VOSF" = "xno" ]]; then |
461 |
> |
continue |
462 |
|
fi |
463 |
< |
dnl Real addressing will probably work |
463 |
> |
dnl Real addressing will probably work. |
464 |
|
ADDRESSING_MODE="real" |
465 |
|
WANT_VOSF=yes dnl we can use VOSF and we need it actually |
466 |
|
DEFINES="$DEFINES -DREAL_ADDRESSING" |
467 |
|
break |
468 |
|
;; |
469 |
|
direct) |
470 |
< |
dnl Requires VOSF |
470 |
> |
dnl Requires VOSF screen updates |
471 |
|
if [[ "x$CAN_VOSF" = "xyes" ]]; then |
472 |
|
ADDRESSING_MODE="direct" |
473 |
|
WANT_VOSF=yes dnl we can use VOSF and we need it actually |
491 |
|
fi |
492 |
|
fi |
493 |
|
|
494 |
< |
dnl Since real and direct addressing modes automatically activate VOSF, |
495 |
< |
dnl I put this test here. |
506 |
< |
if [[ "x$WANT_VOSF" = "xyes" ]]; then |
507 |
< |
if [[ "x$CAN_VOSF" = "xno" ]]; then |
508 |
< |
AC_MSG_WARN([Sorry, your system does not support Video on SEGV signals]) |
509 |
< |
WANT_VOSF=no |
510 |
< |
else |
494 |
> |
dnl Enable VOSF screen updates with this feature is requested and feasible |
495 |
> |
if [[ "x$WANT_VOSF" = "xyes" -a "x$CAN_VOSF" = "xyes" ]]; then |
496 |
|
AC_DEFINE(ENABLE_VOSF) |
497 |
< |
fi |
497 |
> |
else |
498 |
> |
WANT_VOSF=no |
499 |
|
fi |
500 |
|
|
501 |
|
dnl Check for GAS. |