configure: set a compiler search option
authorJon Trulson <jon@radscan.com>
Sun, 15 Dec 2019 19:47:57 +0000 (12:47 -0700)
committerJon Trulson <jon@radscan.com>
Sun, 15 Dec 2019 19:47:57 +0000 (12:47 -0700)
commit6c0c619df3da427d76471764c976b103acd255f1
tree02574804d0f0156a765b1918751de6b4aa46b472
parentdd729a7be9eda84fd8058f3c6a74875cbf2bb627
configure: set a compiler search option

... and move the PROG_CC and PROG_CXX checks toward the beginning.
Without the move the compiler search arguments are ignored.  We search
for 'cc gcc clang' and 'c++ g++ clang++', in that order for CC and CXX
respectively.

This means there should be no need to override the CC
and CXX variables on the configure command line for BSD systems.

On OpenBSD for example, cc links to clang.  On Linux, cc links to
gcc.  You can still override these if you like with CC=... and
CXX=... on the configure command line.

gmake (MAKE=gmake) still needs to be used on the BSD's though.

With these and previous changes, CDE builds, installs, and runs
correctly on OpenBSD 6.5 now.
cde/configure.ac