Since the only valid consumer of the DRI drivers is the X.Org xserver, this changes the default DRI driver directory to match xorg-server: ${libdir}/dri. The old default of /usr/X11R6/modules/dri was wrong for nearly all current systems. --- configs/default | 2 +- configure.ac | 4 ++-- docs/autoconf.html | 3 +-- src/glx/x11/dri_glx.c | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/configs/default b/configs/default index d658478..4aca075 100644 --- a/configs/default +++ b/configs/default @@ -88,7 +88,7 @@ GLCORE_LIB_DEPS = -lm -lpthread # Installation directories (for make install) INSTALL_DIR = /usr/local -DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri +DRI_DRIVER_INSTALL_DIR = $(INSTALL_DIR)/$(LIB_DIR)/dri # Where libGL will look for DRI hardware drivers DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR) diff --git a/configure.ac b/configure.ac index b0f17f9..210dda7 100644 --- a/configure.ac +++ b/configure.ac @@ -443,9 +443,9 @@ AC_ARG_ENABLE([glx-tls], dnl Directory for DRI drivers AC_ARG_WITH([dri-driverdir], [AS_HELP_STRING([--with-dri-driverdir=DIR], - [directory for the DRI drivers @<:@/usr/X11R6/lib/modules/dri@:>@])], + [directory for the DRI drivers @<:@${libdir}/dri@:>@])], [DRI_DRIVER_INSTALL_DIR="$withval"], - [DRI_DRIVER_INSTALL_DIR='/usr/X11R6/lib/modules/dri']) + [DRI_DRIVER_INSTALL_DIR='${libdir}/dri']) AC_SUBST([DRI_DRIVER_INSTALL_DIR]) dnl Direct rendering or just indirect rendering AC_ARG_ENABLE([driglx-direct], diff --git a/docs/autoconf.html b/docs/autoconf.html index d0f9155..837c92f 100644 --- a/docs/autoconf.html +++ b/docs/autoconf.html @@ -178,8 +178,7 @@ drivers. <ul> <li><code>--with-dri-driverdir=DIR</code> - This option specifies the location the DRI drivers will be installed to and the location libGL -will search for DRI drivers. The default is -<code>/usr/X11R6/lib/modules/dri</code>. +will search for DRI drivers. The default is <code>${libdir}/dri</code>. </li> <li><code>--with-dri-drivers=DRIVER,DRIVER,...</code> - This option allows a specific set of DRI drivers to be built. For example, diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index a58060d..da4824f 100644 --- a/src/glx/x11/dri_glx.c +++ b/src/glx/x11/dri_glx.c @@ -84,7 +84,7 @@ struct __GLXDRIconfigPrivateRec { #ifndef DEFAULT_DRIVER_DIR /* this is normally defined in Mesa/configs/default with DRI_DRIVER_SEARCH_PATH */ -#define DEFAULT_DRIVER_DIR "/usr/X11R6/lib/modules/dri" +#define DEFAULT_DRIVER_DIR "/usr/local/lib/dri" #endif static void InfoMessageF(const char *f, ...) -- 1.5.3.2 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev