mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	NetBSD broke strnvis when they added it, check for that.
This commit is contained in:
		
							
								
								
									
										10
									
								
								configure.ac
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								configure.ac
									
									
									
									
									
								
							@@ -311,6 +311,16 @@ AM_CONDITIONAL(NO_STRTONUM, [test "x$found_strtonum" = xno])
 | 
			
		||||
 | 
			
		||||
# Look for strnvis, compat/{vis,unvis}.c used if missing.
 | 
			
		||||
AC_CHECK_FUNC(strnvis, found_strnvis=yes, found_strnvis=no)
 | 
			
		||||
if test "x$found_strnvis" = xyes; then
 | 
			
		||||
	AC_MSG_CHECKING(if strnvis is broken)
 | 
			
		||||
	AC_EGREP_HEADER([strnvis\(char \*, const char \*, size_t, int\)],
 | 
			
		||||
		        vis.h,
 | 
			
		||||
		        AC_MSG_RESULT(no),
 | 
			
		||||
			[found_strnvis=no])
 | 
			
		||||
	if test "x$found_strnvis" = xno; then
 | 
			
		||||
		AC_MSG_RESULT(yes)
 | 
			
		||||
	fi
 | 
			
		||||
fi
 | 
			
		||||
if test "x$found_strnvis" = xyes; then
 | 
			
		||||
	AC_DEFINE(HAVE_VIS)
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user