1 | #!/bin/sh |
---|
2 | # Run this to generate all the initial makefiles, etc. |
---|
3 | |
---|
4 | srcdir=`dirname $0` |
---|
5 | test -z "$srcdir" && srcdir=. |
---|
6 | |
---|
7 | (test -f $srcdir/configure.ac \ |
---|
8 | && test -f $srcdir/ChangeLog \ |
---|
9 | && test -d $srcdir/shell) || { |
---|
10 | echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" |
---|
11 | echo " top-level evolution directory" |
---|
12 | exit 1 |
---|
13 | } |
---|
14 | |
---|
15 | olddir=`pwd` |
---|
16 | cd $srcdir |
---|
17 | |
---|
18 | check_exists() { |
---|
19 | variable=`which $1` |
---|
20 | |
---|
21 | if test -z $variable; then |
---|
22 | echo "*** No $1 found, please intall it ***" >&2 |
---|
23 | exit 1 |
---|
24 | fi |
---|
25 | } |
---|
26 | |
---|
27 | check_exists aclocal |
---|
28 | check_exists autoreconf |
---|
29 | check_exists gtkdocize |
---|
30 | check_exists intltoolize |
---|
31 | |
---|
32 | m4dir=`autoconf --trace 'AC_CONFIG_MACRO_DIR:$1'` |
---|
33 | if [ -n "$m4dir" ]; then |
---|
34 | mkdir -p $m4dir |
---|
35 | fi |
---|
36 | |
---|
37 | aclocal -I m4 || exit $? |
---|
38 | gtkdocize --copy || exit $? |
---|
39 | intltoolize --force --copy --automake || exit $? |
---|
40 | autoreconf --verbose --force --install -Wno-portability || exit $? |
---|
41 | |
---|
42 | cd $olddir |
---|
43 | test -n "$NOCONFIGURE" || "$srcdir/configure" --enable-maintainer-mode "$@" |
---|