configure.ac 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  2. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  3. m4_define([v_maj], [2])
  4. m4_define([v_min], [11])
  5. m4_define([v_mic], [3])
  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([cgminer], [v_ver], [kernel@kolivas.org])
  14. AC_PREREQ(2.59)
  15. AC_CANONICAL_SYSTEM
  16. AC_CONFIG_MACRO_DIR([m4])
  17. AC_CONFIG_SRCDIR([cgminer.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
  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_FUNC_ALLOCA
  52. have_win32=false
  53. PTHREAD_FLAGS="-lpthread"
  54. DLOPEN_FLAGS="-ldl"
  55. OPENCL_LIBS="-lOpenCL"
  56. WS2_LIBS=""
  57. MATH_LIBS="-lm"
  58. case $target in
  59. amd64-*)
  60. have_x86_64=true
  61. ;;
  62. x86_64-*)
  63. have_x86_64=true
  64. ;;
  65. *)
  66. have_x86_64=false
  67. ;;
  68. esac
  69. case $target in
  70. *-*-mingw*)
  71. have_win32=true
  72. PTHREAD_FLAGS=""
  73. DLOPEN_FLAGS=""
  74. WS2_LIBS="-lws2_32"
  75. AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
  76. ;;
  77. powerpc-*-darwin*)
  78. CFLAGS="$CFLAGS -faltivec"
  79. OPENCL_LIBS=""
  80. PTHREAD_FLAGS=""
  81. ;;
  82. *-*-darwin*)
  83. OPENCL_LIBS="-framework OpenCL"
  84. PTHREAD_FLAGS=""
  85. ;;
  86. esac
  87. if test "x$have_win32" != xtrue; then
  88. if test "x$have_x86_64" = xtrue; then
  89. ARCH_DIR=x86_64
  90. else
  91. ARCH_DIR=x86
  92. fi
  93. if test "x$ATISTREAMSDKROOT" != x; then
  94. OPENCL_FLAGS="-I$ATISTREAMSDKROOT/include $OPENCL_FLAGS"
  95. OPENCL_LIBS="-L$ATISTREAMSDKROOT/lib/$ARCH_DIR $OPENCL_LIBS"
  96. fi
  97. if test "x$AMDAPPSDKROOT" != x; then
  98. OPENCL_FLAGS="-I$AMDAPPSDKROOT/include $OPENCL_FLAGS"
  99. OPENCL_LIBS="-L$AMDAPPSDKROOT/lib/$ARCH_DIR $OPENCL_LIBS"
  100. fi
  101. fi
  102. cpumining="no"
  103. AC_ARG_ENABLE([cpumining],
  104. [AC_HELP_STRING([--enable-cpumining],[Build with cpu mining support(default disabled)])],
  105. [cpumining=$enableval]
  106. )
  107. if test "x$cpumining" = xyes; then
  108. AC_DEFINE_UNQUOTED([WANT_CPUMINE], [1], [Enable CPUMINING])
  109. fi
  110. AM_CONDITIONAL([HAS_CPUMINE], [test x$cpumining = xyes])
  111. opencl="yes"
  112. AC_ARG_ENABLE([opencl],
  113. [AC_HELP_STRING([--disable-opencl],[Override detection and disable building with opencl])],
  114. [opencl=$enableval]
  115. )
  116. if test "x$opencl" != xno; then
  117. # Check for OpenCL (the long way needed on mingw32 due to calling conventions)
  118. AC_MSG_CHECKING([for OpenCL])
  119. SAVED_LIBS=$LIBS
  120. SAVED_CFLAGS=$CFLAGS
  121. LIBS="$LIBS $OPENCL_LIBS"
  122. CFLAGS="$CFLAGS $OPENCL_FLAGS"
  123. AC_LINK_IFELSE(
  124. [AC_LANG_PROGRAM([[
  125. #ifdef __APPLE_CC__
  126. #include <OpenCL/opencl.h>
  127. #else
  128. #include <CL/cl.h>
  129. #endif
  130. ]],
  131. [[return clSetKernelArg(0, 0, 0, 0); ]])],
  132. [AC_MSG_RESULT(yes)
  133. AC_DEFINE([HAVE_OPENCL], [1], [Defined to 1 if OpenCL is present on the system.])
  134. found_opencl=1
  135. ],
  136. [AC_MSG_RESULT(no)
  137. OPENCL_FLAGS=
  138. OPENCL_LIBS=
  139. found_opencl=0])
  140. LIBS=$SAVED_LIBS
  141. CFLAGS=$SAVED_CFLAGS
  142. else
  143. OPENCL_FLAGS=""
  144. OPENCL_LIBS=""
  145. fi
  146. has_winpthread=false
  147. if test "x$have_win32" = xtrue; then
  148. has_winpthread=true
  149. AC_CHECK_LIB(winpthread, nanosleep, , has_winpthread=false)
  150. PTHREAD_LIBS=-lwinpthread
  151. fi
  152. if test "x$has_winpthread" != xtrue; then
  153. AC_CHECK_LIB(pthread, pthread_create, ,
  154. AC_MSG_ERROR([Could not find pthread library - please install libpthread]))
  155. PTHREAD_LIBS=-lpthread
  156. fi
  157. AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true)
  158. AC_ARG_ENABLE([adl],
  159. [AC_HELP_STRING([--disable-adl],[Override detection and disable building with adl])],
  160. [adl=$enableval]
  161. )
  162. scrypt="no"
  163. if test "$found_opencl" = 1; then
  164. if test "x$adl" != xno; then
  165. AC_CHECK_FILE([${ADL_SDK:-ADL_SDK}/adl_sdk.h], have_adl=true, have_adl=false,)
  166. if test x$have_adl = xtrue
  167. then
  168. AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
  169. else
  170. DLOPEN_FLAGS=""
  171. fi
  172. fi
  173. AC_ARG_ENABLE([scrypt],
  174. [AC_HELP_STRING([--enable-scrypt],[Compile support for scrypt litecoin mining (default disabled)])],
  175. [scrypt=$enableval]
  176. )
  177. if test "x$scrypt" = xyes; then
  178. AC_DEFINE([USE_SCRYPT], [1], [Defined to 1 if scrypt support is wanted])
  179. fi
  180. else
  181. DLOPEN_FLAGS=""
  182. fi
  183. AM_CONDITIONAL([HAS_SCRYPT], [test x$scrypt = xyes])
  184. bflsc="no"
  185. AC_ARG_ENABLE([bflsc],
  186. [AC_HELP_STRING([--enable-bflsc],[Compile support for BFL ASICs (default disabled)])],
  187. [bflsc=$enableval]
  188. )
  189. if test "x$bflsc" = xyes; then
  190. AC_DEFINE([USE_BFLSC], [1], [Defined to 1 if BFL ASIC support is wanted])
  191. fi
  192. AM_CONDITIONAL([HAS_BFLSC], [test x$bflsc = xyes])
  193. bitforce="no"
  194. AC_ARG_ENABLE([bitforce],
  195. [AC_HELP_STRING([--enable-bitforce],[Compile support for BitForce FPGAs (default disabled)])],
  196. [bitforce=$enableval]
  197. )
  198. if test "x$bitforce" = xyes; then
  199. AC_DEFINE([USE_BITFORCE], [1], [Defined to 1 if BitForce support is wanted])
  200. fi
  201. AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes])
  202. icarus="no"
  203. AC_ARG_ENABLE([icarus],
  204. [AC_HELP_STRING([--enable-icarus],[Compile support for Icarus (default disabled)])],
  205. [icarus=$enableval]
  206. )
  207. if test "x$icarus" = xyes; then
  208. AC_DEFINE([USE_ICARUS], [1], [Defined to 1 if Icarus support is wanted])
  209. fi
  210. AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes])
  211. modminer="no"
  212. AC_ARG_ENABLE([modminer],
  213. [AC_HELP_STRING([--enable-modminer],[Compile support for ModMiner FPGAs(default disabled)])],
  214. [modminer=$enableval]
  215. )
  216. if test "x$modminer" = xyes; then
  217. AC_DEFINE([USE_MODMINER], [1], [Defined to 1 if ModMiner support is wanted])
  218. fi
  219. AM_CONDITIONAL([HAS_MODMINER], [test x$modminer = xyes])
  220. ztex="no"
  221. AC_ARG_ENABLE([ztex],
  222. [AC_HELP_STRING([--enable-ztex],[Compile support for Ztex (default disabled)])],
  223. [ztex=$enableval]
  224. )
  225. if test "x$ztex" = xyes; then
  226. AC_DEFINE([USE_ZTEX], [1], [Defined to 1 if Ztex support is wanted])
  227. fi
  228. AM_CONDITIONAL([HAS_ZTEX], [test x$ztex = xyes])
  229. curses="auto"
  230. AC_ARG_WITH([curses],
  231. [AC_HELP_STRING([--without-curses],[Compile support for curses TUI (default enabled)])],
  232. [curses=$withval]
  233. )
  234. if test "x$curses" = "xno"; then
  235. cursesmsg='User specified --without-curses. TUI support DISABLED'
  236. else
  237. AC_SEARCH_LIBS(addstr, ncurses pdcurses, [
  238. curses=yes
  239. cursesmsg="FOUND: ${ac_cv_search_addstr}"
  240. AC_DEFINE([HAVE_CURSES], [1], [Defined to 1 if curses TUI support is wanted])
  241. ], [
  242. if test "x$curses" = "xyes"; then
  243. AC_MSG_ERROR([Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)])
  244. else
  245. AC_MSG_WARN([Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev])
  246. curses=no
  247. cursesmsg='NOT FOUND. TUI support DISABLED'
  248. fi
  249. ])
  250. fi
  251. AM_CONDITIONAL([NEED_FPGAUTILS], [test x$icarus$bitforce$modminer$ztex != xnononono])
  252. AM_CONDITIONAL([NEED_USBUTILS_C], [test x$bitforce$modminer$bflsc != xnonono])
  253. AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
  254. AM_CONDITIONAL([WANT_JANSSON], [test x$request_jansson = xtrue])
  255. AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
  256. AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
  257. if test "x$bitforce$modminer$bflsc" != xnonono; then
  258. AC_DEFINE([USE_USBUTILS], [1], [Defined to 1 if usbutils support required])
  259. fi
  260. if test x$request_jansson = xtrue
  261. then
  262. JANSSON_LIBS="compat/jansson/libjansson.a"
  263. else
  264. JANSSON_LIBS=-ljansson
  265. fi
  266. dnl Find YASM
  267. has_yasm=false
  268. AC_PATH_PROG([YASM],[yasm],[false])
  269. if test "x$YASM" != "xfalse" ; then
  270. AC_MSG_CHECKING([if yasm version is greater than 1.0.1])
  271. yasmver=`"$YASM" --version | head -1 | cut -d\ -f2`
  272. yamajor=`echo $yasmver | cut -d. -f1`
  273. yaminor=`echo $yasmver | cut -d. -f2`
  274. yamini=`echo $yasmver | cut -d. -f3`
  275. if test "$yamajor" -ge "1" ; then
  276. if test "$yamajor" -eq "1" ; then
  277. if test "$yaminor" -ge "0" ; then
  278. if test "$yaminor" -eq "0"; then
  279. if test "$yamini" -ge "1"; then
  280. has_yasm=true
  281. fi
  282. else
  283. has_yasm=true
  284. fi
  285. fi
  286. fi
  287. else
  288. has_yasm=false
  289. fi
  290. if test "x$has_yasm" = "xtrue" ; then
  291. AC_MSG_RESULT([yes])
  292. else
  293. AC_MSG_RESULT([no])
  294. fi
  295. fi
  296. if test "x$has_yasm" = "xfalse" ; then
  297. AC_MSG_NOTICE([yasm is required for the assembly algorithms. They will be skipped.])
  298. else
  299. if test "x$have_x86_64" = xtrue; then
  300. if test "x$have_win32" = xtrue; then
  301. YASM_FMT="win64"
  302. else
  303. YASM_FMT="elf64"
  304. fi
  305. elif test "x$have_win32" = xtrue; then
  306. YASM_FMT="coff"
  307. else
  308. YASM_FMT="elf32"
  309. fi
  310. fi
  311. AM_CONDITIONAL([HAS_YASM], [test x$has_yasm = xtrue])
  312. if test "x$icarus" != xno; then
  313. AC_ARG_WITH([libudev], [AC_HELP_STRING([--without-libudev], [Autodetect FPGAs using libudev (default enabled)])],
  314. [libudev=$withval],
  315. [libudev=auto]
  316. )
  317. if test "x$libudev" != "xno"; then
  318. AC_CHECK_HEADER([libudev.h],[
  319. libudev=yes
  320. UDEV_LIBS=-ludev
  321. AC_DEFINE([HAVE_LIBUDEV], [1], [Defined to 1 if libudev is wanted])
  322. ], [
  323. if test "x$libudev" = "xyes"; then
  324. AC_MSG_ERROR([libudev not found])
  325. fi
  326. libudev=no
  327. ])
  328. fi
  329. fi
  330. AM_CONDITIONAL([HAVE_LIBUDEV], [test x$libudev != xno])
  331. PKG_PROG_PKG_CONFIG()
  332. if test "x$ztex$modminer$bitforce$bflsc" != xnononono; then
  333. case $target in
  334. *-*-freebsd*)
  335. LIBUSB_LIBS="-lusb"
  336. LIBUSB_CFLAGS=""
  337. AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])
  338. ;;
  339. *)
  340. PKG_CHECK_MODULES(LIBUSB, libusb-1.0, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])], [AC_MSG_ERROR([Could not find usb library - please install libusb-1.0])])
  341. ;;
  342. esac
  343. fi
  344. AC_SUBST(LIBUSB_LIBS)
  345. AC_SUBST(LIBUSB_CFLAGS)
  346. if test "x$have_win32" != xtrue; then
  347. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.25.0], [AC_DEFINE([CURL_HAS_KEEPALIVE], [1], [Defined if version of curl supports keepalive.])],
  348. [PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])])
  349. else
  350. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.25.0], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.25.0])])
  351. AC_DEFINE([CURL_HAS_KEEPALIVE], [1])
  352. fi
  353. AC_SUBST(LIBCURL_LIBS)
  354. #check execv signature
  355. AC_COMPILE_IFELSE([AC_LANG_SOURCE([
  356. #include <process.h>
  357. int execv(const char*, const char*const*);
  358. ])],
  359. AC_DEFINE([EXECV_2ND_ARG_TYPE], [const char* const*], [int execv(const char*, const char*const*);]),
  360. AC_DEFINE([EXECV_2ND_ARG_TYPE], [char* const*], [int execv(const char*, char*const*);]))
  361. dnl CCAN wants to know a lot of vars.
  362. # All the configuration checks. Regrettably, the __attribute__ checks will
  363. # give false positives on old GCCs, since they just cause warnings. But that's
  364. # fairly harmless.
  365. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((cold)) cleanup(void) { }])],
  366. AC_DEFINE([HAVE_ATTRIBUTE_COLD], [1],
  367. [Define if __attribute__((cold))]))
  368. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((const)) cleanup(void) { }])],
  369. AC_DEFINE([HAVE_ATTRIBUTE_CONST], [1],
  370. [Define if __attribute__((const))]))
  371. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((noreturn)) cleanup(void) { exit(1); }])],
  372. AC_DEFINE([HAVE_ATTRIBUTE_NORETURN], [1],
  373. [Define if __attribute__((noreturn))]))
  374. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }])],
  375. AC_DEFINE([HAVE_ATTRIBUTE_PRINTF], [1],
  376. [Define if __attribute__((format(__printf__)))]))
  377. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((unused)) cleanup(void) { }])],
  378. AC_DEFINE([HAVE_ATTRIBUTE_UNUSED], [1],
  379. [Define if __attribute__((unused))]))
  380. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((used)) cleanup(void) { }])],
  381. AC_DEFINE([HAVE_ATTRIBUTE_USED], [1],
  382. [Define if __attribute__((used))]))
  383. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_constant_p(1) ? 0 : 1; }])],
  384. AC_DEFINE([HAVE_BUILTIN_CONSTANT_P], [1],
  385. [Define if have __builtin_constant_p]))
  386. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }])],
  387. AC_DEFINE([HAVE_BUILTIN_TYPES_COMPATIBLE_P], [1],
  388. [Define if have __builtin_types_compatible_p]))
  389. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static int __attribute__((warn_unused_result)) func(int x) { return x; }])],
  390. AC_DEFINE([HAVE_WARN_UNUSED_RESULT], [1],
  391. [Define if __attribute__((warn_unused_result))]))
  392. if test "x$prefix" = xNONE; then
  393. prefix=/usr/local
  394. fi
  395. AC_DEFINE_UNQUOTED([CGMINER_PREFIX], ["$prefix/bin"], [Path to cgminer install])
  396. AC_DEFINE_UNQUOTED([PHATK_KERNNAME], ["phatk121016"], [Filename for phatk kernel])
  397. AC_DEFINE_UNQUOTED([POCLBM_KERNNAME], ["poclbm130302"], [Filename for poclbm kernel])
  398. AC_DEFINE_UNQUOTED([DIAKGCN_KERNNAME], ["diakgcn121016"], [Filename for diakgcn kernel])
  399. AC_DEFINE_UNQUOTED([DIABLO_KERNNAME], ["diablo130302"], [Filename for diablo kernel])
  400. AC_DEFINE_UNQUOTED([SCRYPT_KERNNAME], ["scrypt130302"], [Filename for scrypt kernel])
  401. AC_SUBST(OPENCL_LIBS)
  402. AC_SUBST(OPENCL_FLAGS)
  403. AC_SUBST(JANSSON_LIBS)
  404. AC_SUBST(PTHREAD_FLAGS)
  405. AC_SUBST(DLOPEN_FLAGS)
  406. AC_SUBST(PTHREAD_LIBS)
  407. AC_SUBST(NCURSES_LIBS)
  408. AC_SUBST(PDCURSES_LIBS)
  409. AC_SUBST(WS2_LIBS)
  410. AC_SUBST(MATH_LIBS)
  411. AC_SUBST(UDEV_LIBS)
  412. AC_SUBST(YASM_FMT)
  413. AC_CONFIG_FILES([
  414. Makefile
  415. compat/Makefile
  416. compat/jansson/Makefile
  417. x86_64/Makefile
  418. x86_32/Makefile
  419. ccan/Makefile
  420. lib/Makefile
  421. ])
  422. AC_OUTPUT
  423. echo
  424. echo
  425. echo
  426. echo "------------------------------------------------------------------------"
  427. echo "$PACKAGE $VERSION"
  428. echo "------------------------------------------------------------------------"
  429. echo
  430. echo
  431. echo "Configuration Options Summary:"
  432. echo
  433. echo " curses.TUI...........: $cursesmsg"
  434. if test "x$opencl" != xno; then
  435. if test $found_opencl = 1; then
  436. echo " OpenCL...............: FOUND. GPU mining support enabled"
  437. if test "x$scrypt" != xno; then
  438. echo " scrypt...............: Enabled"
  439. else
  440. echo " scrypt...............: Disabled"
  441. fi
  442. else
  443. echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED"
  444. if test "x$cpumining$bitforce$icarus$ztex$modminer$bflsc" = xnononononono; then
  445. AC_MSG_ERROR([No mining configured in])
  446. fi
  447. echo " scrypt...............: Disabled (needs OpenCL)"
  448. fi
  449. else
  450. echo " OpenCL...............: Detection overrided. GPU mining support DISABLED"
  451. if test "x$cpumining$bitforce$icarus$ztex$modminer$bflsc" = xnononononono; then
  452. AC_MSG_ERROR([No mining configured in])
  453. fi
  454. echo " scrypt...............: Disabled (needs OpenCL)"
  455. fi
  456. if test "x$adl" != xno; then
  457. if test x$have_adl = xtrue; then
  458. echo " ADL..................: SDK found, GPU monitoring support enabled"
  459. else
  460. echo " ADL..................: SDK NOT found, GPU monitoring support DISABLED"
  461. fi
  462. else
  463. echo " ADL..................: Detection overrided. GPU monitoring support DISABLED"
  464. fi
  465. echo
  466. if test "x$bflsc" = xyes; then
  467. echo " BFL.ASICs............: Enabled"
  468. else
  469. echo " BFL.ASICs............: Disabled"
  470. fi
  471. if test "x$bitforce" = xyes; then
  472. echo " BitForce.FPGAs.......: Enabled"
  473. else
  474. echo " BitForce.FPGAs.......: Disabled"
  475. fi
  476. if test "x$icarus" = xyes; then
  477. echo " Icarus.FPGAs.........: Enabled"
  478. else
  479. echo " Icarus.FPGAs.........: Disabled"
  480. fi
  481. if test "x$modminer" = xyes; then
  482. echo " ModMiner.FPGAs.......: Enabled"
  483. else
  484. echo " ModMiner.FPGAs.......: Disabled"
  485. fi
  486. if test "x$ztex" = xyes; then
  487. echo " Ztex.FPGAs...........: Enabled"
  488. else
  489. echo " Ztex.FPGAs...........: Disabled"
  490. fi
  491. if test "x$icarus" != xno; then
  492. echo " libudev.detection....: $libudev"
  493. fi
  494. if test "x$cpumining" = xyes; then
  495. echo
  496. echo " CPU Mining...........: Enabled"
  497. echo " ASM.(for CPU mining).: $has_yasm"
  498. fi
  499. echo
  500. echo "Compilation............: make (or gmake)"
  501. echo " CPPFLAGS.............: $CPPFLAGS"
  502. echo " CFLAGS...............: $CFLAGS $LIBUSB_CFLAGS"
  503. echo " LDFLAGS..............: $LDFLAGS $PTHREAD_FLAGS"
  504. echo " LDADD................: $DLOPEN_FLAGS $LIBCURL_LIBS $JANSSON_LIBS $PTHREAD_LIBS $OPENCL_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $UDEV_LIBS $LIBUSB_LIBS"
  505. echo
  506. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  507. echo " prefix...............: $prefix"
  508. echo