3 # Querying fvwm installation. Author: Mikhael Goikhman.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 This script is a part of $PACKAGE-$VERSION package.
28 Usage: $script [OPTIONS]
44 [-m] [--fvwm-moduledir]
46 [-p] [--fvwm-perllibdir]
47 [-I] [--default-imagepath]
48 [-U] [--default-userdir]
50 [-e] [--fvwm-exe] print fvwm executable name (in bindir)
51 [-s] [--supports] list supported features, one per line
52 [--supports-<feature>] return: 0 (yes), 100 (no), 200 (unknown)
53 [--is-final] print yes or no
54 [--is-stable] print yes or no
55 [--release-date] print the release date (if final)
60 if test $# -eq 0; then
65 exec_prefix
="@exec_prefix@"
67 datarootdir
="@datarootdir@"
69 libexecdir
="@libexecdir@"
70 sysconfdir
="@sysconfdir@"
72 localedir
="@LOCALEDIR@"
74 fvwm_moduledir
="@FVWM_MODULEDIR@"
75 fvwm_datadir
="@FVWM_DATADIR@"
76 fvwm_perllibdir
="@FVWM_PERLLIBDIR@"
77 fvwm_imagepath
="@FVWM_IMAGEPATH@"
78 fvwm_userdir
='$HOME/.fvwm'
81 VERSIONINFO
="@VERSIONINFO@"
82 release_date
="@RELDATENUM@"
85 with_gettext
=@with_gettext@
87 with_gdkimlib
=@with_gdkimlib@
88 with_gnomelibs
=@with_gnomelibs@
89 with_iconv
=@with_iconv@
90 with_perllib
=@with_perllib@
92 with_readline
=@with_readline@
93 with_rplay
=@with_rplay@
95 with_shape
=@with_shape@
98 with_stroke
=@with_stroke@
99 with_xcursor
=@with_xcursor@
100 with_xinerama
=@with_xinerama@
103 with_xrender
=@with_xrender@
106 is_final
=@ISRELEASED@
108 while test $# -gt 0; do
113 --version|
-version|
-v|
-V)
119 --exec-prefix|
-exec-prefix|
-E)
120 echo "$exec_prefix" ;;
125 --datarootdir|
-datarootdir)
126 echo "$datarootdir" ;;
128 --datadir|
-datadir|
-D)
131 --libexecdir|
-libexecdir|
-L)
132 echo "$libexecdir" ;;
134 --sysconfdir|
-sysconfdir|
-S)
135 echo "$sysconfdir" ;;
140 --localedir|
-localedir|
-O)
143 --fvwm-moduledir|
-fvwm-moduledir|
-m)
144 echo "$fvwm_moduledir" ;;
146 --fvwm-datadir|
-fvwm-datadir|
-d)
147 echo "$fvwm_datadir" ;;
149 --fvwm-perllibdir|
-fvwm-perllibdir|
--perllibdir|
-perllibdir|
-p)
150 echo "$fvwm_perllibdir" ;;
152 --default-imagepath|
-default-imagepath|
-I)
153 echo "$fvwm_imagepath" ;;
155 --default-userdir|
-default-userdir|
-U)
156 echo "$fvwm_userdir" ;;
158 --fvwm-exe|
-fvwm-exe|
-e)
161 --supports|
-supports|
-s)
162 test "$with_bidi" = "yes" && echo "bidi"
163 test "$with_gettext" = "yes" && echo "gettext"
164 test "$with_gtk" = "yes" && echo "gtk"
165 test "$with_gdkimlib" = "yes" && echo "gdk-imlib"
166 test "$with_gnomelibs" = "yes" && echo "gnome-libs"
167 test "$with_iconv" = "yes" && echo "iconv"
168 test "$with_perllib" = "yes" && echo "perllib"
169 test "$with_png" = "yes" && echo "png"
170 test "$with_readline" = "yes" && echo "readline"
171 test "$with_rplay" = "yes" && echo "rplay"
172 test "$with_rsvg" = "yes" && echo "rsvg"
173 test "$with_shape" = "yes" && echo "shape"
174 test "$with_shm" = "yes" && echo "shm"
175 test "$with_sm" = "yes" && echo "sm"
176 test "$with_stroke" = "yes" && echo "stroke"
177 test "$with_xcursor" = "yes" && echo "xcursor"
178 test "$with_xinerama" = "yes" && echo "xinerama"
179 test "$with_xft" = "yes" && echo "xft"
180 test "$with_xpm" = "yes" && echo "xpm"
181 test "$with_xrender" = "yes" && echo "xrender"
185 feature
=`echo "$1" | sed 's/^--supports-//'`
186 feature
=`echo "$feature" | sed 's/[-_]//g'`
187 test "$feature" = "gnomewm" && feature
="gnomehints"
188 with
=`eval echo '$'with_"$feature"`
189 test "$with" = "yes" && exit 0
190 test "$with" = "no" && exit 100
195 echo "Package: $PACKAGE"
196 echo "Version: $VERSION$VERSIONINFO"
198 echo "Instalation options:"
199 echo " prefix: $prefix"
200 echo " exec-prefix: $exec_prefix"
201 echo " bindir: $bindir"
202 echo " datadir: $datadir"
203 echo " libexecdir: $libexecdir"
204 echo " sysconfdir: $sysconfdir"
205 echo " mandir: $mandir"
206 echo " localedir: $localedir"
208 echo "Compiled-in paths:"
209 echo " Module directory: $fvwm_moduledir"
210 echo " Data directory: $fvwm_datadir"
211 echo " Perl lib directory: $fvwm_perllibdir"
212 echo " Default ImagePath: $fvwm_imagepath"
213 echo " Default UserDir: $fvwm_userdir"
215 echo "Support for features:"
216 echo " bidi (bi-directionality): $with_bidi"
217 echo " gettext (Native Lang Support): $with_gettext"
218 echo " gtk (required for FvwmGtk): $with_gtk"
219 echo " gdk-imlib (in FvwmGtk): $with_gdkimlib"
220 echo " gnome-libs (in FvwmGtk): $with_gnomelibs"
221 echo " perllib (Perl library installed): $with_perllib"
222 echo " iconv (i18n conversions): $with_iconv"
223 echo " png: $with_png"
224 echo " readline: $with_readline"
225 echo " rplay: $with_rplay"
226 echo " shape (shaped windows): $with_shape"
227 echo " shm (shared memory): $with_shm"
228 echo " sm (session management): $with_sm"
229 echo " stroke (mouse gestures): $with_stroke"
230 echo " rsvg (SVG icons and images): $with_rsvg"
231 echo " xcursor (ARGB/animated cursors): $with_xcursor"
232 echo " xinerama (multi-head): $with_xinerama"
233 echo " xft (FreeType anti-alias font): $with_xft"
234 echo " xpm: $with_xpm"
235 echo " xrender (XFree86 Xrender extention): $with_xrender"
238 --is-stable|
-is-stable)
239 test "$is_stable" = yes && echo yes
240 test "$is_stable" != yes && echo no
243 --is-final|
-is-final)
244 test "$is_final" = yes && echo yes
245 test "$is_final" != yes && echo no
248 --release-date|
-release-date)
253 echo >&2 "$script: unknown argument '$1'."
254 echo >&2 "Run '$script --help' to get the usage."