Appendix E. Configure Options
As we explained in Chapter 2, the configure program is run before the Samba source code is compiled to fit the compilation process to the local architecture. At this stage, it is possible to specify options to customize Samba’s behavior further and include or exclude features. This is an example of specifying configure options:
# ./configure --with-smbmount --with-configdir=/etc/samba --with-manpages-langs=jaThis example configures the Samba installation to support mounting
SMB filesystems, look for the Samba configuration file in
/etc/samba (instead of the default location of
/usr/local/samba/lib), and install
Japanese-language manual pages. We have picked these three configure
options because they illustrate the usage of the three types of
options that are included up to Samba 3.0. The
--with-smbmount option is a Boolean option, which
can take a value of yes or no.
All the Boolean options are set to no by default,
and it is only necessary to provide the option to turn it on. If you
want to be more explicit, you can specify
--with-smbmount=yes. To turn an option off
explicitly, you can also specify
--without-
feature
rather than
--with-
feature
=no.
In the case of the other two options we have shown, an argument must
be supplied after the equals (=) sign. Some of the options are used to specify the directories that Samba uses for various purposes. Only one option is in the last group, where something other than a directory is specified as an option ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access