qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH (trivial)] don't run pkg-config for features explicitly disabled
@ 2013-05-25  9:19 Michael Tokarev
  2013-05-25 11:14 ` [Qemu-trivial] [Qemu-devel] " Andreas Färber
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2013-05-25  9:19 UTC (permalink / raw)
  To: qemu-trivial; +Cc: qemu-devel

We test pkg-config for curses and curl even if those are explicitly
disabled.  Move these tests inside `if "$feature" != "no"' sections.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 configure |   21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/configure b/configure
index 5ae7e4a..dff93f1 100755
--- a/configure
+++ b/configure
@@ -2154,13 +2154,12 @@ fi
 
 ##########################################
 # curses probe
-if test "$mingw32" = "yes" ; then
+if test "$curses" != "no" ; then
+  if test "$mingw32" = "yes" ; then
     curses_list="-lpdcurses"
-else
+  else
     curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)"
-fi
-
-if test "$curses" != "no" ; then
+  fi
   curses_found=no
   cat > $TMPC << EOF
 #include <curses.h>
@@ -2192,14 +2191,12 @@ fi
 
 ##########################################
 # curl probe
-
-if $pkg_config libcurl --modversion >/dev/null 2>&1; then
-  curlconfig="$pkg_config libcurl"
-else
-  curlconfig=curl-config
-fi
-
 if test "$curl" != "no" ; then
+  if $pkg_config libcurl --modversion >/dev/null 2>&1; then
+    curlconfig="$pkg_config libcurl"
+  else
+    curlconfig=curl-config
+  fi
   cat > $TMPC << EOF
 #include <curl/curl.h>
 int main(void) { curl_easy_init(); curl_multi_setopt(0, 0, 0); return 0; }
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-trivial] [Qemu-devel] [PATCH (trivial)] don't run pkg-config for features explicitly disabled
  2013-05-25  9:19 [Qemu-trivial] [PATCH (trivial)] don't run pkg-config for features explicitly disabled Michael Tokarev
@ 2013-05-25 11:14 ` Andreas Färber
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Färber @ 2013-05-25 11:14 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-trivial, qemu-devel

Am 25.05.2013 11:19, schrieb Michael Tokarev:
> We test pkg-config for curses and curl even if those are explicitly
> disabled.  Move these tests inside `if "$feature" != "no"' sections.
> 
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

Reviewed-by: Andreas Färber <afaerber@suse.de>

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-25 11:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-25  9:19 [Qemu-trivial] [PATCH (trivial)] don't run pkg-config for features explicitly disabled Michael Tokarev
2013-05-25 11:14 ` [Qemu-trivial] [Qemu-devel] " Andreas Färber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).