[Libguestfs] [PATCH v3 2/5] configure: Added libtsk compile-time check

Pino Toscano ptoscano at redhat.com
Tue Apr 5 16:39:11 UTC 2016


On Tuesday 05 April 2016 18:47:29 Matteo Cafasso wrote:
> Ensure libtsk is available at compile time.
> If not, daemon routines depending on it won't be available.
> 
> Signed-off-by: Matteo Cafasso <noxdafox at gmail.com>
> ---

Please also add the optional dependency to the documentation, see
docs/guestfs-building.pod.

>  m4/guestfs_daemon.m4 | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/m4/guestfs_daemon.m4 b/m4/guestfs_daemon.m4
> index 88936b2..09cfecd 100644
> --- a/m4/guestfs_daemon.m4
> +++ b/m4/guestfs_daemon.m4
> @@ -118,3 +118,11 @@ PKG_CHECK_MODULES([SD_JOURNAL], [libsystemd],[
>          AC_MSG_WARN([systemd journal library not found, some features will be disabled])
>      ])
>  ])
> +
> +dnl libtsk sleuthkit library (optional)
> +AC_CHECK_LIB([tsk],[tsk_version_print],[
> +    AC_CHECK_HEADER([tsk/libtsk.h],[
> +        AC_SUBST([TSK_LIBS], [-ltsk])
> +        AC_DEFINE([HAVE_LIBTSK], [1], [Define to 1 if The Sleuth Kit  library (libtsk) is available.])

Extra space here ...                                                    ^

Thanks,
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20160405/a06b953a/attachment.sig>


More information about the Libguestfs mailing list