How can I tell what options were compiled with the kernel?

Where can I get the source and some documentation on compiling it?

Basically I want to see if the SMB 2 protocol kernel support is turned on and if not compile a new kernel with it turned on.

Thanks!