autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.63-86-g


From: Jim Meyering
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63-86-gb218c04
Date: Thu, 23 Oct 2008 08:06:54 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=b218c046a6c28a4bf5117e3202dbfec13a327fb2

The branch, master has been updated
       via  b218c046a6c28a4bf5117e3202dbfec13a327fb2 (commit)
      from  30249d93c1b4255390286a4713a65eca7327c13e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b218c046a6c28a4bf5117e3202dbfec13a327fb2
Author: Jim Meyering <address@hidden>
Date:   Wed Oct 22 17:25:46 2008 +0200

    AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
    
    * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
    the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
    it is set to "yes" in the environment and configure is run on
    a system like mingw that lacks the getgroups function, it would
    mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
    <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |   10 ++++++++++
 lib/autoconf/functions.m4 |    5 ++---
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bdc3244..e0f3f26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-10-22  Jim Meyering  <address@hidden>
+
+       AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
+       * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
+       the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
+       it is set to "yes" in the environment and configure is run on
+       a system like mingw that lacks the getgroups function, it would
+       mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
+       <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
+
 2008-10-22  Paolo Bonzini  <address@hidden>
        and Eric Blake  <address@hidden>
 
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 14fe315..3999134 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -619,6 +619,7 @@ if test $ac_cv_func_getgroups = no; then
   AC_CHECK_LIB(bsd, getgroups, [GETGROUPS_LIB=-lbsd])
 fi
 
+ac_cv_func_getgroups_works=no
 # Run the program to test the functionality of the system-supplied
 # getgroups function only if there is such a function.
 if test $ac_cv_func_getgroups = yes; then
@@ -626,9 +627,7 @@ if test $ac_cv_func_getgroups = yes; then
    [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
       [[/* On Ultrix 4.3, getgroups (0, 0) always fails.  */
        return getgroups (0, 0) == -1;]])],
-                 [ac_cv_func_getgroups_works=yes],
-                 [ac_cv_func_getgroups_works=no],
-                 [ac_cv_func_getgroups_works=no])
+                 [ac_cv_func_getgroups_works=yes])
    ])
   if test $ac_cv_func_getgroups_works = yes; then
     AC_DEFINE(HAVE_GETGROUPS, 1,


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

[Prev in Thread] Current Thread [Next in Thread]