configure.ac 17 KB

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