{
    "mode": "man",
    "parameter": "pth-config",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pth-config/1/json",
    "generated": "2026-06-16T06:21:05Z",
    "synopsis": "pth-config [--help] [--version] [--all] [--prefix] [--exec-prefix] [--bindir] [--libdir]\n[--includedir] [--mandir] [--datadir] [--acdir] [--cflags] [--ldflags] [--libs]",
    "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": []
        }
    },
    "summary": "pth-config - Pth library build utility",
    "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"
        }
    ]
}