configure.ac 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051
  1. dnl * Copyright 2012-2013 Luke Dashjr
  2. dnl * Copyright 2011-2013 Con Kolivas
  3. dnl * Copyright 2010-2011 Jeff Garzik
  4. dnl * Copyright 2012 Xiangfu
  5. dnl * Copyright 2011 Rusty Russell
  6. dnl * Copyright 2011 Mark Crichton
  7. dnl *
  8. dnl * This program is free software; you can redistribute it and/or modify it
  9. dnl * under the terms of the GNU General Public License as published by the Free
  10. dnl * Software Foundation; either version 3 of the License, or (at your option)
  11. dnl * any later version. See COPYING for more details.
  12. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  13. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  14. m4_define([v_maj], [3])
  15. m4_define([v_min], [1])
  16. m4_define([v_mic], [4])
  17. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  18. m4_define([v_ver], [v_maj.v_min.v_mic])
  19. m4_define([lt_rev], m4_eval(v_maj + v_min))
  20. m4_define([lt_cur], v_mic)
  21. m4_define([lt_age], v_min)
  22. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  23. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  24. AC_INIT([bfgminer], [v_ver], [luke-jr+bfgminer@utopios.org])
  25. AC_PREREQ([2.59c])
  26. AC_CANONICAL_SYSTEM
  27. AC_CONFIG_MACRO_DIR([m4])
  28. AC_CONFIG_SRCDIR([miner.c])
  29. AC_CONFIG_HEADERS([config.h])
  30. AM_INIT_AUTOMAKE([foreign])
  31. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  32. AC_USE_SYSTEM_EXTENSIONS
  33. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  34. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  35. m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
  36. m4_ifdef([v_rel], , [m4_define([v_rel], [])])
  37. AC_DEFINE_UNQUOTED(CGMINER_MAJOR_VERSION, [v_maj], [Major version])
  38. AC_DEFINE_UNQUOTED(CGMINER_MINOR_VERSION, [v_min], [Minor version])
  39. AC_DEFINE_UNQUOTED(CGMINER_MINOR_SUBVERSION, [v_mic], [Micro version])
  40. version_info="lt_rev:lt_cur:lt_age"
  41. release_info="v_rel"
  42. AC_SUBST(version_info)
  43. AC_SUBST(release_info)
  44. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  45. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  46. VMAJ=v_maj
  47. AC_SUBST(VMAJ)
  48. AC_CANONICAL_BUILD
  49. AC_CANONICAL_HOST
  50. dnl Make sure anyone changing configure.ac/Makefile.am has a clue
  51. AM_MAINTAINER_MODE([enable])
  52. dnl Checks for programs
  53. AC_PROG_CC_C99
  54. gl_EARLY
  55. AC_PROG_GCC_TRADITIONAL
  56. AM_PROG_CC_C_O
  57. AC_PROG_RANLIB
  58. gl_INIT
  59. dnl Checks for header files.
  60. AC_HEADER_STDC
  61. AC_CHECK_HEADERS(syslog.h)
  62. AC_CHECK_HEADERS([sys/epoll.h])
  63. AC_CHECK_HEADERS([sys/prctl.h])
  64. AC_CHECK_HEADERS([sys/file.h])
  65. AC_FUNC_ALLOCA
  66. have_cygwin=false
  67. have_win32=false
  68. have_macho=false
  69. DLOPEN_FLAGS="-ldl"
  70. WS2_LIBS=""
  71. MM_LIBS=""
  72. MATH_LIBS="-lm"
  73. case $target in
  74. amd64-* | x86_64-*)
  75. have_x86_32=false
  76. have_x86_64=true
  77. bitness="64"
  78. ;;
  79. i386-* | i486-* | i586-* | i686-* | x86-*)
  80. have_x86_32=true
  81. have_x86_64=false
  82. bitness="32"
  83. ;;
  84. *)
  85. have_x86_32=false
  86. have_x86_64=false
  87. ;;
  88. esac
  89. case $target in
  90. *-*-mingw*)
  91. have_win32=true
  92. DLOPEN_FLAGS=""
  93. WS2_LIBS="-lws2_32"
  94. MM_LIBS="-lwinmm"
  95. AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
  96. AC_DEFINE([FD_SETSIZE], [4096], [Maximum sockets before fd_set overflows])
  97. ;;
  98. *-*-cygwin*)
  99. have_cygwin=true
  100. ;;
  101. powerpc-*-darwin*)
  102. CFLAGS="$CFLAGS -faltivec"
  103. have_macho=true
  104. ;;
  105. *-*-darwin*)
  106. have_macho=true
  107. ;;
  108. esac
  109. m4_define([BFG_INCLUDE],
  110. if test "x$2" = "x"; then
  111. $1=''
  112. else
  113. $1="[#]include <$2>"
  114. fi
  115. )
  116. m4_define([BFG_PREPROC_IFELSE],
  117. BFG_INCLUDE([headerinclude], $2)
  118. AC_COMPILE_IFELSE([
  119. AC_LANG_PROGRAM([
  120. ${headerinclude}
  121. ], [
  122. #if !( $1 )
  123. #error "$1 false in preprocessor"
  124. #endif
  125. ])
  126. ],[$3],[$4])
  127. )
  128. AC_CHECK_DECL([HASH_ITER],[
  129. AC_CHECK_DECL([DL_FOREACH_SAFE],[
  130. true
  131. ],[
  132. AC_MSG_ERROR([Could not find DL_FOREACH_SAFE - install uthash-dev 1.9.2+])
  133. ],[
  134. #include <utlist.h>
  135. ])
  136. ],[
  137. AC_MSG_ERROR([Could not find HASH_ITER - please install uthash-dev 1.9.2+])
  138. ],[
  139. #include <uthash.h>
  140. ])
  141. cpumining="no"
  142. AC_ARG_ENABLE([cpumining],
  143. [AC_HELP_STRING([--enable-cpumining],[Build with CPU mining support (default disabled)])],
  144. [cpumining=$enableval]
  145. )
  146. if test "x$cpumining" = xyes; then
  147. AC_DEFINE_UNQUOTED([WANT_CPUMINE], [1], [Enable CPUMINING])
  148. fi
  149. AM_CONDITIONAL([HAS_CPUMINE], [test x$cpumining = xyes])
  150. opencl="yes"
  151. AC_ARG_ENABLE([opencl],
  152. [AC_HELP_STRING([--disable-opencl],[Build without support for OpenCL (default enabled)])],
  153. [opencl=$enableval]
  154. )
  155. if test "x$opencl" = xyes; then
  156. AC_DEFINE([HAVE_OPENCL], [1], [Defined to 1 if OpenCL support is wanted])
  157. else
  158. DLOPEN_FLAGS=""
  159. fi
  160. AM_CONDITIONAL([HAVE_OPENCL], [test x$opencl = xyes])
  161. m4_define([BFG_PTHREAD_FLAG_CHECK],
  162. AC_MSG_CHECKING([for $1])
  163. for cflag in ' -pthread' ''; do
  164. for lib in ' -lpthread' ' -lwinpthread' ''; do
  165. CFLAGS="${save_CFLAGS}${cflag}"
  166. LIBS="${save_LIBS}${lib}"
  167. AC_LINK_IFELSE([
  168. AC_LANG_PROGRAM([
  169. #include <pthread.h>
  170. ], [
  171. void *f = $1;
  172. ])
  173. ], [
  174. found_pthread=true
  175. PTHREAD_FLAGS="${cflag}"
  176. PTHREAD_LIBS="${lib}"
  177. if test "x${cflag}${lib}" = "x"; then
  178. AC_MSG_RESULT([yes])
  179. else
  180. AC_MSG_RESULT([with${cflag}${lib}])
  181. fi
  182. $2
  183. break 2
  184. ])
  185. done
  186. done
  187. if test "x${found_pthread}" = "xfalse"; then
  188. AC_MSG_RESULT([no])
  189. fi
  190. )
  191. save_CFLAGS="${CFLAGS}"
  192. save_LIBS="${LIBS}"
  193. found_pthread=false
  194. BFG_PTHREAD_FLAG_CHECK([pthread_cancel],[
  195. AC_DEFINE([HAVE_PTHREAD_CANCEL], [1], [Define if you have a native pthread_cancel])
  196. ])
  197. if test "x${found_pthread}" = "xfalse"; then
  198. BFG_PTHREAD_FLAG_CHECK([pthread_create])
  199. if test "x${found_pthread}" = "xfalse"; then
  200. AC_MSG_ERROR([Could not find pthread library - please install libpthread])
  201. fi
  202. fi
  203. # check for nanosleep here, since it is provided by winpthread
  204. AC_CHECK_FUNCS([nanosleep])
  205. CFLAGS="${save_CFLAGS}"
  206. LIBS="${save_LIBS}"
  207. PKG_CHECK_MODULES([JANSSON],[jansson],[
  208. true
  209. ],[
  210. AC_MSG_CHECKING([for jansson in system-default locations])
  211. LIBS="$LIBS -ljansson"
  212. AC_TRY_LINK([
  213. #include <jansson.h>
  214. ],[
  215. json_object();
  216. ],[
  217. AC_MSG_RESULT([found])
  218. JANSSON_LIBS=-ljansson
  219. ],[
  220. AC_MSG_RESULT([not found])
  221. AC_MSG_ERROR([Could not find jansson library])
  222. ])
  223. LIBS="${save_LIBS}"
  224. ])
  225. AC_SUBST(JANSSON_CFLAGS)
  226. AC_SUBST(JANSSON_LIBS)
  227. if test "x$opencl" = xyes; then
  228. adl="yes"
  229. AC_ARG_WITH([sensors],[Build with libsensors monitoring],[true],[with_sensors=auto])
  230. if test "x$opencl" != xyes; then
  231. with_sensors=no
  232. fi
  233. if test "x$with_sensors" != xno; then
  234. AC_MSG_CHECKING([for libsensors])
  235. save_LIBS="${LIBS}"
  236. LIBS="$LIBS -lsensors"
  237. AC_LINK_IFELSE([AC_LANG_PROGRAM([
  238. #include <stddef.h>
  239. #include <sensors/sensors.h>
  240. ],[
  241. const sensors_chip_name *cn;
  242. cn = sensors_get_detected_chips(NULL, NULL);
  243. ])],[
  244. with_sensors=yes
  245. sensors_LIBS="-lsensors"
  246. AC_DEFINE([HAVE_SENSORS], [1], [Defined if libsensors was found])
  247. AC_MSG_RESULT([yes])
  248. ],[
  249. with_sensors=no
  250. AC_MSG_RESULT([no])
  251. ])
  252. LIBS="$save_LIBS"
  253. fi
  254. AC_SUBST(sensors_LIBS)
  255. AC_ARG_ENABLE([adl],
  256. [AC_HELP_STRING([--disable-adl],[Build without ADL monitoring (default enabled)])],
  257. [adl=$enableval]
  258. )
  259. if test x$adl = xyes
  260. then
  261. AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
  262. fi
  263. else
  264. adl="no"
  265. fi
  266. AC_ARG_ENABLE([bitforce],
  267. [AC_HELP_STRING([--disable-bitforce],[Compile support for BitForce (default enabled)])],
  268. [bitforce=$enableval],
  269. [bitforce=yes]
  270. )
  271. if test "x$bitforce" = xyes; then
  272. AC_DEFINE([USE_BITFORCE], [1], [Defined to 1 if BitForce support is wanted])
  273. fi
  274. AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes])
  275. AC_ARG_ENABLE([icarus],
  276. [AC_HELP_STRING([--disable-icarus],[Compile support for Icarus (default enabled)])],
  277. [icarus=$enableval],
  278. [icarus=yes]
  279. )
  280. if test "x$icarus" = xyes; then
  281. AC_DEFINE([USE_ICARUS], [1], [Defined to 1 if Icarus support is wanted])
  282. fi
  283. AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes])
  284. avalon="no"
  285. AC_ARG_ENABLE([avalon],
  286. [AC_HELP_STRING([--disable-avalon],[Compile support for Avalon (default enabled)])],
  287. [avalon=$enableval],
  288. [avalon=yes]
  289. )
  290. if test "x$avalon" = xyes; then
  291. AC_DEFINE([USE_AVALON], [1], [Defined to 1 if Avalon support is wanted])
  292. fi
  293. AM_CONDITIONAL([HAS_AVALON], [test x$avalon = xyes])
  294. httpsrv=no
  295. PKG_CHECK_MODULES([libmicrohttpd],[libmicrohttpd],[
  296. AC_DEFINE([USE_LIBMICROHTTPD],[1],[Defined to 1 if libmicrohttpd support is wanted])
  297. httpsrv=yes
  298. ],[
  299. AC_MSG_WARN([libmicrohttpd not found; getwork proxy will be unavailable])
  300. ])
  301. AM_CONDITIONAL([USE_LIBMICROHTTPD], [test x$httpsrv = xyes])
  302. AC_ARG_ENABLE([modminer],
  303. [AC_HELP_STRING([--disable-modminer],[Compile support for ModMiner (default enabled)])],
  304. [modminer=$enableval],
  305. [modminer=yes]
  306. )
  307. if test "x$modminer" = xyes; then
  308. AC_DEFINE([USE_MODMINER], [1], [Defined to 1 if ModMiner support is wanted])
  309. fi
  310. AM_CONDITIONAL([HAS_MODMINER], [test x$modminer = xyes])
  311. PKG_PROG_PKG_CONFIG()
  312. libusb=no
  313. libusb_include_path=""
  314. PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],[
  315. libusb=yes
  316. ],[
  317. for usb_lib in usb-1.0 usb; do
  318. AC_CHECK_LIB($usb_lib, libusb_init, [
  319. libusb=yes
  320. break
  321. ])
  322. done
  323. if test "x$libusb" = xyes; then
  324. AC_CHECK_DECL([libusb_init],[
  325. true
  326. ],[
  327. AC_PROG_CPP
  328. AC_MSG_CHECKING([whether libusb_init is declared in subdirectory])
  329. libusb_include_path=`echo '#include <libusb-1.0/libusb.h>' | ${CPP} -M - 2>/dev/null | sed 's/^[^[:space:]]\+[[:space:]]\+\([^[:space:]]\+\)\/.*$/\1/;t;d'`
  330. if test "x$libusb_include_path" != "x"; then
  331. LIBUSB_LIBS="-l$usb_lib"
  332. LIBUSB_CFLAGS="-I$libusb_include_path"
  333. AC_MSG_RESULT([yes])
  334. else
  335. libusb=no
  336. AC_MSG_RESULT([no])
  337. fi
  338. ],[#include <libusb.h>])
  339. fi
  340. ])
  341. AC_ARG_ENABLE([x6500],
  342. [AC_HELP_STRING([--disable-x6500],[Compile support for X6500 (default if libusb)])],
  343. [x6500=$enableval],
  344. [x6500=auto]
  345. )
  346. if test "x$x6500$libusb" = xyesno; then
  347. AC_MSG_ERROR([Could not find libusb, required for X6500 support])
  348. elif test "x$x6500" = xauto; then
  349. x6500="$libusb"
  350. if test "x$libusb" = xno; then
  351. AC_MSG_WARN([Could not find libusb, required for X6500 support])
  352. x6500warn=yes
  353. fi
  354. fi
  355. if test "x$x6500" = xyes; then
  356. AC_DEFINE([USE_X6500], [1], [Defined to 1 if X6500 support is wanted])
  357. fi
  358. AM_CONDITIONAL([HAS_X6500], [test x$x6500 = xyes])
  359. AC_ARG_ENABLE([ztex],
  360. [AC_HELP_STRING([--disable-ztex],[Compile support for ZTEX (default if libusb)])],
  361. [ztex=$enableval],
  362. [ztex=auto]
  363. )
  364. if test "x$ztex$libusb" = xyesno; then
  365. AC_MSG_ERROR([Could not find libusb, required for ZTEX support])
  366. elif test "x$ztex" = xauto; then
  367. ztex="$libusb"
  368. if test "x$libusb" = xno; then
  369. AC_MSG_WARN([Could not find libusb, required for ZTEX support])
  370. ztexwarn=yes
  371. fi
  372. fi
  373. if test "x$ztex" = xyes; then
  374. AC_DEFINE([USE_ZTEX], [1], [Defined to 1 if ZTEX support is wanted])
  375. fi
  376. AM_CONDITIONAL([HAS_ZTEX], [test x$ztex = xyes])
  377. if test "x$x6500$ztex" = "xnono"; then
  378. libusb=no
  379. LIBUSB_LIBS=''
  380. LIBUSB_CFLAGS=''
  381. fi
  382. if test "x$libusb" = xyes; then
  383. AC_DEFINE([HAVE_LIBUSB], [1], [Define if you have libusb-1.0])
  384. save_CFLAGS="$CFLAGS"
  385. CFLAGS="$LIBUSB_CFLAGS $CFLAGS"
  386. AC_CHECK_DECLS([libusb_error_name],[true],[true],[#include <libusb.h>])
  387. CFLAGS="$save_CFLAGS"
  388. fi
  389. scrypt="no"
  390. AC_ARG_ENABLE([scrypt],
  391. [AC_HELP_STRING([--enable-scrypt],[Compile support for scrypt mining (default disabled)])],
  392. [scrypt=$enableval]
  393. )
  394. if test "x$scrypt" = xyes; then
  395. AC_DEFINE([USE_SCRYPT], [1], [Defined to 1 if scrypt support is wanted])
  396. fi
  397. need_fpgautils=no
  398. if test x$avalon$icarus$bitforce$modminer$x6500$ztex != xnononononono; then
  399. need_fpgautils=yes
  400. AC_DEFINE([HAVE_FPGAUTILS], [1], [Defined to 1 if fpgautils is being used])
  401. if $have_win32; then
  402. echo '#include <iospeeds.h>' >iospeeds_local.h
  403. else
  404. AC_PROG_CPP
  405. AC_MSG_CHECKING([what baud rates your system supports])
  406. echo '#include <termios.h>' | ${CPP} -dM - 2>/dev/null | sed 's/.*[ ]B\([0-9][0-9]*\)[ ].*/IOSPEED(\1)/' | grep IOSPEED >iospeeds_local.h
  407. if grep -q IOSPEED iospeeds_local.h; then
  408. AC_MSG_RESULT([done])
  409. else
  410. AC_MSG_RESULT([failed, using standard POSIX])
  411. echo '#include <iospeeds_posix.h>' >iospeeds_local.h
  412. fi
  413. fi
  414. fi
  415. curses="auto"
  416. AC_ARG_WITH([curses],
  417. [AC_HELP_STRING([--without-curses],[Compile support for curses TUI (default enabled)])],
  418. [curses=$withval]
  419. )
  420. if test "x$curses" = "xno"; then
  421. cursesmsg='User specified --without-curses. TUI support DISABLED'
  422. else
  423. orig_libs="$LIBS"
  424. if test "x${curses}" = "xyes"; then
  425. preferl=''
  426. else
  427. preferl="${curses} ${curses}6 ${curses}5"
  428. fi
  429. for wideornot in w u ''; do
  430. for ncursesver in '' 6 5; do
  431. preferl="${preferl} ncurses${wideornot}${ncursesver}"
  432. done
  433. preferl="${preferl} pdcurses${wideornot}"
  434. done
  435. if test "x$cross_compiling" != "xyes"; then
  436. AC_MSG_CHECKING([for best native curses library])
  437. orig_cflags="$CFLAGS"
  438. for curses_lib in ${preferl}; do
  439. if ! ${curses_lib}-config --cflags >/dev/null 2>/dev/null; then
  440. continue
  441. fi
  442. CFLAGS="$orig_cflags $(${curses_lib}-config --cflags)"
  443. LIBS="$orig_libs $(${curses_lib}-config --libs)"
  444. AC_LINK_IFELSE([AC_LANG_PROGRAM([[
  445. #include <curses.h>
  446. ]], [[
  447. WINDOW *w = NULL;
  448. mvwprintw(w, 2, 2, "Testing %s", "o hai");
  449. ]])], [
  450. curses=yes
  451. cursesmsg="FOUND: ${curses_lib}"
  452. AC_MSG_RESULT([$curses_lib])
  453. NCURSES_LIBS=`${curses_lib}-config --libs`
  454. NCURSES_CPPFLAGS=`${curses_lib}-config --cflags`
  455. break
  456. ], [
  457. AC_MSG_WARN([${curses_lib} doesn't seem to be installed properly])
  458. ])
  459. done
  460. CFLAGS="$orig_cflags"
  461. if test "x$curses" != "xyes"; then
  462. AC_MSG_RESULT([none?])
  463. fi
  464. fi
  465. if test "x$curses" != "xyes"; then
  466. for sym in addwstr addstr; do
  467. AC_SEARCH_LIBS(${sym}, ${preferl}, [
  468. curses=yes
  469. eval "curseslib=\"\${ac_cv_search_${sym}}\""
  470. cursesmsg="FOUND: ${curseslib}"
  471. cursesmsg="${cursesmsg/-l/}"
  472. if test "x${curseslib}" != "xnone required"; then
  473. NCURSES_LIBS="${curseslib}"
  474. fi
  475. break
  476. ], [
  477. test "x$sym" != "addstr" && continue
  478. if test "x$curses" = "xyes"; then
  479. AC_MSG_ERROR([Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)])
  480. else
  481. AC_MSG_WARN([Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev])
  482. curses=no
  483. cursesmsg='NOT FOUND. TUI support DISABLED'
  484. fi
  485. ])
  486. done
  487. fi
  488. if test "x$curses" = "xyes"; then
  489. AC_DEFINE([HAVE_CURSES], [1], [Defined to 1 if curses TUI support is wanted])
  490. AC_MSG_CHECKING([whether curses library supports wide characters])
  491. LIBS="$orig_libs $NCURSES_CPPFLAGS $NCURSES_LIBS"
  492. AC_LINK_IFELSE([
  493. AC_LANG_PROGRAM([
  494. #define PDC_WIDE
  495. #include <curses.h>
  496. ],[
  497. addwstr(L"test");
  498. ])
  499. ],[
  500. AC_MSG_RESULT([yes])
  501. AC_DEFINE([USE_UNICODE],[1],[Defined to 1 if curses supports wide characters])
  502. ],[
  503. AC_MSG_RESULT([no])
  504. ])
  505. fi
  506. LIBS="$orig_libs"
  507. fi
  508. AC_ARG_WITH([system-libblkmaker], [AC_HELP_STRING([--with-system-libblkmaker], [Use system libblkmaker rather than bundled one (default disabled)])],[true],[with_system_libblkmaker=no])
  509. if test "x$with_system_libblkmaker" = "xyes"; then
  510. PKG_CHECK_MODULES([libblkmaker],[libblkmaker_jansson-0.1],[
  511. true
  512. ],[
  513. AC_MSG_ERROR([Could not find system libblkmaker])
  514. ])
  515. else
  516. save_LDFLAGS="$LDFLAGS"
  517. LDFLAGS="$LDFLAGS -Wl,-zorigin"
  518. origin_LDFLAGS=
  519. AC_MSG_CHECKING([whether the linker recognizes the -zorigin option])
  520. AC_TRY_LINK([],[],[
  521. AC_MSG_RESULT([yes])
  522. origin_LDFLAGS=',-zorigin'
  523. ],[
  524. AC_MSG_RESULT([no])
  525. ])
  526. LDFLAGS="$save_LDFLAGS"
  527. libblkmaker_CFLAGS='-Ilibblkmaker'
  528. libblkmaker_LDFLAGS='-Llibblkmaker/.libs -Wl,-rpath,\$$ORIGIN/libblkmaker/.libs'"$origin_LDFLAGS"
  529. libblkmaker_LIBS='-lblkmaker_jansson-0.1 -lblkmaker-0.1'
  530. AC_CONFIG_SUBDIRS([libblkmaker])
  531. fi
  532. AC_SUBST(libblkmaker_CFLAGS)
  533. AC_SUBST(libblkmaker_LDFLAGS)
  534. AC_SUBST(libblkmaker_LIBS)
  535. AM_CONDITIONAL([NEED_LIBBLKMAKER], [test x$with_system_libblkmaker != xyes])
  536. AM_CONDITIONAL([NEED_DYNCLOCK], [test x$icarus$modminer$x6500$ztex != xnonono])
  537. AM_CONDITIONAL([NEED_FPGAUTILS], [test x$need_fpgautils = xyes])
  538. AM_CONDITIONAL([HAS_SCRYPT], [test x$scrypt = xyes])
  539. AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
  540. AM_CONDITIONAL([HAVE_SENSORS], [test x$with_sensors = xyes])
  541. AM_CONDITIONAL([HAVE_CYGWIN], [test x$have_cygwin = xtrue])
  542. AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
  543. AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
  544. AM_CONDITIONAL([HAS_FPGA], [test x$bitforce$icarus$modminer$x6500$ztex != xnonononono])
  545. dnl Find YASM
  546. has_yasm=false
  547. if test "x$have_x86_32$have_x86_64" != "xfalsefalse"; then
  548. AC_PATH_PROG([YASM],[yasm],[false])
  549. if test "x$YASM" != "xfalse" ; then
  550. AC_MSG_CHECKING([if yasm version is greater than 1.0.1])
  551. yasmver=`"$YASM" --version | head -1 | cut -d\ -f2`
  552. yamajor=`echo $yasmver | cut -d. -f1`
  553. yaminor=`echo $yasmver | cut -d. -f2`
  554. yamini=`echo $yasmver | cut -d. -f3`
  555. if test "$yamajor" -ge "1" ; then
  556. if test "$yamajor" -eq "1" ; then
  557. if test "$yaminor" -ge "0" ; then
  558. if test "$yaminor" -eq "0"; then
  559. if test "$yamini" -ge "1"; then
  560. has_yasm=true
  561. fi
  562. else
  563. has_yasm=true
  564. fi
  565. fi
  566. fi
  567. else
  568. has_yasm=false
  569. fi
  570. if test "x$has_yasm" = "xtrue" ; then
  571. AC_MSG_RESULT([yes])
  572. else
  573. AC_MSG_RESULT([no])
  574. fi
  575. fi
  576. if test "x$has_yasm" = "xfalse" ; then
  577. AC_MSG_NOTICE([yasm is required for the assembly algorithms. They will be skipped.])
  578. else
  579. AC_DEFINE([HAVE_YASM], [1], [Defined to 1 if yasm is being used])
  580. if test "x$have_win32$have_cygwin" != "xfalsefalse"; then
  581. if test "x$have_x86_64" = xtrue; then
  582. YASM_FMT="win64"
  583. else
  584. YASM_FMT="coff"
  585. fi
  586. elif test "x$have_macho" = "xtrue"; then
  587. YASM_FMT="macho$bitness"
  588. else
  589. YASM_FMT="elf$bitness"
  590. fi
  591. fi
  592. fi
  593. AM_CONDITIONAL([HAS_YASM], [test x$has_yasm = xtrue])
  594. have_sse2=no
  595. if test "x$cpumining$have_x86_32" = "xyestrue"; then
  596. AC_MSG_CHECKING([if SSE2 code compiles])
  597. save_CFLAGS="$CFLAGS"
  598. for flags in '' '-msse2'; do
  599. CFLAGS="$CFLAGS $flags"
  600. AC_TRY_LINK([
  601. #include <xmmintrin.h>
  602. ],[
  603. int *i = (int *)0xdeadbeef;
  604. __m128i a, b;
  605. a = _mm_set1_epi32(i[0]);
  606. b = _mm_set_epi32(i[0], i[1], i[2], i[3]);
  607. a = _mm_add_epi32(a, b);
  608. a = _mm_andnot_si128(a, b);
  609. a = _mm_or_si128(a, b);
  610. a = _mm_slli_epi32(a, i[4]);
  611. a = _mm_and_si128(a, b);
  612. a = _mm_xor_si128(a, b);
  613. ],[
  614. if test "x$flags" = "x"; then
  615. AC_MSG_RESULT([yes])
  616. else
  617. AC_MSG_RESULT([with $flags])
  618. fi
  619. SSE2_CFLAGS="$flags"
  620. have_sse2=yes
  621. break
  622. ],[
  623. true
  624. ])
  625. done
  626. CFLAGS="${save_CFLAGS}"
  627. if test "x$have_sse2" = "xyes"; then
  628. AC_DEFINE([HAVE_SSE2], [1], [Defined to 1 if yasm is being used])
  629. else
  630. AC_MSG_RESULT([no])
  631. fi
  632. fi
  633. AM_CONDITIONAL([HAVE_SSE2], [test "x$have_sse2" = "xyes"])
  634. if test "x$bitforce$modminer$icarus" != "xnonono"; then
  635. AC_ARG_WITH([libudev], [AC_HELP_STRING([--without-libudev], [Autodetect FPGAs using libudev (default enabled)])],
  636. [libudev=$withval],
  637. [libudev=auto]
  638. )
  639. if test "x$libudev" != "xno"; then
  640. AC_CHECK_HEADER([libudev.h],[
  641. libudev=yes
  642. UDEV_LIBS=-ludev
  643. AC_DEFINE([HAVE_LIBUDEV], [1], [Defined to 1 if libudev is wanted])
  644. ], [
  645. if test "x$libudev" = "xyes"; then
  646. AC_MSG_ERROR([libudev not found])
  647. fi
  648. libudev=no
  649. ])
  650. fi
  651. fi
  652. AM_CONDITIONAL([HAVE_LIBUDEV], [test x$libudev != xno])
  653. AC_SUBST(LIBUSB_LIBS)
  654. AC_SUBST(LIBUSB_CFLAGS)
  655. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])
  656. if echo "$LIBCURL_CFLAGS" | grep '@CPPFLAG_CURL_STATICLIB@' >/dev/null 2>&1; then
  657. AC_MSG_WARN([Your libcurl pkgconfig file is broken, applying workaround])
  658. LIBCURL_CFLAGS=`echo "$LIBCURL_CFLAGS" | sed 's/@CPPFLAG_CURL_STATICLIB@//'`
  659. fi
  660. AC_SUBST(LIBCURL_LIBS)
  661. AC_CHECK_FUNCS([setrlimit])
  662. dnl CCAN wants to know a lot of vars.
  663. # All the configuration checks. Regrettably, the __attribute__ checks will
  664. # give false positives on old GCCs, since they just cause warnings. But that's
  665. # fairly harmless.
  666. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((cold)) cleanup(void) { }])],
  667. AC_DEFINE([HAVE_ATTRIBUTE_COLD], [1],
  668. [Define if __attribute__((cold))]))
  669. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((const)) cleanup(void) { }])],
  670. AC_DEFINE([HAVE_ATTRIBUTE_CONST], [1],
  671. [Define if __attribute__((const))]))
  672. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((noreturn)) cleanup(void) { exit(1); }])],
  673. [
  674. AC_DEFINE([HAVE_ATTRIBUTE_NORETURN], [1],
  675. [Define if __attribute__((noreturn))])
  676. AC_DEFINE_UNQUOTED([NORETURN], [__attribute__((noreturn))], [Syntax of noreturn attribute])
  677. ], [
  678. AC_DEFINE_UNQUOTED([NORETURN], [])
  679. ]
  680. )
  681. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }])],
  682. AC_DEFINE([HAVE_ATTRIBUTE_PRINTF], [1],
  683. [Define if __attribute__((format(__printf__)))]))
  684. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((unused)) cleanup(void) { }])],
  685. AC_DEFINE([HAVE_ATTRIBUTE_UNUSED], [1],
  686. [Define if __attribute__((unused))]))
  687. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((used)) cleanup(void) { }])],
  688. AC_DEFINE([HAVE_ATTRIBUTE_USED], [1],
  689. [Define if __attribute__((used))]))
  690. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_constant_p(1) ? 0 : 1; }])],
  691. AC_DEFINE([HAVE_BUILTIN_CONSTANT_P], [1],
  692. [Define if have __builtin_constant_p]))
  693. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }])],
  694. AC_DEFINE([HAVE_BUILTIN_TYPES_COMPATIBLE_P], [1],
  695. [Define if have __builtin_types_compatible_p]))
  696. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static int __attribute__((warn_unused_result)) func(int x) { return x; }])],
  697. AC_DEFINE([HAVE_WARN_UNUSED_RESULT], [1],
  698. [Define if __attribute__((warn_unused_result))]))
  699. AC_MSG_CHECKING([for roundl function])
  700. save_LIBS="${LIBS}"
  701. LIBS="$LIBS -lm"
  702. AC_LINK_IFELSE([AC_LANG_PROGRAM([[
  703. #include <math.h>
  704. ]], [[
  705. return (roundl(*(long double *)0xdeadbeef) == 1.0);
  706. ]])], [
  707. AC_MSG_RESULT([yes])
  708. ], [
  709. AC_MSG_RESULT([no])
  710. AC_DEFINE([NEED_ROUNDL], [1], [Defined to 1 if C99 roundl is missing])
  711. ])
  712. LIBS="${save_LIBS}"
  713. # byteswap functions
  714. AH_TEMPLATE([HAVE_BYTESWAP_H], [Define to use byteswap macros from byteswap.h])
  715. AH_TEMPLATE([HAVE_ENDIAN_H], [Define to use byteswap macros from endian.h])
  716. AH_TEMPLATE([HAVE_SYS_ENDIAN_H], [Define to use byteswap macros from sys/endian.h])
  717. AH_TEMPLATE([HAVE_LIBKERN_OSBYTEORDER_H], [Define to use byteswap macros from libkern/OSByteOrder.h])
  718. BSWAP=''
  719. for sym in bswap_ __builtin_bswap __bswap_ __swap swap OSSwapInt; do
  720. AC_MSG_CHECKING([for ${sym}* functions])
  721. for headerfile in '' byteswap.h endian.h sys/endian.h libkern/OSByteOrder.h; do
  722. BFG_INCLUDE([headerinclude], [${headerfile}])
  723. AC_LINK_IFELSE([
  724. AC_LANG_PROGRAM([
  725. ${headerinclude}
  726. ], [
  727. (void) ${sym}16(0);
  728. (void) ${sym}32(0);
  729. (void) ${sym}64(0);
  730. ])
  731. ], [
  732. BSWAP="${sym}"
  733. if test "x${headerfile}" = "x"; then
  734. AC_MSG_RESULT([yes])
  735. else
  736. AC_MSG_RESULT([found in ${headerfile}])
  737. AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$headerfile]), 1)
  738. fi
  739. break 2
  740. ])
  741. done
  742. AC_MSG_RESULT([no])
  743. done
  744. if test "x$BSWAP" = "x"; then
  745. true # Substitutes are provided in miner.h
  746. elif test "x$BSWAP" = "xbswap_"; then
  747. AC_MSG_CHECKING([if bswap_16 is already a macro])
  748. BFG_PREPROC_IFELSE([defined(bswap_16)], $headerfile, [
  749. AC_MSG_RESULT([yes])
  750. BSWAP=""
  751. ],[
  752. AC_MSG_RESULT([no])
  753. ])
  754. fi
  755. if test "x$BSWAP" != "x"; then
  756. AC_DEFINE_UNQUOTED([bswap_16], ${BSWAP}16, [Define to 16-bit byteswap macro])
  757. AC_DEFINE_UNQUOTED([bswap_32], ${BSWAP}32, [Define to 16-bit byteswap macro])
  758. AC_DEFINE_UNQUOTED([bswap_64], ${BSWAP}64, [Define to 16-bit byteswap macro])
  759. fi
  760. # endian definition macros
  761. AC_MSG_CHECKING([for platform endian])
  762. found_endian=no
  763. for headerfile in '' endian.h sys/endian.h sys/param.h; do
  764. for pfx in '' '__'; do
  765. BFG_PREPROC_IFELSE([defined(${pfx}BYTE_ORDER) && defined(${pfx}BIG_ENDIAN) && defined(${pfx}LITTLE_ENDIAN) && (${pfx}BYTE_ORDER == ${pfx}BIG_ENDIAN || ${pfx}BYTE_ORDER == ${pfx}LITTLE_ENDIAN)], ${headerfile}, [
  766. if test "x$headerfile" = "x"; then
  767. headerfilec=''
  768. else
  769. headerfilec=" (${headerfile})"
  770. fi
  771. BFG_PREPROC_IFELSE([${pfx}BYTE_ORDER == ${pfx}BIG_ENDIAN], ${headerfile}, [
  772. AC_MSG_RESULT([big endian${headerfilec}])
  773. AC_DEFINE(WORDS_BIGENDIAN, 1, [Define if your platform is big endian])
  774. ], [
  775. AC_MSG_RESULT([little endian${headerfilec}])
  776. ])
  777. found_endian=yes
  778. break 2
  779. ],[true])
  780. done
  781. done
  782. if test "x$found_endian" = "xno"; then
  783. if $have_win32 || $have_cygwin; then
  784. AC_MSG_RESULT([assuming little endian (Windows)])
  785. else
  786. # AC_C_BIGENDIAN is reported to have problems, and invasive even if buried in a conditional, so don't use it
  787. AC_MSG_RESULT([unknown])
  788. AC_MSG_ERROR([Unable to identify platform endian])
  789. fi
  790. fi
  791. AC_MSG_CHECKING([if GNU format attribute compiles])
  792. AC_TRY_COMPILE([
  793. #define FORMAT_SYNTAX_CHECK(...) __attribute__(( format(__VA_ARGS__) ))
  794. int myfunc(char *fmt, ...) FORMAT_SYNTAX_CHECK(printf, 1, 2);
  795. int myfunc(char *fmt, ...) {
  796. return 42;
  797. }
  798. ], [
  799. myfunc("abc%d", 42);
  800. ], [
  801. AC_MSG_RESULT([yes])
  802. AC_DEFINE_UNQUOTED([FORMAT_SYNTAX_CHECK(...)], [__attribute__(( format(__VA_ARGS__) ))], [Syntax of format-checking attribute])
  803. ], [
  804. AC_MSG_RESULT([no])
  805. AC_DEFINE_UNQUOTED([FORMAT_SYNTAX_CHECK(...)], [])
  806. ])
  807. AC_MSG_CHECKING([for clock_gettime(CLOCK_MONOTONIC)])
  808. AC_TRY_COMPILE([
  809. #define _GNU_SOURCE
  810. #include <time.h>
  811. ],[
  812. struct timespec ts;
  813. clock_gettime(CLOCK_MONOTONIC, &ts);
  814. ],[
  815. AC_MSG_RESULT([yes])
  816. AC_DEFINE([HAVE_CLOCK_GETTIME_MONOTONIC], [1], [Defined to 1 if clock_gettime(CLOCK_MONOTONIC) is defined])
  817. AC_SEARCH_LIBS([clock_gettime],[rt posix4])
  818. AC_MSG_CHECKING([for clock_gettime(CLOCK_MONOTONIC_RAW)])
  819. AC_TRY_COMPILE([
  820. #define _GNU_SOURCE
  821. #include <time.h>
  822. ],[
  823. struct timespec ts;
  824. clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
  825. ],[
  826. AC_MSG_RESULT([yes])
  827. AC_DEFINE([HAVE_CLOCK_GETTIME_MONOTONIC_RAW], [1], [Defined to 1 if clock_gettime(CLOCK_MONOTONIC_RAW) is defined])
  828. ],[
  829. AC_MSG_RESULT([no])
  830. ])
  831. ],[
  832. AC_MSG_RESULT([no])
  833. ])
  834. if test "x$prefix" = xNONE; then
  835. prefix=/usr/local
  836. fi
  837. AM_CONDITIONAL([NEED_BITSTREAM_FPGAMINER], [test x$modminer$x6500 != xnono])
  838. AC_DEFINE_UNQUOTED([PHATK_KERNNAME], ["phatk121016"], [Filename for phatk kernel])
  839. AC_DEFINE_UNQUOTED([POCLBM_KERNNAME], ["poclbm130302"], [Filename for poclbm kernel])
  840. AC_DEFINE_UNQUOTED([DIAKGCN_KERNNAME], ["diakgcn121016"], [Filename for diakgcn kernel])
  841. AC_DEFINE_UNQUOTED([DIABLO_KERNNAME], ["diablo130302"], [Filename for diablo kernel])
  842. AC_DEFINE_UNQUOTED([SCRYPT_KERNNAME], ["scrypt130511"], [Filename for scrypt kernel])
  843. AC_SUBST(PTHREAD_FLAGS)
  844. AC_SUBST(DLOPEN_FLAGS)
  845. AC_SUBST(PTHREAD_LIBS)
  846. AC_SUBST(NCURSES_CPPFLAGS)
  847. AC_SUBST(NCURSES_LIBS)
  848. AC_SUBST(PDCURSES_LIBS)
  849. AC_SUBST(WS2_LIBS)
  850. AC_SUBST(MM_LIBS)
  851. AC_SUBST(MATH_LIBS)
  852. AC_SUBST(UDEV_LIBS)
  853. AC_SUBST(SSE2_CFLAGS)
  854. AC_SUBST(YASM_FMT)
  855. AC_CONFIG_FILES([
  856. Makefile
  857. x86_64/Makefile
  858. x86_32/Makefile
  859. ccan/Makefile
  860. lib/Makefile
  861. ])
  862. AC_OUTPUT
  863. echo
  864. echo
  865. echo
  866. echo "------------------------------------------------------------------------"
  867. echo "$PACKAGE $VERSION"
  868. echo "------------------------------------------------------------------------"
  869. echo
  870. echo
  871. echo "Configuration Options Summary:"
  872. echo
  873. echo " curses.TUI...........: $cursesmsg"
  874. if test "x$scrypt" != xno; then
  875. echo " scrypt...............: Enabled"
  876. else
  877. echo " scrypt...............: Disabled"
  878. fi
  879. echo
  880. if test "x$opencl" = xyes; then
  881. echo " OpenCL...............: Enabled"
  882. else
  883. echo " OpenCL...............: Disabled"
  884. fi
  885. if test "x$with_sensors" = xyes; then
  886. echo " sensors.monitoring.: Enabled"
  887. elif test "x$opencl" = xyes; then
  888. echo " sensors.monitoring.: Disabled"
  889. else
  890. echo " sensors.monitoring.: n/a"
  891. fi
  892. if test "x$adl" = xyes; then
  893. echo " ADL.monitoring.....: Enabled"
  894. elif test "x$opencl" = xyes; then
  895. echo " ADL.monitoring.....: Disabled"
  896. else
  897. echo " ADL.monitoring.....: n/a"
  898. fi
  899. if test "x$avalon" = xyes; then
  900. echo " Avalon.ASICs.........: Enabled"
  901. else
  902. echo " Avalon.ASICs.........: Disabled"
  903. fi
  904. if test "x$bitforce" = xyes; then
  905. echo " BitForce.devices.....: Enabled"
  906. else
  907. echo " BitForce.devices.....: Disabled"
  908. fi
  909. if test "x$icarus" = xyes; then
  910. echo " Icarus.FPGAs.........: Enabled"
  911. else
  912. echo " Icarus.FPGAs.........: Disabled"
  913. fi
  914. if test "x$modminer" = xyes; then
  915. echo " ModMiner.FPGAs.......: Enabled"
  916. else
  917. echo " ModMiner.FPGAs.......: Disabled"
  918. fi
  919. if test "x$x6500" = xyes; then
  920. echo " X6500.FPGAs..........: Enabled"
  921. elif test "x$ztexwarn" = xyes; then
  922. echo " X6500.FPGAs..........: Disabled (libusb not found)"
  923. else
  924. echo " X6500.FPGAs..........: Disabled"
  925. fi
  926. if test "x$ztex" = xyes; then
  927. echo " ZTEX.FPGAs...........: Enabled"
  928. elif test "x$ztexwarn" = xyes; then
  929. echo " ZTEX.FPGAs...........: Disabled (libusb not found)"
  930. else
  931. echo " ZTEX.FPGAs...........: Disabled"
  932. fi
  933. if test "x$bitforce$modminer" != xnono; then
  934. echo " libudev.detection....: $libudev"
  935. fi
  936. echo
  937. if test "x$cpumining" = xyes; then
  938. echo " CPU Mining...........: Enabled"
  939. echo " ASM.(for CPU mining).: $has_yasm"
  940. else
  941. echo " CPU Mining...........: Disabled"
  942. fi
  943. echo
  944. echo "Compilation............: make (or gmake)"
  945. echo " CPPFLAGS.............:" $CPPFLAGS $NCURSES_CPPFLAGS $PTHREAD_FLAGS
  946. echo " CFLAGS...............:" $CFLAGS $LIBUSB_CFLAGS $JANSSON_CFLAGS $PTHREAD_FLAGS
  947. echo " LDFLAGS..............:" $LDFLAGS $PTHREAD_FLAGS $PTHREAD_LIBS
  948. echo " LDADD................:" $LIBS $DLOPEN_FLAGS $LIBCURL_LIBS $JANSSON_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $UDEV_LIBS $LIBUSB_LIBS
  949. echo
  950. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  951. echo " prefix...............: $prefix"
  952. echo