]> Dogcows Code - chaz/yoink/blobdiff - configure.ac
initial port to win32
[chaz/yoink] / configure.ac
index 731e421d86f9b67c58f38c347dc29d23d3e915b0..c5104297add457585353f72bdd3c8eff261c732c 100644 (file)
@@ -39,8 +39,8 @@ AC_ARG_ENABLE([debug],
                          [debug=$enableval
                           if test x$debug = xyes
                           then
-                                  CFLAGS="-Wall -Werror -gstabs+ -O0 -DDEBUG"
-                                  CXXFLAGS="-Wall -Werror -gstabs+ -O0 -DDEBUG"
+                                  CFLAGS="-O0 -DDEBUG"
+                                  CXXFLAGS="-O0 -DDEBUG"
                           else
                                   CFLAGS="-O2 -DNDEBUG"
                                   CXXFLAGS="-O2 -DNDEBUG"
@@ -69,6 +69,11 @@ AC_ARG_WITH([assetdir],
                        [DATADIR="$withval"],
                        [eval DATADIR="$datarootdir/yoink"])
 
+case "${host}" in
+       *mingw32*)
+       DATADIR="data"
+esac
+
 AC_SUBST([DATADIR])
 AC_DEFINE_UNQUOTED([YOINK_DATADIR], ["$DATADIR"],
                                   [Define to path of game asset directory.])
@@ -96,22 +101,22 @@ BOOST_BIND
 BOOST_FUNCTION
 
 AC_SEARCH_LIBS([IMG_Load], [SDL_image],,
-                          [AC_MSG_ERROR([libSDL_image is required])])
+                          [AC_MSG_ERROR([SDL_image is required])])
 
 AC_SEARCH_LIBS([Sound_Init], [SDL_sound],,
-                          [AC_MSG_ERROR([libSDL_sound is required])])
+                          [AC_MSG_ERROR([SDL_sound is required])])
 
-AC_SEARCH_LIBS([glBegin], [GL],,
-                          [AC_MSG_ERROR([libGL is required])])
+AC_SEARCH_LIBS([glBegin], [GL opengl32],,
+                          [AC_MSG_ERROR([OpenGL is required])])
 
-AC_SEARCH_LIBS([gluPerspective], [GLU],,
-                          [AC_MSG_ERROR([libGLU is required])])
+AC_SEARCH_LIBS([gluPerspective], [GLU MesaGLU glu32],,
+                          [AC_MSG_ERROR([GLU is required])])
 
-AC_SEARCH_LIBS([alGenBuffers], [openal],,
-                          [AC_MSG_ERROR([libopenal is required])])
+AC_SEARCH_LIBS([alGenBuffers], [openal openal32],,
+                          [AC_MSG_ERROR([OpenAL is required])])
 
 AC_SEARCH_LIBS([alutInit], [alut],,
-                          [AC_MSG_ERROR([libalut is required])])
+                          [AC_MSG_ERROR([alut is required])])
 
 AC_SEARCH_LIBS([clock_gettime], [rt],
                           [AC_DEFINE([HAVE_CLOCK_GETTIME], 1,
This page took 0.020141 seconds and 4 git commands to generate.