summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-08-23 21:02:05 +0000
committerBruce Momjian <bruce@momjian.us>2005-08-23 21:02:05 +0000
commit43bf3a6bc658d634e073dcb4ea3580dd9053a3b1 (patch)
tree40d357f8408e146b23f3e005798677a2340ba331 /configure.in
parentf2cec8760581aa9d036c659ecf9ad74907709cc1 (diff)
downloadpostgresql-43bf3a6bc658d634e073dcb4ea3580dd9053a3b1.tar.gz
The attached patch updates the thread test program to run stand-alone on
Windows. The test itself is bypassed in configure as discussed, and libpq has been updated appropriately to allow it to build in thread-safe mode. Dave Page
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index c24b1cd4c1..8b8962f9b0 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.422 2005/08/23 20:48:44 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.423 2005/08/23 21:01:59 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -1172,6 +1172,8 @@ AC_CHECK_TYPES([int8, uint8, int64, uint64], [], [],
AC_CHECK_TYPES(sig_atomic_t, [], [], [#include <signal.h>])
+if test x"$template" != x"win32"
+then
PGAC_FUNC_POSIX_SIGNALS
if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
AC_MSG_ERROR([
@@ -1179,6 +1181,7 @@ if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; t
*** operating system.
])
fi
+fi
if test $ac_cv_func_fseeko = yes; then
AC_SYS_LARGEFILE
@@ -1241,13 +1244,20 @@ AC_CHECK_PROGS(SGMLSPL, sgmlspl)
# defined. Cross compiling throws a warning.
#
if test "$enable_thread_safety_force" = yes; then
+if test x"$template" != x"win32"
+then
AC_MSG_WARN([
*** Skipping thread test program. --enable-thread-safety-force was used.
*** Run the program in src/tools/thread on the your machine and add
proper locking function calls to your applications to guarantee thread
safety.
])
+else
+AC_MSG_WARN([*** Skipping thread test on Win32])
+fi
elif test "$enable_thread_safety" = yes; then
+if test x"$template" != x"win32"
+then
AC_MSG_CHECKING([thread safety of required library functions])
_CFLAGS="$CFLAGS"
@@ -1273,6 +1283,9 @@ AC_TRY_RUN([#include "$srcdir/src/tools/thread/thread_test.c"],
])])
CFLAGS="$_CFLAGS"
LIBS="$_LIBS"
+else
+AC_MSG_WARN([*** Skipping thread test on Win32])
+fi
fi
# prepare build tree if outside source tree