diff options
Diffstat (limited to 'libitm/configure.tgt')
-rw-r--r-- | libitm/configure.tgt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libitm/configure.tgt b/libitm/configure.tgt index e20349a1f84..b68c86b05f4 100644 --- a/libitm/configure.tgt +++ b/libitm/configure.tgt @@ -66,6 +66,34 @@ case "${target_cpu}" in sh*) ARCH=sh ;; + sparc) + case " ${CC} ${CFLAGS} " in + *" -m64 "*) + ;; + *) + if test -z "$with_cpu"; then + XCFLAGS="${XCFLAGS} -mcpu=v9" + fi + esac + ARCH=sparc + ;; + + sparc64|sparcv9) + case " ${CC} ${CFLAGS} " in + *" -m32 "*) + XCFLAGS="${XCFLAGS} -mcpu=v9" + ;; + *" -m64 "*) + ;; + *) + if test "x$with_cpu" = xv8; then + XCFLAGS="${XCFLAGS} -mcpu=v9" + fi + ;; + esac + ARCH=sparc + ;; + x86_64) case " ${CC} ${CFLAGS} " in *" -m32 "*) |