Andrés García added a check for lwinmm for Mingw/sys
authorDaniel Stenberg <daniel@haxx.se>
Sun, 15 Feb 2004 22:34:58 +0000 (22:34 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 15 Feb 2004 22:34:58 +0000 (22:34 +0000)
configure.ac

index 3518006..866372f 100644 (file)
@@ -327,6 +327,25 @@ AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]),
 )
 
 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 <windef.h>
+             #include <mmsystem.h>
+             ],
+             [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 **********************************************************************