glx: Don't hard-code the name "libGL.so.1" in driOpenDriver (v3)
authorKyle Brenneman <kbrenneman@nvidia.com>
Mon, 28 Sep 2015 18:12:05 +0000 (12:12 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 2 Oct 2015 12:25:05 +0000 (13:25 +0100)
commitd35391cfda13afdb19a47003af260e258575ef45
tree4993d6496258da265de24564bf776283cfd33539
parent798f260a2f553e339d7f5fc5120bb627893dc740
glx: Don't hard-code the name "libGL.so.1" in driOpenDriver (v3)

Add a macro GL_LIB_NAME to hold the filename that configure comes up with
based on the --with-gl-lib-name and --enable-mangling options.

In driOpenDriver, use the GL_LIB_NAME macro instead of hard-coding
"libGL.so.1".

v2: Add an #ifndef/#define for GL_LIB_NAME so that non-autoconf builds will
    work.
v3: Fix the library filename in the Makefile.

Signed-off-by: Kyle Brenneman <kbrenneman@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/glx/Makefile.am
src/glx/dri_common.c