Add Cygwin/MingW support for winmm library... (STR #1121)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-12-14 02:27:23 +00:00
parent 4ba1119822
commit e73818789d

View File

@ -426,13 +426,22 @@ AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))
dnl Check for audio libraries...
AUDIOLIBS=""
AC_CHECK_HEADER(alsa/asoundlib.h,
AC_DEFINE(HAVE_ALSA_ASOUNDLIB_H)
AUDIOLIBS="-lasound")
case $uname in
CYGWIN* | MINGW*)
dnl Cygwin environment...
AUDIOLIBS="-lwinmm"
;;
if test x$uname = xDarwin; then
AUDIOLIBS="-framework CoreAudio"
fi
Darwin*)
AUDIOLIBS="-framework CoreAudio"
;;
*)
AC_CHECK_HEADER(alsa/asoundlib.h,
AC_DEFINE(HAVE_ALSA_ASOUNDLIB_H)
AUDIOLIBS="-lasound")
;;
esac
AC_SUBST(AUDIOLIBS)