mirror of
				https://git.proxmox.com/git/mirror_zfs
				synced 2025-11-04 05:22:48 +00:00 
			
		
		
		
	Make FIND_SYSTEM_LIBRARY respect a configured sysroot, otherwise it might find headers from the build machine and assume the library is available on the host/target. Tighten up error checking: if pkg-config or the user specified _CFLAGS or _LIBS but we can't find the header/library, issue a fatal error. Fix the -L flag to /usr/local/lib instead of just /usr/local. Clean out the _CFLAGS and _LIBS if we located something that we later find doesn't work. Rename FIND_SYSTEM_LIBRARY into the ZFS_AC_ scope. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10538
		
			
				
	
	
		
			18 lines
		
	
	
		
			457 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			457 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
dnl #
 | 
						|
dnl # Check for libudev - needed for vdev auto-online and auto-replace
 | 
						|
dnl #
 | 
						|
AC_DEFUN([ZFS_AC_CONFIG_USER_LIBUDEV], [
 | 
						|
	ZFS_AC_FIND_SYSTEM_LIBRARY(LIBUDEV, [libudev], [libudev.h], [], [udev], [], [user_libudev=yes], [user_libudev=no])
 | 
						|
 | 
						|
	AS_IF([test "x$user_libudev" = xyes], [
 | 
						|
	    AX_SAVE_FLAGS
 | 
						|
 | 
						|
	    CFLAGS="$CFLAGS $LIBUDEV_CFLAGS"
 | 
						|
	    LIBS="$LIBUDEV_LIBS $LIBS"
 | 
						|
 | 
						|
	    AC_CHECK_FUNCS([udev_device_get_is_initialized])
 | 
						|
 | 
						|
	    AX_RESTORE_FLAGS
 | 
						|
	])
 | 
						|
])
 |