The last use of libsocket functionality was removed in b2f287ca. The corresponding logic in the Autotools build system was removed in 78c680a2.