Moving tags
[apertium.git] / tags / apertium-fr-ca / release-0.9.0 / autogen.sh
blobf446833292f69b6c2c862d56a6666069f49165c1
1 #! /bin/sh
3 # $Id: autogen.sh,v 1.1 2006/07/13 11:06:16 sortiz Exp $
5 # Copyright (c) 2002 Daniel Elstner <daniel.elstner@gmx.net>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License VERSION 2 as
9 # published by the Free Software Foundation. You are not allowed to
10 # use any other version of the license; unless you got the explicit
11 # permission from the author to do so.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 dir=`echo "$0" | sed 's,[^/]*$,,'`
24 test "x${dir}" = "x" && dir='.'
26 if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`"
27 then
28 echo "This script must be executed directly from the source directory."
29 exit 1
32 rm -f config.cache acconfig.h
34 echo "- aclocal." && \
35 aclocal-1.9 && \
36 echo "- autoconf." && \
37 autoconf && \
38 echo "- autoheader." && \
39 autoheader && \
40 echo "- automake." && \
41 automake-1.9 --add-missing --gnu && \
42 echo && \
43 ./configure "$@" && exit 0
45 exit 1