build: fix configure on FreeBSD powerpc64

awsm
Kevin Bowling 6 years ago committed by Samy Al Bahra
parent 1cb2e6b281
commit 999d4612e8

28
configure vendored

@ -383,11 +383,18 @@ assert "$SYSTEM" "$SYSTEM" "unsupported"
CORES=${CORES:-${DCORES}} CORES=${CORES:-${DCORES}}
printf "Detecting machine architecture..." printf "Detecting machine architecture..."
if test "x$PLATFORM" = "x"; then if test "x$PLATFORM" = "x"; then
PLATFORM=`uname -m 2> /dev/null` case $SYSTEM in
"freebsd")
PLATFORM=`uname -p 2> /dev/null`
;;
*)
PLATFORM=`uname -m 2> /dev/null`
;;
esac
fi fi
case $PLATFORM in case $PLATFORM in
"macppc"|"Power Macintosh"|"powerpc") "macppc"|"Power Macintosh"|"powerpc"|"powerpcspe")
RTM_ENABLE="CK_MD_RTM_DISABLE" RTM_ENABLE="CK_MD_RTM_DISABLE"
LSE_ENABLE="CK_MD_LSE_DISABLE" LSE_ENABLE="CK_MD_LSE_DISABLE"
MM="${MM:-"CK_MD_RMO"}" MM="${MM:-"CK_MD_RMO"}"
@ -475,19 +482,22 @@ case $PLATFORM in
;; ;;
esac esac
;; ;;
"ppc64"|"ppc64le") "ppc64"|"ppc64le"|"powerpc64")
RTM_ENABLE="CK_MD_RTM_DISABLE" RTM_ENABLE="CK_MD_RTM_DISABLE"
LSE_ENABLE="CK_MD_LSE_DISABLE" LSE_ENABLE="CK_MD_LSE_DISABLE"
MM="${MM:-"CK_MD_RMO"}" MM="${MM:-"CK_MD_RMO"}"
PLATFORM=ppc64 PLATFORM=ppc64
ENVIRONMENT=64 ENVIRONMENT=64
;; ;;
arm|armv6l|armv7l) arm|armv6|armv6l|armv7|armv7l)
if test "$PLATFORM" = "armv6l"; then case "$PLATFORM" in
CFLAGS="$CFLAGS -march=armv6k"; "armv6"|"armv6l")
elif test "$PLATFORM" = "armv7l"; then CFLAGS="$CFLAGS -march=armv6k";
CFLAGS="$CFLAGS -march=armv7-a"; ;;
fi "armv7"|"armv7l")
CFLAGS="$CFLAGS -march=armv7-a";
;;
esac
RTM_ENABLE="CK_MD_RTM_DISABLE" RTM_ENABLE="CK_MD_RTM_DISABLE"
LSE_ENABLE="CK_MD_LSE_DISABLE" LSE_ENABLE="CK_MD_LSE_DISABLE"
MM="${MM:-"CK_MD_RMO"}" MM="${MM:-"CK_MD_RMO"}"

Loading…
Cancel
Save