4 # a leftover cache from a different version will cause no end of headaches
7 ############################################################################
12 echo "Checking libtoolize version..."
13 libtoolize
--version 2>&1 > /dev
/null
15 if test $rc -ne 0 ; then
16 echo "Could not determine the version of libtool on your machine"
17 echo "libtool --version produced:"
21 lt_ver
=`libtoolize --version | awk '{print $NF; exit}'`
22 lt_maj
=`echo $lt_ver | sed 's;\..*;;g'`
23 lt_min
=`echo $lt_ver | sed -e 's;^[0-9]*\.;;g' -e 's;\..*$;;g'`
24 lt_teeny
=`echo $lt_ver | sed -e 's;^[0-9]*\.[0-9]*\.;;g'`
29 echo "You must have libtool >= 1.4.0 but you seem to have $lt_ver"
34 if test $lt_min -lt 4 ; then
35 echo "You must have libtool >= 1.4.0 but you seem to have $lt_ver"
44 echo "You are running a newer libtool than gerbv has been tested with."
45 echo "It will probably work, but this is a warning that it may not."
48 echo "Running libtoolize..."
49 libtoolize
--force --copy --automake ||
exit 1
51 ############################################################################
55 echo "Checking aclocal version..."
56 acl_ver
=`aclocal --version | awk '{print $NF; exit}'`
59 echo "Running aclocal..."
60 aclocal
$ACLOCAL_FLAGS ||
exit 1
61 echo "... done with aclocal."
63 ############################################################################
67 echo "Checking autoheader version..."
68 ah_ver
=`autoheader --version | awk '{print $NF; exit}'`
71 echo "Running autoheader..."
73 echo "... done with autoheader."
75 ############################################################################
79 echo "Checking automake version..."
80 am_ver
=`automake --version | awk '{print $NF; exit}'`
83 echo "Running automake..."
84 automake
--force --copy --add-missing ||
exit 1
85 echo "... done with automake."
87 ############################################################################
91 echo "Checking autoconf version..."
92 ac_ver
=`autoconf --version | awk '{print $NF; exit}'`
95 echo "Running autoconf..."
97 echo "... done with autoconf."