From 11f4d02e7020cb5775d2b89af0e652e53cd90ed7 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 1 Oct 2014 19:52:23 +0100 Subject: Add Perl module for console related code. - Move prompt_* methods to this module. - Add methods for printing errors and warnings easily. - Add colour code helpers and switch all code to use them. --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 45bb0e911..71424c764 100755 --- a/configure +++ b/configure @@ -39,6 +39,7 @@ use Cwd; use Getopt::Long; use make::configure; +use make::console; use make::utilities; our ($opt_use_gnutls, $opt_use_openssl, $opt_nointeractive, $opt_socketengine, @@ -277,8 +278,8 @@ STOP # Check that the user actually wants this version. if ($version{LABEL} ne 'release') { - print <<"EOW" ; -\e[1;31mWARNING!\e[0m You are building a development version. This contains code which has + print_warning <<'EOW'; +You are building a development version. This contains code which has not been tested as heavily and may contain various faults which could seriously affect the running of your server. It is recommended that you use a stable version instead. -- cgit v1.2.3