File: configure.ac

package info (click to toggle)
achilles 3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 908 kB
  • sloc: sh: 3,361; cpp: 2,105; xml: 26; makefile: 7
file content (44 lines) | stat: -rw-r--r-- 1,408 bytes parent folder | download
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT([achilles],[3])
AC_CONFIG_SRCDIR([hebbian.cc])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])

dnl Checks for programs.
AC_PROG_CXX
dnl AM_PROG_LIBTOOL

AC_PATH_XTRA

LIBS=$X_LIBS
dnl LIBS='-L/usr/X11R6/lib'
dnl Checks for libraries. (some are for various platforms and expected to fail)
AC_CHECK_LIB(posix4, main,, [AC_MSG_WARN([If this is Solaris, you need libposix4])])
AC_CHECK_LIB(z, main)
AC_CHECK_LIB(m, main)
AC_CHECK_LIB(png, main)
AC_CHECK_LIB(pthread, main)
AC_CHECK_LIB(X11, main)
AC_CHECK_LIB(Xi, main)
AC_CHECK_LIB(Xmu, main)
AC_CHECK_LIB(opengl32,glEnable,, [AC_MSG_WARN([If this is Win32, you need opengl32])])
AC_CHECK_LIB(glu32,gluPerspective,, [AC_MSG_WARN([If this is Win32, you need glu32])])
AC_CHECK_LIB(GL,glEnable,,[AC_MSG_WARN([If this is Linux, you need libGL])])
AC_CHECK_LIB(GLU,gluPerspective,,[AC_MSG_WARN([If this is Linux, you need libGLU])])
AC_CHECK_LIB(Xxf86dga, XDGAOpenFramebuffer)
AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryVersion)
AC_CHECK_LIB(Xv, XvQueryExtension)
AC_CHECK_LIB(SDL, SDL_SetVideoMode)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(GL/gl.h GL/glu.h SDL/SDL.h SDL.h limits.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

dnl Checks for library functions.

AC_SUBST(PACKAGE)
AC_OUTPUT(Makefile)