[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bootstrapping glibc vs. dependency on system headers
From: |
Thomas Schwinge |
Subject: |
Re: Bootstrapping glibc vs. dependency on system headers |
Date: |
Fri, 25 Jan 2013 12:46:53 +0100 |
User-agent: |
Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) |
Hi!
On Fri, 18 Jan 2013 11:37:16 +0100, I wrote:
> On Thu, 17 Jan 2013 18:09:33 +0100, I wrote:
> > Also known as: »I found another one«.
>
> (That's the last one I'm currently seeing.) Again depending on
> <gnu/stubs.h> usability, we either get:
>
> checking for [GCC] option to accept ISO C89... none needed
>
> Or:
>
> checking for [GCC] option to accept ISO C89... unsupported
>
> As setting »ac_cv_prog_cc_c89=no« (which we never check for) is all what
> this test does, and we're C89 always by our compiler requirements, it is
> safe to simply elide it. Tested on x86_64 GNU/Linux for a ARM GNU/Linux
> host.
As obvious, pushed as commit b5a5da237648077c98c10d359fe3b62b9e18f811:
* configure.in (_AC_PROG_CC_C89): New definition.
* configure: Regenerate.
diff --git configure.in configure.in
index 2c50d09..c578979 100644
--- configure.in
+++ configure.in
@@ -34,6 +34,11 @@ fi
AC_SUBST(CPP)dnl
])# AC_PROG_CPP
+# We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
+# issue discussed in
+# <http://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
+AC_DEFUN([_AC_PROG_CC_C89], [[$1]])
+
dnl This is here so we can set $subdirs directly based on configure fragments.
AC_CONFIG_SUBDIRS()
Grüße,
Thomas
pgpmjjP27wVBH.pgp
Description: PGP signature