Code

libi2c only exists on Linux
authorRuben Kerkhof <ruben@tilaa.com>
Fri, 11 Dec 2015 16:25:08 +0000 (17:25 +0100)
committerRuben Kerkhof <ruben@tilaa.com>
Fri, 11 Dec 2015 16:25:08 +0000 (17:25 +0100)
configure.ac

index c4483792b016ce3436dd3b58d44394a8c39e4a40..f46cedbdc6378bfb040eabf81b5d9a7cd92fe7a4 100644 (file)
@@ -5417,7 +5417,6 @@ then
 fi
 
 # libi2c-dev
-with_libi2c="no"
 if test "x$ac_system" = "xLinux"
 then
 AC_CHECK_DECL(i2c_smbus_read_i2c_block_data,
@@ -5425,6 +5424,8 @@ AC_CHECK_DECL(i2c_smbus_read_i2c_block_data,
        [with_libi2c="no (symbol i2c_smbus_read_i2c_block_data not found - have you installed libi2c-dev ?)"],
        [[#include <stdlib.h>
        #include <linux/i2c-dev.h>]])
+else
+       with_libi2c="no (Linux only)"
 fi
 
 if test "x$with_libi2c" = "xyes"