]> Dogcows Code - chaz/yoink/blobdiff - configure.ac
added missing octree method
[chaz/yoink] / configure.ac
index 561b39e3908a32eadf7b3fed3933035e70a336fd..47ee0baef14494680d9803a5cb60494e34b6238d 100644 (file)
@@ -53,8 +53,14 @@ case "${host}" in
                MACOSX=yes
                LIBS="$LIBS -Wl,-framework"
        ;;
+       *-linux-gnu*)
+               LINUX=yes
+               AC_PATH_PROGS([RPMBUILD], [rpmbuild])
+               AC_SUBST(RPMBUILD)
+       ;;
 esac
 
+AM_CONDITIONAL([LINUX], test "$LINUX" = "yes")
 AM_CONDITIONAL([WIN32], test "$WIN32" = "yes")
 
 
@@ -268,6 +274,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,
@@ -286,6 +301,7 @@ fi
 
 DATA_FILES=$(echo $(cd data; \
                                        find . -name "*.json" \
+                                               -o -name "*.lua" \
                                                -o -name "*.ogg" \
                                                -o -name "*.png" \
                                                -o -name "*.xm" \
This page took 0.018462 seconds and 4 git commands to generate.