]> err.no Git - yubikey-personalization/commitdiff
add dependency on libjson
authorKlas Lindfors <klas@yubico.com>
Wed, 10 Apr 2013 11:57:09 +0000 (13:57 +0200)
committerKlas Lindfors <klas@yubico.com>
Wed, 10 Apr 2013 11:57:09 +0000 (13:57 +0200)
Makefile.am
configure.ac

index 3b78c17539e7c3df4a8af6a2b481d352eb08d462..febf69739e02594a96002ae9a56c91f6fb1b83d2 100644 (file)
@@ -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
index aa4a9949ee737caffbb63f8129569257d6b3e02c..8bf804ab1a4e2ef8bd3ff280f7f8dca4c784696a 100644 (file)
@@ -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]),
   [], [])