autoconf: disable dri drivers build if being asked

Allow --with-dri-drivers={,no} to disable DRI drivers build.

Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
Signed-off-by: Robert Noland <rnoland@2hip.net>
This commit is contained in:
Florent Thoumie
2008-07-28 14:44:43 +01:00
committed by Robert Noland
parent 57aea290e1
commit b5095ab97f

View File

@@ -624,7 +624,10 @@ dnl If $with_dri_drivers is yes, directories will be added through
dnl platform checks dnl platform checks
DRI_DIRS="" DRI_DIRS=""
case "$with_dri_drivers" in case "$with_dri_drivers" in
no|yes) ;; no) ;;
yes)
DRI_DIRS="yes"
;;
*) *)
# verify the requested driver directories exist # verify the requested driver directories exist
dri_drivers=`IFS=', '; echo $with_dri_drivers` dri_drivers=`IFS=', '; echo $with_dri_drivers`
@@ -670,7 +673,7 @@ if test "$mesa_driver" = dri; then
# converted to use the new interface. i810 are missing # converted to use the new interface. i810 are missing
# because there is no x86-64 system where they could *ever* # because there is no x86-64 system where they could *ever*
# be used. # be used.
if test "x$DRI_DIRS" = x; then if test "x$DRI_DIRS" = "xyes"; then
DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 radeon \ DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 radeon \
savage tdfx unichrome swrast" savage tdfx unichrome swrast"
fi fi
@@ -678,13 +681,13 @@ if test "$mesa_driver" = dri; then
powerpc*) powerpc*)
# Build only the drivers for cards that exist on PowerPC. # Build only the drivers for cards that exist on PowerPC.
# At some point MGA will be added, but not yet. # At some point MGA will be added, but not yet.
if test "x$DRI_DIRS" = x; then if test "x$DRI_DIRS" = "xyes"; then
DRI_DIRS="mach64 r128 r200 r300 radeon tdfx swrast" DRI_DIRS="mach64 r128 r200 r300 radeon tdfx swrast"
fi fi
;; ;;
sparc*) sparc*)
# Build only the drivers for cards that exist on sparc` # Build only the drivers for cards that exist on sparc`
if test "x$DRI_DIRS" = x; then if test "x$DRI_DIRS" = "xyes"; then
DRI_DIRS="mach64 r128 r200 r300 radeon ffb swrast" DRI_DIRS="mach64 r128 r200 r300 radeon ffb swrast"
fi fi
;; ;;
@@ -703,7 +706,7 @@ if test "$mesa_driver" = dri; then
# ffb and gamma are missing because they have not been converted # ffb and gamma are missing because they have not been converted
# to use the new interface. # to use the new interface.
if test "x$DRI_DIRS" = x; then if test "x$DRI_DIRS" = "xyes"; then
DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \ DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \
unichrome savage sis swrast" unichrome savage sis swrast"
fi fi
@@ -718,7 +721,7 @@ if test "$mesa_driver" = dri; then
esac esac
# default drivers # default drivers
if test "x$DRI_DIRS" = x; then if test "x$DRI_DIRS" = "xyes"; then
DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \ DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \
savage sis tdfx trident unichrome ffb swrast" savage sis tdfx trident unichrome ffb swrast"
fi fi
@@ -1041,7 +1044,11 @@ fi
if test "$mesa_driver" = dri; then if test "$mesa_driver" = dri; then
# cleanup the drivers var # cleanup the drivers var
dri_dirs=`echo $DRI_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'` dri_dirs=`echo $DRI_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'`
if test "x$DRI_DIRS" = x; then
echo " DRI drivers: no"
else
echo " DRI drivers: $dri_dirs" echo " DRI drivers: $dri_dirs"
fi
echo " DRI driver dir: $DRI_DRIVER_INSTALL_DIR" echo " DRI driver dir: $DRI_DRIVER_INSTALL_DIR"
echo " TTM API support: $ttmapi" echo " TTM API support: $ttmapi"
fi fi