source:
rtems/aclocal/i386-gas-code16.m4
@
89b51f4
Last change on this file since 89b51f4 was 2e0fd427, checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/00 at 15:44:04 | |
---|---|
|
|
File size: 738 bytes |
Rev | Line | |
---|---|---|
[5620149] | 1 | dnl |
2 | dnl $Id$ | |
3 | dnl | |
4 | ||
5 | dnl check for i386 gas supporting 16 bit mode | |
[2c3840b] | 6 | dnl - binutils 2.9.1.0.7 and higher |
[5620149] | 7 | |
8 | AC_DEFUN(RTEMS_I386_GAS_CODE16, | |
[2e0fd427] | 9 | [ if test "${host_cpu}" = "i386"; then |
[5620149] | 10 | AC_CACHE_CHECK([for 16 bit mode assembler support], |
11 | rtems_cv_prog_gas_code16, | |
12 | [cat > conftest.s << EOF | |
13 | .code16 | |
[f44a81b] | 14 | data32 |
15 | addr32 | |
[bf1ef5b] | 16 | lgdt 0 |
[5620149] | 17 | EOF |
[2e0fd427] | 18 | if AC_TRY_COMMAND($AS -o conftest.o conftest.s); then |
[5620149] | 19 | rtems_cv_prog_gas_code16=yes |
20 | else | |
21 | rtems_cv_prog_gas_code16=no | |
22 | fi]) | |
[2c3840b] | 23 | RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16" |
[5620149] | 24 | fi |
[7e03d10] | 25 | AC_SUBST(RTEMS_GAS_CODE16) |
[2e0fd427] | 26 | if test x"${RTEMS_GAS_CODE16}" = x"yes"; |
27 | then | |
28 | AC_DEFINE_UNQUOTED(NEW_GAS,1,[if using 16 bit mode assembler support]) | |
29 | fi | |
[7e03d10] | 30 | ]) |
[5620149] | 31 |
Note: See TracBrowser
for help on using the repository browser.