configure
changeset 12978 d2e027c5a389
parent 12974 0fef4b21fa1d
child 12984 774ceeac9335
     1.1 --- a/configure	Wed Jul 31 23:37:02 2019 +0300
     1.2 +++ b/configure	Thu Aug 01 17:41:40 2019 +0300
     1.3 @@ -24221,6 +24221,12 @@
     1.4              CFLAGS="$save_CFLAGS"
     1.5              if test x$have_libusb_h = xyes; then
     1.6                  hidapi_support=yes
     1.7 +            elif test x$onlylibusb = xno; then
     1.8 +                case "$host" in
     1.9 +                *-*-darwin* )
    1.10 +                    hidapi_support=yes
    1.11 +                    ;;
    1.12 +                esac
    1.13              fi
    1.14          fi
    1.15  
    1.16 @@ -24236,6 +24242,12 @@
    1.17                  if test x$onlylibusb = xyes; then
    1.18                      SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
    1.19                      EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
    1.20 +                elif test x$have_libusb_h != xyes ; then
    1.21 +                    case "$host" in
    1.22 +                    *-*-darwin* )
    1.23 +                        SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
    1.24 +                        ;;
    1.25 +                    esac
    1.26                  else
    1.27                      if test x$have_loadso != xyes; then
    1.28                          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5