Make the test for getpwuid_r work on newer AIX versions, too. Still works
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Mon, 8 Nov 1999 10:02:17 +0000 (10:02 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Mon, 8 Nov 1999 10:02:17 +0000 (10:02 +0000)
1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * configure.in: Make the test for getpwuid_r work on newer AIX
        versions, too. Still works on Solaris and Linux. Patch from Craig
        Rodrigues <rodrigc@mediaone.net>.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in

index 167e969..04e6307 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * configure.in: Make the test for getpwuid_r work on newer AIX
+        versions, too. Still works on Solaris and Linux. Patch from Craig
+        Rodrigues <rodrigc@mediaone.net>.
+
 1999-11-08  Tor Lillqvist  <tml@iki.fi>
 
        * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
index 167e969..04e6307 100644 (file)
@@ -1,3 +1,9 @@
+1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * configure.in: Make the test for getpwuid_r work on newer AIX
+        versions, too. Still works on Solaris and Linux. Patch from Craig
+        Rodrigues <rodrigc@mediaone.net>.
+
 1999-11-08  Tor Lillqvist  <tml@iki.fi>
 
        * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
index 167e969..04e6307 100644 (file)
@@ -1,3 +1,9 @@
+1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * configure.in: Make the test for getpwuid_r work on newer AIX
+        versions, too. Still works on Solaris and Linux. Patch from Craig
+        Rodrigues <rodrigc@mediaone.net>.
+
 1999-11-08  Tor Lillqvist  <tml@iki.fi>
 
        * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
index 167e969..04e6307 100644 (file)
@@ -1,3 +1,9 @@
+1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * configure.in: Make the test for getpwuid_r work on newer AIX
+        versions, too. Still works on Solaris and Linux. Patch from Craig
+        Rodrigues <rodrigc@mediaone.net>.
+
 1999-11-08  Tor Lillqvist  <tml@iki.fi>
 
        * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
index 167e969..04e6307 100644 (file)
@@ -1,3 +1,9 @@
+1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * configure.in: Make the test for getpwuid_r work on newer AIX
+        versions, too. Still works on Solaris and Linux. Patch from Craig
+        Rodrigues <rodrigc@mediaone.net>.
+
 1999-11-08  Tor Lillqvist  <tml@iki.fi>
 
        * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
index 167e969..04e6307 100644 (file)
@@ -1,3 +1,9 @@
+1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * configure.in: Make the test for getpwuid_r work on newer AIX
+        versions, too. Still works on Solaris and Linux. Patch from Craig
+        Rodrigues <rodrigc@mediaone.net>.
+
 1999-11-08  Tor Lillqvist  <tml@iki.fi>
 
        * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
index 167e969..04e6307 100644 (file)
@@ -1,3 +1,9 @@
+1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * configure.in: Make the test for getpwuid_r work on newer AIX
+        versions, too. Still works on Solaris and Linux. Patch from Craig
+        Rodrigues <rodrigc@mediaone.net>.
+
 1999-11-08  Tor Lillqvist  <tml@iki.fi>
 
        * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
index 167e969..04e6307 100644 (file)
@@ -1,3 +1,9 @@
+1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * configure.in: Make the test for getpwuid_r work on newer AIX
+        versions, too. Still works on Solaris and Linux. Patch from Craig
+        Rodrigues <rodrigc@mediaone.net>.
+
 1999-11-08  Tor Lillqvist  <tml@iki.fi>
 
        * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
index 7b7a77b..885b153 100644 (file)
@@ -861,15 +861,15 @@ if test x"$enable_threads" = xyes; then
                fi
                if test "$ac_cv_func_getpwuid_r" = "yes"; then
                        AC_MSG_CHECKING(whether getpwuid_r is posix like)
-                       # getpwuid_r(0, NULL, NULL, 0) is the signature on
-                       # solaris, if that is not found, the prog below won't 
-                       # compile, then the posix signature is assumed as 
-                       # the default.
-                       AC_TRY_COMPILE([#include <pwd.h>],
-                               [getpwuid_r(0, NULL, NULL, 0);],
-                               [AC_MSG_RESULT(no)],
-                               [AC_MSG_RESULT(yes)
-                               AC_DEFINE(HAVE_GETPWUID_R_POSIX)])
+                       # The signature for the POSIX version is:
+                       # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **)
+                       AC_TRY_COMPILE([#include <pwd.h>
+                                        #include <sys/types.h>
+                                        #include <stdlib.h>],
+                               [getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);],
+                               [AC_DEFINE(HAVE_GETPWUID_R_POSIX)
+                               AC_MSG_RESULT(yes)],
+                               [AC_MSG_RESULT(no)])
                fi
        fi
        LIBS="$LIBS $G_THREAD_LIBS"