From 0a9c8e59b0fe89c12c05ceca6601f655459d78d2 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 27 Feb 2016 12:22:12 +0000 Subject: [PATCH] Define Config.host_cpu. --- config.ml.in | 2 ++ configure.ac | 3 +++ 2 files changed, 5 insertions(+) diff --git a/config.ml.in b/config.ml.in index 14fd2ba..b7ce380 100644 --- a/config.ml.in +++ b/config.ml.in @@ -19,6 +19,8 @@ let maybe = function "no" -> None | s -> Some s +let host_cpu = "@host_cpu@" + let path_virt_builder = maybe "@VIRT_BUILDER@" let path_virt_viewer = maybe "@VIRT_VIEWER@" let path_wol = maybe "@WOL@" diff --git a/configure.ac b/configure.ac index aa2d694..4d16153 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,9 @@ AC_PROG_INSTALL dnl Define GNU_SOURCE etc. AC_USE_SYSTEM_EXTENSIONS +dnl Define the host CPU architecture (defines host_cpu). +AC_CANONICAL_HOST + dnl Need libtool for creating the shared library. AC_PROG_LIBTOOL -- 1.8.3.1