0001-configure.ac-check-for-sys-auxv.h-before-defining-FL.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 14a0713389fbfef59225d027ea466ebb478a8c6b Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Thu, 19 Sep 2019 21:18:04 +0200
  4. Subject: [PATCH] configure.ac: check for sys/auxv.h before defining FLAC__CPU_PPC
  5. Upstream: https://github.com/xiph/flac/pull/142
  6. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  7. ---
  8. configure.ac | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/configure.ac b/configure.ac
  11. index 0228a12..64cb3f2 100644
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -144,7 +144,7 @@ case "$host_cpu" in
  15. powerpc64|powerpc64le)
  16. cpu_ppc64=true
  17. cpu_ppc=true
  18. - AC_DEFINE(FLAC__CPU_PPC)
  19. + AC_CHECK_HEADER(sys/auxv.h, AC_DEFINE(FLAC__CPU_PPC))
  20. AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC])
  21. AC_DEFINE(FLAC__CPU_PPC64)
  22. AH_TEMPLATE(FLAC__CPU_PPC64, [define if building for PowerPC64])
  23. @@ -152,7 +152,7 @@ case "$host_cpu" in
  24. ;;
  25. powerpc|powerpcle)
  26. cpu_ppc=true
  27. - AC_DEFINE(FLAC__CPU_PPC)
  28. + AC_CHECK_HEADER(sys/auxv.h, AC_DEFINE(FLAC__CPU_PPC))
  29. AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC])
  30. asm_optimisation=$asm_opt
  31. ;;
  32. --
  33. 2.23.0