Hash :
ecea190c
Author :
Date :
2008-04-29T23:08:14
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
dnl Minimum version of autoconf required. Should coincide with the
dnl setting in the autogen.sh script.
AC_PREREQ(2.58)
AC_INIT(FTGL, 2.1.3, [henryj@paradise.net.nz], ftgl)
AC_CONFIG_SRCDIR(src/FTPoint.cpp)
AC_CONFIG_AUX_DIR(.auto)
AM_INIT_AUTOMAKE([1.6 no-define dist-zip dist-bzip2])
AM_CONFIG_HEADER(config.h)
FTGL_PROG_CXX
LT_MAJOR="2"
LT_MINOR="1"
LT_MICRO="3"
AC_SUBST(LT_MAJOR)
AC_SUBST(LT_MINOR)
AC_SUBST(LT_MICRO)
LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO"
AC_SUBST(LT_VERSION)
AC_PROG_LIBTOOL
AC_PROG_INSTALL
# Checks for typedefs, structures, and compiler characteristics.
dnl These don't mix with C++
dnl AC_C_CONST
dnl AC_C_INLINE
AM_PROG_CC_C_O
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADER([stdlib.h])
# Checks for libraries.
AC_PATH_X
AC_CHECK_FT2([9.0.3],[],
[AC_MSG_ERROR([FreeType2 is required to compile this library])])
AC_PATH_XTRA
FTGL_CHECK_GL
FTGL_CHECK_GLUT
CPPUNIT="no"
PKG_CHECK_MODULES(CPPUNIT, cppunit, [CPPUNIT="yes"])
AC_MSG_RESULT($CPPUNIT)
AM_CONDITIONAL(HAVE_CPPUNIT, test "$CPPUNIT" != "no")
# Checks for library functions -- this isn't really used at the moment
AC_CHECK_FUNCS([memset])
# Warning flags
CPPFLAGS="${CPPFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wsign-compare"
CFLAGS="${CFLAGS} -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
# Utility programs
AC_PATH_PROG(DOXYGEN, doxygen, no)
AM_CONDITIONAL(HAVE_DOXYGEN, test "$DOXYGEN" != "no")
AC_CONFIG_FILES([
ftgl.pc
])
AC_CONFIG_FILES([
Makefile
src/Makefile
test/Makefile
docs/Makefile
demo/Makefile
msvc/Makefile
])
AC_OUTPUT