Remove all dependencies of plib's SL sound library.
AC_DEFINE([HAVE_TIMEZONE], 1, [Define if system has timezone variable])
fi
-dnl add correct audio libs and configure for audio support
-LIBS="-lplibsl -lplibsm"
+dnl add joystick support libraries
dnl search for FreeBSD library
AC_SEARCH_LIBS(hid_init, usbhid)
-
-case "${host}" in
-*-*-cygwin* | *-*-mingw32*)
- LIBS="$LIBS -lwinmm"
- ;;
-*-apple-darwin*)
- LIBS="$LIBS -framework IOKit -framework CoreFoundation"
- ;;
-*-*-irix* )
- LIBS="$LIBS -laudio"
- ;;
-
-esac
-audio_LIBS="$LIBS"
+joystick_LIBS="$LIBS"
LIBS=""
-AC_SUBST(audio_LIBS)
+AC_SUBST(joystick_LIBS)
+
dnl ENABLE_AUDIO_SUPPORT could be depricated at any time in favor of
dnl just assuming we have audio support on all platform. We can
esac
opengl_LIBS="$LIBS"
-LIBS="$base_LIBS"
-
-dnl search for FreeBSD library
-AC_SEARCH_LIBS(hid_init, usbhid)
+LIBS="$base_LIBS $joystick_LIBS"
dnl check for OpenAL libraries
case "${host}" in
js_demo_SOURCES = js_demo.cxx
-js_demo_LDADD = -lplibjs $(base_LIBS) $(audio_LIBS) -lplibul
+js_demo_LDADD = -lplibjs $(base_LIBS) $(joystick_LIBS) -lplibul
fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h
-fgjs_LDADD = -lplibjs $(base_LIBS) $(audio_LIBS) -lplibul
+fgjs_LDADD = -lplibjs $(base_LIBS) $(joystick_LIBS) -lplibul
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
noinst_PROGRAMS = threedconvert animassist normalmap
threedconvert_SOURCES = 3dconvert.cxx
-threedconvert_LDADD = -lplibssg -lplibsg -lplibul $(opengl_LIBS) $(audio_LIBS)
+threedconvert_LDADD = -lplibssg -lplibsg -lplibul $(opengl_LIBS) $(joystick_LIBS)
animassist_SOURCES = animassist.c
animassist_LDADD = $(base_LIBS)
sbin_PROGRAMS = js_server
js_server_SOURCES = js_server.cxx
-js_server_LDADD = -lplibjs -lplibnet -lplibul $(base_LIBS) $(audio_LIBS) $(network_LIBS)
+js_server_LDADD = -lplibjs -lplibnet -lplibul $(base_LIBS) $(joystick_LIBS) $(network_LIBS)