annotate configure.ac @ 154:3a3bb2197b7f

discovered hex-values for every move.
author Robert McIntyre <rlm@mit.edu>
date Tue, 20 Mar 2012 02:40:59 -0500
parents b1969e1b310d
children
rev   line source
rlm@9 1 AC_PREREQ([2.68])
rlm@9 2
rlm@6 3 AC_INIT([vba-rlm], [1.0])
rlm@6 4
rlm@19 5 AC_CONFIG_AUX_DIR([build-aux])
rlm@19 6
rlm@19 7 AM_INIT_AUTOMAKE([foreign dist-bzip2])
rlm@19 8
rlm@9 9 dnl TODO: change this to gba.cpp or something
rlm@12 10 AC_CONFIG_SRCDIR([src/lua/lopcodes.c])
rlm@9 11 AC_CONFIG_HEADERS([config.h])
rlm@18 12
rlm@18 13 # Checks for programs.
rlm@18 14 AC_PROG_CXX
rlm@18 15 AC_PROG_CC
rlm@21 16 AC_PROG_AWK
rlm@21 17 AC_PROG_INSTALL
rlm@9 18 AC_PROG_RANLIB
rlm@21 19 AC_PROG_CPP
rlm@21 20 AC_PROG_MKDIR_P
rlm@27 21 AC_PATH_PROG(NASM, nasm)
rlm@45 22 AC_PROG_LIBTOOL
rlm@19 23
rlm@46 24
rlm@21 25 # Checks for libraries.
rlm@30 26 AC_CHECK_LIB(z, gzopen,
rlm@30 27 , AC_MSG_ERROR([*** Cannot compile without zlib.]))
rlm@30 28 AC_CHECK_LIB(png, png_create_write_struct,
rlm@30 29 , AC_MSG_ERROR([*** Cannot compile without libpng.]), [-lz])
rlm@30 30
rlm@30 31 SDL_VERSION=1.2.2
rlm@30 32 AM_PATH_SDL($SDL_VERSION, :,
rlm@30 33 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
rlm@21 34 AC_CHECK_LIB([SDL], [SDL_Init])
rlm@30 35
rlm@21 36 AC_CHECK_LIB([pthread], [pthread_create])
rlm@19 37
rlm@19 38
rlm@19 39
rlm@9 40 # Checks for header files.
rlm@28 41 AC_FUNC_ALLOCA
rlm@28 42 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])
rlm@9 43
rlm@9 44 # Checks for typedefs, structures, and compiler characteristics.
rlm@18 45 AC_HEADER_STDBOOL
rlm@18 46 AC_C_INLINE
rlm@21 47 AC_TYPE_INT16_T
rlm@21 48 AC_TYPE_INT32_T
rlm@21 49 AC_TYPE_INT64_T
rlm@21 50 AC_TYPE_INT8_T
rlm@9 51 AC_TYPE_SIZE_T
rlm@21 52 AC_TYPE_UINT16_T
rlm@21 53 AC_TYPE_UINT32_T
rlm@21 54 AC_TYPE_UINT64_T
rlm@21 55 AC_TYPE_UINT8_T
rlm@9 56 AC_CHECK_TYPES([ptrdiff_t])
rlm@9 57
rlm@9 58 # Checks for library functions.
rlm@9 59 AC_FUNC_ERROR_AT_LINE
rlm@21 60 AC_FUNC_FORK
rlm@21 61 AC_FUNC_MALLOC
rlm@9 62 AC_FUNC_MKTIME
rlm@9 63 AC_FUNC_REALLOC
rlm@9 64 AC_FUNC_STRCOLL
rlm@21 65 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])
rlm@21 66
rlm@46 67
rlm@46 68
rlm@46 69 # find JNI headers
rlm@46 70 AC_ARG_VAR([JAVA_INCLUDE_PATH], [The path to the jni.h])
rlm@46 71 AC_ARG_VAR([JAVA_INCLUDE_PATH2], [The path to jni_md.h])
rlm@46 72
rlm@46 73
rlm@46 74 if test "x$JAVA_INCLUDE_PATH" = "x"; then
rlm@46 75 echo "----------------------------------"
rlm@46 76 echo "you must have JAVA_INCLUDE_PATH defined."
rlm@46 77 echo "this is the path to jni.h"
rlm@46 78 echo "----------------------------------"
rlm@46 79 fi
rlm@46 80
rlm@46 81 if test "x$JAVA_INCLUDE_PATH2" = "x"; then
rlm@46 82 echo "----------------------------------"
rlm@46 83 echo "you must have JAVA_INCLUDE_PATH2 defined."
rlm@46 84 echo "this is the path to jni_md.h"
rlm@46 85 echo "----------------------------------"
rlm@46 86 fi
rlm@46 87
rlm@46 88 if test "x$JAVA_INCLUDE_PATH" = "x"; then
rlm@46 89 AC_MSG_ERROR([JAVA_INCLUDE_PATH not defined])
rlm@46 90 fi
rlm@46 91
rlm@46 92 if test "x$JAVA_INCLUDE_PATH2" = "x"; then
rlm@46 93 AC_MSG_ERROR([JAVA_INCLUDE_PATH2 not defined])
rlm@46 94 fi
rlm@46 95
rlm@46 96 #AC_SUBST(JAVA_INCLUDE_PATH)
rlm@46 97 #AC_SUBST(JAVA_INCLUDE_PATH2)
rlm@46 98
rlm@8 99 AC_CONFIG_FILES([Makefile
rlm@8 100 src/Makefile
rlm@18 101 src/lua/Makefile
rlm@46 102 src/clojure/Makefile
rlm@19 103 src/gb/Makefile
rlm@19 104 src/gba/Makefile
rlm@26 105 src/common/Makefile
rlm@27 106 src/SFMT/Makefile
rlm@28 107 src/filters/Makefile
rlm@30 108 src/prof/Makefile
rlm@28 109 src/sdl/Makefile])
rlm@8 110
rlm@19 111
rlm@6 112
rlm@30 113 ### RLM: investigate this further
rlm@30 114 CXXFLAGS="$CXXFLAGS -DC_CORE"
rlm@30 115
rlm@30 116
rlm@6 117 AC_OUTPUT
rlm@6 118