Browse Source

Merge commit '83590b2' into bfgminer

Luke Dashjr 13 years ago
parent
commit
7cc3c397ad
1 changed files with 8 additions and 3 deletions
  1. 8 3
      configure.ac

+ 8 - 3
configure.ac

@@ -70,13 +70,16 @@ WS2_LIBS=""
 MATH_LIBS="-lm"
 
 case $target in
-  amd64-*)
+  amd64-* | x86_64-*)
+    have_x86_32=false
     have_x86_64=true
     ;;
-  x86_64-*)
-    have_x86_64=true
+  i386-* | i486-* | i586-* | i686-* | x86-*)
+    have_x86_32=true
+    have_x86_64=false
     ;;
   *)
+    have_x86_32=false
     have_x86_64=false
     ;;
 esac
@@ -374,6 +377,7 @@ JANSSON_LIBS=-ljansson
 
 dnl Find YASM
 has_yasm=false
+if test "x$have_x86_32$have_x86_64" != "xfalsefalse"; then
 AC_PATH_PROG([YASM],[yasm],[false])
 if test "x$YASM" != "xfalse" ; then
   AC_MSG_CHECKING([if yasm version is greater than 1.0.1])
@@ -405,6 +409,7 @@ fi
 if test "x$has_yasm" = "xfalse" ; then
   AC_MSG_NOTICE([yasm is required for the assembly algorithms. They will be skipped.])
 fi
+fi
 
 AM_CONDITIONAL([HAS_YASM], [test x$has_yasm = xtrue])