Define Config.host_cpu.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 27 Feb 2016 12:22:12 +0000 (12:22 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 27 Feb 2016 12:22:12 +0000 (12:22 +0000)
config.ml.in
configure.ac

index 14fd2ba..b7ce380 100644 (file)
@@ -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@"
index aa2d694..4d16153 100644 (file)
@@ -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