summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-02-22 10:16:16 +0100
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-04-24 00:56:26 +0200
commit3cd24823660a0447e590ff352e9da7eb076b292b (patch)
tree7e6feb37058bd9885ef0447d38c2fb77f6f97c57 /configure.ac
parent8d48dbafe69193f8a23765154be1f7db851bfa1c (diff)
RECLAIM: Added libpabc credential support.dev/schanzen/pabc
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e66103b58..4a2f148ff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -791,6 +791,30 @@ AS_IF([test "x$zbar" = x1],
[AC_DEFINE([HAVE_ZBAR],[1],[Have zbar library])],
[AC_DEFINE([HAVE_ZBAR],[0],[Lacking zbar library])])
+# check for libpabc library
+pabc=0
+AC_MSG_CHECKING(for libpabc)
+AC_ARG_WITH(pabc,
+ [ --with-pabc=PREFIX (base of libpabc installation)],
+ [AC_MSG_RESULT([$with_pabc])
+ AS_CASE([$with_pabc],
+ [no],[],
+ [yes],[
+ CHECK_LIBHEADER(PABC, pabc, pabc_new_ctx, pabc/pabc.h,pabc=1,)
+ ],[
+ LDFLAGS="-L$with_pabc/lib $LDFLAGS"
+ CPPFLAGS="-I$with_pabc/include $CPPFLAGS"
+ AC_CHECK_HEADERS(pabc/pabc.h,
+ AC_CHECK_LIB([pabc], [pabc_new_ctx],
+ EXT_LIB_PATH="-L$with_pabc/lib $EXT_LIB_PATH"
+ pabc=1))
+ ])
+ ],
+ [AC_MSG_RESULT([--with-pabc not specified])
+ CHECK_LIBHEADER(PABC, pabc, pabc_new_ctx, pabc/pabc.h,pabc=1,)])
+AM_CONDITIONAL(HAVE_PABC, [test x$pabc = x1])
+
+
# check for jansson library
jansson=0
AC_MSG_CHECKING(for libjansson)