From 925b32bba17179aee759f52791c50dea8cfb41b8 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 1 Dec 2009 23:02:44 +0000 Subject: [PATCH] Enable thread safety Enable thread safety on all platforms. This will either be followed up by a more extensive patch, or reverted, depending on the build farm results. --- configure | 31 +------------------------------ configure.in | 7 +------ 2 files changed, 2 insertions(+), 36 deletions(-) diff --git a/configure b/configure index 4f6283532e..cfcb6e5c8c 100755 --- a/configure +++ b/configure @@ -1497,7 +1497,7 @@ Optional Features: --enable-dtrace build with DTrace support --enable-depend turn on automatic dependency tracking --enable-cassert enable assertion checks (for debugging) - --enable-thread-safety make client libraries thread-safe + --disable-thread-safety make client libraries thread-safe --enable-thread-safety-force force thread-safety despite thread test failure --disable-float4-byval disable float4 passed by value @@ -4859,34 +4859,6 @@ IFS=$ac_save_IFS # { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5 $as_echo_n "checking allow thread-safe client libraries... " >&6; } -if test "$PORTNAME" != "win32"; then - - -# Check whether --enable-thread-safety was given. -if test "${enable_thread_safety+set}" = set; then - enableval=$enable_thread_safety; - case $enableval in - yes) - : - ;; - no) - : - ;; - *) - { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5 -$as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - -else - enable_thread_safety=no - -fi - - -else -# Win32 should always use threads # Check whether --enable-thread-safety was given. @@ -4912,7 +4884,6 @@ else fi -fi diff --git a/configure.in b/configure.in index ee9d82f4b3..894b6c4bf1 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.613 2009/11/30 16:50:38 momjian Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.614 2009/12/01 23:02:44 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -558,12 +558,7 @@ IFS=$ac_save_IFS # Enable thread-safe client libraries # AC_MSG_CHECKING([allow thread-safe client libraries]) -if test "$PORTNAME" != "win32"; then -PGAC_ARG_BOOL(enable, thread-safety, no, [make client libraries thread-safe]) -else -# Win32 should always use threads PGAC_ARG_BOOL(enable, thread-safety, yes, [make client libraries thread-safe]) -fi PGAC_ARG_BOOL(enable, thread-safety-force, no, [force thread-safety despite thread test failure]) if test "$enable_thread_safety" = yes -o \ -- 2.11.0