From: Kurt Zeilenga Date: Thu, 3 Dec 1998 17:15:58 +0000 (+0000) Subject: Update posix thread version check to match against strings more likely X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~972 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9471890cab795db9ff2edff7962e66edc8ea37c;p=openldap Update posix thread version check to match against strings more likely to be unique. --- diff --git a/build/openldap.m4 b/build/openldap.m4 index 20db77d62a..31439d60da 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -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 /* 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 /* this check could be improved */ # ifdef pthread_once_init - draft4 + pthread_version_draft4 # endif ], ol_pthread_draft4=yes, ol_pthread_draft4=no) diff --git a/configure b/configure index 2758dd668a..fceb4fc3c1 100755 --- a/configure +++ b/configure @@ -3308,12 +3308,12 @@ else # include /* 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 /* 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