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

Commit6457996

Browse files
committed
Properly define ENABLE_THREAD_SAFETY in conflgure, per suggestion from Peter.
1 parent324385d commit6457996

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎configure

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4881,6 +4881,13 @@ else
48814881
fi
48824882

48834883

4884+
if test "$enable_thread_safety" = yes; then
4885+
4886+
cat >>confdefs.h <<\_ACEOF
4887+
#define ENABLE_THREAD_SAFETY 1
4888+
_ACEOF
4889+
4890+
fi
48844891
{ $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
48854892
$as_echo "$enable_thread_safety" >&6; }
48864893

‎configure.in

Lines changed: 5 additions & 1 deletion
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 $PostgreSQL: pgsql/configure.in,v 1.615 2009/12/02 14:07:25 momjian Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.616 2009/12/11 02:21:21 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -559,6 +559,10 @@ IFS=$ac_save_IFS
559559
#
560560
AC_MSG_CHECKING([allow thread-safe client libraries])
561561
PGAC_ARG_BOOL(enable, thread-safety, yes, [disable thread-safety in client libraries])
562+
if test "$enable_thread_safety" = yes; then
563+
AC_DEFINE([ENABLE_THREAD_SAFETY], 1,
564+
[Define to 1 to build client libraries as thread-safe code. (--enable-thread-safety)])
565+
fi
562566
AC_MSG_RESULT([$enable_thread_safety])
563567
AC_SUBST(enable_thread_safety)
564568

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp