diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-11-02 15:44:04 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-11-02 15:44:04 +0000 |
commit | 2e0fd4273d942d48194c27530a67cd5323c80812 (patch) | |
tree | 076d11c8567fc9d138dbfc50e8c6d1c20e74252c /aclocal/i386-gas-code16.m4 | |
parent | 2000-11-01 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-2e0fd4273d942d48194c27530a67cd5323c80812.tar.bz2 |
2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/*: Replace with contents of macros/*.m4
* macros/: Remove.
* aclocal/ar-s.m4 aclocal/tool-prefix.m4: Remove.
* Makefile.am: Reflect changes to aclocal/ and macros/.
Diffstat (limited to 'aclocal/i386-gas-code16.m4')
-rw-r--r-- | aclocal/i386-gas-code16.m4 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/aclocal/i386-gas-code16.m4 b/aclocal/i386-gas-code16.m4 index 864f38a5bd..9bb0030d94 100644 --- a/aclocal/i386-gas-code16.m4 +++ b/aclocal/i386-gas-code16.m4 @@ -6,7 +6,7 @@ dnl check for i386 gas supporting 16 bit mode dnl - binutils 2.9.1.0.7 and higher AC_DEFUN(RTEMS_I386_GAS_CODE16, -[ if test "${target_cpu}" = "i386"; then +[ if test "${host_cpu}" = "i386"; then AC_CACHE_CHECK([for 16 bit mode assembler support], rtems_cv_prog_gas_code16, [cat > conftest.s << EOF @@ -15,7 +15,7 @@ AC_DEFUN(RTEMS_I386_GAS_CODE16, addr32 lgdt 0 EOF - if AC_TRY_COMMAND($AS_FOR_TARGET -o conftest.o conftest.s); then + if AC_TRY_COMMAND($AS -o conftest.o conftest.s); then rtems_cv_prog_gas_code16=yes else rtems_cv_prog_gas_code16=no @@ -23,6 +23,9 @@ EOF RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16" fi AC_SUBST(RTEMS_GAS_CODE16) - AC_DEFINE_UNQUOTED(NEW_GAS,1,[if using 16 bit mode assembler support]) + if test x"${RTEMS_GAS_CODE16}" = x"yes"; + then + AC_DEFINE_UNQUOTED(NEW_GAS,1,[if using 16 bit mode assembler support]) + fi ]) |