Add configure support for avalon.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
diff --git a/configure.ac b/configure.ac
index 441dfb1..9a6013c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -241,6 +241,17 @@ if test "x$icarus" = xyes; then
fi
AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes])
+avalon="no"
+
+AC_ARG_ENABLE([avalon],
+ [AC_HELP_STRING([--enable-avalon],[Compile support for Avalon (default disabled)])],
+ [avalon=$enableval]
+ )
+if test "x$avalon" = xyes; then
+ AC_DEFINE([USE_AVALON], [1], [Defined to 1 if Avalon support is wanted])
+fi
+AM_CONDITIONAL([HAS_AVALON], [test x$avalon = xyes])
+
modminer="no"
AC_ARG_ENABLE([modminer],
@@ -287,7 +298,7 @@ else
])
fi
-AM_CONDITIONAL([NEED_FPGAUTILS], [test x$icarus$bitforce$modminer$ztex != xnononono])
+AM_CONDITIONAL([NEED_FPGAUTILS], [test x$avalon$icarus$bitforce$modminer$ztex != xnonononono])
AM_CONDITIONAL([NEED_USBUTILS_C], [test x$bitforce$modminer$bflsc != xnonono])
AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
AM_CONDITIONAL([WANT_JANSSON], [test x$request_jansson = xtrue])
@@ -501,14 +512,14 @@ if test "x$opencl" != xno; then
else
echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED"
- if test "x$cpumining$bitforce$icarus$ztex$modminer$bflsc" = xnononononono; then
+ if test "x$cpumining$bitforce$avalon$icarus$ztex$modminer$bflsc" = xnonononononono; then
AC_MSG_ERROR([No mining configured in])
fi
echo " scrypt...............: Disabled (needs OpenCL)"
fi
else
echo " OpenCL...............: Detection overrided. GPU mining support DISABLED"
- if test "x$cpumining$bitforce$icarus$ztex$modminer$bflsc" = xnononononono; then
+ if test "x$cpumining$bitforce$icarus$avalon$ztex$modminer$bflsc" = xnonononononono; then
AC_MSG_ERROR([No mining configured in])
fi
echo " scrypt...............: Disabled (needs OpenCL)"
@@ -525,6 +536,12 @@ else
fi
echo
+if test "x$avalon" = xyes; then
+ echo " Avalon.ASICs.........: Enabled"
+else
+ echo " Avalon.ASICs.........: Disabled"
+fi
+
if test "x$bflsc" = xyes; then
echo " BFL.ASICs............: Enabled"
else