From 9f36417b5ec07299994310f382b197dd71a1396b Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Wed, 17 May 2000 10:22:12 +0000 Subject: [PATCH] Fix "_" problems. --- configure.in | 13 +++++++++++++ include/asm_i386.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 8cac0e3..0acd63e 100644 --- a/configure.in +++ b/configure.in @@ -119,6 +119,19 @@ AC_TRY_COMPILE( AC_MSG_RESULT(no) ) +dnl Check for symbol underscore prefix +dnl !!! FIXME !!! Do some real check here... +AC_MSG_CHECKING(whether C symbols are prefixed by '_') +case "${target}" in + *-*-msdos* | *-*-djgpp* | *-*-mingw* | *-*-cygwin* | *-*-openbsd*) + AC_DEFINE(HAVE_SYM_PREFIX_UNDERSCORE) + AC_MSG_RESULT(yes) + ;; + *) + AC_MSG_RESULT(no) + ;; +esac + dnl Checks for library functions. AC_FUNC_ALLOCA AC_FUNC_MEMCMP diff --git a/include/asm_i386.h b/include/asm_i386.h index 03dc2aa..50c7d3a 100644 --- a/include/asm_i386.h +++ b/include/asm_i386.h @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef __ASM_I386__ #define __ASM_I386__ -#ifdef ELF +#ifdef HAVE_SYM_PREFIX_UNDERSCORE #define C(label) label #else #define C(label) _##label