From: Richard M. Stallman Date: Sat, 13 Nov 1993 10:02:57 +0000 (+0000) Subject: (creating src/Makefile): Before running cpp, X-Git-Tag: emacs-19.34~10852 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=22b092ef9e0688206878618faf8921c70de8c04b;p=emacs.git (creating src/Makefile): Before running cpp, discard all lines that start with # or /**/#. --- diff --git a/configure1.in b/configure1.in index 6414e99e89c..53f1bb5e17a 100755 --- a/configure1.in +++ b/configure1.in @@ -1407,10 +1407,14 @@ if [ ! -f ./config.status ]; then 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/^#.*//'\'' '\