3 # WindowMaker configuration and compilation script.
5 # Copyright (c) 1997, 1998, 1999 Alfredo K. Kojima
8 export LINGUAS
;LINGUAS
=""
9 if test "$NLSDIR" = ""; then
10 export NLSDIR
;NLSDIR
="/usr/lib/locale"
18 echo "Type <Return> to continue"
26 echo "Window Maker installation failed or aborted by user."
32 trap "echo Window Maker installation aborted. ; exit 1" 2 3
35 echo "========================="
36 echo "Window Maker Installation"
37 echo "========================="
39 echo "NOTE: If this script fails, read the INSTALL file and"
40 echo "install by hand."
42 echo "Please read the README, INSTALL and FAQ files before e-mailing "
43 echo "questions. We will IGNORE any questions that are already"
44 echo "answered in the documentation."
48 echo "Did you install libPropList? If not, please install it now."
51 echo "Did you read the INSTALL file?"
54 if [ "$rtfm" != y
]; then
55 echo "Please read the INSTALL file before installing"
61 if [ "$rtfm" != y
]; then
62 echo "Please read the INSTALL file before installing"
68 if [ "$rtfm" != n
]; then
70 echo "Please read the INSTALL file before installing"
73 echo "Do you *swear* that you really read the INSTALL file?"
76 if [ "$rtfm" != y
]; then
77 echo "Please read the INSTALL file before installing"
80 echo "Last chance. You will not get help if you have some problem"
81 echo "because you didn't read that file. Even if your computer explodes."
82 echo "Do you *really* read it?"
85 if [ "$rtfm" != y
]; then
86 echo "Please read the INSTALL file before installing"
90 echo "Ok, you have been warned."
95 if test "$USER" != "root"; then
97 echo "Warning: you must run this script as root to install"
98 echo "Window Maker. Hit <Control>-<C> to quit this script."
105 echo "Option Selection"
106 echo "================"
108 ######################## KDE
110 echo "Do you want KDE support?"
113 if [ "$kde" = y
-o "$kde" = Y
]; then
114 OPTIONS
="$OPTIONS --enable-kde"
117 ######################## GNOME
119 echo "Do you want GNOME support?"
122 if [ "$gnome" = y
-o "$gnome" = Y
]; then
123 OPTIONS
="$OPTIONS --enable-gnome"
126 ######################## OLWM
128 echo "Do you want OPEN LOOK(tm)/olwm support?"
131 if [ "$olwm" = y
-o "$olwm" = Y
]; then
132 OPTIONS
="$OPTIONS --enable-openlook"
135 ######################## NLS
137 echo "Do you want National Language Support?"
141 if [ "$NLS" = "y" -o "$NLS" = "Y" ]; then
143 echo "The supported locales are:"
144 ling
=` (cd po; /bin/ls *.po) `
147 lname
=`(cd po; grep Language-Team $l|cut -f 2 -d: |cut -f 2 -d\ )`
149 lcode
=`basename $l .po`
150 ALL_LINGUAS
="$ALL_LINGUAS $lcode"
153 echo "Type in the locales you want (all will install everything) [none]"
155 if test "$foo" = "all"; then
156 LINGUAS
="$ALL_LINGUAS"
160 echo "Selected locales are: $LINGUAS"
163 for i
in $LINGUAS; do
165 for b
in $ALL_LINGUAS; do
166 if test "$b" = "$i"; then
171 if test "$ok" = "0"; then
173 echo "$i is not a supported locale"
180 echo "Where do you want to put the message files? [$NLSDIR]"
183 if test "x$foo" != "x"; then
187 ##################### Installation path
190 while [ $done = 0 ]; do
192 echo "Where do you want to install Window Maker? [$PREFIX]"
193 echo "Don't change it if you don't know what you're doing."
194 if test "$USER" != "root"; then
195 echo "Make sure to specify a path where you have write permission."
197 echo "(The default will put Window Maker in $PREFIX/bin, $PREFIX/lib etc.)"
200 if test "x$foo" != "x"; then
201 if [ "$foo" = "y" -o "$foo" = "n" ]; then
203 echo "Hmm... I don't think you really want to install Window Maker into \"$foo\""
213 echo " $PREFIX/bin must be in the PATH environment variable"
214 echo "of all users who will use Window Maker"
218 OPTIONS
="$OPTIONS --prefix=$PREFIX"
222 ##################### Configure
223 echo "--------------------------"
224 echo "Configuring Window Maker..."
225 echo "--------------------------"
226 if [ `uname -s` = "SCO_SV" ]; then
227 echo "CFLAGS=\"$CFLAGS -belf -DANSICPP\" ./configure $OPTIONS"
229 CFLAGS
="$CFLAGS -belf -DANSICPP"
231 perform .
/configure
$OPTIONS
233 echo "CFLAGS=\"$CFLAGS $GCCFLAGS\" ./configure $OPTIONS"
235 CFLAGS
="$CFLAGS $GCCFLAGS"
237 perform .
/configure
$OPTIONS
241 #################### Compile
242 echo "-------------------------"
243 echo "Compiling Window Maker..."
244 echo "-------------------------"
245 (cd src
; perform
make clean
)
248 echo "--------------------------"
249 echo "Installing Window Maker..."
250 echo "--------------------------"
254 if [ `uname -s` = "Linux" ]; then
256 echo " Make sure $PREFIX/lib is in the /etc/ld.so.conf file"
261 echo "Installation Finished!"
263 echo "Now, each user that wishes to use WindowMaker must run the wmaker.inst"
264 echo "script that was just installed."
267 if test "$NLS" = "Y"; then
268 echo "Don't forget to set the LANG environment variable to your locale"