forked from distcc/distcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.sh
executable file
·38 lines (30 loc) · 844 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /bin/sh -e
# Usage: autogen.sh [srcdir]
# Run this script to build distcc from CVS.
## first try the default names
ACLOCAL="aclocal"
AUTOHEADER="autoheader"
AUTOCONF="autoconf"
if which $AUTOCONF > /dev/null
then
:
else
echo "$0: need autoconf 2.53 or later to regenerate configure scripts" >&2
exit 1
fi
srcdir=`dirname "$0"`
builddir=`pwd`
echo "$0: running $ACLOCAL"
(cd $srcdir && $ACLOCAL -I m4 --output=$builddir/aclocal.m4)
echo "$0: running $AUTOHEADER"
[ -d src ] || mkdir src # Needed for autoheader to generate src/config.h.in.
$AUTOHEADER $srcdir/configure.ac
echo "$0: running $AUTOCONF"
$AUTOCONF $srcdir/configure.ac > configure
chmod +x configure
if [ "$srcdir" = "." ]; then
echo "Now run './configure' and then 'make'."
else
echo "Now run './configure --srcdir=$srcdir' and then 'make'."
fi
exit 0