From 3d9970d66f97c75cc4187f6a9dff5d4b38d755fb Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Wed, 29 Feb 2012 09:02:30 -0500 Subject: [PATCH] Bugfix: Check for libudev header (not just library) in configure, and document optional dependency --- README | 2 ++ configure.ac | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README b/README index e327a5ee..e3b93e9c 100644 --- a/README +++ b/README @@ -44,6 +44,8 @@ Dependencies: (This sdk is mandatory for GPU mining) AMD ADL SDK http://developer.amd.com/sdks/ADLSDK (This sdk is mandatory for ATI GPU monitoring & clocking) + libudev headers + (This is only required for FPGA auto-detection) CGMiner specific configuration options: --enable-cpumining Build with cpu mining support(default disabled) diff --git a/configure.ac b/configure.ac index f505383a..5b0a7582 100644 --- a/configure.ac +++ b/configure.ac @@ -266,7 +266,7 @@ if test "x$bitforce" != xno; then [libudev=auto] ) if test "x$libudev" != "xno"; then - AC_CHECK_LIB([udev], [udev_device_get_devnode], [ + AC_CHECK_HEADER([libudev.h],[ libudev=yes UDEV_LIBS=-ludev AC_DEFINE([HAVE_LIBUDEV], [1], [Defined to 1 if libudev is wanted])