Ticket #34962: patch-bigendian.diff

File patch-bigendian.diff, 712 bytes (added by devernay (Frédéric Devernay), 12 years ago)
  • configure.ac

    old new  
    17391739dnl check for big/little endian for LCMS
    17401740dnl --------------------------------------------------
    17411741
    1742 AC_MSG_CHECKING([for big endian])
    1743 
    1744 AC_RUN_IFELSE(
    1745   [AC_LANG_PROGRAM([#include <stdio.h>], [
    1746    static const int one = 1;
    1747    return (*(char*)&one == 0 ? 0 : 1);
    1748   ])],
     1742AC_C_BIGENDIAN(
    17491743  [LCMS_BIGENDIAN=1],
    17501744  [LCMS_BIGENDIAN=0])
    17511745
    17521746if test "x$LCMS_BIGENDIAN" != "x0"; then
    17531747  LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$LCMS_BIGENDIAN"
    17541748  LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$LCMS_BIGENDIAN"
    1755   AC_MSG_RESULT(yes)
    17561749else
    17571750  LCMS_ENDIAN=
    17581751  LCMS2_ENDIAN=
    1759   AC_MSG_RESULT(no)
    17601752fi
    17611753
    17621754