configure: rework the way TIRPC is detected and handled
authorJon Trulson <jon@radscan.com>
Thu, 21 Nov 2019 01:26:59 +0000 (18:26 -0700)
committerJon Trulson <jon@radscan.com>
Thu, 21 Nov 2019 01:26:59 +0000 (18:26 -0700)
commit0f1223a07e9e71af0ae5f8378de132e084a5d735
treec1d46dbd391c695f91c6c7d3a400cbc092f2e12b
parent10eb9a69755a35436a5bf6a30ad761c60651307e
configure: rework the way TIRPC is detected and handled

Previously we would detect whether TIRPC is installed or not, and set
TIRPCINC to the include directory with the -DOPT_TIRPC macro defined.
Then, pretty much every Makefile.am needs to be sure that $(TIRPCINC) is
specified in the cpp/c/cxx flags.

Since we can never be sure that an RPC header file might be indirectly
included, a better approach is to simply add TIRPCINC to the global
list of CXXFLAGS and CFLAGS in configure.ac for everybody.  This way,
it is always specified properly on tirpc systems, and we don't need to
always add it to every individual Makefile.am since everyone will get
it by default.

TIRPCLIB is still marked as a dep in libtt, so as long as libtt is
linked, you should automatically get the tirpc library too.  This is
still unchanged.
cde/configure.ac