1= fvwm-config(1)
2
3== NAME
4
5fvwm-config - query an existing fvwm installation
6
7== SYNOPSIS
8
9*fvwm-config* [_--help_] [_--version_] [_--info_] [_--prefix_]
10[_--exec-prefix_] [_--bindir_] [_--datadir_] [_--libexecdir_]
11[_--sysconfdir_] [_--mandir_] [_--localedir_] [_--fvwm-moduledir_]
12[_--fvwm-datadir_] [_--fvwm-perllibdir_] [_--default-imagepath_]
13[_--default-userdir_] [_--fvwm-exe_] [_--supports_]
14[_--supports-<feature>_]
15
16== DESCRIPTION
17
18*fvwm-config* is a shell script that provides an information about the
19fvwm version, installation directories, built-in paths and supported
20features.
21
22== OPTIONS
23
24*fvwm-config* prints to the standard output in all options. Both short
25and long GNU-like option names may be used.
26
27*-h --help -?*::
28  prints the short usage
29*-v --version -V*::
30  prints the version
31*-i --info*::
32  prints the full info page
33*-P --prefix*::
34  prints the installation prefix
35*-E --exec-prefix*::
36  prints the installation exec-prefix
37*-B --bindir*::
38  prints the installation bindir
39*-D --datadir*::
40  prints the installation datadir
41*-L --libexecdir*::
42  prints the installation libexecdir
43*-S --sysconfdir*::
44  prints the installation sysconfdir
45*-M --mandir*::
46  prints the installation mandir
47*-O --localedir*::
48  prints the installation localedir
49*-m --fvwm-moduledir*::
50  prints FVWM_MODULEDIR, where the modules are installed
51*-d --fvwm-datadir*::
52  prints FVWM_DATADIR, where the system wide configs are installed
53*-p --fvwm-perllibdir*::
54  prints FVWM_PERLLIBDIR, where the perl library is installed
55*-I --default-imagepath*::
56  prints the built-in ImagePath
57*-U --default-userdir*::
58  prints the default FVWM_USERDIR, note: $HOME is not expanded
59*-e --fvwm-exe*::
60  prints the fvwm executable name (in bindir)
61*-s --supports*::
62  lists all supported features, one per line
63**--supports-**__<feature>__::
64  prints nothing, returns: 0 if the _<feature>_ is supported, 100 if
65  not, 200 if unknown. All or supported feature names may be found using
66  _--info_ or _--supports_ respectively.
67
68== USAGE
69
70Here are some real life usages.
71
72Checks for xft support: if fvwm-config --supports-xft; then echo 1; else
73echo 0; fi
74
75_fvwm-themes_ package checks for the correct _fvwm_ version installed
76using: fvwm-config --version
77
78and tries to use the same installation directories: fvwm-config --bindir
79--mandir --fvwm-datadir
80
81A way to find the full path to the fvwm executable: echo `fvwm-config
82--bindir`/`fvwm-config --fvwm-exe`
83
84A way to start modules in perl: use lib `fvwm-config -p | tr -d '`; use
85FVWM::Module;
86
87For a more human readable output, try: fvwm-config --info
88
89== COPYING
90
91*fvwm-config* is a part of fvwm package and distributed by the same
92terms, see GNU GPL.
93
94== AUTHOR
95
96Mikhael Goikhman <migo@homemail.com>
97