mirror of git://gcc.gnu.org/git/gcc.git
accross.m4 (AC_C_BIGENDIAN_CROSS): Compile endian probe with "-c".
* accross.m4 (AC_C_BIGENDIAN_CROSS): Compile endian probe with "-c". Properly quote parameter for AC_MSG_ERROR. From-SVN: r79145
This commit is contained in:
parent
c589970ab1
commit
41d4b97939
|
@ -1,3 +1,8 @@
|
||||||
|
2004-03-09 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* accross.m4 (AC_C_BIGENDIAN_CROSS): Compile endian probe with
|
||||||
|
"-c". Properly quote parameter for AC_MSG_ERROR.
|
||||||
|
|
||||||
2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
|
2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
|
||||||
|
|
||||||
* acinclude.m4: Quote names of macros to be defined by AC_DEFUN
|
* acinclude.m4: Quote names of macros to be defined by AC_DEFUN
|
||||||
|
|
|
@ -64,7 +64,7 @@ void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
|
||||||
int main() { _ascii (); _ebcdic (); return 0; }
|
int main() { _ascii (); _ebcdic (); return 0; }
|
||||||
EOF
|
EOF
|
||||||
] if test -f conftest.c ; then
|
] if test -f conftest.c ; then
|
||||||
if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
|
if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
|
||||||
if test `grep -l BIGenDianSyS conftest.o` ; then
|
if test `grep -l BIGenDianSyS conftest.o` ; then
|
||||||
echo $ac_n ' big endian probe OK, ' 1>&AC_FD_MSG
|
echo $ac_n ' big endian probe OK, ' 1>&AC_FD_MSG
|
||||||
ac_cv_c_bigendian=yes
|
ac_cv_c_bigendian=yes
|
||||||
|
@ -93,6 +93,6 @@ else
|
||||||
fi
|
fi
|
||||||
AC_DEFINE_UNQUOTED(BYTEORDER, $BYTEORDER, [1234 = LIL_ENDIAN, 4321 = BIGENDIAN])
|
AC_DEFINE_UNQUOTED(BYTEORDER, $BYTEORDER, [1234 = LIL_ENDIAN, 4321 = BIGENDIAN])
|
||||||
if test $ac_cv_c_bigendian = unknown; then
|
if test $ac_cv_c_bigendian = unknown; then
|
||||||
AC_MSG_ERROR(unknown endianess - sorry, please pre-set ac_cv_c_bigendian)
|
AC_MSG_ERROR([unknown endianess - sorry, please pre-set ac_cv_c_bigendian])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue