aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2021-03-09 11:40:16 -0600
committerGitHub <noreply@github.com>2021-03-09 11:40:16 -0600
commitd5fd0f4745d834f7ac7049a0eb7e212ce9c7ef47 (patch)
treedd14d3f4f3bfa4780f32ce1b57d0d505d024388c /configure.ac
parent4fefe26717fa70828e3f524e43c76e3f7b7a09b0 (diff)
parent1c0e3e453d41b869e4ac7e25dc1c00c349a7c411 (diff)
Merge branch 'master' into cross-jobs
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 685c471c5..24a0b3698 100644
--- a/configure.ac
+++ b/configure.ac
@@ -218,6 +218,14 @@ LDFLAGS="-lz $LDFLAGS"
# Look for libbrotli{enc,dec}.
PKG_CHECK_MODULES([LIBBROTLI], [libbrotlienc libbrotlidec], [CXXFLAGS="$LIBBROTLI_CFLAGS $CXXFLAGS"])
+# Look for libcpuid.
+if test "$machine_name" = "x86_64"; then
+ PKG_CHECK_MODULES([LIBCPUID], [libcpuid], [CXXFLAGS="$LIBCPUID_CFLAGS $CXXFLAGS"])
+ have_libcpuid=1
+ AC_DEFINE([HAVE_LIBCPUID], [1], [Use libcpuid])
+fi
+AC_SUBST(HAVE_LIBCPUID, [$have_libcpuid])
+
# Look for libseccomp, required for Linux sandboxing.
if test "$sys_name" = linux; then