1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-03 11:01:30 +00:00

Add initial support for ARM CPUs

Close #200
This commit is contained in:
The Tumultuous Unicorn Of Darkness 2024-06-28 20:41:00 +02:00
commit c5885699f0
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
37 changed files with 2709 additions and 279 deletions

View file

@ -67,6 +67,8 @@ AC_CANONICAL_HOST
build_windows=no
build_netbsd=no
build_dragonflybsd=no
build_freebsd=no
build_linux=no
case "${host_os}" in
cygwin*|mingw*)
@ -78,6 +80,12 @@ case "${host_os}" in
dragonfly*)
build_dragonflybsd=yes
;;
freebsd*)
build_freebsd=yes
;;
linux*)
build_linux=yes
;;
esac
if test "$build_windows" = "no"; then
@ -88,6 +96,14 @@ if test "$build_netbsd" = "yes" || test "$build_dragonflybsd" = "yes"; then
AM_LDFLAGS="$AM_LDFLAGS -pthread"
fi
if test "$build_linux" = "yes"; then
AC_CHECK_FUNCS([getauxval])
fi
if test "$build_freebsd" = "yes"; then
AC_CHECK_FUNCS([elf_aux_info])
fi
AM_CONDITIONAL([WINDOWS], [test "$build_windows" = "yes"])
AC_SUBST(AM_CPPFLAGS)