diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-11-02 05:44:45 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-11-02 05:44:45 +0000 |
| commit | fa82cddfd29801344bfe205eb73d38df0a1acf22 (patch) | |
| tree | 9bca8674b09c4b06c321cc3c40d52e4b82ddb1c8 /configure.in | |
| parent | 0c3663b47dd358c7332d043a2d2c42227764afb6 (diff) | |
| download | postgresql-fa82cddfd29801344bfe205eb73d38df0a1acf22.tar.gz | |
Move pthread.h test up to use PTHREAD_CFLAGS.
Kris Jurka
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 340f23a345..14af5ae027 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.383 2004/10/25 00:11:04 pgsql Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.384 2004/11/02 05:44:45 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -1009,13 +1009,14 @@ For details, compile and run src/bin/pg_thread_test. ]) fi -AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --enable-thread-safety])]) - # Check for *_r functions _CFLAGS="$CFLAGS" _LIBS="$LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$LIBS $PTHREAD_LIBS" + +AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --enable-thread-safety])]) + AC_CHECK_FUNCS([strerror_r getpwuid_r gethostbyname_r]) # Do test here with the proper thread flags |
