diff options
| author | Bruce Momjian <bruce@momjian.us> | 2003-06-18 16:04:15 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2003-06-18 16:04:15 +0000 |
| commit | 4d9eede82f8803dca9e5275e5662f1068a8d5c32 (patch) | |
| tree | 10495d652648d1baa6157328190ea9fbe8f71546 /configure.in | |
| parent | f374a9dae99679ce33f9b0657c1aa1182fa3fc38 (diff) | |
| download | postgresql-4d9eede82f8803dca9e5275e5662f1068a8d5c32.tar.gz | |
Move thread checking code farther down in conflgure.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/configure.in b/configure.in index 53e48a3fe0..acb53c2549 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Header: /cvsroot/pgsql/configure.in,v 1.265 2003/06/15 04:07:58 momjian Exp $ +dnl $Header: /cvsroot/pgsql/configure.in,v 1.266 2003/06/18 16:04:15 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -552,29 +552,6 @@ fi]) AC_SUBST(ELF_SYS) # -# Pthreads -# -# For each platform, we need to know about any special compile and link -# libraries, and whether the normal C function names are thread-safe. -# -NEED_REENTRANT_FUNC_NAMES=no -if test "$with_threads" = yes; then -AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --with-threads])]) - -if test "$SUPPORTS_THREADS" != yes; then -AC_MSG_ERROR([ -Cannot enable threads on your platform. -Please report your platform threading info to the PostgreSQL mailing lists -so it can be added to the next release. Report any compile flags, link flags, -functions, or libraries required for threading support. -]) -fi -fi -AC_SUBST(THREAD_CFLAGS) -AC_SUBST(THREAD_LIBS) - - -# # Assignments # @@ -982,6 +959,29 @@ AC_CHECK_FUNCS(atexit, [], AC_FUNC_FSEEKO # +# Pthreads +# +# For each platform, we need to know about any special compile and link +# libraries, and whether the normal C function names are thread-safe. +# +NEED_REENTRANT_FUNC_NAMES=no +if test "$with_threads" = yes; then +AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --with-threads])]) + +if test "$SUPPORTS_THREADS" != yes; then +AC_MSG_ERROR([ +Cannot enable threads on your platform. +Please report your platform threading info to the PostgreSQL mailing lists +so it can be added to the next release. Report any compile flags, link flags, +functions, or libraries required for threading support. +]) +fi +fi +AC_SUBST(THREAD_CFLAGS) +AC_SUBST(THREAD_LIBS) + + +# # Check for re-entrant versions of certain functions # # Include special flags if threads are enabled _and_ if required for |
