info build fails if posix not used...
DJ Delorie
dj@redhat.com
Thu Apr 22 08:21:00 GMT 2010
> Yes, it should be handled the same stdio64, etc... Please go ahead.
How's this?
* libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
(libc.info): Add posix.texi.
(libc.dvi): Likewise.
(stmp-posix): New.
(posix.texi): New.
(libc_TEXINFOS): Add posix.texi.
* libc/configure.in (LIBC_POSIX_LIB, LIBC_POSIX_DEF): Add
tests.
* libc/libc.texinfo: Include posix.texi
* libc/locale/locale.c: Fix texinfo typo.
* libc/time/strftime.c: Fix texinfo typo.
* libc/configure: Regenerate.
* libc/Makefile.in: Regenerate.
* libc/argz/Makefile.in: Regenerate.
* libc/ctype/Makefile.in: Regenerate.
* libc/errno/Makefile.in: Regenerate.
* libc/iconv/Makefile.in: Regenerate.
* libc/iconv/ccs/Makefile.in: Regenerate.
* libc/iconv/ccs/binary/Makefile.in: Regenerate.
* libc/iconv/ces/Makefile.in: Regenerate.
* libc/iconv/lib/Makefile.in: Regenerate.
* libc/locale/Makefile.in: Regenerate.
* libc/misc/Makefile.in: Regenerate.
* libc/posix/Makefile.in: Regenerate.
* libc/reent/Makefile.in: Regenerate.
* libc/search/Makefile.in: Regenerate.
* libc/signal/Makefile.in: Regenerate.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio64/Makefile.in: Regenerate.
* libc/stdlib/Makefile.in: Regenerate.
* libc/string/Makefile.in: Regenerate.
* libc/syscalls/Makefile.in: Regenerate.
* libc/time/Makefile.in: Regenerate.
* libc/unix/Makefile.in: Regenerate.
* libc/xdr/Makefile.in: Regenerate.
Index: newlib/libc/Makefile.am
===================================================================
RCS file: /cvs/src/src/newlib/libc/Makefile.am,v
retrieving revision 1.16
diff -p -U3 -r1.16 newlib/libc/Makefile.am
--- newlib/libc/Makefile.am 2 Mar 2010 12:05:12 -0000 1.16
+++ newlib/libc/Makefile.am 22 Apr 2010 03:44:53 -0000
@@ -132,6 +132,7 @@ SUBDEFS = \
ctype/stmp-def \
$(LIBC_STDIO_DEF) \
$(LIBC_STDIO64_DEF) \
+ $(LIBC_POSIX_DEF) \
$(LIBC_XDR_DEF) \
string/stmp-def \
$(LIBC_SIGNAL_DEF) \
@@ -142,10 +143,10 @@ SUBDEFS = \
misc/stmp-def \
posix/stmp-def
-libc.info: sigset.texi extra.texi stdio64.texi iconvset.texi \
+libc.info: sigset.texi extra.texi stdio64.texi posix.texi iconvset.texi \
targetdep.tex $(SUBDEFS)
-libc.dvi: sigset.texi extra.texi stdio64.texi iconvset.texi \
+libc.dvi: sigset.texi extra.texi stdio64.texi posix.texi iconvset.texi \
targetdep.tex $(SUBDEFS)
stmp-sigset: config.status
@@ -192,6 +193,17 @@ stmp-stdio64: config.status
stdio64.texi: stmp-stdio64 ; @true
+stmp-posix: config.status
+ if test -n "$(LIBC_POSIX_LIB)"; then \
+ echo "@set POSIX" >tmp.texi; \
+ else \
+ echo "@clear POSIX" >tmp.texi; \
+ fi
+ $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi posix.texi
+ touch $@
+
+posix.texi: stmp-posix ; @true
+
stmp-targetdep: force
rm -f tmp.texi
targetdoc=`pwd`/tmp.texi; \
@@ -209,7 +221,7 @@ targetdep.tex: stmp-targetdep ; @true
$(SUBDEFS): stmp-targetdep ; @true
info_TEXINFOS = libc.texinfo
-libc_TEXINFOS = sigset.texi extra.texi stdio64.texi iconvset.texi \
+libc_TEXINFOS = sigset.texi extra.texi posix.texi stdio64.texi iconvset.texi \
targetdep.tex $(SUBDEFS)
.PHONY: force
Index: newlib/libc/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/configure.in,v
retrieving revision 1.19
diff -p -U3 -r1.19 newlib/libc/configure.in
--- newlib/libc/configure.in 2 Mar 2010 12:05:12 -0000 1.19
+++ newlib/libc/configure.in 22 Apr 2010 03:44:53 -0000
@@ -94,6 +94,20 @@ AC_SUBST(LIBC_STDIO64_LIB)
AC_SUBST(LIBC_STDIO64_DEF)
AM_CONDITIONAL(HAVE_STDIO64_DIR, test x${stdio64_dir} != x)
+LIBC_POSIX_LIB=
+LIBC_POSIX_DEF=
+if test -n "${posix_dir}"; then
+ if test "${use_libtool}" = "yes"; then
+ LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
+ else
+ LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
+ fi
+ LIBC_POSIX_DEF=${posix_dir}/stmp-def
+fi
+AC_SUBST(LIBC_POSIX_LIB)
+AC_SUBST(LIBC_POSIX_DEF)
+AM_CONDITIONAL(HAVE_POSIX_DIR, test x${posix_dir} != x)
+
LIBC_XDR_LIB=
LIBC_XDR_DEF=
if test -n "${xdr_dir}"; then
Index: newlib/libc/libc.texinfo
===================================================================
RCS file: /cvs/src/src/newlib/libc/libc.texinfo,v
retrieving revision 1.19
diff -p -U3 -r1.19 newlib/libc/libc.texinfo
--- newlib/libc/libc.texinfo 17 Dec 2009 20:40:06 -0000 1.19
+++ newlib/libc/libc.texinfo 22 Apr 2010 03:44:53 -0000
@@ -139,6 +139,7 @@ into another language, under the above c
@c signal subdirectory:
@include sigset.texi
@include extra.texi
+@include posix.texi
@include stdio64.texi
@include iconvset.texi
@@ -162,7 +163,9 @@ into another language, under the above c
* Reentrancy::
* Misc::
+@ifset POSIX
* Posix::
+@end ifset
* Syscalls::
* Arglists::
@ifset ICONV
Index: newlib/libc/locale/locale.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/locale/locale.c,v
retrieving revision 1.43
diff -p -U3 -r1.43 newlib/libc/locale/locale.c
--- newlib/libc/locale/locale.c 27 Mar 2010 21:04:49 -0000 1.43
+++ newlib/libc/locale/locale.c 22 Apr 2010 03:44:53 -0000
@@ -74,7 +74,7 @@ The following charsets are recognized:
Charsets are case insensitive. For instance, <<"EUCJP">> and <<"eucJP">>
are equivalent. Charset names with dashes can also be written without
dashes, as in <<"UTF8">>, <<"iso88591">> or <<"koi8r">>. <<"EUCJP">> and
-<<"EUCKR"> are also recognized with dash, <<"EUC-JP">> and <<"EUC-KR">>.
+<<"EUCKR">> are also recognized with dash, <<"EUC-JP">> and <<"EUC-KR">>.
Full support for all of the above charsets requires that newlib has been
build with multibyte support and support for all ISO and Windows Codepage.
Index: newlib/libc/time/strftime.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/time/strftime.c,v
retrieving revision 1.14
diff -p -U3 -r1.14 newlib/libc/time/strftime.c
--- newlib/libc/time/strftime.c 26 Feb 2010 09:41:44 -0000 1.14
+++ newlib/libc/time/strftime.c 22 Apr 2010 03:44:54 -0000
@@ -57,7 +57,7 @@ The abbreviated weekday name according t
o %A
The full weekday name according to the current locale.
In the default "C" locale, one of `<<Sunday>>', `<<Monday>>', `<<Tuesday>>',
-`<<Wednesday>>', `<Thursday>>', `<<Friday>>', `<<Saturday>>'. [tm_wday]
+`<<Wednesday>>', `<<Thursday>>', `<<Friday>>', `<<Saturday>>'. [tm_wday]
o %b
The abbreviated month name according to the current locale. [tm_mon]
More information about the Newlib
mailing list