Next: , Previous: guile-tools generate-autoload, Up: Miscellaneous Tools


13.18 guile-tools guile-config

See Install Config, for related discussion.

* Usage: guile-config link

  Print the linker command-line flags necessary to link against
  libguile, and any other libraries it requires.

* Usage: guile-config compile

  Print C compiler flags for compiling code that uses Guile.
  This includes any `-I' flags needed to find Guile's header files.

* Usage: guile-config info [VAR]

  Display the value of the Makefile variable VAR used when Guile
  was built.  If VAR is omitted, display all Makefile variables.
  Use this command to find out where Guile was installed,
  where it will look for Scheme code at run-time, and so on.

* Usage; guile-config re-prefix-info [VAR]

  Like "guile-config info" but wherever VAR's value has a prefix
  that matches the output of "guile-config info prefix", that
  substring is replaced with the literal "${prefix}".  (This does
  not apply when VAR is "prefix" to avoid tautology, obviously. :-)

* Usage: guile-config scmconfig SYMBOL

  Exit successfully if SYMBOL was defined in libguile/scmconfig.h
  (uninstalled header).  Do not display anything.

* Usage: guile-config acsubst VAR

  Display value of VAR if it was one of those AC_SUBSTituted
  during Guile build.  If VAR is not available, signal error.
  This command is equivalent to:
     guile-tools guile-config-data VAR
  with the addition of error checking.


* Usage from a Scheme program:
    (use-modules (scripts guile-config))
    (guile-config . args)       => string
    (guile-config/split . args) => list of strings

  ARGS is one of the "commands" above, such as "info" or "compile",
  followed by an additional optional specifier.  Either element of
  ARGS can be a symbol or a string.  For example, here are two sets
  of equivalent invocations:

    (guile-config 'info 'pkgdatadir)      (guile-config 'compile)
    (guile-config 'info "pkgdatadir")     (guile-config "compile")
    (guile-config "info" 'pkgdatadir)
    (guile-config "info" "pkgdatadir")

  These procedures basically capture the output as if guile-config
  were invoked as a command from the shell.  The former discards
  the final newline.  The latter additionally discards whitespace,
  and always returns a list (sometimes of length 1).

  Behavior is undefined for null ARGS or unrecognized commands.