Displaying 1 result from an estimated 1 matches for "libsysfs_found".
2007 Apr 18
0
[Bridge] [PATCH] Better test for libsysfs
...-
Regards,
Pavel Roskin
-------------- next part --------------
--- configure.in
+++ configure.in
@@ -24,7 +24,14 @@
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(gethostname socket strdup uname)
AC_CHECK_FUNCS(if_nametoindex if_indextoname)
-AC_CHECK_LIB(sysfs, sysfs_open_directory)
+
+dnl Check for libsysfs
+libsysfs_found=0
+AC_CHECK_HEADER(sysfs/libsysfs.h,
+ [AC_CHECK_LIB(sysfs, sysfs_open_directory, libsysfs_found=1)])
+if test $libsysfs_found != 1; then
+ AC_MSG_WARN([Compiling without libsysfs support!])
+fi
AC_SUBST(KERNEL_HEADERS)