build: Explicitly disable RTM on non-x86_64 targets.

And for x86-32, I don't have an environment with 32-bit
support that has RTM.
ck_pring
Samy Al Bahra 12 years ago
parent 73a1e42baf
commit 0999d30067

7
configure vendored

@ -224,6 +224,7 @@ LIBRARY=${LIBRARY:-"${PREFIX}/lib"}
MANDIR=${MANDIR:-"${PREFIX}/share/man"} MANDIR=${MANDIR:-"${PREFIX}/share/man"}
GZIP=${GZIP:-"gzip -c"} GZIP=${GZIP:-"gzip -c"}
POINTER_PACK_ENABLE=${POINTER_PACK_ENABLE:-"CK_MD_POINTER_PACK_DISABLE"} POINTER_PACK_ENABLE=${POINTER_PACK_ENABLE:-"CK_MD_POINTER_PACK_DISABLE"}
RTM_ENABLE=${RTM_ENABLE_SET:-"CK_MD_RTM_DISABLE"}
if test "$PROFILE"; then if test "$PROFILE"; then
printf "Using user-specified profile....." printf "Using user-specified profile....."
@ -302,12 +303,14 @@ printf "Detecting machine architecture..."
PLATFORM=`uname -m 2> /dev/null` PLATFORM=`uname -m 2> /dev/null`
case $PLATFORM in case $PLATFORM in
"macppc"|"Power Macintosh"|"powerpc") "macppc"|"Power Macintosh"|"powerpc")
RTM_ENABLE="CK_MD_RTM_DISABLE"
MM="${MM:-"CK_MD_RMO"}" MM="${MM:-"CK_MD_RMO"}"
PLATFORM=ppc PLATFORM=ppc
ENVIRONMENT=32 ENVIRONMENT=32
LDFLAGS="-m32 $LDFLAGS" LDFLAGS="-m32 $LDFLAGS"
;; ;;
"sun4u"|"sun4v"|"sparc64") "sun4u"|"sun4v"|"sparc64")
RTM_ENABLE="CK_MD_RTM_DISABLE"
MM="${MM:-"CK_MD_TSO"}" MM="${MM:-"CK_MD_TSO"}"
PLATFORM=sparcv9 PLATFORM=sparcv9
ENVIRONMENT=64 ENVIRONMENT=64
@ -360,13 +363,13 @@ case $PLATFORM in
esac esac
;; ;;
"amd64"|"x86_64") "amd64"|"x86_64")
RTM_ENABLE=${RTM_ENABLE_SET:-"CK_MD_RTM_DISABLE"}
PLATFORM=x86_64 PLATFORM=x86_64
ENVIRONMENT=64 ENVIRONMENT=64
LDFLAGS="-m64 $LDFLAGS" LDFLAGS="-m64 $LDFLAGS"
MM="${MM:-"CK_MD_TSO"}" MM="${MM:-"CK_MD_TSO"}"
;; ;;
"i86pc") "i86pc")
RTM_ENABLE="CK_MD_RTM_DISABLE"
MM="${MM:-"CK_MD_TSO"}" MM="${MM:-"CK_MD_TSO"}"
ISA=`isainfo -n 2> /dev/null || echo i386` ISA=`isainfo -n 2> /dev/null || echo i386`
case "$ISA" in case "$ISA" in
@ -383,11 +386,13 @@ case $PLATFORM in
esac esac
;; ;;
"ppc64") "ppc64")
RTM_ENABLE="CK_MD_RTM_DISABLE"
MM="${MM:-"CK_MD_RMO"}" MM="${MM:-"CK_MD_RMO"}"
PLATFORM=ppc64 PLATFORM=ppc64
ENVIRONMENT=64 ENVIRONMENT=64
;; ;;
*) *)
RTM_ENABLE="CK_MD_RTM_DISABLE"
PLATFORM= PLATFORM=
MM="${MM:-"CK_MD_RMO"}" MM="${MM:-"CK_MD_RMO"}"
;; ;;

Loading…
Cancel
Save