dnl build a Makefile.in from a Makefile.am which lets us define custom
dnl includes, compile alternative source files, etc.
-# Check for external variables daylight and timezone.
+dnl Check for external variables daylight and timezone.
AC_EXT_DAYLIGHT
if test "$have_daylight" = yes; then
AC_DEFINE([HAVE_DAYLIGHT], 1, [Define if system has daylight variable])
AC_DEFINE([HAVE_TIMEZONE], 1, [Define if system has timezone variable])
fi
-# Check for audio support
+dnl add correct audio libs and configure for audio support
audio_LIBS="-lplibsl -lplibsm"
case "${host}" in
*-*-cygwin* | *-*-mingw32*)
esac
AC_SUBST(audio_LIBS)
+AC_DEFINE([ENABLE_AUDIO_SUPPORT], 1, [Define for audio support])
dnl X11 might be installed on Mac OS X or cygwin/mingwin, we don't want
dnl to use it if it is.