summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-09-09 15:20:23 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-10-18 17:06:26 +0100
commitf9f7e44c94f7eee4778768adf7afffba6c0581e7 (patch)
tree636d768a02bf61afac29efdc3c55d68b7665b4bb /configure.ac
parent4f1c33fd9d0585b5835c1d1c8a013391b65b37d7 (diff)
downloadexternal_mesa3d-f9f7e44c94f7eee4778768adf7afffba6c0581e7.zip
external_mesa3d-f9f7e44c94f7eee4778768adf7afffba6c0581e7.tar.gz
external_mesa3d-f9f7e44c94f7eee4778768adf7afffba6c0581e7.tar.bz2
loader: remove final sysfs codepath in loader_get_device_name_for_fd()
Effectively everyone with actual hardware and/or requesting the "device_name" requires a working libdrm. Thus they could/should already be using the (now only) codepath. Apart from the code simplification, we can slim down our configure.ac even further. But that will be done in separate patch(es). Cc: Gary Wong <gtw@gnu.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac20
1 files changed, 4 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index 017b872..10cf7ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1356,13 +1356,6 @@ linux*)
need_pci_id=no ;;
esac
-AC_ARG_ENABLE([sysfs],
- [AS_HELP_STRING([--enable-sysfs],
- [enable /sys PCI identification @<:@default=disabled@:>@])],
- [have_sysfs="$enableval"],
- [have_sysfs=no]
-)
-
if test "x$enable_dri" = xyes; then
if test "$enable_static" = yes; then
AC_MSG_ERROR([Cannot use static libraries for DRI drivers])
@@ -1452,11 +1445,6 @@ xdri)
esac
have_pci_id=no
-if test "$have_sysfs" = yes; then
- DEFINES="$DEFINES -DHAVE_SYSFS"
- have_pci_id=yes
-fi
-
if test "$have_libdrm" = yes; then
have_pci_id=yes
fi
@@ -1570,7 +1558,7 @@ if test "x$enable_dri" = xyes; then
fi
if test "x$have_pci_id" != xyes; then
- AC_MSG_ERROR([sysfs or libdrm >= $LIBDRM_REQUIRED required for building DRI])
+ AC_MSG_ERROR([libdrm >= $LIBDRM_REQUIRED required for building DRI])
fi
case "$host_cpu" in
@@ -1788,7 +1776,7 @@ if test "x$enable_gbm" = xauto; then
fi
if test "x$enable_gbm" = xyes; then
if test "x$need_pci_id$have_pci_id" = xyesno; then
- AC_MSG_ERROR([gbm requires sysfs or libdrm >= $LIBDRM_REQUIRED])
+ AC_MSG_ERROR([gbm requires libdrm >= $LIBDRM_REQUIRED])
fi
if test "x$enable_dri" = xyes; then
@@ -2102,7 +2090,7 @@ for plat in $egl_platforms; do
case "$plat$need_pci_id$have_pci_id" in
waylandyesno|drmyesno)
- AC_MSG_ERROR([cannot build $plat platform without sysfs or libdrm >= $LIBDRM_REQUIRED]) ;;
+ AC_MSG_ERROR([cannot build $plat platform without libdrm >= $LIBDRM_REQUIRED]) ;;
esac
done
@@ -2340,7 +2328,7 @@ gallium_require_llvm() {
gallium_require_drm_loader() {
if test "x$need_pci_id$have_pci_id" = xyesno; then
- AC_MSG_ERROR([Gallium drm loader requires sysfs or libdrm >= $LIBDRM_REQUIRED])
+ AC_MSG_ERROR([Gallium drm loader requires libdrm >= $LIBDRM_REQUIRED])
fi
}