wmclockmon: rename `DFLAGS` `debug_CFLAGS`
[dockapps.git] / wmacpiload / autogen.sh
blob5faf4278aff0e8474c71b788361e399635718a46
1 #!/bin/sh
2 # autogen.sh -- Use this script to create generated files from the SVN distribution
3 # Taken from glib CVS
5 PROJECT=wmacpiload
6 TEST_TYPE=-f
7 TEST_FILE=src/main.c
9 ACLOCAL_FLAGS="${ACLOCAL_FLAGS}"
11 srcdir=`dirname $0`
12 test -z "$srcdir" && srcdir=.
14 ORIGDIR=`pwd`
15 cd ${srcdir}
17 DIE=0
19 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
20 echo
21 echo "You must have autoconf installed to compile $PROJECT."
22 echo "Download the appropriate package for your distribution,"
23 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
24 DIE=1
27 (automake --version) < /dev/null > /dev/null 2>&1 || {
28 echo
29 echo "You must have automake installed to compile $PROJECT."
30 echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
31 echo "(or a newer version if it is available)"
32 DIE=1
35 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
36 echo
37 echo "You must have libtool installed to compile $PROJECT."
38 echo "Visit http://www.gnu.org/software/libtool/ for more information."
39 DIE=1
42 if test "${DIE}" -eq 1; then
43 exit 1
46 test ${TEST_TYPE} ${TEST_FILE} || {
47 echo "You must run this script in the top-level $PROJECT directory"
48 exit 1
51 case ${CC} in
52 *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
53 esac
55 aclocal ${ACLOCAL_FLAGS}
57 #libtoolize --force --copy
59 # Optionally feature autoheader
60 (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
62 automake --add-missing --copy ${am_opt}
64 autoconf
66 cd ${ORIGDIR}
68 rm -rf autom4te.cache