File tree 8 files changed +24
-24
lines changed
8 files changed +24
-24
lines changed Original file line number Diff line number Diff line change
1
+ dnl PGSGL: When updating, comment out port-specific part below;
2
+ dnl see the comment below with the word "PostgreSQL".
3
+ dnl
1
4
dnl Available from the GNU Autoconf Macro Archive at:
2
5
dnl http://www.gnu.org/software/ac-archive/htmldoc/acx_pthread.html
3
6
dnl
@@ -165,10 +168,11 @@ if test "x$acx_pthread_ok" = xyes; then
165
168
166
169
AC_MSG_CHECKING ( [ if more special flags are required for pthreads] )
167
170
flag=no
168
- case "${host_cpu}-${host_os}" in
169
- *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
170
- *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
171
- esac
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
172
176
AC_MSG_RESULT ( ${flag} )
173
177
if test "x$flag" != xno; then
174
178
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
Original file line number Diff line number Diff line change @@ -13387,10 +13387,11 @@ echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13387
13387
echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13388
13388
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13389
13389
flag=no
13390
- case "${host_cpu}-${host_os}" in
13391
- *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
13392
- *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13393
- esac
13390
+ # We handle this ourselves in PostgreSQL
13391
+ # case "${host_cpu}-${host_os}" in
13392
+ # *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
13393
+ # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13394
+ # esac
13394
13395
echo "$as_me:$LINENO: result: ${flag}" >&5
13395
13396
echo "${ECHO_T}${flag}" >&6
13396
13397
if test "x$flag" != xno; then
@@ -13465,6 +13466,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
13465
13466
13466
13467
# set thread flags
13467
13468
13469
+ # Some platforms use these, so just defineed them. They can't hurt if they
13470
+ # are not supported.
13471
+ PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13472
+
13473
+
13468
13474
# At this point, we don't want to muck with the compiler name for threading.
13469
13475
# Let's see who fails, perhaps AIX. 2004-04-23
13470
13476
if test "$PTHREAD_CC" != "$CC"; then
Original file line number Diff line number Diff line change 1
1
dnl Process this file with autoconf to produce a configure script.
2
- dnl $PostgreSQL: pgsql/configure.in,v 1.333 2004/04/26 00:44:39 momjian Exp $
2
+ dnl $PostgreSQL: pgsql/configure.in,v 1.334 2004/04/26 04:04:42 momjian Exp $
3
3
dnl
4
4
dnl Developers, please strive to achieve this order:
5
5
dnl
@@ -959,6 +959,11 @@ AC_FUNC_FSEEKO
959
959
if test "$enable_thread_safety" = yes; then
960
960
ACX_PTHREAD # set thread flags
961
961
962
+ # Some platforms use these, so just defineed them. They can't hurt if they
963
+ # are not supported.
964
+ PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
965
+
966
+
962
967
# At this point, we don't want to muck with the compiler name for threading.
963
968
# Let's see who fails, perhaps AIX. 2004-04-23
964
969
if test "$PTHREAD_CC" != "$CC"; then
Original file line number Diff line number Diff line change @@ -4,6 +4,3 @@ CC="$CC -no-cpp-precomp"
4
4
5
5
# Select appropriate semaphore support
6
6
USE_NAMED_POSIX_SEMAPHORES=1
7
-
8
- # verified Mac OS X 10.3.3, Darwin Kernel Version 7.3.0, 2004-04-07
9
- PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
Original file line number Diff line number Diff line change 1
1
case $host_cpu in
2
2
alpha*) CFLAGS="-O";; # alpha has problems with -O2
3
3
esac
4
-
5
- case $host_os in
6
- freebsd2*|freebsd3*|freebsd4*) ;;
7
- *) PTHREAD_LIBS="c_r";; # do we need this? 2004-04-23
8
- esac
Original file line number Diff line number Diff line change 1
1
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
2
2
CPPFLAGS="-D_GNU_SOURCE"
3
-
4
- # tools/thread/thread_test must be run
5
- PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
Original file line number Diff line number Diff line change @@ -10,4 +10,3 @@ case $host in
10
10
esac
11
11
12
12
# -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things
13
- PTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
Original file line number Diff line number Diff line change @@ -24,8 +24,5 @@ __EOF__
24
24
PTHREAD_CFLAGS="-Kpthread"
25
25
fi
26
26
27
- # tools/thread/thread_test must be run
28
- PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT"
29
-
30
27
# Disabled because flags are required for all apps using libpq.
31
28
# Waiting to see if other platforms need this too. 2004-03-22
You can’t perform that action at this time.
0 commit comments