]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fixed the --disable-libusb configure option (STR #4439)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 24 Jun 2014 19:03:02 +0000 (19:03 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 24 Jun 2014 19:03:02 +0000 (19:03 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11950 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-1.7.txt
config-scripts/cups-common.m4

index 0fb25d7bdccb553064ad9f22eb04abe4ae7d13d6..76eabe97e1816dadd8def82312c8f5c836c8a5b8 100644 (file)
@@ -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
index 708f613dd2487bf2f3873fd384950d42f96be232..9451561206398651f55406cd3d3bd8467e46fc76 100644 (file)
@@ -231,7 +231,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)
@@ -241,6 +241,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