mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Check architecture and define macro if necessary (for ppc, etc.).
This commit is contained in:
parent
76c8029e2b
commit
9cdd59f5e6
1 changed files with 31 additions and 0 deletions
31
configure.in
31
configure.in
|
|
@ -72,6 +72,37 @@ else
|
|||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
dnl Check for architecture
|
||||
AC_MSG_CHECKING(for architecture)
|
||||
case "$host_cpu" in
|
||||
i?86*)
|
||||
AC_MSG_RESULT(x86)
|
||||
;;
|
||||
alpha*)
|
||||
AC_MSG_RESULT(alpha)
|
||||
;;
|
||||
powerpc*|ppc*)
|
||||
AC_MSG_RESULT(ppc)
|
||||
CPPFLAGS="$CPPFLAGS -D__ppc__"
|
||||
;;
|
||||
ia64*)
|
||||
AC_MSG_RESULT(ia64)
|
||||
CPPFLAGS="$CPPFLAGS -D__ia64__"
|
||||
;;
|
||||
mips*)
|
||||
AC_MSG_RESULT(mips)
|
||||
CPPFLAGS="$CPPFLAGS -D__mips__"
|
||||
;;
|
||||
arm*)
|
||||
AC_MSG_RESULT(arm)
|
||||
CPPFLAGS="$CPPFLAGS -D__arm__"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_RESULT($host_cpu)
|
||||
echo "No atomic operations supported.."
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_OUTPUT(Makefile doc/Makefile include/Makefile src/Makefile \
|
||||
src/control/Makefile src/mixer/Makefile src/pcm/Makefile \
|
||||
src/rawmidi/Makefile src/timer/Makefile \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue