id="meson-options">
<title><literal>meson setup</literal> Options</title>
<para>
<command>meson setup</command>'s command-line options are explained below.
This list is not exhaustive (use <literal>meson configure --help</literal>
to get one that is). The options not covered here are meant for advanced
use-cases, and are documented in the standard <ulink
url="https://mesonbuild.com/Commands.html#configure">Meson
documentation</ulink>. These arguments can be used with <command>meson
setup</command> as well.
</para>
<sect3 id="meson-options-locations">
<title>Installation Locations</title>
<para>
These options control where <literal>ninja install</literal> (or <literal>meson install</literal>) will put
the files. The <option>--prefix</option> option (example
<xref linkend="install-short-meson"/>) is sufficient for
most cases. If you have special needs, you can customize the
installation subdirectories with the other options described in this
section. Beware however that changing the relative locations of the
different subdirectories may render the installation non-relocatable,
meaning you won't be able to move it after installation.
(The <literal>man</literal> and <literal>doc</literal> locations are
not affected by this restriction.) For relocatable installs, you
might want to use the <literal>-Drpath=false</literal> option
described later.
</para>
<variablelist>
<varlistentry id="configure-prefix-meson">
<term><option>--prefix=<replaceable>PREFIX</replaceable></option></term>
<listitem>
<para>
Install all files under the directory <replaceable>PREFIX</replaceable>
instead of <filename>/usr/local/pgsql</filename> (on Unix based systems) or
<filename><replaceable>current drive letter</replaceable>:/usr/local/pgsql</filename> (on Windows).
The actual files will be installed into various subdirectories; no files
will ever be installed directly into the
<replaceable>PREFIX</replaceable> directory.
</para>
</listitem>
</varlistentry>
<varlistentry id="configure-bindir-meson">
<term><option>--bindir=<replaceable>DIRECTORY</replaceable></option></term>
<listitem>
<para>
Specifies the directory for executable programs. The default
is <filename><replaceable>PREFIX</replaceable>/bin</filename>.
</para>
</listitem>
</varlistentry>
<varlistentry id="configure-sysconfdir-meson">
<term><option>--sysconfdir=<replaceable>DIRECTORY</replaceable></option></term>
<listitem>
<para>
Sets the directory for various configuration files,
<filename><replaceable>PREFIX</replaceable>/etc</filename> by default.
</para>
</listitem>
</varlistentry>
<varlistentry id="configure-libdir-meson">
<term><option>--libdir=<replaceable>DIRECTORY</replaceable></option></term>
<listitem>
<para>
Sets the location to install libraries and dynamically loadable
modules. The default is
<filename><replaceable>PREFIX</replaceable>/lib</filename>.
</para>
</listitem>
</varlistentry>
<varlistentry id="configure-includedir-meson">
<term><option>--includedir=<replaceable>DIRECTORY</replaceable></option></term>
<listitem>
<para>
Sets the directory for installing C and C++ header files. The
default is <filename><replaceable>PREFIX</replaceable>/include</filename>.
</para>
</listitem>
</varlistentry>
<varlistentry id="configure-datadir-meson">
<term><option>--datadir=<replaceable>DIRECTORY</replaceable></option></term>
<listitem>
<para>
Sets the directory for read-only data files used by the
installed programs. The default