-dnl $Id: aclocal.m4,v 1.31 1998/11/17 01:24:58 reid Exp $
+dnl $Id: aclocal.m4,v 1.35 1998/12/02 13:17:10 simonm Exp $
dnl
dnl Extra autoconf macros for the Glasgow fptools
dnl
fi
])
+
dnl ** check for leading underscores in symbol names
dnl
dnl Test for determining whether symbol names have a leading
dnl Hack!: nlist() under Digital UNIX insist on there being an _,
dnl but symbol table listings shows none. What is going on here?!?
dnl
+dnl Another hack: cygwin doesn't come with nlist.h , so we hardwire
+dnl the underscoredness of that "platform"
changequote(<<, >>)dnl
<<
case $HostPlatform in
int main() { return ((char*)&f > (char*)&i); }
],
-fptools_cv_code_bef_data=yes, fptools_cv_code_bef_data=no)])
+fptools_cv_code_bef_data=yes, fptools_cv_code_bef_data=no,false)])
if test "$fptools_cv_code_bef_data" = yes; then
AC_DEFINE(CODE_BEFORE_DATA)
fi
for i in etext _etext __etext; do
FPTOOLS_IN_SCOPE($i,$i,fptools_cv_end_of_text)
if test "$fptools_cv_end_of_text" = yes; then
+ AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER_DECL, $i)
AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER, $i)
not_done=0
break
if test "$not_done" = 1; then
FPTOOLS_IN_SCOPE(etext asm("etext"),etext,fptools_cv_end_of_text);
if test "$fptools_cv_end_of_text" = yes; then
- AC_DEFINE(TEXT_SECTION_END_MARKER, etext asm("etext"))
+ AC_DEFINE(TEXT_SECTION_END_MARKER_DECL, etext asm("etext"))
+ AC_DEFINE(TEXT_SECTION_END_MARKER, etext)
else
AC_DEFINE(TEXT_SECTION_END_MARKER, dunno_what_it_is)
fi
for i in end _end __end; do
FPTOOLS_IN_SCOPE($i,$i,fptools_cv_end_of_data)
if test "$fptools_cv_end_of_data" = yes; then
+ AC_DEFINE_UNQUOTED(DATA_SECTION_END_MARKER_DECL, $i)
AC_DEFINE_UNQUOTED(DATA_SECTION_END_MARKER, $i)
not_done=0
break
if test "$not_done" = 1; then
FPTOOLS_IN_SCOPE(end asm("end"),end,fptools_cv_end_of_data);
if test "$fptools_cv_end_of_data" = yes; then
- AC_DEFINE(DATA_SECTION_END_MARKER, end asm("end"))
+ AC_DEFINE(DATA_SECTION_END_MARKER_DECL, end asm("end"))
+ AC_DEFINE(DATA_SECTION_END_MARKER, end)
else
+ AC_DEFINE(DATA_SECTION_END_MARKER_DECL, dunno_what_it_is)
AC_DEFINE(DATA_SECTION_END_MARKER, dunno_what_it_is)
fi
fi