From 8c4a57b73443c9095fe80274f16c119a23b204aa Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Fri, 22 Oct 2021 00:10:33 +0200 Subject: Use the same gettext setup This puts AM_PO_SUBDIRS before AM_GNU_GETTEXT to fix the error: `po-directories' is already registered with AC_CONFIG_COMMANDS. and puts the -DLOCALEDIR definition close to the gettext setup. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 352229a74..54501e5fe 100644 --- a/configure.ac +++ b/configure.ac @@ -274,6 +274,9 @@ AM_GNU_GETTEXT([external]) AM_ICONV() GP_GETTEXT_FLAGS() +AC_SUBST([localedir],["\$(datadir)/locale"]) +AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\"" + dnl FIXME: We have to make sure this works first dnl AC_CHECK_FUNC(gettext, gettext_without_libintl=true) # same trick as with libdl: @@ -284,9 +287,6 @@ dnl if test "x$gettext_without_libintl" != xtrue && test "x$USE_NLS" = xyes; the dnl AC_CHECK_LIB([intl], [gettext], [INTLLIBS="$INTLLIBS -lintl"]) dnl fi -AC_SUBST([localedir],["\$(datadir)/locale"]) -AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\"" - AC_SYS_LARGEFILE GP_ASM_SYMVER_SUPPORT -- cgit v1.2.1