Update posix thread version check to match against strings more likely

to be unique.
This commit is contained in:
Kurt Zeilenga 1998-12-03 17:15:58 +00:00
parent e699a9f871
commit a9471890ca
2 changed files with 8 additions and 8 deletions

View file

@ -295,19 +295,19 @@ dnl should be tested separately.
dnl
AC_DEFUN([OL_POSIX_THREAD_VERSION],
[AC_CACHE_CHECK([POSIX thread version],[ol_cv_pthread_version],[
AC_EGREP_CPP(final,[
AC_EGREP_CPP(pthread_version_final,[
# include <pthread.h>
/* this check could be improved */
# ifdef PTHREAD_ONCE_INIT
final
pthread_version_final
# endif
], ol_pthread_final=yes, ol_pthread_final=no)
AC_EGREP_CPP(draft4,[
AC_EGREP_CPP(pthread_version_draft4,[
# include <pthread.h>
/* this check could be improved */
# ifdef pthread_once_init
draft4
pthread_version_draft4
# endif
], ol_pthread_draft4=yes, ol_pthread_draft4=no)

8
configure vendored
View file

@ -3308,12 +3308,12 @@ else
# include <pthread.h>
/* this check could be improved */
# ifdef PTHREAD_ONCE_INIT
final
pthread_version_final
# endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "final" >/dev/null 2>&1; then
egrep "pthread_version_final" >/dev/null 2>&1; then
rm -rf conftest*
ol_pthread_final=yes
else
@ -3330,12 +3330,12 @@ rm -f conftest*
# include <pthread.h>
/* this check could be improved */
# ifdef pthread_once_init
draft4
pthread_version_draft4
# endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "draft4" >/dev/null 2>&1; then
egrep "pthread_version_draft4" >/dev/null 2>&1; then
rm -rf conftest*
ol_pthread_draft4=yes
else