configure: Merge the libXrandr existence check with the soname check.