···11---- a/m4/ax_boost_base.m4
22-+++ b/m4/ax_boost_base.m4
33-@@ -33,7 +33,7 @@
44- # and this notice are preserved. This file is offered as-is, without any
55- # warranty.
66-77--#serial 20
88-+#serial 22
99-1010- AC_DEFUN([AX_BOOST_BASE],
1111- [
1212-@@ -91,9 +91,17 @@ if test "x$want_boost" = "xyes"; then
1313- dnl are found, e.g. when only header-only libraries are installed!
1414- libsubdirs="lib"
1515- ax_arch=`uname -m`
1616-- if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
1717-+ case $ax_arch in
1818-+ x86_64|ppc64|s390x|sparc64|aarch64)
1919- libsubdirs="lib64 lib lib64"
2020-- fi
2121-+ ;;
2222-+ esac
2323-+
2424-+ dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give
2525-+ dnl them priority over the other paths since, if libs are found there, they
2626-+ dnl are almost assuredly the ones desired.
2727-+ AC_REQUIRE([AC_CANONICAL_HOST])
2828-+ libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
2929-3030- dnl first we check the system location for boost libraries
3131- dnl this location ist chosen if boost libraries are installed with the --layout=system option