@@ -92,12 +92,12 @@ for flag in $acx_pthread_flags; do
9292 PTHREAD_CFLAGS="$flag"
9393 ;;
9494
95- pthread-config)
96- AC_CHECK_PROG ( acx_pthread_config , pthread-config , yes , no )
97- if test x"$acx_pthread_config" = xno; then continue; fi
98- PTHREAD_CFLAGS="`pthread-config --cflags`"
99- PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
100- ;;
95+ pthread-config)
96+ AC_CHECK_PROG ( acx_pthread_config , pthread-config , yes , no )
97+ if test x"$acx_pthread_config" = xno; then continue; fi
98+ PTHREAD_CFLAGS="`pthread-config --cflags`"
99+ PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
100+ ;;
101101
102102 *)
103103 AC_MSG_CHECKING ( [ for the pthreads library -l$flag] )
@@ -168,11 +168,11 @@ if test "x$acx_pthread_ok" = xyes; then
168168
169169 AC_MSG_CHECKING ( [ if more special flags are required for pthreads] )
170170 flag=no
171- # We handle this ourselves in PostgreSQL
172- # case "${host_cpu}-${host_os}" in
173- # *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
174- # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
175- # esac
171+ # We always add these in PostgreSQL
172+ # case "${host_cpu}-${host_os}" in
173+ # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
174+ # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
175+ # esac
176176 AC_MSG_RESULT ( ${flag} )
177177 if test "x$flag" != xno; then
178178 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
0 commit comments