clamav: fix bzip2 detection
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 20 Nov 2014 22:04:09 +0000 (23:04 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 20 Nov 2014 22:06:41 +0000 (23:06 +0100)
Configure gets confused if the host has bzip2 development headers, so force
the results.

Fixes:
http://autobuild.buildroot.net/results/e73/e732d1bac8fe68fd8bba50e4e9d908be3d996c83/
http://autobuild.buildroot.net/results/1a4/1a46e53cf892534f1b3a16c249fa710485290b5a/
http://autobuild.buildroot.net/results/6d0/6d09379aaba0ccddddfee9e319b84687012fd5fc/
http://autobuild.buildroot.net/results/d23/d2310a2f265e7d22c025a61e064a3c29dc6213ef/

And many more.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/clamav/clamav.mk

index fb3730cd6ebfc6f3bfbe383334179e359d2fc8fd..9a4063fd8232f95f9adf4bde1f87fa35be68a409 100644 (file)
@@ -32,6 +32,10 @@ CLAMAV_CONF_OPTS = \
 
 ifeq ($(BR2_PACKAGE_BZIP2),y)
 CLAMAV_DEPENDENCIES += bzip2
+# autodetection gets confused if host has bzip2, so force it
+CLAMAV_CONF_ENV += \
+       ac_cv_libbz2_libs=-lbz2 \
+       ac_cv_libbz2_ltlibs=-lbz2
 else
 CLAMAV_CONF_OPTS += --disable-bzip2
 endif