This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GNU C Library master sources branch, master, updated. glibc-2.10-248-g5192104


drepper@sourceware.org wrote:
> +2009-08-02  Ulrich Drepper  <drepper@redhat.com>
> +
> +	* sysdeps/i386/configure.in: Add test for <cpuid.h>.

Hi Uli,

Here's a small simplification:

>From ba417de9f4f8f6da98cd5283d0543dea07b062ff Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Mon, 3 Aug 2009 09:19:13 +0200
Subject: [PATCH] Simplify configure-time check for <cpuid.h>.

---
 ChangeLog                 |    4 ++++
 sysdeps/i386/configure.in |    8 ++------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c011f59..ae1a306 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-03  Jim Meyering  <meyering@redhat.com>
+
+	* sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
+
 2009-08-02  Ulrich Drepper  <drepper@redhat.com>

 	* sysdeps/i386/configure.in: Add test for <cpuid.h>.
diff --git a/sysdeps/i386/configure.in b/sysdeps/i386/configure.in
index 800f928..12dceaf 100644
--- a/sysdeps/i386/configure.in
+++ b/sysdeps/i386/configure.in
@@ -1,12 +1,8 @@
 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 # Local configure fragment for sysdeps/i386.

-AC_CACHE_CHECK([if gcc provides <cpuid.h>], libc_cv_gcc_cpuid, [dnl
-AC_COMPILE_IFELSE([#include <cpuid.h>], libc_cv_gcc_cpuid=yes,
-		  libc_cv_gcc_cpuid=no)])
-if test $libc_cv_gcc_cpuid != yes; then
-  AC_MSG_ERROR([gcc must provide the <cpuid.h> header])
-fi
+AC_HEADER_CHECK([cpuid.h], ,
+  [AC_MSG_ERROR([gcc must provide the <cpuid.h> header])])

 AC_CACHE_CHECK(if -g produces usable source locations for assembler-with-cpp,
 	       libc_cv_cpp_asm_debuginfo, [dnl
--
1.6.4.212.g4719


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]