libusbgx: Add dependency to libconfig
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 19:42:30 +0000 (20:42 +0100)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 19:42:30 +0000 (20:42 +0100)
This library is used to import and export
gadget/function/config to and from file.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
[Port from libusbg and update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
configure.ac
libusbgx.pc.in
src/Makefile.am

index 0b12faa..3091056 100644 (file)
@@ -4,6 +4,7 @@ AC_PROG_CC
 AM_PROG_AR
 AC_CONFIG_MACRO_DIR([m4])
 AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions])
+PKG_CHECK_MODULES(LIBCONFIG, libconfig)
 LT_INIT
 AC_CONFIG_FILES([Makefile src/Makefile examples/Makefile libusbgx.pc])
 DX_INIT_DOXYGEN([$PACKAGE_NAME],[doxygen.cfg])
index 62cf50b..8ea8fb5 100644 (file)
@@ -5,7 +5,7 @@ includedir=@includedir@
 
 Name: libusbgx
 Description: USB gadget-configfs library
-Requires:
+Requires: libconfig
 Version: @PACKAGE_VERSION@
 Libs: -L${libdir} -lusbg
 Cflags: -I${includedir}
index 25fb64f..7658e39 100644 (file)
@@ -1,4 +1,6 @@
 lib_LTLIBRARIES = libusbgx.la
 libusbgx_la_SOURCES = usbg.c
-libusbgx_la_LDFLAGS = -version-info 0:0:0
+libusbgx_la_LDFLAGS = $(LIBCONFIG_LIBS)
+libusbgx_la_LDFLAGS += -version-info 0:0:0
+libusbgx_la_CFLAGS = $(LIBCONFIG_CFLAGS)
 AM_CPPFLAGS=-I../include/