Handle Debian/Ubuntu multiple architecture support
Currently in configure we look for libraries in .../lib and .../lib64 directories. It is not enough on Debian/Ubuntu which uses an architecture triplet so e.g we have to add .../lib/x86_64-linux-gnu to the directory list.
Two notes:
- freeradius client library already uses this with the ARCH_TRIPLET variable (set to
/x86_64-linux-gnu
with a leading /. - the triplet is returned by
g++ -dumpmachine
with only one -.
As the path can be given I am not sure there is no round around today but now the issue is identified there is no need to wait to be caught by it.