From: Bart Van Assche Date: Mon, 13 Jun 2022 23:27:08 +0000 (-0700) Subject: configure: Fix libzbc detection on SUSE Linux X-Git-Tag: test-tag-2022-08-09~33^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=67ff4de3950daabcb0c4e14d273bb51075487285;p=fio.git configure: Fix libzbc detection on SUSE Linux The path of the libzbc header file is /usr/include/libzbc/libzbc/zbc.h instead of /usr/include/libzbc/zbc.h on SUSE Linux systems. Add support for the SUSE libzbc include path. Signed-off-by: Bart Van Assche --- diff --git a/configure b/configure index 110b4f30..510af424 100755 --- a/configure +++ b/configure @@ -2578,6 +2578,10 @@ int main(int argc, char **argv) } EOF if test "$libzbc" != "no" ; then + if [ -e /usr/include/libzbc/libzbc ]; then + # SUSE Linux. + CFLAGS="$CFLAGS -I/usr/include/libzbc" + fi if compile_prog "" "-lzbc" "libzbc"; then libzbc="yes" if ! check_min_lib_version libzbc 5; then