gbm/backend: fix gbm compile without dri
Commit introduces a fix that allows for gbm to be built with an empty backend. There are situation especially in a Yocto/OE cross compilation environment where you want to build with an empty backend. The particular situation is as such:
The mesa-gl recipe is the preferred provider for virtual/libgbm, virtual/libgl, virtual/mesa, etc... But the x11 DISTRO_FEATURE in't included this leads to build errors such as:
| /../../../ld: src/gbm/libgbm.so.1.0.0.p/main_backend.c.o: in function `find_backend`:
| backend.c:(.text.find_backend+0xa4): undefined reference to `gbm_dri_backend`
| /../../../ld: src/gbm/libgbm.so.1.0.0.p/main_backend.c.o:(.data.rel.ro.builtin_backends+0x4):
undefined reference to `gbm_dri_backend`
| collect2: error: ld returned 1 exit status
Issue should be replicable by setting -Ddri3=disabled and -Dgbm=enabled
Add fix to bypasses compilation issue by excluding gbm dri backend. If HAVE_DRI || HAVE_DRIX not specified.
Signed-off-by: Vincent Davis Jr vince@underview.tech