From 8043da8009619eb6e7404e404abc896238efc45f Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 10 Apr 2013 13:57:09 +0200 Subject: [PATCH] add dependency on libjson --- Makefile.am | 4 +++- configure.ac | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 3b78c17..febf697 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,6 +35,8 @@ ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I$(srcdir)/ykcore -I$(srcdir)/rfc4634 AM_CFLAGS = $(WARN_CFLAGS) +AM_CFLAGS += $(libjson_CFLAGS) + # The library. ykpers_includedir=$(includedir)/ykpers-1 @@ -48,7 +50,7 @@ libykpers_1_la_SOURCES += rfc4634/hmac.c rfc4634/usha.c rfc4634/sha.h \ rfc4634/sha1.c rfc4634/sha224-256.c rfc4634/sha384-512.c \ rfc4634/sha-private.h libykpers_1_la_SOURCES += ykpers-1.pc.in libykpers-1.map -libykpers_1_la_LIBADD = $(LTLIBYUBIKEY) ./ykcore/libykcore.la +libykpers_1_la_LIBADD = $(LTLIBYUBIKEY) ./ykcore/libykcore.la $(libjson_LIBS) libykpers_1_la_LDFLAGS = -no-undefined \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) EXTRA_libykpers_1_la_DEPENDENCIES = libykpers-1.map diff --git a/configure.ac b/configure.ac index aa4a994..8bf804a 100644 --- a/configure.ac +++ b/configure.ac @@ -125,6 +125,8 @@ AM_CONDITIONAL([BACKEND_LIBUSB_1_0], test x$with_backend = xlibusb-1.0) AM_CONDITIONAL([BACKEND_OSX], test x$with_backend = xosx) AM_CONDITIONAL([BACKEND_WINDOWS], test x$with_backend = xwindows) +PKG_CHECK_MODULES([libjson], [json]) + AC_ARG_WITH([udevrulesdir], AS_HELP_STRING([--with-udevrulesdir=DIR], [Install udev rules into this directory]), [], []) -- 2.39.5