xf86AutoConfig: try modesetting on all platforms we build it on

Changes check for trying modesetting driver from if defined(__linux__)
to use meson check for if we built the driver for this platform.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith 2022-08-29 14:39:57 -07:00
parent a77d95af61
commit 01b8396d73
3 changed files with 5 additions and 1 deletions

View File

@ -294,7 +294,7 @@ listPossibleVideoDrivers(XF86MatchedDrivers *md)
xf86PciMatchDriver(md);
#endif
#if defined(__linux__)
#if defined(HAVE_MODESETTING_DRIVER)
xf86AddMatchedDriver(md, "modesetting");
#endif

View File

@ -373,6 +373,7 @@ xorg_data.set('WSCONS_SUPPORT',
xorg_data.set('HAVE_STROPTS_H', cc.has_header('stropts.h') ? '1' : false)
xorg_data.set('HAVE_SYS_KD_H', cc.has_header('sys/kd.h') ? '1' : false)
xorg_data.set('HAVE_SYS_VT_H', cc.has_header('sys/vt.h') ? '1' : false)
xorg_data.set('HAVE_MODESETTING_DRIVER', build_modesetting ? '1' : false)
if host_machine.system() == 'freebsd' or host_machine.system() == 'dragonfly'
if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64'

View File

@ -145,4 +145,7 @@
/* Fallback input driver if the assigned driver fails */
#mesondefine FALLBACK_INPUT_DRIVER
/* Define if building the modesetting driver */
#mesondefine HAVE_MODESETTING_DRIVER
#endif /* _XORG_CONFIG_H_ */