mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added support for --with-host
This commit is contained in:
parent
aeeb396002
commit
eb267ade29
2 changed files with 55 additions and 1 deletions
19
configure.in
19
configure.in
|
|
@ -7,6 +7,7 @@ dnl change API = c+1:0:a
|
|||
dnl add API = c+1:0:a+1
|
||||
dnl remove API = c+1:0:0
|
||||
dnl *************************************************
|
||||
AC_CANONICAL_SYSTEM
|
||||
AM_INIT_AUTOMAKE(alsa-lib, 0.9.0beta12)
|
||||
eval LIBTOOL_VERSION_INFO="2:0:0"
|
||||
dnl *************************************************
|
||||
|
|
@ -15,6 +16,22 @@ AM_CONDITIONAL(INSTALL_M4, test "x${ACLOCAL}" = "xaclocal")
|
|||
AC_PREFIX_DEFAULT(/usr)
|
||||
|
||||
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
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
|
|
@ -105,7 +122,7 @@ fi
|
|||
|
||||
dnl Check for architecture
|
||||
AC_MSG_CHECKING(for architecture)
|
||||
case "$host_cpu" in
|
||||
case "$target" in
|
||||
i?86*)
|
||||
AC_MSG_RESULT(x86)
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue