@@ -12807,7 +12807,6 @@ fi
1280712807# For each platform, we need to know about any special compile and link
1280812808# libraries, and whether the normal C function names are thread-safe.
1280912809#
12810- NEED_REENTRANT_FUNC_NAMES=no
1281112810if test " $with_threads " = yes; then
1281212811if test " ${ac_cv_header_pthread_h+set} " =set ; then
1281312812echo " $as_me :$LINENO : checking for pthread.h" >&5
@@ -12924,13 +12923,13 @@ if test "$SUPPORTS_THREADS" != yes; then
1292412923{ {echo " $as_me :$LINENO : error:
1292512924Cannot enable threads on your platform.
1292612925Please 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,
1292812927functions, or libraries required for threading support.
1292912928" >&5
1293012929echo " $as_me : error:
1293112930Cannot enable threads on your platform.
1293212931Please 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,
1293412933functions, or libraries required for threading support.
1293512934" >&2 ; }
1293612935 { (exit 1); exit 1; }; }
@@ -12947,10 +12946,10 @@ fi
1294712946# threading on this platform. Some platforms have *_r functions but
1294812947# their natively named funcs are threadsafe, and should be used instead.
1294912948#
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
1295112950# functions are marked "not found", which is perfect.
1295212951#
12953- if test " $NEED_REENTRANT_FUNC_NAMES " = yes; then
12952+ if test " $with_threads " = yes -a " $ NEED_REENTRANT_FUNC_NAMES" = yes; then
1295412953_CFLAGS=" $CFLAGS "
1295512954_LIB=" $LIBS "
1295612955CFLAGS=" $CFLAGS $TREAD_CFLAGS "