From: Bruno Haible Date: Sat, 14 Feb 2026 21:05:07 +0000 (+0100) Subject: build: Fix "gmake installcheck" failures on AIX. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48533f683789592378f2da1e62714717d8e4b128;p=thirdparty%2Fgettext.git build: Fix "gmake installcheck" failures on AIX. * gettext-runtime/configure.ac (INSTALLED_LIBINTL): On AIX, add '-pthread'. * gettext-tools/configure.ac (INSTALLED_LIBINTL): Likewise. * libtextstyle/configure.ac (INSTALLED_LIBTEXTSTYLE): Add $LIBXML, $LIBTERMINFO, $LIBICONV. On AIX, add '-pthread'. --- diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac index 8d18659a7..ab290776e 100644 --- a/gettext-runtime/configure.ac +++ b/gettext-runtime/configure.ac @@ -242,6 +242,9 @@ dnl Test for features used in install-tests. dnl shlibpath_var and PATH_SEPARATOR are set by LT_INIT. if test $USE_INCLUDED_LIBINTL = yes; then INSTALLED_LIBINTL="-lintl $LIBICONV $INTL_MACOSX_LIBS $INTL_WINDOWS_LIBS" + case "$host_os" in + aix*) INSTALLED_LIBINTL="$INSTALLED_LIBINTL $LIBTHREAD" ;; + esac else INSTALLED_LIBINTL= fi diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index f30f3a6ad..7fe2d28a4 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -791,6 +791,9 @@ dnl Test for features used in install-tests. dnl shlibpath_var and PATH_SEPARATOR are set by LT_INIT. if test $USE_INCLUDED_LIBINTL = yes; then INSTALLED_LIBINTL="-lintl $LIBICONV $INTL_MACOSX_LIBS $INTL_WINDOWS_LIBS" + case "$host_os" in + aix*) INSTALLED_LIBINTL="$INSTALLED_LIBINTL $LIBTHREAD" ;; + esac INSTALLED_LIBGETTEXTPO_DEPS="$INSTALLED_LIBINTL" else INSTALLED_LIBINTL= diff --git a/libtextstyle/configure.ac b/libtextstyle/configure.ac index d073e8d06..19515b6bf 100644 --- a/libtextstyle/configure.ac +++ b/libtextstyle/configure.ac @@ -172,11 +172,14 @@ AC_PATH_PROG([PERL], [perl], [$ac_aux_dir_abs/missing perl]) dnl Test for features used in install-tests. dnl shlibpath_var and PATH_SEPARATOR are set by LT_INIT. -INSTALLED_LIBTEXTSTYLE="-ltextstyle" +INSTALLED_LIBTEXTSTYLE="-ltextstyle $LIBXML $LIBTERMINFO $LIBICONV" dnl Link dependencies: $(GETHOSTNAME_LIB). case "$host_os" in mingw* | windows*) INSTALLED_LIBTEXTSTYLE="$INSTALLED_LIBTEXTSTYLE -lws2_32" ;; esac +case "$host_os" in + aix*) INSTALLED_LIBTEXTSTYLE="$INSTALLED_LIBTEXTSTYLE $LIBTHREAD" ;; +esac AC_SUBST([INSTALLED_LIBTEXTSTYLE]) if test -n "${shlibpath_var}"; then if test "${shlibpath_var}" = PATH; then