Skip to content

Commit

Permalink
Use the same gettext setup
Browse files Browse the repository at this point in the history
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 together with the gettext
setup.
  • Loading branch information
ndim committed Oct 14, 2021
1 parent e503571 commit 226eaea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,14 @@ dnl ---------------------------------------------------------------------------
GP_GETTEXT_HACK([${PACKAGE}-${LIBGPHOTO2_CURRENT_MIN}],
[The gPhoto Team],
[${MAIL_GPHOTO_TRANSLATION}])
AM_PO_SUBDIRS()
AM_GNU_GETTEXT_VERSION([0.18.3])
AM_PO_SUBDIRS()
AM_GNU_GETTEXT([external])
AM_ICONV()
GP_GETTEXT_FLAGS()

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:
Expand All @@ -234,8 +236,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

AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""

AC_SYS_LARGEFILE

AC_MSG_CHECKING([for asm .symver support])
Expand Down
2 changes: 1 addition & 1 deletion libgphoto2_port/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ GP_GETTEXT_HACK([${PACKAGE}-${LIBGPHOTO2_PORT_CURRENT_MIN}],
[Lutz Mueller and others],
[${MAIL_GPHOTO_TRANSLATION}])
AM_GNU_GETTEXT_VERSION([0.18.3])
AM_GNU_GETTEXT([external])
AM_PO_SUBDIRS()
AM_GNU_GETTEXT([external])
AM_ICONV()
GP_GETTEXT_FLAGS()

Expand Down

0 comments on commit 226eaea

Please sign in to comment.