Mercurial > vba-clojure
view configure.ac @ 45:f6ff410a87fd
using libtool for convienence libraries
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 06 Mar 2012 22:07:22 -0600 |
parents | 48369c6aeaa0 |
children | b1969e1b310d |
line wrap: on
line source
1 AC_PREREQ([2.68])3 AC_INIT([vba-rlm], [1.0])5 AC_CONFIG_AUX_DIR([build-aux])7 AM_INIT_AUTOMAKE([foreign dist-bzip2])9 dnl TODO: change this to gba.cpp or something10 AC_CONFIG_SRCDIR([src/lua/lopcodes.c])11 AC_CONFIG_HEADERS([config.h])13 # Checks for programs.14 AC_PROG_CXX15 AC_PROG_CC16 AC_PROG_AWK17 AC_PROG_INSTALL18 AC_PROG_RANLIB19 AC_PROG_CPP20 AC_PROG_MKDIR_P21 AC_PATH_PROG(NASM, nasm)22 AC_PROG_LIBTOOL24 # Checks for libraries.25 AC_CHECK_LIB(z, gzopen,26 , AC_MSG_ERROR([*** Cannot compile without zlib.]))27 AC_CHECK_LIB(png, png_create_write_struct,28 , AC_MSG_ERROR([*** Cannot compile without libpng.]), [-lz])30 SDL_VERSION=1.2.231 AM_PATH_SDL($SDL_VERSION, :,32 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))33 AC_CHECK_LIB([SDL], [SDL_Init])35 AC_CHECK_LIB([pthread], [pthread_create])39 # Checks for header files.40 AC_FUNC_ALLOCA41 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])43 # Checks for typedefs, structures, and compiler characteristics.44 AC_HEADER_STDBOOL45 AC_C_INLINE46 AC_TYPE_INT16_T47 AC_TYPE_INT32_T48 AC_TYPE_INT64_T49 AC_TYPE_INT8_T50 AC_TYPE_SIZE_T51 AC_TYPE_UINT16_T52 AC_TYPE_UINT32_T53 AC_TYPE_UINT64_T54 AC_TYPE_UINT8_T55 AC_CHECK_TYPES([ptrdiff_t])57 # Checks for library functions.58 AC_FUNC_ERROR_AT_LINE59 AC_FUNC_FORK60 AC_FUNC_MALLOC61 AC_FUNC_MKTIME62 AC_FUNC_REALLOC63 AC_FUNC_STRCOLL64 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])66 AC_CONFIG_FILES([Makefile67 src/Makefile68 src/lua/Makefile69 src/gb/Makefile70 src/gba/Makefile71 src/common/Makefile72 src/SFMT/Makefile73 src/filters/Makefile74 src/prof/Makefile75 src/sdl/Makefile])79 ### RLM: investigate this further80 CXXFLAGS="$CXXFLAGS -DC_CORE"83 AC_OUTPUT