comparison configure.ac @ 46:858cb0e04ae5

cleanup.
author Robert McIntyre <rlm@mit.edu>
date Thu, 21 Mar 2013 17:48:45 +0000
parents 6803cb8a6ebf
children 3907aac7df1c
comparison
equal deleted inserted replaced
45:6803cb8a6ebf 46:858cb0e04ae5
1 AC_PREREQ([2.68]) 1 AC_PREREQ([2.68])
2 2
3 AC_INIT([vba-rlm], [1.0]) 3 AC_INIT([VisualBoyAdvance], [1.7.2])
4 4
5 AC_CONFIG_AUX_DIR([build-aux]) 5 AC_CONFIG_AUX_DIR([build-aux])
6 6
7 AM_INIT_AUTOMAKE([foreign dist-bzip2]) 7 AM_INIT_AUTOMAKE([foreign dist-bzip2])
8 8
9 dnl TODO: change this to gba.cpp or something 9 AC_CONFIG_SRCDIR([src/gb/GB.cpp])
10 AC_CONFIG_SRCDIR([src/lua/lopcodes.c]) 10
11 AC_CONFIG_HEADERS([config.h]) 11 AC_CONFIG_HEADERS([config.h])
12 12
13 # Checks for programs. 13 # Checks for programs.
14 AC_PROG_CXX 14 AC_PROG_CXX
15 AC_PROG_CC 15 AC_PROG_CC
21 AC_PATH_PROG(NASM, nasm) 21 AC_PATH_PROG(NASM, nasm)
22 22
23 # Checks for libraries. 23 # Checks for libraries.
24 AC_CHECK_LIB(z, gzopen, 24 AC_CHECK_LIB(z, gzopen,
25 , AC_MSG_ERROR([*** Cannot compile without zlib.])) 25 , AC_MSG_ERROR([*** Cannot compile without zlib.]))
26
26 AC_CHECK_LIB(png, png_create_write_struct, 27 AC_CHECK_LIB(png, png_create_write_struct,
27 , AC_MSG_ERROR([*** Cannot compile without libpng.]), [-lz]) 28 , AC_MSG_ERROR([*** Cannot compile without libpng.]))
28 29
29 SDL_VERSION=1.2.2 30 SDL_VERSION=1.2.2
30 AM_PATH_SDL($SDL_VERSION, :, 31 AM_PATH_SDL($SDL_VERSION, :,
31 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])) 32 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
33
32 AC_CHECK_LIB([SDL], [SDL_Init]) 34 AC_CHECK_LIB([SDL], [SDL_Init])
33 35
34 AC_CHECK_LIB([pthread], [pthread_create]) 36 AC_CHECK_LIB([pthread], [pthread_create])
35
36
37 37
38 # Checks for header files. 38 # Checks for header files.
39 AC_FUNC_ALLOCA 39 AC_FUNC_ALLOCA
40 40
41 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \ 41 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \
42 netinet/in.h stddef.h stdint.h stdlib.h \ 42 netinet/in.h stddef.h stdint.h stdlib.h string.h \
43 string.h strings.h sys/socket.h unistd.h \ 43 strings.h sys/socket.h unistd.h libintl.h])
44 libintl.h])
45 44
46 # Checks for typedefs, structures, and compiler characteristics. 45 # Checks for typedefs, structures, and compiler characteristics.
47 AC_HEADER_STDBOOL 46 AC_HEADER_STDBOOL
48 AC_C_INLINE 47 AC_C_INLINE
49 AC_TYPE_INT16_T 48 AC_TYPE_INT16_T
64 AC_FUNC_MKTIME 63 AC_FUNC_MKTIME
65 AC_FUNC_REALLOC 64 AC_FUNC_REALLOC
66 AC_FUNC_STRCOLL 65 AC_FUNC_STRCOLL
67 66
68 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \ 67 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \
69 localeconv memchr memset modf pow setlocale \ 68 localeconv memchr memset modf pow setlocale socket \
70 socket sqrt strcasecmp strchr strcspn strdup \ 69 sqrt strcasecmp strchr strcspn strdup strerror \
71 strerror strpbrk strrchr strstr strtoul]) 70 strpbrk strrchr strstr strtoul])
72 71
73 AC_CONFIG_FILES([Makefile 72 AC_CONFIG_FILES([Makefile
74 src/Makefile 73 src/Makefile
75 src/lua/Makefile 74 src/lua/Makefile
76 src/gb/Makefile 75 src/gb/Makefile