FIxes for solaris

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6834 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2000-06-27 21:11:01 +00:00
parent f04a31ac1b
commit 838cf297ac
7 changed files with 261 additions and 209 deletions

View file

@ -1,10 +1,17 @@
2000-06-27 Adam Fedor <fedor@gnu.org>
* Fixes on solaris/gcc 2.8.0
* configure.in: Check for whoami location.
* Source/Makefile.postamble: Use it.
* Tools/Makefile.postamble: Use it.
* Tools/gsdoc.m: Make sure exit status is 0 when no libxml
* Makefile.postamble: Don't make documentation on install. Can't
guarentee that library path is setup correctly yet.
* Source/NSData.m: Correct sense of NEEDS_WORD_ALIGN test.
2000-06-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPort.m: Add default support for coding using the

View file

@ -67,7 +67,7 @@ after-install::
mkdir -p $(INSTALL_ROOT_DIR)/etc; \
services=$(INSTALL_ROOT_DIR)/etc/services.add; \
fi; \
if [ "`whoami`" != root ]; then \
if [ "`$(WHOAMI)`" != root ]; then \
echo "WARNING: Please add the following lines to $$services"; \
echo "gdomap 538/tcp # GNUstep distrib objects"; \
echo "gdomap 538/udp # GNUstep distrib objects"; \

View file

@ -2102,7 +2102,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
*cursor, length];
}
#if NEED_WORD_ALIGNMENT
if ((*cursor % __alignof__(gsu16)) == 0)
if ((*cursor % __alignof__(gsu16)) != 0)
memcpy(&x, (bytes + *cursor), 2);
else
#endif
@ -2122,7 +2122,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
*cursor, length];
}
#if NEED_WORD_ALIGNMENT
if ((*cursor % __alignof__(gsu32)) == 0)
if ((*cursor % __alignof__(gsu32)) != 0)
memcpy(&x, (bytes + *cursor), 4);
else
#endif
@ -2963,7 +2963,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
}
*(gsu8*)(bytes + length++) = tag;
#if NEED_WORD_ALIGNMENT
if ((length % __alignof__(gsu16)) == 0)
if ((length % __alignof__(gsu16)) != 0)
{
x = GSSwapHostI16ToBig(x);
memcpy((bytes + length), &x, 2);
@ -2984,7 +2984,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
}
*(gsu8*)(bytes + length++) = tag;
#if NEED_WORD_ALIGNMENT
if ((length % __alignof__(gsu32)) == 0)
if ((length % __alignof__(gsu32)) != 0)
{
x = GSSwapHostI32ToBig(x);
memcpy((bytes + length), &x, 4);

View file

@ -22,7 +22,7 @@ after-install::
for file in $(DTD_FILES); do \
$(INSTALL_DATA) $$file $(dtddir)/$$file; \
done; \
if [ "`whoami`" != "root" ]; then \
if [ "`$(WHOAMI)`" != "root" ]; then \
echo ""; \
echo "************************************************************"; \
echo "WARNING: gdomap MUST be installed owned by root and with"; \

View file

@ -1,5 +1,10 @@
#
# Extra make variables for base library
#
#
WHOAMI=@WHOAMI@
DYNAMIC_LINKER=@DYNAMIC_LINKER@
HAVE_LIBXML=@HAVE_LIBXML@

442
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -40,6 +40,8 @@ AC_CANONICAL_SYSTEM
AC_PROG_CC
AC_PROG_CPP
AC_PATH_PROG(WHOAMI, whoami, echo, $PATH:/usr/ucb)
#--------------------------------------------------------------------
# -pipe option for compiler
#--------------------------------------------------------------------