File: configure.ac

package info (click to toggle)
liboglappth 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,472 kB
  • sloc: sh: 9,780; cpp: 1,778; makefile: 35
file content (102 lines) | stat: -rw-r--r-- 2,346 bytes parent folder | download | duplicates (2)
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
96
97
98
99
100
101
102
# Configuration for liboglappth.
# Copyright (C) 2006- Tommi Hassinen, Daniel Leidert.

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

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

AC_INIT([liboglappth], [1.0.0])

##################################################################
## 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([-Wall])

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_CONFIG_FILES([
	liboglappth.pc
	Makefile
	src/Makefile
])

AC_MSG_NOTICE([

build options:
^^^^^^^^^^^^^^
])

AC_CONFIG_COMMANDS([stamp.h], [echo timestamp > stamp.h])

AC_OUTPUT