[Bug 6463] configure script fails to check for libsm