view configure.ac @ 29:2fa26addb901

added version.h
author Robert McIntyre <rlm@mit.edu>
date Sun, 04 Mar 2012 21:09:22 -0600
parents 2efb971df515
children 48369c6aeaa0
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 something
10 AC_CONFIG_SRCDIR([src/lua/lopcodes.c])
11 AC_CONFIG_HEADERS([config.h])
13 # Checks for programs.
14 AC_PROG_CXX
15 AC_PROG_CC
16 AC_PROG_AWK
17 AC_PROG_INSTALL
18 AC_PROG_RANLIB
19 AC_PROG_CPP
20 AC_PROG_MKDIR_P
21 AC_PATH_PROG(NASM, nasm)
23 # Checks for libraries.
24 AC_CHECK_LIB([SDL], [SDL_Init])
25 AC_CHECK_LIB([pthread], [pthread_create])
29 # Checks for header files.
30 AC_FUNC_ALLOCA
31 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])
33 # Checks for typedefs, structures, and compiler characteristics.
34 AC_HEADER_STDBOOL
35 AC_C_INLINE
36 AC_TYPE_INT16_T
37 AC_TYPE_INT32_T
38 AC_TYPE_INT64_T
39 AC_TYPE_INT8_T
40 AC_TYPE_SIZE_T
41 AC_TYPE_UINT16_T
42 AC_TYPE_UINT32_T
43 AC_TYPE_UINT64_T
44 AC_TYPE_UINT8_T
45 AC_CHECK_TYPES([ptrdiff_t])
47 # Checks for library functions.
48 AC_FUNC_ERROR_AT_LINE
49 AC_FUNC_FORK
50 AC_FUNC_MALLOC
51 AC_FUNC_MKTIME
52 AC_FUNC_REALLOC
53 AC_FUNC_STRCOLL
54 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])
56 AC_CONFIG_FILES([Makefile
57 src/Makefile
58 src/lua/Makefile
59 src/gb/Makefile
60 src/gba/Makefile
61 src/common/Makefile
62 src/SFMT/Makefile
63 src/filters/Makefile
64 src/sdl/Makefile])
68 AC_OUTPUT