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

PROJECT=pkg-config
srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd $srcdir

# Rebuild the autotools for pkg-config
${AUTORECONF-autoreconf} -iv || exit $?

cd $ORIGDIR

if [ -z "$NOCONFIGURE" ] && [ "$1" != --no-configure ]; then
    "$srcdir"/configure "$@" || exit $?
    echo 
    echo "Now type 'make' to compile $PROJECT."
else
    echo "Now type './configure && make' to compile $PROJECT."
fi