comparison configure.in @ 16:735e5a8696d0

Added --disable-dga configure option to disable DGA entirely
author Sam Lantinga <slouken@lokigames.com>
date Thu, 10 May 2001 18:04:03 +0000
parents cf2af46e9e2a
children 8cc4dbfab9ab
comparison
equal deleted inserted replaced
15:ac67f6758d63 16:735e5a8696d0
345 345
346 dnl See if the NAS audio interface is supported 346 dnl See if the NAS audio interface is supported
347 CheckNAS() 347 CheckNAS()
348 { 348 {
349 AC_ARG_ENABLE(nas, 349 AC_ARG_ENABLE(nas,
350 [ --enable-nas support the NAS audio API [default=yes]], 350 [ --enable-nas support the NAS audio API [default=yes]],
351 , enable_nas=yes) 351 , enable_nas=yes)
352 if test x$enable_audio = xyes -a x$enable_nas = xyes; then 352 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
353 AC_MSG_CHECKING(for NAS audio support) 353 AC_MSG_CHECKING(for NAS audio support)
354 have_nas=no 354 have_nas=no
355 if test -r /usr/X11R6/include/audio/audiolib.h ; then 355 if test -r /usr/X11R6/include/audio/audiolib.h ; then
472 if test x$video_x11_vmgamma = xyes; then 472 if test x$video_x11_vmgamma = xyes; then
473 CFLAGS="$CFLAGS -DXFREE86_VMGAMMA" 473 CFLAGS="$CFLAGS -DXFREE86_VMGAMMA"
474 fi 474 fi
475 fi 475 fi
476 fi 476 fi
477 AC_ARG_ENABLE(dga,
478 [ --enable-dga allow use of X11 DGA code [default=yes]],
479 , enable_dga=yes)
477 AC_ARG_ENABLE(video-x11-dgamouse, 480 AC_ARG_ENABLE(video-x11-dgamouse,
478 [ --enable-video-x11-dgamouse use X11 DGA for mouse events [default=yes]], 481 [ --enable-video-x11-dgamouse use X11 DGA for mouse events [default=yes]],
479 , enable_video_x11_dgamouse=yes) 482 , enable_video_x11_dgamouse=yes)
480 AC_MSG_CHECKING(for XFree86 DGA 1.0 support) 483 if test x$enable_dga = xyes; then
481 video_x11_dga=no 484 AC_MSG_CHECKING(for XFree86 DGA 1.0 support)
482 AC_TRY_COMPILE([ 485 video_x11_dga=no
483 #include <X11/Xlib.h> 486 AC_TRY_COMPILE([
484 #include <X11/extensions/xf86dga.h> 487 #include <X11/Xlib.h>
485 ],[ 488 #include <X11/extensions/xf86dga.h>
486 ],[ 489 ],[
487 video_x11_dga=yes 490 ],[
488 ]) 491 video_x11_dga=yes
489 AC_MSG_RESULT($video_x11_dga) 492 ])
490 if test x$video_x11_dga = xyes; then 493 AC_MSG_RESULT($video_x11_dga)
491 CFLAGS="$CFLAGS -DXFREE86_DGAMOUSE" 494 if test x$video_x11_dga = xyes; then
492 if test x$enable_video_x11_dgamouse = xyes; then 495 CFLAGS="$CFLAGS -DXFREE86_DGAMOUSE"
493 CFLAGS="$CFLAGS -DDEFAULT_DGAMOUSE" 496 if test x$enable_video_x11_dgamouse = xyes; then
497 CFLAGS="$CFLAGS -DDEFAULT_DGAMOUSE"
498 fi
499 SYSTEM_LIBS="$SYSTEM_LIBS -lXxf86dga"
494 fi 500 fi
495 SYSTEM_LIBS="$SYSTEM_LIBS -lXxf86dga"
496 fi 501 fi
497 AC_ARG_ENABLE(video-x11-xv, 502 AC_ARG_ENABLE(video-x11-xv,
498 [ --enable-video-x11-xv use X11 XvImage extension for video [default=yes]], 503 [ --enable-video-x11-xv use X11 XvImage extension for video [default=yes]],
499 , enable_video_x11_xv=yes) 504 , enable_video_x11_xv=yes)
500 if test x$enable_video_x11_xv = xyes; then 505 if test x$enable_video_x11_xv = xyes; then
685 690
686 dnl rcg04172001 Set up the Null video driver. 691 dnl rcg04172001 Set up the Null video driver.
687 CheckDummyVideo() 692 CheckDummyVideo()
688 { 693 {
689 AC_ARG_ENABLE(video-dummy, 694 AC_ARG_ENABLE(video-dummy,
690 [ --enable-video-dummy use dummy video driver [default=no]], 695 [ --enable-video-dummy use dummy video driver [default=no]],
691 , enable_video_dummy=no) 696 , enable_video_dummy=no)
692 if test x$enable_video_dummy = xyes; then 697 if test x$enable_video_dummy = xyes; then
693 CFLAGS="$CFLAGS -DENABLE_DUMMYVIDEO" 698 CFLAGS="$CFLAGS -DENABLE_DUMMYVIDEO"
694 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy" 699 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy"
695 VIDEO_DRIVERS="$VIDEO_DRIVERS dummy/libvideo_null.la" 700 VIDEO_DRIVERS="$VIDEO_DRIVERS dummy/libvideo_null.la"