summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPeter Portante2012-04-20 16:36:12 +0200
committerAnthony Liguori2012-04-24 16:50:31 +0200
commite3c56761b465a4253871c32b06ebbc2d8b3fc3e1 (patch)
tree87d5066c48b905b4727355f7c817d94a3c26651c /configure
parentconfigure: Virtfs doesn't require libcap. (diff)
downloadqemu-e3c56761b465a4253871c32b06ebbc2d8b3fc3e1.tar.gz
qemu-e3c56761b465a4253871c32b06ebbc2d8b3fc3e1.tar.xz
qemu-e3c56761b465a4253871c32b06ebbc2d8b3fc3e1.zip
Remove extra pthread switch
remove the extra pthread switch which might be there from the package config check for gthreads. Signed-off-by: Peter Portante <peter.portante@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure b/configure
index b8baf4f702..dd09f1a18f 100755
--- a/configure
+++ b/configure
@@ -2083,7 +2083,16 @@ else
for pthread_lib in $PTHREADLIBS_LIST; do
if compile_prog "" "$pthread_lib" ; then
pthread=yes
- LIBS="$pthread_lib $LIBS"
+ found=no
+ for lib_entry in $LIBS; do
+ if test "$lib_entry" = "$pthread_lib"; then
+ found=yes
+ break
+ fi
+ done
+ if test "$found" = "no"; then
+ LIBS="$pthread_lib $LIBS"
+ fi
break
fi
done