configure: Several changes related to locating cpp and ksh
authorJon Trulson <jon@radscan.com>
Wed, 30 Oct 2019 23:42:31 +0000 (17:42 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 30 Oct 2019 23:42:31 +0000 (17:42 -0600)
commit2b8803a8fbee0a4b28b16511936df5da72b94961
tree70c02112d74afd40418c512907f78a17b4a5a592
parente16ad8120f190d8e709cb9b0351c88124e2c15bf
configure: Several changes related to locating cpp and ksh

For ksh, we need a full pathname.  AC_CHECK_PROGS only sets the name,
so we can't use that (think of a "#!" in a shell script.

We use some shell scripting to locate the ksh pathname.

While on that subject, the current use of CPP (gcc -E) as a general
preprocessor does not work very well.  I messes up whitespace,
adds/translates random whitespace, and complains bitterly about single
quotes (') in various places like comments.  It's not usable for what
CDE needs.

So, now we use GENCPP.  Using shell scripting like that used for ksh,
we locate the cpp program, and set GENCPP to "/full/path/to/cpp
-traditional -nostdinc".  This is what Linux uses now in an Imake
build, and it works fine.  We'll have to see what the BSD/Solari do.

We might need to just include BSD's "tradcpp" into the build and use
that.  It too works well in limited testing, but eats blank lines.  We
can live with that if we have to.
cde/configure.ac