AC_CANONICAL_TARGET
-AC_CONFIG_SRCDIR([src/YoinkApp.cc])
+AC_CONFIG_SRCDIR([src/GameLayer.cc])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
[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.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[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,
DATA_FILES=$(echo $(cd data; \
find . -name "*.json" \
+ -o -name "*.lua" \
-o -name "*.ogg" \
-o -name "*.png" \
-o -name "*.xm" \