Blob Blame History Raw
Patch by Dennis Gilmore <dennis@ausil.us> for beecrypt >= 4.1.2 to catch lib64 on sparc64.

--- beecrypt-4.1.2/acinclude.m4				2004-12-19 14:16:35.000000000 -0600
+++ beecrypt-4.1.2/acinclude.m4.sparc64			2007-11-29 11:48:32.000000000 -0600
@@ -102,6 +102,29 @@
       ;;
     esac
     ;;
+  sparc*)
+    case $withval in
+    sparc)
+      ;;
+    sparcv[789])
+     bc_target_arch=sparc
+      ;;
+    sparcv9v)
+     bc_target_arch=sparc
+      ;;
+    sparc64)
+      bc_target_arch=sparc64
+      ;;
+    sparc64v)
+      bc_target_arch=sparc64
+      ;;
+    *)
+      AC_MSG_WARN([unsupported on invalid arch type])
+      bc_target_arch=sparc
+      ;;
+    esac
+    ;;
+
   esac
   ])
 
@@ -133,9 +156,15 @@
   s390x)
     bc_target_arch=s390x
     ;;
-  sparc*)
+  sparc)
     bc_target_arch=sparc
     ;;
+  sparcv[789]*)
+    bc_target_arch=sparc
+    ;;
+  sparc64*)
+    bc_target_arch=sparc64
+    ;;
   x86_64)
     bc_target_arch=x86_64
     ;;
--- beecrypt-4.1.2/aclocal.m4				2004-12-21 05:38:18.000000000 -0600
+++ beecrypt-4.1.2/aclocal.m4.sparc64			2007-11-28 15:18:51.000000000 -0600
@@ -1435,7 +1435,7 @@
   # find out which ABI we are using
   libsuff=
   case "$host_cpu" in
-  x86_64*|s390x*|powerpc64*)
+  x86_64*|s390x*|powerpc64*|sparc64*)
     echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     if AC_TRY_EVAL(ac_compile); then
       case `/usr/bin/file conftest.$ac_objext` in
--- beecrypt-4.1.2/configure.ac				2004-12-21 05:37:56.000000000 -0600
+++ beecrypt-4.1.2/configure.ac.sparc64			2007-11-28 12:45:39.000000000 -0600
@@ -614,7 +614,7 @@
 case $target_os in
 linux*)
   case $bc_target_arch in
-  powerpc64 | s390x | x86_64)
+  powerpc64 | s390x | x86_64| sparc64 )
     bc_libalt="64"
     ;;
   esac