File: configure.ac

package info (click to toggle)
pymol 1.2r2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 38,716 kB
  • ctags: 23,006
  • sloc: ansic: 480,417; python: 70,953; cpp: 12,928; sh: 10,266; makefile: 530; csh: 21
file content (73 lines) | stat: -rw-r--r-- 1,723 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
# Process this file with autoconf to produce a configure script.
AC_INIT([pymol], [1.2.0], [bugs@delsci.com])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
AC_PROG_CXX
AC_PROG_INSTALL
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_DEFINE([_PYMOL_FREETYPE], [], [Description])
AC_DEFINE([_PYMOL_LIBPNG], [], [Description])

AC_PATH_XTRA

WLD_PATH_PYTHON( [2.0], [
    echo "$pythoninc"], [
    echo "Missing Python."
    exit -1
    ])

AC_CHECK_LIB(png, main, [AC_DEFINE(_PYMOL_LIBPNG)
                         LIBS="$LIBS -lpng"], [
    echo "Missing libpng."
    exit -1             
    ])

AC_CHECK_LIB(glut, main, [LIBS="$LIBS -lglut"], [
    echo "Missing libglut."
    exit -1             
])           

AC_CHECK_LIB(dl, main, [LIBS="$LIBS -ldl"], [
    echo "Missing libdl."
    exit -1             
    ])

AC_CHECK_FT2([2.0], [AC_DEFINE(_PYMOL_FREETYPE)], [
    echo "Missing freetype2."
    exit -1             
    ])

LIBS="$FT2_LIBS $LIBS"
CFLAGS="$FT2_CFLAGS $CFLAGS"

LIBS="$LIBS $X_LIBS"
INCS="$X_CFLAGS"

SIM_AC_CHECK_OPENGL([OPENGLLIB="true"], AC_MSG_ERROR([OpenGL library not found]))
if test x"$OPENGLLIB" = x"true" ; then
    SIM_AC_CHECK_GLU([GLULIB="true"], AC_MSG_ERROR([GLU library not found]))
fi
LIBS="$GL_LIBS $LIBS"
CPPFLAGS="-I$pythoninc $CPPFLAGS"

AM_CONFIG_HEADER([config.h])

AC_DEFINE([_PYMOL_MODULE],[],[Build as a module])
AC_DEFINE([_PYMOL_VMD_PLUGINS],[],[Uses VMD Plugins])

AC_CONFIG_FILES([
    Makefile
    ov/src/Makefile
    layer0/Makefile
    layer1/Makefile
    layer2/Makefile
    layer3/Makefile
    layer4/Makefile
    layer5/Makefile
    contrib/champ/Makefile
    contrib/pyopengl/Makefile
    contrib/uiuc/plugins/molfile_plugin/src/Makefile
    ])  
AC_OUTPUT