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
22 echo "$cmd is $1. version $required is required to build Lustre."
24 if [ -e /usr/lib/autolustre/bin/$cmd ]; then
26 You apparently already have Lustre-specific autoconf/make RPMs
27 installed on your system at /usr/lib/autolustre/share/$cmd.
28 Please set your PATH to point to those versions:
30 export PATH="/usr/lib/autolustre/bin:\$PATH"
34 CFS provides RPMs which can be installed alongside your
35 existing autoconf/make RPMs, if you are nervous about
38 ftp://ftp.lustre.org/pub/other/autolustre/README.autolustre
40 You may be able to download newer version from:
42 http://ftp.gnu.org/gnu/$cmd/$cmd-$required.tar.gz
45 [ "$cmd" = "autoconf" -a "$required" = "2.57" ] && cat >&2 <<EOF
47 or for RH9 systems you can use:
49 ftp://fr2.rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/autoconf-2.57-3.noarch.rpm
51 [ "$cmd" = "automake" -a "$required" = "1.7.8" ] && cat >&2 <<EOF
53 or for RH9 systems you can use:
55 ftp://fr2.rpmfind.net/linux/fedora/core/1/i386/os/Fedora/RPMS/automake-1.7.8-1.noarch.rpm
67 echo -n "checking for $cmd $required... "
68 if ! $cmd --version >/dev/null ; then
71 version=$($cmd --version | awk "BEGIN { IGNORECASE=1 } /$cmd \(GNU $cmd\)/ { print \$4 }")
73 if ! compare_versions "$required" "$version" ; then
78 check_version automake "1.7.8"
79 check_version autoconf "2.57"
80 echo "Running aclocal..."
82 echo "Running autoheader..."
84 echo "Running automake..."
86 echo "Running autoconf..."