summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: f2a6f64a2df1ab3d59014af971a9798a98990cdb (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
37
38
39
40
#!/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 -c || exit 1

echo "Running gtkdocize..."
gtkdocize --copy || exit 1

echo "Running $AUTOMAKE..."
$AUTOMAKE -a -c || 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