diff --git a/configure.ac b/configure.ac index 3518006a28a1fcb69f8aebb9450921abe76ce5d1..866372f72246612fad6c7c548b0de5b56b336d6c 100644 --- a/configure.ac +++ b/configure.ac @@ -326,6 +326,25 @@ AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]), AC_MSG_RESULT(no) ) +dnl ********************************************************************** +dnl Check for the presence of the winmm library. +dnl ********************************************************************** + +AC_MSG_CHECKING([for timeGetTime in winmm]) +my_ac_save_LIBS=$LIBS +LIBS="-lwinmm $LIBS" +AC_TRY_LINK([#include + #include + ], + [timeGetTime();], + [ dnl worked! + AC_MSG_RESULT([yes]) + ], + [ dnl failed, restore LIBS + LIBS=$my_ac_save_LIBS + AC_MSG_RESULT(no)] + ) + dnl ********************************************************************** dnl Checks for IPv6 dnl **********************************************************************