X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=mercenary-reloaded.git;a=blobdiff_plain;f=configure.ac;h=31b0527f175e19a6630cdffb72d32ac732971110;hp=06a906f93d7a863c9863799f6a413a3ca74871d9;hb=f646b52b12124124581f0b58bd5080a965c3bb7e;hpb=b9dd8d380902a9fb640f56d24d0809706c0ee56e diff --git a/configure.ac b/configure.ac index 06a906f..31b0527 100644 --- a/configure.ac +++ b/configure.ac @@ -27,37 +27,63 @@ AC_CANONICAL_HOST AC_CHECK_LIB([m], [main]) AC_CHECK_LIB([pthread], [main]) +build_linux=no +build_windows=no +case "${host_os}" in + linux*) + build_linux=yes + ;; + mingw*) + build_windows=yes + ;; + *) + AC_MSG_ERROR(["OS $host_os is not suppored"]) + ;; +esac +AM_CONDITIONAL(WINDOWS, test "x$build_windows" == "xyes" ) + +# NOTE GLEW IS INCLUDED IN THIS PROJECT + AC_ARG_WITH([sdl2], [AS_HELP_STRING([--with-sdl2], [compile with SDL2 library @<:@default=check@:>@]) ], [], [with_sdl2="check"]) -AC_ARG_WITH([glew], [AS_HELP_STRING([--with-glew], [compile with GLEW library @<:@default=check@:>@]) ], [], [with_glew="check"]) -AS_IF([test "x$with_sdl2" != xno], [PKG_CHECK_MODULES(sdl2, sdl2 >= 2.0, with_sdl2=yes, with_sdl2=no)]) -AS_IF([test "x$with_glew" != xno], [PKG_CHECK_MODULES(glew, glew >= 1.13, with_glew=yes, with_glew=no)]) +#AC_ARG_WITH([glew], [AS_HELP_STRING([--with-glew], [compile with GLEW library @<:@default=check@:>@]) ], [], [with_glew="check"]) +AC_ARG_WITH([ovr], [AS_HELP_STRING([--with-ovr], [compile with LibOVR library @<:@default=no@:>@]) ], [], [with_ovr="check"]) +AS_IF([test "x$with_sdl2" != xno], [PKG_CHECK_MODULES([SDL2], sdl2 >= 2.0, with_sdl2=yes, with_sdl2=no)]) +#AS_IF([test "x$with_glew" != xno], [PKG_CHECK_MODULES([GLEW], glew >= 1.13, with_glew=yes, with_glew=no)]) AM_CONDITIONAL(HAVE_SDL2, test "x$with_sdl2" == "xyes" ) -AM_CONDITIONAL(HAVE_GLEW, test "x$with_glew" == "xyes" ) -AS_IF([test "x$with_sdl2" == "xyes"],[AC_MSG_NOTICE( Compiling with SDL2 support )], [AC_MSG_NOTICE( SDL2 not supported. +#AM_CONDITIONAL(HAVE_GLEW, test "x$with_glew" == "xyes" ) +AM_CONDITIONAL(HAVE_OVR, test "x$with_ovr" == "xyes" ) +AS_IF([test "x$with_sdl2" == "xyes"],[AC_MSG_NOTICE( Compiling with SDL2 support )], [AC_MSG_NOTICE( [ SDL2 not supported. -Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. - -********************************************************************** -NOTE: This package is manatory. The games will not compile without it. -********************************************************************** -)]) -AS_IF([test "x$with_glew" == "xyes"],[AC_MSG_NOTICE( Compiling with GLEW support )], [AC_MSG_NOTICE( GLEW not supported. - -Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. +Consider adjusting the PKG_CONFIG_PATH environment variable, if you installed software in a non-standard prefix. -********************************************************************** -NOTE: This package is manatory. The games will not compile without it. -********************************************************************** -)]) +*********************************************************************** +NOTE: This package is mandatory. The games will not compile without it! +*********************************************************************** +] )]) +#AS_IF([test "x$with_glew" == "xyes"],[AC_MSG_NOTICE( Compiling with GLEW support )], [AC_MSG_NOTICE( [GLEW not supported. +# +#Consider adjusting the PKG_CONFIG_PATH environment variable, if you installed software in a non-standard prefix. +# +#*********************************************************************** +#NOTE: This package is mandatory. The games will not compile without it! +#*********************************************************************** +#] )]) +AS_IF([test "x$with_ovr" == "xyes"],[AC_MSG_NOTICE( Compiling with OVR support )], [AC_MSG_NOTICE( [OVR not supported.] )]) AC_OUTPUT( + include/Makefile src/libcpu/Makefile + src/libframerate/Makefile src/libvideo/Makefile src/libsound/Makefile src/libjoystick/Makefile src/libkeyboard/Makefile src/libdisk/Makefile src/libsdl/Makefile + src/libopengl/Makefile + src/libglew/Makefile + src/libovr/Makefile + src/libtext/Makefile src/mercenary/Makefile src/Makefile Makefile)