forked from clutter-project/mx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·45 lines (36 loc) · 1.12 KB
/
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
39
40
41
42
43
44
45
#! /bin/sh
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
olddir=`pwd`
cd $srcdir
INTLTOOLIZE=`which intltoolize`
if test -z $INTLTOOLIZE; then
echo "*** No intltoolize found ***"
exit 1
else
intltoolize --force --copy --automake || exit $?
fi
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
echo "*** No gtk-doc support ***"
echo "EXTRA_DIST =" > gtk-doc.make
echo "CLEANFILES =" >> gtk-doc.make
else
gtkdocize || exit $?
sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make \
> gtk-doc.temp \
&& mv gtk-doc.temp gtk-doc.make
sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make \
> gtk-doc.temp \
&& mv gtk-doc.temp gtk-doc.make
fi
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
echo "*** No autoreconf found ***"
exit 1
else
ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit $?
fi
cd $olddir
$srcdir/configure --disable-static --enable-maintainer-flags "$@" && \
echo "Now type 'make' to compile $PROJECT."