-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
32 lines (26 loc) · 968 Bytes
/
configure.ac
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
AC_INIT([hdaps-gl], [0.0.7], [[email protected]])
AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz tar-ustar])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_CONFIG_SRCDIR([src/hdaps-gl.c])
AC_CONFIG_MACRO_DIRS([m4])
# Checks for programs.
AC_PROG_CC
AM_PROG_AR
# Predefined header checks.
AC_HEADER_STAT # sys/stat.h
AC_HEADER_STDC # stdlib.h string.h (implied: errno.h limits.h stdio.h)
# Check for header files not covered by the predefined macros above.
AC_HEADER_REQUIRE(sys/types.h)
AC_HEADER_REQUIRE(fcntl.h)
AC_HEADER_REQUIRE(unistd.h)
# OpenGL headers
AC_HEADER_REQUIRE(GL/glut.h) # freeglut
AC_HEADER_REQUIRE(GL/gl.h) # mesa
AC_HEADER_REQUIRE(GL/glu.h) # glu
# Choose three functions more or less at random to look for in our GL
# libraries. This ensures that these libraries get linked in automatically.
AC_SEARCH_LIBS([gluPerspective], [GLU])
AC_SEARCH_LIBS([glMatrixMode], [GL])
AC_SEARCH_LIBS([glutMainLoop], [glut])
LT_INIT
AC_OUTPUT