1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Simplify configure test

The test for lz4.h used AC_CHECK_HEADERS, but nothing was using the
resulting symbol HAVE_LZ4_H.  Change this to use AC_CHECK_HEADER
instead.  This was probably an oversight, seeing that the nearby
similar tests do this correctly.
This commit is contained in:
Peter Eisentraut
2022-05-04 13:33:59 +02:00
parent 0432490d29
commit cfb63b994e
4 changed files with 1 additions and 12 deletions

6
configure vendored
View File

@ -14103,19 +14103,13 @@ $as_echo "$LZ4" >&6; }
fi
if test "$with_lz4" = yes; then
for ac_header in lz4.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
if test "x$ac_cv_header_lz4_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LZ4_H 1
_ACEOF
else
as_fn_error $? "lz4.h header file is required for LZ4" "$LINENO" 5
fi
done
fi