summaryrefslogtreecommitdiff
path: root/configure1.in
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-04-16 04:48:12 +0000
committerRichard M. Stallman <rms@gnu.org>1994-04-16 04:48:12 +0000
commitc609251406a507c33b511b9f99e7053e3dfe1364 (patch)
tree2191b8687d77d2e608a498e401e7d96c5cd1fc1e /configure1.in
parent40458a4b8c39da31ca31546c54fb42af68f09978 (diff)
downloademacs-c609251406a507c33b511b9f99e7053e3dfe1364.tar.gz
(lib-src/Makefile.in): Make this from Makefile.in.in
and run it thru cpp, as with src/Makefile.in. (i[34]86-ncr-sysv*): Use usg5-4-2.
Diffstat (limited to 'configure1.in')
-rwxr-xr-xconfigure1.in45
1 files changed, 17 insertions, 28 deletions
diff --git a/configure1.in b/configure1.in
index 368613e9214..25f87d87ffa 100755
--- a/configure1.in
+++ b/configure1.in
@@ -769,9 +769,10 @@ case "${canonical}" in
machine=symmetry opsys=bsd4-3
;;
- ## Unspecified sysv on an ncr machine defaults to svr4.
+ ## Unspecified sysv on an ncr machine defaults to svr4.2.
+ ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
i[34]86-ncr-sysv* )
- machine=intel386 opsys=usg5-4
+ machine=intel386 opsys=usg5-4-2
;;
## Intel 860
@@ -1547,7 +1548,7 @@ test -n "${prefix}" &&
test -n "${exec_prefix}" &&
exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
]
-AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [
+AC_OUTPUT(Makefile lib-src/Makefile.in oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [
# Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done
# after src/config.h is built, since we rely on that file.
@@ -1566,6 +1567,19 @@ sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/ */ -U/g' \
`"
changequote([,])dnl
+echo creating lib-src/Makefile
+( cd lib-src
+ rm -f junk.c
+ sed -e 's@^# \(Generated.*\)$@/* \1 */@' \
+ -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
+ < Makefile.in > junk.c
+ $CPP $undefs -I. -I$top_srcdir/lib-src $CPPFLAGS junk.c |
+ sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new
+ rm -f junk.c
+ chmod 444 Makefile.new;
+ mv -f Makefile.new Makefile;
+)
+
echo creating src/Makefile
( cd src
rm -f junk.c
@@ -1578,28 +1592,3 @@ echo creating src/Makefile
chmod 444 Makefile.new;
mv -f Makefile.new Makefile;
)])
-
-# Now recalculate libsrc_libs based on the new decisions made above,
-# and substitute it into lib-src/Makefile.
-# This is necessary in case the m/ or s/ file contains conditionals
-# that test macros defined by config.h.
-
-[
-echo '
-#include "config.h"
-#ifndef LIBS_MACHINE
-#define LIBS_MACHINE
-#endif
-#ifndef LIBS_SYSTEM
-#define LIBS_SYSTEM
-#endif
-configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
-' > ${tempcname}
-eval `${CPP} -Isrc -I${srcdir}/src ${tempcname} \
- | grep 'configure___' \
- | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
-rm ${tempcname}
-
-cat lib-src/Makefile | sed -e "s/@libsrc_libs@/$libsrc_libs/" > lib-src/Makefoo
-mv lib-src/Makefoo lib-src/Makefile
-]