Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure.ac: upgrade ancient snprintf macro to modern autoconf-archive edition #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eli-schwartz
Copy link

@eli-schwartz eli-schwartz commented Nov 8, 2024

ac_func_snprintf was very old, and produced illogical results with modern compilers. Specifically, the check always failed and claimed:

checking for snprintf... yes
checking for vsnprintf... yes
checking for working snprintf... no
checking for working vsnprintf... no
configure: WARNING: Will use fallback (v)snprintf() implementation.

autoconf-archive has migrated to a dedicated AX_ namespace and released a couple decades worth of improvements, including fixing this particular bug in 2022.

Bug: https://bugs.gentoo.org/898602

Instead of hardcoding calls to builtin(include) of all things!

autoreconf will detect existing macros in the specified macros directory
automatically and ensure that calls to `m4_include()` are synthesized
for you. We use ACLOCAL_AMFLAGS to ensure that updated versions of
macros we use get locally installed.
…ve edition

ac_func_snprintf was very old, and produced illogical results with
modern compilers. Specifically, the check always failed and claimed:

```
checking for snprintf... yes
checking for vsnprintf... yes
checking for working snprintf... no
checking for working vsnprintf... no
configure: WARNING: Will use fallback (v)snprintf() implementation.
```

autoconf-archive has migrated to a dedicated AX_ namespace and released
a couple decades worth of improvements, including fixing this particular
bug in 2022.

Bug: https://bugs.gentoo.org/898602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant