configure.ac: move require_dri_shared_libs_and_glapi() before its users