c2hs-config(1)

c2hs-config1

Script to get information about the c2hs marshalling library.

Usage

c2hs-config [--c2hs] [--system=HS] [--version] [--libs] [--cflags] [--prefix [=DIR]] [--exec-prefix [=DIR]]

Overview

This manual page briefly describes the c2hs-config command. For more details, refer to the main documentation, which is available in various other formats, including SGML and HTML; see below.

Options

c2hs-config accepts the following options:

--c2hs

Print the path to the c2hs-config tool itself. This slightly simplifies configuration management of libraries generated by C->Haskell, as it is sufficient to know the location of c2hs-config to access all other components of C->Haskell.

--system=HS

Select the target compilation system. Currently, only ghc4 is supported, but this may change in future releases.

--version

Print the currently installed version of C2HS to the standard output.

--libs

Print the linker flags that are necessary to link a program against the C2HS library.

--cflags

Print the compiler flags that are necessary to compile a program using the C2HS library.

--prefix=DIR

If specified, use DIR instead of the installation directory that C->Haskell was built with when computing the output for the --cflags and --libs options. This option is also used for the exec directory if --exec-prefix was not specified. This option must be specified before any --libs or --cflags options.

--exec-prefix=DIR

If specified, use DIR instead of the installation exec directory that C2HS was built with when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options.

Releases

2 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0
  2. 3.1

Author

This manual page was mainly copied from the gtk-config manual page.

It was written by Michael Weber <[email protected]> for the Debian GNU/Linux system (but may be used by others).

From c2hs 0.12.0-1 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.