+for ac_prog in md5sum md5
+do
+# Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:864: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_MD5SUM'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$MD5SUM"; then
+ ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_MD5SUM="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+MD5SUM="$ac_cv_prog_MD5SUM"
+if test -n "$MD5SUM"; then
+ echo "$ac_t""$MD5SUM" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+test -n "$MD5SUM" && break
+done
+