-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
68 lines (58 loc) · 1.39 KB
/
configure.ac
File metadata and controls
68 lines (58 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(cram, 0.1, yzhou7@gmail.com)
AC_CONFIG_SRCDIR([src/cram.h])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
#LIBS="-lSDL"
#AC_ARG_WITH(SDL,
# AC_HELP_STRING(
# [--with-SDL=prefix],
# [/usr/local/SDL/]
# ),
# SDL_PATHSET=1,
# SDL_PATHSET=0
#)
#if test $SDL_PATHSET = 1; then
# CXXFLAGS="$CXXFLAGS -I$with_SDL/include"
# CFLAGS="$CFLAGS -I$with_SDL/include"
# LDFLAGS="$LDFLAGS -L$with_SDL/lib"
#fi
#
#AC_SUBST(GLOBALCXXFLAGS, $CXXFLAGS )
#AC_SUBST(GLOBALLDFLAGS, $LDFLAGS )
#AC_MSG_CHECKING([for the SDL header])
#AC_COMPILE_IFELSE(
# [ #include ],
# [
# AC_MSG_RESULT(yes)
# SDL_NOTFOUND=0;
# ],
# [
# AC_MSG_RESULT(no)
# SDL_NOTFOUND=1;
# ]
#)
SDL_VERSION=1.0.8
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
# Add the SDL preprocessor flags and libraries to the build process
CFLAGS="$CFLAGS $SDL_CFLAGS -lSDL_ttf"
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT