summaryrefslogtreecommitdiffstats
path: root/autogen.sh
blob: c2907c139b0cd38e8f44fe7168ffad277ad91f02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.

if [ "$#" = 0 ] && [ -z "$NOCONFIGURE" ]; then
    echo "*** WARNING: I am going to run \`configure' with no arguments." >&2
    echo "*** If you wish to pass any to it, please specify them on the" >&2
    echo "*** \`$0' command line." >&2
    echo "" >&2
fi

( cd "$srcdir" && autoreconf -fiv && rm -rf autom4te.cache )

if [ -z "$NOCONFIGURE" ]; then
    "$srcdir/configure" "$@" || exit 1
fi