6 |
|
AC_CONFIG_HEADER(config.h) |
7 |
|
|
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_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]) |
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(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_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]) |
15 |
|
|
16 |
|
dnl Checks for programs. |
17 |
|
AC_PROG_CC |
87 |
|
DEFINES="$DEFINES -DENABLE_FBDEV_DGA=0" |
88 |
|
fi |
89 |
|
|
90 |
+ |
dnl We use XFree86 VidMode if possible. |
91 |
+ |
if [[ "x$WANT_XF86_VIDMODE" = "xyes" ]]; then |
92 |
+ |
AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension, [ |
93 |
+ |
DEFINES="$DEFINES -DENABLE_XF86_VIDMODE=1" |
94 |
+ |
LIBS="$LIBS -lXxf86vm" |
95 |
+ |
], [ |
96 |
+ |
AC_MSG_WARN([Could not find XFree86 VidMode extension, ignoring --enable-xf86-vidmode.]) |
97 |
+ |
WANT_XF86_VIDMODE=no |
98 |
+ |
DEFINES="$DEFINES -DENABLE_XF86_VIDMODE=0" |
99 |
+ |
]) |
100 |
+ |
fi |
101 |
+ |
|
102 |
|
dnl We use GTK+ if possible. |
103 |
|
UISRCS=../dummy/prefs_editor_dummy.cpp |
104 |
|
if [[ "x$WANT_GTK" = "xyes" ]]; then |
307 |
|
echo Basilisk II configuration summary: |
308 |
|
echo |
309 |
|
echo XFree86 DGA support .............. : $WANT_XF86_DGA |
310 |
+ |
echo XFree86 VidMode support .......... : $WANT_XF86_VIDMODE |
311 |
|
echo fbdev DGA support ................ : $WANT_FBDEV_DGA |
312 |
|
echo ESD sound support ................ : $WANT_ESD |
313 |
|
echo GTK user interface ............... : $WANT_GTK |