diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-09-30 19:51:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-09-30 19:51:31 +0000 |
commit | 5620149cd6f85c8cd12bfd0a6b858f06ac720b54 (patch) | |
tree | d422b87dae039dfe933687341aae083060a92b21 /aclocal | |
parent | Updated the STATUS CODE section of the routines in this file. (diff) | |
download | rtems-5620149cd6f85c8cd12bfd0a6b858f06ac720b54.tar.bz2 |
New configure test from Ian Lance Taylor <ian@airs.com>:
If the target is an i386, this test checks whether or not the binutils
is new enough to have good support for code16.
Diffstat (limited to 'aclocal')
-rw-r--r-- | aclocal/i386-gas-code16.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/aclocal/i386-gas-code16.m4 b/aclocal/i386-gas-code16.m4 new file mode 100644 index 0000000000..a55fb77954 --- /dev/null +++ b/aclocal/i386-gas-code16.m4 @@ -0,0 +1,25 @@ +dnl +dnl $Id$ +dnl + +dnl check for i386 gas supporting 16 bit mode + +AC_DEFUN(RTEMS_I386_GAS_CODE16, + if test "${target_cpu}" = "i386"; then + AC_CACHE_CHECK([for 16 bit mode assembler support], + rtems_cv_prog_gas_code16, + [cat > conftest.s << EOF + .code16 + data32 addr32 lgdt 0 +EOF + if AC_TRY_COMMAND($AS_FOR_TARGET -o conftest.o conftest.s); then + rtems_cv_prog_gas_code16=yes + else + rtems_cv_prog_gas_code16=no + fi]) + if test "$rtems_cv_prog_gas_code16" = "yes"; then + AC_DEFINE(RTEMS_PROG_GAS_CODE16) + fi + fi +) + |