Browse Source

Reorder configure alphabetically for devices to compile and fail if no support is selected to be compiled in.

Con Kolivas 12 years ago
parent
commit
b58d1b375e
1 changed files with 34 additions and 30 deletions
  1. 34 30
      configure.ac

+ 34 - 30
configure.ac

@@ -137,16 +137,16 @@ if test "x$avalon" = xyes; then
 fi
 fi
 AM_CONDITIONAL([HAS_AVALON], [test x$avalon = xyes])
 AM_CONDITIONAL([HAS_AVALON], [test x$avalon = xyes])
 
 
-knc="no"
+bab="no"
 
 
-AC_ARG_ENABLE([knc],
-	[AC_HELP_STRING([--enable-knc],[Compile support for KnC miners (default disabled)])],
-	[knc=$enableval]
+AC_ARG_ENABLE([bab],
+	[AC_HELP_STRING([--enable-bab],[Compile support for BlackArrow Bitfury (default disabled)])],
+	[bab=$enableval]
 	)
 	)
-if test "x$knc" = xyes; then
-	AC_DEFINE([USE_KNC], [1], [Defined to 1 if KnC miner support is wanted])
+if test "x$bab" = xyes; then
+	AC_DEFINE([USE_BAB], [1], [Defined to 1 if BlackArrow Bitfury support is wanted])
 fi
 fi
-AM_CONDITIONAL([HAS_KNC], [test x$knc = xyes])
+AM_CONDITIONAL([HAS_BAB], [test x$bab = xyes])
 
 
 bflsc="no"
 bflsc="no"
 
 
@@ -192,17 +192,6 @@ if test "x$hashfast" = xyes; then
 fi
 fi
 AM_CONDITIONAL([HAS_HASHFAST], [test x$hashfast = xyes])
 AM_CONDITIONAL([HAS_HASHFAST], [test x$hashfast = xyes])
 
 
-bab="no"
-
-AC_ARG_ENABLE([bab],
-	[AC_HELP_STRING([--enable-bab],[Compile support for BlackArrow Bitfury (default disabled)])],
-	[bab=$enableval]
-	)
-if test "x$bab" = xyes; then
-	AC_DEFINE([USE_BAB], [1], [Defined to 1 if BlackArrow Bitfury support is wanted])
-fi
-AM_CONDITIONAL([HAS_BAB], [test x$bab = xyes])
-
 icarus="no"
 icarus="no"
 
 
 AC_ARG_ENABLE([icarus],
 AC_ARG_ENABLE([icarus],
@@ -225,6 +214,17 @@ if test "x$klondike" = xyes; then
 fi
 fi
 AM_CONDITIONAL([HAS_KLONDIKE], [test x$klondike = xyes])
 AM_CONDITIONAL([HAS_KLONDIKE], [test x$klondike = xyes])
 
 
+knc="no"
+
+AC_ARG_ENABLE([knc],
+	[AC_HELP_STRING([--enable-knc],[Compile support for KnC miners (default disabled)])],
+	[knc=$enableval]
+	)
+if test "x$knc" = xyes; then
+	AC_DEFINE([USE_KNC], [1], [Defined to 1 if KnC miner support is wanted])
+fi
+AM_CONDITIONAL([HAS_KNC], [test x$knc = xyes])
+
 modminer="no"
 modminer="no"
 
 
 AC_ARG_ENABLE([modminer],
 AC_ARG_ENABLE([modminer],
@@ -447,16 +447,16 @@ else
 	echo "  Avalon.ASICs.........: Disabled"
 	echo "  Avalon.ASICs.........: Disabled"
 fi
 fi
 
 
-if test "x$bflsc" = xyes; then
-	echo "  BFL.ASICs............: Enabled"
+if test "x$bab" = xyes; then
+	echo "  BlackArrow.ASICs.....: Enabled"
 else
 else
-	echo "  BFL.ASICs............: Disabled"
+	echo "  BlackArrow.ASICs.....: Disabled"
 fi
 fi
 
 
-if test "x$knc" = xyes; then
-	echo "  KnC.ASICs............: Enabled"
+if test "x$bflsc" = xyes; then
+	echo "  BFL.ASICs............: Enabled"
 else
 else
-	echo "  KnC.ASICs............: Disabled"
+	echo "  BFL.ASICs............: Disabled"
 fi
 fi
 
 
 if test "x$bitforce" = xyes; then
 if test "x$bitforce" = xyes; then
@@ -477,12 +477,6 @@ else
 	echo "  Hashfast.ASICs.......: Disabled"
 	echo "  Hashfast.ASICs.......: Disabled"
 fi
 fi
 
 
-if test "x$bab" = xyes; then
-	echo "  BlackArrow.ASICs.....: Enabled"
-else
-	echo "  BlackArrow.ASICs.....: Disabled"
-fi
-
 if test "x$icarus" = xyes; then
 if test "x$icarus" = xyes; then
 	echo "  Icarus.ASICs/FPGAs...: Enabled"
 	echo "  Icarus.ASICs/FPGAs...: Enabled"
 else
 else
@@ -495,12 +489,22 @@ else
 	echo "  Klondike.ASICs.......: Disabled"
 	echo "  Klondike.ASICs.......: Disabled"
 fi
 fi
 
 
+if test "x$knc" = xyes; then
+	echo "  KnC.ASICs............: Enabled"
+else
+	echo "  KnC.ASICs............: Disabled"
+fi
+
 if test "x$modminer" = xyes; then
 if test "x$modminer" = xyes; then
 	echo "  ModMiner.FPGAs.......: Enabled"
 	echo "  ModMiner.FPGAs.......: Enabled"
 else
 else
 	echo "  ModMiner.FPGAs.......: Disabled"
 	echo "  ModMiner.FPGAs.......: Disabled"
 fi
 fi
 
 
+if test "x$avalon$bab$bflsc$bitforce$bitfury$hashfast$icarus$klondike$knc$modminer" = xnononononononononono; then
+	AC_MSG_ERROR([No mining configured in])
+fi
+
 echo
 echo
 echo "Compilation............: make (or gmake)"
 echo "Compilation............: make (or gmake)"
 echo "  CPPFLAGS.............: $CPPFLAGS"
 echo "  CPPFLAGS.............: $CPPFLAGS"