Merge remote-tracking branch 'OE-2.1/master' into vuplus-3.0
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-devtools / python / python / fix_pthread_site.patch
1 diff --git a/configure.in b/configure.in
2 index d0c9f83..b565f95 100644
3 --- a/configure.in
4 +++ b/configure.in
5 @@ -1303,7 +1303,7 @@ then
6  # so we need to run a program to see whether it really made the
7  # function available.
8  AC_MSG_CHECKING(whether $CC accepts -pthread)
9 -AC_CACHE_VAL(ac_cv_thread,
10 +AC_CACHE_VAL(ac_cv_pthread,
11  [ac_save_cc="$CC"
12  CC="$CC -pthread"
13  AC_RUN_IFELSE([AC_LANG_SOURCE([[
14 @@ -1325,11 +1325,11 @@ fi
15  
16  # If we have set a CC compiler flag for thread support then
17  # check if it works for CXX, too.
18 -ac_cv_cxx_thread=no
19  if test ! -z "$CXX"
20  then
21  AC_MSG_CHECKING(whether $CXX also accepts flags for thread support)
22 -ac_save_cxx="$CXX"
23 +AC_CACHE_VAL(ac_cv_cxx_thread,
24 +[ac_save_cxx="$CXX"
25  
26  if test "$ac_cv_kpthread" = "yes"
27  then
28 @@ -1358,9 +1358,11 @@ then
29    fi
30    rm -fr conftest*
31  fi
32 +CXX="$ac_save_cxx"])
33  AC_MSG_RESULT($ac_cv_cxx_thread)
34 +else
35 +  ac_cv_cxx_thread=no
36  fi
37 -CXX="$ac_save_cxx"
38  
39  dnl # check for ANSI or K&R ("traditional") preprocessor
40  dnl AC_MSG_CHECKING(for C preprocessor type)