From 8e988473dc74c33e9832f9e12db749c6aad5f790 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Thu, 13 Oct 2005 14:21:18 +0200
Subject: [PATCH] (asm_path): Check for sparc64, and use sparc64 subdirectory.
 Link in md5-compress.asm, if it exists.

Rev: src/nettle/configure.ac:1.62
---
 configure.ac | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3207d143..411c0744 100644
--- a/configure.ac
+++ b/configure.ac
@@ -105,7 +105,15 @@ case "$host" in
     asm_path=x86
     ;;
   *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
@@ -119,7 +127,7 @@ if test "x$enable_assembler" = xyes ; then
     AC_MSG_NOTICE([Looking for assembler files in $asm_path/.])
     found=no
     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"
       if test -f "$srcdir/$asm_path/$tmp_f"; then
 #        echo found
-- 
GitLab