nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit fa454abb1cadc82395034dcb7443722515f1d895
parent f2adefb158aa1822e5d60e0435f687a58c3511f1
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun,  8 Jul 2018 14:08:43 +0200

build: verify that 'msgfmt' is available when building from git

Fail during the configure phase when it is not,
instead of failing cryptically during 'make'.

This addresses https://savannah.gnu.org/bugs/?54265.
Reported-by: Peter Passchier <peter@passchier.net>

Diffstat:
Mconfigure.ac | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -762,6 +762,14 @@ else fi AM_CONDITIONAL(BUILDING_FROM_GIT, test x$from_git = xyes) +if test x$from_git = xyes; then + if test "$ac_cv_path_MSGFMT" = ":"; then + AC_MSG_ERROR([ +*** The msgfmt program is missing. *** +*** The gettext package needs to be installed when building from git. ***]) + fi +fi + AC_CONFIG_FILES([ Makefile doc/Makefile