3 # taken from gnome-common/macros2/autogen.sh
8 IFS="${IFS= }"; ch_save_IFS="$IFS"; IFS="."
10 for ch_min in $ch_min_version; do
11 ch_cur=`echo $1 | sed 's/[^0-9].*$//'`; shift # remove letter suffixes
12 if [ -z "$ch_min" ]; then break; fi
13 if [ -z "$ch_cur" ]; then ch_status=1; break; fi
14 if [ $ch_cur -gt $ch_min ]; then break; fi
15 if [ $ch_cur -lt $ch_min ]; then ch_status=1; break; fi
23 $cmd is $1. version $required is required to build Lustre.
25 CFS provides RPMs which can be installed alongside your existing autoconf/make
26 RPMs, if you are nervous about upgrading. See
28 ftp://ftp.lustre.org/pub/other/autolustre/README.autolustre
30 You may be able to download a new version from:
31 http://ftp.gnu.org/gnu/$cmd/$cmd-$required.tar.gz
33 [ "$cmd" = "autoconf" -a "$required" = "2.57" ] && cat >&2 <<EOF
37 ftp://fr2.rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/autoconf-2.57-3.noarch.rpm
39 [ "$cmd" = "automake" -a "$required" = "1.7.8" ] && cat >&2 <<EOF
43 ftp://fr2.rpmfind.net/linux/fedora/core/1/i386/os/Fedora/RPMS/automake-1.7.8-1.noarch.rpm
55 echo -n "checking for $cmd $required... "
56 if ! $cmd --version >/dev/null ; then
59 version=$($cmd --version | awk "BEGIN { IGNORECASE=1 } /$cmd \(GNU $cmd\)/ { print \$4 }")
61 if ! compare_versions "$required" "$version" ; then
66 check_version automake "1.7.8"
67 check_version autoconf "2.57"
68 echo "Running aclocal..."
70 echo "Running autoheader..."
72 echo "Running automake..."
74 echo "Running autoconf..."