configure: Fix libnfs cflags and libs
authorDamien Le Moal <dlemoal@kernel.org>
Wed, 14 May 2025 07:07:54 +0000 (16:07 +0900)
committerVincent Fu <vincent.fu@samsung.com>
Wed, 14 May 2025 10:56:13 +0000 (06:56 -0400)
commit171e18146a3ea26491b087a29c6ee7b0ad21e719
tree6eb2768289a4430a873cb18d003258edc6556bb3
parent21628ec537c7228a5df62751d228b6af585f882d
configure: Fix libnfs cflags and libs

libnfs version 16 requires the gnutls library. Without specifying at
least -lgnutls, builds fail:

  LINK fio
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/libnfs.so: undefined reference to `gnutls_certificate_set_x509_trust_dir'
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/libnfs.so: undefined reference to `gnutls_transport_set_int2'
...

Modify the configure script to add cflags and library options for gnutls
to correctly build libnfs engine.

Also make sure that the CI install the gnutls library header files.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20250514070754.38281-1-dlemoal@kernel.org
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
ci/actions-install.sh
configure