configure: Define GLAMOR_HAS_EGL_QUERY_DRIVER when available

Commit 195c2ef8 added this to the Meson
build but neglected to add it to autotools.

Fixes: 195c2ef8 ("glamor: Add a function to get the driver name via EGL_MESA_query_driver")
3 jobs for autoconf-query-driver in 8 minutes and 1 second