File: configure.ac

package info (click to toggle)
cairo-java 1.0.8-9
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,060 kB
  • ctags: 982
  • sloc: sh: 8,795; java: 1,840; ansic: 1,513; makefile: 232
file content (82 lines) | stat: -rw-r--r-- 2,443 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
74
75
76
77
78
79
80
81
82
dnl Process this file with autoconf to produce a configure script.
dnl
dnl This file is part of Java-GNOME.
dnl
dnl Java-GNOME is free software; you can redistribute it and/or modify it
dnl under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2, or (at your option)
dnl any later version.
dnl
dnl Java-GNOME is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with Jade; see the file COPYING.  If not, write to
dnl the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

AC_INIT(src/jni/org_freedesktop_cairo_Context.c)
AC_CONFIG_AUX_DIR(.)
AM_INIT_AUTOMAKE(cairo-java, 1.0.8)

AM_PROG_GCJ

AC_DISABLE_STATIC
AC_PROG_LIBTOOL

apiversion="1.0"

INSTALLED_CLASSPATH=\${jardir}/cairo${apiversion}-${VERSION}.jar 
INSTALLED_JNI_DIR=\${prefix}/lib/
AC_SUBST(INSTALLED_CLASSPATH)
AC_SUBST(INSTALLED_JNI_DIR)

AC_SUBST(apiversion)

BUILDDIR=`pwd`

INSTALLED_CLASSPATH_BUILDPLACE=$BUILDDIR/lib/cairo${apiversion}-${VERSION}.jar 
INSTALLED_JNI_DIR_BUILDPLACE=$BUILDDIR/lib/
AC_SUBST(INSTALLED_CLASSPATH_BUILDPLACE)
AC_SUBST(INSTALLED_JNI_DIR_BUILDPLACE)

PKG_CHECK_MODULES(GLIB_JAVA, glib-java >= 0.4.2)

JG_LIB
JG_COMMON
AM_PROG_CC_C_O

PKG_CHECK_MODULES(CAIRO, cairo >= 1.0.0)
AC_SUBST(CAIRO_CFLAGS)
AC_SUBST(CAIRO_LIBS)

dnl Check for pdf support: Remove this when the cairo pdf-backend becoms 
dnl non-experimental
dnl ===========================================================================

AC_ARG_ENABLE(pdf,
  [  --enable-pdf            Enable wrappings for cairo's PDF backend],
  [use_pdf=$enableval], [use_pdf=no])


AM_CONDITIONAL(CAIRO_HAS_PDF_SURFACE, test "x$use_pdf" = "xyes")

dnl ===========================================================================


PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 2.3.1)
AC_SUBST(FONTCONFIG_CFLAGS)
AC_SUBST(FONTCONFIG_LIBS)

PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6.0)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

AC_CHECK_PROGS([JAVAH], ["gcjh -jni" "javah"], [gcjh -jni])

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([cairo-java.pc])
AC_CONFIG_FILES([cairo-java-uninstalled.pc])
AC_CONFIG_FILES([src/java/org/freedesktop/cairo/Config.java])
AC_OUTPUT