Skip to content

Conversation

@Explorer09
Copy link
Contributor

Utilize the fact that AC_CHECK_HEADERS allows a break statement in the middle of the loop. No need to nest multiple AC_CHECK_HEADERS calls just to make a list of fallback headers.

(I'd give credit to the Autotools Mythbuster book, which first proposed this idea.)

Utilize the fact that AC_CHECK_HEADERS allows a break statement in the
middle of the loop. No need to nest multiple AC_CHECK_HEADERS calls
just to make a list of fallback headers.

(I'd give credit to the Autotools Mythbuster book, which first proposed
this idea.)

Signed-off-by: Kang-Che Sung <[email protected]>
@BenBE BenBE added the build system 🔧 Affects the build system rather then the user experience label Oct 26, 2025
@BenBE
Copy link
Member

BenBE commented Oct 26, 2025

Do you have a reference to the Autotools Mythbuster book for reference of this technique?

@Explorer09
Copy link
Contributor Author

Do you have a reference to the Autotools Mythbuster book for reference of this technique?

https://autotools.info/autoconf/finding.html

4.2.1 Checking for one out of Multiple Headers

@BenBE BenBE added this to the 3.5.0 milestone Oct 26, 2025
@BenBE BenBE merged commit 1afb26b into htop-dev:main Oct 26, 2025
19 checks passed
@Explorer09 Explorer09 deleted the configure-curses-header branch October 26, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build system 🔧 Affects the build system rather then the user experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants