4
# Reinhard Jessich <reinhard.jessich@telering.at>
7
# Redistribution and use in source and binary forms, with or without
8
# modification, are permitted provided that the following conditions are met:
10
# * Redistributions of source code must retain the above copyright
11
# notice, this list of conditions and the following disclaimer.
13
# * Redistributions in binary form must reproduce the above copyright
14
# notice, this list of conditions and the following disclaimer in
15
# the documentation and/or other materials provided with the
18
# * Neither the name of the copyright holders nor the names of
19
# contributors may be used to endorse or promote products derived
20
# from this software without specific prior written permission.
22
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
# POSSIBILITY OF SUCH DAMAGE.
3
35
# Reconfigure the whole project.
9
41
# never execute this script.
12
# You need automake 1.4-p5, otherwise make dist will not work.
44
# You need automake-1.4-p5 and autoconf-2.13, otherwise strange things could
45
# happen during the build process.
48
export AUTOMAKE AUTOCONF ACLOCAL AUTOHEADER
51
for AUTOMAKE in automake automake14 automake-1.4
53
AUTOMAKE_VER=`(${AUTOMAKE} --version | head -n 1 | cut -d ' ' -f 4 | cut -c -3) 2>/dev/null`
58
if [ "$AUTOMAKE_VER" = "1.4" ]
61
ACLOCAL=aclocal`expr "$AUTOMAKE" : 'automake\(.*\)'`
68
echo "You need to use automake version 1.4 (preferrable 1.4-p5)."
69
echo "You are using `automake --version | head -n 1`."
76
for AUTOCONF in autoconf autoconf213 autoconf-2.13
78
AUTOCONF_VER=`(${AUTOCONF} --version 2>/dev/null | head -n 1 | cut -d ' ' -f 3 | cut -c -4) 2>/dev/null`
83
if [ "$AUTOCONF_VER" = "2.13" ]
86
AUTOHEADER=autoheader`expr "$AUTOCONF" : 'autoconf\(.*\)'`
93
echo "You need to use autoconf version 2.13."
94
echo "You are using `autoconf --version | head -n 1`."
99
# to see what is executed
105
${AUTOMAKE} --foreign --add-missing --copy