aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure5
-rw-r--r--configure.in5
2 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index 6abd1f4f943..d54447f77f3 100755
--- a/configure
+++ b/configure
@@ -13482,8 +13482,7 @@ _ACEOF
fi
done
-CFLAGS="$_CFLAGS"
-LIBS="$_LIBS"
+# do this test with the proper thread flags
echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
@@ -13543,6 +13542,8 @@ _ACEOF
fi
+CFLAGS="$_CFLAGS"
+LIBS="$_LIBS"
fi
diff --git a/configure.in b/configure.in
index 26696b05056..6ab3218314e 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.301.2.8 2004/06/08 15:36:35 pgsql Exp $
+dnl $Header: /cvsroot/pgsql/configure.in,v 1.301.2.9 2004/06/16 03:47:35 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -1059,9 +1059,10 @@ _LIBS="$LIBS"
CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
LIBS="$LIBS $THREAD_LIBS"
AC_CHECK_FUNCS([strerror_r getpwuid_r gethostbyname_r])
+# do this test with the proper thread flags
+PGAC_FUNC_GETPWUID_R_5ARG
CFLAGS="$_CFLAGS"
LIBS="$_LIBS"
-PGAC_FUNC_GETPWUID_R_5ARG
fi