diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-03-20 16:11:22 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-03-20 16:11:22 +0000 |
| commit | 34ce6b41cfe3d1a0f8df08219a481426619f8e42 (patch) | |
| tree | c6a519ccab3ce099499709d844fb2615e1631620 /configure.in | |
| parent | aaf54d99f0c2492a64118fa50e5b6dcfa8116e69 (diff) | |
| download | postgresql-34ce6b41cfe3d1a0f8df08219a481426619f8e42.tar.gz | |
Always test getpwuid_r because HEAD always uses *_r if it finds them.
Not an issue for 7.4.X.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 695d3c99c1..0a2a719cfb 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.320 2004/03/20 15:39:27 momjian Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.321 2004/03/20 16:11:22 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -999,7 +999,6 @@ AC_DEFINE(STRERROR_THREADSAFE, 1, [Define if strerror is not thread safe]) fi if test "$enable_thread_safety" = yes -a "$GETPWUID_THREADSAFE" = yes ; then AC_DEFINE(GETPWUID_THREADSAFE, 1, [Define if getpwuid is not thread safe]) -else PGAC_FUNC_GETPWUID_R_5ARG fi if test "$enable_thread_safety" = yes -a "$GETHOSTBYNAME_THREADSAFE" = yes ; then AC_DEFINE(GETHOSTBYNAME_THREADSAFE, 1, [Define if gethostbyname is not thread safe]) @@ -1014,6 +1013,8 @@ AC_CHECK_FUNCS([strerror_r getpwuid_r gethostbyname_r]) CFLAGS="$_CFLAGS" LIBS="$_LIBS" +PGAC_FUNC_GETPWUID_R_5ARG + else # do not use values from template file THREAD_CPPFLAGS= |
