configure.ac 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  2. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  3. m4_define([v_maj], [2])
  4. m4_define([v_min], [10])
  5. m4_define([v_mic], [0])
  6. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  7. m4_define([v_ver], [v_maj.v_min.v_mic])
  8. m4_define([lt_rev], m4_eval(v_maj + v_min))
  9. m4_define([lt_cur], v_mic)
  10. m4_define([lt_age], v_min)
  11. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  12. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  13. AC_INIT([bfgminer], [v_ver], [luke-jr+bfgminer@utopios.org])
  14. AC_PREREQ([2.59c])
  15. AC_CANONICAL_SYSTEM
  16. AC_CONFIG_MACRO_DIR([m4])
  17. AC_CONFIG_SRCDIR([miner.c])
  18. AC_CONFIG_HEADERS([config.h])
  19. AM_INIT_AUTOMAKE([foreign])
  20. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  21. AC_USE_SYSTEM_EXTENSIONS
  22. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  23. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  24. m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
  25. m4_ifdef([v_rel], , [m4_define([v_rel], [])])
  26. AC_DEFINE_UNQUOTED(CGMINER_MAJOR_VERSION, [v_maj], [Major version])
  27. AC_DEFINE_UNQUOTED(CGMINER_MINOR_VERSION, [v_min], [Minor version])
  28. AC_DEFINE_UNQUOTED(CGMINER_MINOR_SUBVERSION, [v_mic], [Micro version])
  29. version_info="lt_rev:lt_cur:lt_age"
  30. release_info="v_rel"
  31. AC_SUBST(version_info)
  32. AC_SUBST(release_info)
  33. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  34. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  35. VMAJ=v_maj
  36. AC_SUBST(VMAJ)
  37. AC_CANONICAL_BUILD
  38. AC_CANONICAL_HOST
  39. dnl Make sure anyone changing configure.ac/Makefile.am has a clue
  40. AM_MAINTAINER_MODE
  41. dnl Checks for programs
  42. AC_PROG_CC_C99
  43. gl_EARLY
  44. AC_PROG_GCC_TRADITIONAL
  45. AM_PROG_CC_C_O
  46. AC_PROG_RANLIB
  47. gl_INIT
  48. dnl Checks for header files.
  49. AC_HEADER_STDC
  50. AC_CHECK_HEADERS(syslog.h)
  51. AC_CHECK_HEADERS([sys/epoll.h])
  52. AC_CHECK_HEADERS([sys/prctl.h])
  53. AC_FUNC_ALLOCA
  54. have_cygwin=false
  55. have_win32=false
  56. PTHREAD_FLAGS="-lpthread"
  57. DLOPEN_FLAGS="-ldl"
  58. WS2_LIBS=""
  59. MATH_LIBS="-lm"
  60. case $target in
  61. amd64-*)
  62. have_x86_64=true
  63. ;;
  64. x86_64-*)
  65. have_x86_64=true
  66. ;;
  67. *)
  68. have_x86_64=false
  69. ;;
  70. esac
  71. case $target in
  72. *-*-mingw*)
  73. have_x86_64=false
  74. have_win32=true
  75. PTHREAD_FLAGS=""
  76. DLOPEN_FLAGS=""
  77. WS2_LIBS="-lws2_32"
  78. AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
  79. ;;
  80. *-*-cygwin*)
  81. have_cygwin=true
  82. ;;
  83. powerpc-*-darwin*)
  84. CFLAGS="$CFLAGS -faltivec"
  85. PTHREAD_FLAGS=""
  86. ;;
  87. *-*-darwin*)
  88. PTHREAD_FLAGS=""
  89. ;;
  90. esac
  91. cpumining="no"
  92. AC_ARG_ENABLE([cpumining],
  93. [AC_HELP_STRING([--enable-cpumining],[Build with cpu mining support(default disabled)])],
  94. [cpumining=$enableval]
  95. )
  96. if test "x$cpumining" = xyes; then
  97. AC_DEFINE_UNQUOTED([WANT_CPUMINE], [1], [Enable CPUMINING])
  98. fi
  99. AM_CONDITIONAL([HAS_CPUMINE], [test x$cpumining = xyes])
  100. opencl="yes"
  101. AC_ARG_ENABLE([opencl],
  102. [AC_HELP_STRING([--disable-opencl],[Build without support for OpenCL (default enabled)])],
  103. [opencl=$enableval]
  104. )
  105. if test "x$opencl" = xyes; then
  106. AC_DEFINE([HAVE_OPENCL], [1], [Defined to 1 if OpenCL support is wanted])
  107. else
  108. DLOPEN_FLAGS=""
  109. fi
  110. AM_CONDITIONAL([HAVE_OPENCL], [test x$opencl = xyes])
  111. AC_CHECK_LIB(pthread, pthread_create, ,
  112. AC_MSG_ERROR([Could not find pthread library - please install libpthread]))
  113. PTHREAD_LIBS=-lpthread
  114. AC_CHECK_LIB(jansson, json_loads, ,
  115. AC_MSG_ERROR([Could not find jansson library]))
  116. if test "x$opencl" = xyes; then
  117. adl="yes"
  118. AC_ARG_ENABLE([adl],
  119. [AC_HELP_STRING([--disable-adl],[Build without ADL monitoring (default enabled)])],
  120. [adl=$enableval]
  121. )
  122. if test x$adl = xyes
  123. then
  124. AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
  125. fi
  126. else
  127. adl="no"
  128. fi
  129. AC_ARG_ENABLE([bitforce],
  130. [AC_HELP_STRING([--disable-bitforce],[Compile support for BitForce (default enabled)])],
  131. [bitforce=$enableval],
  132. [bitforce=yes]
  133. )
  134. if test "x$bitforce" = xyes; then
  135. AC_DEFINE([USE_BITFORCE], [1], [Defined to 1 if BitForce support is wanted])
  136. fi
  137. AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes])
  138. AC_ARG_ENABLE([icarus],
  139. [AC_HELP_STRING([--disable-icarus],[Compile support for Icarus (default enabled)])],
  140. [icarus=$enableval],
  141. [icarus=yes]
  142. )
  143. if test "x$icarus" = xyes; then
  144. AC_DEFINE([USE_ICARUS], [1], [Defined to 1 if Icarus support is wanted])
  145. fi
  146. AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes])
  147. AC_ARG_ENABLE([modminer],
  148. [AC_HELP_STRING([--disable-modminer],[Compile support for ModMiner (default enabled)])],
  149. [modminer=$enableval],
  150. [modminer=yes]
  151. )
  152. if test "x$modminer" = xyes; then
  153. AC_DEFINE([USE_MODMINER], [1], [Defined to 1 if ModMiner support is wanted])
  154. fi
  155. AM_CONDITIONAL([HAS_MODMINER], [test x$modminer = xyes])
  156. PKG_PROG_PKG_CONFIG()
  157. libusb=no
  158. libusb_include_path=""
  159. PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],[
  160. libusb=yes
  161. ],[
  162. for usb_lib in usb-1.0 usb; do
  163. AC_CHECK_LIB($usb_lib, libusb_init, [
  164. libusb=yes
  165. break
  166. ], [])
  167. done
  168. if test "x$libusb" = xyes; then
  169. AC_CHECK_DECL([libusb_init],[
  170. ],[
  171. AC_PROG_CPP
  172. AC_MSG_CHECKING([whether libusb_init is declared in subdirectory])
  173. libusb_include_path=`echo '#include <libusb-1.0/libusb.h>' | ${CPP} -M - 2>/dev/null | sed 's/^[^[:space:]]\+[[:space:]]\+\([^[:space:]]\+\)\/.*$/\1/;t;d'`
  174. if test "x$libusb_include_path" != "x"; then
  175. LIBUSB_LIBS="-l$usb_lib"
  176. LIBUSB_CFLAGS="-I$libusb_include_path"
  177. AC_MSG_RESULT([yes])
  178. else
  179. libusb=no
  180. AC_MSG_RESULT([no])
  181. fi
  182. ],[#include <libusb.h>])
  183. fi
  184. ])
  185. if test "x$libusb" = xyes; then
  186. AC_DEFINE([HAVE_LIBUSB], [1], [Define if you have libusb-1.0])
  187. save_CFLAGS="$CFLAGS"
  188. CFLAGS="$LIBUSB_CFLAGS $CFLAGS"
  189. AC_CHECK_DECLS([libusb_error_name],[],[],[#include <libusb.h>])
  190. CFLAGS="$save_CFLAGS"
  191. fi
  192. AC_ARG_ENABLE([x6500],
  193. [AC_HELP_STRING([--disable-x6500],[Compile support for X6500 (default if libusb)])],
  194. [x6500=$enableval],
  195. [x6500=auto]
  196. )
  197. if test "x$x6500$libusb" = xyesno; then
  198. AC_MSG_ERROR([Could not find libusb, required for X6500 support])
  199. elif test "x$x6500" = xauto; then
  200. x6500="$libusb"
  201. if test "x$libusb" = xno; then
  202. AC_MSG_WARN([Could not find libusb, required for X6500 support])
  203. x6500warn=yes
  204. fi
  205. fi
  206. if test "x$x6500" = xyes; then
  207. AC_DEFINE([USE_X6500], [1], [Defined to 1 if X6500 support is wanted])
  208. fi
  209. AM_CONDITIONAL([HAS_X6500], [test x$x6500 = xyes])
  210. AC_ARG_ENABLE([ztex],
  211. [AC_HELP_STRING([--disable-ztex],[Compile support for Ztex (default if libusb)])],
  212. [ztex=$enableval],
  213. [ztex=auto]
  214. )
  215. if test "x$ztex$libusb" = xyesno; then
  216. AC_MSG_ERROR([Could not find libusb, required for Ztex support])
  217. elif test "x$ztex" = xauto; then
  218. ztex="$libusb"
  219. if test "x$libusb" = xno; then
  220. AC_MSG_WARN([Could not find libusb, required for Ztex support])
  221. ztexwarn=yes
  222. fi
  223. fi
  224. if test "x$ztex" = xyes; then
  225. AC_DEFINE([USE_ZTEX], [1], [Defined to 1 if Ztex support is wanted])
  226. fi
  227. AM_CONDITIONAL([HAS_ZTEX], [test x$ztex = xyes])
  228. scrypt="no"
  229. AC_ARG_ENABLE([scrypt],
  230. [AC_HELP_STRING([--enable-scrypt],[Compile support for scrypt mining (default disabled)])],
  231. [scrypt=$enableval]
  232. )
  233. if test "x$scrypt" = xyes; then
  234. AC_DEFINE([USE_SCRYPT], [1], [Defined to 1 if scrypt support is wanted])
  235. fi
  236. curses="auto"
  237. AC_ARG_WITH([curses],
  238. [AC_HELP_STRING([--without-curses],[Compile support for curses TUI (default enabled)])],
  239. [curses=$withval]
  240. )
  241. if test "x$curses" = "xno"; then
  242. cursesmsg='User specified --without-curses. TUI support DISABLED'
  243. else
  244. if test "x$cross_compiling" != "xyes"; then
  245. AC_MSG_CHECKING([for best native curses library])
  246. orig_libs="$LIBS"
  247. orig_cflags="$CFLAGS"
  248. for curses_lib in ncurses{w,}{,6,5}; do
  249. if ! ${curses_lib}-config --cflags >/dev/null 2>/dev/null; then
  250. continue
  251. fi
  252. CFLAGS="$orig_cflags $(${curses_lib}-config --cflags)"
  253. LIBS="$orig_libs $(${curses_lib}-config --libs)"
  254. AC_LINK_IFELSE([AC_LANG_PROGRAM([[
  255. #include <curses.h>
  256. ]], [[
  257. WINDOW *w = NULL;
  258. mvwprintw(w, 2, 2, "Testing %s", "o hai");
  259. ]])], [
  260. curses=yes
  261. cursesmsg="FOUND: ${curses_lib}"
  262. AC_MSG_RESULT([$curses_lib])
  263. NCURSES_LIBS=`${curses_lib}-config --libs`
  264. NCURSES_CPPFLAGS=`${curses_lib}-config --cflags`
  265. break
  266. ], [
  267. AC_MSG_WARN([${curses_lib} doesn't seem to be installed properly])
  268. ])
  269. done
  270. LIBS="$orig_libs"
  271. CFLAGS="$orig_cflags"
  272. fi
  273. if test "x$curses" != "xyes"; then
  274. AC_SEARCH_LIBS(addstr, ncursesw ncurses pdcurses, [
  275. curses=yes
  276. cursesmsg="FOUND: ${ac_cv_search_addstr}"
  277. cursesmsg="${cursesmsg/-l/}"
  278. ], [
  279. if test "x$curses" = "xyes"; then
  280. AC_MSG_ERROR([Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)])
  281. else
  282. AC_MSG_WARN([Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev])
  283. curses=no
  284. cursesmsg='NOT FOUND. TUI support DISABLED'
  285. fi
  286. ])
  287. fi
  288. if test "x$curses" = "xyes"; then
  289. AC_DEFINE([HAVE_CURSES], [1], [Defined to 1 if curses TUI support is wanted])
  290. fi
  291. fi
  292. AC_CONFIG_SUBDIRS([libblkmaker])
  293. AM_CONDITIONAL([NEED_LIBBLKMAKER], [true])
  294. AM_CONDITIONAL([NEED_DYNCLOCK], [test x$icarus$modminer$x6500$ztex != xnonono])
  295. AM_CONDITIONAL([NEED_FPGAUTILS], [test x$icarus$bitforce$modminer$x6500$ztex != xnononono])
  296. AM_CONDITIONAL([HAS_SCRYPT], [test x$scrypt = xyes])
  297. AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
  298. AM_CONDITIONAL([HAVE_CYGWIN], [test x$have_cygwin = xtrue])
  299. AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
  300. AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
  301. JANSSON_LIBS=-ljansson
  302. dnl Find YASM
  303. has_yasm=false
  304. AC_PATH_PROG([YASM],[yasm],[false])
  305. if test "x$YASM" != "xfalse" ; then
  306. AC_MSG_CHECKING([if yasm version is greater than 1.0.1])
  307. yasmver=`yasm --version | head -1 | cut -d\ -f2`
  308. yamajor=`echo $yasmver | cut -d. -f1`
  309. yaminor=`echo $yasmver | cut -d. -f2`
  310. yamini=`echo $yasmver | cut -d. -f3`
  311. if test "$yamajor" -ge "1" ; then
  312. if test "$yamajor" -eq "1" ; then
  313. if test "$yaminor" -ge "0" ; then
  314. if test "$yaminor" -eq "0"; then
  315. if test "$yamini" -ge "1"; then
  316. has_yasm=true
  317. fi
  318. else
  319. has_yasm=true
  320. fi
  321. fi
  322. fi
  323. else
  324. has_yasm=false
  325. fi
  326. if test "x$has_yasm" = "xtrue" ; then
  327. AC_MSG_RESULT([yes])
  328. else
  329. AC_MSG_RESULT([no])
  330. fi
  331. fi
  332. if test "x$has_yasm" = "xfalse" ; then
  333. AC_MSG_NOTICE([yasm is required for the assembly algorithms. They will be skipped.])
  334. fi
  335. AM_CONDITIONAL([HAS_YASM], [test x$has_yasm = xtrue])
  336. if test "x$bitforce$modminer" != xnono; then
  337. AC_ARG_WITH([libudev], [AC_HELP_STRING([--without-libudev], [Autodetect FPGAs using libudev (default enabled)])],
  338. [libudev=$withval],
  339. [libudev=auto]
  340. )
  341. if test "x$libudev" != "xno"; then
  342. AC_CHECK_HEADER([libudev.h],[
  343. libudev=yes
  344. UDEV_LIBS=-ludev
  345. AC_DEFINE([HAVE_LIBUDEV], [1], [Defined to 1 if libudev is wanted])
  346. ], [
  347. if test "x$libudev" = "xyes"; then
  348. AC_MSG_ERROR([libudev not found])
  349. fi
  350. libudev=no
  351. ])
  352. fi
  353. fi
  354. AM_CONDITIONAL([HAVE_LIBUDEV], [test x$libudev != xno])
  355. AC_SUBST(LIBUSB_LIBS)
  356. AC_SUBST(LIBUSB_CFLAGS)
  357. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])
  358. AC_SUBST(LIBCURL_LIBS)
  359. dnl CCAN wants to know a lot of vars.
  360. # All the configuration checks. Regrettably, the __attribute__ checks will
  361. # give false positives on old GCCs, since they just cause warnings. But that's
  362. # fairly harmless.
  363. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((cold)) cleanup(void) { }])],
  364. AC_DEFINE([HAVE_ATTRIBUTE_COLD], [1],
  365. [Define if __attribute__((cold))]))
  366. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((const)) cleanup(void) { }])],
  367. AC_DEFINE([HAVE_ATTRIBUTE_CONST], [1],
  368. [Define if __attribute__((const))]))
  369. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((noreturn)) cleanup(void) { exit(1); }])],
  370. AC_DEFINE([HAVE_ATTRIBUTE_NORETURN], [1],
  371. [Define if __attribute__((noreturn))]))
  372. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }])],
  373. AC_DEFINE([HAVE_ATTRIBUTE_PRINTF], [1],
  374. [Define if __attribute__((format(__printf__)))]))
  375. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((unused)) cleanup(void) { }])],
  376. AC_DEFINE([HAVE_ATTRIBUTE_UNUSED], [1],
  377. [Define if __attribute__((unused))]))
  378. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((used)) cleanup(void) { }])],
  379. AC_DEFINE([HAVE_ATTRIBUTE_USED], [1],
  380. [Define if __attribute__((used))]))
  381. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_constant_p(1) ? 0 : 1; }])],
  382. AC_DEFINE([HAVE_BUILTIN_CONSTANT_P], [1],
  383. [Define if have __builtin_constant_p]))
  384. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }])],
  385. AC_DEFINE([HAVE_BUILTIN_TYPES_COMPATIBLE_P], [1],
  386. [Define if have __builtin_types_compatible_p]))
  387. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static int __attribute__((warn_unused_result)) func(int x) { return x; }])],
  388. AC_DEFINE([HAVE_WARN_UNUSED_RESULT], [1],
  389. [Define if __attribute__((warn_unused_result))]))
  390. if test "x$prefix" = xNONE; then
  391. prefix=/usr/local
  392. fi
  393. AC_DEFINE_UNQUOTED([CGMINER_PREFIX], ["$prefix/bin"], [Path to bfgminer install])
  394. AC_DEFINE_UNQUOTED([PHATK_KERNNAME], ["phatk121016"], [Filename for phatk kernel])
  395. AC_DEFINE_UNQUOTED([POCLBM_KERNNAME], ["poclbm121016"], [Filename for poclbm kernel])
  396. AC_DEFINE_UNQUOTED([DIAKGCN_KERNNAME], ["diakgcn121016"], [Filename for diakgcn kernel])
  397. AC_DEFINE_UNQUOTED([DIABLO_KERNNAME], ["diablo121016"], [Filename for diablo kernel])
  398. AC_DEFINE_UNQUOTED([SCRYPT_KERNNAME], ["scrypt121016"], [Filename for scrypt kernel])
  399. AC_SUBST(JANSSON_LIBS)
  400. AC_SUBST(PTHREAD_FLAGS)
  401. AC_SUBST(DLOPEN_FLAGS)
  402. AC_SUBST(PTHREAD_LIBS)
  403. AC_SUBST(NCURSES_CPPFLAGS)
  404. AC_SUBST(NCURSES_LIBS)
  405. AC_SUBST(PDCURSES_LIBS)
  406. AC_SUBST(WS2_LIBS)
  407. AC_SUBST(MATH_LIBS)
  408. AC_SUBST(UDEV_LIBS)
  409. AC_CONFIG_FILES([
  410. Makefile
  411. x86_64/Makefile
  412. x86_32/Makefile
  413. ccan/Makefile
  414. lib/Makefile
  415. ])
  416. AC_OUTPUT
  417. echo
  418. echo
  419. echo
  420. echo "------------------------------------------------------------------------"
  421. echo "$PACKAGE $VERSION"
  422. echo "------------------------------------------------------------------------"
  423. echo
  424. echo
  425. echo "Configuration Options Summary:"
  426. echo
  427. echo " curses.TUI...........: $cursesmsg"
  428. if test "x$scrypt" != xno; then
  429. echo " scrypt...............: Enabled"
  430. else
  431. echo " scrypt...............: Disabled"
  432. fi
  433. echo
  434. if test "x$opencl" = xyes; then
  435. echo " OpenCL...............: Enabled"
  436. else
  437. echo " OpenCL...............: Disabled"
  438. fi
  439. if test "x$adl" = xyes; then
  440. echo " ADL.monitoring.....: Enabled"
  441. elif test "x$opencl" = xyes; then
  442. echo " ADL.monitoring.....: Disabled"
  443. else
  444. echo " ADL.monitoring.....: n/a"
  445. fi
  446. if test "x$bitforce" = xyes; then
  447. echo " BitForce.FPGAs.......: Enabled"
  448. else
  449. echo " BitForce.FPGAs.......: Disabled"
  450. fi
  451. if test "x$icarus" = xyes; then
  452. echo " Icarus.FPGAs.........: Enabled"
  453. else
  454. echo " Icarus.FPGAs.........: Disabled"
  455. fi
  456. if test "x$modminer" = xyes; then
  457. echo " ModMiner.FPGAs.......: Enabled"
  458. else
  459. echo " ModMiner.FPGAs.......: Disabled"
  460. fi
  461. if test "x$x6500" = xyes; then
  462. echo " X6500.FPGAs..........: Enabled"
  463. elif test "x$ztexwarn" = xyes; then
  464. echo " X6500.FPGAs..........: Disabled (libusb not found)"
  465. else
  466. echo " X6500.FPGAs..........: Disabled"
  467. fi
  468. if test "x$ztex" = xyes; then
  469. echo " Ztex.FPGAs...........: Enabled"
  470. elif test "x$ztexwarn" = xyes; then
  471. echo " Ztex.FPGAs...........: Disabled (libusb not found)"
  472. else
  473. echo " Ztex.FPGAs...........: Disabled"
  474. fi
  475. if test "x$bitforce$modminer" != xnono; then
  476. echo " libudev.detection....: $libudev"
  477. fi
  478. echo
  479. if test "x$cpumining" = xyes; then
  480. echo " CPU Mining...........: Enabled"
  481. echo " ASM.(for CPU mining).: $has_yasm"
  482. else
  483. echo " CPU Mining...........: Disabled"
  484. fi
  485. echo
  486. echo "Compilation............: make (or gmake)"
  487. echo " CPPFLAGS.............: $CPPFLAGS $NCURSES_CPPFLAGS"
  488. echo " CFLAGS...............: $CFLAGS $LIBUSB_CFLAGS"
  489. echo " LDFLAGS..............: $LDFLAGS $PTHREAD_FLAGS"
  490. echo " LDADD................: $DLOPEN_FLAGS $LIBCURL_LIBS $JANSSON_LIBS $PTHREAD_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $UDEV_LIBS $LIBUSB_LIBS"
  491. echo
  492. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  493. echo " prefix...............: $prefix"
  494. echo