Will push to S2_6 too
Libraries added to the list of ones to link against gets discarded. This means that now that detecting the library works, the build fails as it tries to use functions from the library without linking against it.
- Keep "-lcharset" in LIBS when needed
From the looks of the headers and libraries I think locale_charset() test should return success on haiku, but it does not. This is probably as simple as the test not linking against the correct library.
The result is same for both autotools and meson based builds. This ticket is about autotools build.