mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
				synced 2025-11-03 21:53:18 +00:00 
			
		
		
		
	buildenv: fix build on systems without SIMD support
HAVE_SSE3 and HAVE_SSE4_1 were never defined if CPU architecture doesn't match the (86*|x86_64*|amd64*) condition. Change-Id: I3350b14dbc91e9b388d0b04a0ed22ba27d436313
This commit is contained in:
		
				
					committed by
					
						
						Tom Tsou
					
				
			
			
				
	
			
			
			
						parent
						
							0cd246c27a
						
					
				
				
					commit
					038fd7fd70
				
			@@ -40,6 +40,9 @@ AC_DEFUN([AX_SSE],
 | 
			
		||||
[
 | 
			
		||||
  AC_REQUIRE([AC_CANONICAL_HOST])
 | 
			
		||||
 | 
			
		||||
  AM_CONDITIONAL(HAVE_SSE3, false)
 | 
			
		||||
  AM_CONDITIONAL(HAVE_SSE4_1, false)
 | 
			
		||||
 | 
			
		||||
  case $host_cpu in
 | 
			
		||||
    i[[3456]]86*|x86_64*|amd64*)
 | 
			
		||||
      AX_CHECK_COMPILE_FLAG(-msse3, ax_cv_support_sse3_ext=yes, [])
 | 
			
		||||
@@ -49,7 +52,6 @@ AC_DEFUN([AX_SSE],
 | 
			
		||||
	AM_CONDITIONAL(HAVE_SSE3, true)
 | 
			
		||||
      else
 | 
			
		||||
        AC_MSG_WARN([Your compiler does not support sse3 instructions, can you try another compiler?])
 | 
			
		||||
	AM_CONDITIONAL(HAVE_SSE3, false)
 | 
			
		||||
      fi
 | 
			
		||||
 | 
			
		||||
      AX_CHECK_COMPILE_FLAG(-msse4.1, ax_cv_support_sse41_ext=yes, [])
 | 
			
		||||
@@ -59,7 +61,6 @@ AC_DEFUN([AX_SSE],
 | 
			
		||||
	AM_CONDITIONAL(HAVE_SSE4_1, true)
 | 
			
		||||
      else
 | 
			
		||||
        AC_MSG_WARN([Your compiler does not support sse4.1 instructions, can you try another compiler?])
 | 
			
		||||
	AM_CONDITIONAL(HAVE_SSE4_1, false)
 | 
			
		||||
      fi
 | 
			
		||||
  ;;
 | 
			
		||||
  esac
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user