diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 91c1e1f8fe6..cb89a07e53a 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.420 2005/08/20 23:26:06 tgl Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.421 2005/08/23 20:45:04 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 |