public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Michael Frysinger <vapier@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] libgloss: fix AC_LANG_SOURCE warnings w/newer autoconf
Date: Wed, 15 Sep 2021 14:09:56 +0000 (GMT)	[thread overview]
Message-ID: <20210915140956.7E3DC385781F@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=63c1f29a1d652aa5ace2bf2531d9e2fe35edf21d

commit 63c1f29a1d652aa5ace2bf2531d9e2fe35edf21d
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Sep 15 00:18:55 2021 -0400

    libgloss: fix AC_LANG_SOURCE warnings w/newer autoconf
    
    When running autoconf-2.69 in here, we get:
    configure.ac:57: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2503: _AC_PREPROC_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2518: AC_PREPROC_IFELSE is expanded from...
    configure.ac:57: the top level
    configure.ac:61: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2503: _AC_PREPROC_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2518: AC_PREPROC_IFELSE is expanded from...
    configure.ac:61: the top level
    
    Add AC_LANG_PROGRAM wrappings to fix these.

Diff:
---
 libgloss/csky/configure.ac | 8 ++++----
 libgloss/m68k/configure.ac | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/libgloss/csky/configure.ac b/libgloss/csky/configure.ac
index e24bd7d13..4b0baaeee 100644
--- a/libgloss/csky/configure.ac
+++ b/libgloss/csky/configure.ac
@@ -54,13 +54,13 @@ dnl an executable or not.
 dnl
 saved_LDFLAGS="$LDFLAGS"
 LDFLAGS="-nostdlib -e main"
-AC_PREPROC_IFELSE([#ifndef __mcoldfire__
+AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mcoldfire__
 		#error we are not coldfire
-		#endif],
+		#endif])],
 	       DO="cf",)
-AC_PREPROC_IFELSE([#ifndef __mfido__
+AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mfido__
 		#error we are not fido
-		#endif],
+		#endif])],
 	       DO="fido",)
 LDFLAGS=$saved_LDFLAGS
 AC_MSG_RESULT($DO)
diff --git a/libgloss/m68k/configure.ac b/libgloss/m68k/configure.ac
index 0ec586091..34ea86a73 100644
--- a/libgloss/m68k/configure.ac
+++ b/libgloss/m68k/configure.ac
@@ -54,13 +54,13 @@ dnl an executable or not.
 dnl
 saved_LDFLAGS="$LDFLAGS"
 LDFLAGS="-nostdlib -e main"
-AC_PREPROC_IFELSE([#ifndef __mcoldfire__
+AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mcoldfire__
 		#error we are not coldfire
-		#endif],
+		#endif])],
 	       DO="cf",)
-AC_PREPROC_IFELSE([#ifndef __mfido__
+AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mfido__
 		#error we are not fido
-		#endif],
+		#endif])],
 	       DO="fido",)
 LDFLAGS=$saved_LDFLAGS
 AC_MSG_RESULT($DO)


                 reply	other threads:[~2021-09-15 14:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210915140956.7E3DC385781F@sourceware.org \
    --to=vapier@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).