]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(asm_path): Check for sparc64, and use sparc64
authorNiels Möller <nisse@lysator.liu.se>
Thu, 13 Oct 2005 12:21:18 +0000 (14:21 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 13 Oct 2005 12:21:18 +0000 (14:21 +0200)
subdirectory. Link in md5-compress.asm, if it exists.

Rev: src/nettle/configure.ac:1.62

configure.ac

index 3207d1438f3d59792c4af6ef1d8fd6727fa6729e..411c07442a19aad80ae9bb2b4d0125daae0ac1e1 100644 (file)
@@ -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