Make sure autoconf tells the Makefile whether gettext is installed

darcs-hash:20060720130148-ac50b-9aef2d0e708a1253187a215d0407764510ba0ff0.gz
This commit is contained in:
axel 2006-07-20 23:01:48 +10:00
parent a0c40fcf8d
commit 1c9a173b3d
2 changed files with 5 additions and 2 deletions

View file

@ -186,7 +186,7 @@ TRANSLATIONS_SRC := $(wildcard po/*.po)
TRANSLATIONS := $(TRANSLATIONS_SRC:.po=.gmo) TRANSLATIONS := $(TRANSLATIONS_SRC:.po=.gmo)
#Make everything needed for installing fish #Make everything needed for installing fish
all: $(PROGRAMS) user_doc etc/fish share/fish all: $(PROGRAMS) user_doc etc/fish share/fish $(TRANSLATIONS)
@echo fish has now been built. @echo fish has now been built.
@echo Use \'make install\' to install fish. @echo Use \'make install\' to install fish.
.PHONY: all .PHONY: all

View file

@ -257,10 +257,13 @@ AC_CHECK_HEADER([regex.h],
[AC_MSG_ERROR([Could not find the header regex.h, needed to build fish])]) [AC_MSG_ERROR([Could not find the header regex.h, needed to build fish])])
# Check for presense of various functions # Check for presense of various functions
AC_CHECK_FUNCS( wcsdup wcsndup wcslen wcscasecmp wcsncasecmp gettext fwprintf ) AC_CHECK_FUNCS( gettext wcsdup wcsndup wcslen wcscasecmp wcsncasecmp fwprintf )
AC_CHECK_FUNCS( futimes wcwidth wcswidth getopt_long wcstok fputwc fgetwc ) AC_CHECK_FUNCS( futimes wcwidth wcswidth getopt_long wcstok fputwc fgetwc )
AC_CHECK_FUNCS( wcstol dcgettext wcslcat wcslcpy lrand48_r) AC_CHECK_FUNCS( wcstol dcgettext wcslcat wcslcpy lrand48_r)
# The Makefile also needs to know if we have gettext, so it knows if the translations should be installed.
AC_CHECK_FUNC( gettext, AC_SUBST( HAVE_GETTEXT, 1 ), AC_SUBST( HAVE_GETTEXT, 0 ) )
# Here follows a list of small programs used to test for various # Here follows a list of small programs used to test for various
# features that Autoconf doesn't tell us about # features that Autoconf doesn't tell us about