mirror of
https://github.com/linux-usb-gadgets/libusbgx.git
synced 2025-07-13 07:09:44 +03:00
pkgconfig: make Requires for libconfig optional
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
This commit is contained in:
parent
38dd92f7c0
commit
92deb97932
2 changed files with 7 additions and 1 deletions
|
@ -36,12 +36,18 @@ AS_IF([test "x$with_libconfig" = xyes], [
|
||||||
AC_DEFINE(HAVE_LIBCONFIG_15, 1, [detected libconfig equal to or greater than 1.5]),
|
AC_DEFINE(HAVE_LIBCONFIG_15, 1, [detected libconfig equal to or greater than 1.5]),
|
||||||
AC_DEFINE(HAVE_LIBCONFIG_15, 0, []))
|
AC_DEFINE(HAVE_LIBCONFIG_15, 0, []))
|
||||||
])
|
])
|
||||||
|
libconfig_req="libconfig"
|
||||||
CFLAGS="$CFLAGS $LIBCONFIG_CFLAGS"
|
CFLAGS="$CFLAGS $LIBCONFIG_CFLAGS"
|
||||||
LIBS="$LIBS $LIBCONFIG_LIBS"
|
LIBS="$LIBS $LIBCONFIG_LIBS"
|
||||||
], [
|
], [
|
||||||
|
libconfig_req=""
|
||||||
enable_gadget_schemes=no
|
enable_gadget_schemes=no
|
||||||
])
|
])
|
||||||
|
|
||||||
|
REQUIRES="$libconfig_req"
|
||||||
|
|
||||||
|
AC_SUBST([REQUIRES])
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$enable_examples" = xyes])
|
AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$enable_examples" = xyes])
|
||||||
|
|
||||||
AS_IF([test "x$enable_tests" = xyes], [
|
AS_IF([test "x$enable_tests" = xyes], [
|
||||||
|
|
|
@ -5,7 +5,7 @@ includedir=@includedir@
|
||||||
|
|
||||||
Name: libusbgx
|
Name: libusbgx
|
||||||
Description: USB gadget-configfs library
|
Description: USB gadget-configfs library
|
||||||
Requires: libconfig
|
Requires: @REQUIRES@
|
||||||
Version: @PACKAGE_VERSION@
|
Version: @PACKAGE_VERSION@
|
||||||
Libs: -L${libdir} -lusbgx
|
Libs: -L${libdir} -lusbgx
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue