sm: let configure detect xpmem

and let the user specify the xpmem directory