[gnutls-devel] GnuTLS | Fails to build properly with autoconf 2.72.90 (2.73 pre-release) (#1806)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Mar 4 22:33:16 CET 2026



Ross Burton created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1806



If I build gnutls with autoconf 2.72.90 (the 2.73 pre-release) then the compiler is mis-detected:

```
WARNING: Compiler does not support C99. It may not be able to compile the project.
```

This is GCC 15.2, it most certainly does support C99.  However, the configure code in `gnutls/configure.ac.` responsible for this check is quite broken:

```
AS_CASE([$ac_prog_cc_stdc],
  [c11 | c99], [AC_DEFINE([C99_MACROS], 1, [C99 macros are supported])],
  [AC_MSG_WARN([[Compiler does not support C99. It may not be able to compile the project.]])]
)
```

This is because `ac_prog_cc_stdc` is now `c23`, due to this change in autoconf:

```
*** AC_PROG_CC now prefers C23 if available.
```

This is trivially fixed by adding `c23` to the list of available standards, but the test is very fragile.  Does gnutls even need to cater for non-C99 compilers?  That's a pretty niche market these days, surely.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1806
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/sent_notifications/3-9xm1yqidhcg1kvwkmmrcq7il2/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20260304/1256b66f/attachment-0001.html>


More information about the Gnutls-devel mailing list