diff options
author | Ryan Goldberg <rgoldber@redhat.com> | 2022-08-04 14:32:46 -0400 |
---|---|---|
committer | Ryan Goldberg <rgoldber@redhat.com> | 2022-08-04 14:32:46 -0400 |
commit | 0c1ff1e6d0ceccc37ff4a82fac394cc7394fa5cc (patch) | |
tree | 44a18f5e1ab54d6b58fbf3acb040b25cf2333982 | |
parent | 2f5e894a6f015aed3dbe7935ce06397e1f1e9976 (diff) | |
download | elfutils-users/rgoldber/try-bz28204.tar.gz |
swbz28204:Fixed configuration requirementsusers/rgoldber/try-bz28204
-rw-r--r-- | configure.ac | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index 1bbbeb04..5b946b44 100644 --- a/configure.ac +++ b/configure.ac @@ -601,16 +601,10 @@ esac AC_SUBST([obstack_LIBS]) enable_ima_verification="x" -PKG_CHECK_MODULES([rpm],[rpm >= 4.16],[enable_librpm=yes],[]) -if test "x$enable_librpm" = "xyes"; then - AC_CHECK_LIB(rpm, headerFormat, [ - # AC_DEFINE([HAVE_RPM], [1], [Define if you have RPM]) - enable_ima_verification=$enable_ima_verification"rpm" - AC_SUBST(rpm_LIBS, '-lrpm -lrpmio') - ]) -else - AC_MSG_ERROR([Suitable version of rpm not found]) -fi +AC_CHECK_LIB(rpm, headerFormat, [ + enable_ima_verification=$enable_ima_verification"rpm" + AC_SUBST(rpm_LIBS, '-lrpm -lrpmio') +]) AC_CHECK_LIB(imaevm, ima_verify_signature, [ enable_ima_verification=$enable_ima_verification"imaevm" |