[go: up one dir, main page]

File: configure.in

package info (click to toggle)
iris 0.12-3.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,664 kB
  • ctags: 602
  • sloc: sh: 7,836; ansic: 5,632; makefile: 59
file content (73 lines) | stat: -rw-r--r-- 2,118 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
AC_INIT(src/iris.c)

cflags_set=${CFLAGS+set}

AM_INIT_AUTOMAKE(iris, 0.12)
dnl AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
AM_DISABLE_STATIC
AC_PROG_CC
AM_PROG_LIBTOOL

dnl AC_PROG_CPP
AM_PROG_CC_STDC
AC_HEADER_STDC

AC_PATH_XTRA

AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR([*** GLIB >= 1.2.0 not installed - please install first ***]))
AM_PATH_GTK(1.2.0,,AC_MSG_ERROR([*** GTK+ >= 1.2.0 not installed - please install first ***]),gthread)

AM_PATH_XMMS(0.9.5.1, , AC_MSG_ERROR([*** XMMS >= 0.9.5.1 not installed - please install first ***]))

AC_MSG_RESULT([Visualization plugin dir is: $XMMS_VISUALIZATION_PLUGIN_DIR])

XMMS_TEST_VERSION( XMMS_VERSION, 1.2.5, , AC_MSG_WARN([*** Warning: some XMMS version prior to 1.2.5 may have problem with openGL plugins ***]))

AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed - please install first ***]))

PTHREAD_LIBS=error
AC_CHECK_LIB(pthread, pthread_attr_init,
             PTHREAD_LIBS="-lpthread")
if test "x$PTHREAD_LIBS" = xerror; then
        AC_CHECK_LIB(pthreads, pthread_attr_init,
                PTHREAD_LIBS="-lpthreads")
fi
if test "x$PTHREAD_LIBS" = xerror; then
        AC_CHECK_LIB(c_r, pthread_attr_init,
                PTHREAD_LIBS="-lc_r")
fi
if test "x$PTHREAD_LIBS" = xerror; then
        AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="")
fi
if test "x$PTHREAD_LIBS" = xerror; then
        AC_MSG_ERROR(*** Unable to locate working posix thread library ***)
fi
AC_SUBST(PTHREAD_LIBS)


LIBS_save=$LIBS
LIBS="$LIBS $GTK_LIBS"
OPENGL_LIBS=error
AC_CHECK_LIB(GL, glBegin, OPENGL_LIBS="-lGL")

if test "x$OPENGL_LIBS" = xerror; then
        AC_CHECK_LIB(MesaGL, glBegin,OPENGL_LIBS="-lMesaGL")
fi

CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="$GTK_CFLAGS $CPPFLAGS"
have_opengl_headers=yes
AC_CHECK_HEADERS(GL/gl.h GL/glx.h,,have_opengl_headers=no)

if test "x$OPENGL_LIBS" = xerror || test "x$have_opengl_headers" = xno; then
        have_opengl=no
	AC_MSG_ERROR(*** Unable to locate working OpenGL library ***)
else
        have_opengl=yes
fi
AC_SUBST(OPENGL_LIBS)
CPPFLAGS=$CPPFLAGS_save
LIBS=$LIBS_save

AC_OUTPUT(Makefile src/Makefile)