AC_INIT(obgnome)

AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gnome-objc, 0.30)

AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(macros)
GNOME_INIT

AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CPP
AC_STDC_HEADERS
AC_ARG_PROGRAM
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

ALL_LINGUAS="es fr it no pt"

AM_GNU_GETTEXT

OBGNOME_LIBDIR='-L$(libdir) '"$GNOME_LIBDIR"
echo "GNOME_INCLUDEDIR is $GNOME_INCLUDEDIR"
OBGNOME_INCLUDEDIR='-I$(includedir) '"$GNOME_INCLUDEDIR"
OBGTK_LIBS="-lobgtk"
OBGNOME_LIBS="-lobgnome $OBGTK_LIBS"
AC_SUBST(OBGNOME_LIBS)
AC_SUBST(OBGTK_LIBS)
AC_SUBST(OBGNOME_LIBDIR)
AC_SUBST(OBGNOME_INCLUDEDIR)
GNOME_X_CHECKS
GNOME_CHECK_OBJC

AC_CONFIG_SUBDIRS(obgtk)

AC_OUTPUT([
Makefile
po/Makefile.in
intl/Makefile
macros/Makefile
obgnome/Makefile
stamp.h
],[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
