mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-24 01:11:01 +00:00
Update to get byte order stuff correct on big-endian machine
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3439 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d5a99e1db0
commit
3cd17d550b
6 changed files with 226 additions and 279 deletions
14
Headers/gnustep/base/GSConfig.h.in
Normal file
14
Headers/gnustep/base/GSConfig.h.in
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
#ifndef included_GSConfig_h
|
||||
#define included_GSConfig_h
|
||||
|
||||
/*
|
||||
* Machine/OS specific information required by GNUstep headers.
|
||||
*/
|
||||
|
||||
/* Define if your processor stores words with the most significant
|
||||
byte first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||
#undef WORDS_BIGENDIAN
|
||||
|
||||
#endif /* included_GSConfig_h */
|
||||
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef __NSByteOrder_h_GNUSTEP_BASE_INCLUDE
|
||||
#define __NSByteOrder_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <GSConfig.h>
|
||||
|
||||
/*
|
||||
* OPENSTEP type definitions for Byte ordering.
|
||||
|
|
|
@ -475,7 +475,7 @@ HEADERS_INSTALL = $(GNU_HEADERS) \
|
|||
|
||||
DIST_FILES = \
|
||||
GNUmakefile Makefile.preamble Makefile.postamble AUTHORS \
|
||||
include/config.h.in include/preface.h.in \
|
||||
include/config.h.in include/preface.h.in include/GSConfig.h.in \
|
||||
include/config-win32.h \
|
||||
$(GNU_MFILES) \
|
||||
$(GNU_CFILES) \
|
||||
|
@ -492,7 +492,8 @@ include/o_array.h \
|
|||
include/o_hash.h \
|
||||
include/o_list.h \
|
||||
include/o_map.h \
|
||||
$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/config.h
|
||||
$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/config.h \
|
||||
$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/GSConfig.h
|
||||
|
||||
# The C source files to be compiled
|
||||
libgnustep-base_C_FILES = $(GNU_CFILES) $(BASE_CFILES)
|
||||
|
|
|
@ -53,6 +53,8 @@ after-install::
|
|||
$(INSTALL_DATA) ./include/$$file \
|
||||
$(GNUSTEP_HEADERS)/gnustep/base/$$file ; \
|
||||
done
|
||||
$(INSTALL_DATA) $(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/GSConfig.h \
|
||||
$(GNUSTEP_HEADERS)/$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
|
||||
if [ "$(INSTALL_ROOT_DIR)" = "" ]; then \
|
||||
if [ "`whoami`" != root ]; then \
|
||||
echo "WARNING: Please add the following lines yourself"; \
|
||||
|
@ -89,7 +91,7 @@ after-uninstall::
|
|||
|
||||
# Things to do after distcleaning
|
||||
after-distclean::
|
||||
rm -f include/config.h include/dynamic-load.h \
|
||||
rm -f include/config.h include/GSConfig.h include/dynamic-load.h \
|
||||
Foundation gnustep/base \
|
||||
NSNumber[0-9]*.m NSValue[0-9]*.m o_*_bas.m
|
||||
rmdir gnustep
|
||||
|
@ -179,6 +181,11 @@ $(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/config.h: ../config.status
|
|||
$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
|
||||
-mv include/config.h $(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
|
||||
|
||||
$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/GSConfig.h: ../config.status
|
||||
$(GNUSTEP_MAKEFILES)/mkinstalldirs \
|
||||
$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
|
||||
-mv include/GSConfig.h $(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
|
||||
|
||||
include/o_%_bas.h: include/o_x_bas.h.in
|
||||
sed -e "s/@XX@/$*/g" $< > $@
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ AC_INIT(src/Collection.m)
|
|||
#--------------------------------------------------------------------
|
||||
# Use a .h file with #define's, instead of -D command-line switches
|
||||
#--------------------------------------------------------------------
|
||||
AC_CONFIG_HEADER(src/include/config.h)
|
||||
AC_CONFIG_HEADER(src/include/config.h src/include/GSConfig.h)
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Determine the host, build, and target systems
|
||||
|
|
Loading…
Reference in a new issue