mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Don't use AC_CANONICAL_SYSTEM, only use AC_CANONICAL_HOST.
Since alsa-lib is not a tool generating architecture code, the target definition does not matter, instead use $host and $build properly. See http://blog.flameeyes.eu/2008/10/11 for a detailed explanation of the problem and the fix. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
This commit is contained in:
		
							parent
							
								
									73ddcda842
								
							
						
					
					
						commit
						a42def6e9c
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		
							
								
								
									
										14
									
								
								configure.in
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								configure.in
									
										
									
									
									
								
							| 
						 | 
					@ -8,7 +8,7 @@ dnl change API = c+1:0:a
 | 
				
			||||||
dnl add API = c+1:0:a+1
 | 
					dnl add API = c+1:0:a+1
 | 
				
			||||||
dnl remove API = c+1:0:0
 | 
					dnl remove API = c+1:0:0
 | 
				
			||||||
dnl *************************************************
 | 
					dnl *************************************************
 | 
				
			||||||
AC_CANONICAL_SYSTEM
 | 
					AC_CANONICAL_HOST
 | 
				
			||||||
AM_INIT_AUTOMAKE(alsa-lib, 1.0.18)
 | 
					AM_INIT_AUTOMAKE(alsa-lib, 1.0.18)
 | 
				
			||||||
eval LIBTOOL_VERSION_INFO="2:0:0"
 | 
					eval LIBTOOL_VERSION_INFO="2:0:0"
 | 
				
			||||||
dnl *************************************************
 | 
					dnl *************************************************
 | 
				
			||||||
| 
						 | 
					@ -19,15 +19,15 @@ AC_PREFIX_DEFAULT(/usr)
 | 
				
			||||||
dnl Checks for programs.
 | 
					dnl Checks for programs.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dnl try to gues cross-compiler if not set
 | 
					dnl try to gues cross-compiler if not set
 | 
				
			||||||
if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
 | 
					if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`";
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
  AC_MSG_CHECKING(for cross-compiler)
 | 
					  AC_MSG_CHECKING(for cross-compiler)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
 | 
					  which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
 | 
				
			||||||
  which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
 | 
					  which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \
 | 
				
			||||||
  && CC=${target_cpu}-${target-os}-gcc
 | 
					  && CC=${host_cpu}-${host-os}-gcc
 | 
				
			||||||
  which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
 | 
					  which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \
 | 
				
			||||||
  && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
 | 
					  && CC=${host_cpu}-${host_vendor}-${host_os}-gcc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  AC_MSG_RESULT($CC)
 | 
					  AC_MSG_RESULT($CC)
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
| 
						 | 
					@ -261,7 +261,7 @@ AC_SUBST(ALSA_DEPLIBS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dnl Check for architecture
 | 
					dnl Check for architecture
 | 
				
			||||||
AC_MSG_CHECKING(for architecture)
 | 
					AC_MSG_CHECKING(for architecture)
 | 
				
			||||||
case "$target" in
 | 
					case "$host" in
 | 
				
			||||||
i?86*)
 | 
					i?86*)
 | 
				
			||||||
  AC_MSG_RESULT(x86)
 | 
					  AC_MSG_RESULT(x86)
 | 
				
			||||||
  ;;
 | 
					  ;;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue