Solaris workarounds.

SVN revision: 22192
This commit is contained in:
Ben Rockwood 2006-04-18 09:38:05 +00:00
parent fdfdd8bf14
commit 4963ee522a
1 changed files with 14 additions and 4 deletions

View File

@ -11,14 +11,20 @@ AM_CONFIG_HEADER(config.h)
AC_C_BIGENDIAN AC_C_BIGENDIAN
AC_PROG_CC AC_PROG_CC
AC_MSG_CHECKING([if gcc supports __attribute__((visibility("hidden")))])
AC_COMPILE_IFELSE([ case $host_os in
void __attribute__((visibility("hidden"))) func (void) {} solaris*)
], ;;
*)
AC_MSG_CHECKING([if gcc supports __attribute__((visibility("hidden")))])
AC_COMPILE_IFELSE([
void __attribute__((visibility("hidden"))) func (void) {}
],
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
AC_DEFINE(USE_HIDDEN_FUNCTION_ATTRIBUTE,1, AC_DEFINE(USE_HIDDEN_FUNCTION_ATTRIBUTE,1,
[Define this to 1 if `hidden' attribute for internal functions is used.])], [Define this to 1 if `hidden' attribute for internal functions is used.])],
[AC_MSG_RESULT(no)]) [AC_MSG_RESULT(no)])
esac
AM_PROG_CC_STDC AM_PROG_CC_STDC
AC_HEADER_STDC AC_HEADER_STDC
@ -112,6 +118,10 @@ case $host_cpu in
amd64) amd64="yes";; amd64) amd64="yes";;
esac esac
case $host_os in
solaris*) mmx="no";;
esac
dnl dnl
AC_ARG_ENABLE(mmx, AC_ARG_ENABLE(mmx,
[ --enable-mmx attempt compiling using x86 mmx assembly @<:@default=auto@:>@], [ --enable-mmx attempt compiling using x86 mmx assembly @<:@default=auto@:>@],