# Most of this configure script was ripped from pidgin or the # pidgin-encryption configure script, thanks guys ;) AC_INIT([pidgin-guifications], [2.13mtn], [guifications-devel@lists.guifications.org]) AM_CONFIG_HEADER(pre_config.h) AM_INIT_AUTOMAKE([foreign dist-bzip2]) AC_PATH_PROG(sedpath, sed) dnl This disables check of libtool for these compilers LIBTOOL="$LIBTOOL --silent" # I'm lazy and figured config.h is the best place for this ;) AC_DEFINE_UNQUOTED(GF_WEBSITE, "http://pidgin.guifications.org", [Guifications Website]) AH_TOP([ /* our header */ #endif /* _GF_CONFIG_H */ GETTEXT_PACKAGE=guifications AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used.]) ALL_LINGUAS="bn cs de en_AU en_GB es fr gl he hu it ja mk nl no pt pt_BR ru sk sr sr@Latn sv uk zh_CN zh_TW" # Look for the C compiler AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) AC_ARG_ENABLE(deprecated, [ --disable-deprecated compile without deprecated API usage],,enable_deprecated=yes) if test "x$enable_debug" = "xyes" ; then AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) if test "x$enable_deprecated" = no; then DEBUG_CFLAGS = "$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" if test "x$GCC" = "xyes"; then CFLAGS="$CFLAGS -Wall -g3" PKG_CHECK_MODULES(PIDGIN, pidgin purple) PIDGIN_LIBDIR=`pkg-config --variable=libdir pidgin` PIDGIN_DATADIR=`pkg-config --variable=datadir pidgin` # check for gtk and other dependencies AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([ *** GLib 2.0 is required to build Guifications; please make sure you have the *** GLib development headers installed. The latest version of GLib is always *** available at http://www.gtk.org/.])) AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([ *** GTK+ 2.0 is required to build Guifications; please make sure you have the *** GTK+ development headers installed. The latest version of GTK+ is always *** available at http://www.gtk.org/.])) PKG_CHECK_MODULES(PANGOFT2, pangoft2 >= 1.1.0, AC_DEFINE(HAVE_PANGOFT2, 1, [Define if we've found pangoft2.]) AC_SUBST(PANGOFT2_CFLAGS) # Check if plugins are enabled AM_CONDITIONAL(PLUGINS, test "$want_plugins" = "yes") cp -p VERSION VERSION.ac-save AC_CONFIG_COMMANDS_POST([ cmp VERSION VERSION.ac-save || touch -r VERSION.ac-save VERSION nsis/translations/Makefile themes/item_test/Makefile echo Configuration complete echo Debugging enabled..............: $enable_debug echo Deprecated API enabled.........: $enable_deprecated echo Type make to compile echo Thank you for using Guifications