Commit b49905cb authored by Skip Montanaro's avatar Skip Montanaro

avoid testing for -Kthread or -pthread if the default build environment

supports pthreads
parent b5f6c830
This diff is collapsed.
...@@ -751,7 +751,11 @@ int main(){ ...@@ -751,7 +751,11 @@ int main(){
return 0; return 0;
} }
], ],
ac_cv_pthread_is_default=yes, [
ac_cv_pthread_is_default=yes
ac_cv_kthread=no
ac_cv_pthread=no
],
ac_cv_pthread_is_default=no, ac_cv_pthread_is_default=no,
ac_cv_pthread_is_default=no) ac_cv_pthread_is_default=no)
]) ])
...@@ -791,7 +795,7 @@ CC="$ac_save_cc"]) ...@@ -791,7 +795,7 @@ CC="$ac_save_cc"])
AC_MSG_RESULT($ac_cv_kpthread) AC_MSG_RESULT($ac_cv_kpthread)
fi fi
if test $ac_cv_kpthread = no if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
then then
# -Kthread, if available, provides the right #defines # -Kthread, if available, provides the right #defines
# and linker options to make pthread_create available # and linker options to make pthread_create available
...@@ -822,7 +826,7 @@ CC="$ac_save_cc"]) ...@@ -822,7 +826,7 @@ CC="$ac_save_cc"])
AC_MSG_RESULT($ac_cv_kthread) AC_MSG_RESULT($ac_cv_kthread)
fi fi
if test $ac_cv_kthread = no if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
then then
# -pthread, if available, provides the right #defines # -pthread, if available, provides the right #defines
# and linker options to make pthread_create available # and linker options to make pthread_create available
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment