LP1990018: Fix libdbi build user/dyrcona/lp1990018-libdbi-autotools-fix
authorJason Stephenson <jason@sigio.com>
Sun, 18 Sep 2022 13:38:40 +0000 (09:38 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 18 Sep 2022 13:38:40 +0000 (09:38 -0400)
commit8a9fc8534a76a0ac677fbe97bc157dfe0764f585
treeb26a8193cda3cdac3af4d1d38113b8bd5f6c5a6b
parent01f87025e11c16bd94e4bb5ed8bb4a29bbec7080
LP1990018: Fix libdbi build

Resolve issues with finding libdbi and libdbdpgsql on ARM64 by using better
autoconf hygiene:

 * Use PKG_CHECK_MODULES to find and set the dbi library flags.
 * Remove the "backup" code to find a manually installed libdbi.
   (This has not been needed for some time.)
 * Update Makefile.ams to use the dbi LDFLAGS properly.
 * Remove -ldbdpgsql from compile commands.
   (It is loaded dynamically.)

I tested it on a x86_64 VM with Ubuntu 22.04.  Most tests passed.  Only the
remot auth and cover uploader tests failed.  The latter have not passed for
some time, and I believe the former may have been affected by a recent
change unrelated to this commit.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/c-apps/Makefile.am
Open-ILS/src/c-apps/tests/Makefile.am
configure.ac