Prepare 0.14.3
[profile/ivi/GSSDP.git] / autogen.sh
1 #! /bin/sh
2 #
3 #  Copyright (C) 2006 OpenedHand Ltd.
4 #  Copyright (C) 2010 Intel.
5 #
6 #  Author: Jorn Baayen <jorn@openedhand.com>
7 #          Neil Roberts <neil@linux.intel.com>
8 #
9 #  This library is free software; you can redistribute it and/or
10 #  modify it under the terms of the GNU Library General Public
11 #  License as published by the Free Software Foundation; either
12 #  version 2 of the License, or (at your option) any later version.
13 #
14 #  This library is distributed in the hope that it will be useful,
15 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 #  Library General Public License for more details.
18 #
19 #  You should have received a copy of the GNU Library General Public
20 #  License along with this library; if not, write to the
21 #  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 #  Boston, MA 02110-1301, USA.
23
24 test -n "$srcdir" || srcdir=`dirname "$0"`
25 test -n "$srcdir" || srcdir=.
26
27 olddir=`pwd`
28 cd "$srcdir"
29
30 gtkdocize || exit 1
31 ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit 1
32
33 cd "$olddir"
34 if test -z "$NOCONFIGURE"; then
35     "$srcdir/configure" --enable-maintainer-mode --enable-debug "$@"
36 fi