From: Peter Portante Date: Fri, 20 Apr 2012 14:36:12 +0000 (-0400) Subject: Remove extra pthread switch X-Git-Tag: v1.1-rc0~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3c56761b465a4253871c32b06ebbc2d8b3fc3e1;p=thirdparty%2Fqemu.git 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 Signed-off-by: Anthony Liguori --- diff --git a/configure b/configure index b8baf4f7025..dd09f1a18fd 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