])
+dnl _XC_CONFIGURE_PREAMBLE_INIT
+dnl -------------------------------------------------
+dnl Private macro.
+
+AC_DEFUN([_XC_CONFIGURE_PREAMBLE_INIT],
+[dnl
+AC_REQUIRE([_XC_CONFIGURE_PREAMBLE_COMMENT])dnl
+xc_msg_warn='configure: WARNING:'
+xc_msg_abrt='Can not continue.'
+xc_msg_err='configure: error:'
+])
+
+
dnl _XC_CHECK_COMMAND_TEST
dnl -------------------------------------------------
dnl Private macro.
AC_DEFUN([_XC_CHECK_COMMAND_TEST],
[dnl
+AC_REQUIRE([_XC_CONFIGURE_PREAMBLE_INIT])dnl
#
# Require that 'test' command is available.
#
:
;;
*)
- echo "configure: error: 'test' command not found. Can not continue."
+ echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
exit 1
;;
esac
AC_DEFUN([_XC_CHECK_PATH],
[dnl
+AC_REQUIRE([_XC_CONFIGURE_PREAMBLE_INIT])dnl
AC_REQUIRE([_XC_CHECK_COMMAND_TEST])dnl
#
# Require that PATH variable is set.
:
;;
*)
- echo "configure: error: PATH variable not set. Can not continue."
+ echo "$xc_msg_err PATH variable not set. $xc_msg_abrt" >&2
exit 1
;;
esac
AC_DEFUN([_XC_CHECK_COMMAND_EXPR],
[dnl
+AC_REQUIRE([_XC_CONFIGURE_PREAMBLE_INIT])dnl
#
# Require that 'expr' command is available.
#
:
;;
*)
- echo "configure: error: 'expr' command not found. Can not continue."
+ echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
exit 1
;;
esac
AC_DEFUN([_XC_CHECK_UTILITY_SED],
[dnl
+AC_REQUIRE([_XC_CONFIGURE_PREAMBLE_INIT])dnl
#
# Require that 'sed' utility is found within PATH.
#
:
;;
*)
- echo "configure: error: 'sed' utility not in PATH. Can not continue."
+ echo "$xc_msg_err 'sed' utility not in PATH. $xc_msg_abrt" >&2
exit 1
;;
esac
AC_DEFUN([_XC_CHECK_UTILITY_GREP],
[dnl
+AC_REQUIRE([_XC_CONFIGURE_PREAMBLE_INIT])dnl
#
# Require that 'grep' utility is found within PATH.
#
:
;;
*)
- echo "configure: error: 'grep' utility not in PATH. Can not continue."
+ echo "$xc_msg_err 'grep' utility not in PATH. $xc_msg_abrt" >&2
exit 1
;;
esac
AC_DEFUN([_XC_CHECK_PATH_SEPARATOR],
[dnl
+AC_REQUIRE([_XC_CONFIGURE_PREAMBLE_INIT])dnl
AC_REQUIRE([_XC_CHECK_COMMAND_TEST])dnl
AC_REQUIRE([_XC_CHECK_PATH])dnl
AC_REQUIRE([_XC_CHECK_COMMAND_EXPR])dnl
# chose one over the other, and consider auto-detection not possible.
if test -z "$PATH_SEPARATOR"; then
# Stop dead until user provides PATH_SEPARATOR definition.
- echo "configure: error: PATH_SEPARATOR variable not set. Can not continue."
+ echo "$xc_msg_err PATH_SEPARATOR variable not set. $xc_msg_abrt" >&2
exit 1
fi
else
# Simply use the auto-detected one when not already set.
PATH_SEPARATOR="$xc_tst_auto_separator"
elif "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
- echo "configure: warning: PATH_SEPARATOR does not match auto-detected one."
+ echo "$xc_msg_warn PATH_SEPARATOR does not match auto-detected one." >&2
fi
fi
AC_SUBST([PATH_SEPARATOR])dnl
AC_DEFUN([_XC_CONFIGURE_PREAMBLE],
[dnl
AC_REQUIRE([_XC_CONFIGURE_PREAMBLE_COMMENT])dnl
+AC_REQUIRE([_XC_CONFIGURE_PREAMBLE_INIT])dnl
AC_REQUIRE([_XC_CHECK_COMMAND_TEST])dnl
AC_REQUIRE([_XC_CHECK_PATH])dnl
AC_REQUIRE([_XC_CHECK_COMMAND_EXPR])dnl