Skip to content
  • Allison Karlitskaya's avatar
    configure.ac: reject 'universal' builds · 84a1efea
    Allison Karlitskaya authored
    AC_C_BIGENDIAN can return 'universal' as the result in the case that we
    are trying to do a universal build on Mac OS.  This has to be opted into
    explicitly by using multiple -arch CFLAGS.
    
    Previously, we detected this result and fell back to doing our own check
    based on the endianness of the build machine, hardcoding that.  This
    means that universal builds might successfully build, but the binaries
    would never actually run correctly on the 'opposite' arch.
    
    This check was added because of a bug in the intial implementation of
    this detection in autoconf, which was inappropriately identifying
    non-macos compilers as 'universal'.  That was hitting ppc64 systems.
    See https://bugzilla.redhat.com/show_bug.cgi?id=449944 for more info.
    
    Commit b0e687ef42e21b1eb7af18c4eaebcd41b0bd5632 in autoconf ("Limit
    AC_C_BIGENDIAN univeral checks to Mac OS X") solved this issue in 2008,
    so let's remove our workaround.  For good measure, if we detect
    "universal" in the result, error out.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742548
    84a1efea