[1/2] configure: use -r option for pr when listing enabled config options.

Message ID 1300356675-31426-1-git-send-email-thresh@videolan.org
State Committed
Commit fda299f0d01c1691625180786a01b01065df7156
Headers show

Commit Message

thresh@videolan.org March 17, 2011, 10:11 a.m.
From: Konstantin Pavlov <thresh@videolan.org>

This fixes ugliness when configure outputs its (empty) results on HPUX
(maybe some other UNIXes too):

Enabled indevs:
pr:  -- empty file
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Luca Barbato March 17, 2011, 11:08 a.m. | #1
On 3/17/11 11:11 AM, thresh@videolan.org wrote:
> From: Konstantin Pavlov<thresh@videolan.org>
>
> This fixes ugliness when configure outputs its (empty) results on HPUX
> (maybe some other UNIXes too):
>
> Enabled indevs:
> pr:  -- empty file

Looks ok
Mans Rullgard March 17, 2011, 11:08 a.m. | #2
thresh@videolan.org writes:

> From: Konstantin Pavlov <thresh@videolan.org>
>
> This fixes ugliness when configure outputs its (empty) results on HPUX
> (maybe some other UNIXes too):
>
> Enabled indevs:
> pr:  -- empty file

I've seen this on some other system too, maybe IRIX.  Didn't bother me
enough to do anything about it.

>  configure |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index 15d45a8..1494994 100755
> --- a/configure
> +++ b/configure
> @@ -3143,7 +3143,7 @@ echo
>  for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf indev outdev; do
>      echo "Enabled ${type}s:"
>      eval list=\$$(toupper $type)_LIST
> -    print_enabled '_*' $list | sort | pr -3 -t
> +    print_enabled '_*' $list | sort | pr -r -3 -t
>      echo
>  done

The definition of -r is "Write no diagnostic reports on failure to open
files", so I don't quite see why it should suppress that message, but if
it does, patch is OK.

Patch

diff --git a/configure b/configure
index 15d45a8..1494994 100755
--- a/configure
+++ b/configure
@@ -3143,7 +3143,7 @@  echo
 for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf indev outdev; do
     echo "Enabled ${type}s:"
     eval list=\$$(toupper $type)_LIST
-    print_enabled '_*' $list | sort | pr -3 -t
+    print_enabled '_*' $list | sort | pr -r -3 -t
     echo
 done