File: configure.ac

package info (click to toggle)
liboglappth 0.98-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,500 kB
  • ctags: 331
  • sloc: sh: 8,694; cpp: 1,779; makefile: 85
file content (95 lines) | stat: -rw-r--r-- 2,275 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Configuration for liboglappth.
# Copyright (C) 2006- Tommi Hassinen.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1, or (at your option)
# any later version.

# Process this file with aclocal/autoconf to produce a configure script.

AC_INIT(liboglappth, 0.98)

##################################################################
## also see src/Makefile.am when you change the version number!!!
##################################################################

AC_PREREQ(2.48)
AC_CONFIG_SRCDIR(src/base_app.cpp)

AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)

AC_CANONICAL_HOST

top_builddir_=`pwd`
AC_SUBST(top_builddir_)

# Get any build/host and enable/disable flags now.
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

# if a mingw32 host is specified, then ???
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
##case $host in
##	*-*-mingw32*)
##		CPPFLAGS="-Dmno-cygwin -Dmms_bitfields $CPPFLAGS"
##		LIBS="$LIBS -mwindows"
##		;;
##esac

# Checks for programs.
# ^^^^^^^^^^^^^^^^^^^^

AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PATH_PROG(AR, ar, ar)
AC_PATH_PROG(SHELL, sh, /bin/sh)
AC_PROG_MAKE_SET

AM_SANITY_CHECK

# Checks for libraries.
# ^^^^^^^^^^^^^^^^^^^^^

AC_CHECK_LIB(m,acos,,[AC_MSG_ERROR([math library missing])])

LIBS="$LIBS -L/usr/X11R6/lib"

## the GL/GLU library checks won't work at mingw environment...
## ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#AC_CHECK_LIB(GL,glRenderMode,,[AC_MSG_ERROR([GL library missing])])
#AC_CHECK_LIB(GLU,gluCylinder,,[AC_MSG_ERROR([GLU library missing])])

# Checks for header files.
# ^^^^^^^^^^^^^^^^^^^^^^^^

AC_CHECK_HEADERS(GL/gl.h)
AC_CHECK_HEADERS(GL/glu.h)

# Checks for typedefs, structures, and compiler characteristics.
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AC_PROG_CC_STDC
AC_C_INLINE
AC_C_CONST

AC_SUBST(CXXFLAGS)
AC_SUBST(LDFLAGS)

# Checks for library functions.
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AC_HEADER_STDC

AC_OUTPUT([Makefile src/Makefile
	liboglappth.pc])

#echo
#echo build options:
#echo ^^^^^^^^^^^^^^
#echo

echo timestamp > stamp.h