1
dnl Copyright 2005 Red Hat, Inc.
3
dnl Permission to use, copy, modify, distribute, and sell this software and its
4
dnl documentation for any purpose is hereby granted without fee, provided that
5
dnl the above copyright notice appear in all copies and that both that
6
dnl copyright notice and this permission notice appear in supporting
7
dnl documentation, and that the name of Red Hat not be used in
8
dnl advertising or publicity pertaining to distribution of the software without
9
dnl specific, written prior permission. Red Hat makes no
10
dnl representations about the suitability of this software for any purpose. It
11
dnl is provided "as is" without express or implied warranty.
13
dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
14
dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
15
dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16
dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
17
dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18
dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
dnl PERFORMANCE OF THIS SOFTWARE.
21
dnl Process this file with autoconf to create configure.
25
AC_INIT(libcm, 0.0.16, [sandmann@redhat.com], libcm)
26
AM_INIT_AUTOMAKE([dist-bzip2])
29
AM_CONFIG_HEADER(config.h)
36
if test "x$GCC" = "xyes"; then
38
*[\ \ ]-Wall[\ \ ]*) ;;
39
*) CFLAGS="$CFLAGS -Wall" ;;
44
# Check for dependencies
45
PKG_CHECK_MODULES(DEP, glib-2.0 gobject-2.0 x11 xcomposite xdamage xtst)
47
# AC_CHECK_LIB(libGL.so, glXCreateContext
49
AC_CHECK_LIB(GL, glXCreateContext, HAVE_LIBGL=yes, HAVE_LIBGL=no)
51
if test "x$HAVE_LIBGL" = "xno"; then
52
AC_MSG_ERROR(libGL not found);
54
DEP_LIBS="$DEP_LIBS -lGL"
57
AC_CHECK_LIB(GLU, gluOrtho2D, HAVE_LIBGLU=yes, HAVE_LIBGLU=no)
59
if test "x$HAVE_LIBGLU" = "xno"; then
60
AC_MSG_ERROR(libGLU not found);
62
DEP_LIBS="$DEP_LIBS -lGLU"
65
AC_CHECK_LIB(GL, glXBindTexImageEXT, [AC_DEFINE([HAVE_TFD], [], [Define if we have TFD extension])])
67
if test "x$HAVE_TBD" = "xyes"; then
68
AC_MSG_ERROR([Texture from drawable extension is needed])