must check for timespec after setting -mno-cygwin
authorBradley Bell <btb@icculus.org>
Mon, 12 May 2003 23:30:12 +0000 (23:30 +0000)
committerBradley Bell <btb@icculus.org>
Mon, 12 May 2003 23:30:12 +0000 (23:30 +0000)
ChangeLog
configure.ac

index ea6fda0..80d61e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2003-05-12  Bradley Bell  <btb@icculus.org>
 
+       * configure.ac: must check for timespec after setting -mno-cygwin
+
        * main/inferno.c: added -nohogdir and -userdir options
 
        * main/titles.c: use briefings with no extension
index 40b85ae..f00ab53 100644 (file)
@@ -36,8 +36,6 @@ AC_PROG_CXX
 AC_STDC_HEADERS
 AC_PATH_PROGS(NASM, nasm nasmw, no)
 AC_C_BIGENDIAN
-AC_CHECK_DECLS(nanosleep,,,[#include <time.h>])
-AC_CHECK_TYPES(struct timespec)
 
 case $host_cpu in
        sparc)
@@ -62,6 +60,9 @@ case $host_os in
         ;;
 esac
 
+AC_CHECK_DECLS(nanosleep,,,[#include <time.h>])
+AC_CHECK_TYPES(struct timespec)
+
 AM_CONDITIONAL(MINGW32, test x$MINGW32 = xyes)
 if test x$MINGW32 = xyes; then
     GL_LIBS="opengl32 glu32"