1 AC_DEFUN([AC_CHECK_EBLOB],[
2 AC_MSG_CHECKING([whether libeblob development version is installed])
6 AC_ARG_WITH([eblob-path],
7 AC_HELP_STRING([--with-eblob-path=@<:@ARG@:>@],
8 [Build with the different path to eblob (ARG=string)]),
10 EBLOB_LIBS="-L$withval/lib -leblob"
11 EBLOB_CFLAGS="-I$withval/include"
15 saved_CFLAGS="$CFLAGS"
17 LIBS="$EBLOB_LIBS $LIBS"
18 CFLAGS="$EBLOB_CFLAGS $CFLAGS"
20 AC_TRY_LINK([#include <eblob/blob.h>],
21 [struct eblob_backend *b = eblob_init(NULL);],
23 AC_DEFINE(HAVE_EBLOB_SUPPORT, 1, [Define this if libeblob is installed])
33 AC_SUBST(EBLOB_CFLAGS)
35 CFLAGS="$saved_CFLAGS"
36 AM_CONDITIONAL(HAVE_EBLOB, [test "f$ac_have_eblob" = "fyes"])