Remove more line breaks from g_warning()
[claws.git] / autogen.sh
blob093adb39a5c28c25f95843de2f64cd5ebb9b99d5
1 #!/bin/sh
2 # Copyright 1999-2014 the Claws Mail team.
3 # This file is part of Claws Mail package, and distributed under the
4 # terms of the General Public License version 3 (or later).
5 # See COPYING file for license details.
7 bisonver=`bison --version`
9 if [ "$bisonver" = "" ]; then
10 echo Bison is needed to compile Claws Mail git
11 exit 1
14 if [ "$LEX" != "" ]; then
15 flexver=`$LEX --version|sed "s/.* //"`
16 else
17 flexver=`flex --version|sed "s/.* //"`
20 if [ "$flexver" = "" ]; then
21 echo Flex 2.5.31 or greater is needed to compile Claws Mail git
22 exit 1
23 else
24 flex_major=`echo $flexver|sed "s/\..*//"`
25 flex_minor=`echo $flexver|sed "s/$flex_major\.\(.*\)\..*/\1/"`
26 flex_micro=`echo $flexver|sed "s/$flex_major\.$flex_minor\.\(.*\)/\1/"`
28 flex_numversion=$(expr \
29 $flex_major \* 10000 + \
30 $flex_minor \* 100 + \
31 $flex_micro)
33 if [ $flex_numversion -lt 20531 ]; then
34 echo Flex 2.5.31 or greater is needed to compile Claws Mail git
35 exit 1
39 aclocal -I m4 \
40 && libtoolize --force --copy \
41 && autoheader \
42 && automake --add-missing --foreign --copy \
43 && autoconf
44 if test -z "$NOCONFIGURE"; then
45 exec ./configure --enable-maintainer-mode $@
46 fi