summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-12 18:20:23 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 19:33:12 -0500
commit9bb582634ea665a87837df0207dff238bb6421cf (patch)
treee0c9b6ba0f549b43f9ec5f4121ed5d232472f7fd /configure
parentae82cc56120e9dc5950d093738f74349c37a85fa (diff)
downloadqemu-9bb582634ea665a87837df0207dff238bb6421cf.tar.gz
qemu-9bb582634ea665a87837df0207dff238bb6421cf.tar.bz2
qemu-9bb582634ea665a87837df0207dff238bb6421cf.zip
Use the same structure for list of libs in curses and pthread
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 10 insertions, 8 deletions
diff --git a/configure b/configure
index 7904efc742..046d06e46b 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