Define HAVE_SYM_PREFIX_UNDERSCORE if C symbols are prefixed by an underscore (should be a real check in the future).

This commit is contained in:
Marcus Sundberg 2000-01-06 00:54:51 +00:00
parent 4120cda2d2
commit 98e1681e6b
2 changed files with 17 additions and 0 deletions

View file

@ -13,6 +13,9 @@
/* Define this if you have GL_COLOR_INDEX8_EXT in GL/gl.h */
#undef HAVE_GL_COLOR_INDEX8_EXT
/* Define this if C symbols are prefixed with an underscore */
#undef HAVE_SYM_PREFIX_UNDERSCORE
#if defined(X11)
# define OUTPUT_STR "X11"
#elif defined(GGI)

View file

@ -27,6 +27,20 @@ AC_HEADER_TIME
AC_STRUCT_TM
AC_C_BIGENDIAN
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
*-*-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_MMAP
AC_FUNC_VPRINTF