[Bug 29591] New: configure could be improved to check for libSM explicitly