mirror of
https://gitee.com/openharmony/third_party_alsa-utils
synced 2024-11-27 17:11:52 +00:00
build: Do not try to detect cross-compiler
cross compilers are passed via path may not be a gcc based cross compiler in such cases this check fails and try's to force gcc based cross compiler detection, This code is a convenience that limits the build system. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6fb0f5b6d5
commit
c0130c8ec2
14
configure.ac
14
configure.ac
@ -12,20 +12,6 @@ AM_GNU_GETTEXT_VERSION([0.15])
|
||||
|
||||
dnl Checks for programs.
|
||||
|
||||
dnl try to gues cross-compiler if not set
|
||||
if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
|
||||
then
|
||||
AC_MSG_CHECKING(for cross-compiler)
|
||||
|
||||
which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
|
||||
which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
|
||||
&& CC=${target_cpu}-${target-os}-gcc
|
||||
which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
|
||||
&& CC=${target_cpu}-${target_vendor}-${target_os}-gcc
|
||||
|
||||
AC_MSG_RESULT($CC)
|
||||
fi
|
||||
|
||||
AC_PROG_CC
|
||||
dnl AC_PROG_CXX
|
||||
AC_PROG_INSTALL
|
||||
|
Loading…
Reference in New Issue
Block a user