From 80c5c1fb80e54cd2b3ef4ad2ad3c412c56013d9e Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Wed, 12 Sep 2007 15:56:04 +0000 Subject: [PATCH] Make sure we have a valid gettext usermode when building (#476189) Test that HAVE_GETTEXT is true and we can find gmsgfmt. Bomb out of configure if either fails, because the build will fail later. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16526 57a11ea4-9604-0410-9ed3-97b8803252fd --- configure.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.in b/configure.in index 5323fbec22..119c34f500 100644 --- a/configure.in +++ b/configure.in @@ -884,6 +884,15 @@ AC_ARG_ENABLE( locale-specific-tax, [ --enable-locale-specific-tax enable localized tax categories (experimental)], AC_DEFINE(LOCALE_SPECIFIC_TAX,1,Enable the experimental locale-specific tax categories) ) +dnl Make sure we have a proper gettext installed +AC_MSG_CHECKING(for a valid gettext/gmsgfmt installation) +if test "$gt_cv_have_gettext" != "yes" || test "x$GMSGFMT" = "x"; then + AC_MSG_RESULT(no) + AC_MSG_ERROR([Cannot find Glib Gettext. Maybe you need to install the gettext package?]) +else + AC_MSG_RESULT(yes - $GMSGFMT) +fi + ### -------------------------------------------------------------------------- ### help files