diff options
Diffstat (limited to 'devel/libftdi/files/extra-patch-configure.in')
-rw-r--r-- | devel/libftdi/files/extra-patch-configure.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/devel/libftdi/files/extra-patch-configure.in b/devel/libftdi/files/extra-patch-configure.in new file mode 100644 index 000000000000..d3a8a6f6635c --- /dev/null +++ b/devel/libftdi/files/extra-patch-configure.in @@ -0,0 +1,34 @@ +--- configure.in.orig 2009-03-07 20:14:41.000000000 +0300 ++++ configure.in 2009-03-07 20:15:29.000000000 +0300 +@@ -7,30 +7,7 @@ + AC_PROG_CC + AM_PROG_LIBTOOL + +-dnl check for libusb-config +-AC_PATH_PROG(HAVELIBUSB, libusb-config, $PATH) +- +-if test ! -z "$HAVELIBUSB"; then +- LIBUSB_CFLAGS=`$HAVELIBUSB --cflags` +- LIBUSB_LIBS=`$HAVELIBUSB --libs` +- +- CFLAGS="$CFLAGS $LIBUSB_CFLAGS" +- LIBS="$LIBS $LIBUSB_LIBS" +-else +- AC_MSG_ERROR([*** libusb-config not found. You need a working libusb installation.]) +-fi +- +-dnl check for version of libusb +-AC_MSG_CHECKING([if libusb version is >= 0.1.7]) +-libusb_version_needed="1007" +-libusb_version=`$HAVELIBUSB --version | sed -e "s/libusb //" | awk 'BEGIN { FS = "."; } { printf "%d", ($''1 * 1000 + $''2) * 1000 + $''3;}'` +- +-if test $libusb_version -lt $libusb_version_needed; then +- AC_MSG_RESULT(no) +- AC_MSG_ERROR([*** libusb is too old ($libusb_version). You need a libusb installation newer or equal to 0.1.7.]) +-else +- AC_MSG_RESULT(yes) +-fi ++LIBS="$LIBS -lusb" + + ENABLE_ASYNC_MODE=0 + AC_ARG_WITH(async-mode, |