configure.ac 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059
  1. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  2. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  3. m4_define([v_maj], [4])
  4. m4_define([v_min], [11])
  5. m4_define([v_mic], [1-wrk])
  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. # This breaks autoreconf so disable it
  47. # LT_INIT([disable-shared])
  48. gl_INIT
  49. dnl Checks for header files.
  50. AC_HEADER_STDC
  51. AC_CHECK_HEADERS(syslog.h)
  52. AC_FUNC_ALLOCA
  53. have_win32=false
  54. PTHREAD_FLAGS="-lpthread"
  55. #LIBZ_LIBS="-lz"
  56. DLOPEN_FLAGS="-ldl"
  57. WS2_LIBS=""
  58. MM_LIBS=""
  59. MATH_LIBS="-lm"
  60. RT_LIBS="-lrt"
  61. case $target in
  62. amd64-*)
  63. have_x86_64=true
  64. ;;
  65. x86_64-*)
  66. have_x86_64=true
  67. ;;
  68. *)
  69. have_x86_64=false
  70. ;;
  71. esac
  72. #CFLAGS="$CFLAGS -Wimplicit-fallthrough=0"
  73. #^ causes problem on gcc 4.9 - pass in from CFLAG if needed
  74. case $target in
  75. *-*-linux-gnu*)
  76. have_linux=true
  77. ;;
  78. *-*-mingw*)
  79. have_win32=true
  80. PTHREAD_FLAGS=""
  81. DLOPEN_FLAGS=""
  82. WS2_LIBS="-lws2_32"
  83. MM_LIBS="-lwinmm"
  84. RT_LIBS=""
  85. #AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
  86. ;;
  87. powerpc-*-darwin*)
  88. have_darwin=true
  89. CFLAGS="$CFLAGS -faltivec"
  90. PTHREAD_FLAGS=""
  91. RT_LIBS=""
  92. ;;
  93. *-*-darwin*)
  94. have_darwin=true
  95. PTHREAD_FLAGS=""
  96. RT_LIBS=""
  97. ;;
  98. *-*-freebsd*)
  99. PTHREAD_FLAGS=""
  100. DLOPEN_FLAGS=""
  101. RT_LIBS=""
  102. ;;
  103. esac
  104. has_winpthread=false
  105. if test "x$have_win32" = xtrue; then
  106. has_winpthread=true
  107. AC_CHECK_LIB(winpthread, nanosleep, , has_winpthread=false)
  108. PTHREAD_LIBS=-lwinpthread
  109. fi
  110. if test "x$has_winpthread" != xtrue; then
  111. AC_CHECK_LIB(pthread, pthread_create, ,
  112. AC_MSG_ERROR([Could not find pthread library - please install libpthread]))
  113. PTHREAD_LIBS=-lpthread
  114. fi
  115. # Drivers that are designed to be run on dedicated hardware should set standalone to yes
  116. # All drivers should prepend an x to the drivercount
  117. standalone="no"
  118. drivercount=""
  119. ants1="no"
  120. AC_ARG_ENABLE([ants1],
  121. [AC_HELP_STRING([--enable-ants1],[Compile support for Antminer S1 Bitmain STANDALONE(default disabled)])],
  122. [ants1=$enableval]
  123. )
  124. if test "x$ants1" = xyes; then
  125. AC_DEFINE([USE_ANT_S1], [1], [Defined to 1 if Antminer S1 Bitmain support is wanted])
  126. drivercount=x$drivercount
  127. standalone="yes"
  128. fi
  129. AM_CONDITIONAL([HAS_ANT_S1], [test x$ants1 = xyes])
  130. ants2="no"
  131. AC_ARG_ENABLE([ants2],
  132. [AC_HELP_STRING([--enable-ants2],[Compile support for Antminer S2 Bitmain STANDALONE(default disabled)])],
  133. [ants2=$enableval]
  134. )
  135. if test "x$ants2" = xyes; then
  136. AC_DEFINE([USE_ANT_S2], [1], [Defined to 1 if Antminer S2 Bitmain support is wanted])
  137. drivercount=x$drivercount
  138. standalone="yes"
  139. fi
  140. AM_CONDITIONAL([HAS_ANT_S2], [test x$ants2 = xyes])
  141. ants3="no"
  142. AC_ARG_ENABLE([ants3],
  143. [AC_HELP_STRING([--enable-ants3],[Compile support for Antminer S3 Bitmain STANDALONE(default disabled)])],
  144. [ants3=$enableval]
  145. )
  146. if test "x$ants3" = xyes; then
  147. AC_DEFINE([USE_ANT_S3], [1], [Defined to 1 if Antminer S3 Bitmain support is wanted])
  148. drivercount=x$drivercount
  149. standalone="yes"
  150. fi
  151. AM_CONDITIONAL([HAS_ANT_S3], [test x$ants3 = xyes])
  152. avalon="no"
  153. AC_ARG_ENABLE([avalon],
  154. [AC_HELP_STRING([--enable-avalon],[Compile support for Avalon (default disabled)])],
  155. [avalon=$enableval]
  156. )
  157. if test "x$avalon" = xyes; then
  158. AC_DEFINE([USE_AVALON], [1], [Defined to 1 if Avalon support is wanted])
  159. drivercount=x$drivercount
  160. fi
  161. AM_CONDITIONAL([HAS_AVALON], [test x$avalon = xyes])
  162. avalon2="no"
  163. AC_ARG_ENABLE([avalon2],
  164. [AC_HELP_STRING([--enable-avalon2],[Compile support for Avalon2 (default disabled)])],
  165. [avalon2=$enableval]
  166. )
  167. if test "x$avalon2" = xyes; then
  168. AC_DEFINE([USE_AVALON2], [1], [Defined to 1 if Avalon2 support is wanted])
  169. drivercount=x$drivercount
  170. fi
  171. AM_CONDITIONAL([HAS_AVALON2], [test x$avalon2 = xyes])
  172. avalon4="no"
  173. AC_ARG_ENABLE([avalon4],
  174. [AC_HELP_STRING([--enable-avalon4],[Compile support for Avalon4 (default disabled)])],
  175. [avalon4=$enableval]
  176. )
  177. if test "x$avalon4" = xyes; then
  178. AC_DEFINE([USE_AVALON4], [1], [Defined to 1 if Avalon4 support is wanted])
  179. fi
  180. AM_CONDITIONAL([HAS_AVALON4], [test x$avalon4 = xyes])
  181. avalon7="no"
  182. AC_ARG_ENABLE([avalon7],
  183. [AC_HELP_STRING([--enable-avalon7],[Compile support for Avalon7 (default disabled)])],
  184. [avalon7=$enableval]
  185. )
  186. if test "x$avalon7" = xyes; then
  187. AC_DEFINE([USE_AVALON7], [1], [Defined to 1 if Avalon7 support is wanted])
  188. fi
  189. AM_CONDITIONAL([HAS_AVALON7], [test x$avalon7 = xyes])
  190. avalon8="no"
  191. AC_ARG_ENABLE([avalon8],
  192. [AC_HELP_STRING([--enable-avalon8],[Compile support for Avalon8 (default disabled)])],
  193. [avalon8=$enableval]
  194. )
  195. if test "x$avalon8" = xyes; then
  196. AC_DEFINE([USE_AVALON8], [1], [Defined to 1 if Avalon8 support is wanted])
  197. fi
  198. AM_CONDITIONAL([HAS_AVALON8], [test x$avalon8 = xyes])
  199. avalon_miner="no"
  200. AC_ARG_ENABLE([avalon_miner],
  201. [AC_HELP_STRING([--enable-avalon-miner],[Compile support for Avalon miner(default disabled)])],
  202. [avalon_miner=$enableval]
  203. )
  204. if test "x$avalon_miner" = xyes; then
  205. AC_DEFINE([USE_AVALON_MINER], [1], [Defined to 1 if Avalon miner support is wanted])
  206. fi
  207. AM_CONDITIONAL([HAS_AVALON_MINER], [test x$avalon_miner = xyes])
  208. bab="no"
  209. AC_ARG_ENABLE([bab],
  210. [AC_HELP_STRING([--enable-bab],[Compile support for BlackArrow Bitfury STANDALONE(default disabled)])],
  211. [bab=$enableval]
  212. )
  213. if test "x$bab" = xyes; then
  214. AC_DEFINE([USE_BAB], [1], [Defined to 1 if BlackArrow Bitfury support is wanted])
  215. drivercount=x$drivercount
  216. standalone="yes"
  217. fi
  218. AM_CONDITIONAL([HAS_BAB], [test x$bab = xyes])
  219. bflsc="no"
  220. AC_ARG_ENABLE([bflsc],
  221. [AC_HELP_STRING([--enable-bflsc],[Compile support for BFL ASICs (default disabled)])],
  222. [bflsc=$enableval]
  223. )
  224. if test "x$bflsc" = xyes; then
  225. AC_DEFINE([USE_BFLSC], [1], [Defined to 1 if BFL ASIC support is wanted])
  226. drivercount=x$drivercount
  227. fi
  228. AM_CONDITIONAL([HAS_BFLSC], [test x$bflsc = xyes])
  229. bitforce="no"
  230. AC_ARG_ENABLE([bitforce],
  231. [AC_HELP_STRING([--enable-bitforce],[Compile support for BitForce FPGAs (default disabled)])],
  232. [bitforce=$enableval]
  233. )
  234. if test "x$bitforce" = xyes; then
  235. AC_DEFINE([USE_BITFORCE], [1], [Defined to 1 if BitForce support is wanted])
  236. drivercount=x$drivercount
  237. fi
  238. AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes])
  239. bitfury="no"
  240. AC_ARG_ENABLE([bitfury],
  241. [AC_HELP_STRING([--enable-bitfury],[Compile support for BitFury ASICs (default disabled)])],
  242. [bitfury=$enableval]
  243. )
  244. if test "x$bitfury" = xyes; then
  245. AC_DEFINE([USE_BITFURY], [1], [Defined to 1 if BitFury ASIC support is wanted])
  246. drivercount=x$drivercount
  247. fi
  248. AM_CONDITIONAL([HAS_BITFURY], [test x$bitfury = xyes])
  249. bitfury16="no"
  250. AC_ARG_ENABLE([bitfury16],
  251. [AC_HELP_STRING([--enable-bitfury16],[Compile support for BitFury 16nm ASICs STANDALONE(default disabled)])],
  252. [bitfury16=$enableval]
  253. )
  254. if test "x$bitfury16" = xyes; then
  255. AC_DEFINE([USE_BITFURY16], [1], [Defined to 1 if BitFury 16nm ASIC support is wanted])
  256. drivercount=x$drivercount
  257. standalone="yes"
  258. fi
  259. AM_CONDITIONAL([HAS_BITFURY16], [test x$bitfury16 = xyes])
  260. bitmain_soc="no"
  261. bitmain_R4="no"
  262. bitmain_S9="no"
  263. bitmain_T9="no"
  264. bitmain_T9P="no"
  265. AC_ARG_ENABLE([bitmain_soc],
  266. [AC_HELP_STRING([--enable-bitmain_soc],[Compile support for Bitmain ASICs STANDALONE(default disabled)])],
  267. [bitmain_soc=$enableval]
  268. )
  269. AC_ARG_ENABLE([bitmain_R4],
  270. [AC_HELP_STRING([--enable-bitmain_R4],[Compile support for Bitmain R4])],
  271. [bitmain_R4=$enableval]
  272. )
  273. AC_ARG_ENABLE([bitmain_S9],
  274. [AC_HELP_STRING([--enable-bitmain_S9],[Compile support for Bitmain S9])],
  275. [bitmain_S9=$enableval]
  276. )
  277. AC_ARG_ENABLE([bitmain_T9],
  278. [AC_HELP_STRING([--enable-bitmain_T9],[Compile support for Bitmain T9])],
  279. [bitmain_T9=$enableval]
  280. )
  281. AC_ARG_ENABLE([bitmain_T9P],
  282. [AC_HELP_STRING([--enable-bitmain_T9P],[Compile support for Bitmain T9+])],
  283. [bitmain_T9P=$enableval]
  284. )
  285. if test "x$bitmain_soc" = xyes; then
  286. AC_DEFINE([USE_BITMAIN_SOC], [1], [Defined to 1 if Bitmain ASICs support is wanted])
  287. if test "x$bitmain_R4" = xyes; then
  288. AC_DEFINE([R4], [1], [Defined to 1 for R4])
  289. fi
  290. if test "x$bitmain_S9" = xyes; then
  291. AC_DEFINE([S9_63], [1], [Defined to 1 for S9])
  292. fi
  293. if test "x$bitmain_T9" = xyes; then
  294. AC_DEFINE([S9_PLUS], [1], [Defined to 1 for T9])
  295. fi
  296. if test "x$bitmain_T9P" = xyes; then
  297. AC_DEFINE([T9_18], [1], [Defined to 1 for T9+])
  298. fi
  299. if test "x$bitmain_R4$bitmain_S9$bitmain_T9$bitmain_T9P" = xnononono; then
  300. AC_DEFINE([S9_63], [1], [Defined to 1 for default])
  301. fi
  302. drivercount=x$drivercount
  303. standalone="yes"
  304. fi
  305. AM_CONDITIONAL([HAS_BITMAIN_SOC], [test x$bitmain_soc = xyes])
  306. bitmine_A1="no"
  307. AC_ARG_ENABLE([bitmine_A1],
  308. [AC_HELP_STRING([--enable-bitmine_A1],[Compile support for Bitmine.ch A1 ASICs STANDALONE(default disabled)])],
  309. [bitmine_A1=$enableval]
  310. )
  311. if test "x$bitmine_A1" = xyes; then
  312. AC_DEFINE([USE_BITMINE_A1], [1], [Defined to 1 if Bitmine A1 support is wanted])
  313. drivercount=x$drivercount
  314. standalone="yes"
  315. fi
  316. AM_CONDITIONAL([HAS_BITMINE_A1], [test x$bitmine_A1 = xyes])
  317. blockerupter="no"
  318. AC_ARG_ENABLE([blockerupter],
  319. [AC_HELP_STRING([--enable-blockerupter],[Compile support for BlockErupter BROKEN DRIVER (default disabled)])],
  320. [blockerupter=$enableval]
  321. )
  322. if test "x$blockerupter" = xyes; then
  323. AC_DEFINE([USE_BLOCKERUPTER], [1], [Defined to 1 if BlockErupter support is wanted])
  324. drivercount=x$drivercount
  325. fi
  326. AM_CONDITIONAL([HAS_BLOCKERUPTER], [test x$blockerupter = xyes])
  327. cointerra="no"
  328. AC_ARG_ENABLE([cointerra],
  329. [AC_HELP_STRING([--enable-cointerra],[Compile support for Cointerra ASICs (default disabled)])],
  330. [cointerra=$enableval]
  331. )
  332. if test "x$cointerra" = xyes; then
  333. AC_DEFINE([USE_COINTERRA], [1], [Defined to 1 if Cointerra support is wanted])
  334. drivercount=x$drivercount
  335. fi
  336. AM_CONDITIONAL([HAS_COINTERRA], [test x$cointerra = xyes])
  337. dragonmint_t1="no"
  338. AC_ARG_ENABLE([dragonmint_t1],
  339. [AC_HELP_STRING([--enable-dragonmint_t1],[Compile support for Dragonmint T1 ASICs STANDALONE(default disabled)])],
  340. [dragonmint_t1=$enableval]
  341. )
  342. if test "x$dragonmint_t1" = xyes; then
  343. AC_DEFINE([USE_DRAGONMINT_T1], [1], [Defined to 1 if Dragonmint T1 support is wanted])
  344. AC_DEFINE([USE_VMASK], [1], [Defined to 1 if version mask rolling is wanted])
  345. drivercount=x$drivercount
  346. standalone="yes"
  347. fi
  348. AM_CONDITIONAL([HAS_DRAGONMINT_T1], [test x$dragonmint_t1 = xyes])
  349. drillbit="no"
  350. AC_ARG_ENABLE([drillbit],
  351. [AC_HELP_STRING([--enable-drillbit],[Compile support for Drillbit BitFury ASICs (default disabled)])],
  352. [drillbit=$enableval]
  353. )
  354. if test "x$drillbit" = xyes; then
  355. AC_DEFINE([USE_DRILLBIT], [1], [Defined to 1 if Drillbit BitFury support is wanted])
  356. drivercount=x$drivercount
  357. fi
  358. AM_CONDITIONAL([HAS_DRILLBIT], [test x$drillbit = xyes])
  359. gekko="yes"
  360. AC_ARG_ENABLE([gekko],
  361. [AC_HELP_STRING([--disable-gekko],[Compile support for GekkoScience (default enabled)])],
  362. [gekko=$enableval]
  363. )
  364. if test "x$gekko" = xyes; then
  365. AC_DEFINE([USE_GEKKO], [1], [Defined to 1 if GekkoScience support is wanted])
  366. AC_DEFINE([USE_VMASK], [1], [Defined to 1 if version mask rolling is wanted])
  367. drivercount=x$drivercount
  368. fi
  369. AM_CONDITIONAL([HAS_GEKKO], [test x$gekko = xyes])
  370. hashfast="no"
  371. AC_ARG_ENABLE([hashfast],
  372. [AC_HELP_STRING([--enable-hashfast],[Compile support for Hashfast (default disabled)])],
  373. [hashfast=$enableval]
  374. )
  375. if test "x$hashfast" = xyes; then
  376. AC_DEFINE([USE_HASHFAST], [1], [Defined to 1 if Hashfast support is wanted])
  377. drivercount=x$drivercount
  378. fi
  379. AM_CONDITIONAL([HAS_HASHFAST], [test x$hashfast = xyes])
  380. hashratio="no"
  381. AC_ARG_ENABLE([hashratio],
  382. [AC_HELP_STRING([--enable-hashratio],[Compile support for Hashratio (default disabled)])],
  383. [hashratio=$enableval]
  384. )
  385. if test "x$hashratio" = xyes; then
  386. AC_DEFINE([USE_HASHRATIO], [1], [Defined to 1 if Hashratiosupport is wanted])
  387. drivercount=x$drivercount
  388. fi
  389. AM_CONDITIONAL([HAS_HASHRATIO], [test x$hashratio = xyes])
  390. icarus="no"
  391. AC_ARG_ENABLE([icarus],
  392. [AC_HELP_STRING([--enable-icarus],[Compile support for Icarus (default disabled)])],
  393. [icarus=$enableval]
  394. )
  395. if test "x$icarus" = xyes; then
  396. AC_DEFINE([USE_ICARUS], [1], [Defined to 1 if Icarus support is wanted])
  397. drivercount=x$drivercount
  398. fi
  399. AM_CONDITIONAL([HAS_ICARUS], [test x$icarus = xyes])
  400. klondike="no"
  401. AC_ARG_ENABLE([klondike],
  402. [AC_HELP_STRING([--enable-klondike],[Compile support for Klondike (default disabled)])],
  403. [klondike=$enableval]
  404. )
  405. if test "x$klondike" = xyes; then
  406. AC_DEFINE([USE_KLONDIKE], [1], [Defined to 1 if Klondike support is wanted])
  407. drivercount=x$drivercount
  408. fi
  409. AM_CONDITIONAL([HAS_KLONDIKE], [test x$klondike = xyes])
  410. knc="no"
  411. AC_ARG_ENABLE([knc],
  412. [AC_HELP_STRING([--enable-knc],[Compile support for KnC miners STANDALONE(default disabled)])],
  413. [knc=$enableval]
  414. )
  415. if test "x$knc" = xyes; then
  416. AC_DEFINE([USE_KNC], [1], [Defined to 1 if KnC miner support is wanted])
  417. drivercount=x$drivercount
  418. standalone="yes"
  419. fi
  420. AM_CONDITIONAL([HAS_KNC], [test x$knc = xyes])
  421. minion="no"
  422. AC_ARG_ENABLE([minion],
  423. [AC_HELP_STRING([--enable-minion],[Compile support for Minion BlackArrow ASIC STANDALONE(default disabled)])],
  424. [minion=$enableval]
  425. )
  426. if test "x$minion" = xyes; then
  427. AC_DEFINE([USE_MINION], [1], [Defined to 1 if Minion BlackArrow ASIC support is wanted])
  428. drivercount=x$drivercount
  429. standalone="yes"
  430. fi
  431. AM_CONDITIONAL([HAS_MINION], [test x$minion = xyes])
  432. modminer="no"
  433. AC_ARG_ENABLE([modminer],
  434. [AC_HELP_STRING([--enable-modminer],[Compile support for ModMiner FPGAs(default disabled)])],
  435. [modminer=$enableval]
  436. )
  437. if test "x$modminer" = xyes; then
  438. AC_DEFINE([USE_MODMINER], [1], [Defined to 1 if ModMiner support is wanted])
  439. drivercount=x$drivercount
  440. fi
  441. AM_CONDITIONAL([HAS_MODMINER], [test x$modminer = xyes])
  442. sp10="no"
  443. AC_ARG_ENABLE([sp10],
  444. [AC_HELP_STRING([--enable-sp10],[Compile support for Spondoolies SP10 STANDALONE(default disabled)])],
  445. [sp10=$enableval]
  446. )
  447. if test "x$sp10" = xyes; then
  448. AC_DEFINE([USE_SP10], [1], [Defined to 1 if Spondoolies SP10 support is wanted])
  449. drivercount=x$drivercount
  450. standalone="yes"
  451. fi
  452. AM_CONDITIONAL([HAS_SP10], [test x$sp10 = xyes])
  453. sp30="no"
  454. AC_ARG_ENABLE([sp30],
  455. [AC_HELP_STRING([--enable-sp30],[Compile support for Spondoolies SP30 STANDALONE(default disabled)])],
  456. [sp30=$enableval]
  457. )
  458. if test "x$sp30" = xyes; then
  459. AC_DEFINE([USE_SP30], [1], [Defined to 1 if SP30 support is wanted])
  460. drivercount=x$drivercount
  461. standalone="yes"
  462. fi
  463. AM_CONDITIONAL([HAS_SP30], [test x$sp30 = xyes])
  464. forcecombo="no"
  465. AC_ARG_ENABLE([forcecombo],
  466. [AC_HELP_STRING([--enable-forcecombo],[Allow combinations of drivers not intended to be built together(default disabled)])],
  467. [forcecombo=$enableval]
  468. )
  469. if test "x$forcecombo" = xyes; then
  470. standalone="no"
  471. fi
  472. curses="auto"
  473. AC_ARG_WITH([curses],
  474. [AC_HELP_STRING([--without-curses],[Compile support for curses TUI (default enabled)])],
  475. [curses=$withval]
  476. )
  477. if test "x$curses" = "xno"; then
  478. cursesmsg='User specified --without-curses. TUI support DISABLED'
  479. else
  480. AC_SEARCH_LIBS(addstr, pdcurses ncurses pdcurses, [
  481. curses=yes
  482. cursesmsg="FOUND: ${ac_cv_search_addstr}"
  483. AC_DEFINE([HAVE_CURSES], [1], [Defined to 1 if curses TUI support is wanted])
  484. ], [
  485. if test "x$curses" = "xyes"; then
  486. AC_MSG_ERROR([Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)])
  487. else
  488. AC_MSG_WARN([Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev])
  489. curses=no
  490. cursesmsg='NOT FOUND. TUI support DISABLED'
  491. fi
  492. ])
  493. fi
  494. #Add a new device to this list if it needs libusb, along with a no on the end.
  495. if test x$avalon$avalon2$avalon4$avalon7$avalon8$avalon_miner$bitforce$bitfury$blockerupter$gekko$modminer$bflsc$icarus$hashfast$hashratio$klondike$drillbit$cointerra$ants1$ants3 != xnononononononononononononononononononono; then
  496. want_usbutils=true
  497. else
  498. want_usbutils=false
  499. fi
  500. if test x$bitfury != xno; then
  501. want_libbitfury=true
  502. else
  503. want_libbitfury=false
  504. fi
  505. if test x$avalon2$avalon4$avalon7$$avalon8$avalon_miner$gekko$hashratio != xnonononononono; then
  506. want_crc16=true
  507. else
  508. want_crc16=false
  509. fi
  510. AM_CONDITIONAL([NEED_FPGAUTILS], [test x$modminer != xno])
  511. AM_CONDITIONAL([WANT_USBUTILS], [test x$want_usbutils != xfalse])
  512. AM_CONDITIONAL([NEED_LIBZ], [test x$bitmain_soc != xno])
  513. AM_CONDITIONAL([WANT_LIBBITFURY], [test x$want_libbitfury != xfalse])
  514. AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
  515. AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
  516. AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
  517. AM_CONDITIONAL([WANT_CRC16], [test x$want_crc16 != xfalse])
  518. AM_CONDITIONAL([NEED_I2C_CONTEXT], [test x$avalon4$avalon7$avalon8 != xnonono])
  519. if test "x$want_usbutils" != xfalse; then
  520. dlibusb="no"
  521. AC_DEFINE([USE_USBUTILS], [1], [Defined to 1 if usbutils support required])
  522. AC_ARG_WITH([system-libusb],
  523. [AC_HELP_STRING([--with-system-libusb],[Not recommended! Compile against dynamic system libusb. (Default use included static libusb)])],
  524. [dlibusb=$withval]
  525. )
  526. if test "x$dlibusb" != xno; then
  527. case $target in
  528. *-*-freebsd*)
  529. LIBUSB_LIBS="-lusb"
  530. LIBUSB_CFLAGS=""
  531. AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])
  532. ;;
  533. *)
  534. 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])])
  535. ;;
  536. esac
  537. else
  538. AC_CONFIG_SUBDIRS([compat/libusb-1.0])
  539. LIBUSB_LIBS="compat/libusb-1.0/libusb/.libs/libusb-1.0.a"
  540. if test "x$have_linux" = "xtrue"; then
  541. AC_ARG_ENABLE([udev],
  542. [AC_HELP_STRING([--disable-udev],[Disable building libusb with udev])],
  543. [udev=$enableval]
  544. )
  545. if test "x$udev" != xno; then
  546. LIBUSB_LIBS+=" -ludev"
  547. fi
  548. fi
  549. if test "x$have_darwin" = "xtrue"; then
  550. LIBUSB_LIBS+=" -lobjc"
  551. LDFLAGS+=" -framework CoreFoundation -framework IOKit"
  552. fi
  553. fi
  554. else
  555. LIBUSB_LIBS=""
  556. fi
  557. AM_CONDITIONAL([WANT_STATIC_LIBUSB], [test x$dlibusb = xno])
  558. djansson="no"
  559. AC_ARG_WITH([system-jansson],
  560. [AC_HELP_STRING([--with-system-jansson],[Not Recommended! Compile against dynamic system jansson. (Default use included static jansson)])],
  561. [djansson=$withval]
  562. )
  563. if test "x$djansson" != xno; then
  564. case $target in
  565. *-*-freebsd*)
  566. JANSSON_LIBS="-ljansson"
  567. JANSSON_CFLAGS=""
  568. AC_DEFINE(HAVE_JANSSON, 1, [Define if you have jansson >= 2.6])
  569. ;;
  570. *)
  571. PKG_CHECK_MODULES(JANSSON, jansson >= 2.6, [AC_DEFINE(HAVE_JANSSON, 1, [Define if you have jansson >= 2.6])], [AC_MSG_ERROR([Could not find jansson library - please install jansson >= 2.6])])
  572. ;;
  573. esac
  574. else
  575. AC_CONFIG_SUBDIRS([compat/jansson-2.9])
  576. JANSSON_LIBS="compat/jansson-2.9/src/.libs/libjansson.a"
  577. fi
  578. AM_CONDITIONAL([WANT_STATIC_JANSSON], [test x$djansson = xno])
  579. AC_CHECK_HEADERS([uthash.h])
  580. PKG_PROG_PKG_CONFIG()
  581. if test "x$have_cgminer_sdk" = "xtrue"; then
  582. if test "x$have_x86_64" = xtrue; then
  583. ARCH_DIR=x86_64
  584. else
  585. ARCH_DIR=x86
  586. fi
  587. PKG_CONFIG="${PKG_CONFIG:-pkg-config} --define-variable=arch=$ARCH_DIR --define-variable=target=$target --define-variable=cgminersdkdir=$CGMINER_SDK"
  588. PKG_CONFIG_PATH="$CGMINER_SDK/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
  589. fi
  590. AC_SUBST(LIBUSB_LIBS)
  591. AC_SUBST(LIBUSB_CFLAGS)
  592. AC_ARG_ENABLE([libcurl],
  593. [AC_HELP_STRING([--disable-libcurl],[Disable building with libcurl for GBT support])],
  594. [libcurl=$enableval]
  595. )
  596. static_curl="no"
  597. if test "x$libcurl" != xno; then
  598. if test "x$have_win32" != xtrue; then
  599. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.25.0], [AC_DEFINE([CURL_HAS_KEEPALIVE], [1], [Defined if version of curl supports keepalive.])],
  600. [PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])])
  601. else
  602. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.25.0], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.25.0])])
  603. AC_DEFINE([CURL_HAS_KEEPALIVE], [1])
  604. static_curl="yes"
  605. fi
  606. AC_DEFINE([HAVE_LIBCURL], [1], [Defined to 1 if libcurl support built in])
  607. else
  608. LIBCURL_LIBS=""
  609. fi
  610. AC_SUBST(LIBCURL_LIBS)
  611. AM_CONDITIONAL([STATIC_CURL], [test x$static_curl = xyes])
  612. libsystemd="no"
  613. AC_ARG_ENABLE([libsystemd],
  614. [AC_HELP_STRING([--enable-libsystemd],[Enable building with libsystemd for watchdog and status notification support])],
  615. [libsystemd=$enableval]
  616. )
  617. if test "x$libsystemd" != xno; then
  618. if test "x$have_linux" != xtrue; then
  619. AC_MSG_ERROR([libsystemd is only supported on Linux platforms])
  620. fi
  621. PKG_CHECK_MODULES(LIBSYSTEMD, libsystemd, , AC_MSG_ERROR(Could not find libsystemd dev))
  622. AC_DEFINE([USE_LIBSYSTEMD], [1], [Defined to 1 if libsystemd support is wanted])
  623. else
  624. LIBSYSTEMD_LIBS=""
  625. fi
  626. #check execv signature
  627. AC_COMPILE_IFELSE([AC_LANG_SOURCE([
  628. #include <process.h>
  629. int execv(const char*, const char*const*);
  630. ])],
  631. AC_DEFINE([EXECV_2ND_ARG_TYPE], [const char* const*], [int execv(const char*, const char*const*);]),
  632. AC_DEFINE([EXECV_2ND_ARG_TYPE], [char* const*], [int execv(const char*, char*const*);]))
  633. dnl CCAN wants to know a lot of vars.
  634. # All the configuration checks. Regrettably, the __attribute__ checks will
  635. # give false positives on old GCCs, since they just cause warnings. But that's
  636. # fairly harmless.
  637. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((cold)) cleanup(void) { }])],
  638. AC_DEFINE([HAVE_ATTRIBUTE_COLD], [1],
  639. [Define if __attribute__((cold))]))
  640. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((const)) cleanup(void) { }])],
  641. AC_DEFINE([HAVE_ATTRIBUTE_CONST], [1],
  642. [Define if __attribute__((const))]))
  643. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((noreturn)) cleanup(void) { exit(1); }])],
  644. AC_DEFINE([HAVE_ATTRIBUTE_NORETURN], [1],
  645. [Define if __attribute__((noreturn))]))
  646. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }])],
  647. AC_DEFINE([HAVE_ATTRIBUTE_PRINTF], [1],
  648. [Define if __attribute__((format(__printf__)))]))
  649. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((unused)) cleanup(void) { }])],
  650. AC_DEFINE([HAVE_ATTRIBUTE_UNUSED], [1],
  651. [Define if __attribute__((unused))]))
  652. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((used)) cleanup(void) { }])],
  653. AC_DEFINE([HAVE_ATTRIBUTE_USED], [1],
  654. [Define if __attribute__((used))]))
  655. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_constant_p(1) ? 0 : 1; }])],
  656. AC_DEFINE([HAVE_BUILTIN_CONSTANT_P], [1],
  657. [Define if have __builtin_constant_p]))
  658. AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }])],
  659. AC_DEFINE([HAVE_BUILTIN_TYPES_COMPATIBLE_P], [1],
  660. [Define if have __builtin_types_compatible_p]))
  661. AC_COMPILE_IFELSE([AC_LANG_SOURCE([static int __attribute__((warn_unused_result)) func(int x) { return x; }])],
  662. AC_DEFINE([HAVE_WARN_UNUSED_RESULT], [1],
  663. [Define if __attribute__((warn_unused_result))]))
  664. if test "x$prefix" = xNONE; then
  665. prefix=/usr/local
  666. fi
  667. AC_DEFINE_UNQUOTED([CGMINER_PREFIX], ["$prefix/bin"], [Path to cgminer install])
  668. AC_SUBST(JANSSON_LIBS)
  669. AC_SUBST(LIBZ_LIBS)
  670. AC_SUBST(PTHREAD_FLAGS)
  671. AC_SUBST(DLOPEN_FLAGS)
  672. AC_SUBST(PTHREAD_LIBS)
  673. AC_SUBST(NCURSES_LIBS)
  674. AC_SUBST(PDCURSES_LIBS)
  675. AC_SUBST(WS2_LIBS)
  676. AC_SUBST(MM_LIBS)
  677. AC_SUBST(MATH_LIBS)
  678. AC_SUBST(RT_LIBS)
  679. AC_CONFIG_FILES([
  680. Makefile
  681. compat/Makefile
  682. ccan/Makefile
  683. lib/Makefile
  684. ])
  685. AC_OUTPUT
  686. echo
  687. echo
  688. echo
  689. echo "------------------------------------------------------------------------"
  690. echo "$PACKAGE $VERSION"
  691. echo "------------------------------------------------------------------------"
  692. echo
  693. echo
  694. echo "Configuration Options Summary:"
  695. echo
  696. if test "x$libcurl" != xno; then
  697. echo " libcurl(GBT).: Enabled: $LIBCURL_LIBS"
  698. else
  699. echo " libcurl(GBT).: Disabled"
  700. fi
  701. if test "x$libsystemd" != xno; then
  702. echo " libsystemd...........: Enabled: $LIBSYSTEMD_LIBS"
  703. else
  704. echo " libsystemd...........: Disabled"
  705. fi
  706. echo " curses.TUI...........: $cursesmsg"
  707. echo
  708. if test "x$ants1" = xyes; then
  709. echo " Antminer.S1.Bitmain..: Enabled"
  710. else
  711. echo " Antminer.S1.Bitmain..: Disabled"
  712. fi
  713. if test "x$ants2" = xyes; then
  714. echo " Antminer.S2.Bitmain..: Enabled"
  715. else
  716. echo " Antminer.S2.Bitmain..: Disabled"
  717. fi
  718. if test "x$ants3" = xyes; then
  719. echo " Antminer.S3.Bitmain..: Enabled"
  720. else
  721. echo " Antminer.S3.Bitmain..: Disabled"
  722. fi
  723. if test "x$avalon" = xyes; then
  724. echo " Avalon.ASICs.........: Enabled"
  725. else
  726. echo " Avalon.ASICs.........: Disabled"
  727. fi
  728. if test "x$avalon2" = xyes; then
  729. echo " Avalon2.ASICs........: Enabled"
  730. else
  731. echo " Avalon2.ASICs........: Disabled"
  732. fi
  733. if test "x$avalon4" = xyes; then
  734. echo " Avalon4.ASICs........: Enabled"
  735. else
  736. echo " Avalon4.ASICs........: Disabled"
  737. fi
  738. if test "x$avalon7" = xyes; then
  739. echo " Avalon7.ASICs........: Enabled"
  740. else
  741. echo " Avalon7.ASICs........: Disabled"
  742. fi
  743. if test "x$avalon8" = xyes; then
  744. echo " Avalon8.ASICs........: Enabled"
  745. else
  746. echo " Avalon8.ASICs........: Disabled"
  747. fi
  748. if test "x$avalon_miner" = xyes; then
  749. echo " Avalon miner.ASICs...: Enabled"
  750. else
  751. echo " Avalon miner.ASICs...: Disabled"
  752. fi
  753. if test "x$minion" = xyes; then
  754. echo " BlackArrowMinion.ASIC: Enabled"
  755. else
  756. echo " BlackArrowMinion.ASIC: Disabled"
  757. fi
  758. if test "x$bab" = xyes; then
  759. echo " BlackArrow.ASICs.....: Enabled"
  760. else
  761. echo " BlackArrow.ASICs.....: Disabled"
  762. fi
  763. if test "x$bflsc" = xyes; then
  764. echo " BFL.ASICs............: Enabled"
  765. else
  766. echo " BFL.ASICs............: Disabled"
  767. fi
  768. if test "x$bitforce" = xyes; then
  769. echo " BitForce.FPGAs.......: Enabled"
  770. else
  771. echo " BitForce.FPGAs.......: Disabled"
  772. fi
  773. if test "x$bitfury" = xyes; then
  774. echo " BitFury.ASICs........: Enabled"
  775. else
  776. echo " BitFury.ASICs........: Disabled"
  777. fi
  778. if test "x$bitfury16" = xyes; then
  779. echo " BitFury16.ASICs......: Enabled"
  780. else
  781. echo " BitFury16.ASICs......: Disabled"
  782. fi
  783. if test "x$bitmain_soc" = xyes; then
  784. echo " Bitmain.ASICs........: Enabled"
  785. else
  786. echo " Bitmain.ASICs........: Disabled"
  787. fi
  788. if test "x$blockerupter" = xyes; then
  789. echo " BlockErupter.ASICs...: Enabled"
  790. else
  791. echo " BlockErupter.ASICs...: Disabled"
  792. fi
  793. if test "x$cointerra" = xyes; then
  794. echo " Cointerra.ASICs......: Enabled"
  795. else
  796. echo " Cointerra.ASICs......: Disabled"
  797. fi
  798. if test "x$bitmine_A1" = xyes; then
  799. echo " Bitmine-A1.ASICs.....: Enabled"
  800. else
  801. echo " Bitmine-A1.ASICs.....: Disabled"
  802. fi
  803. if test "x$dragonmint_t1" = xyes; then
  804. echo " Dragonmint.T1.ASICs..: Enabled"
  805. else
  806. echo " Dragonmint.T1.ASICs..: Disabled"
  807. fi
  808. if test "x$drillbit" = xyes; then
  809. echo " Drillbit.BitFury.....: Enabled"
  810. else
  811. echo " Drillbit.BitFury.....: Disabled"
  812. fi
  813. if test "x$gekko" = xyes; then
  814. echo " GekkoScience.ASICs...: Enabled"
  815. else
  816. echo " GekkoScience.ASICs...: Disabled"
  817. fi
  818. if test "x$hashfast" = xyes; then
  819. echo " Hashfast.ASICs.......: Enabled"
  820. else
  821. echo " Hashfast.ASICs.......: Disabled"
  822. fi
  823. if test "x$hashratio" = xyes; then
  824. echo " Hashratio.ASICs......: Enabled"
  825. else
  826. echo " Hashratio.ASICs......: Disabled"
  827. fi
  828. if test "x$icarus" = xyes; then
  829. echo " Icarus.ASICs/FPGAs...: Enabled"
  830. else
  831. echo " Icarus.ASICs/FPGAs...: Disabled"
  832. fi
  833. if test "x$klondike" = xyes; then
  834. echo " Klondike.ASICs.......: Enabled"
  835. else
  836. echo " Klondike.ASICs.......: Disabled"
  837. fi
  838. if test "x$knc" = xyes; then
  839. echo " KnC.ASICs............: Enabled"
  840. else
  841. echo " KnC.ASICs............: Disabled"
  842. fi
  843. if test "x$modminer" = xyes; then
  844. echo " ModMiner.FPGAs.......: Enabled"
  845. else
  846. echo " ModMiner.FPGAs.......: Disabled"
  847. fi
  848. if test "x$sp10" = xyes; then
  849. echo " Spond-sp10.ASICs.....: Enabled"
  850. else
  851. echo " Spond-sp10.ASICs.....: Disabled"
  852. fi
  853. if test "x$sp30" = xyes; then
  854. echo " Spond-sp30.ASICs.....: Enabled"
  855. else
  856. echo " Spond-sp30.ASICs.....: Disabled"
  857. fi
  858. #Add any new device to this, along with a no on the end of the test
  859. if test "x$avalon$avalon2$avalon4$avalon7$avalon8$avalon_miner$bab$bflsc$bitforce$bitfury$bitfury16$bitmain_soc$gekko$blockerupter$hashfast$hashratio$icarus$klondike$knc$modminer$drillbit$minion$cointerra$bitmine_A1$ants1$ants2$ants3$sp10$sp30$dragonmint_t1" = xnonononononononnoononononononononononononononononononnoonono; then
  860. echo
  861. AC_MSG_ERROR([No mining devices configured in])
  862. echo
  863. fi
  864. if test "x$standalone" = xyes; then
  865. if test $drivercount != x; then
  866. echo
  867. AC_MSG_ERROR([You have configured more than one driver in with a driver that is designed to be standalone only (see ./configure --help)])
  868. echo
  869. fi
  870. fi
  871. echo
  872. echo "Compilation............: make (or gmake)"
  873. echo " CPPFLAGS.............: $CPPFLAGS"
  874. echo " CFLAGS...............: $CFLAGS"
  875. echo " LDFLAGS..............: $LDFLAGS $PTHREAD_FLAGS"
  876. echo " LDADD................: $DLOPEN_FLAGS $LIBCURL_LIBS $LIBSYSTEMD_LIBS $JANSSON_LIBS $LIBZ_LIBS $PTHREAD_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $LIBUSB_LIBS $RT_LIBS"
  877. echo
  878. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  879. echo " prefix...............: $prefix"
  880. echo
  881. if test "x$want_usbutils$dlibusb" = xyesyes; then
  882. echo "*** SYSTEM LIBUSB BEING ADDED - NOT RECOMMENDED UNLESS YOU ARE UNABLE TO COMPILE THE INCLUDED LIBUSB ***"
  883. echo
  884. fi
  885. if test "x$djansson" = xyes; then
  886. echo "*** SYSTEM JANSSON BEING ADDED - NOT RECOMMENDED UNLESS YOU ARE UNABLE TO COMPILE THE INCLUDED JANSSON ***"
  887. echo
  888. fi