Переглянути джерело

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.
Guillem Jover 18 роки тому
батько
коміт
2ab983d2c0
11 змінених файлів з 26 додано та 12 видалено
  1. 0 1
      .gitignore
  2. 15 0
      ChangeLog
  3. 0 1
      Makefile.am
  4. 3 3
      configure.ac
  5. 2 1
      dpkg-deb/Makefile.am
  6. 1 1
      dpkg-split/Makefile.am
  7. 1 1
      dselect/Makefile.am
  8. 1 1
      getopt/Makefile.am
  9. 1 1
      lib/Makefile.am
  10. 1 1
      src/Makefile.am
  11. 1 1
      utils/Makefile.am

+ 0 - 1
.gitignore

@@ -1,6 +1,5 @@
 build-tree
 config
-intl
 ABOUT-NLS
 INSTALL
 Makefile

+ 15 - 0
ChangeLog

@@ -1,3 +1,18 @@
+2008-01-21  Guillem Jover  <guillem@debian.org>
+
+	* 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  <guillem@debian.org>
 
 	* configure.ac (AC_CHECK_FUNCS): Add getdtablesize.

+ 0 - 1
Makefile.am

@@ -5,7 +5,6 @@ if WITH_DSELECT
 endif
 
 SUBDIRS = \
-	intl \
 	getopt \
 	lib \
 	src \

+ 3 - 3
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

+ 2 - 1
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

+ 1 - 1
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
 

+ 1 - 1
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
 

+ 1 - 1
getopt/Makefile.am

@@ -2,7 +2,7 @@
 
 localedir = $(datadir)/locale
 INCLUDES = \
-	-DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl \
+	-DLOCALEDIR=\"$(localedir)\" \
 	-I$(top_srcdir)/lib
 
 

+ 1 - 1
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\"
 

+ 1 - 1
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
 

+ 1 - 1
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