Fixed bug with incorrect un-escaping if there is a dot in wm_class.
[wmaker-crm.git] / autogen.sh
blob1b04bc87e77023b60c591e59c91a0a0f718622bd
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 DIE=0
6 echo "Generating configuration files for WindowMaker, please wait...."
8 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
9 echo
10 echo "You must have autoconf installed to compile WindowMaker."
11 echo "Download the appropriate package for your distribution,"
12 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
13 DIE=1
16 (libtool --version) < /dev/null > /dev/null 2>&1 || {
17 echo
18 echo "You must have libtool installed to compile WindowMaker."
19 echo "Download the appropriate package for your distribution,"
20 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
21 DIE=1
24 (automake --version) < /dev/null > /dev/null 2>&1 || {
25 echo
26 echo "You must have automake installed to compile WindowMaker."
27 echo "Download the appropriate package for your distribution,"
28 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
29 DIE=1
32 if test "$DIE" -eq 1; then
33 exit 1
36 echo " libtoolize --copy --force --automake"
37 libtoolize --copy --force --automake
38 echo " aclocal -I . $ACLOCAL_FLAGS"
39 aclocal -I . $ACLOCAL_FLAGS
40 echo " autoheader"
41 autoheader
42 echo " automake --add-missing --gnu --include-deps"
43 automake --add-missing --gnu --include-deps
44 echo " autoconf"
45 autoconf
47 if [ -x config.status -a -z "$*" ]; then
48 ./config.status --recheck
49 else
50 if test -z "$*"; then
51 echo "I am going to run ./configure with no arguments - if you wish "
52 echo "to pass any to it, please specify them on the $0 command line."
53 echo "If you do not wish to run ./configure, press Ctrl-C now."
54 trap 'echo "configure aborted" ; exit 0' 1 2 15
55 sleep 1
57 ./configure "$@"