We use the AC_PATH_XTRA macro to find all the X library paths during build, but we weren't actually using the variables it generated for building wmlib. Instead, we just hardcoded the linker flag "-lX11", which may or may not actually work.