1#! /bin/sh 2 3# Global variables... 4AUTOCONF="autoconf" 5AUTOHEADER="autoheader" 6AUTOM4TE="autom4te" 7AUTOMAKE="automake" 8ACLOCAL="aclocal" 9 10# Please add higher versions first. The last version number is the minimum 11# needed to compile KDE. Do not forget to include the name/version # 12# separator if one is present, e.g. -1.2 where - is the separator. 13KDE_AUTOCONF_VERS="-2.58 -2.57 257 -2.54 -2.53a -2.53 -2.52 -2.5x" 14KDE_AUTOMAKE_VERS="-1.7 17 -1.6" 15 16# We don't use variable here for remembering the type ... strings. Local 17# variables are not that portable, but we fear namespace issues with our 18# includer. 19checkAutoconf() 20{ 21 for kde_autoconf_version in $KDE_AUTOCONF_VERS; do 22 if test -x "`$WHICH $AUTOCONF$kde_autoconf_version 2>/dev/null`"; then 23 AUTOCONF="`$WHICH $AUTOCONF$kde_autoconf_version`" 24 AUTOHEADER="`$WHICH $AUTOHEADER$kde_autoconf_version`" 25 AUTOM4TE="`$WHICH $AUTOM4TE$kde_autoconf_version`" 26 break 27 fi 28 done 29} 30 31checkAutomake () 32{ 33 for kde_automake_version in $KDE_AUTOMAKE_VERS; do 34 if test -x "`$WHICH $AUTOMAKE$kde_automake_version 2>/dev/null`"; then 35 AUTOMAKE="`$WHICH $AUTOMAKE$kde_automake_version`" 36 ACLOCAL="`$WHICH $ACLOCAL$kde_automake_version`" 37 break 38 fi 39 done 40 41 if test -n "$UNSERMAKE"; then 42 AUTOMAKE="$UNSERMAKE" 43 fi 44} 45 46checkWhich () 47{ 48 WHICH="" 49 for i in "type -p" "which" "type" ; do 50 T=`$i sh 2> /dev/null` 51 test -x "$T" && WHICH="$i" && break 52 done 53} 54 55checkWhich 56checkAutoconf 57checkAutomake 58 59export WHICH AUTOHEADER AUTOCONF AUTOM4TE AUTOMAKE ACLOCAL 60