diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-05-05 04:12:44 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-05-05 04:12:44 +0000 |
commit | 40bddc79ec318c5e136eb0b95395486ac925f7c2 (patch) | |
tree | 512d9d1e3736c664c654a9ea1dbc632599fd3009 /configure1.in | |
parent | 76c85a4039c95e8272652178f0b3ea5cde1a1885 (diff) | |
download | emacs-40bddc79ec318c5e136eb0b95395486ac925f7c2.tar.gz |
(making src/Makefile and lib-src/Makefile):
Split off the autoconf substitutions and don't pass them thru cpp.
(undefs): Use $canonical as well as $configuration.
Diffstat (limited to 'configure1.in')
-rwxr-xr-x | configure1.in | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/configure1.in b/configure1.in index 181ddab5fe5..e5d99117e1c 100755 --- a/configure1.in +++ b/configure1.in @@ -1612,7 +1612,7 @@ changequote(,)dnl The horror, the horror. # the C preprocessor to some helpful value like 1, or maybe the empty # string. Needless to say consequent macro substitutions are less # than conducive to the makefile finding the correct directory. -undefs="`echo $top_srcdir $configuration | +undefs="`echo $top_srcdir $configuration $canonical | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ `" @@ -1620,26 +1620,32 @@ changequote([,])dnl echo creating lib-src/Makefile ( cd lib-src - rm -f junk.c - sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ + rm -f junk.c junk1.c junk2.c + sed -e '/start of cpp stuff/q' \ + < Makefile.in > junk1.c + sed -e '1,/start of cpp stuff/d'\ -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ < Makefile.in > junk.c - $CPP $undefs -I. -I$top_srcdir/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; + $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ + sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c + cat junk1.c junk2.c > Makefile.new + rm -f junk.c junk1.c junk2.c + chmod 444 Makefile.new + mv -f Makefile.new Makefile ) echo creating src/Makefile ( cd src - rm -f junk.c - sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ + rm -f junk.c junk1.c junk2.c + sed -e '/start of cpp stuff/q' \ + < Makefile.in > junk1.c + sed -e '1,/start of cpp stuff/d'\ -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ < Makefile.in > junk.c - $CPP $undefs -I. -I$top_srcdir/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; + $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ + sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c + cat junk1.c junk2.c > Makefile.new + rm -f junk.c junk1.c junk2.c + chmod 444 Makefile.new + mv -f Makefile.new Makefile )]) |