Browse Source

Bugfix: Ignore/reject libmicrohttpd before 0.9.5, which introduced symbols we need

Luke Dashjr 12 years ago
parent
commit
20b89c5244
2 changed files with 4 additions and 4 deletions
  1. 1 1
      README
  2. 3 3
      configure.ac

+ 1 - 1
README

@@ -107,7 +107,7 @@ Optional Dependencies:
 	  libudev-dev        http://www.freedesktop.org/software/systemd/libudev/
 	
 	getwork server for Block Erupter Blades:
-	  libmicrohttpd-dev  http://www.gnu.org/software/libmicrohttpd/
+	  libmicrohttpd-dev 0.9.5+  http://www.gnu.org/software/libmicrohttpd/
 
 	X6500 and ZTEX FPGA boards:
 	  libusb-1.0-0-dev   http://www.libusb.org/

+ 3 - 3
configure.ac

@@ -333,14 +333,14 @@ AC_ARG_WITH([libmicrohttpd],
 	[httpsrv=$withval]
 )
 if test "x$httpsrv" != "xno"; then
-	PKG_CHECK_MODULES([libmicrohttpd],[libmicrohttpd],[
+	PKG_CHECK_MODULES([libmicrohttpd],[libmicrohttpd >= 0.9.5],[
 		AC_DEFINE([USE_LIBMICROHTTPD],[1],[Defined to 1 if libmicrohttpd support is wanted])
 		httpsrv=yes
 	],[
 		if test "x$httpsrv" = "xyes"; then
-			AC_MSG_ERROR([Unable to find libmicrohttpd])
+			AC_MSG_ERROR([Unable to find libmicrohttpd 0.9.5+])
 		else
-			AC_MSG_WARN([libmicrohttpd not found; getwork proxy will be unavailable])
+			AC_MSG_WARN([libmicrohttpd 0.9.5+ not found; getwork proxy will be unavailable])
 		fi
 	])
 fi