From c5b459c5b2fca96a6b227f192261d79494f331c0 Mon Sep 17 00:00:00 2001 From: Veselin Georgiev Date: Wed, 25 Jun 2014 13:48:32 +0300 Subject: [PATCH] Fix issue #2: There is no configure binary and get some statements while building it. There's no reason to keep a configure binary in source control. I added the necessary steps to create it in the README. --- Makefile.am | 1 + README | 20 ++++++++++++++++++++ configure.ac | 1 + 3 files changed, 22 insertions(+) diff --git a/Makefile.am b/Makefile.am index 03779e6..c0bb97d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,4 @@ +ACLOCAL_AMFLAGS = -I m4 SUBDIRS = libcpuid cpuid_tool tests pkgconfigdir = $(libdir)/pkgconfig diff --git a/README b/README index dad2e9e..face3d6 100644 --- a/README +++ b/README @@ -4,3 +4,23 @@ libcpuid libcpuid provides CPU identification for the x86 (and x86_64). For details about the programming API, please see the docs on the project's site (http://libcpuid.sourceforge.net/) + + Configuring after checkout + -------------------------- + + Under linux, where you download the sources, there's no + configure script to run. This is because it isn't a good practice to keep + such scripts in a source control system. To create it, you need to run the + following commands once, after you checkout the libcpuid sources + from github: + + 1. run "libtoolize" + 2. run "autoreconf --install" + + You need to have autoconf, automake and libtool installed. + + After that you can run "./configure" and "make" - this will build + the library. + + "make dist" will create a tarball (with "configure" inside) with the + sources. diff --git a/configure.ac b/configure.ac index 86e8abe..379e1c8 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,7 @@ AC_INIT([libcpuid CPU Identification library], [0.2.0], [libcpuid-devel@lists.sourceforge.net], [libcpuid]) AC_CONFIG_SRCDIR([libcpuid/libcpuid.h]) AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([-Wall dist-bzip2 dist-zip foreign]) dnl Versioning scheme shamelessly copied from libexif.