Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure.ac: detect readline via pkg-config when possible
pkg-config automatically handles static linking situations, where for example readline is linked against ncurses, and therefore -lncurses needs to be passed in addition to -lreadline. This proposal uses pkg-config when available. If pkg-config is not found, or readline is not found via pkg-config, we fallback to the existing AC_CHECK_LIB(). This AC_CHECK_LIB() test is modified to set READLINE_LIBS, like PKG_CHECK_MODULES() does. The Makefile.am consequently uses READLINE_LIBS instead of hardcoding -lreadline. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> [Retrieved (and slightly updated) from: https://git.buildroot.net/buildroot/tree/package/udftools/0002-configure.ac-detect-readline-via-pkg-config-when-pos.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
- Loading branch information