[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 4f78ef9] Use the same structure for list of libs
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 4f78ef9] Use the same structure for list of libs in cursesand pthread |
Date: |
Fri, 28 Aug 2009 02:19:48 -0000 |
From: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/configure b/configure
index 7904efc..046d06e 100755
--- a/configure
+++ b/configure
@@ -1052,8 +1052,10 @@ fi
##########################################
# curses probe
+curses_list="-lncurses -lcurses"
if test "$curses" = "yes" ; then
+ curses=no
cat > $TMPC << EOF
#include <curses.h>
#ifdef __OpenBSD__
@@ -1061,14 +1063,14 @@ if test "$curses" = "yes" ; then
#endif
int main(void) { resize_term(0, 0); return curses_version(); }
EOF
- if compile_prog "" "-lncurses" ; then
- libs_softmmu="-lncurses $libs_softmmu"
- elif compile_prog "" "-lcurses" ; then
- libs_softmmu="-lcurses $libs_softmmu"
- else
- curses=no
- fi
-fi # test "$curses"
+ for curses_lib in $curses_list; do
+ if compile_prog "" "$curses_lib" ; then
+ curses=yes
+ libs_softmmu="$curses_lib $libs_softmmu"
+ break
+ fi
+ done
+fi
##########################################
# curl probe
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 4f78ef9] Use the same structure for list of libs in cursesand pthread,
Anthony Liguori <=