Commit 8e988473 authored by Niels Möller's avatar Niels Möller
Browse files

(asm_path): Check for sparc64, and use sparc64

subdirectory. Link in md5-compress.asm, if it exists.

Rev: src/nettle/configure.ac:1.62
parent 0b5574f8
...@@ -105,7 +105,15 @@ case "$host" in ...@@ -105,7 +105,15 @@ case "$host" in
asm_path=x86 asm_path=x86
;; ;;
*sparc*-*-*) *sparc*-*-*)
asm_path=sparc AC_TRY_COMPILE([
#if defined(__sparcv9) || defined(__arch64__)
#error 64-bit sparc
#endif
], [], [
asm_path=sparc
], [
asm_path=sparc64
])
;; ;;
*) *)
enable_assembler=no enable_assembler=no
...@@ -119,7 +127,7 @@ if test "x$enable_assembler" = xyes ; then ...@@ -119,7 +127,7 @@ if test "x$enable_assembler" = xyes ; then
AC_MSG_NOTICE([Looking for assembler files in $asm_path/.]) AC_MSG_NOTICE([Looking for assembler files in $asm_path/.])
found=no found=no
for tmp_f in aes.asm aes-encrypt.asm aes-decrypt.asm \ for tmp_f in aes.asm aes-encrypt.asm aes-decrypt.asm \
arcfour-crypt.asm sha1-compress.asm machine.m4; do arcfour-crypt.asm md5-compress.asm sha1-compress.asm machine.m4; do
# echo "Looking for $srcdir/$asm_path/$tmp_f" # echo "Looking for $srcdir/$asm_path/$tmp_f"
if test -f "$srcdir/$asm_path/$tmp_f"; then if test -f "$srcdir/$asm_path/$tmp_f"; then
# echo found # echo found
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment