X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=configure.ac;h=a9018e12b8b7373350d1a9fa237c8adbe738d24c;hp=a2db4cfda05fafd56e8bad35c71e07388144e272;hb=64bd443538f57ad1bdff6c6b35953e72141129b2;hpb=33842c860fe18ca8cf087905992885687434320c diff --git a/configure.ac b/configure.ac index a2db4cf..a9018e1 100644 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,7 @@ AC_INIT([Yoink], [0.1], [chaz@dogcows.com], [yoink]) AC_CANONICAL_TARGET -AC_CONFIG_SRCDIR([src/YoinkApp.cc]) +AC_CONFIG_SRCDIR([src/GameLayer.cc]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE @@ -94,6 +94,11 @@ AC_ARG_WITH([log-level], [log_level=$withval], [log_level=3]) +AC_ARG_ENABLE([double], + [ --enable-double use double-precision numbers], + [double=$enableval], + [double=no]) + if test x$developer = xyes then @@ -120,6 +125,8 @@ if test x$profile = xyes then CFLAGS="$CFLAGS -pg" CXXFLAGS="$CXXFLAGS -pg" + AC_DEFINE([PROFILING_ENABLED], 1, + [Define to 1 if profiling is built in.]) fi if test x$extra_warnings = xyes @@ -128,6 +135,13 @@ then CXXFLAGS="$CXXFLAGS -Wextra -Wno-unused-parameter" fi +if test x$double = xyes +then + AC_DEFINE([USE_DOUBLE_PRECISION], 1, + [Define to 1 if you want to use double-precison numbers.]) +fi + + AC_DEFINE_UNQUOTED([YOINK_LOGLEVEL], [$log_level], [Define to detail level of logging.]) @@ -153,12 +167,6 @@ AC_DEFINE_UNQUOTED([YOINK_DATADIR], ["$DATADIR"], [Define to path of game asset directory.]) -CONFIGFILES="\$HOME/.yoinkrc:/etc/yoinkrc" - -AC_DEFINE_UNQUOTED([YOINK_CONFIGFILES], ["$CONFIGFILES"], - [Define to colon-delimited configuration file paths.]) - - # # Split the version number into components. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -274,6 +282,15 @@ AC_SEARCH_LIBS([ov_open], [vorbisfile],, [missing=yes echo "***** Missing libvorbisfile ($website) *****"]) +##### liblua ##### +website="http://www.lua.org/" +AC_CHECK_HEADERS([lua.h],, + [missing=yes + echo "***** Missing lua headers ($website) *****"]) +AC_SEARCH_LIBS([lua_load], [lua],, + [missing=yes + echo "***** Missing liblua ($website) *****"]) + ##### librt (optional) ##### AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], 1, @@ -291,10 +308,9 @@ fi #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DATA_FILES=$(echo $(cd data; \ - find . -name "*.json" \ + find . -name "*.lua" \ -o -name "*.ogg" \ -o -name "*.png" \ - -o -name "*.xm" \ -o -name "yoinkrc")) AC_SUBST([DATA_FILES])