From 309e860e17465304fd08774cc054e627ee659f4a Mon Sep 17 00:00:00 2001 From: msweet Date: Tue, 24 Jun 2014 19:08:36 +0000 Subject: [PATCH] Mirror fix from trunk. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.7@11951 a1ca3aef-8c08-0410-bb20-df032aa958be --- CHANGES.txt | 1 + config-scripts/cups-common.m4 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 4865b3e0dd..db2edcb161 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -14,6 +14,7 @@ CHANGES IN CUPS V1.7.4 - The RPM spec file did not work due to the new Brazilian Portuguese localization (STR #4436) - Fixed an "IPP read error" issue (STR #4440) + - Fixed the --disable-libusb configure option (STR #4439) CHANGES IN CUPS V1.7.3 diff --git a/config-scripts/cups-common.m4 b/config-scripts/cups-common.m4 index 6341d25217..57e6a06364 100644 --- a/config-scripts/cups-common.m4 +++ b/config-scripts/cups-common.m4 @@ -230,7 +230,7 @@ AC_SUBST(LIBUSB) AC_SUBST(USBQUIRKS) if test "x$PKGCONFIG" != x; then - if test x$enable_libusb = xyes -o $uname != Darwin; then + if test x$enable_libusb != xno -a $uname != Darwin; then AC_MSG_CHECKING(for libusb-1.0) if $PKGCONFIG --exists libusb-1.0; then AC_MSG_RESULT(yes) @@ -240,6 +240,9 @@ if test "x$PKGCONFIG" != x; then USBQUIRKS="\$(DATADIR)/usb" else AC_MSG_RESULT(no) + if test x$enable_libusb = xyes; then + AC_MSG_ERROR(libusb required for --enable-libusb.) + fi fi fi elif test x$enable_libusb = xyes; then -- 2.47.2