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.69-73-g


From: Paul Eggert
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.69-73-g1c048e2
Date: Thu, 14 Feb 2013 07:28:56 +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=1c048e2f9f387f01e8f9254f800b909cabd28672

The branch, master has been updated
       via  1c048e2f9f387f01e8f9254f800b909cabd28672 (commit)
      from  1e3779d9b13604aafc50e318f3ea4a1c00ba2003 (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 1c048e2f9f387f01e8f9254f800b909cabd28672
Author: Paul Eggert <address@hidden>
Date:   Wed Feb 13 23:28:21 2013 -0800

    AC_FUNC_SETPGRP: work even when cross-compiling
    
    * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP):
    Use AC_COMPILE_IFELSE rather than AC_RUN_IFELSE.
    Problem reported by Alvaro Soliverez in
    <http://lists.gnu.org/archive/html/bug-autoconf/2013-02/msg00002.html>.

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

Summary of changes:
 lib/autoconf/functions.m4 |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 05f59bd..1b56641 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -1518,15 +1518,13 @@ rm -f conftest*
 # ---------------
 AC_DEFUN([AC_FUNC_SETPGRP],
 [AC_CACHE_CHECK(whether setpgrp takes no argument, ac_cv_func_setpgrp_void,
-[AC_RUN_IFELSE(
-[AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
-[/* If this system has a BSD-style setpgrp which takes arguments,
-  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
-  exit successfully. */
-  return setpgrp (1,1) != -1;])],
-              [ac_cv_func_setpgrp_void=no],
-              [ac_cv_func_setpgrp_void=yes],
-              [AC_MSG_ERROR([cannot check setpgrp when cross compiling])])])
+   [AC_COMPILE_IFELSE(
+      [AC_LANG_PROGRAM(
+        [[#include <unistd.h>
+          static int (*p) (void) = setpgrp;]],
+        [[return setpgrp ();]])],
+      [ac_cv_func_setpgrp_void=yes],
+      [ac_cv_func_setpgrp_void=no])])
 if test $ac_cv_func_setpgrp_void = yes; then
   AC_DEFINE(SETPGRP_VOID, 1,
            [Define to 1 if the `setpgrp' function takes no argument.])


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

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