@@ -12807,7 +12807,6 @@ fi
12807
12807
# For each platform, we need to know about any special compile and link
12808
12808
# libraries, and whether the normal C function names are thread-safe.
12809
12809
#
12810
- NEED_REENTRANT_FUNC_NAMES=no
12811
12810
if test " $with_threads " = yes; then
12812
12811
if test " ${ac_cv_header_pthread_h+set} " =set ; then
12813
12812
echo " $as_me :$LINENO : checking for pthread.h" >&5
@@ -12924,13 +12923,13 @@ if test "$SUPPORTS_THREADS" != yes; then
12924
12923
{ {echo " $as_me :$LINENO : error:
12925
12924
Cannot enable threads on your platform.
12926
12925
Please report your platform threading info to the PostgreSQL mailing lists
12927
- so it can be added to the next release. Reportany compile flags, link flags,
12926
+ so it can be added to the next release. Reportall compile flags, link flags,
12928
12927
functions, or libraries required for threading support.
12929
12928
" >&5
12930
12929
echo " $as_me : error:
12931
12930
Cannot enable threads on your platform.
12932
12931
Please report your platform threading info to the PostgreSQL mailing lists
12933
- so it can be added to the next release. Reportany compile flags, link flags,
12932
+ so it can be added to the next release. Reportall compile flags, link flags,
12934
12933
functions, or libraries required for threading support.
12935
12934
" >&2 ; }
12936
12935
{ (exit 1); exit 1; }; }
@@ -12947,10 +12946,10 @@ fi
12947
12946
# threading on this platform. Some platforms have *_r functions but
12948
12947
# their natively named funcs are threadsafe, and should be used instead.
12949
12948
#
12950
- # One trick here is that ifthe don't call AC_CHECK_FUNCS, the
12949
+ # One trick here is that ifwe don't call AC_CHECK_FUNCS, the
12951
12950
# functions are marked "not found", which is perfect.
12952
12951
#
12953
- if test " $NEED_REENTRANT_FUNC_NAMES " = yes; then
12952
+ if test " $with_threads " = yes -a " $ NEED_REENTRANT_FUNC_NAMES" = yes; then
12954
12953
_CFLAGS=" $CFLAGS "
12955
12954
_LIB=" $LIBS "
12956
12955
CFLAGS=" $CFLAGS $TREAD_CFLAGS "