Ignore all the files inside build-scripts
[jackmeter.git] / autogen.sh
blobcfd6306058f8b3b0deae1521d5da0191fba07a2c
1 #!/bin/sh
2 # Run this to set up the build system: configure, makefiles, etc.
4 package="jackmeter"
7 srcdir=`dirname $0`
8 test -z "$srcdir" && srcdir=.
10 cd "$srcdir"
11 DIE=0
13 (autoheader --version) < /dev/null > /dev/null 2>&1 || {
14 echo
15 echo "You must have autoconf installed to compile $package."
16 echo "Download the appropriate package for your distribution,"
17 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
18 DIE=1
21 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
22 echo
23 echo "You must have autoconf installed to compile $package."
24 echo "Download the appropriate package for your distribution,"
25 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
26 DIE=1
29 (automake --version) < /dev/null > /dev/null 2>&1 || {
30 echo
31 echo "You must have automake installed to compile $package."
32 echo "Download the appropriate package for your system,"
33 echo "or get the source from one of the GNU ftp sites"
34 echo "listed in http://www.gnu.org/order/ftp.html"
35 DIE=1
38 (pkg-config --version) < /dev/null > /dev/null 2>&1 || {
39 echo
40 echo "You must have pkg-config installed to compile $package."
41 echo "Download the appropriate package for your system,"
42 echo "or get the source from http://pkgconfig.freedesktop.org/"
43 DIE=1
47 if test "$DIE" -eq 1; then
48 exit 1
53 echo "Generating configuration files for $package, please wait...."
55 run_cmd() {
56 echo " running $* ..."
57 if ! $*; then
58 echo failed!
59 exit 1
64 # Because git doesn't support empty directories
65 if [ ! -d "$srcdir/build-scripts" ]; then
66 mkdir "$srcdir/build-scripts"
67 fi
69 run_cmd aclocal $ACLOCAL_FLAGS
70 run_cmd autoheader
71 run_cmd automake --add-missing --copy
72 run_cmd autoconf
74 $srcdir/configure && echo