+ test -n "$AWK" && break
+done
+test -n "$AWK" || AWK=""no""
+
+if test x$AWK = "xno"; then
+ { { echo "$as_me:$LINENO: error: awk is required" >&5
+echo "$as_me: error: awk is required" >&2;}
+ { (exit 1); exit 1; }; }
+else
+ export AWK
+fi
+
+for ac_prog in md5sum
+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 "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_path_MD5SUM+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $MD5SUM in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+MD5SUM=$ac_cv_path_MD5SUM
+if test -n "$MD5SUM"; then
+ { echo "$as_me:$LINENO: result: $MD5SUM" >&5
+echo "${ECHO_T}$MD5SUM" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+ test -n "$MD5SUM" && break
+done
+test -n "$MD5SUM" || MD5SUM=""no""
+
+if test x$MD5SUM = "xno"; then
+ { { echo "$as_me:$LINENO: error: md5sum is required" >&5
+echo "$as_me: error: md5sum is required" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+# Extract the first word of "rpm", so it can be a program name with args.
+set dummy rpm; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_ac_cv_have_rpm+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_cv_have_rpm"; then
+ ac_cv_prog_ac_cv_have_rpm="$ac_cv_have_rpm" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_cv_have_rpm=""yes""
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_prog_ac_cv_have_rpm" && ac_cv_prog_ac_cv_have_rpm=""no""
+fi
+fi
+ac_cv_have_rpm=$ac_cv_prog_ac_cv_have_rpm
+if test -n "$ac_cv_have_rpm"; then
+ { echo "$as_me:$LINENO: result: $ac_cv_have_rpm" >&5
+echo "${ECHO_T}$ac_cv_have_rpm" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+if test "x$ac_cv_have_rpm" = "xyes"; then
+ rpm --define '_topdir /tmp' > /dev/null 2>&1
+ { echo "$as_me:$LINENO: checking to see if we can redefine _topdir" >&5
+echo $ECHO_N "checking to see if we can redefine _topdir... $ECHO_C" >&6; }
+ if test $? -eq 0 ; then
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ HAVE_RPM=yes
+ else
+ { echo "$as_me:$LINENO: result: no. You'll have to build packages manually." >&5
+echo "${ECHO_T}no. You'll have to build packages manually." >&6; }
+ HAVE_RPM=no
+ fi
+fi
+
+
+# Extract the first word of "rpm", so it can be a program name with args.
+set dummy rpm; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_ac_cv_have_rpm+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$ac_cv_have_rpm"; then
+ ac_cv_prog_ac_cv_have_rpm="$ac_cv_have_rpm" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_cv_have_rpm=""yes""
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_prog_ac_cv_have_rpm" && ac_cv_prog_ac_cv_have_rpm=""no""
+fi
+fi
+ac_cv_have_rpm=$ac_cv_prog_ac_cv_have_rpm
+if test -n "$ac_cv_have_rpm"; then
+ { echo "$as_me:$LINENO: result: $ac_cv_have_rpm" >&5
+echo "${ECHO_T}$ac_cv_have_rpm" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+if test "x$ac_cv_have_rpm" = "xyes"; then
+ rpm --define '_topdir /tmp' > /dev/null 2>&1
+ { echo "$as_me:$LINENO: checking to see if we can redefine _topdir" >&5
+echo $ECHO_N "checking to see if we can redefine _topdir... $ECHO_C" >&6; }
+ if test $? -eq 0 ; then
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ HAVE_RPM=yes
+ else
+ { echo "$as_me:$LINENO: result: no. You'll have to build packages manually." >&5
+echo "${ECHO_T}no. You'll have to build packages manually." >&6; }
+ HAVE_RPM=no
+ fi
+fi
+
+
+{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
+echo "${ECHO_T}no, using $LN_S" >&6; }
+fi
+
+
+CFGDIR="${sysconfdir}"
+
+
+ac_config_files="$ac_config_files Makefile etc/Makefile examples/Makefile handlers/Makefile lib/Makefile man/Makefile src/Makefile"
+
+
+ac_config_files="$ac_config_files backupninja.spec"
+