mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 12:18:04 +01:00
Replace check for sparc with host_cpu
This commit is contained in:
25
configure.in
25
configure.in
@@ -175,23 +175,14 @@ case "${host_os}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Check if we are running at sparc harware
|
# CPU-specific optimizations
|
||||||
AC_MSG_CHECKING([wheter __sparc__ is defined])
|
case "${host_cpu}" in
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
*sparc*)
|
||||||
[[#if defined __sparc__
|
CPPFLAGS="$CPPFLAGS -mcpu=v9"
|
||||||
//OK we are on sparc
|
;;
|
||||||
#else
|
*)
|
||||||
error: we are not on sparc
|
;;
|
||||||
#endif
|
esac
|
||||||
]])],
|
|
||||||
[sparc=yes],
|
|
||||||
[sparc=no])
|
|
||||||
|
|
||||||
AC_MSG_RESULT([$sparc])
|
|
||||||
|
|
||||||
if test "x$sparc" = "xyes"; then
|
|
||||||
CPPFLAGS="$CPPFLAGS -mcpu=v9"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
|||||||
Reference in New Issue
Block a user