do not use AC_CHECK_LIB(intl, main) in configure.ac
Publié : ven. févr. 19, 2021 11:35 pm
if ./configure is given --disable-nls, it should not try to link libintl, otherwise,if one has an incompatiple system libntl (like on Solaris),
it is linked in, but then libgiac.so gets undefined symbols.
It seems that this macro is just not needed, and everything needed here is done by AM_GNU_GETTEXT* macros.
Indeed, the latter create LIBINTL and LTLIBINTL with the libraries needed, see
https://www.gnu.org/software/gettext/ma ... onf-macros
Otherwise the only way seems to patch ./configure and to intentionally break the AC_CHECK_LIB(intl, main)
(e.g. by replacing main() by something silly in the source of the test program.)
Dima
it is linked in, but then libgiac.so gets undefined symbols.
It seems that this macro is just not needed, and everything needed here is done by AM_GNU_GETTEXT* macros.
Indeed, the latter create LIBINTL and LTLIBINTL with the libraries needed, see
https://www.gnu.org/software/gettext/ma ... onf-macros
Otherwise the only way seems to patch ./configure and to intentionally break the AC_CHECK_LIB(intl, main)
(e.g. by replacing main() by something silly in the source of the test program.)
Dima