-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
42 lines (32 loc) · 1.01 KB
/
Copy pathconfigure.ac
File metadata and controls
42 lines (32 loc) · 1.01 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
AC_PREREQ([2.67])
AC_INIT([freesoccer], [0.0.2], http://code.google.com/p/freesoccer/)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION, [dist-bzip2])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
# Checks for libraries.
AC_CHECK_LIB([glut],
[glutKeyboardFunc],
LIBS="$LIBS -lglut",
[AC_MSG_ERROR([*** freeglut library not found!])]
)
AC_CHECK_LIB([GLU],
[gluPerspective],
LIBS="$LIBS -lGLU",
[AC_MSG_ERROR([*** OpenGL utility library not found!])]
)
# Checks for header files.
AC_CHECK_HEADERS([GL/glut.h netinet/in.h sys/socket.h])
# Checks for library functions.
AC_CHECK_FUNCS([memset socket sqrt])
# Checks for typedefs, structures, and compiler characteristics.
AC_FUNC_MALLOC
AC_HEADER_STDBOOL
AC_TYPE_SSIZE_T
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT
AC_MSG_RESULT([Configuration successful! Now type 'make'.])