]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Reorganize lib/Makefile.am.
authorBruno Haible <bruno@clisp.org>
Tue, 25 Sep 2001 13:56:49 +0000 (13:56 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 25 Sep 2001 13:56:49 +0000 (13:56 +0000)
ChangeLog
configure.in
lib/ChangeLog
lib/Makefile.am

index ede7f01085317484876f777b830ee6774fd61c06..ad13e1177707c5250eff26d08a63745097466de9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-09-16  Bruno Haible  <haible@clisp.cons.org>
+
+       * configure.in: Don't check for memmove (unneeded).
+
 2001-09-02  Bruno Haible  <haible@clisp.cons.org>
 
        * configure.in: Add check for 'raise'. Call gt_SIGNALBLOCKING.
index eba7dced9689e5eb1278a421ecad39bfae3109e5..283bc3176a7c2c5bdedf3c22f6fe2a031cce75e2 100644 (file)
@@ -68,7 +68,7 @@ AC_FUNC_ALLOCA
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS([getcwd mblen memcpy posix_spawn raise select strchr strerror \
 uname])
-AC_REPLACE_FUNCS([memmove memset stpcpy stpncpy strcspn \
+AC_REPLACE_FUNCS([memset stpcpy stpncpy strcspn \
 strcasecmp strncasecmp strpbrk strstr strtoul vasprintf])
 AM_FUNC_GETLINE
 if test $am_cv_func_working_getline != yes; then
index 8daf32cb7d5e03800b3f5f885d6718845268398d..478fb9144dcb47187cf2b1a623470c383377d4a1 100644 (file)
@@ -1,3 +1,10 @@
+2001-09-16  Bruno Haible  <haible@clisp.cons.org>
+
+       * Makefile.am (libnlsut_a_SOURCES): Remove safe-read.c.
+       (libnlsut_a_HEADER, LIBADD_SOURCE, LIBADD_HEADER, UNUSED_SOURCE,
+       UNUSED_HEADER): New variables.
+       (noinst_HEADERS, EXTRA_DIST): Use them.
+
 2001-09-08  Bruno Haible  <haible@clisp.cons.org>
 
        * pipe-bidi.c (nonintr_close): Add function prototypes.
index 7b8dec60cf910666be7b760596b73ec34a5d1418..235a87ea7c70da87b9a53978bbed0fd1f4cfb7b7 100644 (file)
@@ -21,26 +21,43 @@ AUTOMAKE_OPTIONS = 1.2 gnits
 
 noinst_LIBRARIES = libnlsut.a
 
-EXTRA_DIST = alloca.c classpath.c config.charset error.c getline.c memset.c \
-memmove.c mkdtemp.c ref-add.sin ref-del.sin setenv.c stpcpy.c stpncpy.c \
-strcasecmp.c strcspn.c strncasecmp.c strpbrk.c strstr.c strtol.c strtoul.c \
-vasprintf.c \
-stdbool.h.in \
-gen-lbrkprop.c 3level.h
+# Sources that are compiled on all platforms.
 
 libnlsut_a_SOURCES = basename.c c-ctype.c concatpath.c execute.c findprog.c \
 fstrcmp.c full-write.c gcd.c getopt.c getopt1.c hash.c javacomp.c javaexec.c \
 linebreak.c localcharset.c mbswidth.c obstack.c pipe-bidi.c pipe-in.c \
-pipe-out.c progname.c safe-read.c sh-quote.c tmpdir.c wait-process.c xerror.c \
-xgetcwd.c xmalloc.c xstrdup.c
+pipe-out.c progname.c sh-quote.c tmpdir.c wait-process.c xerror.c xgetcwd.c \
+xmalloc.c xstrdup.c
+
+libnlsut_a_HEADER = c-ctype.h execute.h findprog.h fstrcmp.h full-write.h \
+gcd.h getopt.h hash.h javacomp.h javaexec.h lbrkprop.h linebreak.h mbswidth.h \
+obstack.h pathmax.h pipe.h progname.h sh-quote.h system.h tmpdir.h \
+utf8-ucs4.h utf16-ucs4.h wait-process.h xerror.h
+
+# Sources that are compiled only on platforms that lack the functions.
+
+LIBADD_SOURCE = alloca.c error.c getline.c memset.c mkdtemp.c setenv.c \
+stpcpy.c stpncpy.c strcasecmp.c strcspn.c strncasecmp.c strpbrk.c strstr.c \
+strtol.c strtoul.c vasprintf.c
+
+LIBADD_HEADER = error.h getline.h mkdtemp.h setenv.h strpbrk.h
+
+# Unused sources.
+
+UNUSED_SOURCE = memmove.c safe-read.c
+
+UNUSED_HEADER = safe-read.h
 
 libnlsut_a_LIBADD = @ALLOCA@ @LIBOBJS@
 
-noinst_HEADERS = c-ctype.h error.h execute.h findprog.h fstrcmp.h \
-full-write.h gcd.h getline.h getopt.h hash.h javacomp.h javaexec.h lbrkprop.h \
-linebreak.h mbswidth.h mkdtemp.h obstack.h pathmax.h pipe.h progname.h \
-safe-read.h setenv.h sh-quote.h strpbrk.h system.h tmpdir.h utf8-ucs4.h \
-utf16-ucs4.h wait-process.h xerror.h
+# List of files to be distributed.
+
+noinst_HEADERS = $(libnlsut_a_HEADER) $(LIBADD_HEADER) $(UNUSED_HEADER)
+
+EXTRA_DIST = classpath.c config.charset ref-add.sin ref-del.sin \
+$(LIBADD_SOURCE) $(UNUSED_SOURCE) \
+stdbool.h.in \
+gen-lbrkprop.c 3level.h
 
 DEFS = -DLIBDIR=\"$(libdir)\" @DEFS@
 INCLUDES = -I. -I$(srcdir) -I.. -I../intl