aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mpiosh/files/extra-patch-configure.in
blob: 280374f08f68c36c78cdaf766e869f7524b8a94b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- configure.in.orig   2009-04-08 01:50:59.000000000 +0400
+++ configure.in    2009-04-08 01:52:14.000000000 +0400
@@ -60,23 +60,17 @@
 dnl -- check for libusb
 dnl -- this is stolen from libgphoto2
 
-AC_PATH_PROG(LIBUSB_CONFIG,libusb-config)
-if test -n "${LIBUSB_CONFIG}"; then
-    CPPFLAGS_save="$CPPFLAGS"
-    CPPFLAGS="$CPPFLAGS `$LIBUSB_CONFIG --cflags`"
-    AC_CHECK_HEADER(usb.h,[
+AC_CHECK_HEADER(usb.h,[
        LDFLAGS_orig="$LDFLAGS"
-       LDFLAGS="`$LIBUSB_CONFIG --libs`"
+       LDFLAGS="-lusb"
        AC_CHECK_LIB(usb,usb_busses,[
            usb_msg="yes"
            IOLIB_SUBDIRS="$IOLIB_SUBDIRS usb"
-           USB_LIBS="`$LIBUSB_CONFIG --libs`"
-           USB_CFLAGS="`$LIBUSB_CONFIG --cflags`"
-           LIBUSB_VER="`$LIBUSB_CONFIG --version`"],[
+           USB_LIBS="-lusb"
+           USB_CFLAGS=""],[
            usb_msg="no (available version too old)"])
        LDFLAGS="$LDFLAGS_orig"])
     CPPFLAGS="$CPPFLAGS_save"
-fi
 
         # This 'test' call uses non-standard syntax and will fail on most
         # systems, but it's just informational so any warning can be ignored.