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.62-90-g


From: Ralf Wildenhues
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.62-90-gb0e687e
Date: Fri, 22 Aug 2008 16:19:02 +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=b0e687ef42e21b1eb7af18c4eaebcd41b0bd5632

The branch, master has been updated
       via  b0e687ef42e21b1eb7af18c4eaebcd41b0bd5632 (commit)
       via  883c8994f1efdc3c550b0d37bf95c947881b735d (commit)
      from  0b8af134157753edec45bb9f78795596b1fcd07a (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 b0e687ef42e21b1eb7af18c4eaebcd41b0bd5632
Author: Peter O'Gorman <address@hidden>
Date:   Fri Aug 22 18:18:25 2008 +0200

    Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
    
    * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
    __APPLE_CC__ with possible -arch flags.
    * NEWS: Document it.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

commit 883c8994f1efdc3c550b0d37bf95c947881b735d
Author: Ralf Wildenhues <address@hidden>
Date:   Fri Aug 22 16:15:13 2008 +0200

    * NEWS: Fix typo.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

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

Summary of changes:
 ChangeLog         |   11 +++++++++++
 NEWS              |    6 +++++-
 lib/autoconf/c.m4 |   33 +++++++++++++++++++++++----------
 3 files changed, 39 insertions(+), 11 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9a90bde..5b45504 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2008-08-22  Peter O'Gorman  <address@hidden>
+
+       Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
+       * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
+       __APPLE_CC__ with possible -arch flags.
+       * NEWS: Document it.
+
+2008-08-22  Ralf Wildenhues  <address@hidden>
+
+       * NEWS: Fix typo.
+
 2008-08-22  Eric Blake  <address@hidden>
 
        * TODO: Add an item for additional m4sugar looping constructs.
diff --git a/NEWS b/NEWS
index 9699556..ffeaf8b 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ GNU Autoconf NEWS - User visible changes.
 
 * Major changes in Autoconf 2.62a (2008-??-??)
 
+** AC_C_BIGENDIAN does not mistakenly report "universal" for some
+   bigendian hosts, a regression introduced with universal binary
+   support in 2.62.
+
 ** AC_PATH_X now includes /lib64 and /usr/lib64 in its list of default
    library directories.
 
@@ -32,7 +36,7 @@ GNU Autoconf NEWS - User visible changes.
    some macros, this fixes a regression in 2.62).
 
 ** Two new quadrigraphs have been introduced: @{:@ for (, and @:}@ for ),
-   allowing the output of unbalanced parantheses in more contexts.
+   allowing the output of unbalanced parentheses in more contexts.
 
 ** The following m4sugar macros are new:
    m4_joinall  m4_mapall  m4_mapall_sep  m4_reverse  m4_set_add
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index ffaa06e..51fdfeb 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -1399,24 +1399,34 @@ fi
 AC_DEFUN([AC_C_BIGENDIAN],
 [AH_VERBATIM([WORDS_BIGENDIAN],
 [/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
-   significant byte first (like Motorola and SPARC, unlike Intel and VAX). */
-#if defined __BIG_ENDIAN__
-# define WORDS_BIGENDIAN 1
-#elif ! defined __LITTLE_ENDIAN__
-# undef WORDS_BIGENDIAN
+   significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+#  define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+#  undef WORDS_BIGENDIAN
+# endif
 #endif])dnl
  AC_CACHE_CHECK([whether byte ordering is bigendian], [ac_cv_c_bigendian],
    [ac_cv_c_bigendian=unknown
     m4_ifval(m4_ifdef([AH_HEADER], 1)[$4],
-      [# See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
+      [# See if we're dealing with a universal compiler.
        AC_COMPILE_IFELSE(
         [AC_LANG_SOURCE(
-           [[#if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
-              neither is defined;
+           [[#ifndef __APPLE_CC__
+              not a universal capable compiler
             #endif
             typedef int dummy;
            ]])],
-        [ac_cv_c_bigendian=universal])],
+        [
+       # Check for potential -arch flags.  It is not universal unless
+       # there are some -arch flags.  Note that *ppc* also matches
+       # ppc64.  This check is also rather less than ideal.
+       case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
+         *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
+       esac])],
       [AC_DIAGNOSE([obsolete], [AC_C_BIGENDIAN suggests AC_CONFIG_HEADERS])])
     if test $ac_cv_c_bigendian = unknown; then
       # See if sys/param.h defines the BYTE_ORDER macro.
@@ -1521,7 +1531,10 @@ AC_DEFUN([AC_C_BIGENDIAN],
    no)
      $2 ;; #(
    universal)
-     $4 ;; #(
+     m4_default([$4],
+       [AC_DEFINE([AC_APPLE_UNIVERSAL_BUILD],1,
+          [Define if building universal (internal helper macro)])])
+     ;; #(
    *)
      m4_default([$3],
        [AC_MSG_ERROR([unknown endianness


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

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