aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-03-25 03:51:20 +0000
committerJim Blandy1993-03-25 03:51:20 +0000
commit80afd15ee08885883624baa12d16ae79050da580 (patch)
treef74ab1ac44adeccea2c265d88afe77fa04bdcdf1
parentcdd672cc5a5a902592922f6eb735b0b378d0d9d6 (diff)
downloademacs-80afd15ee08885883624baa12d16ae79050da580.tar.gz
emacs-80afd15ee08885883624baa12d16ae79050da580.zip
Arrange for C compilation throughout the tree to get
C_SWITCH_SYSTEM from the configuration files. * configure: Extract C_SWITCH_SYSTEM from the machine and system-dependent files, and save it in the top-level Makefile. * Makefile.in (C_SWITCH_SYSTEM): New flag for configure to edit. (lib-src/Makefile): Edit C_SWITCH_SYSTEM into lib-src/Makefile.
-rw-r--r--Makefile.in2
-rwxr-xr-xconfigure1.in17
2 files changed, 13 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index 079e5849aeb..2c752761380 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -42,6 +42,7 @@ MAKE = make # BSD doesn't have it as a default.
42 42
43CC=cc 43CC=cc
44CONFIG_CFLAGS=-g 44CONFIG_CFLAGS=-g
45C_SWITCH_SYSTEM=
45 46
46### These help us choose version- and architecture-specific directories 47### These help us choose version- and architecture-specific directories
47### to install files in. 48### to install files in.
@@ -253,6 +254,7 @@ lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile
253 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ 254 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \
254 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ 255 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
255 -e 's|^CONFIG_CFLAGS *=.*$$|CONFIG_CFLAGS='"${CONFIG_CFLAGS}"'|' \ 256 -e 's|^CONFIG_CFLAGS *=.*$$|CONFIG_CFLAGS='"${CONFIG_CFLAGS}"'|' \
257 -e 's|^C_SWITCH_SYSTEM *=.*$$|C_SWITCH_SYSTEM='"${C_SWITCH_SYSTEM}"'|' \
256 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \ 258 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \
257 -e '/^# DIST: /d') > lib-src/Makefile.tmp 259 -e '/^# DIST: /d') > lib-src/Makefile.tmp
258 ${srcdir}/move-if-change lib-src/Makefile.tmp lib-src/Makefile 260 ${srcdir}/move-if-change lib-src/Makefile.tmp lib-src/Makefile
diff --git a/configure1.in b/configure1.in
index e6f7aa99fd8..6c5b3973023 100755
--- a/configure1.in
+++ b/configure1.in
@@ -944,7 +944,11 @@ echo '
944#ifndef LIBS_SYSTEM 944#ifndef LIBS_SYSTEM
945#define LIBS_SYSTEM 945#define LIBS_SYSTEM
946#endif 946#endif
947#ifndef C_SWITCH_SYSTEM
948#define C_SWITCH_SYSTEM
949#endf
947@configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM 950@configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
951@configure@ c_switch_system=C_SWITCH_SYSTEM
948#ifdef SYSTEM_MALLOC 952#ifdef SYSTEM_MALLOC
949@configure@ system_malloc=yes 953@configure@ system_malloc=yes
950#else 954#else
@@ -1027,13 +1031,14 @@ rm -f Makefile.tmp
1027# If you are thinking about editing it, you should seriously consider 1031# If you are thinking about editing it, you should seriously consider
1028# running \`${progname}' instead, or editing 1032# running \`${progname}' instead, or editing
1029# \`${srcdir}/Makefile.in' itself." 1033# \`${srcdir}/Makefile.in' itself."
1030 /bin/sed < ${srcdir}/Makefile.in \ 1034 /bin/sed < ${srcdir}/Makefile.in \
1031 -e 's|^configname *=.*$|configname='"${configuration}"'|' \ 1035 -e 's|^configname *=.*$|configname='"${configuration}"'|' \
1032 -e 's|^version *=.*$|version='"${version}"'|' \ 1036 -e 's|^version *=.*$|version='"${version}"'|' \
1033 -e 's|^srcdir *=.*$|srcdir='"${srcdir}"'|' \ 1037 -e 's|^srcdir *=.*$|srcdir='"${srcdir}"'|' \
1034 -e 's|^CC *=.*$|CC='"${default_cc}"'|' \ 1038 -e 's|^CC *=.*$|CC='"${default_cc}"'|' \
1035 -e 's|^CONFIG_CFLAGS *=.*$|CONFIG_CFLAGS='"${default_cflags}"'|' \ 1039 -e 's|^CONFIG_CFLAGS *=.*$|CONFIG_CFLAGS='"${default_cflags}"'|' \
1036 -e 's|^LOADLIBES *=.*$|LOADLIBES='"${libsrc_libs}"'|' \ 1040 -e 's|^C_SWITCH_SYSTEM *=.*$|C_SWITCH_SYSTEM='"${c_switch_system}"'|' \
1041 -e 's|^LOADLIBES *=.*$|LOADLIBES='"${libsrc_libs}"'|' \
1037 -e '/^# DIST: /d') > Makefile.tmp 1042 -e '/^# DIST: /d') > Makefile.tmp
1038${srcdir}/move-if-change Makefile.tmp Makefile 1043${srcdir}/move-if-change Makefile.tmp Makefile
1039 1044