]> Dogcows Code - chaz/yoink/blobdiff - configure.ac
new classes; yajl library
[chaz/yoink] / configure.ac
index eac5ab07381f0f586e276180a60a1b2b17cc28ad..15cba2c2f8ed7116a5165c2a43dea6564c05a2d4 100644 (file)
@@ -1,15 +1,43 @@
 AC_PREREQ(2.60)
 AC_INIT([yoink],[0.1],[chaz@dogcows.com])
 AM_INIT_AUTOMAKE
-AC_CONFIG_SRCDIR([src/yoink.cc])
+AC_CONFIG_SRCDIR([src/YoinkApp.cc])
 
+AC_PROG_CC
 AC_PROG_CXX
-AC_PROG_LIBTOOL
+AC_PROG_RANLIB
 AC_PROG_INSTALL
-
 AM_PROG_CC_C_O
 
+
+AC_HEADER_STDC
+
+AC_SEARCH_LIBS([glClear], [GL], [have_opengl=yes])
+if test ! "x${have_opengl}" = xyes
+then
+       AC_MSG_ERROR([libGL is required])
+fi
+
+AC_SEARCH_LIBS([SDL_Init], [SDL], [have_sdl=yes])
+if test ! "x${have_sdl}" = xyes
+then
+       AC_MSG_ERROR([libSDL is required])
+fi
+
+AC_SEARCH_LIBS([IMG_Load], [SDL_image], [have_sdlimage=yes])
+if test ! "x${have_sdlimage}" = xyes
+then
+       AC_MSG_ERROR([libSDL_image is required])
+fi
+
+AC_SEARCH_LIBS([clock_gettime], [rt], [have_librt=yes])
+if test "x${have_librt}" = xyes
+then
+       AC_DEFINE([HAVE_LIBRT], 1, [high-resolution timer enabled])
+fi
+
 AC_CONFIG_FILES([Makefile
+                                yajl/Makefile
                                 src/Makefile])
 AC_OUTPUT
 
This page took 0.020185 seconds and 4 git commands to generate.