comparison configure1.in @ 4999:17ff41a8348d

(creating src/Makefile): Before running cpp, discard all lines that start with # or /**/#.
author Richard M. Stallman <rms@gnu.org>
date Sat, 13 Nov 1993 10:02:57 +0000
parents fdc2ebb95bed
children 950929c4ae00
comparison
equal deleted inserted replaced
4998:3cd3a39f98f4 4999:17ff41a8348d
1405 status=$? 1405 status=$?
1406 if [ ! -f ./config.status ]; then 1406 if [ ! -f ./config.status ]; then
1407 exit $status 1407 exit $status
1408 fi 1408 fi
1409 topsrcdir=${srcdir} 1409 topsrcdir=${srcdir}
1410 # We discard all lines in Makefile.in that start with # or /**/#
1411 # because some cpps get confused by them.
1412 # Really we should preserve them somehow into Makefile,
1413 # but that is beyond my level of shell programming.
1410 makefile_command='echo "creating src/Makefile"; 1414 makefile_command='echo "creating src/Makefile";
1411 topsrcdir='"${topsrcdir}"'; 1415 topsrcdir='"${topsrcdir}"';
1412 ( cd ./src; 1416 ( cd ./src;
1413 cp Makefile.in junk.c; 1417 sed -e '\''s/^#.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
1414 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; 1418 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
1415 < junk.cpp '\ 1419 < junk.cpp '\
1416 ' sed -e '\''s/^#.*//'\'' '\ 1420 ' sed -e '\''s/^#.*//'\'' '\
1417 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ 1421 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
1418 ' -e '\''s/^ / /'\'' '\ 1422 ' -e '\''s/^ / /'\'' '\