configure
changeset 12978 d2e027c5a389
parent 12974 0fef4b21fa1d
child 12984 774ceeac9335
equal deleted inserted replaced
12976:07104eac00fb 12978:d2e027c5a389
 24219 
 24219 
 24220 
 24220 
 24221             CFLAGS="$save_CFLAGS"
 24221             CFLAGS="$save_CFLAGS"
 24222             if test x$have_libusb_h = xyes; then
 24222             if test x$have_libusb_h = xyes; then
 24223                 hidapi_support=yes
 24223                 hidapi_support=yes
       
 24224             elif test x$onlylibusb = xno; then
       
 24225                 case "$host" in
       
 24226                 *-*-darwin* )
       
 24227                     hidapi_support=yes
       
 24228                     ;;
       
 24229                 esac
 24224             fi
 24230             fi
 24225         fi
 24231         fi
 24226 
 24232 
 24227         if test x$hidapi_support = xyes; then
 24233         if test x$hidapi_support = xyes; then
 24228 
 24234 
 24234             if test x$skiplibusb = xno; then
 24240             if test x$skiplibusb = xno; then
 24235                 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
 24241                 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
 24236                 if test x$onlylibusb = xyes; then
 24242                 if test x$onlylibusb = xyes; then
 24237                     SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
 24243                     SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
 24238                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
 24244                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
       
 24245                 elif test x$have_libusb_h != xyes ; then
       
 24246                     case "$host" in
       
 24247                     *-*-darwin* )
       
 24248                         SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
       
 24249                         ;;
       
 24250                     esac
 24239                 else
 24251                 else
 24240                     if test x$have_loadso != xyes; then
 24252                     if test x$have_loadso != xyes; then
 24241                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
 24253                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
 24242 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
 24254 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
 24243                     fi
 24255                     fi