mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Robert Schwebel <r.schwebel@pengutronix.de>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 3/3] configure.ac: replace obsolete AC_HEADER_STDC
Date: Fri, 28 Jul 2023 09:13:42 +0200	[thread overview]
Message-ID: <ZMNqpiwYgg8FeKv0@pengutronix.de> (raw)
In-Reply-To: <20230710093353.113528-3-r.schwebel@pengutronix.de>

On Mon, Jul 10, 2023 at 11:33:53AM +0200, Robert Schwebel wrote:
> The AC_HEADER_STDC macro is obsolete (found by autoupdate), replace it by
> AC_CHECK_INCLUDES_DEFAULT and AC_PROG_EGREP which do the same.

On Debian Bullseye this fails with:

configure.ac:41: error: possibly undefined macro: AC_CHECK_INCLUDES_DEFAULT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

So I'll stick with the old version for now.

Michael

> Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
> ---
>  configure.ac | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 2499b06fc..7a013a51a 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -38,7 +38,8 @@ AS_IF([test -z "$PKG_CONFIG"], AC_MSG_ERROR([pkg-config not found.]))
>  dnl
>  dnl Check header files, mostly for lxdialog & kconfig
>  dnl
> -AC_HEADER_STDC
> +AC_CHECK_INCLUDES_DEFAULT
> +AC_PROG_EGREP
>  
>  AC_CHECK_HEADERS([fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h stddef.h stdlib.h string.h sys/time.h unistd.h])
>  
> -- 
> 2.30.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2023-07-28  7:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-10  9:33 [ptxdist] [PATCH 1/3] configure.ac: bump required autoconf version from 2.59 to 2.69 Robert Schwebel
2023-07-10  9:33 ` [ptxdist] [PATCH 2/3] configure.ac: adapt quoting to autoupdate's suggestion Robert Schwebel
2023-08-01  7:48   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-07-10  9:33 ` [ptxdist] [PATCH 3/3] configure.ac: replace obsolete AC_HEADER_STDC Robert Schwebel
2023-07-28  7:13   ` Michael Olbrich [this message]
2023-08-01  7:48 ` [ptxdist] [APPLIED] configure.ac: bump required autoconf version from 2.59 to 2.69 Michael Olbrich

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=ZMNqpiwYgg8FeKv0@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=r.schwebel@pengutronix.de \
    /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