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

errtrace() {
   echo 1>&2 \
     "build requires autoconf automake libtool m4 pcre pcre-devel pkg-config"
}

trap errtrace ERR

set -e

if [ ! -f configure.ac -o ! -f COPYING ]; then
	echo "Doesn't look like you're in the source directory" >&2
	exit 1
fi

# old autoreconf/aclocal versions fail hard if m4 doesn't exist
mkdir -p m4
autoreconf --force --install
echo "Now type './configure ...' and 'make' to compile."