grim/guifications3

e62da38a5799
removed gflib-query-plugins since we're using gplugin now...
dnl Process this file with autoconf to create configure.
dnl ################################################################
dnl # Initialize autoconf
dnl ################################################################
AC_INIT(gftools, 0.0.1dev, guifications-devel@lists.guifications.org)
AC_PREREQ(2.50)
AC_CANONICAL_SYSTEM
AC_CONFIG_SRCDIR(config.h.in)
AC_COPYRIGHT([Copyright 2003-2009 Gary Kramlich])
dnl ################################################################
dnl # Initialize automake
dnl ################################################################
AM_INIT_AUTOMAKE([gnu dist-bzip2])
dnl ################################################################
dnl # Configuration file
dnl ################################################################
AM_CONFIG_HEADER(config.h)
dnl # Stash configure args
AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments])
dnl #######################################################################
dnl # Setup libtool
dnl #######################################################################
LT_INIT
LT_LANG([C])
LIBTOOL="$LIBTOOL --silent"
dnl #######################################################################
dnl # I'm lazy and figured config.h is the best place for this ;)
dnl #######################################################################
AC_DEFINE_UNQUOTED(GFLIB_WEBSITE, "http://guifications.org/", [gflib website])
dnl #######################################################################
dnl # Our header
dnl #######################################################################
AH_TOP([ /* our header */
#ifndef CONFIG_H
#define CONFIG_H
])
AH_BOTTOM([
#endif /* CONFIG_H */
])
dnl #######################################################################
dnl # intltool
dnl #######################################################################
AC_PROG_INTLTOOL
GETTEXT_PACKAGE=gf-tools
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used])
ALL_LINGUAS=""
AM_GLIB_GNU_GETTEXT
dnl #######################################################################
dnl # Look for the C compiler
dnl #######################################################################
AC_MSG_CHECKING([WMD's])
AC_MSG_RESULT(no)
CFLAGS_save="$CFLAGS"
AC_PROG_CC
CFLAGS="$CFLAGS_save"
AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no)
if test "x$enable_debug" = "xyes" ; then
AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
fi
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall -g3"
fi
AC_SUBST(CFLAGS)
dnl #######################################################################
dnl # check for glib and other glib dependencies
dnl #######################################################################
AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([
*** GLib 2.0 is required to build gftools; please make sure you have the
*** GLib development headers installed. The latest version of GLib is always
*** available at http://www.gtk.org/.]), [gobject])
AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([
*** Gtk 2.0 is required to build gftools; please make sure you have the Gtk
*** development headers installed. The latest version of Gtk is always
*** available at http://www.gtk.org/.]))
dnl #######################################################################
dnl # Find us some gflib goodies
dnl #######################################################################
PKG_CHECK_MODULES(GFLIB, gflib)
AC_SUBST(GFLIB_CFLAGS)
AC_SUBST(GFLIB_LIBS)
PKG_CHECK_MODULES(GFLIB_GTK, gflib-gtk)
AC_SUBST(GFLIB_GTK_CFLAGS)
AC_SUBST(GFLIB_GTK_LIBS)
dnl #######################################################################
dnl # Finish up
dnl #######################################################################
AC_OUTPUT([Makefile
po/Makefile.in
prefedit/Makefile
])
dnl #######################################################################
dnl # Ouput!!
dnl #######################################################################
echo;
echo AC_PACKAGE_NAME AC_PACKAGE_VERSION Configuration complete
echo;
echo Debugging enabled................: $enable_debug
echo;
echo Type make to compile
echo;