kopia lustrzana https://gitlab.com/sane-project/backends
configure: Make --with-usb-record-replay opt-in rather than opt-out
rodzic
baa4eb3048
commit
f8f90f8b98
20
configure.ac
20
configure.ac
|
@ -434,16 +434,18 @@ dnl ******************************************************************
|
||||||
dnl Check for USB record/replay support
|
dnl Check for USB record/replay support
|
||||||
dnl ******************************************************************
|
dnl ******************************************************************
|
||||||
AC_ARG_WITH(usb_record_replay,
|
AC_ARG_WITH(usb_record_replay,
|
||||||
[AS_HELP_STRING([--with-usb-record-replay],
|
AS_HELP_STRING([--with-usb-record-replay],
|
||||||
[enable USB record and replay to XML files @<:@default=no@:>@])],
|
[enable USB record and replay to XML files @<:@default=yes@:>@]))
|
||||||
[],
|
|
||||||
[with_usb_record_replay=no])
|
|
||||||
|
|
||||||
if test "$with_usb_record_replay" = "no"; then
|
if test "x$with_usb_record_replay" != "xno"; then
|
||||||
echo "Not including USB record and replay support"
|
PKG_CHECK_MODULES([XML], [libxml-2.0], have_libxml=yes, have_libxml=no)
|
||||||
else
|
if test "x$have_libxml" = xyes; then
|
||||||
PKG_CHECK_MODULES([XML], [libxml-2.0],
|
AC_DEFINE(WITH_USB_RECORD_REPLAY, 1, [define if USB record replay is enabled])
|
||||||
[AC_DEFINE(WITH_USB_RECORD_REPLAY, 1, [define if USB record replay is enabled])])
|
else
|
||||||
|
if test "x$with_usb_record_replay" = xyes; then
|
||||||
|
AC_MSG_ERROR([USB record and replay support was requested but libxml-2.0 was not found])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ************
|
dnl ************
|
||||||
|
|
Ładowanie…
Reference in New Issue