# HG changeset patch # User Robert McIntyre # Date 1363888125 0 # Node ID 858cb0e04ae5fbf539a964c51ca273e0acdff4d7 # Parent 6803cb8a6ebf50a85d5cdca2bb4e12fb95d6aee3 cleanup. diff -r 6803cb8a6ebf -r 858cb0e04ae5 configure.ac --- a/configure.ac Thu Mar 21 17:21:54 2013 +0000 +++ b/configure.ac Thu Mar 21 17:48:45 2013 +0000 @@ -1,13 +1,13 @@ AC_PREREQ([2.68]) -AC_INIT([vba-rlm], [1.0]) +AC_INIT([VisualBoyAdvance], [1.7.2]) AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE([foreign dist-bzip2]) -dnl TODO: change this to gba.cpp or something -AC_CONFIG_SRCDIR([src/lua/lopcodes.c]) +AC_CONFIG_SRCDIR([src/gb/GB.cpp]) + AC_CONFIG_HEADERS([config.h]) # Checks for programs. @@ -23,25 +23,24 @@ # Checks for libraries. AC_CHECK_LIB(z, gzopen, , AC_MSG_ERROR([*** Cannot compile without zlib.])) + AC_CHECK_LIB(png, png_create_write_struct, - , AC_MSG_ERROR([*** Cannot compile without libpng.]), [-lz]) + , AC_MSG_ERROR([*** Cannot compile without libpng.])) SDL_VERSION=1.2.2 AM_PATH_SDL($SDL_VERSION, :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])) + AC_CHECK_LIB([SDL], [SDL_Init]) AC_CHECK_LIB([pthread], [pthread_create]) - - # Checks for header files. AC_FUNC_ALLOCA AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \ - netinet/in.h stddef.h stdint.h stdlib.h \ - string.h strings.h sys/socket.h unistd.h \ - libintl.h]) + netinet/in.h stddef.h stdint.h stdlib.h string.h \ + strings.h sys/socket.h unistd.h libintl.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL @@ -66,9 +65,9 @@ AC_FUNC_STRCOLL AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \ - localeconv memchr memset modf pow setlocale \ - socket sqrt strcasecmp strchr strcspn strdup \ - strerror strpbrk strrchr strstr strtoul]) + localeconv memchr memset modf pow setlocale socket \ + sqrt strcasecmp strchr strcspn strdup strerror \ + strpbrk strrchr strstr strtoul]) AC_CONFIG_FILES([Makefile src/Makefile