1 <?xml version='1.0' encoding='utf-8'?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5 <refentry id="nspr-config">
8 <date>15 October 2024</date>
9 <title>Netscape Portable Runtime</title>
10 <productname>nspr</productname>
11 <productnumber>@version@</productnumber>
15 <refentrytitle>nspr-config</refentrytitle>
16 <manvolnum>1</manvolnum>
20 <refname>nspr-config</refname>
21 <refpurpose>Return meta information about nspr libraries</refpurpose>
26 <command>nspr-config</command>
27 <arg><option>--prefix</option></arg>
28 <arg><option>--exec-prefix</option></arg>
29 <arg><option>--includedir</option></arg>
30 <arg><option>--libs</option></arg>
31 <arg><option>--cflags</option></arg>
32 <arg><option>--libdir</option></arg>
33 <arg><option>--version</option></arg>
37 <refsection id="description">
38 <title>Description</title>
39 <para><command>nspr-config</command> is a shell script which can be used to obtain gcc options for building client pacakges of nspr.</para>
43 <title>Options</title>
47 <term><option>--prefix</option></term>
48 <listitem><simpara>Returns the top level system directory under which the nspr libraries are installed.</simpara></listitem>
52 <term><option>--exec-prefix</option></term>
53 <listitem><simpara>Returns the top level system directory under which any nspr binaries would be installed.</simpara></listitem>
57 <term><option>--includedir</option> <replaceable>count</replaceable></term>
58 <listitem><simpara>Returns the path to the directory were the nspr headers are installed.</simpara></listitem>
62 <term><option>--version</option></term>
63 <listitem><simpara>Returns the upstream version of nspr in the form major_version-minor_version-patch_version.</simpara></listitem>
67 <term><option>--libs</option></term>
68 <listitem><simpara>Returns the compiler linking flags.</simpara></listitem>
72 <term><option>--cflags</option></term>
73 <listitem><simpara>Returns the compiler include flags.</simpara></listitem>
77 <term><option>--libdir</option></term>
78 <listitem><simpara>Returns the path to the directory were the nspr libraries are installed.</simpara></listitem>
85 <title>Examples</title>
87 <para>The following example will query for both include path and linkage flags:
89 /usr/bin/nspr-config --cflags --libs
99 <para><filename>/usr/bin/nspr-config</filename></para>
104 <title>See also</title>
105 <para>pkg-config(1)</para>
108 <refsection id="authors">
109 <title>Authors</title>
110 <para>The NSPR liraries were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google.</para>
112 Authors: Elio Maldonado <emaldona@redhat.com>.
116 <!-- don't change -->
117 <refsection id="license">
118 <title>LICENSE</title>
119 <para>Licensed under the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.