AC_REVISION($Revision: 1.43.8.1 $)
AC_INIT(src/glib.ads)

# Current release settings
GTKADA_MAJOR_VERSION=2
GTKADA_MINOR_VERSION=2
GTKADA_MICRO_VERSION=0
GTKADA_VERSION=$GTKADA_MAJOR_VERSION.$GTKADA_MINOR_VERSION.$GTKADA_MICRO_VERSION

AC_CANONICAL_SYSTEM
AM_ADD_OS_SPECIFIC_FLAGS

# checking for local tools
AM_PATH_MERGE
AM_PATH_DIFF_AND_PATCH
AC_PROG_CC
AM_PATH_GNAT
AM_PATH_PERL
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PROG_RANLIB

# checking for gtk
AM_PATH_GTK(2.0.0,,AC_MSG_ERROR(Test for GTK failed. See the file 'INSTALL' for help.))

# Gettext stuff
ALL_LINGUAS="fr"
AM_GNU_GETTEXT

# try to find OpenGL if present
AM_CHECK_OPENGL

# try to find libglade if present
AM_CHECK_LIBGLADE

# try to find gnome if present
AM_CHECK_GNOME

# Set the version number of GtkAda
AC_SUBST(GTKADA_VERSION)
AC_SUBST(GTKADA_MAJOR_VERSION)
AC_SUBST(GTKADA_MINOR_VERSION)
AC_SUBST(GTKADA_MICRO_VERSION)

EXEC_PREFIX="$prefix"
AC_SUBST(EXEC_PREFIX)

AC_OUTPUT(Makefile src/Makefile.common src/Makefile src/gtkada-config src/gate testgtk/Makefile src/gtkextra/Makefile src/opengl/Makefile src/glade/Makefile src/gnome/Makefile docs/gtkada_ug/Makefile docs/gtkada_rm/Makefile)
