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_gnu_gnomevte_Terminal.c)


version="0.11.13"
apiversion="0.11"



INSTALLED_CLASSPATH=\${prefix}/share/java/gnomevte${apiversion}-${version}.jar 
INSTALLED_JNI_DIR=\${prefix}/lib/jni/
AC_SUBST(INSTALLED_CLASSPATH)
AC_SUBST(INSTALLED_JNI_DIR)

AC_SUBST(version)
AC_SUBST(apiversion)

JG_GTK_JAVA(2.4)

JG_GNOME_JAVA(2.7)

JG_COMMON

PKG_CHECK_MODULES(GNOME, libgnomeui-2.0 >= 2.7.1 libgnomecanvas-2.0 >= 2.7.1)
AC_SUBST(GNOME_CFLAGS)
AC_SUBST(GNOME_LIBS)

dnl Check for libvte >= 2.0
PKG_CHECK_MODULES(VTE, vte >= 0.11.10)
AC_SUBST(VTE_CFLAGS)
AC_SUBST(VTE_LIBS)


AC_OUTPUT( Makefile 
			vte-java.pc
			doc/examples/runExample.sh
			src/Makefile
			src/java/org/gnu/gnomevte/Terminal.java
			)

`chmod +x doc/examples/runExample.sh`

