~dnax88/ircp-tray/0.7

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: dnax88
  • Date: 2009-01-04 03:16:16 UTC
  • Revision ID: dnax88@gmail.com-20090104031616-lng476iw5qb7eukt
Initial rev~63 (release 0.7.3) merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# $Id: autogen.sh,v 1.2 2006/12/21 06:37:32 lonestar Exp $
 
4
#
 
5
# Copyright (c) 2002  Daniel Elstner  <daniel.elstner@gmx.net>,
 
6
#               2003  Murray Cumming  <murrayc@usa.net>
 
7
#
 
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.
 
12
#
 
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.
 
17
#
 
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.
 
21
 
 
22
 
 
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.
 
25
 
 
26
 
 
27
dir=`echo "$0" | sed 's,[^/]*$,,'`
 
28
test "x${dir}" = "x" && dir='.'
 
29
 
 
30
if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`"
 
31
then
 
32
    echo "This script must be executed directly from the source directory."
 
33
    exit 1
 
34
fi
 
35
 
 
36
# This might not be necessary with newer autotools:
 
37
rm -f config.cache
 
38
 
 
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'"
 
49
echo "- aclocal"                && \
 
50
  aclocal                       && \
 
51
echo "- autoheader"             && \
 
52
  autoheader                    && \
 
53
echo "- autoconf."              && \
 
54
  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  && \
 
58
echo                            && \
 
59
  ./configure "$@"              && exit 0
 
60
 
 
61
exit 1
 
62