diff --git a/configure.ac b/configure.ac index c86dac6a65b..c1e39773300 100644 --- a/configure.ac +++ b/configure.ac @@ -3742,7 +3742,7 @@ HAVE_NATIVE_COMP=no LIBGCCJIT_LIB= COMP_OBJ= if test "${with_nativecomp}" != "no"; then - AC_CHECK_LIB(gccjit, gcc_jit_context_acquire, HAVE_NATIVE_COMP=yes, , -lgccjit) + AC_CHECK_HEADER([libgccjit.h], [HAVE_NATIVE_COMP=yes]) if test "${HAVE_NATIVE_COMP}" = "yes"; then LIBGCCJIT_LIB="-lgccjit -ldl" if test "${HAVE_MODULES}" = yes; then