diff options
author | Jim Blandy <[email protected]> | 1993-03-25 03:51:20 +0000 |
---|---|---|
committer | Jim Blandy <[email protected]> | 1993-03-25 03:51:20 +0000 |
commit | 80afd15ee08885883624baa12d16ae79050da580 (patch) | |
tree | f74ab1ac44adeccea2c265d88afe77fa04bdcdf1 /configure1.in | |
parent | cdd672cc5a5a902592922f6eb735b0b378d0d9d6 (diff) |
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.
Diffstat (limited to 'configure1.in')
-rwxr-xr-x | configure1.in | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/configure1.in b/configure1.in index e6f7aa99fd..6c5b397302 100755 --- a/configure1.in +++ b/configure1.in @@ -944,7 +944,11 @@ echo ' #ifndef LIBS_SYSTEM #define LIBS_SYSTEM #endif +#ifndef C_SWITCH_SYSTEM +#define C_SWITCH_SYSTEM +#endf @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM +@configure@ c_switch_system=C_SWITCH_SYSTEM #ifdef SYSTEM_MALLOC @configure@ system_malloc=yes #else @@ -1027,13 +1031,14 @@ rm -f Makefile.tmp # If you are thinking about editing it, you should seriously consider # running \`${progname}' instead, or editing # \`${srcdir}/Makefile.in' itself." - /bin/sed < ${srcdir}/Makefile.in \ - -e 's|^configname *=.*$|configname='"${configuration}"'|' \ - -e 's|^version *=.*$|version='"${version}"'|' \ - -e 's|^srcdir *=.*$|srcdir='"${srcdir}"'|' \ - -e 's|^CC *=.*$|CC='"${default_cc}"'|' \ + /bin/sed < ${srcdir}/Makefile.in \ + -e 's|^configname *=.*$|configname='"${configuration}"'|' \ + -e 's|^version *=.*$|version='"${version}"'|' \ + -e 's|^srcdir *=.*$|srcdir='"${srcdir}"'|' \ + -e 's|^CC *=.*$|CC='"${default_cc}"'|' \ -e 's|^CONFIG_CFLAGS *=.*$|CONFIG_CFLAGS='"${default_cflags}"'|' \ - -e 's|^LOADLIBES *=.*$|LOADLIBES='"${libsrc_libs}"'|' \ + -e 's|^C_SWITCH_SYSTEM *=.*$|C_SWITCH_SYSTEM='"${c_switch_system}"'|' \ + -e 's|^LOADLIBES *=.*$|LOADLIBES='"${libsrc_libs}"'|' \ -e '/^# DIST: /d') > Makefile.tmp ${srcdir}/move-if-change Makefile.tmp Makefile |