Fix build and distdir.
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
diff --git a/Makefile.am b/Makefile.am
index bd350bc..91a7521 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -78,7 +78,7 @@ cgminer_SOURCES += driver-icarus.c
endif
if HAS_AVALON
-cgminer_SOURCES += driver-avalon.c
+cgminer_SOURCES += driver-avalon.c driver-avalon.h
endif
if HAS_MODMINER
diff --git a/cgminer.c b/cgminer.c
index 46ea2dd..679a2c8 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -47,7 +47,10 @@
#include "driver-opencl.h"
#include "bench_block.h"
#include "scrypt.h"
+
+#ifdef USE_AVALON
#include "driver-avalon.h"
+#endif
#if defined(unix)
#include <errno.h>
diff --git a/configure.ac b/configure.ac
index 24f7579..d338121 100644
--- a/configure.ac
+++ b/configure.ac
@@ -478,14 +478,14 @@ if test "x$opencl" != xno; then
else
echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED"
- if test "x$bitforce$avalon$icarus$ztex$modminer$bflsc" = xnonononononono; then
+ if test "x$bitforce$avalon$icarus$ztex$modminer$bflsc" = xnononononono; 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$bitforce$icarus$avalon$ztex$modminer$bflsc" = xnonononononono; then
+ if test "x$bitforce$icarus$avalon$ztex$modminer$bflsc" = xnononononono; then
AC_MSG_ERROR([No mining configured in])
fi
echo " scrypt...............: Disabled (needs OpenCL)"