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(xf86-vidmode, [ --enable-xf86-vidmode use the XFree86 VidMode extension [default=yes]], [WANT_XF86_VIDMODE=$enableval], [WANT_XF86_VIDMODE=yes]) |
11 |
+ |
AC_ARG_ENABLE(vosf, [ --enable-vosf enable video on SEGV signals [default=yes]], [WANT_VOSF=$enableval], [WANT_VOSF=yes]) |
12 |
|
AC_ARG_WITH(esd, [ --with-esd support ESD for sound under Linux/FreeBSD [default=yes]], [WANT_ESD=$withval], [WANT_ESD=yes]) |
13 |
|
AC_ARG_WITH(gtk, [ --with-gtk use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes]) |
14 |
|
AC_ARG_WITH(mon, [ --with-mon use mon as debugger [default=yes]], [WANT_MON=$withval], [WANT_MON=yes]) |
478 |
|
AC_TRANSLATE_DEFINE(HAVE_SIGSEGV_SKIP_INSTRUCTION, "$ac_cv_have_skip_instruction", |
479 |
|
[Define if we can ignore the fault (instruction skipping in SIGSEGV handler).]) |
480 |
|
|
481 |
+ |
dnl Can we do Video on SEGV Signals ? |
482 |
+ |
CAN_VOSF=no |
483 |
+ |
if [[ "$ac_cv_have_extended_signals" = "yes" -o "$ac_cv_have_sigcontext_hack" = "yes" ]]; then |
484 |
+ |
CAN_VOSF=yes |
485 |
+ |
fi |
486 |
+ |
|
487 |
+ |
dnl Enable VOSF screen updates with this feature is requested and feasible |
488 |
+ |
if [[ "x$WANT_VOSF" = "xyes" -a "x$CAN_VOSF" = "xyes" ]]; then |
489 |
+ |
AC_DEFINE(ENABLE_VOSF, 1, [Define if using video enabled on SEGV signals.]) |
490 |
+ |
else |
491 |
+ |
WANT_VOSF=no |
492 |
+ |
fi |
493 |
+ |
|
494 |
|
dnl Generate Makefile. |
495 |
|
AC_SUBST(SYSSRCS) |
496 |
|
AC_OUTPUT(Makefile) |
501 |
|
echo |
502 |
|
echo XFree86 DGA support .............. : $WANT_XF86_DGA |
503 |
|
echo XFree86 VidMode support .......... : $WANT_XF86_VIDMODE |
504 |
+ |
echo Enable video on SEGV signals ..... : $WANT_VOSF |
505 |
|
echo ESD sound support ................ : $WANT_ESD |
506 |
|
echo GTK user interface ............... : $WANT_GTK |
507 |
|
echo mon debugger support ............. : $WANT_MON |