Merged r2896:2897 from trunk (use dummy joystick if subsystem enabled and

no platform-specific driver exists).

Fixes Bugzilla #356 (and maybe Bugzilla #350).

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402220
This commit is contained in:
Ryan C. Gordon 2006-11-03 21:52:54 +00:00
parent 74852e1d64
commit eb72e866d7

View file

@ -2564,11 +2564,12 @@ case "$host" in
esac
# Verify that we have all the platform specific files we need
if test x$have_joystick != xyes; then
if test x$enable_joystick = xyes; then
AC_DEFINE(SDL_JOYSTICK_DISABLED)
fi
if test x$enable_joystick = xyes; then
if test x$have_joystick != xyes; then
# Wants joystick subsystem, but doesn't have a platform-specific backend...
SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
fi
fi
if test x$have_cdrom != xyes; then
if test x$enable_cdrom = xyes; then