Index: clamav-0.97.2/libclamav.pc.in =================================================================== --- clamav-0.97.2.orig/libclamav.pc.in +++ clamav-0.97.2/libclamav.pc.in @@ -6,6 +6,7 @@ includedir=@includedir@ Name: libclamav Description: A GPL virus scanner Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -lclamav @LIBCLAMAV_LIBS@ -Cflags: -I${includedir} @CFLAGS@ +Libs: -L${libdir} -lclamav +Libs.private: -L${libdir} -lclamav @LIBCLAMAV_LIBS@ +Cflags: -I${includedir} Index: clamav-0.97.2/clamav-config.in =================================================================== --- clamav-0.97.2.orig/clamav-config.in +++ clamav-0.97.2/clamav-config.in @@ -54,12 +54,8 @@ while test $# -gt 0; do usage 0 ;; - --cflags) - echo -I@includedir@ @CFLAGS@ - ;; - - --libs) - echo -L@libdir@ @LIBCLAMAV_LIBS@ + (--cflags|--libs) + ${PKG_CONFIG:-pkg-config} "$1" libclamav ;; *)