]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Do PGAC_FUNC_GETPWUID_R_5ARG check with the proper thread flags. This
authorBruce Momjian <bruce@momjian.us>
Wed, 16 Jun 2004 03:47:35 +0000 (03:47 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 16 Jun 2004 03:47:35 +0000 (03:47 +0000)
fixes Solaris thread compiles.

configure
configure.in

index 6abd1f4f943bfffef2f4783cd53b827c1ed79692..d54447f77f39971fcf3fdfb4a17281f4671060e7 100755 (executable)
--- 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
 
 
index 26696b05056bccf73f5599fc5b81be195bee89e1..6ab3218314e1352fcfbe80a9da366b6399299f9f 100644 (file)
@@ -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