From: Jesse Thilo Date: Tue, 23 Mar 1999 00:48:58 +0000 (+0000) Subject: Added i18n support. X-Git-Tag: GNU_1_28~20 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/bbcb769c0ed26bc4a232df6570c6258e08b263e7 Added i18n support. --- diff --git a/Makefile.am b/Makefile.am index 4727ffd4..effed997 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,8 @@ ## Process this file with automake to produce Makefile.in -*-Makefile-*- AUTOMAKE_OPTIONS = 1.4 ansi2knr +SUBDIRS = intl po + bin_PROGRAMS = bison bison_SOURCES = LR0.c allocate.c closure.c conflicts.c derives.c \ @@ -27,4 +29,4 @@ bison.simple: bison.s1 Makefile sed -e "/^#line/ s|bison|$(datadir)/bison|" -e "s/@bison_version@/$(VERSION)/" < $(srcdir)/bison.s1 > $@-tmp mv $@-tmp $@ -DISTCLEANFILES = bison.simple +DISTCLEANFILES = bison.simple intl/libintl.h diff --git a/acconfig.h b/acconfig.h index eed30ed0..fd8cc099 100644 --- a/acconfig.h +++ b/acconfig.h @@ -11,6 +11,21 @@ /* Define if the compiler understands prototypes. */ #undef PROTOTYPES +/* Define to 1 if NLS is requested. */ +#undef ENABLE_NLS + +/* Define as 1 if you have catgets and don't want to use GNU gettext. */ +#undef HAVE_CATGETS + +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +#undef HAVE_GETTEXT + +/* Define if your locale.h file contains LC_MESSAGES. */ +#undef HAVE_LC_MESSAGES + +/* Define to 1 if you have the stpcpy function. */ +#undef HAVE_STPCPY + /* The location of the simple parser (bison.simple). */ #undef XPFILE diff --git a/configure.in b/configure.in index 5711d674..ab54e81e 100644 --- a/configure.in +++ b/configure.in @@ -4,6 +4,8 @@ AM_INIT_AUTOMAKE(bison,1.27) AM_CONFIG_HEADER(config.h:config.hin) AC_PREREQ(2.13) +ALL_LINGUAS="de es fr nl" + dnl Checks for programs. AC_PROG_CC AC_MINIX @@ -30,9 +32,15 @@ dnl Checks for library functions. AC_FUNC_ALLOCA AC_CHECK_FUNCS(mkstemp setlocale) +AM_GNU_GETTEXT + +# This is necessary so that .o files in LIBOBJS are also built via +# the ANSI2KNR-filtering rules. +LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` + PFILE="${datadir}/bison.simple" BISON_DEFINE_FILE(XPFILE, PFILE) PFILE1="${datadir}/bison.hairy" BISON_DEFINE_FILE(XPFILE1, PFILE1) -AC_OUTPUT(Makefile) +AC_OUTPUT(Makefile intl/Makefile po/Makefile.in) diff --git a/po/.cvsignore b/po/.cvsignore index 2c1e7e5e..7a5c3182 100644 --- a/po/.cvsignore +++ b/po/.cvsignore @@ -1,3 +1,4 @@ +*.gmo Makefile Makefile.in POTFILES