annotate configure.ac @ 47:3907aac7df1c

no longer set CXXFLAGS
author Robert McIntyre <rlm@mit.edu>
date Thu, 21 Mar 2013 19:06:58 +0000
parents 858cb0e04ae5
children 67e88056ad4f
rev   line source
rlm@47 1 AC_PREREQ([2.69])
rlm@9 2
rlm@47 3 AC_INIT([VBA-ReRecording], [1.7.2], [], [vba-rerecording],
rlm@47 4 [http://code.google.com/p/vba-rerecording/])
rlm@6 5
rlm@19 6 AC_CONFIG_AUX_DIR([build-aux])
rlm@19 7
rlm@19 8 AM_INIT_AUTOMAKE([foreign dist-bzip2])
rlm@19 9
rlm@46 10 AC_CONFIG_SRCDIR([src/gb/GB.cpp])
rlm@46 11
rlm@9 12 AC_CONFIG_HEADERS([config.h])
rlm@18 13
rlm@47 14
rlm@47 15 #AC_CANONICAL_TARGET
rlm@47 16
rlm@47 17 dnl AS_CASE([$target],
rlm@47 18 dnl [i?86-*-*], [VBA_USE_C_CORE=no; VBA_USE_MMX=yes]
rlm@47 19 dnl [*] , [VBA_USE_C_CORE=yes; VBA_USE_MMX=no])
rlm@47 20
rlm@18 21 # Checks for programs.
rlm@18 22 AC_PROG_CXX
rlm@18 23 AC_PROG_CC
rlm@21 24 AC_PROG_AWK
rlm@21 25 AC_PROG_INSTALL
rlm@9 26 AC_PROG_RANLIB
rlm@21 27 AC_PROG_CPP
rlm@21 28 AC_PROG_MKDIR_P
rlm@27 29 AC_PATH_PROG(NASM, nasm)
rlm@19 30
rlm@21 31 # Checks for libraries.
rlm@30 32 AC_CHECK_LIB(z, gzopen,
rlm@30 33 , AC_MSG_ERROR([*** Cannot compile without zlib.]))
rlm@46 34
rlm@30 35 AC_CHECK_LIB(png, png_create_write_struct,
rlm@46 36 , AC_MSG_ERROR([*** Cannot compile without libpng.]))
rlm@30 37
rlm@30 38 SDL_VERSION=1.2.2
rlm@30 39 AM_PATH_SDL($SDL_VERSION, :,
rlm@30 40 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
rlm@46 41
rlm@21 42 AC_CHECK_LIB([SDL], [SDL_Init])
rlm@30 43
rlm@21 44 AC_CHECK_LIB([pthread], [pthread_create])
rlm@19 45
rlm@9 46 # Checks for header files.
rlm@28 47 AC_FUNC_ALLOCA
rlm@45 48
rlm@45 49 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \
rlm@46 50 netinet/in.h stddef.h stdint.h stdlib.h string.h \
rlm@46 51 strings.h sys/socket.h unistd.h libintl.h])
rlm@9 52
rlm@9 53 # Checks for typedefs, structures, and compiler characteristics.
rlm@18 54 AC_HEADER_STDBOOL
rlm@18 55 AC_C_INLINE
rlm@21 56 AC_TYPE_INT16_T
rlm@21 57 AC_TYPE_INT32_T
rlm@21 58 AC_TYPE_INT64_T
rlm@21 59 AC_TYPE_INT8_T
rlm@9 60 AC_TYPE_SIZE_T
rlm@21 61 AC_TYPE_UINT16_T
rlm@21 62 AC_TYPE_UINT32_T
rlm@21 63 AC_TYPE_UINT64_T
rlm@21 64 AC_TYPE_UINT8_T
rlm@9 65 AC_CHECK_TYPES([ptrdiff_t])
rlm@9 66
rlm@9 67 # Checks for library functions.
rlm@9 68 AC_FUNC_ERROR_AT_LINE
rlm@21 69 AC_FUNC_FORK
rlm@21 70 AC_FUNC_MALLOC
rlm@9 71 AC_FUNC_MKTIME
rlm@9 72 AC_FUNC_REALLOC
rlm@9 73 AC_FUNC_STRCOLL
rlm@45 74
rlm@45 75 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \
rlm@46 76 localeconv memchr memset modf pow setlocale socket \
rlm@46 77 sqrt strcasecmp strchr strcspn strdup strerror \
rlm@46 78 strpbrk strrchr strstr strtoul])
rlm@21 79
rlm@8 80 AC_CONFIG_FILES([Makefile
rlm@8 81 src/Makefile
rlm@18 82 src/lua/Makefile
rlm@19 83 src/gb/Makefile
rlm@19 84 src/gba/Makefile
rlm@26 85 src/common/Makefile
rlm@27 86 src/SFMT/Makefile
rlm@28 87 src/filters/Makefile
rlm@30 88 src/prof/Makefile
rlm@28 89 src/sdl/Makefile])
rlm@8 90
rlm@30 91 ### RLM: investigate this further
rlm@47 92 AC_SUBST([AM_CXXFLAGS], [-DC_CORE])
rlm@47 93 #AC_SUBST([AM_CXXFLAGS], [-fno-exceptions])
rlm@47 94 #CXXFLAGS="$CXXFLAGS -DC_CORE"
rlm@47 95
rlm@47 96 echo "**************************"
rlm@47 97 echo $CXXFLAGS
rlm@30 98
rlm@6 99 AC_OUTPUT