From 2c0c170a5682dcc9df1a873339af96740b1b0e52 Mon Sep 17 00:00:00 2001 From: Josh ben Jore Date: Mon, 1 Feb 2010 08:05:13 -0800 Subject: [perl #72156]: substitute `less -R' for `less' for groff's new usage of ANSI escape codes by setting $Config{less} (and thereby $Config{pager}). --- Configure | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Configure') diff --git a/Configure b/Configure index 8d93a3316e..d9397bf2ad 100755 --- a/Configure +++ b/Configure @@ -2438,6 +2438,15 @@ for file in $trylist; do ;; esac done +case "$less" in +'') ;; +*) if $less -R /dev/null; then + echo "Substituting less -R for less." + less="$less -R" + _less=$less + fi + ;; +esac case "$egrep" in egrep) echo "Substituting grep for egrep." -- cgit v1.2.1