# HG changeset patch # User Richard M. Stallman # Date 753184977 0 # Node ID 17ff41a8348ddc497039acf7aacfb7ae4a9617da # Parent 3cd3a39f98f46a06731617ac958f436348f7fb2e (creating src/Makefile): Before running cpp, discard all lines that start with # or /**/#. diff -r 3cd3a39f98f4 -r 17ff41a8348d configure1.in --- a/configure1.in Sat Nov 13 09:31:34 1993 +0000 +++ b/configure1.in Sat Nov 13 10:02:57 1993 +0000 @@ -1407,10 +1407,14 @@ exit $status fi topsrcdir=${srcdir} + # We discard all lines in Makefile.in that start with # 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; - cp Makefile.in junk.c; + sed -e '\''s/^#.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; < junk.cpp '\ ' sed -e '\''s/^#.*//'\'' '\