1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Fix agressive collection of thread flags.

This commit is contained in:
Bruce Momjian
2004-08-17 15:19:09 +00:00
parent 26f6111dd9
commit 0d4aa039ac
2 changed files with 6 additions and 3 deletions

View File

@ -82,6 +82,8 @@ esac
if test x"$acx_pthread_ok" = xno; then
for flag in $acx_pthread_flags; do
tryPTHREAD_CFLAGS=""
tryPTHREAD_LIBS=""
case $flag in
none)
AC_MSG_CHECKING([whether pthreads work without any flags])
@ -125,7 +127,7 @@ for flag in $acx_pthread_flags; do
[pthread_t th; pthread_join(th, 0);
pthread_attr_init(0); pthread_cleanup_push(0, 0);
pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
[acx_pthread_ok=yes])
[acx_pthread_ok=yes], [acx_pthread_ok=no])
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
@ -138,7 +140,6 @@ for flag in $acx_pthread_flags; do
PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
fi
done
fi