From: Guillem Jover Date: Mon, 21 Jan 2008 03:34:29 +0000 (+0200) Subject: Use external gettext intl library X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ab983d2c0ef13ed242480d0f92a98f42b749a16;p=dpkg Use external gettext intl library When porting to other systems without gettext functionality, other applications might need it as well, so either use --with-libintl-prefix for a global library, or disable NLS support. --- diff --git a/.gitignore b/.gitignore index 86afc805..3134a007 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ build-tree config -intl ABOUT-NLS INSTALL Makefile diff --git a/ChangeLog b/ChangeLog index bcfeabfe..970889a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2008-01-21 Guillem Jover + + * configure.ac (AM_GNU_GETTEXT): Add external. + (AC_CHECK_FUNCS): Add strtoul. + (AC_CONFIG_FILES): Remove 'intl/Makefile'. + * .gitignore: Remove intl. + * Makefile.am (SUBDIRS): Likewise. + * dpkg-deb/Makefile.am (INCLUDES): Remove '-I$(top_srcdir)/intl'. + * dpkg-split/Makefile.am (INCLUDES): Likewise. + * dselect/Makefile.am (INCLUDES): Likewise. + * getopt/Makefile.am (INCLUDES): Likewise. + * lib/Makefile.am (INCLUDES): Likewise. + * src/Makefile.am (INCLUDES): Likewise. + * utils/Makefile.am (INCLUDES): Likewise. + 2008-01-21 Guillem Jover * configure.ac (AC_CHECK_FUNCS): Add getdtablesize. diff --git a/Makefile.am b/Makefile.am index 6efc557b..38bb1e62 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,7 +5,6 @@ if WITH_DSELECT endif SUBDIRS = \ - intl \ getopt \ lib \ src \ diff --git a/configure.ac b/configure.ac index 40774c94..1386376f 100644 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,7 @@ DPKG_ARCHITECTURE AM_INIT_AUTOMAKE([1.8 gnu]) AM_GNU_GETTEXT_VERSION([0.16.1]) -AM_GNU_GETTEXT() +AM_GNU_GETTEXT([external]) # Allow compilation without dselect AC_ARG_WITH(dselect, @@ -92,7 +92,8 @@ DPKG_C_ATTRIBUTE # Checks for library functions. DPKG_FUNC_VA_COPY -AC_CHECK_FUNCS([vsnprintf snprintf strerror strsignal scandir alphasort]) +AC_CHECK_FUNCS([vsnprintf snprintf strtoul strerror strsignal alphasort + scandir]) AC_CHECK_FUNCS([unsetenv lchown setsid bcopy isascii memcpy getdtablesize]) SJR_COMPILER_WARNINGS @@ -106,7 +107,6 @@ AC_CONFIG_FILES([ Makefile dselect/methods/Makefile dselect/po/Makefile.in getopt/Makefile - intl/Makefile lib/Makefile man/Makefile origins/Makefile diff --git a/dpkg-deb/Makefile.am b/dpkg-deb/Makefile.am index bde41483..6574dc87 100644 --- a/dpkg-deb/Makefile.am +++ b/dpkg-deb/Makefile.am @@ -2,7 +2,8 @@ localedir = $(datadir)/locale INCLUDES = \ - -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl -I$(top_srcdir)/lib + -DLOCALEDIR=\"$(localedir)\" \ + -I$(top_srcdir)/lib bin_PROGRAMS = dpkg-deb diff --git a/dpkg-split/Makefile.am b/dpkg-split/Makefile.am index 09a700ca..ff6c34b4 100644 --- a/dpkg-split/Makefile.am +++ b/dpkg-split/Makefile.am @@ -2,7 +2,7 @@ localedir = $(datadir)/locale INCLUDES = \ - -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl \ + -DLOCALEDIR=\"$(localedir)\" \ -DADMINDIR=\"$(admindir)\" -DMKSPLITSCRIPT=\"$(pkglibdir)/mksplit\" \ -I$(top_srcdir)/lib diff --git a/dselect/Makefile.am b/dselect/Makefile.am index 35ee7366..241124cb 100644 --- a/dselect/Makefile.am +++ b/dselect/Makefile.am @@ -4,7 +4,7 @@ SUBDIRS = methods po localedir = $(datadir)/locale INCLUDES = \ - -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl \ + -DLOCALEDIR=\"$(localedir)\" \ -DADMINDIR=\"$(admindir)\" -DLIBDIR=\"$(pkglibdir)\" \ -I$(top_srcdir)/lib diff --git a/getopt/Makefile.am b/getopt/Makefile.am index f169faf4..9201a267 100644 --- a/getopt/Makefile.am +++ b/getopt/Makefile.am @@ -2,7 +2,7 @@ localedir = $(datadir)/locale INCLUDES = \ - -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl \ + -DLOCALEDIR=\"$(localedir)\" \ -I$(top_srcdir)/lib diff --git a/lib/Makefile.am b/lib/Makefile.am index 7fd423b4..184b9c9c 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -3,7 +3,7 @@ localedir = $(datadir)/locale pkgconfdir = $(sysconfdir)/@PACKAGE@ INCLUDES = \ - -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl \ + -DLOCALEDIR=\"$(localedir)\" \ -DCONFIGDIR=\"$(pkgconfdir)\" \ -DCOPYINGFILE=\"$(datadir)/common-licenses/GPL-2\" diff --git a/src/Makefile.am b/src/Makefile.am index cbc06282..78adf862 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,7 +2,7 @@ localedir = $(datadir)/locale INCLUDES = \ - -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl \ + -DLOCALEDIR=\"$(localedir)\" \ -DADMINDIR=\"$(admindir)\" \ -I$(top_srcdir)/lib diff --git a/utils/Makefile.am b/utils/Makefile.am index e78f3dda..ef456357 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -2,7 +2,7 @@ localedir = $(datadir)/locale INCLUDES = \ - -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl \ + -DLOCALEDIR=\"$(localedir)\" \ -I$(top_srcdir)/getopt \ -I$(top_srcdir)/lib