* combine recent object property display code with the existing log code,
[geda-gerbv.git] / autogen.sh
blob994f44de5789418394e2e8d7cd609e019c3ae7c5
1 #!/bin/sh
2 rm -f confdefs.h config.* configure aclocal.m4 stamp-h* install-sh missing mkinstalldirs ltmain.sh
3 rm -rf autom4te.cache
4 find . -name Makefile -exec rm {} \;
5 find . -name Makefile.in -exec rm {} \;
7 ############################################################################
9 # libtoolize (libtool)
12 echo "Checking libtoolize version..."
13 libtoolize --version 2>&1 > /dev/null
14 rc=$?
15 if test $rc -ne 0 ; then
16 echo "Could not determine the version of libtool on your machine"
17 echo "libtool --version produced:"
18 libtool --version
19 exit 1
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'`
25 echo " $lt_ver"
27 case $lt_maj in
29 echo "You must have libtool >= 1.4.0 but you seem to have $lt_ver"
30 exit 1
34 if test $lt_min -lt 4 ; then
35 echo "You must have libtool >= 1.4.0 but you seem to have $lt_ver"
36 exit 1
41 echo "You are running a newer libtool than gerbv has been tested with."
42 echo "It will probably work, but this is a warning that it may not."
44 esac
45 echo "Running libtoolize..."
46 libtoolize --force --copy --automake || exit 1
48 ############################################################################
50 # aclocal
52 echo "Checking aclocal version..."
53 acl_ver=`aclocal --version | awk '{print $NF; exit}'`
54 echo " $acl_ver"
56 echo "Running aclocal..."
57 aclocal $ACLOCAL_FLAGS || exit 1
58 echo "... done with aclocal."
60 ############################################################################
62 # autoheader
64 echo "Checking autoheader version..."
65 ah_ver=`autoheader --version | awk '{print $NF; exit}'`
66 echo " $ah_ver"
68 echo "Running autoheader..."
69 autoheader || exit 1
70 echo "... done with autoheader."
72 ############################################################################
74 # automake
76 echo "Checking automake version..."
77 am_ver=`automake --version | awk '{print $NF; exit}'`
78 echo " $am_ver"
80 echo "Running automake..."
81 automake --force --copy --add-missing || exit 1
82 echo "... done with automake."
84 ############################################################################
86 # autoconf
88 echo "Checking autoconf version..."
89 ac_ver=`autoconf --version | awk '{print $NF; exit}'`
90 echo " $ac_ver"
92 echo "Running autoconf..."
93 autoconf || exit 1
94 echo "... done with autoconf."