3
# $Id: autogen.sh,v 1.2 2006/12/21 06:37:32 lonestar Exp $
5
# Copyright (c) 2002 Daniel Elstner <daniel.elstner@gmx.net>,
6
# 2003 Murray Cumming <murrayc@usa.net>
8
# This program is free software; you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published
10
# by the Free Software Foundation; either version 2 of the License,
11
# or (at your option) any later version.
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
18
# You should have received a copy of the GNU General Public License
19
# along with this program; if not, write to the Free Software
20
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
# This is meant to be a well-documented, good example of an autogen.sh script
24
# Please email gnome-devel-list@gnome.org if you think it isn't.
27
dir=`echo "$0" | sed 's,[^/]*$,,'`
28
test "x${dir}" = "x" && dir='.'
30
if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`"
32
echo "This script must be executed directly from the source directory."
36
# This might not be necessary with newer autotools:
39
# We use glib-gettextize, which apparently does not add the intl directory
40
# (containing a local copy of libintl code), and therefore has a slightly different Makefile.
41
echo "- glib-gettextize." && \
42
glib-gettextize --copy --force && \
43
echo "- intltoolize." && \
44
intltoolize --copy --force && \
45
echo "- libtoolize." && \
46
libtoolize --copy --force --automake && \
47
# We use aclocal-1.4 because that's required for automake-1.4 later.
48
# Otherwise we get "automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'"
51
echo "- autoheader" && \
53
echo "- autoconf." && \
55
# We use automake-1.4 because later versions cause a failure during distcheck's distuninstall.
56
echo "- automake." && \
57
automake --add-missing --gnu && \
59
./configure "$@" && exit 0