diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-18 12:15:29 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-18 12:15:29 +0000 |
commit | cc0a133a616aeff57887b27497e4a978b5697c04 (patch) | |
tree | 978223dd6ecdd79400ba89630747c8b7c120fd9b | |
parent | 9ce3a1e6aa40713db5dd11aba3595fb0ad75cc60 (diff) |
use native openal library on win32
-rw-r--r-- | configure.in | 5 | ||||
-rw-r--r-- | src/sys/sys.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 6ea1e8c..e4ec169 100644 --- a/configure.in +++ b/configure.in @@ -67,6 +67,7 @@ case "$host" in *-*-mingw*) HOST_LIBS="-lws2_32" HOST_GL_LIBS="-lopengl32 -lglu32" + HOST_AL_LIBS="-lOpenAL32" ICON_CLIENT="osirion-res.o" ICON_SERVER="osiriond-res.o" AC_MSG_RESULT(win32) @@ -74,6 +75,7 @@ case "$host" in *) HOST_LIBS="" HOST_GL_LIBS="-lGL -lGLU" + HOST_AL_LIBS="-lopenal" ICON_CLIENT="" ICON_SERVER="" AC_MSG_RESULT(generic unix) @@ -131,7 +133,7 @@ AC_CHECK_HEADER(AL/al.h, HAVE_OPENAL=no ) -AL_LIBS="-lopenal" +AL_LIBS="$HOST_AL_LIBS" AC_SUBST(AL_LIBS) AC_MSG_CHECKING([looking for SDL]) @@ -208,6 +210,7 @@ Configuration summary: flags .............. $CXXFLAGS libraries .......... $HOST_LIBS opengl ............. $GL_LIBS + openal ............. $AL_LIBS Installation directories: prefix ............. $PACKAGE_PREFIX diff --git a/src/sys/sys.cc b/src/sys/sys.cc index 36a40a0..10b7897 100644 --- a/src/sys/sys.cc +++ b/src/sys/sys.cc @@ -29,10 +29,12 @@ namespace sys { void mkdir(std::string const &path) { #ifdef _WIN32 +/* std::string p(path); for (size_t i = 0; i < p.size(); i++) if (p[i] == '/') p[i] = '\\'; mkdir(p.c_str()); +*/ #else ::mkdir(path.c_str(), 0777); |