"finished" new menu editor
[wmaker-crm.git] / autogen.sh
blob2ce37aa05997dca8e21ce850aef9240e8a38b81a
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"
37 libtoolize --copy --force
38 echo " aclocal -I . $ACLOCAL_FLAGS"
39 aclocal -I . $ACLOCAL_FLAGS
40 echo " autoheader"
41 autoheader
42 echo " automake --add-missing"
43 automake --add-missing
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 "$@"