aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac17
1 files changed, 10 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 25719d4..b735fa6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -651,13 +651,16 @@ AC_ARG_ENABLE([tests], AC_HELP_STRING([--disable-tests],
build_tests=$enableval, build_tests=yes)
AM_CONDITIONAL([BUILD_TESTS], [test "x$build_tests" != xno])
-if expr $libdir : ".*/$host_alias\$" >/dev/null; then
- # Looks like it's multiarch, then,
- # let the script detect host architecture at runtime
- pkg_config_libdir=auto
-else
- pkg_config_libdir=$libdir/pkgconfig
-fi
+case "$libdir" in
+ */*-*-*)
+ # Looks like it's multiarch, then,
+ # let the script detect host architecture at runtime
+ pkg_config_libdir=auto
+ ;;
+ *)
+ pkg_config_libdir=$libdir/pkgconfig
+ ;;
+esac
AC_SUBST(pkg_config_libdir)
#
# Substitution