Make the whole stuff LGPL only
[platform/upstream/pulseaudio.git] / bootstrap.sh
1 #!/bin/bash
2 # $Id$
3
4 # This file is part of polypaudio.
5 #
6 # polypaudio is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU Lesser General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # polypaudio is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public License
17 # along with polypaudio; if not, write to the Free Software Foundation,
18 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19
20 run_versioned() {
21     local P
22     type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1"
23
24     shift 2
25     "$P" "$@"
26 }
27
28 if [ "x$1" = "xam" ] ; then
29     set -ex
30     run_versioned automake 1.7 -a -c --foreign
31     ./config.status
32 else 
33     set -ex
34
35     rm -rf autom4te.cache
36     rm -f config.cache
37
38     run_versioned aclocal 1.7
39     libtoolize -c --force
40     autoheader
41     run_versioned automake 1.7 -a -c --foreign
42     autoconf -Wall
43
44     CFLAGS="-g -O0" ./configure --sysconfdir=/etc "$@"
45
46     make clean
47 fi