Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit277dbb0

Browse files
committed
Fix threading configure tests, from Peter.
1 parent11eb002 commit277dbb0

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

‎configure

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
1281112810
iftest"$with_threads" = yes;then
1281212811
iftest"${ac_cv_header_pthread_h+set}" =set;then
1281312812
echo"$as_me:$LINENO: checking for pthread.h">&5
@@ -12924,13 +12923,13 @@ if test "$SUPPORTS_THREADS" != yes; then
1292412923
{ {echo"$as_me:$LINENO: error:
1292512924
Cannot enable threads on your platform.
1292612925
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,
1292812927
functions, or libraries required for threading support.
1292912928
">&5
1293012929
echo"$as_me: error:
1293112930
Cannot enable threads on your platform.
1293212931
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,
1293412933
functions, 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-
iftest"$NEED_REENTRANT_FUNC_NAMES" = yes;then
12952+
iftest"$with_threads" = yes -a"$NEED_REENTRANT_FUNC_NAMES" = yes;then
1295412953
_CFLAGS="$CFLAGS"
1295512954
_LIB="$LIBS"
1295612955
CFLAGS="$CFLAGS$TREAD_CFLAGS"

‎configure.in

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $Header: /cvsroot/pgsql/configure.in,v 1.267 2003/06/23 23:51:59 momjian Exp $
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.268 2003/07/22 16:39:55 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -965,15 +965,14 @@ AC_FUNC_FSEEKO
965965
# For each platform, we need to know about any special compile and link
966966
# libraries, and whether the normal C function names are thread-safe.
967967
#
968-
NEED_REENTRANT_FUNC_NAMES=no
969968
if test "$with_threads" = yes; then
970969
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --with-threads])])
971970

972971
if test "$SUPPORTS_THREADS" != yes; then
973972
AC_MSG_ERROR([
974973
Cannot enable threads on your platform.
975974
Please report your platform threading info to the PostgreSQL mailing lists
976-
so it can be added to the next release. Reportany compile flags, link flags,
975+
so it can be added to the next release. Reportall compile flags, link flags,
977976
functions, or libraries required for threading support.
978977
])
979978
fi
@@ -989,10 +988,10 @@ AC_SUBST(THREAD_LIBS)
989988
# threading on this platform. Some platforms have *_r functions but
990989
# their natively named funcs are threadsafe, and should be used instead.
991990
#
992-
# One trick here is that ifthe don't call AC_CHECK_FUNCS, the
991+
# One trick here is that ifwe don't call AC_CHECK_FUNCS, the
993992
# functions are marked "not found", which is perfect.
994993
#
995-
if test "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
994+
if test "$with_threads" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
996995
_CFLAGS="$CFLAGS"
997996
_LIB="$LIBS"
998997
CFLAGS="$CFLAGS $TREAD_CFLAGS"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp