configure: Fix libzbc detection on SUSE Linux
authorBart Van Assche <bvanassche@acm.org>
Mon, 13 Jun 2022 23:27:08 +0000 (16:27 -0700)
committerBart Van Assche <bvanassche@acm.org>
Mon, 13 Jun 2022 23:44:10 +0000 (16:44 -0700)
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 <bvanassche@acm.org>
configure

index 110b4f30c7502eb7e5221fd300a409d49313e639..510af42448ff18f8cfb0d488ea2379887455d9b9 100755 (executable)
--- 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