cpp revisited: look for a cpp binary in various locations for use at runtime
Certain programs like dtlogin and tt_type_comp need access to the system's cpp command to process certain files at runtime. tradcpp is not installed on most systems, and is intended for use as a imake-cpp replacement which is all we are using it for. We still need an honest cpp for the CDE components to use. Now, we look in various places for a 'cpp' command and set CPP_COMMAND to it's value. This way tt_type_comp and other CDE programs can do required processing at runtime.
This commit is contained in:
@@ -12,7 +12,7 @@ mp_types_gram.h:
|
||||
bin_PROGRAMS = tt_type_comp
|
||||
|
||||
tt_type_comp_CXXFLAGS = -I../../lib -I../../slib \
|
||||
$(TT_VERSION_DEFINE) -DCPP_PROGRAM="\"$(GENCPP)\""
|
||||
$(TT_VERSION_DEFINE) -DCPP_PROGRAM="\"$(CPP_PROGRAM)\""
|
||||
|
||||
tt_type_comp_SOURCES = mp_type_comp.C mp_types_table.C \
|
||||
frozen.mp_types_lex.C frozen.mp_types_gram.C
|
||||
|
||||
Reference in New Issue
Block a user