aboutsummaryrefslogtreecommitdiff
path: root/gprof/configure.in
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1998-04-22 07:33:42 +0000
committerTom Tromey <tromey@redhat.com>1998-04-22 07:33:42 +0000
commit16a02269fc8d2cf0f25b40d16a70087bb315a653 (patch)
treeec21066ad4af150303e3fe7bbbd4b32399449c96 /gprof/configure.in
parent1a9136e2253b2464a36cb9deabfc5da70900f036 (diff)
downloadfsf-binutils-gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.zip
fsf-binutils-gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.tar.gz
fsf-binutils-gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.tar.bz2
* gprof.h: Added includes and defines for gettext.
* configure.in (ALL_LINGUAS): New macro. Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, HAVE_LC_MESSAGES): Define. * gprof.c (main): Call setlocale, bindtextdomain, textdomain. * Makefile.am (SUBDIRS): New macro. (INCLUDES): Look in intl dirs for headers. Define LOCALEDIR. (gprof_DEPENDENCIES): Added INTLDEPS. (gprof_LDADD): Added INTLLLIBS. (POTFILES): New macro. (po/POTFILES.in): New target. * Many files: Wrap user-visible strings with gettext invocation.
Diffstat (limited to 'gprof/configure.in')
-rw-r--r--gprof/configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/gprof/configure.in b/gprof/configure.in
index 46c01eb..f9905f1 100644
--- a/gprof/configure.in
+++ b/gprof/configure.in
@@ -19,6 +19,9 @@ AM_PROG_INSTALL
AC_ISC_POSIX
+ALL_LINGUAS=
+CY_GNU_GETTEXT
+
dnl We need to set BSD44_FORMAT on a host which uses the additional
dnl header fields. This is an attempt to do that. I can't think of a
dnl good feature test for this.
@@ -32,4 +35,5 @@ AM_MAINTAINER_MODE
AM_CYGWIN32
AM_EXEEXT
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
+[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])