+2001-06-07 Havoc Pennington <hp@redhat.com>
+
+ * atk/Makefile.am: use @GLIB_GENMARSHAL@ so we can use uninstalled
+ glib-genmarshal
+
+ * configure.in: rearrange the library checks to support
+ uninstalled linking
+
+ * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
+
+ * atk-uninstalled.pc.in: new file, allows linking to uninstalled
+ ATK in giant GTK tarball
+
2001-06-07 Brian Cameron <brian.cameron@sun.com>
+
* docs/atk-api.sgml docs/atk-sections.txt
docs/tmpl/atk-unused.sgml docs/tmpl/atkeditabletext.sgml
docs/tmpl/atktext.sgml
interfaces
2001-06-06 Brian Cameron <brian.cameron@sun.com>
+
* atk/atktext.h atk/atktext.h
Updated to new atktext functions for getting attributes.
SUBDIRS=atk tests docs
-EXTRA_DIST = \
+EXTRA_DIST = \
+ atk-uninstalled.pc.in \
atk.pc.in
pkgconfigdir = $(libdir)/pkgconfig
--- /dev/null
+Name: Atk Uninstalled
+Description: Accessibility Toolkit, Not Installed
+Version: @VERSION@
+Requires: @GLIB_PACKAGES@ @PANGO_PACKAGES@
+Libs: ${pc_top_builddir}/${pcfiledir}/atk/libatk.la
+Cflags: -I${pc_top_builddir}/${pcfiledir}/@srcdir@
test -f "$(srcdir)/$@" || touch $(srcdir)/$@
$(srcdir)/stamp-atkmarshal.h: @REBUILD@ atkmarshal.list atkmarshal.h
- cd $(srcdir) \
- && glib-genmarshal --prefix=atk_marshal atkmarshal.list --header >> xgen-gmh \
+ cwd=`pwd` \
+ && cd $(srcdir) \
+ && $$cwd/@GLIB_GENMARSHAL@ --prefix=atk_marshal atkmarshal.list --header >> xgen-gmh \
&& (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
&& rm -f xgen-gmh xgen-gmh~ \
&& echo timestamp > $(@F)
$(srcdir)/atkmarshal.c: @REBUILD@ $(srcdir)/stamp-atkmarshal.h
- cd $(srcdir) \
- && glib-genmarshal --prefix=atk_marshal atkmarshal.list --body >> xgen-gmc \
+ cwd=`pwd` \
+ && cd $(srcdir) \
+ && $$cwd/@GLIB_GENMARSHAL@ --prefix=atk_marshal atkmarshal.list --body >> xgen-gmc \
&& cp xgen-gmc atkmarshal.c \
&& rm -f xgen-gmc xgen-gmc~
exit 1
}
-if test -z "$*"; then
- echo "I am going to run ./configure with no arguments - if you wish "
- echo "to pass any to it, please specify them on the $0 command line."
+if test -z "$AUTOGEN_SUBDIR_MODE"; then
+ if test -z "$*"; then
+ echo "I am going to run ./configure with no arguments - if you wish "
+ echo "to pass any to it, please specify them on the $0 command line."
+ fi
fi
aclocal $ACLOCAL_FLAGS
autoconf
cd $ORIGDIR
-$srcdir/configure --enable-maintainer-mode "$@"
+if test -z "$AUTOGEN_SUBDIR_MODE"; then
+ $srcdir/configure --enable-maintainer-mode "$@"
-echo
-echo "Now type 'make' to compile $PROJECT."
+ echo
+ echo "Now type 'make' to compile $PROJECT."
+fi
\ No newline at end of file
fi
changequote([,])dnl
-
-#
-# Find pkg-config
-#
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-if test x$PKG_CONFIG = xno ; then
- AC_MSG_ERROR([*** pkg-config not found. See http://pkgconfig.sourceforge.net])
-fi
-
-if ! pkg-config --atleast-pkgconfig-version 0.5 ; then
- AC_MSG_ERROR([*** pkg-config too old; version 0.5 or better required.])
-fi
-
GLIB_PACKAGES="gobject-2.0 gmodule-2.0 gthread-2.0"
AC_SUBST(GLIB_PACKAGES)
GLIB_REQUIRED_VERSION=1.3.2
-AC_MSG_CHECKING(GLib version)
-if $PKG_CONFIG --atleast-version $GLIB_REQUIRED_VERSION glib-2.0 ; then
- AC_MSG_RESULT(yes)
-else
- AC_MSG_ERROR([
-*** GLIB $GLIB_REQUIRED_VERSION or newer is required. The latest version of GLIB
-*** is always available from ftp://ftp.gtk.org/.
- ])
-fi
-
PANGO_PACKAGES="pango"
AC_SUBST(PANGO_PACKAGES)
-# Check for Pango flags
+dnl This PATH_GLIB is somewhat redundant, but does a sanity compile and
+dnl importantly defines the GLIB_GENMARSHAL variable for subst into the
+dnl Makefile
+AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION)
+
+PKG_CHECK_MODULES(DEP, glib-2.0 >= $GLIB_REQUIRED_VERSION $GLIB_PACKAGES $PANGO_PACKAGES, , AC_MSG_ERROR([
+ *** GLib or Pango not found. You can find these on ftp://ftp.gtk.org
+ *** Errors follow:
+ $DEP_PKG_ERRORS]))
-AC_MSG_CHECKING(Pango version)
-if $PKG_CONFIG --exists $PANGO_PACKAGES ; then
- AC_MSG_RESULT(yes)
+if $PKG_CONFIG --uninstalled $GLIB_PACKAGES $PANGO_PACKAGES; then
+ :
else
- AC_MSG_ERROR([
-*** Pango not found. Pango is required to build ATK.
-*** See http://www.pango.org for Pango information.
-])
+ AC_CHECK_LIB(pango, pango_context_new, :, AC_MSG_ERROR([
+ *** Can't link to Pango. Pango is required to build
+ *** GTK+. For more information see http://www.pango.org]), $DEP_LIBS)
fi
-DEP_CFLAGS=`$PKG_CONFIG --cflags $GLIB_PACKAGES $PANGO_PACKAGES`
-DEP_LIBS=`$PKG_CONFIG --libs $GLIB_PACKAGES $PANGO_PACKAGES`
-AC_SUBST(DEP_CFLAGS)
-AC_SUBST(DEP_LIBS)
-
-AC_CHECK_LIB(pango, pango_context_new, :, AC_MSG_ERROR([
-*** Can't link to Pango. Pango is required to build
-*** GTK+. For more information see http://www.pango.org]), $DEP_LIBS)
-
AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
gtk_doc_min_version=0.6
fi
AC_SUBST(REBUILD)
-
AC_OUTPUT([
Makefile
atk.pc
+atk-uninstalled.pc
atk/Makefile
tests/Makefile
docs/Makefile