From aa577bdb4db7236469089b63d6f30c79da671081 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 28 Dec 2011 15:28:04 +0100 Subject: [PATCH] Add configure option --without-gettext --- ChangeLog | 4 ++++ ac/translations.m4 | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4bd2639d9..28a461367 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-12-28 Moritz Bunkus + * build system: Added an option "--without-gettext" that allows + for building without support for translations even if gettext + itself is installed. + * build system: Added an option "--without-curl" that allows for building without CURL support even if CURL itself is installed. diff --git a/ac/translations.m4 b/ac/translations.m4 index 73e8790ab..92124c27b 100644 --- a/ac/translations.m4 +++ b/ac/translations.m4 @@ -1,7 +1,11 @@ dnl dnl Which translations should be installed? dnl -AC_CHECK_FUNCS(gettext, gettext_found=yes, gettext_found=no) +AC_ARG_WITH([gettext], AC_HELP_STRING([--without-gettext], [do not build with gettext support]), + [ with_gettext=${withval} ], [ with_gettext=yes ]) +if test "x$with_gettext" != "xno"; then + AC_CHECK_FUNCS(gettext, gettext_found=yes, gettext_found=no) +fi if test x"$gettext_found" != xyes ; then AC_CHECK_LIB(intl, gettext, [ LIBINTL_LIBS="-lintl"; @@ -9,6 +13,7 @@ if test x"$gettext_found" != xyes ; then [ gettext_found=no ], [ -liconv ]) fi + if test x"$gettext_found" = xyes ; then AC_CHECK_HEADERS(libintl.h, libintl_h_found=yes, libintl_h_found=no) if test x"$libintl_h_found" = xyes ; then