targets/libgl-xlib: fix the build against shared_glapi
[mesa.git] / configure.ac
index 3c763c27b9f5bb53bd51c789b036fcac8c6fc9f4..5161361908dd8ad7561bc0cb0c3f6f1ff27ba9e1 100644 (file)
@@ -942,7 +942,7 @@ x*yes*yes*)
 esac
 
 # Building Xlib-GLX requires shared glapi to be disabled.
-if test "x$enable_xlib_glx" = xyes; then
+if test "x$enable_shared_glapi$enable_xlib_glx" = xyesyes; then
     AC_MSG_NOTICE([Shared GLAPI should not used with Xlib-GLX, disabling])
     enable_shared_glapi=no
 fi