configure.in
branchSDL-1.2
changeset 4028 81837116ef59
parent 3991 7a649501c089
child 4034 4ea82f5e7e2c
equal deleted inserted replaced
4027:407ecf3ad3b3 4028:81837116ef59
   576 AC_HELP_STRING([--enable-nas], [support the NAS audio API [[default=yes]]]),
   576 AC_HELP_STRING([--enable-nas], [support the NAS audio API [[default=yes]]]),
   577                   , enable_nas=yes)
   577                   , enable_nas=yes)
   578     if test x$enable_audio = xyes -a x$enable_nas = xyes; then
   578     if test x$enable_audio = xyes -a x$enable_nas = xyes; then
   579         AC_MSG_CHECKING(for NAS audio support)
   579         AC_MSG_CHECKING(for NAS audio support)
   580         have_nas=no
   580         have_nas=no
   581         if test -r /usr/X11R6/include/audio/audiolib.h; then
   581         if true; then
   582             have_nas=yes
   582             have_nas=yes
   583             NAS_CFLAGS="-I/usr/X11R6/include/"
   583             NAS_CFLAGS=""
   584             NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
   584             NAS_LIBS="-laudio -lXt"
   585 
   585 
   586         dnl On IRIX, the NAS includes are in a different directory,
   586         dnl On IRIX, the NAS includes are in a different directory,
   587         dnl and libnas must be explicitly linked in
   587         dnl and libnas must be explicitly linked in
   588 
   588 
   589         elif test -r /usr/freeware/include/nas/audiolib.h; then
   589         elif test -r /usr/freeware/include/nas/audiolib.h; then
  1759             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  1759             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  1760             pthread_lib="-pthread"
  1760             pthread_lib="-pthread"
  1761             ;;
  1761             ;;
  1762         *-*-netbsd*)
  1762         *-*-netbsd*)
  1763             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  1763             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  1764             pthread_lib="-L/usr/lib -lpthread"
  1764             pthread_lib="-lpthread"
  1765             ;;
  1765             ;;
  1766         *-*-openbsd*)
  1766         *-*-openbsd*)
  1767             pthread_cflags="-D_REENTRANT"
  1767             pthread_cflags="-D_REENTRANT"
  1768             pthread_lib="-pthread"
  1768             pthread_lib="-pthread"
  1769             ;;
  1769             ;;
  2102             AC_TRY_COMPILE([
  2102             AC_TRY_COMPILE([
  2103               #include <sys/types.h>
  2103               #include <sys/types.h>
  2104               #if defined(HAVE_USB_H)
  2104               #if defined(HAVE_USB_H)
  2105               #include <usb.h>
  2105               #include <usb.h>
  2106               #endif
  2106               #endif
       
  2107 	      #ifdef __DragonFly__
       
  2108               #include <bus/usb/usb.h>
       
  2109               #include <bus/usb/usbhid.h>
       
  2110 	      #else
  2107               #include <dev/usb/usb.h>
  2111               #include <dev/usb/usb.h>
  2108               #include <dev/usb/usbhid.h>
  2112               #include <dev/usb/usbhid.h>
       
  2113 	      #endif
  2109               #if defined(HAVE_USBHID_H)
  2114               #if defined(HAVE_USBHID_H)
  2110               #include <usbhid.h>
  2115               #include <usbhid.h>
  2111               #elif defined(HAVE_LIBUSB_H)
  2116               #elif defined(HAVE_LIBUSB_H)
  2112               #include <libusb.h>
  2117               #include <libusb.h>
  2113               #elif defined(HAVE_LIBUSBHID_H)
  2118               #elif defined(HAVE_LIBUSBHID_H)