Patchwork [Qemu-trivial,v2] configure: silence pkg-config's check for curses

login
register
mail settings
Submitter Vadim Evard
Date Jan. 16, 2013, 8:17 p.m.
Message ID <50F70AC3.9070202@gmail.com>
Download mbox | patch
Permalink /patch/213050/
State New
Headers show

Comments

Vadim Evard - Jan. 16, 2013, 8:17 p.m.
Signed-off-by: Vadim Evard <v.e.evard@gmail.com>
---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Anthony Liguori - Jan. 17, 2013, 8:01 p.m.
Vadim Evard <v.e.evard@gmail.com> writes:

> Signed-off-by: Vadim Evard <v.e.evard@gmail.com>

Please post this as a top-level patch. (no in-reply-to)

Regards,

Anthony Liguori

> ---
>  configure |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index 4ebb60d..6211db9 100755
> --- a/configure
> +++ b/configure
> @@ -2039,7 +2039,7 @@ fi
>  if test "$mingw32" = "yes" ; then
>      curses_list="-lpdcurses"
>  else
> -    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses)"
> +    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)"
>  fi
>  
>  if test "$curses" != "no" ; then
> -- 
> 1.7.10.4

Patch

diff --git a/configure b/configure
index 4ebb60d..6211db9 100755
--- a/configure
+++ b/configure
@@ -2039,7 +2039,7 @@  fi
 if test "$mingw32" = "yes" ; then
     curses_list="-lpdcurses"
 else
-    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses)"
+    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)"
 fi
 
 if test "$curses" != "no" ; then