summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: e79ff8900ded4a5c4e73f45f2be854ac90334fa0 (plain)
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
#!/bin/sh
# Run this to generate all the initial makefiles, etc. 
AUTOCONF="autoconf"
AUTOHEADER="autoheader"
AUTOMAKE="automake"
ACLOCAL="aclocal"
LIBTOOLIZE="libtoolize"

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

echo "Running $ACLOCAL..."
$ACLOCAL $ACLOCAL_INCLUDES $ACLOCAL_FLAGS || exit 1

echo "Running $AUTOHEADER..."
$AUTOHEADER || exit 1

echo "Running $AUTOCONF..."
$AUTOCONF || exit 1

echo "Running $LIBTOOLIZE --automake..."
$LIBTOOLIZE --automake || exit 1

echo "Running $AUTOMAKE..."
$AUTOMAKE -a || exit 1
$AUTOMAKE -a ohmd/Makefile || exit 1

conf_flags=""

if test x$NOCONFIGURE = x; then
  echo Running $srcdir/configure $conf_flags "$@" ...
  $srcdir/configure $conf_flags "$@" \
  && echo Now type \`make\' to compile. || exit 1
else
  echo Skipping configure process.
fi