From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D53B61F466 for ; Sat, 18 Jan 2020 17:58:45 +0000 (UTC) Received: from localhost ([::1]:43324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1issMu-00052v-H1 for normalperson@yhbt.net; Sat, 18 Jan 2020 12:58:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42146) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1issMq-00052k-Bg for bug-gnulib@gnu.org; Sat, 18 Jan 2020 12:58:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1issMm-00039N-9q for bug-gnulib@gnu.org; Sat, 18 Jan 2020 12:58:40 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::11]:33869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1issMl-000352-K6 for bug-gnulib@gnu.org; Sat, 18 Jan 2020 12:58:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1579370312; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=zBBB7B1Z7wwh6o+CkmaXbG8ohRnzcX28BQaS3obCzK4=; b=lNyeKAFAXEnrYnknOzS7P7DEHuL7IdFjDLAy3bJATtpUguTnBjpx1YYkrG0uVdU70K z+605oYW8E8A3IDcquM1IBkixgGCd94qo3GSwZcpB1I3HSShUC8tWkhBdJ2t5pCjRjq7 O74XGOAmY7OHeigC8J12Exp3u44Y+5vLmNAbq1Eukq32PdiRQl4B7JW3n+3St4rweb41 EM8RJoCgWr9yCK3kezWa+mCNF6Qk4IPgErrTmGcjSLjm1N0bbJGgP6W/3QT4HqZ0WvdY 8zALN4ekh3g/mNl43/lLBVjnn+fE5lNGX8AmHAY7P2SQHmXkQ8bIUpjNLfmXaldx7zb+ VjLQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.1.4 DYNA|AUTH) with ESMTPSA id z0b9d9w0IHwVieU (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sat, 18 Jan 2020 18:58:31 +0100 (CET) From: Bruno Haible To: Paul Eggert Subject: Re: Messed up gl_COMPILER_PREPARE_CHECK_DECL Date: Sat, 18 Jan 2020 18:58:30 +0100 Message-ID: <2789532.XJgy2bpXmP@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-171-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <7fb89678-cebb-cc01-4cb2-03ac6f17f719@cs.ucla.edu> References: <20200110151102.GA6823@aun.utmark.mea> <1741057.sbhhibc9n3@omega> <7fb89678-cebb-cc01-4cb2-03ac6f17f719@cs.ucla.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::11 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Paul Eggert wrote: > PS. I vaguely recall a long discussion many years ago when we added this > AC_REQUIRE-ish stuff to Autoconf. Although we did fix some major > glitches, we replacing them with other glitches that live on to this > day. For example, there's now this note in the Autoconf manual: > > Many Autoconf macros use a compiler, and thus call > `AC_REQUIRE([AC_PROG_CC])' to ensure that the compiler has been > determined before the body of the outermost `AC_DEFUN' macro. > Although `AC_PROG_CC' is safe to directly expand multiple times, it > performs certain checks (such as the proper value of `EXEEXT') only > on the first invocation. and likewise for AC_EGREP_CPP, whose definition starts like this: AC_DEFUN([AC_EGREP_CPP], [AC_LANG_PREPROC_REQUIRE()dnl AC_REQUIRE([AC_PROG_EGREP])dnl ... where AC_LANG_PREPROC_REQUIRE() in this case requires AC_LANG_COMPILER(C). So, you could also run into trouble if the first AC_EGREP_CPP invocation in a configure.ac is within case "$host_os" in alpha*) AC_EGREP_CPP(...) ;; esac Bruno