{
    "content": [
        {
            "type": "text",
            "text": "# pth-config (man)\n\n## NAME\n\npth-config - Pth library build utility\n\n## SYNOPSIS\n\npth-config [--help] [--version] [--all] [--prefix] [--exec-prefix] [--bindir] [--libdir]\n[--includedir] [--mandir] [--datadir] [--acdir] [--cflags] [--ldflags] [--libs]\n\n## DESCRIPTION\n\nThe pth-config program is a little helper utility for easy configuring and building applica‐\ntions based on the pth(3) library.  It can be used to query the C compiler and linker flags\nwhich are required to correctly compile and link the application against the pth(3) library.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (14 subsections)\n- **EXAMPLE**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pth-config",
        "section": "",
        "mode": "man",
        "summary": "pth-config - Pth library build utility",
        "synopsis": "pth-config [--help] [--version] [--all] [--prefix] [--exec-prefix] [--bindir] [--libdir]\n[--includedir] [--mandir] [--datadir] [--acdir] [--cflags] [--ldflags] [--libs]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": "--help",
                "arg": null,
                "description": "Prints the short usage information."
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Prints the version number and date of the installed pth(3) library."
            },
            {
                "flag": "",
                "long": "--all",
                "arg": null,
                "description": "Forces the output of all flags, that is, including extra flags which are not Pth spe‐ cific."
            },
            {
                "flag": "",
                "long": "--prefix",
                "arg": null,
                "description": "Prints the installation prefix of architecture independent files"
            },
            {
                "flag": "",
                "long": "--exec-prefix",
                "arg": null,
                "description": "Prints the installation prefix of architecture dependent files."
            },
            {
                "flag": "",
                "long": "--bindir",
                "arg": null,
                "description": "Prints the installation directory of binaries."
            },
            {
                "flag": "",
                "long": "--libdir",
                "arg": null,
                "description": "Prints the installation directory of libraries."
            },
            {
                "flag": "",
                "long": "--includedir",
                "arg": null,
                "description": "Prints the installation directory of include headers."
            },
            {
                "flag": "",
                "long": "--mandir",
                "arg": null,
                "description": "Prints the installation directory of manual pages."
            },
            {
                "flag": "",
                "long": "--datadir",
                "arg": null,
                "description": "Prints the installation directory of shared data."
            },
            {
                "flag": "",
                "long": "--acdir",
                "arg": null,
                "description": "Prints the installation directory of autoconf data."
            },
            {
                "flag": "",
                "long": "--cflags",
                "arg": null,
                "description": "Prints the C compiler flags which are needed to compile the pth(3)-based application. The output is usually added to the \"CFLAGS\" variable of the applications \"Makefile\"."
            },
            {
                "flag": "",
                "long": "--ldflags",
                "arg": null,
                "description": "Prints the linker flags (\"-L\") which are needed to link the application with the pth(3) library. The output is usually added to the \"LDFLAGS\" variable of the applications \"Make‐ file\"."
            },
            {
                "flag": "",
                "long": "--libs",
                "arg": null,
                "description": "Prints the library flags (\"-l\") which are needed to link the application with the pth(3) library. The output is usually added to the \"LIBS\" variable of the applications \"Make‐ file\"."
            }
        ],
        "examples": [
            "CC      = cc",
            "CFLAGS  = -O `pth-config --cflags`",
            "LDFLAGS = `pth-config --ldflags`",
            "LIBS    = -lm `pth-config --libs`",
            "all: foo",
            "foo: foo.o",
            "$(CC) $(LDFLAGS) -o foo foo.o $(LIBS)",
            "foo.o: foo.c",
            "$(CC) $(CFLAGS) -c foo.c"
        ],
        "see_also": [
            {
                "name": "pth",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pth/3/json"
            },
            {
                "name": "cc",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/cc/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "--help",
                        "lines": 2,
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    },
                    {
                        "name": "--all",
                        "lines": 3,
                        "long": "--all"
                    },
                    {
                        "name": "--prefix",
                        "lines": 2,
                        "long": "--prefix"
                    },
                    {
                        "name": "--exec-prefix",
                        "lines": 2,
                        "long": "--exec-prefix"
                    },
                    {
                        "name": "--bindir",
                        "lines": 2,
                        "long": "--bindir"
                    },
                    {
                        "name": "--libdir",
                        "lines": 2,
                        "long": "--libdir"
                    },
                    {
                        "name": "--includedir",
                        "lines": 2,
                        "long": "--includedir"
                    },
                    {
                        "name": "--mandir",
                        "lines": 2,
                        "long": "--mandir"
                    },
                    {
                        "name": "--datadir",
                        "lines": 2,
                        "long": "--datadir"
                    },
                    {
                        "name": "--acdir",
                        "lines": 2,
                        "long": "--acdir"
                    },
                    {
                        "name": "--cflags",
                        "lines": 3,
                        "long": "--cflags"
                    },
                    {
                        "name": "--ldflags",
                        "lines": 4,
                        "long": "--ldflags"
                    },
                    {
                        "name": "--libs",
                        "lines": 4,
                        "long": "--libs"
                    }
                ]
            },
            {
                "name": "EXAMPLE",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pth-config - Pth library build utility\n",
                "subsections": []
            },
            "VERSION": {
                "content": "GNU Pth 2.0.7 (08-Jun-2006)\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pth-config [--help] [--version] [--all] [--prefix] [--exec-prefix] [--bindir] [--libdir]\n[--includedir] [--mandir] [--datadir] [--acdir] [--cflags] [--ldflags] [--libs]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The pth-config program is a little helper utility for easy configuring and building applica‐\ntions based on the pth(3) library.  It can be used to query the C compiler and linker flags\nwhich are required to correctly compile and link the application against the pth(3) library.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "pth-config accepts the following options:\n",
                "subsections": [
                    {
                        "name": "--help",
                        "content": "Prints the short usage information.\n",
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "content": "Prints the version number and date of the installed pth(3) library.\n",
                        "long": "--version"
                    },
                    {
                        "name": "--all",
                        "content": "Forces the output of all flags, that is, including extra flags which are not Pth spe‐\ncific.\n",
                        "long": "--all"
                    },
                    {
                        "name": "--prefix",
                        "content": "Prints the installation prefix of architecture independent files\n",
                        "long": "--prefix"
                    },
                    {
                        "name": "--exec-prefix",
                        "content": "Prints the installation prefix of architecture dependent files.\n",
                        "long": "--exec-prefix"
                    },
                    {
                        "name": "--bindir",
                        "content": "Prints the installation directory of binaries.\n",
                        "long": "--bindir"
                    },
                    {
                        "name": "--libdir",
                        "content": "Prints the installation directory of libraries.\n",
                        "long": "--libdir"
                    },
                    {
                        "name": "--includedir",
                        "content": "Prints the installation directory of include headers.\n",
                        "long": "--includedir"
                    },
                    {
                        "name": "--mandir",
                        "content": "Prints the installation directory of manual pages.\n",
                        "long": "--mandir"
                    },
                    {
                        "name": "--datadir",
                        "content": "Prints the installation directory of shared data.\n",
                        "long": "--datadir"
                    },
                    {
                        "name": "--acdir",
                        "content": "Prints the installation directory of autoconf data.\n",
                        "long": "--acdir"
                    },
                    {
                        "name": "--cflags",
                        "content": "Prints the C compiler flags which are needed to compile the pth(3)-based application. The\noutput is usually added to the \"CFLAGS\" variable of the applications \"Makefile\".\n",
                        "long": "--cflags"
                    },
                    {
                        "name": "--ldflags",
                        "content": "Prints the linker flags (\"-L\") which are needed to link the application with the pth(3)\nlibrary. The output is usually added to the \"LDFLAGS\" variable of the applications \"Make‐\nfile\".\n",
                        "long": "--ldflags"
                    },
                    {
                        "name": "--libs",
                        "content": "Prints the library flags (\"-l\") which are needed to link the application with the pth(3)\nlibrary. The output is usually added to the \"LIBS\" variable of the applications \"Make‐\nfile\".\n",
                        "long": "--libs"
                    }
                ]
            },
            "EXAMPLE": {
                "content": "CC      = cc\nCFLAGS  = -O `pth-config --cflags`\nLDFLAGS = `pth-config --ldflags`\nLIBS    = -lm `pth-config --libs`\n\nall: foo\nfoo: foo.o\n$(CC) $(LDFLAGS) -o foo foo.o $(LIBS)\nfoo.o: foo.c\n$(CC) $(CFLAGS) -c foo.c\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pth(3), cc(1).\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Ralf S. Engelschall\nrse@engelschall.com\nwww.engelschall.com\n\n\n\n08-Jun-2006                                 GNU Pth 2.0.7                              PTH-CONFIG(1)",
                "subsections": []
            }
        }
    }
}