]> code.delx.au - gnu-emacs/blobdiff - configure1.in
(read_key_sequence): If we get a quit, and current buffer
[gnu-emacs] / configure1.in
index 53f1bb5e17a16f394963cd49eda851cb51aea8ad..b1da872e20199cd850f931fc80c7669286a50ba2 100755 (executable)
@@ -1407,14 +1407,15 @@ if [ ! -f ./config.status ]; then
    exit $status
 fi
 topsrcdir=${srcdir}
-  # We discard all lines in Makefile.in that start with # or /**/#
+  # We discard all lines in Makefile.in that start with `# Generated' or /**/#
   # because some cpps get confused by them.
   # Really we should preserve them somehow into Makefile,
   # but that is beyond my level of shell programming.
 makefile_command='echo "creating src/Makefile";
   topsrcdir='"${topsrcdir}"';
 ( cd ./src;
-  sed -e '\''s/^#.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
+  rm -f junk.c;
+  sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
   eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
   < junk.cpp                                                   '\
 '    sed -e '\''s/^#.*//'\''                                   '\